[FFmpeg-devel] [PATCH] avformat/hls: add supporting fMP4(CMAF) format to seek on HLS demuxer

2020-07-15 Thread DK
Signed-off-by: Dongwon Kim --- libavformat/hls.c | 67 +++ 1 file changed, 67 insertions(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index ba17c4ed96..561b42ea6b 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -2139,6 +2139,68 @@ s

Re: [FFmpeg-devel] [PATCH] libavutil/video_enc_params: add block type

2020-07-15 Thread Lynne
Jul 16, 2020, 00:06 by s...@jkqxz.net: > On 15/07/2020 18:43, Yongle Lin wrote: > >> add block type field to AVVideoBlockParams so we could either export or >> visualize it later. >> --- >> libavutil/video_enc_params.h | 19 +++ >> 1 file changed, 19 insertions(+) >> >> diff --gi

Re: [FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-15 Thread Wang Bin
Timo Rothenpieler 于2020年7月15日周三 下午11:16写道: > On 15.07.2020 16:34, wangbin wrote: > > From: wang-bin > > > > There are reserved bit fields in nvEncoderAPI.h structs, so driver's abi > > is stable. Requesting runtime version of these structs should work. I've > > compared 7.0~9.x headers, and conf

Re: [FFmpeg-devel] [PATCH 3/3] nvenc: check sdk 10.0 ptrs at runtime

2020-07-15 Thread Wang Bin
Timo Rothenpieler 于2020年7月15日周三 下午11:19写道: > On 15.07.2020 16:34, wangbin wrote: > > From: wang-bin > > > > --- > > libavcodec/nvenc.c | 11 ++- > > 1 file changed, 6 insertions(+), 5 deletions(-) > > > > diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c > > index cec59f02f3..c421c

Re: [FFmpeg-devel] [PATCH] lavf/srt: fix build fail when used the libsrt 1.4.1

2020-07-15 Thread myp...@gmail.com
On Tue, Jul 14, 2020 at 9:47 PM Moritz Barsnick wrote: > > On Sun, Jul 12, 2020 at 22:44:46 +0800, myp...@gmail.com wrote: > > Maybe I give an inaccurate description in the commit message, in fact, > > libsrt 1.4.1 remove the SRTO_STRICTENC/SRTO_SMOOTHER option, it's will > > lead to FFmpeg build

Re: [FFmpeg-devel] [PATCH] libavcodec/h264dec: export block type in H.264

2020-07-15 Thread Lynne
Jul 15, 2020, 22:05 by yongle.lin...@gmail.com: > --- > libavcodec/h264dec.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c > index 1e2ca68449..b3de5290d0 100644 > --- a/libavcodec/h264dec.c > +++ b/libavcodec/h264dec.c > @@ -8

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread lance . lmwang
On Wed, Jul 15, 2020 at 06:02:43PM +0100, Kieran Kunhya wrote: > On Wed, 15 Jul 2020 at 16:52, wrote: > > > On Wed, Jul 15, 2020 at 04:16:38PM +0100, Kieran Kunhya wrote: > > > If you look a few lines above, we already set the timecode side data. > > > > > > > are you saying av_frame_new_side_dat

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread lance . lmwang
On Wed, Jul 15, 2020 at 07:01:33PM +0200, Hendrik Leppkes wrote: > On Wed, Jul 15, 2020 at 5:52 PM wrote: > > > > On Wed, Jul 15, 2020 at 04:16:38PM +0100, Kieran Kunhya wrote: > > > If you look a few lines above, we already set the timecode side data. > > > > > > > are you saying av_frame_new_sid

Re: [FFmpeg-devel] [PATCH] libavutil/video_enc_params: add block type

2020-07-15 Thread Mark Thompson
On 16/07/2020 00:35, Lynne wrote: Jul 16, 2020, 00:06 by s...@jkqxz.net: On 15/07/2020 18:43, Yongle Lin wrote: add block type field to AVVideoBlockParams so we could either export or visualize it later. --- libavutil/video_enc_params.h | 19 +++ 1 file changed, 19 inserti

Re: [FFmpeg-devel] [PATCH] libavcodec/h264dec: export block type in H.264

2020-07-15 Thread Mark Thompson
On 15/07/2020 22:05, Yongle Lin wrote: --- libavcodec/h264dec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 1e2ca68449..b3de5290d0 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -816,6 +816,20 @@ static

[FFmpeg-devel] [PATCH] libavcodec/vp9: export block type in VP9

2020-07-15 Thread Yongle Lin
--- libavcodec/vp9.c | 10 ++ libavcodec/vp9block.c | 6 ++ libavcodec/vp9dec.h | 4 3 files changed, 20 insertions(+) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index fd0bab14a2..6bd6bd4fa9 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -1541,6 +1541,16 @

Re: [FFmpeg-devel] [PATCH] libavutil/video_enc_params: add block type

2020-07-15 Thread Mark Thompson
On 15/07/2020 18:43, Yongle Lin wrote: add block type field to AVVideoBlockParams so we could either export or visualize it later. --- libavutil/video_enc_params.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavutil/video_enc_params.h b/libavutil/video_enc_param

[FFmpeg-devel] [PATCH] libavcodec/h264dec: export block type in H.264

2020-07-15 Thread Yongle Lin
--- libavcodec/h264dec.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 1e2ca68449..b3de5290d0 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -816,6 +816,20 @@ static int h264_export_enc_params(AVFrame *f, H264

[FFmpeg-devel] [PATCH] libavutil/video_enc_params: add block type

2020-07-15 Thread Yongle Lin
add block type field to AVVideoBlockParams so we could either export or visualize it later. --- libavutil/video_enc_params.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/libavutil/video_enc_params.h b/libavutil/video_enc_params.h index 43fa443154..8bf5f240c9 100644 ---

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread Hendrik Leppkes
On Wed, Jul 15, 2020 at 5:52 PM wrote: > > On Wed, Jul 15, 2020 at 04:16:38PM +0100, Kieran Kunhya wrote: > > If you look a few lines above, we already set the timecode side data. > > > > are you saying av_frame_new_side_data() above? that's total different, in > fact, > I'm try to use the same

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread Kieran Kunhya
On Wed, 15 Jul 2020 at 16:52, wrote: > On Wed, Jul 15, 2020 at 04:16:38PM +0100, Kieran Kunhya wrote: > > If you look a few lines above, we already set the timecode side data. > > > > are you saying av_frame_new_side_data() above? that's total different, in > fact, > I'm try to use the same way

Re: [FFmpeg-devel] [PATCH] avformat/mov: fix atom type to string conversion

2020-07-15 Thread Zhao Zhili
Ping for review, thanks! > On Jul 12, 2020, at 12:26 AM, Zhao Zhili wrote: > > The conversion was endian-dependent, and it may contain non-printable > characters. > --- > libavformat/mov.c | 9 - > 1 file changed, 4 insertions(+), 5 deletions(-) > > diff --git a/libavformat/mov.c b/libav

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread lance . lmwang
On Wed, Jul 15, 2020 at 04:16:38PM +0100, Kieran Kunhya wrote: > If you look a few lines above, we already set the timecode side data. > are you saying av_frame_new_side_data() above? that's total different, in fact, I'm try to use the same way with ff_add_cpb_side_data(), it'll put TC in the c

Re: [FFmpeg-devel] [PATCH] avformat/riffenc: indicate storage of flipped RGB bitmaps

2020-07-15 Thread Gyan Doshi
On 14-07-2020 01:29 pm, Gyan Doshi wrote: Plan to push in 24h. Pushed as 1ec2b3de5a074ccce555e33d7f2826d963d7 Gyan ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit lin

Re: [FFmpeg-devel] [PATCH 3/3] nvenc: check sdk 10.0 ptrs at runtime

2020-07-15 Thread Timo Rothenpieler
On 15.07.2020 16:34, wangbin wrote: From: wang-bin --- libavcodec/nvenc.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index cec59f02f3..c421c292c8 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1248,11

Re: [FFmpeg-devel] [PATCH v3] avcodec/v4l2_m2m_dec: Remove redundant packet and fix double free

2020-07-15 Thread Andriy Gelman
On Mon, 13. Jul 12:55, James Almer wrote: > On 7/12/2020 8:11 PM, Andriy Gelman wrote: > > > > The patch has been on the ml for a long time so I'd like to apply it soon. > > It gets rid of a seg fault in: > > https://trac.ffmpeg.org/ticket/8774 > > > > Any objections? > > If you maintain this c

Re: [FFmpeg-devel] [PATCH 2/3] nvenc: check runtime 9.1 function ptrs before use

2020-07-15 Thread Timo Rothenpieler
On 15.07.2020 16:34, wangbin wrote: From: wang-bin --- libavcodec/nvenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index ac35cb9f48..cec59f02f3 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -140,7 +140,7 @@

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread Kieran Kunhya
If you look a few lines above, we already set the timecode side data. Sent from my mobile device On Wed, 15 Jul 2020, 14:44 , wrote: > On Wed, Jul 15, 2020 at 09:16:16AM +0100, Kieran Kunhya wrote: > > On Wed, 15 Jul 2020 at 02:19, wrote: > > > > > On Wed, Jul 15, 2020 at 12:54:35AM +0100, Kie

Re: [FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-15 Thread Timo Rothenpieler
On 15.07.2020 16:34, wangbin wrote: From: wang-bin There are reserved bit fields in nvEncoderAPI.h structs, so driver's abi is stable. Requesting runtime version of these structs should work. I've compared 7.0~9.x headers, and confirmed on some devices. --- libavcodec/nvenc.c | 72 +++

Re: [FFmpeg-devel] [PATCH v2 1/3] libavutil/imgutils: add utility to get plane sizes

2020-07-15 Thread James Almer
On 7/15/2020 4:06 AM, Nicolas George wrote: > Michael Niedermayer (12020-07-14): >> Let me phrase my suggestion in a more high level sense >> >> Currently the functions use int for lots of cases where they should not >> ultimately we want the functions to use more correct types for linesize >> size

[FFmpeg-devel] [PATCH 3/3] nvenc: check sdk 10.0 ptrs at runtime

2020-07-15 Thread wangbin
From: wang-bin --- libavcodec/nvenc.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index cec59f02f3..c421c292c8 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1248,11 +1248,12 @@ static av_cold int nvenc_set

[FFmpeg-devel] [PATCH 2/3] nvenc: check runtime 9.1 function ptrs before use

2020-07-15 Thread wangbin
From: wang-bin --- libavcodec/nvenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index ac35cb9f48..cec59f02f3 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -140,7 +140,7 @@ static int nvenc_print_error(AVCodecCont

[FFmpeg-devel] [PATCH 1/3] nvenc: use runtime api version to support old drivers

2020-07-15 Thread wangbin
From: wang-bin There are reserved bit fields in nvEncoderAPI.h structs, so driver's abi is stable. Requesting runtime version of these structs should work. I've compared 7.0~9.x headers, and confirmed on some devices. --- libavcodec/nvenc.c | 72 ++ li

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread lance . lmwang
On Wed, Jul 15, 2020 at 09:16:16AM +0100, Kieran Kunhya wrote: > On Wed, 15 Jul 2020 at 02:19, wrote: > > > On Wed, Jul 15, 2020 at 12:54:35AM +0100, Kieran Kunhya wrote: > > > On Wed, 15 Jul 2020 at 00:36, wrote: > > > > > > > From: Limin Wang > > > > > > > > Signed-off-by: Limin Wang > > > >

Re: [FFmpeg-devel] [PATCH v2] avformat/crypto.c: remove unnecessary code

2020-07-15 Thread Steven Liu
Tomas Härdin 于2020年7月14日周二 下午4:48写道: > > tis 2020-07-14 klockan 14:23 +0800 skrev Steven Liu: > > Because the newpos variable is set value before use it. > > The newpos variable declared at the head partition of crypto_seek. > > Make the code clean. > > > > Signed-off-by: Steven Liu > > --- > >

Re: [FFmpeg-devel] [RFC][GSoC][PATCH v1 4/6] ffplay: add an option to enable abr

2020-07-15 Thread Steven Liu
Hongcheng Zhong 于2020年7月15日周三 下午4:38写道: > > From: spartazhc > > Add abr option, ffplay can play hls using abr by: > ffplay -i http://xxx/master.m3u8 -abr > > Structure ABRList is added to save stream type and index, it is > used to allow packet_queue_put function to put pkt which from same > type

Re: [FFmpeg-devel] [RFC][GSoC][PATCH v1 5/6] avformat/utils: add av_packet_buffer_filter to filter packet_buffer

2020-07-15 Thread Steven Liu
Hongcheng Zhong 于2020年7月15日周三 下午4:38写道: > > From: spartazhc > > Add av_packet_buffer_filter to remove AVPackets whose stream_index is not > in st_index list. st_index has length of AVMEDIA_TYPE_NB, contains > the stream_index of all these media types. > > Generally s->internal->packet_buffer may

Re: [FFmpeg-devel] [RFC][GSoC][PATCH v1 3/6] avformat/hls: use abr to switch streams

2020-07-15 Thread Steven Liu
Hongcheng Zhong 于2020年7月15日周三 下午4:38写道: > > From: spartazhc > > When abr is enable, it will take over the task to call http to > download segments, and will return a switch-request for hls to > switch streams. > For reason not to waste segments that have been downloaded, > switch will become effe

[FFmpeg-devel] nvenc: support old drivers

2020-07-15 Thread Wang Bin
0003-nvenc-check-sdk-10.0-ptrs-at-runtime.patch Description: Binary data 0002-nvenc-check-runtime-9.1-function-ptrs-before-use.patch Description: Binary data 0001-nvenc-use-runtime-api-version-to-support-old-drivers.patch Description: Binary data _

Re: [FFmpeg-devel] [RFC][GSoC][PATCH v1 1/6] avformat/abr: Adaptive Bitrate support

2020-07-15 Thread Steven Liu
Hongcheng Zhong 于2020年7月15日周三 下午4:37写道: > > From: spartazhc > > Add abr module for hls/dash. > > v1 fixed: > 1. add an "ff" prefix to the protocol name to mark it internal. > 2. use 1.2f for float constant 1.2. > 3. simplify abr_seek for we just need AVSEEK_SIZE only. > > Signed-off-by: spartazhc

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 features support

2020-07-15 Thread Soft Works
> -Original Message- > From: ffmpeg-devel On Behalf Of > Hendrik Leppkes > Sent: Wednesday, July 15, 2020 9:14 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 > features support > > On Wed, Ju

[FFmpeg-devel] [RFC][GSoC][PATCH v1 4/6] ffplay: add an option to enable abr

2020-07-15 Thread Hongcheng Zhong
From: spartazhc Add abr option, ffplay can play hls using abr by: ffplay -i http://xxx/master.m3u8 -abr Structure ABRList is added to save stream type and index, it is used to allow packet_queue_put function to put pkt which from same type(for example: video pkt) but different stream index to qu

[FFmpeg-devel] [RFC][GSoC][PATCH v1 6/6] ffplay: add av_packet_buffer_filter to filter packet buffer

2020-07-15 Thread Hongcheng Zhong
From: spartazhc hls_read_header will add all streams to s->internal->packet_buffer. Use av_packet_buffer_filter to remove the AVPackets from other streams that are not needed, otherwise abr will allow them to be added to ffplay's packet_queue. Signed-off-by: spartazhc --- fftools/ffplay.c | 4

[FFmpeg-devel] [RFC][GSoC][PATCH v1 5/6] avformat/utils: add av_packet_buffer_filter to filter packet_buffer

2020-07-15 Thread Hongcheng Zhong
From: spartazhc Add av_packet_buffer_filter to remove AVPackets whose stream_index is not in st_index list. st_index has length of AVMEDIA_TYPE_NB, contains the stream_index of all these media types. Generally s->internal->packet_buffer may have pkts from different stream, and stream_index will

[FFmpeg-devel] [RFC][GSoC][PATCH v1 3/6] avformat/hls: use abr to switch streams

2020-07-15 Thread Hongcheng Zhong
From: spartazhc When abr is enable, it will take over the task to call http to download segments, and will return a switch-request for hls to switch streams. For reason not to waste segments that have been downloaded, switch will become effective after old segments is used out. Abr cannot work wi

[FFmpeg-devel] [RFC][GSoC][PATCH v1 2/6] avformat/http: Add abr to whitelist

2020-07-15 Thread Hongcheng Zhong
From: spartazhc add abr protocol to http's whitelist Signed-off-by: spartazhc --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/http.c b/libavformat/http.c index 6c39da1a8b..b77517ff51 100644 --- a/libavformat/http.c +++ b/libavformat/http.c

[FFmpeg-devel] [RFC][GSoC][PATCH v1 1/6] avformat/abr: Adaptive Bitrate support

2020-07-15 Thread Hongcheng Zhong
From: spartazhc Add abr module for hls/dash. v1 fixed: 1. add an "ff" prefix to the protocol name to mark it internal. 2. use 1.2f for float constant 1.2. 3. simplify abr_seek for we just need AVSEEK_SIZE only. Signed-off-by: spartazhc --- doc/protocols.texi | 7 ++ libavformat/Makefil

Re: [FFmpeg-devel] [PATCH 3/6] avcodec/h264_slice: export S12M timecode side data

2020-07-15 Thread Kieran Kunhya
On Wed, 15 Jul 2020 at 02:19, wrote: > On Wed, Jul 15, 2020 at 12:54:35AM +0100, Kieran Kunhya wrote: > > On Wed, 15 Jul 2020 at 00:36, wrote: > > > > > From: Limin Wang > > > > > > Signed-off-by: Limin Wang > > > --- > > > libavcodec/h264_slice.c | 10 ++ > > > 1 file changed, 10 ins

[FFmpeg-devel] [PATCH 1/2] avdevice/v4l2: add support for HEVC payloads

2020-07-15 Thread Dima Buzdyk
* Add mapping for V4L2_PIX_FMT_HEVC payloads * Request bitstream parsing just like H264 Signed-off-by: Dima Buzdyk --- libavdevice/v4l2-common.c | 3 +++ libavdevice/v4l2.c| 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) This change add support for HEVC playback for v4l2 devices.

[FFmpeg-devel] [PATCH v2 2/2] avcodec/hevc_parser: handle PARSER_FLAG_ONCE

2020-07-15 Thread Dima Buzdyk
* make HEVC parser respect PARSER_FLAG_ONCE flag Signed-off-by: Dima Buzdyk --- libavcodec/hevc_parser.c | 4 libavformat/avformat.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c index 5af4b788d5..d0c9aa6e44 10064

[FFmpeg-devel] [PATCH v2 1/2] avdevice/v4l2: add support for HEVC payloads

2020-07-15 Thread Dima Buzdyk
* Add mapping for V4L2_PIX_FMT_HEVC payloads * Request bitstream parsing just like H264 Signed-off-by: Dima Buzdyk --- libavdevice/v4l2-common.c | 3 +++ libavdevice/v4l2.c| 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libavdevice/v4l2-common.c b/libavdevice/v4l2-c

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 features support

2020-07-15 Thread Hendrik Leppkes
On Wed, Jul 15, 2020 at 9:12 AM Soft Works wrote: > > Hi Roman, > > Please don't top post, or hijack ML threads. - Hendrik ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit lin

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 features support

2020-07-15 Thread Soft Works
Hi Roman, in the context of the SDK 10 features, I would like to as whether you would be able to help me about a change that we noticed in the recent Nvidia drivers regarding the supported HEVC levels that the GPU supports. Previously, it was "MaxLevel": 62, "MinLevel": 1, but now it

Re: [FFmpeg-devel] [PATCH v2 1/3] libavutil/imgutils: add utility to get plane sizes

2020-07-15 Thread Nicolas George
Michael Niedermayer (12020-07-14): > Let me phrase my suggestion in a more high level sense > > Currently the functions use int for lots of cases where they should not > ultimately we want the functions to use more correct types for linesize > sizes and so on. > > We need to add these function(s)