[FFmpeg-devel] [PATCH] lavf/mpegtsenc: add support for AVS2

2018-05-25 Thread hwren
Signed-off-by: hwren --- libavformat/mpegtsenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 3339e26..8b4f730 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -344,6 +344,9 @@ static int mpegts_write_pmt(AVFor

[FFmpeg-devel] [PATCH] lavf/mpegts: add support for AVS2

2018-05-25 Thread hwren
Signed-off-by: hwren --- libavformat/mpegts.c | 1 + libavformat/mpegts.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 5f53f77..6674cd0 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -735,6 +735,7 @@ static const StreamTy

[FFmpeg-devel] [PATCH] lavc,lavf: add libxavs2 encoder

2018-05-25 Thread hwren
Add Chinese AVS2 video encoder, FFmpeg can make use of the libxavs2 library for AVS2 encoding. Signed-off-by: hwren --- Changelog| 2 +- configure| 6 + doc/general.texi | 8 ++ libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + lib

[FFmpeg-devel] [PATCH] lavc,lavf: add libdavs2 decoder

2018-05-25 Thread hwren
Add Chinese AVS2 video decoder, FFmpeg can make use of the libdavs2 library for AVS2 decoding. Signed-off-by: hwren --- Changelog | 1 + configure | 6 ++ doc/general.texi| 8 ++ libavcodec/Makefile | 1 + libavcodec/allcodecs.c | 1 + libavcod

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

2018-05-25 Thread Jonathan Morley
Also please include the frame rate coming from the ultrastudio. I suspect there is a mismatch in the works. On Fri, May 25, 2018 at 7:36 PM Dave Rice wrote: > > > > On May 25, 2018, at 17:15, Jonathan Morley > wrote: > > > > Thank you for trying it out, Dave. > > > > 1) Can you please tell me m

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

2018-05-25 Thread Jonathan Morley
On Fri, May 25, 2018 at 7:36 PM Dave Rice wrote: > > > > On May 25, 2018, at 17:15, Jonathan Morley > wrote: > > > > Thank you for trying it out, Dave. > > > > 1) Can you please tell me more about how you tested? > > J30 digibeta deck playing a Betacam SP with SDI to an Ultrastudio 3D with > ffm

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

2018-05-25 Thread Dave Rice
> On May 25, 2018, at 17:15, Jonathan Morley wrote: > > Thank you for trying it out, Dave. > > 1) Can you please tell me more about how you tested? J30 digibeta deck playing a Betacam SP with SDI to an Ultrastudio 3D with ffmpeg with your patch and configured with decklink. > 2) Did you ru

Re: [FFmpeg-devel] audio conversion error!!

2018-05-25 Thread Compn
we need the mp4 file to test. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Re: [FFmpeg-devel] libavutil/encryption_info: Allow multiple init info.

2018-05-25 Thread Michael Niedermayer
On Fri, May 25, 2018 at 02:16:47PM -0700, Jacob Trimble wrote: > On Mon, May 21, 2018 at 9:25 AM, Jacob Trimble wrote: > > On Mon, May 14, 2018 at 4:49 PM, Jacob Trimble wrote: > >> On Tue, May 8, 2018 at 3:47 PM, Michael Niedermayer > >> wrote: > >>> On Mon, May 07, 2018 at 04:59:33PM -0700, Ja

Re: [FFmpeg-devel] [PATCH] libavformat/mxfenc: Add some () to attempt to workaround build issue on osx

2018-05-25 Thread Michael Niedermayer
On Thu, May 24, 2018 at 01:39:00PM -0300, James Almer wrote: > On 5/23/2018 9:38 PM, Michael Niedermayer wrote: > > On Tue, May 22, 2018 at 06:13:47PM -0300, James Almer wrote: > >> On 5/22/2018 3:57 PM, Michael Niedermayer wrote: > >>> May fix ticket7209 > >>> > >>> Signed-off-by: Michael Niederma

[FFmpeg-devel] [PATCH] configure: Omit fsanitize flags if they are already specified by the user

2018-05-25 Thread Michael Niedermayer
Signed-off-by: Michael Niedermayer --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 09ff0c55e2..f768a97327 100755 --- a/configure +++ b/configure @@ -3942,7 +3942,7 @@ set >> $logfile test -n "$valgrind" && toolchain="valgrind-memche

Re: [FFmpeg-devel] [PATCH] avcodec/ac3dec: Use frame_size if superframe_size is 0

2018-05-25 Thread Michael Niedermayer
On Fri, May 18, 2018 at 01:48:38AM +0200, Michael Niedermayer wrote: > Fixes: Infinite loop > Fixes: > 7669/clusterfuzz-testcase-ffmpeg_AV_CODEC_ID_AC3_FIXED_fuzzer-4689042185650176 > Fixes: > 7670/clusterfuzz-testcase-ffmpeg_AV_CODEC_ID_AC3_fuzzer-4706306762997760 > Fixes: > 7672/clusterfuzz-te

Re: [FFmpeg-devel] [PATCH 1/2] indeo4: Decode all or nothing of a band header.

2018-05-25 Thread Michael Niedermayer
On Thu, May 17, 2018 at 02:38:57PM +0200, Michael Niedermayer wrote: > This avoids inconsistent value combinations. > Alternatively it would be possible to add more checks and careful use of > temporary variables, but my try of this quickly seemed to become > a rather large change. > The disadvanta

[FFmpeg-devel] [PATCH 5/5] avcodec/ac3dec: Check that the number of channels with dependant streams is valid

2018-05-25 Thread Michael Niedermayer
Fixes: left shift of 1 by 63 places cannot be represented in type 'long long' Fixes: out of array access Fixes: 7284/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AC3_fuzzer-5767914968842240 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg S

[FFmpeg-devel] [PATCH 4/5] avcodec/ac3dec: Fix null pointer dereference in ac3_decode_frame()

2018-05-25 Thread Michael Niedermayer
Fixes: index 8 out of bounds for type 'uint8_t *[8]' Fixes: 7273/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EAC3_fuzzer-6296497667702784 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavcodec/

[FFmpeg-devel] [PATCH 3/5] avcodec/aacdec_fixed: use 64bit to avoid overflow in rounding in apply_dependent_coupling_fixed()

2018-05-25 Thread Michael Niedermayer
Fixes: signed integer overflow: -2141499320 + -14469590 cannot be represented in type 'int' Fixes: 7351/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-6351214791884800 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-

[FFmpeg-devel] [PATCH 1/5] avcodec/g723_1dec: Clip bits2 in both directions

2018-05-25 Thread Michael Niedermayer
Fixes: shift exponent 33 is too large for 32-bit type 'int' Fixes: 6743/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G723_1_fuzzer-5823772687859712 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- li

[FFmpeg-devel] [PATCH 2/5] oavcodec/aacpsdsp_template: Use unsigned for hs0X to prevent undefined behavior

2018-05-25 Thread Michael Niedermayer
Fixes: signed integer overflow: 1073741842 + 1784008138 cannot be represented in type 'int' Fixes: 6792/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5677589835284480 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-

Re: [FFmpeg-devel] [PATCH] doc/ffmpeg - rewrite Stream Selection chapter

2018-05-25 Thread Lou Logan
On Thu, 24 May 2018 19:18:50 +0530 Gyan Doshi wrote: > From a7ff32bdac54a1f257482526a507ab7823cafb41 Mon Sep 17 00:00:00 2001 > From: Gyan Doshi > Date: Thu, 24 May 2018 19:11:00 +0530 > Subject: [PATCH] doc/ffmpeg - rewrite Stream Selection chapter Nit: Use : instead of - in the subject. > Fl

Re: [FFmpeg-devel] libavutil/encryption_info: Allow multiple init info.

2018-05-25 Thread Jacob Trimble
On Mon, May 21, 2018 at 9:25 AM, Jacob Trimble wrote: > On Mon, May 14, 2018 at 4:49 PM, Jacob Trimble wrote: >> On Tue, May 8, 2018 at 3:47 PM, Michael Niedermayer >> wrote: >>> On Mon, May 07, 2018 at 04:59:33PM -0700, Jacob Trimble wrote: On Mon, May 7, 2018 at 3:18 PM, Michael Niedermay

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

2018-05-25 Thread Jonathan Morley
Thank you for trying it out, Dave. 1) Can you please tell me more about how you tested? 2) Did you run a capture command with ffmpeg after patching? 3) What was the target output you we using? Thanks, Jon ___ ffmpeg-devel mailing list ffmpeg-devel@ffm

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

2018-05-25 Thread Dave Rice
> On May 25, 2018, at 1:08 PM, Jonathan Morley wrote: > >> On May 25, 2018, at 8:32 AM, Marton Balint > > wrote: >> >> On Fri, 25 May 2018, Jonathan Morley wrote: >> >>> I apologize in advance for the formatting of this message. My mail >>> configuration impeded my effor

Re: [FFmpeg-devel] [PATCH]lavc/hevc_ps: Use correct pix_fmt for 9 bit monochrome.

2018-05-25 Thread Carl Eugen Hoyos
2018-05-23 15:06 GMT+02:00, Carl Eugen Hoyos : > Attached patch uses the new AV_PIX_FMT_GRAY9 for monochrome hevc input. Patch applied, Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

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

2018-05-25 Thread Jonathan Morley
Attached are the two patches to address your feedback, Marton. Please advise. Thanks, Jon > On May 25, 2018, at 8:32 AM, Marton Balint wrote: > > > > On Fri, 25 May 2018, Jonathan Morley wrote: > >> I apologize in advance for the formatting of this message. My mail >> configuration impeded

Re: [FFmpeg-devel] [PATCH]lavc/j2kenc: Support AV_PIX_FMT_PAL8

2018-05-25 Thread Carl Eugen Hoyos
2018-05-24 1:16 GMT+02:00, Michael Niedermayer : > On Tue, May 22, 2018 at 02:23:50AM +0200, Carl Eugen Hoyos wrote: >> Hi! >> >> Attached patch allows pal8 encoding into j2k, tested with libopenjpeg, >> kakadu and jasper. >> >> Please comment, Carl Eugen > >> j2kenc.c | 40

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

2018-05-25 Thread Jonathan Morley
That sounds great, Kieran! The plan with AJA is to leverage the open source ntv2_v4l2 (AJA video for linux driver) to capture audio, video, and timecode over SDI to a standard video for linux virtual device (aka /dev/video0). Then use the ffmpeg support for v4l2 to read it in and again set the

Re: [FFmpeg-devel] [PATCH]lavf/img2dec: Autodetect xwd images

2018-05-25 Thread Carl Eugen Hoyos
2018-05-25 3:01 GMT+02:00, Michael Niedermayer : > On Thu, May 24, 2018 at 03:30:42AM +0200, Carl Eugen Hoyos wrote: >> Hi! >> >> Attached patch implements autodetection of xwd images. >> >> Please comment, Carl Eugen > >> Makefile |1 + >> allformats.c |1 + >> img2dec.c| 32 +++

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

2018-05-25 Thread Kieran O Leary
Hi Jonathan, On Fri, May 25, 2018 at 6:32 PM, Jonathan Morley wrote: > Hi Kieran, > > To answer your question, this change basically takes the first valid TC as a > string and sticks it in the video’s avstream metadata dictionary where other > muxers and encoders look. It does not make an indep

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

2018-05-25 Thread Jonathan Morley
Hi Kieran, To answer your question, this change basically takes the first valid TC as a string and sticks it in the video’s avstream metadata dictionary where other muxers and encoders look. It does not make an independent timecode track/stream with samples per frame. That is why I called the p

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

2018-05-25 Thread Jonathan Morley
> On May 25, 2018, at 8:32 AM, Marton Balint wrote: > > > > 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 .patc

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

2018-05-25 Thread Kieran O Leary
I'd love to see some documentation and to know how timecode is stored in the output file. This looks like a really welcome development! ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

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’

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

2018-05-25 Thread Jonathan Morley
I apologize in advance for the formatting of this message. My mail configuration impeded my efforts to use ‘—send-email’. This commit did pass 'make fate’ though the use of these changes requires decklink hardware so I did not add any new fate tests. By default the new optional behavior is skipped

Re: [FFmpeg-devel] [PATCH] ffmpeg.c: allow ffmpeg to output stats for each video stream

2018-05-25 Thread Michael Niedermayer
On Tue, May 22, 2018 at 03:40:54PM -0700, Wang Cao wrote: > - Make ffmpeg to output stats for each video/audio streams and each ouptut > file ffmpeg output log in print_report. > - The report of video/audio sizes is clear as previously all output > video/audio sizes were combined to report and it

Re: [FFmpeg-devel] [GSOC] [PATCH] DNN module introduction and SRCNN filter update

2018-05-25 Thread James Almer
On 5/25/2018 10:01 AM, Sergey Lavrushkin wrote: > 2018-05-24 22:52 GMT+03:00 James Almer >: > > On 5/24/2018 4:24 PM, Sergey Lavrushkin wrote: > > Hello, > > > > This patch introduces DNN inference interface and simple native > backend. > > For no

[FFmpeg-devel] [PATCH v7 2/4] libavutil: add ancillary data

2018-05-25 Thread Patrick Keroulas
Ancillary data can carry various side data that can't be transmitted in bitstreams. For now, this struct includes interlaced field flags and the must be attached to an AVPacket as side data. Signed-off-by: Patrick Keroulas --- libavutil/Makefile | 2 ++ libavutil/ancillary_data.c | 27 +

[FFmpeg-devel] [PATCH v7 4/4] avformat/rtpdec_rfc4175: handle interlace format

2018-05-25 Thread Patrick Keroulas
From: Damien Riegel In order to handle the interlaced formats, the demuxer has only a few things to do: - parse the SDP correctly and propagate the information - check the field bit in the RFC4175 header, and pass that information to the decoder In interlaced mode, received data only consis

[FFmpeg-devel] [PATCH v7 3/4] avcodec/bitpacked: add interlace support

2018-05-25 Thread Patrick Keroulas
From: Damien Riegel This codec is already capable of depacking some combinations of pixel formats and depth as defined in the RFC4175. The only difference between progressive and interlace is that either a packet will contain the whole frame, or only a field of the frame. There is no mechanism f

[FFmpeg-devel] [PATCH v7 1/4] avcodec: add side data type for ancillary

2018-05-25 Thread Patrick Keroulas
avcodec: add side data type for ancillary Create a new type of side data to be attached to AVPacket in order to transmit out of band parameters for typical codecs. Signed-off-by: Patrick Keroulas --- doc/APIchanges| 3 +++ libavcodec/avcodec.h | 7 ++- libavcodec/avpacket.c | 1 +

[FFmpeg-devel] qt-faststart bug near 4GB

2018-05-25 Thread Eran Kornblau
Hi all, We encountered a rather extreme edge case with qt-faststart - we transcoded some video with ffmpeg, and the offset of the last video frame in the resulting mp4 was slightly less than 4GB. Since it was less than 4GB, ffmpeg used an 'stco' atom and not a 'co64' atom. When we ran qt-faststa

Re: [FFmpeg-devel] [GSOC] [PATCH] DNN module introduction and SRCNN filter update

2018-05-25 Thread Sergey Lavrushkin
2018-05-24 22:52 GMT+03:00 James Almer : > On 5/24/2018 4:24 PM, Sergey Lavrushkin wrote: > > Hello, > > > > This patch introduces DNN inference interface and simple native backend. > > For now implemented backend supports only convolutions with relu > activation > > function, that are sufficient

[FFmpeg-devel] FFMPEG4.0 open mp4 from HTTP server report : stream 1, offset 0x1c33: partial file

2018-05-25 Thread whmiao
Hi, I run cmd like: ffmpeg -i http://js.a.yximgs.com/udata/W_8_UAn4tpgi8_zh.mp4 e:\test.mp4 It Will report error: stream 0, offset 0x30: partial file If i download the file ,save in local storage, run cmd like ffmpeg -i e:\W_8_UAn4tpgi8_zh.mp4 -y e:\ou.mp4 It works well. Full comand

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 pre