[FFmpeg-devel] [PATCH] avformat: remove obsolete commented-out DEBUG define

2017-07-07 Thread Tobias Rapp
Signed-off-by: Tobias Rapp --- libavformat/avienc.c | 2 -- libavformat/segment.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/libavformat/avienc.c b/libavformat/avienc.c index e8c0c71..da3d3de 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -19,8 +19,6 @@ * Foundation

Re: [FFmpeg-devel] [PATCH] avfilter/pthread: rewrite implementation

2017-07-07 Thread Paul B Mahol
On 7/7/17, Muhammad Faiz wrote: > Avoid pthread_cond_broadcast that wakes up all workers. Make each of them > uses distict mutex/cond. > What about video filters? ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/f

Re: [FFmpeg-devel] [PATCH v2] avcodec/rdft: remove sintable

2017-07-07 Thread Muhammad Faiz
On Thu, Jul 6, 2017 at 4:18 PM, Muhammad Faiz wrote: > It is redundant with costable. The first half of sintable is > identical with the second half of costable. The second half > of sintable is negative value of the first half of sintable. > > The computation is changed to handle sign of sin valu

[FFmpeg-devel] [PATCH v3] avcodec/rdft: remove sintable

2017-07-07 Thread Muhammad Faiz
It is redundant with costable. The first half of sintable is identical with the second half of costable. The second half of sintable is negative value of the first half of sintable. The computation is changed to handle sign of sin values, in C code and ARM assembly code. Signed-off-by: Muhammad F

Re: [FFmpeg-devel] [PATCH v2 1/2] lavu: Add DRM hwcontext

2017-07-07 Thread wm4
On Fri, 7 Jul 2017 08:51:51 +0800 Jun Zhao wrote: > On 2017/7/6 7:02, Mark Thompson wrote: > > diff --git a/libavutil/hwcontext.h b/libavutil/hwcontext.h > > index edf12cc631..fe7613b379 100644 > > --- a/libavutil/hwcontext.h > > +++ b/libavutil/hwcontext.h > > @@ -32,6 +32,7 @@ enum AVHWDeviceT

Re: [FFmpeg-devel] [PATCH 1/2] pixdesc: Improve scoring for opaque/unknown pixel formats

2017-07-07 Thread wm4
On Thu, 6 Jul 2017 22:59:24 +0100 Mark Thompson wrote: > Hardware pixel formats do not tell you anything about their actual > contents, but should still score higher than formats with completely > unknown properties, which in turn should score higher than invalid > formats. > > Do not return an

Re: [FFmpeg-devel] [PATCH] avfilter/pthread: rewrite implementation

2017-07-07 Thread Muhammad Faiz
On Fri, Jul 7, 2017 at 2:45 PM, Paul B Mahol wrote: > On 7/7/17, Muhammad Faiz wrote: >> Avoid pthread_cond_broadcast that wakes up all workers. Make each of them >> uses distict mutex/cond. >> > > What about video filters? ./ffmpeg -filter_complex_threads 16 -filter_complex "nullsrc=s=1920x1080

Re: [FFmpeg-devel] [PATCH] avfilter/pthread: rewrite implementation

2017-07-07 Thread Clément Bœsch
On Fri, Jul 07, 2017 at 09:25:46AM +0700, Muhammad Faiz wrote: > Avoid pthread_cond_broadcast that wakes up all workers. Make each of them > uses distict mutex/cond. > Please make sure this doesn't make tsan go crazy. Also, the code is pretty much based on lavc/pthread_slice.c, so you may want t

[FFmpeg-devel] [PATCH] libswresample: check input to swr_convert_frame for NULL

2017-07-07 Thread hexpointer
When 'out' is an AVFrame that does not have buffers preallocated, swr_convert_frame tries to allocate buffers of the right size. However in calculating this size it failed to check for whether 'in' is NULL (requesting that swr's internal buffers are to be flushed). --- libswresample/swresample_fra

Re: [FFmpeg-devel] [PATCH] libavcodec/htmlsubtitles.c: make tags case-insensitive

2017-07-07 Thread Clément Bœsch
On Fri, Jun 16, 2017 at 08:26:37PM +0900, DongHoon Kang wrote: > Signed-off-by: DongHoon Kang > --- > libavcodec/htmlsubtitles.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) > Rebased, updated for recent change, and applied. Sorry for the delay, and thanks for the pa

Re: [FFmpeg-devel] [PATCH 1/1] This change adds an encoder for Camera metadata motion. This is a type of sensor data associated with video, such as GPS, acceleration, gyro, and camera orientation. It

2017-07-07 Thread Moritz Barsnick
Just some small observations... Even if you postpone this patch, perhaps it can help improve the next one. On Thu, Jul 06, 2017 at 17:36:39 -0700, Louis O'Bryan wrote: > @@ -2,6 +2,7 @@ Entries are sorted chronologically from oldest to youngest > within each release, > releases are sorted from

Re: [FFmpeg-devel] [PATCH 1/1] This change adds an encoder for Camera metadata motion. This is a type of sensor data associated with video, such as GPS, acceleration, gyro, and camera orientation. It

2017-07-07 Thread wm4
On Thu, 6 Jul 2017 17:36:39 -0700 "Louis O'Bryan" wrote: > From: Louis O'Bryan > > Signed-off-by: Louis O'Bryan > --- > Changelog | 1 + > doc/general.texi| 2 + > libavcodec/Makefile | 1 + > libavcodec/allcodecs.c | 3 + > libavcodec/avcodec.h| 1 +

[FFmpeg-devel] [PATCH v2] avfilter/pthread: rewrite implementation

2017-07-07 Thread Muhammad Faiz
Avoid pthread_cond_broadcast that wakes up all workers. Make each of them uses distict mutex/cond. Also let main thread help running jobs. Benchmark using afir with threads=5 and 4096 taps fir: channels=1: old: 1849650 decicycles in afir_execute, 2 runs, 0 skips 1525719 decicycl

Re: [FFmpeg-devel] [PATCH] avfilter/pthread: rewrite implementation

2017-07-07 Thread Muhammad Faiz
On Fri, Jul 7, 2017 at 4:26 PM, Clément Bœsch wrote: > On Fri, Jul 07, 2017 at 09:25:46AM +0700, Muhammad Faiz wrote: >> Avoid pthread_cond_broadcast that wakes up all workers. Make each of them >> uses distict mutex/cond. >> > > Please make sure this doesn't make tsan go crazy. Fixed. Post new p

Re: [FFmpeg-devel] [PATCH] movenc: write clap tag

2017-07-07 Thread Derek Buitenhuis
On 7/7/2017 3:20 AM, Dave Rice wrote: > Resolves https://trac.ffmpeg.org/ticket/6145 and writes a clap atom that is > coincident with the frames width and height. > > > From 23d80d0d47829fed61e817b1e7c3f6d420c9ab5c Mon Sep 17 00:00:00 2001 > From: Dave Rice > Date: Thu, 6 Jul 2017 21:12:38 -040

Re: [FFmpeg-devel] [PATCH] avformat: remove obsolete commented-out DEBUG define

2017-07-07 Thread Derek Buitenhuis
On 7/7/2017 8:43 AM, Tobias Rapp wrote: > Signed-off-by: Tobias Rapp > --- > libavformat/avienc.c | 2 -- > libavformat/segment.c | 2 -- > 2 files changed, 4 deletions(-) LGTM. - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffm

Re: [FFmpeg-devel] [PATCH 02/12] hdsenc: Add missing goto statement

2017-07-07 Thread Derek Buitenhuis
On 7/6/2017 11:38 PM, Steven Liu wrote: > Maybe there have no video stream, but have audio stream, so just give > user a warning and continue? Not an expert on the HDS code, but how can you fragment audio with no min frag size set, and no video stream? - Derek

Re: [FFmpeg-devel] [PATCH] movenc: write clap tag

2017-07-07 Thread Derek Buitenhuis
On 7/7/2017 4:32 PM, Derek Buitenhuis wrote: > Patch itself LGTM. Just realized, this will change a bunch of FATE tests, won't it? - Derek ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

[FFmpeg-devel] [PATCH 1/3] avcodec/get_bits: add cached bitstream reader

2017-07-07 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/get_bits.h | 205 +++--- 1 file changed, 196 insertions(+), 9 deletions(-) diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index c530015..8a9021a 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/

[FFmpeg-devel] [PATCH 2/3] avcodec/utvideodec: use cached bitstream reader

2017-07-07 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- libavcodec/utvideodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c index 40c1277..c57d727 100644 --- a/libavcodec/utvideodec.c +++ b/libavcodec/utvideodec.c @@ -27,6 +27,7 @@ #include #include +#defin

[FFmpeg-devel] [PATCH 3/3] doc/libav-merge: bitstream reader is now merged

2017-07-07 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/libav-merge.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/libav-merge.txt b/doc/libav-merge.txt index 690c4ef..56d6109 100644 --- a/doc/libav-merge.txt +++ b/doc/libav-merge.txt @@ -96,7 +96,6 @@ Stuff that didn't reach the codebase: - e7078e842

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/utvideodec: use cached bitstream reader

2017-07-07 Thread Carl Eugen Hoyos
> Am 07.07.2017 um 20:48 schrieb Paul B Mahol : > > Signed-off-by: Paul B Mahol > --- > libavcodec/utvideodec.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavcodec/utvideodec.c b/libavcodec/utvideodec.c > index 40c1277..c57d727 100644 > --- a/libavcodec/utvideodec.c > +++ b/lib

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/get_bits: add cached bitstream reader

2017-07-07 Thread Ronald S. Bultje
Hi, On Fri, Jul 7, 2017 at 2:48 PM, Paul B Mahol wrote: > typedef struct GetBitContext { > const uint8_t *buffer, *buffer_end; > +#ifdef CACHED_BITSTREAM_READER > +uint64_t cache; > +unsigned bits_left; > +#endif > Can you post some stats (from relevant systems, ideally, e.g. 32-b

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/get_bits: add cached bitstream reader

2017-07-07 Thread Paul B Mahol
On 7/7/17, Ronald S. Bultje wrote: > Hi, > > On Fri, Jul 7, 2017 at 2:48 PM, Paul B Mahol wrote: > >> typedef struct GetBitContext { >> const uint8_t *buffer, *buffer_end; >> +#ifdef CACHED_BITSTREAM_READER >> +uint64_t cache; >> +unsigned bits_left; >> +#endif >> > > Can you post s

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/get_bits: add cached bitstream reader

2017-07-07 Thread Ronald S. Bultje
Hi, On Fri, Jul 7, 2017 at 4:43 PM, Paul B Mahol wrote: > On 7/7/17, Ronald S. Bultje wrote: > > (I'm assuming the low-level interface no longer works with the cached > > reader, so can we prevent users from accessing these macros unless > > cached=1?) > > They are not supposed to work, Do you

[FFmpeg-devel] [PATCH] pthread_frame: save the FF_DEBUG_THREADS option in FrameThreadContext.

2017-07-07 Thread Wan-Teh Chang
Add the debug_threads boolean field to FrameThreadContext. The debug_threads field records whether the FF_DEBUG_THREADS bit is set in the debug field of the avctx passed to ff_frame_thread_init(). The debug_threads field is set when avcodec_open2() is called, never changes thereafter, and applies t

Re: [FFmpeg-devel] [PATCH] Add A53 Closed Captions to MPEG header if they are available.

2017-07-07 Thread John P Poet
On Wed, Jul 5, 2017 at 3:30 PM Marton Balint wrote: > > On Fri, 9 Jun 2017, Devin Heitmueller wrote: > > > Hello Marton, > > > > On Tue, Jun 6, 2017 at 5:45 PM, Marton Balint wrote: > > > >> As far as I remember multiple side data of the same type is not > something we > >> wanted to support. Wh

Re: [FFmpeg-devel] [PATCH] movenc: write clap tag

2017-07-07 Thread James Almer
On 7/7/2017 12:32 PM, Derek Buitenhuis wrote: > On 7/7/2017 3:20 AM, Dave Rice wrote: >> Resolves https://trac.ffmpeg.org/ticket/6145 and writes a clap atom that is >> coincident with the frames width and height. >> >> >> From 23d80d0d47829fed61e817b1e7c3f6d420c9ab5c Mon Sep 17 00:00:00 2001 >> Fr

Re: [FFmpeg-devel] [PATCH] pthread_frame: make accesses to debug field be protected by owner lock.

2017-07-07 Thread Wan-Teh Chang
Hi Ronald, On Wed, Jul 5, 2017 at 7:24 PM, Ronald S. Bultje wrote: > Hi Wan-Teh, > > On Wed, Jul 5, 2017 at 8:08 PM, Wan-Teh Chang wrote: >> >> Hi Ronald, >> >> On Wed, Jul 5, 2017 at 3:31 PM, Ronald S. Bultje >> wrote: >> > Hi Wan-Teh, >> > >> > On Wed, Jul 5, 2017 at 6:12 PM, Wan-Teh Chang w

Re: [FFmpeg-devel] [PATCH 02/12] hdsenc: Add missing goto statement

2017-07-07 Thread Michael Niedermayer
On Thu, Jul 06, 2017 at 07:28:32PM +0100, Derek Buitenhuis wrote: > Signed-off-by: Derek Buitenhuis > --- > libavformat/hdsenc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c > index 347df83a51..c362a75d8b 100644 > --- a/libavformat/hdsenc.c

Re: [FFmpeg-devel] [PATCH 0/1] Add new encoder for camera sensor metadata

2017-07-07 Thread Michael Niedermayer
On Fri, Jul 07, 2017 at 02:25:20AM +0100, Derek Buitenhuis wrote: > On 7/7/2017 1:36 AM, Louis O'Bryan wrote: > > I am adding a new encoder for camera sensor metadata. This is an > > implementation of a not-yet-published open standard for adding camera > > sensor data to mp4 containers, including t

Re: [FFmpeg-devel] [PATCH] pthread_frame: save the FF_DEBUG_THREADS option in FrameThreadContext.

2017-07-07 Thread Wan-Teh Chang
Note: I suspect we can simply delete the following line from update_context_from_user() in libavcodec/pthread_frame.c: dst->debug= src->debug; That also fixes the tsan warning, but it'll take more time to investigate whether it is necessary to update the |debug| field from the user's AVCo

Re: [FFmpeg-devel] [PATCH] pthread_frame: save the FF_DEBUG_THREADS option in FrameThreadContext.

2017-07-07 Thread Ronald S. Bultje
Hi, On Fri, Jul 7, 2017 at 5:30 PM, Wan-Teh Chang wrote: > Note: I suspect we can simply delete the following line from > update_context_from_user() in libavcodec/pthread_frame.c: > > dst->debug= src->debug; > > That also fixes the tsan warning, but it'll take more time to > investigate

Re: [FFmpeg-devel] [PATCH] avformat: remove obsolete commented-out DEBUG define

2017-07-07 Thread Michael Niedermayer
On Fri, Jul 07, 2017 at 09:43:22AM +0200, Tobias Rapp wrote: > Signed-off-by: Tobias Rapp > --- > libavformat/avienc.c | 2 -- > libavformat/segment.c | 2 -- > 2 files changed, 4 deletions(-) > > diff --git a/libavformat/avienc.c b/libavformat/avienc.c > index e8c0c71..da3d3de 100644 > --- a/l

Re: [FFmpeg-devel] [PATCH 1/1] This change adds an encoder for Camera metadata motion. This is a type of sensor data associated with video, such as GPS, acceleration, gyro, and camera orientation. It

2017-07-07 Thread Reimar Döffinger
I don't know what you are trying to achieve, but an encoder that just copies things through makes no sense. If it's just about validating or logging some kind of parser or (bitstream-)filter probably makes more sense. Even if doing it as encoder, why should it be a video encoder instead of somet

Re: [FFmpeg-devel] [PATCH 1/1] This change adds an encoder for Camera metadata motion. This is a type of sensor data associated with video, such as GPS, acceleration, gyro, and camera orientation. It

2017-07-07 Thread Louis O'Bryan
Thanks for the feedback. I don't think AVFrame.pkt_size should be used for any real purpose. > It's a hack and doesn't really have anything to do with AVFrame data > (the idea is that it corresponds to the source packet, but it's only a > hint at best). The AVFrame format is a raw byte stream wit

Re: [FFmpeg-devel] [PATCH 1/1] This change adds an encoder for Camera metadata motion. This is a type of sensor data associated with video, such as GPS, acceleration, gyro, and camera orientation. It

2017-07-07 Thread Hendrik Leppkes
On Sat, Jul 8, 2017 at 12:24 AM, Louis O'Bryan wrote: > > The use case is to write data to a new stream in the mp4 container. The > encoder isn't changing the data. This data would reside in the same mp4 > container as video and audio streams. Are you suggesting there is a way I > can accomplish t

Re: [FFmpeg-devel] [PATCH] movenc: write clap tag

2017-07-07 Thread Derek Buitenhuis
On 7/7/2017 10:13 PM, James Almer wrote: > Isn't this necessary only for files with raw video? As is, this box > would be written on any mov file with a video stream. This was addressed a previous email: http://lists.ffmpeg.org/pipermail/ffmpeg-devel/2017-July/213350.html I guess the spec is

[FFmpeg-devel] [PATCHv2 1/2] avdevice/decklink_dec: add support for decoding teletext from 10bit ancillary data

2017-07-07 Thread Marton Balint
This also add supports for 4K DeckLink cards because they always output the ancillary data in 10-bit. v2: - only try teletext decoding for 576i PAL mode - some comments as requested by Aaron Levinson Signed-off-by: Marton Balint --- doc/indevs.texi | 4 +-- libavdevice/decklink_de

Re: [FFmpeg-devel] [PATCH 1/1] This change adds an encoder for Camera metadata motion. This is a type of sensor data associated with video, such as GPS, acceleration, gyro, and camera orientation. It

2017-07-07 Thread Louis O'Bryan
It sounds like my code should be outside an encoder then. I think this stems from my misunderstanding of how the API can be used. I will rewrite my code that muxes streams to use an AVPacket directly instead. On Fri, Jul 7, 2017 at 3:47 PM, Hendrik Leppkes wrote: > On Sat, Jul 8, 2017 at 12:24 A

[FFmpeg-devel] [PATCHv2 2/2] avdevice/decklink_dec: add support for receiving op47 teletext

2017-07-07 Thread Marton Balint
v2: - use uint16_t instead of int to store 10-bit ancillary data - fix ancillary line numbers for 1080p - some comments and clarifications as requested by Aaron Levinson Signed-off-by: Marton Balint --- doc/indevs.texi | 20 --- libavdevice/decklink_dec.cpp | 127 ++

Re: [FFmpeg-devel] [PATCH v2] avfilter/pthread: rewrite implementation

2017-07-07 Thread Michael Niedermayer
On Fri, Jul 07, 2017 at 09:04:37PM +0700, Muhammad Faiz wrote: > Avoid pthread_cond_broadcast that wakes up all workers. Make each of them > uses distict mutex/cond. Also let main thread help running jobs. > > Benchmark using afir with threads=5 and 4096 taps fir: > channels=1: > old: > 184965

Re: [FFmpeg-devel] [PATCH 1/3] avcodec/get_bits: add cached bitstream reader

2017-07-07 Thread Michael Niedermayer
On Fri, Jul 07, 2017 at 08:48:46PM +0200, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > libavcodec/get_bits.h | 205 > +++--- > 1 file changed, 196 insertions(+), 9 deletions(-) > > diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.

Re: [FFmpeg-devel] [PATCH] libswresample: check input to swr_convert_frame for NULL

2017-07-07 Thread Michael Niedermayer
On Fri, Jul 07, 2017 at 10:54:47AM +0100, hexpointer wrote: > When 'out' is an AVFrame that does not have buffers preallocated, > swr_convert_frame tries to allocate buffers of the right size. However > in calculating this size it failed to check for whether 'in' is NULL > (requesting that swr's in

Re: [FFmpeg-devel] [PATCH v2] avfilter/pthread: rewrite implementation

2017-07-07 Thread Muhammad Faiz
On Sat, Jul 8, 2017 at 6:45 AM, Michael Niedermayer wrote: > On Fri, Jul 07, 2017 at 09:04:37PM +0700, Muhammad Faiz wrote: >> Avoid pthread_cond_broadcast that wakes up all workers. Make each of them >> uses distict mutex/cond. Also let main thread help running jobs. >> >> Benchmark using afir wi

Re: [FFmpeg-devel] [PATCH v2] avfilter/pthread: rewrite implementation

2017-07-07 Thread Michael Niedermayer
On Sat, Jul 08, 2017 at 09:06:05AM +0700, Muhammad Faiz wrote: > On Sat, Jul 8, 2017 at 6:45 AM, Michael Niedermayer > wrote: > > On Fri, Jul 07, 2017 at 09:04:37PM +0700, Muhammad Faiz wrote: > >> Avoid pthread_cond_broadcast that wakes up all workers. Make each of them > >> uses distict mutex/co