Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when ldash on

2020-06-29 Thread Siyuan Huang

Soory for wrong commit messge 

Update to no file mode modify at version2

From efd83d91a9bd9a485bcda6799f5f681c203a7449 Mon Sep 17 00:00:00 2001
From: Siyuan Huang 
Date: Tue, 30 Jun 2020 13:44:01 +0800
Subject: [PATCH] libavformat/dashenc.c:kill latency when ldash on v2

disable write tmp file to let it using chunk downloading at last segment

Signed-off-by: Siyuan Huang 
---
 libavformat/dashenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index dc3306a56a..ef6e3d29c6 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -2232,6 +2232,8 @@ static int dash_write_packet(AVFormatContext *s, AVPacket 
*pkt)
 AVDictionary *opts = NULL;
 const char *proto = avio_find_protocol_name(s->url);
 int use_rename = proto && !strcmp(proto, "file");
+if (c->ldash)
+use_rename = 0;
 if (os->segment_type == SEGMENT_TYPE_MP4)
 write_styp(os->ctx->pb);
 os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';
-- 
2.17.1

-----Original Message-
From: Siyuan Huang  
Sent: 2020年6月30日 13:37
To: 'FFmpeg development discussions and patches' 
Subject: RE: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when 
ldash on

Update with no file mode changes :
  
From 6d08df73f9cb8cc8d8dfa3b974232f0c0a2b11f8 Mon Sep 17 00:00:00 2001
From: Siyuan Huang 
Date: Tue, 30 Jun 2020 13:34:47 +0800
Subject: [PATCH] libavformat/dashenc.c:support mpd update period

according iso 23009-1 , in live cases , mpd refresh period should be changeable

Signed-off-by: Siyuan Huang 
---
 libavformat/dashenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 
dc3306a56a..ef6e3d29c6 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -2232,6 +2232,8 @@ static int dash_write_packet(AVFormatContext *s, AVPacket 
*pkt)
 AVDictionary *opts = NULL;
 const char *proto = avio_find_protocol_name(s->url);
 int use_rename = proto && !strcmp(proto, "file");
+if (c->ldash)
+use_rename = 0;
 if (os->segment_type == SEGMENT_TYPE_MP4)
 write_styp(os->ctx->pb);
 os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';
--
2.17.1  
  
-Original Message-
From: ffmpeg-devel  On Behalf Of 
myp...@gmail.com
Sent: 2020年6月30日 11:53
To: FFmpeg development discussions and patches 
Subject: Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when 
ldash on

On Tue, Jun 30, 2020 at 11:12 AM Siyuan Huang  wrote:
>
> From: Siyuan Huang 
>
>
>
> disable write tmp file to let it using chunk downloading at last 
> segment
>
>
>
> Signed-off-by: Siyuan Huang 
>
> ---
>
> libavformat/dashenc.c | 2 ++
>
> 1 file changed, 2 insertions(+)
>
> mode change 100644 => 100755 libavformat/dashenc.c
>
>
>
> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
>
> old mode 100644
>
> new mode 100755
>
This patch change the file mode

> index 62193058d7..66a8a62294
>
> --- a/libavformat/dashenc.c
>
> +++ b/libavformat/dashenc.c
>
> @@ -2229,6 +2229,8 @@ static int dash_write_packet(AVFormatContext *s, 
> AVPacket *pkt)
>
>  AVDictionary *opts = NULL;
>
> const char *proto = avio_find_protocol_name(s->url);
>
>  int use_rename = proto && !strcmp(proto, "file");
>
> +if (c->ldash)
>
> +use_rename = 0;
>
>  if (os->segment_type == SEGMENT_TYPE_MP4)
>
>  write_styp(os->ctx->pb);
>
>  os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';
>
> --
>
> 2.17.1
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with 
subject "unsubscribe".


0001-libavformat-dashenc.c-kill-latency-when-ldash-on-v2.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:support mpd update period

2020-06-29 Thread Siyuan Huang
Update with no file mode changes :

 

From 818095d4f0aa50dfee3cb0622146a2180801c5fe Mon Sep 17 00:00:00 2001

From: Siyuan Huang 

Date: Tue, 30 Jun 2020 13:41:46 +0800

Subject: [PATCH] libavformat/dashenc.c:support mpd update period v3

 

according iso 23009-1 , in live cases , mpd refresh

period should be changeable

 

Signed-off-by: Siyuan Huang 

---

doc/muxers.texi   | 4 

libavformat/dashenc.c | 4 

2 files changed, 8 insertions(+)

 

diff --git a/doc/muxers.texi b/doc/muxers.texi

index b1389a3227..86976f4f61 100644

--- a/doc/muxers.texi

+++ b/doc/muxers.texi

@@ -366,6 +366,10 @@ adjusting playback latency and buffer occupancy during
normal playback by client

Set the maximum playback rate indicated as appropriate for the purposes of
automatically

adjusting playback latency and buffer occupancy during normal playback by
clients.

+@item update_period @var{update_period}

+ Set the mpd update period ,for dynamic content.

+ The unit is second.

+

@end table

 @anchor{framecrc}

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index 62193058d7..dc3306a56a 100644

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -198,6 +198,7 @@ typedef struct DASHContext {

 int target_latency_refid;

 AVRational min_playback_rate;

 AVRational max_playback_rate;

+int64_t update_period;

} DASHContext;

 static struct codec_string {

@@ -1184,6 +1185,8 @@ static int write_manifest(AVFormatContext *s, int
final)

 char now_str[100];

 if (c->use_template && !c->use_timeline)

 update_period = 500;

+if (c->update_period)

+update_period = c->update_period;

 avio_printf(out, "\tminimumUpdatePeriod=\"PT%"PRId64"S\"\n",
update_period);

 if (!c->ldash)

 avio_printf(out,
"\tsuggestedPresentationDelay=\"PT%"PRId64"S\"\n", c->last_duration /
AV_TIME_BASE);

@@ -2380,6 +2383,7 @@ static const AVOption options[] = {

 { "target_latency", "Set desired target latency for Low-latency dash",
OFFSET(target_latency), AV_OPT_TYPE_DURATION, { .i64 = 0 }, 0, INT_MAX, E },

 { "min_playback_rate", "Set desired minimum playback rate",
OFFSET(min_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

 { "max_playback_rate", "Set desired maximum playback rate",
OFFSET(max_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

+{ "update_period", "Set the mpd update interval",
OFFSET(update_period), AV_OPT_TYPE_INT64, {.i64 = 0}, 0, INT64_MAX, E},

 { NULL },

};

-- 

2.17.1

 

From: Siyuan Huang  
Sent: 2020年6月30日 11:59
To: 'ffmpeg-devel@ffmpeg.org' 
Subject: RE: [PATCH] libavformat/dashenc.c:support mpd update period

 

Add patch file 

 

From: Siyuan Huang < <mailto:saber.hu...@samsung.com>
saber.hu...@samsung.com> 
Sent: 2020年6月30日 11:34
To: 'ffmpeg-devel@ffmpeg.org' < <mailto:ffmpeg-devel@ffmpeg.org>
ffmpeg-devel@ffmpeg.org>
Subject: [PATCH] libavformat/dashenc.c:support mpd update period

 

From: Siyuan Huang < <mailto:saber.hu...@samsung.com>
saber.hu...@samsung.com>

 

according iso 23009-1 , in live cases , mpd refresh

period should be changeable

 

Signed-off-by: Siyuan Huang < <mailto:saber.hu...@samsung.com>
saber.hu...@samsung.com>

---

doc/muxers.texi   | 4 

libavformat/dashenc.c | 4 

2 files changed, 8 insertions(+)

mode change 100644 => 100755 doc/muxers.texi

 

diff --git a/doc/muxers.texi b/doc/muxers.texi

old mode 100644

new mode 100755

index b1389a3227..babbcb16af

--- a/doc/muxers.texi

+++ b/doc/muxers.texi

@@ -366,6 +366,10 @@ adjusting playback latency and buffer occupancy during
normal playback by client

Set the maximum playback rate indicated as appropriate for the purposes of
automatically

adjusting playback latency and buffer occupancy during normal playback by
clients.

 

+@item update_period @var{update_period}

+ Set the mpd update period ,for dynamic content.

+ The unit is second.

+

@end table

 

 @anchor{framecrc}

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index 66a8a62294..ef6e3d29c6 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -198,6 +198,7 @@ typedef struct DASHContext {

 int target_latency_refid;

 AVRational min_playback_rate;

 AVRational max_playback_rate;

+int64_t update_period;

} DASHContext;

 

 static struct codec_string {

@@ -1184,6 +1185,8 @@ static int write_manifest(AVFormatContext *s, int
final)

 char now_str[100];

 if (c->use_template && !c->use_timeline)

 update_period = 500;

+if (c->update_period)

+update_period = c->update_period;

 avio_printf(out, "\tminimumUpdatePeriod=\"PT%"PRId64"S\&qu

Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when ldash on

2020-06-29 Thread Siyuan Huang
Update with no file mode changes :
  
From 6d08df73f9cb8cc8d8dfa3b974232f0c0a2b11f8 Mon Sep 17 00:00:00 2001
From: Siyuan Huang 
Date: Tue, 30 Jun 2020 13:34:47 +0800
Subject: [PATCH] libavformat/dashenc.c:support mpd update period

according iso 23009-1 , in live cases , mpd refresh
period should be changeable

Signed-off-by: Siyuan Huang 
---
 libavformat/dashenc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index dc3306a56a..ef6e3d29c6 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -2232,6 +2232,8 @@ static int dash_write_packet(AVFormatContext *s, AVPacket 
*pkt)
 AVDictionary *opts = NULL;
 const char *proto = avio_find_protocol_name(s->url);
 int use_rename = proto && !strcmp(proto, "file");
+if (c->ldash)
+use_rename = 0;
 if (os->segment_type == SEGMENT_TYPE_MP4)
 write_styp(os->ctx->pb);
 os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';
-- 
2.17.1  
  
-Original Message-
From: ffmpeg-devel  On Behalf Of 
myp...@gmail.com
Sent: 2020年6月30日 11:53
To: FFmpeg development discussions and patches 
Subject: Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when 
ldash on

On Tue, Jun 30, 2020 at 11:12 AM Siyuan Huang  wrote:
>
> From: Siyuan Huang 
>
>
>
> disable write tmp file to let it using chunk downloading at last 
> segment
>
>
>
> Signed-off-by: Siyuan Huang 
>
> ---
>
> libavformat/dashenc.c | 2 ++
>
> 1 file changed, 2 insertions(+)
>
> mode change 100644 => 100755 libavformat/dashenc.c
>
>
>
> diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
>
> old mode 100644
>
> new mode 100755
>
This patch change the file mode

> index 62193058d7..66a8a62294
>
> --- a/libavformat/dashenc.c
>
> +++ b/libavformat/dashenc.c
>
> @@ -2229,6 +2229,8 @@ static int dash_write_packet(AVFormatContext *s, 
> AVPacket *pkt)
>
>  AVDictionary *opts = NULL;
>
> const char *proto = avio_find_protocol_name(s->url);
>
>  int use_rename = proto && !strcmp(proto, "file");
>
> +if (c->ldash)
>
> +use_rename = 0;
>
>  if (os->segment_type == SEGMENT_TYPE_MP4)
>
>  write_styp(os->ctx->pb);
>
>  os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';
>
> --
>
> 2.17.1
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with 
subject "unsubscribe".


0001-libavformat-dashenc.c-kill-latency-when-ldash-on.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:support mpd update period

2020-06-29 Thread Siyuan Huang
Add patch file 

 

From: Siyuan Huang  
Sent: 2020年6月30日 11:34
To: 'ffmpeg-devel@ffmpeg.org' 
Subject: [PATCH] libavformat/dashenc.c:support mpd update period

 

From: Siyuan Huang mailto:saber.hu...@samsung.com>
>

 

according iso 23009-1 , in live cases , mpd refresh

period should be changeable

 

Signed-off-by: Siyuan Huang mailto:saber.hu...@samsung.com> >

---

doc/muxers.texi   | 4 

libavformat/dashenc.c | 4 

2 files changed, 8 insertions(+)

mode change 100644 => 100755 doc/muxers.texi

 

diff --git a/doc/muxers.texi b/doc/muxers.texi

old mode 100644

new mode 100755

index b1389a3227..babbcb16af

--- a/doc/muxers.texi

+++ b/doc/muxers.texi

@@ -366,6 +366,10 @@ adjusting playback latency and buffer occupancy during
normal playback by client

Set the maximum playback rate indicated as appropriate for the purposes of
automatically

adjusting playback latency and buffer occupancy during normal playback by
clients.

 

+@item update_period @var{update_period}

+ Set the mpd update period ,for dynamic content.

+ The unit is second.

+

@end table

 

 @anchor{framecrc}

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index 66a8a62294..ef6e3d29c6 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -198,6 +198,7 @@ typedef struct DASHContext {

 int target_latency_refid;

 AVRational min_playback_rate;

 AVRational max_playback_rate;

+int64_t update_period;

} DASHContext;

 

 static struct codec_string {

@@ -1184,6 +1185,8 @@ static int write_manifest(AVFormatContext *s, int
final)

 char now_str[100];

 if (c->use_template && !c->use_timeline)

 update_period = 500;

+if (c->update_period)

+update_period = c->update_period;

 avio_printf(out, "\tminimumUpdatePeriod=\"PT%"PRId64"S\"\n",
update_period);

 if (!c->ldash)

 avio_printf(out,
"\tsuggestedPresentationDelay=\"PT%"PRId64"S\"\n", c->last_duration /
AV_TIME_BASE);

@@ -2382,6 +2385,7 @@ static const AVOption options[] = {

 { "target_latency", "Set desired target latency for Low-latency dash",
OFFSET(target_latency), AV_OPT_TYPE_DURATION, { .i64 = 0 }, 0, INT_MAX, E },

 { "min_playback_rate", "Set desired minimum playback rate",
OFFSET(min_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

 { "max_playback_rate", "Set desired maximum playback rate",
OFFSET(max_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

+{ "update_period", "Set the mpd update interval",
OFFSET(update_period), AV_OPT_TYPE_INT64, {.i64 = 0}, 0, INT64_MAX, E},

 { NULL },

};

 

-- 

2.17.1

 



0001-libavformat-dashenc.c-support-mpd-update-period.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when ldash on

2020-06-29 Thread Siyuan Huang
Add patch file,

 

From: Siyuan Huang  
Sent: 2020年6月30日 11:12
To: 'ffmpeg-devel@ffmpeg.org' 
Subject: [PATCH] libavformat/dashenc.c:kill latency when ldash on

 

From: Siyuan Huang mailto:saber.hu...@samsung.com>
>

 

disable write tmp file to let it using chunk downloading at last segment

 

Signed-off-by: Siyuan Huang mailto:saber.hu...@samsung.com> >

---

libavformat/dashenc.c | 2 ++

1 file changed, 2 insertions(+)

mode change 100644 => 100755 libavformat/dashenc.c

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

old mode 100644

new mode 100755

index 62193058d7..66a8a62294

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -2229,6 +2229,8 @@ static int dash_write_packet(AVFormatContext *s,
AVPacket *pkt)

 AVDictionary *opts = NULL;

const char *proto = avio_find_protocol_name(s->url);

 int use_rename = proto && !strcmp(proto, "file");

+if (c->ldash)

+use_rename = 0;

 if (os->segment_type == SEGMENT_TYPE_MP4)

 write_styp(os->ctx->pb);

 os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';

-- 

2.17.1

 



0001-libavformat-dashenc.c-kill-latency-when-ldash-on.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:support mpd update period

2020-06-29 Thread Siyuan Huang
From: Siyuan Huang 

 

according iso 23009-1 , in live cases , mpd refresh

period should be changeable

 

Signed-off-by: Siyuan Huang 

---

doc/muxers.texi   | 4 

libavformat/dashenc.c | 4 

2 files changed, 8 insertions(+)

mode change 100644 => 100755 doc/muxers.texi

 

diff --git a/doc/muxers.texi b/doc/muxers.texi

old mode 100644

new mode 100755

index b1389a3227..babbcb16af

--- a/doc/muxers.texi

+++ b/doc/muxers.texi

@@ -366,6 +366,10 @@ adjusting playback latency and buffer occupancy during
normal playback by client

Set the maximum playback rate indicated as appropriate for the purposes of
automatically

adjusting playback latency and buffer occupancy during normal playback by
clients.

+@item update_period @var{update_period}

+ Set the mpd update period ,for dynamic content.

+ The unit is second.

+

@end table

 @anchor{framecrc}

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index 66a8a62294..ef6e3d29c6 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -198,6 +198,7 @@ typedef struct DASHContext {

 int target_latency_refid;

 AVRational min_playback_rate;

 AVRational max_playback_rate;

+int64_t update_period;

} DASHContext;

 static struct codec_string {

@@ -1184,6 +1185,8 @@ static int write_manifest(AVFormatContext *s, int
final)

 char now_str[100];

 if (c->use_template && !c->use_timeline)

 update_period = 500;

+if (c->update_period)

+update_period = c->update_period;

 avio_printf(out, "\tminimumUpdatePeriod=\"PT%"PRId64"S\"\n",
update_period);

 if (!c->ldash)

 avio_printf(out,
"\tsuggestedPresentationDelay=\"PT%"PRId64"S\"\n", c->last_duration /
AV_TIME_BASE);

@@ -2382,6 +2385,7 @@ static const AVOption options[] = {

 { "target_latency", "Set desired target latency for Low-latency dash",
OFFSET(target_latency), AV_OPT_TYPE_DURATION, { .i64 = 0 }, 0, INT_MAX, E },

 { "min_playback_rate", "Set desired minimum playback rate",
OFFSET(min_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

 { "max_playback_rate", "Set desired maximum playback rate",
OFFSET(max_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

+{ "update_period", "Set the mpd update interval",
OFFSET(update_period), AV_OPT_TYPE_INT64, {.i64 = 0}, 0, INT64_MAX, E},

 { NULL },

};

-- 

2.17.1

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when ldash on

2020-06-29 Thread Siyuan Huang
From: Siyuan Huang 

 

disable write tmp file to let it using chunk downloading at last segment

 

Signed-off-by: Siyuan Huang 

---

libavformat/dashenc.c | 2 ++

1 file changed, 2 insertions(+)

mode change 100644 => 100755 libavformat/dashenc.c

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

old mode 100644

new mode 100755

index 62193058d7..66a8a62294

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -2229,6 +2229,8 @@ static int dash_write_packet(AVFormatContext *s,
AVPacket *pkt)

 AVDictionary *opts = NULL;

const char *proto = avio_find_protocol_name(s->url);

 int use_rename = proto && !strcmp(proto, "file");

+if (c->ldash)

+use_rename = 0;

 if (os->segment_type == SEGMENT_TYPE_MP4)

 write_styp(os->ctx->pb);

 os->filename[0] = os->full_path[0] = os->temp_path[0] = '\0';

-- 

2.17.1

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:add support to change mpd update interval

2020-06-10 Thread Siyuan Huang
I have trouble with mailman email system . 

My company email client can reply email . but looks mailman can not read out
text content . and it will add a warning picture automatically .

And third part email client such as outlook , though it works with text
content without warning pitcture. but It can not reply to specific mail loop
..

 

I'm trying make all works . But if you can give some suggestion for mailman
client . it's much better 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] Reply-To: RE: [Please Ignore] reply test

2020-06-10 Thread Siyuan Huang
Reply test

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:add support to change mpd update interval

2020-06-10 Thread Siyuan Huang
Hello Mr. Moritz

 

I update docs . and here is the latest patch .

 

 

Ps: when I test doc file , muxers.texi

It show some warning by 

root@saber:/ffmpeg# makeinfo --html --no-split -o muext.html doc/muxers.texi

doc/muxers.texi:1948: @ref reference to nonexistent node `concat'

doc/muxers.texi:2357: @ref reference to nonexistent node `Format

stream specifiers

 

look the doc have some issue before add my patch, please info related guys
update  it .

 

B.R

Huang Siyuan

 



0001-libavformat-dashenc.c-add-support-to-change-mpd-upda.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:add support to change mpd update interval

2020-06-10 Thread Siyuan Huang
Hello Mr. Moritz

 

I update docs . and here is the latest patch .

 

 

Ps: when I test doc file , muxers.texi

It show some warning by 

root@saber:/ffmpeg# makeinfo --html --no-split -o muext.html doc/muxers.texi

doc/muxers.texi:1948: @ref reference to nonexistent node `concat'

doc/muxers.texi:2357: @ref reference to nonexistent node `Format

stream specifiers

 

look the doc have some issue before add my patch, please info related guys
update  it .

 

B.R

Huang Siyuan

 



0001-libavformat-dashenc.c-add-support-to-change-mpd-upda.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [Please Ignore] reply test

2020-06-09 Thread Siyuan Huang
Reply in level2 child 

 

From: Siyuan Huang  
Sent: 2020年6月10日 12:58
To: 'ffmpeg-devel@ffmpeg.org' 
Subject: RE: [FFmpeg-devel] [Please Ignore] reply test

 

Reply test

 

From: Siyuan Huang mailto:saber.hu...@samsung.com>
> 
Sent: 2020年6月10日 12:56
To: 'ffmpeg-devel@ffmpeg.org' mailto:ffmpeg-devel@ffmpeg.org> >
Subject: [FFmpeg-devel] [Please Ignore] reply test

 

Just test how reply in Pipermail 0.09 (Mailman edition).

Please ignore it . 

Sorry to bother you 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [Please Ignore] reply test

2020-06-09 Thread Siyuan Huang
Reply test level 2

 

From: Siyuan Huang  
Sent: 2020年6月10日 12:58
To: 'ffmpeg-devel@ffmpeg.org' 
Subject: RE: [FFmpeg-devel] [Please Ignore] reply test

 

Reply test

 

From: Siyuan Huang mailto:saber.hu...@samsung.com>
> 
Sent: 2020年6月10日 12:56
To: 'ffmpeg-devel@ffmpeg.org' mailto:ffmpeg-devel@ffmpeg.org> >
Subject: [FFmpeg-devel] [Please Ignore] reply test

 

Just test how reply in Pipermail 0.09 (Mailman edition).

Please ignore it . 

Sorry to bother you 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [Please Ignore] reply test

2020-06-09 Thread Siyuan Huang
Reply test

 

From: Siyuan Huang  
Sent: 2020年6月10日 12:56
To: 'ffmpeg-devel@ffmpeg.org' 
Subject: [FFmpeg-devel] [Please Ignore] reply test

 

Just test how reply in Pipermail 0.09 (Mailman edition).

Please ignore it . 

Sorry to bother you 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [Please Ignore] reply test

2020-06-09 Thread Siyuan Huang
Just test how reply in Pipermail 0.09 (Mailman edition).

Please ignore it . 

Sorry to bother you 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:add support to change mpd update interval

2020-06-03 Thread Siyuan Huang
Hello Mr. Moritz

 

I have try finding recently doc update for dashenc.c , but I found no
related commit . 

For example in f63407a9863a0168cddfafebb6b8a4ba85716bbe commit , it add some
options , but no doc update in that commit .

Can you show which document should I update ?

I Only find following doc webpage , but there is nothing about options, just
for function , enum etc.

http://ffmpeg.org/doxygen/trunk/dashenc_8c.html

 

Huang Siyuan 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:add support to change mpd update interval

2020-06-03 Thread Siyuan Huang
Hello Mr. Michael

 

Update by your opinions



0001-libavformat-dashenc.c-add-support-to-change-mpd-upda.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] avformat/dashenc: reopen new http session for http_persistent

2020-06-01 Thread Siyuan Huang
Hello Chris Ribble

 

Looks you are working for http patch , 

Can you share a test script for it ?

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:add support to change mpd update interval

2020-06-01 Thread Siyuan Huang
Hello Mr.James 

 

For this , in dash if . there are tcs whose segment type is SegmentTemplate
,and minimumUpdatePeriod is not 50 . 

(eg: https://livesim.dashif.org/livesim/mup_30/testpic_2s/Manifest.mpd)

Cause there is no rules in dash spec says , in template cases , the live
miniupdateperiod should be 500s, 

So I modify my patch that , keep the 500 as the default minimumUpdatePeriod
value , but add option to set this value for template cases 

 

B.R

Huang Siyuan 



0001-libavformat-dashenc.c-add-support-to-change-mpd-upda.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:keep same with streaming , when live end

2020-06-01 Thread Siyuan Huang
Hello Mr.James Almer

 

Thanks for your opinion . patch is updated 

 



0001-PATCH-libavformat-dashenc.c-keep-same-with-streaming.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_drawtext.c:add support to generte ms level timestamp

2020-06-01 Thread Siyuan Huang
On 6/1/20, Siyuan Huang  wrote:

> Look email client will auto format the patch ,

> 

> 

> 

> So , patch file is attached ,

> 

> 

 

What is meaning of generte ?

 

 

--> this is used for generate  ms level watermark which burn in video . 

After that  it can test whole system latency (from camera to client ) or
said black box test . 

 

 

If there is other way which can burn ms level watermark , then  maybe  this
patch no need . 

 

Here is my script to generate live stream with watermark :

 

ffmpeg  -i inputfile -an -vcodec libx264 \

-vf
"drawtext=expansion=strftime:text='mspts':fontsize=50:fontcolor=yellow:box=1
:x=10:y=10:boxcolor=black@0.5:fontfile=./FreeSerif.ttf"

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_drawtext.c:add support to generte ms level timestamp

2020-06-01 Thread Siyuan Huang
Look email client will auto format the patch , 

 

So , patch file is attached ,



0001-libavfilter-vf_drawtext.c-add-support-to-generte-ms-.patch
Description: Binary data
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:make a sample Latency element

2020-05-29 Thread Siyuan Huang
according iso 23009-1 4th , one Latency element should contain

referenceId , target , max ,min atrributes

 

Signed-off-by: SiyuanHuang 

---

libavformat/dashenc.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index f71c1364b4..df081ce3ef 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -1211,7 +1211,7 @@ static int write_manifest(AVFormatContext *s, int
final)

 avio_printf(out, "\t\n");

 if (!final && c->target_latency && c->target_latency_refid >= 0) {

-avio_printf(out, "\t\ttarget_latency / 1000);

+avio_printf(out, "\t\ttarget_latency / 1000);

 if (s->nb_streams > 1)

 avio_printf(out, " referenceId=\"%d\"",
c->target_latency_refid);

 avio_printf(out, "/>\n");

-- 

2.17.1

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:keep same with streaming , when live end

2020-05-29 Thread Siyuan Huang
sidx box is used for single file cases , should not apply to streaming/live
case

 

Signed-off-by: SiyuanHuang 

---

libavformat/dashenc.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index df081ce3ef..2b2a77267b 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -1616,7 +1616,7 @@ static int dash_init(AVFormatContext *s)

 if (c->global_sidx)

 av_dict_set(, "movflags",
"+dash+delay_moov+global_sidx+skip_trailer", AV_DICT_APPEND);

 else

-av_dict_set(, "movflags",
"+dash+delay_moov+skip_trailer", AV_DICT_APPEND);

+av_dict_set(, "movflags",
"+dash+delay_moov+skip_sidx+skip_trailer", AV_DICT_APPEND);

 }

 if (os->frag_type == FRAG_TYPE_EVERY_FRAME)

 av_dict_set(, "movflags", "+frag_every_frame",
AV_DICT_APPEND);

-- 

2.17.1

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:add support to change mpd update interval

2020-05-29 Thread Siyuan Huang
according iso 23009-1 , in live cases , mpd refresh period should be
changeable

and default 500 seconds is too long , in normal live cases , it should be
2~5 seconds

 

Signed-off-by: SiyuanHuang 

---

libavformat/dashenc.c | 6 +-

1 file changed, 5 insertions(+), 1 deletion(-)

mode change 100644 => 100755 libavformat/dashenc.c

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

old mode 100644

new mode 100755

index 0cf0df50ef..6f8de5762b

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -196,6 +196,7 @@ typedef struct DASHContext {

 int target_latency_refid;

 AVRational min_playback_rate;

 AVRational max_playback_rate;

+int64_t update_period;

} DASHContext;

 static struct codec_string {

@@ -1177,7 +1178,9 @@ static int write_manifest(AVFormatContext *s, int
final)

 int64_t update_period = c->last_duration / AV_TIME_BASE;

 char now_str[100];

 if (c->use_template && !c->use_timeline)

-update_period = 500;

+update_period = 5;

+if (c->update_period)

+update_period = c->update_period;

 avio_printf(out, "\tminimumUpdatePeriod=\"PT%"PRId64"S\"\n",
update_period);

 if (!c->ldash)

 avio_printf(out,
"\tsuggestedPresentationDelay=\"PT%"PRId64"S\"\n", c->last_duration /
AV_TIME_BASE);

@@ -2368,6 +2371,7 @@ static const AVOption options[] = {

 { "dvb_dash", "DVB-DASH profile", 0, AV_OPT_TYPE_CONST, {.i64 =
MPD_PROFILE_DVB }, 0, UINT_MAX, E, "mpd_profile"},

 { "http_opts", "HTTP protocol options", OFFSET(http_opts),
AV_OPT_TYPE_DICT, { .str = NULL }, 0, 0, E },

 { "target_latency", "Set desired target latency for Low-latency dash",
OFFSET(target_latency), AV_OPT_TYPE_DURATION, { .i64 = 0 }, 0, INT_MAX, E },

+{ "update_period", "Set the mpd update interval",
OFFSET(update_period),AV_OPT_TYPE_INT,{ .i64 = 0},0 ,INT_MAX,E},

 { "min_playback_rate", "Set desired minimum playback rate",
OFFSET(min_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

 { "max_playback_rate", "Set desired maximum playback rate",
OFFSET(max_playback_rate), AV_OPT_TYPE_RATIONAL, { .dbl = 1.0 }, 0.5, 1.5, E
},

 { NULL },

-- 

2.17.1

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavformat/dashenc.c:add mimetype

2020-05-29 Thread Siyuan Huang
according iso 23009-1 , mimetype is mandatory attibutes, must contain it

 

Signed-off-by: SiyuanHuang 

---

libavformat/dashenc.c | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index 6f8de5762b..f71c1364b4 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -807,8 +807,8 @@ static int write_adaptation_set(AVFormatContext *s,
AVIOContext *out, int as_ind

 AVDictionaryEntry *lang, *role;

 int i;

-avio_printf(out, "\t\tid, as->media_type == AVMEDIA_TYPE_VIDEO ? "video" :
"audio");

+avio_printf(out, "\t\tid, as->media_type == AVMEDIA_TYPE_VIDEO ? "video" :
"audio",as->media_type == AVMEDIA_TYPE_VIDEO ? "video" : "audio");

 if (as->media_type == AVMEDIA_TYPE_VIDEO && as->max_frame_rate.num &&
!as->ambiguous_frame_rate && av_cmp_q(as->min_frame_rate,
as->max_frame_rate) < 0)

 avio_printf(out, " maxFrameRate=\"%d/%d\"", as->max_frame_rate.num,
as->max_frame_rate.den);

 else if (as->media_type == AVMEDIA_TYPE_VIDEO && as->max_frame_rate.num
&& !as->ambiguous_frame_rate && !av_cmp_q(as->min_frame_rate,
as->max_frame_rate))

-- 

2.17.1

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] libavfilter/vf_drawtext.c:add support to generte ms level timestamp

2020-05-29 Thread Siyuan Huang
 

for test latency , need sub-seconds level timestamp watermark

 

Signed-off-by: SiyuanHuang 

---

libavfilter/vf_drawtext.c | 20 ++--

1 file changed, 18 insertions(+), 2 deletions(-)

mode change 100644 => 100755 libavfilter/vf_drawtext.c

 

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c

old mode 100644

new mode 100755

index abe1ca6c35..cfd08b4092

--- a/libavfilter/vf_drawtext.c

+++ b/libavfilter/vf_drawtext.c

@@ -61,6 +61,8 @@

#include "internal.h"

#include "video.h"

+#include 

+#include 

#if CONFIG_LIBFRIBIDI

#include 

#endif

@@ -1322,8 +1324,22 @@ static int draw_text(AVFilterContext *ctx, AVFrame
*frame,

 return ret;

 break;

 case EXP_STRFTIME:

-localtime_r(, );

-av_bprint_strftime(bp, s->text, );

+if(NULL!=av_stristr(s->text,"mspts")) {

+struct tm *ptm;

+struct timeb stTimeb;

+static char szTime[24];

+

+ftime();

+ptm = localtime();

+sprintf(szTime, "%04d-%02d-%02d %02d:%02d:%02d.%03d",

+ptm->tm_year+1900,ptm->tm_mon + 1, ptm->tm_mday,
ptm->tm_hour, ptm->tm_min, ptm->tm_sec, stTimeb.millitm);

+szTime[23] = 0;

+av_bprintf(bp, "%s", szTime);

+} else {

+localtime_r(, );

+av_bprint_strftime(bp, s->text, );

+}

+

 break;

 }

-- 

2.17.1

 

 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [Please Ignore] send test

2020-05-29 Thread Siyuan Huang/MM Platform Lab /SRC-Nanjing/Engineer/Samsung Electronics
Test content 

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [Please Ignore] send test

2020-05-29 Thread Siyuan Huang
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".