[FFmpeg-devel] [PATCH v2 2/2] avformat/dashenc: Persistent HTTP connections supported as an option

2017-12-16 Thread Karthick J
From: Karthick Jeyapal --- doc/muxers.texi | 2 ++ libavformat/dashenc.c | 67 +-- 2 files changed, 56 insertions(+), 13 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index 3d0c7bf..d6415db 100644 --- a/doc/muxers.texi +++ b/d

[FFmpeg-devel] [PATCH] avformat/hlsenc: Fix a memory leak when http_persistent is 1

2017-12-18 Thread Karthick J
From: Karthick Jeyapal --- libavformat/hlsenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index e3442c3..5ee28ea 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -1918,6 +1918,8 @@ static int hls_write_trailer(struct AVFormat

[FFmpeg-devel] [PATCH] avformat/dashenc: Fix the EXT-X-TARGETDURATION as per the hls specification

2017-12-21 Thread Karthick J
From: Karthick Jeyapal The HLS specification states the following about EXT-X-TARGETDURATION 4.3.3.1. EXT-X-TARGETDURATION The EXT-X-TARGETDURATION tag specifies the maximum Media Segment duration. The EXTINF duration of each Media Segment in the Playlist file, when rounded to the ne

[FFmpeg-devel] [PATCH 1/2] avformat/dashenc: Fix the EXT-X-TARGETDURATION as per the hls specification

2017-12-21 Thread Karthick J
From: Karthick Jeyapal The HLS specification states the following about EXT-X-TARGETDURATION 4.3.3.1. EXT-X-TARGETDURATION The EXT-X-TARGETDURATION tag specifies the maximum Media Segment duration. The EXTINF duration of each Media Segment in the Playlist file, when rounded to the ne

[FFmpeg-devel] [PATCH 2/2] avformat/hlsenc: Moved hls_get_int_from_double() function locally to hlsenc.c

2017-12-21 Thread Karthick J
From: Karthick Jeyapal dashenc no longer needs this function. --- libavformat/hlsenc.c | 5 + libavformat/hlsplaylist.h | 5 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 29fc1d4..14a9a12 100644 --- a/libavformat/h

[FFmpeg-devel] [PATCH 2/2] avformat/hlsenc: Signal http end of chunk explicitly during hlsenc_io_close()

2017-12-21 Thread Karthick J
From: Karthick Jeyapal Currently http end of chunk is called implicitly in hlsenc_io_open(). This mean playlists http writes would have to wait upto a segment duration to signal end of chunk causing delays. This patch will fix that problem and improve performance. --- libavformat/hlsenc.c | 5 +

[FFmpeg-devel] [PATCH 1/2] avformat/http: Added a library-internal API for signalling end of chunk

2017-12-21 Thread Karthick J
From: Karthick Jeyapal Right now there is no explicit way to signal end of chunk, when http_multiple is set. ff_http_do_new_request() function implicitly signals end of chunk. But that could be too late for certain applications. Hence added a new function ff_http_signal_end_of_chunk() which cou

[FFmpeg-devel] [PATCH v2 1/2] avformat/http: Avoid calling http_shutdown() if end of chunk is signalled already

2017-12-22 Thread Karthick J
From: Karthick Jeyapal --- libavformat/http.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index cf86adc..4635a9a 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -307,9 +307,11 @@ int ff_http_do_new_request(URLCon

[FFmpeg-devel] [PATCH v2 2/2] avformat/hlsenc: Signal http end of chunk(http_shutdown) during hlsenc_io_close()

2017-12-22 Thread Karthick J
From: Karthick Jeyapal Currently http end of chunk is signalled implicitly in hlsenc_io_open(). This mean playlists http writes would have to wait upto a segment duration to signal end of chunk causing delays. This patch will fix that problem and improve performance. --- libavformat/hlsenc.c |

[FFmpeg-devel] [PATCH 2/3] avformat/hlsplaylist: Audio rendition's name and defaultness made configurable

2017-12-26 Thread Karthick J
From: Karthick Jeyapal --- libavformat/hlsenc.c | 2 +- libavformat/hlsplaylist.c | 5 +++-- libavformat/hlsplaylist.h | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index fe531fb..5cff3b4 100644 --- a/libavformat/hlsenc.c

[FFmpeg-devel] [PATCH 1/3] avformat/hlsenc: Modularized audio rendition playlist write to allow reuse

2017-12-26 Thread Karthick J
From: Karthick Jeyapal --- libavformat/hlsenc.c | 6 ++ libavformat/hlsplaylist.c | 9 + libavformat/hlsplaylist.h | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 74f66ce..fe531fb 100644 --- a/libavformat/h

[FFmpeg-devel] [PATCH 3/3] avformat/dashenc: Addition of #EXT-X-MEDIA tag and AUDIO attribute

2017-12-26 Thread Karthick J
From: Karthick Jeyapal This is required for AV playout from master.m3u8. Otherwise master.m3u8 lists only video-only and/or audio-only streams. --- libavformat/dashenc.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/libavformat/dashenc.c b/libavfor

[FFmpeg-devel] [PATCH 1/2] avformat/dashenc: Set VP9 codec string with profile, level and bitdepth

2018-04-18 Thread Karthick J
From: Karthick Jeyapal Otherwise some versions of chrome browser returns "codec not supported" error --- libavformat/dashenc.c | 79 ++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c ind

[FFmpeg-devel] [PATCH 2/2] avformat/dashenc: Set mp4 as the default format for VP9

2018-04-18 Thread Karthick J
From: Karthick Jeyapal There is a separate muxer(webmdashenc.c) for supporting VP9+webm output in DASH. Hence in this muxer we will focus on supporting VP9 in MP4 Have verified playout support of VP9+MP4 in Chrome and Firefox. --- libavformat/dashenc.c | 3 +-- 1 file changed, 1 insertion(+), 2

[FFmpeg-devel] [PATCH v2 2/3] avformat/dashenc: Set VP9 codec string with profile, level and bitdepth

2018-04-22 Thread Karthick J
From: Karthick Jeyapal Otherwise some versions of chrome browser returns "codec not supported" error --- libavformat/dashenc.c | 34 -- 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index fefe3ce..a5f5

[FFmpeg-devel] [PATCH v2 1/3] avformat/vpcc: Calculate VP9 level from Luma's Sample rate and Picture size

2018-04-22 Thread Karthick J
From: Karthick Jeyapal --- libavformat/vpcc.c | 53 ++--- libavformat/vpcc.h | 2 +- 2 files changed, 51 insertions(+), 4 deletions(-) diff --git a/libavformat/vpcc.c b/libavformat/vpcc.c index 66d0df6..7951448 100644 --- a/libavformat/vpcc.c +++

[FFmpeg-devel] [PATCH v2 3/3] avformat/dashenc: Set mp4 as the default format for VP9

2018-04-22 Thread Karthick J
From: Karthick Jeyapal There is a separate muxer(webmdashenc.c) for supporting VP9+webm output in DASH. Hence in this muxer we will focus on supporting VP9 in MP4 Have verified playout support of VP9+MP4 in Chrome and Firefox. --- libavformat/dashenc.c | 3 +-- 1 file changed, 1 insertion(+), 2

[FFmpeg-devel] [PATCH 1/2] avformat/dashenc: Added option for Segment file format

2018-05-03 Thread Karthick J
From: Karthick Jeyapal Right now segment file format is chosen to be either mp4 or webm based on the codec format. This patch makes that choice configurable by the user, instead of being decided by the muxer. --- doc/muxers.texi | 8 libavformat/dashenc.c | 48 +

[FFmpeg-devel] [PATCH 2/2] avformat/dashenc: Added a warning for incorrect segment name extension

2018-05-03 Thread Karthick J
From: Karthick Jeyapal Applicable only to webm output format. By default all the segment filenames end with .m4s extension. When someone chooses webm output format, we recommend they also override the relevant segment name options to end with .webm extension. This patch will issue a warning for

[FFmpeg-devel] [PATCH] avformat/dashenc: Add documentation for http method option

2018-05-06 Thread Karthick J
From: Karthick Jeyapal --- doc/muxers.texi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/muxers.texi b/doc/muxers.texi index 2429f8e..ea80296 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -252,6 +252,8 @@ DASH-templated name to used for the initialization segment. Default is

[FFmpeg-devel] [PATCH] avformat/hlsenc: Add CODECS attribute to master playlist

2017-12-28 Thread Karthick J
From: Karthick Jeyapal --- libavformat/dashenc.c | 2 +- libavformat/hlsenc.c | 67 ++- libavformat/hlsplaylist.c | 5 +++- libavformat/hlsplaylist.h | 3 ++- 4 files changed, 73 insertions(+), 4 deletions(-) diff --git a/libavformat/dashe

[FFmpeg-devel] [PATCH v2] avformat/hlsenc: Add CODECS attribute to master playlist

2017-12-28 Thread Karthick J
From: Karthick Jeyapal --- libavformat/dashenc.c | 2 +- libavformat/hlsenc.c | 67 ++- libavformat/hlsplaylist.c | 5 +++- libavformat/hlsplaylist.h | 3 ++- 4 files changed, 73 insertions(+), 4 deletions(-) diff --git a/libavformat/dashe

[FFmpeg-devel] [PATCH v3] avformat/hlsenc: Add CODECS attribute to master playlist

2017-12-28 Thread Karthick J
From: Karthick Jeyapal --- libavformat/dashenc.c | 2 +- libavformat/hlsenc.c | 67 ++- libavformat/hlsplaylist.c | 5 +++- libavformat/hlsplaylist.h | 3 ++- 4 files changed, 73 insertions(+), 4 deletions(-) diff --git a/libavformat/dashe

[FFmpeg-devel] [PATCH 1/2] avformat/dashenc: Fix a resource leak when http persistent in enabled

2018-01-01 Thread Karthick J
From: Karthick Jeyapal --- libavformat/dashenc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 3345b89..c4c112b 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1,6 +1,7 @@ /* * MPEG-DASH ISO BMFF segment

[FFmpeg-devel] [PATCH 2/2] avformat/dashenc: Signal http end of chunk(http_shutdown) explicitly

2018-01-01 Thread Karthick J
From: Karthick Jeyapal Currently http end of chunk is signalled implicitly in dashenc_io_open(). This mean playlists http writes would have to wait upto a segment duration to signal end of chunk causing delays. This patch will fix that problem and improve performance. --- libavformat/dashenc.c

[FFmpeg-devel] [PATCH v2 1/2] avformat/dashenc: Fix a resource leak when http persistent in enabled

2018-01-02 Thread Karthick J
From: Karthick Jeyapal --- libavformat/dashenc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 3345b89..2e4ff67 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1,6 +1,7 @@ /* * MPEG-DASH ISO BMFF segmenter * Co

[FFmpeg-devel] [PATCH v2 2/2] avformat/dashenc: Signal http end of chunk(http_shutdown) explicitly

2018-01-02 Thread Karthick J
From: Karthick Jeyapal Currently http end of chunk is signalled implicitly in dashenc_io_open(). This mean playlists http writes would have to wait upto a segment duration to signal end of chunk causing delays. This patch will fix that problem and improve performance. --- libavformat/dashenc.c

[FFmpeg-devel] [PATCH] MAINTAINERS: Adding myself as dashenc maintainer

2018-01-20 Thread Karthick J
From: Karthick Jeyapal If somebody else wants to maintain dashenc either now or in future, I am absolutely fine with giving up this responsibility anytime. But till then we need a maintainer for dashenc, and I am volunteering for that task. --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)

[FFmpeg-devel] [PATCH] avformat/dashenc: Removed usage of deprecated 'filename' variable

2018-02-23 Thread Karthick J
From: Karthick Jeyapal --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index d6474f3..ebff3c5 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1307,7 +1307,7 @@ static int dash_write_pac

[FFmpeg-devel] [PATCH v2 1/2] avformat/dashenc: Added option for Segment file format

2018-05-13 Thread Karthick J
From: Karthick Jeyapal Right now segment file format is chosen to be either mp4 or webm based on the codec format. This patch makes that choice configurable by the user, instead of being decided by the muxer. Also with this change per-stream choice segment file format(based on codec type) is

[FFmpeg-devel] [PATCH v2 2/2] avformat/dashenc: Added a warning for incorrect segment name extension

2018-05-13 Thread Karthick J
From: Karthick Jeyapal Applicable only to webm output format. By default all the segment filenames end with .m4s extension. When someone chooses webm output format, we recommend they also override the relevant segment name options to end with .webm extension. This patch will issue a warning for

[FFmpeg-devel] [PATCH] avformat/dashenc: Add CODECS tag to HLS master playlist

2018-08-21 Thread Karthick J
From: Karthick Jeyapal --- libavformat/dashenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index ae57fd5..229a56e 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -909,7 +909,8 @@ static int write_manifest

[FFmpeg-devel] [PATCH] avformat/dashenc : Fix streaming mode support for webm output

2019-04-08 Thread Karthick J via ffmpeg-devel
--- libavformat/dashenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index f8d71166d4..9dd520787f 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1750,10 +1750,10 @@ static int dash_write_packet(AVFormatC

[FFmpeg-devel] [PATCH] avformat/dashenc: Disable streaming for webm output

2019-04-09 Thread Karthick J via ffmpeg-devel
Currently streaming for webm output doesn't work. Disabling explicitly will make sure that the manifest will get generated correctly. --- libavformat/dashenc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index f8d71166d4..d8dcbc1230 10064

[FFmpeg-devel] [PATCH] avformat/dashenc: Fix a bug with writing "final" manifest

2019-04-16 Thread Karthick J via ffmpeg-devel
This bug was introduced in the commit 951561b64ee6c11f01daedd9dcf73276cc1e765b --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 5f1333e436..b88d4b3496 100644 --- a/libavformat/dashenc.c +++ b/libavform

[FFmpeg-devel] [PATCH 1/2] avformat/movenc: Fix skip_trailer when global_sidx is enabled

2019-03-24 Thread Karthick J via ffmpeg-devel
--- libavformat/movenc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 8969d5b170..f46cbc5ea5 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -6745,9 +6745,8 @@ static int mov_write_trailer(AVFormatContext

[FFmpeg-devel] [PATCH 2/2] avformat/dashenc: Add support for Global SIDX

2019-03-24 Thread Karthick J via ffmpeg-devel
--- doc/muxers.texi | 3 ++ libavformat/dashenc.c | 119 -- 2 files changed, 84 insertions(+), 38 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index aac7d94edf..83ae017d6c 100644 --- a/doc/muxers.texi +++ b/doc/muxers.texi @@ -293,6 +

<    1   2