Re: [FFmpeg-devel] Build Errors

2017-10-15 Thread Yogender Gupta
>>I build on windows regularly and I have not noticed any problems with >>configure getting stuck, though. My bad, I actually put a log in the below statements, to figure out where it stuck, but find that it works fine. However the configure time seems to have increased multiple times, and it

Re: [FFmpeg-devel] Build Errors

2017-10-15 Thread Timo Rothenpieler
Am 15.10.2017 um 10:21 schrieb Yogender Gupta: I build on windows regularly and I have not noticed any problems with configure getting stuck, though. My bad, I actually put a log in the below statements, to figure out where it stuck, but find that it works fine. However the configure time se

Re: [FFmpeg-devel] Configure: commit 6dfcbd80ad446ff163b47f2bf432bbf706436ea8 broke my builds

2017-10-15 Thread Mark Himsley
Thanks. I'll add -lm and -lpthreads to -extra-libs for now. On 14 October 2017 15:35:41 BST, James Almer wrote: >On 10/14/2017 7:48 AM, Mark Himsley wrote: >> Update: for me with my specific set of libraries, I have had to apply >> this patch to configure in order to make configure accept my >> c

[FFmpeg-devel] [PATCH 03/20] lavc: Add coded bitstream read/write API

2017-10-15 Thread Mark Thompson
(cherry picked from commit 18f1706f331bf5dd565774eae680508c8d3a97ad) (cherry picked from commit 44cde38c8acbef7d5250e6d1b52b1020871e093b) --- configure | 1 + libavcodec/Makefile | 1 + libavcodec/cbs.c | 482 ++ libavc

[FFmpeg-devel] [PATCH 04/20] lavc: Add coded bitstream read/write support for H.264

2017-10-15 Thread Mark Thompson
(cherry picked from commit acf06f45441be24c5cbae0920579cd69427326a1) (cherry picked from commit 768eb9182e94a94bc2ef46f565a0dac7afef3b57) (cherry picked from commit e7f64191b27bcf37cbf7006606f0f439c6cdc24f) --- configure |2 + libavcodec/Makefile |

[FFmpeg-devel] [PATCH 07/20] lavc: Add trace_headers bitstream filter

2017-10-15 Thread Mark Thompson
Supports all streams that the coded bitstream infrastructure does (currently H.264, H.265 and MPEG-2). (cherry picked from commit f11d8a5e8b185340cc50fcbc8a1437b0fbe7e931) --- configure | 1 + doc/bitstream_filters.texi | 8 +++ libavcodec/Makefile| 1 +

[FFmpeg-devel] [PATCH 06/20] lavc: Add coded bitstream read/write support for MPEG-2

2017-10-15 Thread Mark Thompson
(cherry picked from commit 2bc9ba8d3c41f3a8e56484bd67b05040c7909a01) (cherry picked from commit a41b69b5eb950c10d8ede472bcc4e88ce4246db9) --- configure | 2 + libavcodec/Makefile| 1 + libavcodec/cbs.c | 3 + libavcodec/c

[FFmpeg-devel] [PATCH 08/20] lavc: Add h264_metadata bitstream filter

2017-10-15 Thread Mark Thompson
This is able to modify some header metadata found in the SPS/VUI, and can also add/remove AUDs and insert user data in SEI NAL units. (cherry picked from commit 9e93001b6135a23fe4e200196c08fb4fbffed6fc) (cherry picked from commit c42b62d1f9641f10ffc23cad9abbe47d8a4a165b) --- configure

[FFmpeg-devel] [PATCH 09/20] lavc: Add h264_redundant_pps bitstream filter

2017-10-15 Thread Mark Thompson
This applies a specific fixup to some Blu-ray streams which contain redundant PPSs modifying irrelevant parameters of the stream which confuse other transformations which require correct extradata. A new single global PPS is created, and all of the redundant PPSs within the stream are removed. (c

[FFmpeg-devel] [PATCH 16/20] vaapi_h264: Fix CPB/DPB delays

2017-10-15 Thread Mark Thompson
This should be ticks, not time_scale steps - it was wrong for all framerates not a multiple of 1/2. (cherry picked from commit 30645174e333c7db1946ab09be769db9be9d7481) --- libavcodec/vaapi_encode_h264.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavcodec/vaapi_en

[FFmpeg-devel] [PATCH 18/20] vaapi_h265: Add support for AUD NAL units

2017-10-15 Thread Mark Thompson
Matching the H.264 encoder. (cherry picked from commit e3e8eab359238486dc233f7aa89b7bb3cb19ec38) --- libavcodec/vaapi_encode_h265.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index 4e

[FFmpeg-devel] [PATCH 19/20] vaapi_mpeg2: Convert to use coded bitstream infrastructure

2017-10-15 Thread Mark Thompson
(cherry picked from commit 10eb496d9ae94df6f792b0e1d8750738eb3a0952) --- configure | 2 +- libavcodec/vaapi_encode_mpeg2.c | 638 ++-- 2 files changed, 424 insertions(+), 216 deletions(-) diff --git a/configure b/configure index e97f345a

[FFmpeg-devel] [PATCH 17/20] vaapi_h265: Convert to use coded bitstream infrastructure

2017-10-15 Thread Mark Thompson
Also improves the metadata and generally makes the configuration a bit cleaner. (cherry picked from commit ac12486714b48f9bd5d9167f90b77c936751d6ef) --- configure |2 +- libavcodec/Makefile|2 +- libavcodec/vaapi_encode_h265.c | 1536 +++---

[FFmpeg-devel] [PATCH 20/20] cbs: Add some read/write tests

2017-10-15 Thread Mark Thompson
Use the appropriate metadata filter for each codec - in the absence of any options to modify the stream, the output bitstream should be identical to the input (though the output file may differ in padding). All tests use conformance bitstreams, the MPEG-2 streams are newly added from the conforman

[FFmpeg-devel] [PATCH 02/20] hevc: Improve stream constraint values in common header

2017-10-15 Thread Mark Thompson
Add comments to describe the sources of the constraint values expressed here, and add some more related values which will be used in following patches. Fix the incorrect values for SPS and PPS count (they are not the same as those used for H.264), and remove HEVC_MAX_CU_SIZE because it is not used

[FFmpeg-devel] [PATCH 12/20] lavc: Add mpeg2_metadata bitstream filter

2017-10-15 Thread Mark Thompson
(cherry picked from commit b78c30d7ec26af67c00ce2002709a189f6a87a7e) --- configure | 1 + doc/bitstream_filters.texi | 36 + libavcodec/Makefile | 1 + libavcodec/bitstream_filters.c | 1 + libavcodec/mpeg2_metadata_bsf.c | 312 +++

[FFmpeg-devel] [PATCH 13/20] vaapi_h264: Convert to use coded bitstream infrastructure

2017-10-15 Thread Mark Thompson
(cherry picked from commit 7a4fac5e91789b73e07bd4ad20493cfde028df76) --- configure |2 +- libavcodec/Makefile|2 +- libavcodec/vaapi_encode_h264.c | 1425 3 files changed, 551 insertions(+), 878 deletions(-) diff --

[FFmpeg-devel] [PATCH 00/20] Coded bitstream editing (v4)

2017-10-15 Thread Mark Thompson
Incorporating fixes since the last full set: * SEI user data added in the first access unit whether or not it contains parameter sets. * Fix crash when closing uninitialised cbs instance. * Miscellaneous documentation changes. I'll push this tomorrow if there are no further comments. Thanks, -

[FFmpeg-devel] [PATCH 15/20] vaapi_h264: Add support for SEI recovery points

2017-10-15 Thread Mark Thompson
Included by default with non-IDR intra frames. (cherry picked from commit a49ee60d5fdbdae1706a44cfbb814abb9793815f) --- libavcodec/vaapi_encode_h264.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_

[FFmpeg-devel] [PATCH 01/20] h264: Add stream constraint values to the common header

2017-10-15 Thread Mark Thompson
With comments describing the derivation of each value. (cherry picked from commit aaf441465080b9bc57f5ca8dea656f9b2c5dc821) --- libavcodec/h264.h | 45 + 1 file changed, 45 insertions(+) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index 86df5eb9

[FFmpeg-devel] [PATCH 10/20] lavc: Add hevc_metadata bitstream filter

2017-10-15 Thread Mark Thompson
This is able to modify some header metadata found in the VPS/SPS/VUI, and can also add/remove AUDs. (cherry picked from commit b31a9eae0233325c4b382c657f4b687d5d8b0812) --- configure | 1 + doc/bitstream_filters.texi | 54 + libavcodec/Makefile| 1 +

[FFmpeg-devel] [PATCH 05/20] lavc: Add coded bitstream read/write support for H.265

2017-10-15 Thread Mark Thompson
(cherry picked from commit 867381b8b51fa21fa2b8f071f508f3d39cc9c1f0) (cherry picked from commit f763489364416bb6866adc4f4a96012dd2ca1bd0) (cherry picked from commit 067a9ddeb8feff1f724856f0054930c55219f76b) --- configure |2 + libavcodec/Makefile |

[FFmpeg-devel] [PATCH 11/20] mpeg12: Add a common function to find the best frame rate

2017-10-15 Thread Mark Thompson
This will be used later in both the mpeg2_metadata filter and the VAAPI MPEG-2 encoder. Also adds a unit test. (cherry picked from commit b5859e0b04bdbe12c97cb12ac10a45d51d2d73c9) --- libavcodec/Makefile| 1 + libavcodec/mpeg12.h| 4 ++ libavcodec/mpeg12framerat

[FFmpeg-devel] [PATCH 14/20] vaapi_h264: Add support for AUD NAL units

2017-10-15 Thread Mark Thompson
Adds a new private option to enable them (off by default). (cherry picked from commit 820a4483af13cf6fd51f13638e57bcd1c3f629d4) --- libavcodec/vaapi_encode_h264.c | 33 + 1 file changed, 33 insertions(+) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaa

Re: [FFmpeg-devel] FFmpeg 3.4

2017-10-15 Thread Michael Niedermayer
On Wed, Oct 11, 2017 at 03:02:00AM +0200, Michael Niedermayer wrote: > On Fri, Oct 06, 2017 at 04:53:17PM +0200, Michael Niedermayer wrote: > > Hi all > > > > if there are no objections i will branch release/3.4 in the next days > > and make the 3.4 release a few days after that > > > > If people

Re: [FFmpeg-devel] [PATCH 1/3] libavformat/avio: retry_transfer_wrapper: don't treat 0 as EOF

2017-10-15 Thread Nicolas George
Le duodi 22 vendémiaire, an CCXXVI, Daniel Kucera a écrit : > transfer_func variable passed to retry_transfer_wrapper > are h->prot->url_read and h->prot->url_write functions. > These need to return EOF or other error properly. > In case of returning >= 0, url_read/url_write is retried > until erro

Re: [FFmpeg-devel] [PATCH] ffmpeg_opt: deprecate the hwaccel_lax_profile_check option

2017-10-15 Thread Mark Thompson
On 13/10/17 08:07, Jun Zhao wrote: > From 40c45849b5146688ce6f88ca4fe20b771fb2de46 Mon Sep 17 00:00:00 2001 > From: Jun Zhao > Date: Fri, 13 Oct 2017 02:53:01 -0400 > Subject: [PATCH] ffmpeg_opt: deprecate the hwaccel_lax_profile_check option > > deprecate hwaccel_lax_profile_check. This only was

Re: [FFmpeg-devel] [PATCH] avdevice/decklink_dec: Added SCTE104 message decode from VANC

2017-10-15 Thread Moritz Barsnick
On Fri, Oct 13, 2017 at 09:10:30 -0400, Devin Heitmueller wrote: > Video filters cannot create new streams No? I thought they could. (I'm not challenging any of your other statements. I wouldn't know.) Moritz ___ ffmpeg-devel mailing list ffmpeg-devel@

Re: [FFmpeg-devel] [PATCH] libavformat/cache: don't treat 0 as EOF libavformat/aviobuf: don't treat 0 as EOF libavformat/avio: retry_transfer_wrapper: don't treat 0 as EOF

2017-10-15 Thread Moritz Barsnick
On Sat, Oct 14, 2017 at 19:27:34 +0200, Daniel Kucera wrote: > Subject: [FFmpeg-devel] [PATCH] libavformat/cache: don't treat 0 as EOF > libavformat/aviobuf: don't treat 0 as EOF libavformat/avio: > retry_transfer_wrapper: don't treat 0 as EOF Something went wrong with your commit

Re: [FFmpeg-devel] [PATCH] avdevice/decklink_dec: Added SCTE104 message decode from VANC

2017-10-15 Thread Devin Heitmueller
> On Oct 15, 2017, at 6:36 PM, Moritz Barsnick wrote: > > On Fri, Oct 13, 2017 at 09:10:30 -0400, Devin Heitmueller wrote: >> Video filters cannot create new streams > > No? I thought they could. > I couldn’t find a single filter which calls avformat_new_stream(), and the docs for avformat_n

Re: [FFmpeg-devel] [PATCH] ffmpeg_opt: deprecate the hwaccel_lax_profile_check option

2017-10-15 Thread Jun Zhao
On 2017/10/16 4:22, Mark Thompson wrote: > On 13/10/17 08:07, Jun Zhao wrote: >> From 40c45849b5146688ce6f88ca4fe20b771fb2de46 Mon Sep 17 00:00:00 2001 >> From: Jun Zhao >> Date: Fri, 13 Oct 2017 02:53:01 -0400 >> Subject: [PATCH] ffmpeg_opt: deprecate the hwaccel_lax_profile_check option >> >>

Re: [FFmpeg-devel] [PATCH] libavformat/cache: don't treat 0 as EOF libavformat/aviobuf: don't treat 0 as EOF libavformat/avio: retry_transfer_wrapper: don't treat 0 as EOF

2017-10-15 Thread Michael Niedermayer
On Sat, Oct 14, 2017 at 07:27:34PM +0200, Daniel Kucera wrote: > transfer_func variable passed to retry_transfer_wrapper > are h->prot->url_read and h->prot->url_write functions. > These need to return EOF or other error properly. > In case of returning >= 0, url_read/url_write is retried > until e

Re: [FFmpeg-devel] [PATCH] libavformat/cache: don't treat 0 as EOF libavformat/aviobuf: don't treat 0 as EOF libavformat/avio: retry_transfer_wrapper: don't treat 0 as EOF

2017-10-15 Thread James Almer
On 10/15/2017 9:38 PM, Michael Niedermayer wrote: > On Sat, Oct 14, 2017 at 07:27:34PM +0200, Daniel Kucera wrote: >> transfer_func variable passed to retry_transfer_wrapper >> are h->prot->url_read and h->prot->url_write functions. >> These need to return EOF or other error properly. >> In case of

Re: [FFmpeg-devel] [PATCH] libavformat/cache: don't treat 0 as EOF libavformat/aviobuf: don't treat 0 as EOF libavformat/avio: retry_transfer_wrapper: don't treat 0 as EOF

2017-10-15 Thread Daniel Kučera
> This changes: > ./ffmpeg -y -i 'concat:matrixbench_mpeg2.mpg|matrixbench_mpeg2.mpg' -vsync 0 -an file.avi In case he doesn't have this sample: http://samples.ffmpeg.org/benchmark/testsuite1/matrixbench_mpeg2.mpg Basically, with the patch applied the above command doesn't concatenate the input a

Re: [FFmpeg-devel] [PATCH] libavformat/cache: don't treat 0 as EOF libavformat/aviobuf: don't treat 0 as EOF libavformat/avio: retry_transfer_wrapper: don't treat 0 as EOF

2017-10-15 Thread James Almer
On 10/16/2017 12:10 AM, Daniel Kučera wrote: >> This changes: >> ./ffmpeg -y -i 'concat:matrixbench_mpeg2.mpg|matrixbench_mpeg2.mpg' > -vsync 0 -an file.avi > > In case he doesn't have this sample: > http://samples.ffmpeg.org/benchmark/testsuite1/matrixbench_mpeg2.mpg > > Basically, with the patc