Re: [FFmpeg-devel] [PATCH] avformat/mxfdec: fix last packet timestamps

2017-11-22 Thread Marton Balint
On Wed, 22 Nov 2017, Derek Buitenhuis wrote: On 11/22/2017 1:10 AM, Marton Balint wrote: Fixes the packet timestamps of the last packet, which was unset, or guessed by compute_pkt_fields. ffprobe -fflags nofillin -show_packets tests/data/lavf/lavf.mxf -select_streams v Signed-off

Re: [FFmpeg-devel] AMD external header

2017-11-30 Thread Marton Balint
On Wed, 29 Nov 2017, Mironov, Mikhail wrote: -Original Message- From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf Of Paul B Mahol Sent: November 29, 2017 10:16 AM To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] AMD external header On

[FFmpeg-devel] [PATCHv2] avformat/mxfdec: fix last packet timestamps

2017-11-23 Thread Marton Balint
are not sure of the current edit unit if mxf_set_current_edit_unit returned a specific failure, and the assumed current edit unit is the last. Fixes last packet timestamp of: ffprobe -fflags nofillin -show_packets tests/data/lavf/lavf.mxf -select_streams v Signed-off-by: Marton Balint <c...@passwd

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add premultiplied alpha mode

2017-12-02 Thread Marton Balint
On Sat, 2 Dec 2017, Paul B Mahol wrote: On 12/2/17, Marton Balint <c...@passwd.hu> wrote: On Fri, 1 Dec 2017, Paul B Mahol wrote: Signed-off-by: Paul B Mahol <one...@gmail.com> --- doc/filters.texi | 4 ++ libavfilter/vf_ove

Re: [FFmpeg-devel] [PATCH] avfilter/vf_overlay: add premultiplied alpha mode

2017-12-02 Thread Marton Balint
On Fri, 1 Dec 2017, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- doc/filters.texi | 4 ++ libavfilter/vf_overlay.c | 160 --- 2 files changed, 140 insertions(+), 24 deletions(-) diff --git a/doc/filters.texi

Re: [FFmpeg-devel] [PATCH 3/6] lavc/libx265: mark disposable frames

2017-12-02 Thread Marton Balint
On Thu, 30 Nov 2017, John Stebbins wrote: Used by movenc to fill sdtp box --- libavcodec/libx265.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 4456e300f2..c137fe4ae1 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@

Re: [FFmpeg-devel] [PATCHv2] avformat/mxfdec: fix last packet timestamps

2017-12-02 Thread Marton Balint
On Fri, 24 Nov 2017, Marton Balint wrote: The current edit unit cannot be reliably determined for the last packet of a video stream, because we can't query the start offset of the next edit unit from the index. This caused missing timestamps for the last video packet. Therefore from now

Re: [FFmpeg-devel] [PATCHv2] avformat/mxfdec: fix last packet timestamps

2017-12-03 Thread Marton Balint
On Sat, 2 Dec 2017, Marton Balint wrote: On Fri, 24 Nov 2017, Marton Balint wrote: The current edit unit cannot be reliably determined for the last packet of a video stream, because we can't query the start offset of the next edit unit from the index. This caused missing timestamps

Re: [FFmpeg-devel] [PATCH 6/6] ffplay: use AV_PKT_FLAG_DISPOSABLE in frame drop logic

2017-12-03 Thread Marton Balint
On Thu, 30 Nov 2017, John Stebbins wrote: --- fftools/ffplay.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 10a917194d..152d220cdb 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -198,6 +198,8 @@

Re: [FFmpeg-devel] [PATCH 08/25] fftools/ffplay: support only limited color range

2017-12-17 Thread Marton Balint
On Sat, 16 Dec 2017, Paul B Mahol wrote: On 12/16/17, Marton Balint <c...@passwd.hu> wrote: On Sat, 16 Dec 2017, Paul B Mahol wrote: Signed-off-by: Paul B Mahol <one...@gmail.com> --- fftools/ffplay.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --g

Re: [FFmpeg-devel] [PATCH 10/24] avcodec/mjpegdec: replace YUVJ pixel formats

2017-12-13 Thread Marton Balint
On Wed, 13 Dec 2017, Michael Niedermayer wrote: On Wed, Dec 13, 2017 at 11:59:26AM +0100, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- libavcodec/mjpegdec.c| 18 +- libavcodec/tdsc.c| 2 +- tests/fate/vcodec.mak

Re: [FFmpeg-devel] [PATCH 08/25] fftools/ffplay: support only limited color range

2017-12-16 Thread Marton Balint
On Sat, 16 Dec 2017, Paul B Mahol wrote: Signed-off-by: Paul B Mahol --- fftools/ffplay.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 10a917194d..f023c81575 100644 --- a/fftools/ffplay.c +++

Re: [FFmpeg-devel] [PATCH 6/7] avfilter/vf_framerate: do not calculate scene change score multiple times for the same frame

2017-12-16 Thread Marton Balint
On Sun, 10 Dec 2017, Marton Balint wrote: This speeds up the filter, and also fixes scene change detection score which is reduced based on the difference of the current MAFD to the preivous MAFD. Obviously if we compare two frames twice, the difference will be 0... Paul, you missed this one

Re: [FFmpeg-devel] [PATCH] avformat/avio: remove must_flush from AVIOContext

2017-11-20 Thread Marton Balint
On Sun, 19 Nov 2017, Marton Balint wrote: On Wed, 15 Nov 2017, Marton Balint wrote: On Wed, 15 Nov 2017, Nicolas George wrote: Le quintidi 25 brumaire, an CCXXVI, Marton Balint a écrit : It is unused. Signed-off-by: Marton Balint <c...@passwd.hu> --- libavformat/avio.h | 1 -

Re: [FFmpeg-devel] [PATCH 1/1] avdevice/decklink_dec: Autodetect the video input format

2017-11-19 Thread Marton Balint
On Thu, 16 Nov 2017, Jeyapal, Karthick wrote: On 11/16/17, 1:11 AM, "Marton Balint" <c...@passwd.hu> wrote: Thanks for the reply. For the first patch, I think you forgot to call ff_decklink_set_configs in decklink_enc. ff_decklink_set_configs is not doing anything related

Re: [FFmpeg-devel] [PATCH 6/6] ffplay: use AV_PKT_FLAG_DISPOSABLE in frame drop logic

2017-11-19 Thread Marton Balint
On Sun, 19 Nov 2017, John Stebbins wrote: --- fftools/ffplay.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index 10a917194d..97555d5047 100644 --- a/fftools/ffplay.c +++ b/fftools/ffplay.c @@ -257,6 +257,7 @@ typedef struct VideoState {

Re: [FFmpeg-devel] [PATCH] avformat/avio: remove must_flush from AVIOContext

2017-11-19 Thread Marton Balint
On Wed, 15 Nov 2017, Marton Balint wrote: On Wed, 15 Nov 2017, Nicolas George wrote: Le quintidi 25 brumaire, an CCXXVI, Marton Balint a écrit : It is unused. Signed-off-by: Marton Balint <c...@passwd.hu> --- libavformat/avio.h | 1 - 1 file changed, 1 deletion(-) Breaks ABI by

Re: [FFmpeg-devel] [PATCH] lavc: reset codec on receiving packet after EOF in compat_decode

2017-11-21 Thread Marton Balint
On Thu, 9 Nov 2017, James Cowgill wrote: Hi, On 09/11/17 14:02, Hendrik Leppkes wrote: On Thu, Nov 9, 2017 at 1:21 PM, James Cowgill wrote: In commit 061a0c14bb57 ("decode: restructure the core decoding code"), the deprecated avcodec_decode_* APIs were reworked so

Re: [FFmpeg-devel] [PATCH 1/1] avdevice/decklink_dec: Autodetect the video input format

2017-11-21 Thread Marton Balint
On Mon, 20 Nov 2017, Jeyapal, Karthick wrote: On 11/20/17, 12:39 AM, "Marton Balint" <c...@passwd.hu> wrote: Thanks, there is one more thing I still don't get: [...] +// 1 second timeout +for (i = 0; i < 10; i++) { +av_usleep(10); +

[FFmpeg-devel] [PATCH] avformat/mxfdec: fix last packet timestamps

2017-11-21 Thread Marton Balint
Fixes the packet timestamps of the last packet, which was unset, or guessed by compute_pkt_fields. ffprobe -fflags nofillin -show_packets tests/data/lavf/lavf.mxf -select_streams v Signed-off-by: Marton Balint <c...@passwd.hu> --- libavformat/mxfdec.c| 8 tests/ref/see

Re: [FFmpeg-devel] [PATCH 1/2] avformat/hlsenc: fix base_output_dirname is null when basename_size is 0 bug

2017-11-01 Thread Marton Balint
On Wed, 1 Nov 2017, Marton Balint wrote: On Sun, 29 Oct 2017, Liu Steven wrote: 在 2017年10月26日,上午7:54,Steven Liu <l...@chinaffmpeg.org> 写道: fix ticket id: #6777 when use argument hls_segment_filename, the basename_size will be 0 Signed-off-by: Steven Liu <l...@chinaf

[FFmpeg-devel] [PATCH] ffplay: use SDL2 audio API

2017-11-04 Thread Marton Balint
It allows us to specify what kind of audio parameter changes are allowed. Should fix ticket #6721. Signed-off-by: Marton Balint <c...@passwd.hu> --- fftools/ffplay.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index c264

Re: [FFmpeg-devel] [PATCH 1/2] ffplay: create the window and the renderer before starting playback

2017-11-04 Thread Marton Balint
On Sun, 29 Oct 2017, Marton Balint wrote: On Sat, 28 Oct 2017, Clément Bœsch wrote: On Sat, Oct 28, 2017 at 11:05:15PM +0200, Marton Balint wrote: Signed-off-by: Marton Balint <c...@passwd.hu> --- fftools/ffplay.c | 67 +---

Re: [FFmpeg-devel] [PATCH 1/1] avdevice/decklink_dec: Autodetect the video input format

2017-11-05 Thread Marton Balint
On Fri, 27 Oct 2017, Jeyapal, Karthick wrote: Please find the patch attached. Thanks, below some comments: From b18679b91a79f5e23a5ad23ae70f3862a34ddfb8 Mon Sep 17 00:00:00 2001 From: Karthick J Date: Fri, 27 Oct 2017 12:00:23 +0530 Subject: [PATCH 1/1]

Re: [FFmpeg-devel] [PATCH] ffplay: use SDL2 audio API

2017-11-05 Thread Marton Balint
On Sat, 4 Nov 2017, James Almer wrote: On 11/4/2017 3:54 PM, Marton Balint wrote: It allows us to specify what kind of audio parameter changes are allowed. Should fix ticket #6721. Seems to work. Thanks. Thanks, applied. Regards, Marton

Re: [FFmpeg-devel] [PATCH 1/2] avformat/hlsenc: fix base_output_dirname is null when basename_size is 0 bug

2017-11-02 Thread Marton Balint
On Thu, 2 Nov 2017, Liu Steven wrote: 在 2017年11月2日,上午3:18,Marton Balint <c...@passwd.hu> 写道: On Wed, 1 Nov 2017, Marton Balint wrote: On Sun, 29 Oct 2017, Liu Steven wrote: 在 2017年10月26日,上午7:54,Steven Liu <l...@chinaffmpeg.org> 写道: fix ticket id: #6777 when

Re: [FFmpeg-devel] [PATCH 1/2] avformat/hlsenc: fix base_output_dirname is null when basename_size is 0 bug

2017-11-01 Thread Marton Balint
On Sun, 29 Oct 2017, Liu Steven wrote: 在 2017年10月26日,上午7:54,Steven Liu 写道: fix ticket id: #6777 when use argument hls_segment_filename, the basename_size will be 0 Signed-off-by: Steven Liu --- libavformat/hlsenc.c | 16 +++- 1 file

Re: [FFmpeg-devel] FFmpeg 3.4.1

2017-12-08 Thread Marton Balint
On Fri, 8 Dec 2017, wm4 wrote: On Fri, 8 Dec 2017 06:52:20 +0100 Michael Niedermayer wrote: On Fri, Dec 08, 2017 at 01:09:50AM -0300, James Almer wrote: > On 12/8/2017 12:26 AM, wm4 wrote: > > On Thu, 7 Dec 2017 23:23:51 +0100 > > Michael Niedermayer

Re: [FFmpeg-devel] [PATCH 6/6] ffplay: use AV_PKT_FLAG_DISPOSABLE in frame drop logic

2017-12-05 Thread Marton Balint
On Mon, 4 Dec 2017, John Stebbins wrote: On 12/03/2017 01:12 PM, Marton Balint wrote: On Thu, 30 Nov 2017, John Stebbins wrote: --- fftools/ffplay.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index

[FFmpeg-devel] [PATCH 3/7] avfilter/vf_framerate: factorize blend_frames

2017-12-10 Thread Marton Balint
Signed-off-by: Marton Balint <c...@passwd.hu> --- libavfilter/vf_framerate.c | 54 ++ 1 file changed, 7 insertions(+), 47 deletions(-) diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c index d505c5a8a4..f931a6f512

[FFmpeg-devel] [PATCH 5/7] avfilter/vf_framerate: fix scene change detection score

2017-12-10 Thread Marton Balint
- normalize score to [0..100] instead of [0..85] - change the default score to 8.2 to roughly keep existing behaviour - take into account bit depth - do not truncate to integer Signed-off-by: Marton Balint <c...@passwd.hu> --- doc/filters.texi | 2 +- libav

[FFmpeg-devel] [PATCH 4/7] avfilter/vf_framerate: factorize get_scene_score

2017-12-10 Thread Marton Balint
Signed-off-by: Marton Balint <c...@passwd.hu> --- libavfilter/vf_framerate.c | 78 ++ 1 file changed, 31 insertions(+), 47 deletions(-) diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c index f931a6f512..1cad2305ad

[FFmpeg-devel] [PATCH 7/7] avfilter/vf_framerate: fix scene score with negative linesize

2017-12-10 Thread Marton Balint
Also, do not overread input if linesize > width, or linesize is not divisible by 8, and use the proper rounded width/height for MAFD calculation. Signed-off-by: Marton Balint <c...@passwd.hu> --- libavfilter/vf_framerate.c | 18 +- 1 file changed, 9 insertions(+), 9

[FFmpeg-devel] [PATCH 6/7] avfilter/vf_framerate: do not calculate scene change score multiple times for the same frame

2017-12-10 Thread Marton Balint
This speeds up the filter, and also fixes scene change detection score which is reduced based on the difference of the current MAFD to the preivous MAFD. Obviously if we compare two frames twice, the difference will be 0... Signed-off-by: Marton Balint <c...@passwd.hu> --- libav

[FFmpeg-devel] [PATCH 2/7] avfilter/vf_framerate: add threaded blending operations

2017-12-10 Thread Marton Balint
Signed-off-by: Marton Balint <c...@passwd.hu> --- libavfilter/vf_framerate.c | 202 - 1 file changed, 125 insertions(+), 77 deletions(-) diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c index dc8b05f40f..d505c5a8a4

[FFmpeg-devel] [PATCH 1/7] fate: add 12 bit framerate filter tests

2017-12-10 Thread Marton Balint
Signed-off-by: Marton Balint <c...@passwd.hu> --- tests/fate/filter-video.mak| 4 ++ tests/ref/fate/filter-framerate-12bit-down | 55 + tests/ref/fate/filter-framerate-12bit-up | 64 ++ 3 files changed, 123 inse

Re: [FFmpeg-devel] [PATCH] lavc: reset codec on receiving packet after EOF in compat_decode

2017-12-09 Thread Marton Balint
On Mon, 27 Nov 2017, Michael Niedermayer wrote: On Sun, Nov 26, 2017 at 12:09:35PM -0300, James Almer wrote: On 11/21/2017 6:48 PM, Marton Balint wrote: On Thu, 9 Nov 2017, James Cowgill wrote: Hi, On 09/11/17 14:02, Hendrik Leppkes wrote: On Thu, Nov 9, 2017 at 1:21 PM, James Cowgill

Re: [FFmpeg-devel] [PATCH] fate: change fate-ffmpeg-attached_pics to encode to pcm_s16le

2017-10-28 Thread Marton Balint
On Sat, 28 Oct 2017, Michael Niedermayer wrote: On Fri, Oct 27, 2017 at 10:54:49PM +0200, Marton Balint wrote: Previously alac encoder was used, from a first glance I thought it is bitexact, but it turns out it is using floating point arithmetic as well, so probably it is not. Fixes fate

[FFmpeg-devel] [PATCH 2/2] ffplay: only use hardware accelerated SDL texture formats

2017-10-28 Thread Marton Balint
with some texture formats after 3bd2228d05a05eab5f91ac00b01efac9cb07649b. Signed-off-by: Marton Balint <c...@passwd.hu> --- fftools/ffplay.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/fftools/ffplay.c b/fftools/ffplay.c index bebc2b392b..4e1ff62dc4

Re: [FFmpeg-devel] [PATCH 1/2] ffplay: create the window and the renderer before starting playback

2017-10-28 Thread Marton Balint
On Sat, 28 Oct 2017, Clément Bœsch wrote: On Sat, Oct 28, 2017 at 11:05:15PM +0200, Marton Balint wrote: Signed-off-by: Marton Balint <c...@passwd.hu> --- fftools/ffplay.c | 67 +--- 1 file changed, 35 insertions(+), 32 del

Re: [FFmpeg-devel] [PATCH RFC] libavdevice/decklink: Add support for EIA-708 output over SDI

2017-10-25 Thread Marton Balint
On Fri, 6 Oct 2017, Devin Heitmueller wrote: From: Devin Heitmueller Hook in libklvanc and use it for output of EIA-708 captions over SDI. The bulk of this patch is just general support for ancillary data for the Decklink SDI module - the real work for

Re: [FFmpeg-devel] [PATCH]lavf/concatdec: Allocate the filenames on the heap

2017-10-21 Thread Marton Balint
On Fri, 20 Oct 2017, Carl Eugen Hoyos wrote: Hi! I believe that the use-case is valid and there is definitely a bug because no error is shown for too long filenames. In addition, allocating 50k on the heap seems nicer than 4k on the stack. 50k is not much better than 4k. You should add an

Re: [FFmpeg-devel] [PATCH]lavf/concatdec: Allocate the filenames on the heap

2017-10-21 Thread Marton Balint
On Sat, 21 Oct 2017, Carl Eugen Hoyos wrote: 2017-10-21 18:29 GMT+02:00 Nicolas George <geo...@nsup.org>: Le decadi 30 vendémiaire, an CCXXVI, Marton Balint a écrit : I thought filenames in libavformat are limited to 1K anyway because of the AVFormatContext->filename field.

Re: [FFmpeg-devel] [PATCH 0/6] Patchset to remove ffserver

2017-10-22 Thread Marton Balint
On Sun, 22 Oct 2017, Clément Bœsch wrote: On Sun, Oct 22, 2017 at 02:55:38AM +0200, Michael Niedermayer wrote: On Sat, Oct 21, 2017 at 04:15:37PM -0300, James Almer wrote: On 10/21/2017 3:54 PM, Rostislav Pehlivanov wrote: This patchset removes the long-deprecated ffserver program and all

Re: [FFmpeg-devel] Added HW H.264 and HEVC encoding for AMD GPUs based on AMF SDK

2017-10-31 Thread Marton Balint
On Tue, 31 Oct 2017, Mironov, Mikhail wrote: [...] I see some confusion. The user can call send_frame/receive_packet in any order, and you can implement send_frame and receive_packet any way you want, the only thing you have to guarantee is that you cannot return EAGAIN for both send_frame

Re: [FFmpeg-devel] Added HW H.264 and HEVC encoding for AMD GPUs based on AMF SDK

2017-10-30 Thread Marton Balint
On Mon, 30 Oct 2017, Mironov, Mikhail wrote: [...] I still think this would be much better off using the send_frame()/receive_packet() API. Even if your API doesn't expose any information about the queue length, you only need to hold a single input frame transiently to get around that (the

[FFmpeg-devel] [PATCH 2/2] avcodec/libzvbi-teletextdec: formatted ass output

2018-05-06 Thread Marton Balint
Inspired by the VideoLAN text decoder and its port to FFmpeg made by Aman Gupta. Signed-off-by: Marton Balint <c...@passwd.hu> --- doc/decoders.texi| 18 ++- libavcodec/libzvbi-teletextdec.c | 265 +-- 2 files changed, 270 insertions(

[FFmpeg-devel] [PATCH 1/2] avcodec/libzvbi-teletextdec: add support for selecting subtitle pages only

2018-05-06 Thread Marton Balint
Signed-off-by: Marton Balint <c...@passwd.hu> --- doc/decoders.texi| 5 +++-- libavcodec/libzvbi-teletextdec.c | 31 ++- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/doc/decoders.texi b/doc/decoders.texi index a551d5d0fd..8f07

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/libzvbi-teletextdec: allow -1 subtitle duration and make it the default

2018-05-06 Thread Marton Balint
On Wed, 2 May 2018, Marton Balint wrote: Most decoders (pgssubdec, ccaption_dec) are using -1 or UINT32_MAX for a subtitle event which should be cleared at the next event. Applied this and the next patch, I will re-send the third. Regards, Marton

[FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: fix YUV420P cuda_get_buffer

2018-05-14 Thread Marton Balint
Regression since ece068a771ac3f725e854c681ecbef08e792addc. Signed-off-by: Marton Balint <c...@passwd.hu> --- libavutil/hwcontext_cuda.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libavutil/hwcontext_cuda.c b/libavutil/hwcontext_cuda.c index cb5d

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/libzvbi-teletextdec: formatted ass output

2018-05-07 Thread Marton Balint
On Mon, 7 May 2018, Aman Gupta wrote: On Mon, May 7, 2018 at 12:50 PM, Aman Gupta <ffm...@tmm1.net> wrote: On Sun, May 6, 2018 at 2:05 PM, Marton Balint <c...@passwd.hu> wrote: Inspired by the VideoLAN text decoder and its port to FFmpeg made by Aman

Re: [FFmpeg-devel] [RFC][PATCH] configure: Disable unsafe demuxers by default

2018-05-10 Thread Marton Balint
On Thu, 10 May 2018, Derek Buitenhuis wrote: These demuxers have probes that mainly probe based on file extension, and map to codec IDs that render text as video. The result is that ffmpeg will, by default, happily render, for example, .txt files as images. This is not exactly a good security

[FFmpeg-devel] [PATCH] avformat/webm_chunk: always use a static buffer for get_chunk_filename

2018-05-13 Thread Marton Balint
My conversation from AVFormatContext->filename to AVFormatContext->url was wrong in this case because get_chunk_filename uses filename as an output buffer, and not as an input buffer. Fixes ticket #7188. Signed-off-by: Marton Balint <c...@passwd.hu> --- libavformat/webm_chunk.c | 8

Re: [FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: fix YUV420P cuda_get_buffer

2018-05-15 Thread Marton Balint
On Tue, 15 May 2018, Timo Rothenpieler wrote: On 14.05.2018 23:29, Marton Balint wrote: Regression since ece068a771ac3f725e854c681ecbef08e792addc. Signed-off-by: Marton Balint <c...@passwd.hu> --- libavutil/hwcontext_cuda.c | 9 ++--- 1 file changed, 6 insertions(+), 3 del

Re: [FFmpeg-devel] [PATCH] Limited timecode support for lavd/decklink

2018-05-25 Thread Marton Balint
On Fri, 25 May 2018, Jonathan Morley wrote: I apologize in advance for the formatting of this message. My mail configuration impeded my efforts to use ‘—send-email’. Your mail is corrupted by new lines, attach the .patch file if you cannot resolve this. This commit did pass 'make fate’

Re: [FFmpeg-devel] [PATCH] Limited timecode support for lavd/decklink

2018-05-26 Thread Marton Balint
On Fri, 25 May 2018, Jonathan Morley wrote: Attached are the two patches to address your feedback, Marton. Please advise. Your mail contains no attachments as far as I see. Regards, Marton ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

[FFmpeg-devel] [PATCH] avformat/mxf: fix NTSC 59.94 samples per frame layout

2018-05-24 Thread Marton Balint
FFmbc uses this. bmx uses this. XAVC MXF Mapping and Operating Points prefers this. Basic rounding rules also yields these numbers. Signed-off-by: Marton Balint <c...@passwd.hu> --- libavformat/mxf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/m

Re: [FFmpeg-devel] [PATCH 2/2] ffmpeg: Use the colour properties from the input stream when doing transcode

2018-05-25 Thread Marton Balint
On Fri, 25 May 2018, Tobias Rapp wrote: On 25.05.2018 07:58, Xiang, Haihao wrote: On Thu, 2018-05-24 at 11:15 +0100, Mark Thompson wrote: For example: ffmpeg -i bt709_input.mkv -vf colorspace=bt2020 bt2020_output.mkv will have the output file marked as BT.709 after this patch, where

Re: [FFmpeg-devel] [PATCH] avcodec/xwddec: fix palette alpha

2018-05-16 Thread Marton Balint
On Wed, 16 May 2018, Paul B Mahol wrote: On 5/15/18, Marton Balint <c...@passwd.hu> wrote: Signed-off-by: Marton Balint <c...@passwd.hu> --- libavcodec/xwddec.c | 2 +- tests/ref/lavf/xwd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) LGTM Thanks, applied. Reg

[FFmpeg-devel] [PATCH] avcodec/xwddec: fix palette alpha

2018-05-15 Thread Marton Balint
Signed-off-by: Marton Balint <c...@passwd.hu> --- libavcodec/xwddec.c | 2 +- tests/ref/lavf/xwd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/xwddec.c b/libavcodec/xwddec.c index 8b0845fc01..592c98dd4e 100644 --- a/libavcodec/xwddec.c +++ b/liba

Re: [FFmpeg-devel] [PATCH] avutil/hwcontext_cuda: fix YUV420P cuda_get_buffer

2018-05-15 Thread Marton Balint
On Tue, 15 May 2018, Timo Rothenpieler wrote: On 15.05.2018 13:37, Marton Balint wrote: Are you sure it isn't already that way? I tested specially YUV420P and could not make out any issues. For 4K content linesize[0] is 3840, but linesize[1] becomes 2048 instead of 1920. That's odd, 2048

Re: [FFmpeg-devel] [PATCH] avformat/webm_chunk: always use a static buffer for get_chunk_filename

2018-05-15 Thread Marton Balint
On Sun, 13 May 2018, Marton Balint wrote: My conversation from AVFormatContext->filename to AVFormatContext->url was wrong in this case because get_chunk_filename uses filename as an output buffer, and not as an input buffer. Fixes ticket #7188. Pushed and backported. Regards,

[FFmpeg-devel] [PATCH 03/12] avformat/mxfdec: extend mxf_handle_missing_index_segment for all clip wrapped essences

2018-06-10 Thread Marton Balint
Also make sure we set a valid track index sid and a valid track edit rate in order for the index to be useful. Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 39 +++ 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/libavformat/mxfdec.c

[FFmpeg-devel] [PATCH 02/12] avformat/mxfdec: add support for determining essence wrapping scheme

2018-06-10 Thread Marton Balint
Some code is based on bmxlib-libmxf/mxf/mxf_utils.c. Signed-off-by: Marton Balint --- libavformat/mxf.h| 9 ++ libavformat/mxfdec.c | 79 +++- 2 files changed, 68 insertions(+), 20 deletions(-) diff --git a/libavformat/mxf.h b

[FFmpeg-devel] [PATCH 04/12] avformat/mxfdec: compute both essence_offset and essence_length in mxf_compute_essence_containers

2018-06-10 Thread Marton Balint
Also compute the correct essence_offset and essence_length for all clip wrapped essences. Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 108 +++ 1 file changed, 57 insertions(+), 51 deletions(-) diff --git a/libavformat/mxfdec.c b

[FFmpeg-devel] [PATCH 01/12] avformat/mxfdec: store next_klv in KLVPacket

2018-06-10 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mxf.h| 1 + libavformat/mxfdec.c | 13 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/libavformat/mxf.h b/libavformat/mxf.h index 19f8d8a9f5..93bc2cd075 100644 --- a/libavformat/mxf.h +++ b/libavformat/mxf.h @@ -62,6

[FFmpeg-devel] [PATCH 06/12] avformat/mxfdec: make current_edit_unit a parameter of mxf_compute_samples

2018-06-10 Thread Marton Balint
No change in functionality. Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index be6884edbe..8e099164aa 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c

[FFmpeg-devel] [PATCH 05/12] avformat/mxfdec: make edit_units_per_packet a track property

2018-06-10 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 51 ++- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 67b0028e88..be6884edbe 100644 --- a/libavformat/mxfdec.c +++ b

[FFmpeg-devel] [PATCH 08/12] avformat/mxfdec: add support for returning the partition for mxf_edit_unit_absolute_offset and mxf_absolute_bodysid_offset

2018-06-10 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 0f4cc9c3a3..8054e051cf 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1399,7 +1399,7

[FFmpeg-devel] [PATCH 09/12] avformat/mxfdec: add support for clip wrapped essences

2018-06-10 Thread Marton Balint
Also use common code with opAtom. Fixes ticket #2776. Partially fixes ticket #5671. Fixes ticket #5866. Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 281 --- 1 file changed, 130 insertions(+), 151 deletions(-) diff --git a/libavformat

[FFmpeg-devel] [PATCH 10/12] avformat/mxfdec: fix indentation and rename mxf_read_packet_old

2018-06-10 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index d6d1628edb..04ec302110 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c

[FFmpeg-devel] [PATCH 07/12] avformat/mxfdec: compute sample_count for all streams on seek

2018-06-10 Thread Marton Balint
sample_count will be used for per-stream current_edit_unit. Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 39 +-- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 8e099164aa

[FFmpeg-devel] [PATCH 11/12] avformat/mxfdec: take into account index_edit_rate

2018-06-10 Thread Marton Balint
Fixes samples/ffmpeg-bugs/roundup/issue591/02785736.mxf Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 04ec302110..8f9a3a752d 100644

[FFmpeg-devel] [PATCH 12/12] avformat/mxfdec: add some essence container uls from SMPTE draft

2018-06-10 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 8f9a3a752d..32ca9e0f99 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1240,6 +1240,8 @@ static const MXFCodecUL

Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg_opt: Add -toeof option to stop writing relative to EOF

2018-06-10 Thread Marton Balint
On Sun, 10 Jun 2018, morten.w...@gmail.com wrote: From: withmorten Signed-off-by: Morten With --- doc/ffmpeg.texi | 4 fftools/ffmpeg.h | 1 + fftools/ffmpeg_opt.c | 9 + 3 files changed, 14 insertions(+) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index

Re: [FFmpeg-devel] [PATCH 09/12] avformat/mxfdec: add support for clip wrapped essences

2018-06-12 Thread Marton Balint
On Tue, 12 Jun 2018, Michael Niedermayer wrote: On Sun, Jun 10, 2018 at 12:36:47PM +0200, Marton Balint wrote: Also use common code with opAtom. Fixes ticket #2776. Partially fixes ticket #5671. Fixes ticket #5866. Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 281

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libzvbi-teletextdec: add support for selecting subtitle pages only

2018-06-10 Thread Marton Balint
On Mon, 7 May 2018, Aman Gupta wrote: On Sun, May 6, 2018 at 2:05 PM, Marton Balint wrote: Signed-off-by: Marton Balint --- doc/decoders.texi| 5 +++-- libavcodec/libzvbi-teletextdec.c | 31 ++- 2 files changed, 25 insertions(+), 11 deletions

[FFmpeg-devel] [PATCH] avcodec/libzvbi-teletextdec: propagate ERASE_PAGE flag for repeated subtitle page headers

2018-06-10 Thread Marton Balint
This works around a libzvbi bug (a corner case in the teletext spec): https://sourceforge.net/p/zapping/bugs/203/ https://sourceforge.net/p/zapping/patches/20/ Fixes samples/ffmpeg-bugs/trac/ticket2086/RBT_20100801_1835.ts. Signed-off-by: Marton Balint --- libavcodec/libzvbi-teletextdec.c

Re: [FFmpeg-devel] [PATCH 5/6] avcodec/avcodec.h: add AV_CODEC_ID_TIMED_TEXT_MARKUP

2018-06-08 Thread Marton Balint
On Tue, 5 Jun 2018, Tomas Härdin wrote: tor 2018-05-31 klockan 02:05 +0200 skrev Marton Balint: > Signed-off-by: Marton Balint ---  libavcodec/avcodec.h| 1 +  libavcodec/codec_desc.c | 8  libavcodec/version.h| 2 +-  3 files changed, 10 insertions(+), 1 deletion(-) d

Re: [FFmpeg-devel] [PATCH] Limited timecode support for lavd/decklink

2018-06-07 Thread Marton Balint
On Thu, 7 Jun 2018, Dave Rice wrote: [...] Before I only tested with vitc but now have a serial cable connected as well and found a source tape that has distinct values for LTC and VITC timecodes. The LTC values are from 1:00:00 to 2:00:00 and the VITC values are from 07:00:00 -

Re: [FFmpeg-devel] [PATCH 09/12] avformat/mxfdec: add support for clip wrapped essences

2018-06-12 Thread Marton Balint
On Tue, 12 Jun 2018, Michael Niedermayer wrote: On Tue, Jun 12, 2018 at 10:47:24AM +0200, Marton Balint wrote: On Tue, 12 Jun 2018, Michael Niedermayer wrote: On Sun, Jun 10, 2018 at 12:36:47PM +0200, Marton Balint wrote: Also use common code with opAtom. Fixes ticket #2776. Partially

Re: [FFmpeg-devel] [PATCH 1/2] avdevice/decklink_dec: use a custom memory allocator

2018-06-12 Thread Marton Balint
On Tue, 5 Jun 2018, Dave Rice wrote: On Jun 5, 2018, at 1:17 PM, Marton Balint wrote: On Tue, 5 Jun 2018, Dave Rice wrote: On Jun 4, 2018, at 4:21 PM, Marton Balint wrote: The default memory allocator is limited in the max number of frames available, and therefore caused frame drops

Re: [FFmpeg-devel] [PATCH] Limited timecode support for lavd/decklink

2018-06-12 Thread Marton Balint
On Tue, 12 Jun 2018, Dave Rice wrote: On Jun 7, 2018, at 5:01 PM, Marton Balint wrote: On Thu, 7 Jun 2018, Dave Rice wrote: [...] Before I only tested with vitc but now have a serial cable connected as well and found a source tape that has distinct values for LTC and VITC timecodes

Re: [FFmpeg-devel] [PATCH 01/12] avformat/mxfdec: store next_klv in KLVPacket

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Tomas Härdin wrote: sön 2018-06-10 klockan 12:36 +0200 skrev Marton Balint: > Signed-off-by: Marton Balint ---  libavformat/mxf.h|  1 +  libavformat/mxfdec.c | 13 -  2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/libavformat/mxf.

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libzvbi-teletextdec: add support for selecting subtitle pages only

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Carl Eugen Hoyos wrote: 2018-05-06 23:05 GMT+02:00, Marton Balint : +List of teletext page numbers to decode. Pages that do not match the specified +list are dropped. You may use the special @code{*} string to match all pages, +or @code{subtitle} to match all subtitle

Re: [FFmpeg-devel] [PATCH 02/12] avformat/mxfdec: add support for determining essence wrapping scheme

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Tomas Härdin wrote: sön 2018-06-10 klockan 12:36 +0200 skrev Marton Balint: Some code is based on bmxlib-libmxf/mxf/mxf_utils.c. > Signed-off-by: Marton Balint ---  libavformat/mxf.h|  9 ++  libavformat/mxfdec.c |

Re: [FFmpeg-devel] [PATCH 03/12] avformat/mxfdec: extend mxf_handle_missing_index_segment for all clip wrapped essences

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Tomas Härdin wrote: sön 2018-06-10 klockan 12:36 +0200 skrev Marton Balint: Also make sure we set a valid track index sid and a valid track edit rate in order for the index to be useful. > Signed-off-by: Marton Balint ---  libavformat/mxfdec.c |

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/libzvbi-teletextdec: add support for selecting subtitle pages only

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Jan Ekström wrote: On Wed, Jun 13, 2018 at 12:47 PM, Carl Eugen Hoyos wrote: 2018-05-06 23:05 GMT+02:00, Marton Balint : +List of teletext page numbers to decode. Pages that do not match the specified +list are dropped. You may use the special @code{*} string to match

Re: [FFmpeg-devel] [PATCH 09/12] avformat/mxfdec: add support for clip wrapped essences

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Tomas Härdin wrote: sön 2018-06-10 klockan 12:36 +0200 skrev Marton Balint: Also use common code with opAtom. Fixes ticket #2776. Partially fixes ticket #5671. Fixes ticket #5866. > Signed-off-by: Marton Balint ---  libavformat/mxfdec.c |

Re: [FFmpeg-devel] [PATCH 08/12] avformat/mxfdec: add support for returning the partition for mxf_edit_unit_absolute_offset and mxf_absolute_bodysid_offset

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Tomas Härdin wrote: sön 2018-06-10 klockan 12:36 +0200 skrev Marton Balint: > Signed-off-by: Marton Balint ---  libavformat/mxfdec.c | 18 ++  1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c in

Re: [FFmpeg-devel] [PATCH 04/12] avformat/mxfdec: compute both essence_offset and essence_length in mxf_compute_essence_containers

2018-06-13 Thread Marton Balint
On Wed, 13 Jun 2018, Tomas Härdin wrote: sön 2018-06-10 klockan 12:36 +0200 skrev Marton Balint: Also compute the correct essence_offset and essence_length for all clip wrapped essences. > Signed-off-by: Marton Balint ---  libavformat/mxfdec.c |

Re: [FFmpeg-devel] [PATCH 09/12] avformat/mxfdec: add support for clip wrapped essences

2018-06-14 Thread Marton Balint
On Thu, 14 Jun 2018, Tomas Härdin wrote: ons 2018-06-13 klockan 22:11 +0200 skrev Marton Balint: On Wed, 13 Jun 2018, Tomas Härdin wrote: > sön 2018-06-10 klockan 12:36 +0200 skrev Marton Balint: > > Also use common code with opAtom. > > > > Fixes ticket #2776. >

Re: [FFmpeg-devel] [PATCH 04/12] avformat/mxfdec: compute both essence_offset and essence_length in mxf_compute_essence_containers

2018-06-14 Thread Marton Balint
On Thu, 14 Jun 2018, Tomas Härdin wrote: [...] > > +} else { > > +int64_t op1a_essence_offset = > > +p->this_partition + > > +round_to_kag(p->pack_length,   p->kag_size) + > > +round_to_kag(p->header_byte_count,

Re: [FFmpeg-devel] [PATCH]ffplay: Don't crash if stream_cycle_channel() is called before initialization

2018-06-11 Thread Marton Balint
23ec72e867f3f25f422d6c1c7298cfcf79b4f113 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Mon, 11 Jun 2018 23:19:37 +0200 Subject: [PATCH] ffplay: ignore keypress events before a window is created Current ffplay code assumes that the read thread is in its main loop before any key events are captured

Re: [FFmpeg-devel] [PATCH] Limited timecode support for lavd/decklink

2018-05-30 Thread Marton Balint
On Tue, 29 May 2018, Jonathan Morley wrote: Thank you Marton, That makes sense to me, but can you please clarify which context is the most appropriate to use? Just put it in decklink_ctx in the Status section. Don't forget to free it in ff_decklink_read_close. Regards, Marton

Re: [FFmpeg-devel] [PATCH 5/5] avformat/mxfdec: recognize SMPTE 436 VBI data

2018-05-30 Thread Marton Balint
On Wed, 30 May 2018, Tomas Härdin wrote: mån 2018-05-28 klockan 00:27 +0200 skrev Marton Balint: On Sun, 27 May 2018, Tomas Härdin wrote: > sön 2018-05-27 klockan 21:21 +0200 skrev Marton Balint: > > > Signed-off-by: Marton Balint > > > > --- > >  libavfo

Re: [FFmpeg-devel] [PATCH] mxfdec: fix NULL pointer dereference in mxf_read_packet_old

2018-05-30 Thread Marton Balint
On Thu, 17 Nov 2016, Andreas Cadhalpun wrote: Metadata streams have priv_data set to NULL. Signed-off-by: Andreas Cadhalpun --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index a1a79ce..2ad0c28 100644

[FFmpeg-devel] [PATCH 6/6] avformat/mxfdec: add support for recognizing timed text streams

2018-05-30 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 8 1 file changed, 8 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index cf1cd71987..d9ce09cc75 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1280,6 +1280,7 @@ static const MXFCodecUL

[FFmpeg-devel] [PATCH 5/6] avcodec/avcodec.h: add AV_CODEC_ID_TIMED_TEXT_MARKUP

2018-05-30 Thread Marton Balint
Signed-off-by: Marton Balint --- libavcodec/avcodec.h| 1 + libavcodec/codec_desc.c | 8 libavcodec/version.h| 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index fb0c6fae70..91ccef538e 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 2/6] avformat/mxfdec: recognize SMPTE 436 VBI data

2018-05-30 Thread Marton Balint
Signed-off-by: Marton Balint --- libavformat/mxfdec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 1099616174..3d8c8e204c 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -1278,6 +1278,7 @@ static const MXFCodecUL

<    5   6   7   8   9   10   11   12   13   14   >