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

Siyuan Huang saber.huang at samsung.com
Tue Jun 30 08:37:22 EEST 2020


Update with no file mode changes :
  
From 6d08df73f9cb8cc8d8dfa3b974232f0c0a2b11f8 Mon Sep 17 00:00:00 2001
From: Siyuan Huang <saber.huang at samsung.com>
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 <saber.huang at samsung.com>
---
 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 <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of mypopy at gmail.com
Sent: 2020年6月30日 11:53
To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] libavformat/dashenc.c:kill latency when ldash on

On Tue, Jun 30, 2020 at 11:12 AM Siyuan Huang <saber.huang at samsung.com> wrote:
>
> From: Siyuan Huang <saber.huang at samsung.com>
>
>
>
> disable write tmp file to let it using chunk downloading at last 
> segment
>
>
>
> Signed-off-by: Siyuan Huang <saber.huang at 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
>
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 at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-dashenc.c-kill-latency-when-ldash-on.patch
Type: application/octet-stream
Size: 2537 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200630/82de9de7/attachment.obj>


More information about the ffmpeg-devel mailing list