From p.remek1 at googlemail.com Sat Oct 1 00:17:35 2016 From: p.remek1 at googlemail.com (P. Remek) Date: Fri, 30 Sep 2016 23:17:35 +0200 Subject: [FFmpeg-user] ffmpeg multithreaded performance bad for specific physical machine Message-ID: Hello, I am facing rather interesting problem and am slowly running out of ideas. It seems that ffmpeg running on one of our physical machines has performance problems when running with multiple threads. We have two physical boxes: First: 2-socket Intel Xeon E5-2630 v2 Second 4-socket Intel Xeon E7-8867 v3 First seems ok, when I run encoding with 1 thread I get ~20 fps, with 2 threads ~40 fps. So it scales up as expected. The second however, with 1 thread I get ~25 fps, and with 2 threads it stays roughly the same on ~25 fps - so, no scale up. What is also interesting that the CPU consumption (viewed using htop) looks comparable on both machines when running 2 threads - basically 3 cores are spinning somewhere around 80% but with different end result (20 vs 40 fps). I already excluded hyperthreading (disabled on both), numa issues (I am starting the command with taskset to bind the execution to cores running on same socket) and specific instructions which are different on our different CPU families - like for example AVX2 which is only on our E7 cpu (I disabled everything using -cpuflags 0, -x264opts asm=0) I also tried to compile the binaries directly on the tested machines to exclude some CPU-specific compile time optimizations which might take effect. Does anybody have an idea where else could be the problem? Here is the command which I use to run the test: root at lab-node3:~/ffsource/ffmpeg-3.1.3# taskset -c 1,2,3 ./ffmpeg -cpuflags 0 -f lavfi -i testsrc=duration=60:size=1024x576:rate=25 -threads 2 -preset veryfast -c libx264 -x264opts asm=0 -f mpegts - >/dev/null Regards, Prema From tim_z at gmx.net Wed Oct 5 13:42:58 2016 From: tim_z at gmx.net (Tim Zett) Date: Wed, 5 Oct 2016 12:42:58 +0200 Subject: [FFmpeg-user] ffmpeg issues with XAVC-L in MXF container Message-ID: Hello all, I'd like to re-wrap Sony XAVC-L video based on OP-1a in MXF container, in order to produce proxy files for my edits. I am using the following command line: & $ffmpegpath -i $Item.FullName -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -c:a copy -c:d copy -c:t copy -copyts -metadata creation_time=$Timestamp -c:v libx264 -pix_fmt yuv422p10le -intra -b:v 16000k -vf scale=1280:720 -y $targetfolder\$TargetItem'.MXF' However, the resulting frames are interlaced, even though in the original file the are progressive, and even they are variable frames, other than in the original where they are fixed: Format : AVC Format/Info : Advanced Video Codec Format profile : High 4:2:2 Intra at L3.2 Format settings, CABAC : Ja Format settings, GOP : N=1 Format settings, wrapping mode : Frame Codec ID : 0D01030102106001-0401020201323001 Duration : 4s 800 ms Bit rate : 16,0 Mb/s Width : 1 280 Pixel Height : 720 Pixel Display aspect ratio : 16:9 Frame rate mode : *variable* Frame rate : 50,000 FPS Color space : YUV Chroma subsampling : 4:2:2 Bit depth : 8 bits Scan type : *Interlaced* Original scan type : progressive When I encode in MPEG-2 things stay in place as they should be, even though that is not the target format where I need to get to: & $ffmpegpath -i $Item.FullName -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -c:a copy -c:d copy -c:t copy -copyts -metadata creation_time=$Timestamp -c:v mpeg2video -pix_fmt yuv422p10le -intra -b:v 16000k -vf scale=1280:720 -y $targetfolder\$TargetItem'.MXF' Please advise. From ceffmpeg at gmail.com Wed Oct 5 14:12:37 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 5 Oct 2016 13:12:37 +0200 Subject: [FFmpeg-user] ffmpeg issues with XAVC-L in MXF container In-Reply-To: References: Message-ID: 2016-10-05 12:42 GMT+02:00 Tim Zett : > I'd like to re-wrap Sony XAVC-L video based on OP-1a in MXF container, Please use "remuxing" so everybody here understands what you are trying to say. > in order to produce proxy files for my edits. > I am using the following command line: > > & $ffmpegpath -i $Item.FullName -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 > -c:a copy -c:d copy -c:t copy -copyts -metadata creation_time=$Timestamp > -c:v libx264 -pix_fmt yuv422p10le -intra -b:v 16000k -vf scale=1280:720 -y > $targetfolder\$TargetItem'.MXF' Complete, uncut console output missing. > However, the resulting frames are interlaced, even though in the > original file the are progressive, x264 does not support paff encoding, do you think the encoding quality is bad? > and even they are variable frames, other than in > the original where they are fixed: I don't understand this sentence. Carl Eugen From mikhailwas at gmail.com Wed Oct 5 16:45:15 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Wed, 5 Oct 2016 15:45:15 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding Message-ID: Hello, I have a camera recording which is an MXF file and the codec is DNxHD I suppose it is a single-frame codec so literally it is a container of images which are independently stored in the file. Recordings are taken at 50 fps progressive. Now what I want is to extract only half of the frames, so that it becomes 25 fps Note that I need to do it _without re-encoding_ for two reasons: 1. Conversion must be as fast as possible, files can be really huge 2. No changes to original information should occur Theoretically this is an elementary operation, it should just take every second frame from source and write to output leaving everything else as is. I have tried several options whith "-r ..." and added "-c:v copy" These commands I have tried: ffmpeg -i Capture0006V_720p.mxf -r 25 -c:v copy out1.mxf ffmpeg -r 50 -i Capture0006V_720p.mxf -r 25 -c:v copy out1.mxf ffmpeg -r 2 -i Capture0006V_720p.mxf -r 1 -c:v copy out1.mxf But they all produce again 50 fps video, so I suppose stream copy just ignores all "-r" options so I don't know what can I do to achieve what I want. I have searched a lot, so I've registered here hoping for solution. Is it possible that ffmpeg cannot do this without re-encoding? If no, how can one do this? Thanks in advance. From erik.dobberkau at gmail.com Wed Oct 5 19:06:18 2016 From: erik.dobberkau at gmail.com (Erik Dobberkau) Date: Wed, 5 Oct 2016 18:06:18 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: > Hello, > > I have a camera recording which is an MXF file and the codec is DNxHD > I suppose it is a single-frame codec so literally it is a container of > images which are independently stored in the file. > Recordings are taken at 50 fps progressive. Hi Michail, this is a TV standard, 720p50. Nothing exotic. > Now what I want is to extract only half of the frames, so that it becomes > 25 fps Why would you want to do that? You're getting standard-incompliant video. In other words: This is wrong. > Note that I need to do it _without re-encoding_ for two reasons: > 1. Conversion must be as fast as possible, files can be really huge > 2. No changes to original information should occur > > Theoretically this is an elementary operation, it should just take > every second frame from source and write to output > leaving everything else as is. > I have tried several options whith "-r ..." and added "-c:v copy" > These commands I have tried: > > ffmpeg -i Capture0006V_720p.mxf -r 25 -c:v copy out1.mxf > ffmpeg -r 50 -i Capture0006V_720p.mxf -r 25 -c:v copy out1.mxf > ffmpeg -r 2 -i Capture0006V_720p.mxf -r 1 -c:v copy out1.mxf > > But they all produce again 50 fps video, so I suppose stream copy just > ignores all "-r" options so I don't know what can I do to achieve > what I want. I have searched a lot, so I've registered here > hoping for solution. > > Is it possible that ffmpeg cannot do this without re-encoding? > If no, how can one do this? > Thanks in advance. > Stream Copy does that... it copies streams. Dropping every second frame will destroy motion smoothness thus ruin your video. But you can do that with another filter. Erik From ceffmpeg at gmail.com Wed Oct 5 20:55:26 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 5 Oct 2016 19:55:26 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: 2016-10-05 15:45 GMT+02:00 Mikhail V : > Is it possible that ffmpeg cannot do this without re-encoding? You can export single frames and delete half of them using a shell script. Carl Eugen From mikhailwas at gmail.com Wed Oct 5 23:58:47 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Wed, 5 Oct 2016 22:58:47 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: On 5 October 2016 at 18:06, Erik Dobberkau wrote: >> Hello, >> >> I have a camera recording which is an MXF file and the codec is DNxHD >> I suppose it is a single-frame codec so literally it is a container of >> images which are independently stored in the file. >> Recordings are taken at 50 fps progressive. > > > Hi Michail, > > this is a TV standard, 720p50. Nothing exotic. > > >> Now what I want is to extract only half of the frames, so that it becomes >> 25 fps > > > Why would you want to do that? > You're getting standard-incompliant video. In other words: This is wrong. You are right, but what is standard depend on situation, currently the only working mode for me is 25 progressive. I know 50 fps would be better of course, but it does not depend on me but the prescriptions from the broadcaster. From mikhailwas at gmail.com Thu Oct 6 00:08:50 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Wed, 5 Oct 2016 23:08:50 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: On 5 October 2016 at 19:55, Carl Eugen Hoyos wrote: > 2016-10-05 15:45 GMT+02:00 Mikhail V : > >> Is it possible that ffmpeg cannot do this without re-encoding? > > You can export single frames and delete half of them using a > shell script. > > Carl Eugen Sure I can :) Also I can just directly recode it in 25 fps in any codec. So I suppose the answer is - I can't do it without re-encode. I was just wondering why there is no such function for intraframe codecs, would be very handy in my opinion. From cus at passwd.hu Thu Oct 6 00:27:40 2016 From: cus at passwd.hu (Marton Balint) Date: Wed, 5 Oct 2016 23:27:40 +0200 (CEST) Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: On Wed, 5 Oct 2016, Mikhail V wrote: > On 5 October 2016 at 19:55, Carl Eugen Hoyos wrote: >> 2016-10-05 15:45 GMT+02:00 Mikhail V : >> >>> Is it possible that ffmpeg cannot do this without re-encoding? >> >> You can export single frames and delete half of them using a >> shell script. >> >> Carl Eugen > > Sure I can :) Also I can just directly recode it in 25 fps in any codec. > So I suppose the answer is - I can't do it without re-encode. > I was just wondering why there is no such function for intraframe codecs, > would be very handy in my opinion. You may try generating an ffconcat file which seeks to every second frame, then force the halved frame rate for it, finally mux this with the original audio using streamcopy. With a little luck, this should work. Regards, Marton From romeo.r at gmail.com Thu Oct 6 10:37:27 2016 From: romeo.r at gmail.com (Roman) Date: Thu, 6 Oct 2016 10:37:27 +0300 Subject: [FFmpeg-user] Invalid PCM packet, Message-ID: Hi! I'm running online radio, that gets stream from DEVA DB9000TX. For some reason I'm getting pretty often these errors, sometimes 2-3 in a row during one hour. I could provide you with a login details if needed to the stream generator. Anything I could do to this to fix it? Sometimes it runs pretty fine for a months or two without errors. What is original problem? It receives invalid data and therefore time out occurs or it receives time out and the error occurs? Here are some logs: [pcm_s16le @ 0x4235880] Invalid PCM packet, data has size 1 but at least a size of 4 was expected Error while decoding stream #0:0: Invalid data found when processing input http://xxx.xxx.245.250:5000: Connection timed out ffmper runs in VM and uses qemu virtual processor: QEMU Virtual CPU version (cpu64-rhel6) ffmpeg version 0.8.17-6:0.8.17-1 -- Best regards, Roman. From ceffmpeg at gmail.com Thu Oct 6 11:07:32 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 6 Oct 2016 10:07:32 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: 2016-10-05 23:08 GMT+02:00 Mikhail V : > On 5 October 2016 at 19:55, Carl Eugen Hoyos wrote: >> 2016-10-05 15:45 GMT+02:00 Mikhail V : >> >>> Is it possible that ffmpeg cannot do this without re-encoding? >> >> You can export single frames and delete half of them using a >> shell script. > Sure I can :) Also I can just directly recode it in 25 fps in any codec. > So I suppose the answer is - I can't do it without re-encode. If you want to drop every second frame without re-encoding at all, you can export all frames as single frames and use a shell script to drop half of them. Carl Eugen From ceffmpeg at gmail.com Thu Oct 6 11:06:12 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 6 Oct 2016 10:06:12 +0200 Subject: [FFmpeg-user] Invalid PCM packet, In-Reply-To: References: Message-ID: 2016-10-06 9:37 GMT+02:00 Roman : > Here are some logs: Command line and complete, uncut console output missing. Carl Eugen From romeo.r at gmail.com Thu Oct 6 14:47:03 2016 From: romeo.r at gmail.com (Roman) Date: Thu, 6 Oct 2016 14:47:03 +0300 Subject: [FFmpeg-user] Invalid PCM packet, In-Reply-To: References: Message-ID: Hi, and thanx for reply. 2016-10-06 11:06 GMT+03:00 Carl Eugen Hoyos : > 2016-10-06 9:37 GMT+02:00 Roman : > > > Here are some logs: > > Command line and complete, uncut console output missing. > Sorry. I've attached them. -- Best regards, Roman. -------------- next part -------------- ffmpeg started on 2016-10-06 at 14:26:09 Report written to "/home/radio/2016-10-06-14-26-09-mp3.log" Command line: /home/radio/ffmpeg/latest/ffmpeg -f s16le -ar 48000 -ac 2 -timeout 3000000 -i http://StreamHOST:5000 -b:a 192k -compression_level 0 -ac 2 -ar 44100 -af "volume=3dB" -f mp3 -ice_name HitFM -ice_public 0 icecast://source:secret-password at localhost:80/HitFM_192 -b:a 96k -compression_level 0 -ac 2 -ar 44100 -af "volume=3dB" -f mp3 -ice_name HitFM -ice_public 0 icecast://source:secret-password at localhost:80/HitFM_96 -b:a 320k -compression_level 0 -ac 2 -ar 44100 -af "volume=3dB" -f mp3 -ice_name HitFM -ice_public 0 icecast://source:secret-password at localhost:80/HitFM_320 ffmpeg version 2.6.3- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (Debian 4.9.2-16) configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9 libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Splitting the commandline. Reading option '-f' ... matched as option 'f' (force format) with argument 's16le'. Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '48000'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'. Reading option '-timeout' ... matched as AVOption 'timeout' with argument '3000000'. Reading option '-i' ... matched as input file with argument 'http://StreamHOST:5000'. Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '192k'. Reading option '-compression_level' ... matched as AVOption 'compression_level' with argument '0'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'. Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '44100'. Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'volume=3dB'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mp3'. Reading option '-ice_name' ... matched as AVOption 'ice_name' with argument 'HitFM'. Reading option '-ice_public' ... matched as AVOption 'ice_public' with argument '0'. Reading option 'icecast://source:secret-password at localhost:80/HitFM_192' ... matched as output file. Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '96k'. Reading option '-compression_level' ... matched as AVOption 'compression_level' with argument '0'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'. Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '44100'. Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'volume=3dB'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mp3'. Reading option '-ice_name' ... matched as AVOption 'ice_name' with argument 'HitFM'. Reading option '-ice_public' ... matched as AVOption 'ice_public' with argument '0'. Reading option 'icecast://source:secret-password at localhost:80/HitFM_96' ... matched as output file. Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '320k'. Reading option '-compression_level' ... matched as AVOption 'compression_level' with argument '0'. Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'. Reading option '-ar' ... matched as option 'ar' (set audio sampling rate (in Hz)) with argument '44100'. Reading option '-af' ... matched as option 'af' (set audio filters) with argument 'volume=3dB'. Reading option '-f' ... matched as option 'f' (force format) with argument 'mp3'. Reading option '-ice_name' ... matched as AVOption 'ice_name' with argument 'HitFM'. Reading option '-ice_public' ... matched as AVOption 'ice_public' with argument '0'. Reading option 'icecast://source:secret-password at localhost:80/HitFM_320' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Successfully parsed a group of options. Parsing a group of options: input file http://StreamHOST:5000. Applying option f (force format) with argument s16le. Applying option ar (set audio sampling rate (in Hz)) with argument 48000. Applying option ac (set number of audio channels) with argument 2. Successfully parsed a group of options. Opening an input file: http://StreamHOST:5000. [http @ 0x4003e80] request: GET / HTTP/1.1 User-Agent: Lavf/56.25.101 Accept: */* Range: bytes=0- Connection: close Host: StreamHOST:5000 Icy-MetaData: 1 [http @ 0x4003e80] header='ICY 200 OK' [http @ 0x4003e80] http_code=200 [http @ 0x4003e80] header='Content-Type:audio/raw' [http @ 0x4003e80] header='Server:DEVAStreamServer 1.4' [http @ 0x4003e80] header='icy-pub:1' [http @ 0x4003e80] header='icy-br:1536' [http @ 0x4003e80] header='icy-name:DB9000-TX-HitFM' [http @ 0x4003e80] header='icy-metaint:32768' [http @ 0x4003e80] header='Cache-Control:no-cache' [http @ 0x4003e80] header='' [s16le @ 0x4003880] Before avformat_find_stream_info() pos: 0 bytes read:1400 seeks:0 [s16le @ 0x4003880] All info found [s16le @ 0x4003880] After avformat_find_stream_info() pos: 204800 bytes read:204800 seeks:0 frames:50 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, s16le, from 'http://StreamHOST:5000': Metadata: icy-pub : 1 icy-br : 1536 icy-name : DB9000-TX-HitFM Duration: N/A, bitrate: 1536 kb/s Stream #0:0, 50, 1/48000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Successfully opened the file. Parsing a group of options: output file icecast://source:secret-password at localhost:80/HitFM_192. Applying option b:a (video bitrate (please use -b:v)) with argument 192k. Applying option ac (set number of audio channels) with argument 2. Applying option ar (set audio sampling rate (in Hz)) with argument 44100. Applying option af (set audio filters) with argument volume=3dB. Applying option f (force format) with argument mp3. Successfully parsed a group of options. Opening an output file: icecast://source:secret-password at localhost:80/HitFM_192. [http @ 0x40486c0] request: PUT /HitFM_192 HTTP/1.1 User-Agent: Lavf/56.25.101 Accept: */* Expect: 100-continue Connection: close Host: localhost:80 Content-Type: audio/mpeg Icy-MetaData: 1 Ice-Name: HitFM Ice-Public: 0 Authorization: Basic c291cmNlOm9oUG9obGljaDk= [http @ 0x40486c0] header='HTTP/1.1 100 Continue' [http @ 0x40486c0] http_code=100 [http @ 0x40486c0] header='' Successfully opened the file. Parsing a group of options: output file icecast://source:secret-password at localhost:80/HitFM_96. Applying option b:a (video bitrate (please use -b:v)) with argument 96k. Applying option ac (set number of audio channels) with argument 2. Applying option ar (set audio sampling rate (in Hz)) with argument 44100. Applying option af (set audio filters) with argument volume=3dB. Applying option f (force format) with argument mp3. Successfully parsed a group of options. Opening an output file: icecast://source:secret-password at localhost:80/HitFM_96. [http @ 0x4055da0] request: PUT /HitFM_96 HTTP/1.1 User-Agent: Lavf/56.25.101 Accept: */* Expect: 100-continue Connection: close Host: localhost:80 Content-Type: audio/mpeg Icy-MetaData: 1 Ice-Name: HitFM Ice-Public: 0 Authorization: Basic c291cmNlOnRoZWlmNUhhaFQ= [http @ 0x4055da0] header='HTTP/1.1 100 Continue' [http @ 0x4055da0] http_code=100 [http @ 0x4055da0] header='' Successfully opened the file. Parsing a group of options: output file icecast://source:secret-password at localhost:80/HitFM_320. Applying option b:a (video bitrate (please use -b:v)) with argument 320k. Applying option ac (set number of audio channels) with argument 2. Applying option ar (set audio sampling rate (in Hz)) with argument 44100. Applying option af (set audio filters) with argument volume=3dB. Applying option f (force format) with argument mp3. Successfully parsed a group of options. Opening an output file: icecast://source:secret-password at localhost:80/HitFM_320. [http @ 0x4062200] request: PUT /HitFM_320 HTTP/1.1 User-Agent: Lavf/56.25.101 Accept: */* Expect: 100-continue Connection: close Host: localhost:80 Content-Type: audio/mpeg Icy-MetaData: 1 Ice-Name: HitFM Ice-Public: 0 Authorization: Basic c291cmNlOnRoZWlmNUhhaFQ= [http @ 0x4062200] header='HTTP/1.1 100 Continue' [http @ 0x4062200] http_code=100 [http @ 0x4062200] header='' Successfully opened the file. detected 2 logical cores [Parsed_volume_0 @ 0x3fdb420] Setting 'volume' to value '3dB' [graph 0 input from stream 0:0 @ 0x3fef920] Setting 'time_base' to value '1/48000' [graph 0 input from stream 0:0 @ 0x3fef920] Setting 'sample_rate' to value '48000' [graph 0 input from stream 0:0 @ 0x3fef920] Setting 'sample_fmt' to value 's16' [graph 0 input from stream 0:0 @ 0x3fef920] Setting 'channel_layout' to value '0x3' [graph 0 input from stream 0:0 @ 0x3fef920] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [audio format for output stream 0:0 @ 0x3fefc60] Setting 'sample_fmts' to value 's32p|fltp|s16p' [audio format for output stream 0:0 @ 0x3fefc60] Setting 'sample_rates' to value '44100' [audio format for output stream 0:0 @ 0x3fefc60] Setting 'channel_layouts' to value '0x3' [Parsed_volume_0 @ 0x3fdb420] auto-inserting filter 'auto-inserted resampler 0' between the filter 'graph 0 input from stream 0:0' and the filter 'Parsed_volume_0' [AVFilterGraph @ 0x3fdb800] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0x3fdc5e0] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp r:44100Hz [auto-inserted resampler 0 @ 0x3fdc5e0] tb:0.000023 sample_rate:44100.000000 nb_channels:2.000000 [Parsed_volume_0 @ 0x3fdb420] n:nan t:nan pts:nan precision:float volume:1.412538 volume_dB:3.000000 [Parsed_volume_0 @ 0x40036e0] Setting 'volume' to value '3dB' [graph 1 input from stream 0:0 @ 0x3ff9ce0] Setting 'time_base' to value '1/48000' [graph 1 input from stream 0:0 @ 0x3ff9ce0] Setting 'sample_rate' to value '48000' [graph 1 input from stream 0:0 @ 0x3ff9ce0] Setting 'sample_fmt' to value 's16' [graph 1 input from stream 0:0 @ 0x3ff9ce0] Setting 'channel_layout' to value '0x3' [graph 1 input from stream 0:0 @ 0x3ff9ce0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [audio format for output stream 1:0 @ 0x3fe1240] Setting 'sample_fmts' to value 's32p|fltp|s16p' [audio format for output stream 1:0 @ 0x3fe1240] Setting 'sample_rates' to value '44100' [audio format for output stream 1:0 @ 0x3fe1240] Setting 'channel_layouts' to value '0x3' [Parsed_volume_0 @ 0x40036e0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'graph 1 input from stream 0:0' and the filter 'Parsed_volume_0' [AVFilterGraph @ 0x3ff9520] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0x3fe2ae0] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp r:44100Hz [auto-inserted resampler 0 @ 0x3fe2ae0] tb:0.000023 sample_rate:44100.000000 nb_channels:2.000000 [Parsed_volume_0 @ 0x40036e0] n:nan t:nan pts:nan precision:float volume:1.412538 volume_dB:3.000000 [Parsed_volume_0 @ 0x3fe1d60] Setting 'volume' to value '3dB' [graph 2 input from stream 0:0 @ 0x3fe16c0] Setting 'time_base' to value '1/48000' [graph 2 input from stream 0:0 @ 0x3fe16c0] Setting 'sample_rate' to value '48000' [graph 2 input from stream 0:0 @ 0x3fe16c0] Setting 'sample_fmt' to value 's16' [graph 2 input from stream 0:0 @ 0x3fe16c0] Setting 'channel_layout' to value '0x3' [graph 2 input from stream 0:0 @ 0x3fe16c0] tb:1/48000 samplefmt:s16 samplerate:48000 chlayout:0x3 [audio format for output stream 2:0 @ 0x3fe2860] Setting 'sample_fmts' to value 's32p|fltp|s16p' [audio format for output stream 2:0 @ 0x3fe2860] Setting 'sample_rates' to value '44100' [audio format for output stream 2:0 @ 0x3fe2860] Setting 'channel_layouts' to value '0x3' [Parsed_volume_0 @ 0x3fe1d60] auto-inserting filter 'auto-inserted resampler 0' between the filter 'graph 2 input from stream 0:0' and the filter 'Parsed_volume_0' [AVFilterGraph @ 0x3fe14c0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed [auto-inserted resampler 0 @ 0x3fe4c80] ch:2 chl:stereo fmt:s16 r:48000Hz -> ch:2 chl:stereo fmt:fltp r:44100Hz [auto-inserted resampler 0 @ 0x3fe4c80] tb:0.000023 sample_rate:44100.000000 nb_channels:2.000000 [Parsed_volume_0 @ 0x3fe1d60] n:nan t:nan pts:nan precision:float volume:1.412538 volume_dB:3.000000 [icecast @ 0x40482e0] It seems you are streaming an unsupported format. [icecast @ 0x40482e0] It might work, but is not officially supported in Icecast! [icecast @ 0x40559c0] It seems you are streaming an unsupported format. [icecast @ 0x40559c0] It might work, but is not officially supported in Icecast! [icecast @ 0x4061e00] It seems you are streaming an unsupported format. [icecast @ 0x4061e00] It might work, but is not officially supported in Icecast! Output #0, mp3, to 'icecast://source:secret-password at localhost:80/HitFM_192': Metadata: icy-pub : 1 icy-br : 1536 icy-name : DB9000-TX-HitFM TSSE : Lavf56.25.101 Stream #0:0, 0, 1/44100: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp, 192 kb/s Metadata: encoder : Lavc56.26.100 libmp3lame Output #1, mp3, to 'icecast://source:secret-password at localhost:80/HitFM_96': Metadata: icy-pub : 1 icy-br : 1536 icy-name : DB9000-TX-HitFM TSSE : Lavf56.25.101 Stream #1:0, 0, 1/44100: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp, 96 kb/s Metadata: encoder : Lavc56.26.100 libmp3lame Output #2, mp3, to 'icecast://source:secret-password at localhost:80/HitFM_320': Metadata: icy-pub : 1 icy-br : 1536 icy-name : DB9000-TX-HitFM TSSE : Lavf56.25.101 Stream #2:0, 0, 1/44100: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp, 320 kb/s Metadata: encoder : Lavc56.26.100 libmp3lame Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame)) Stream #0:0 -> #1:0 (pcm_s16le (native) -> mp3 (libmp3lame)) Stream #0:0 -> #2:0 (pcm_s16le (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help [pcm_s16le @ 0x400e880] Invalid PCM packet, data has size 1 but at least a size of 4 was expected Error while decoding stream #0:0: Invalid data found when processing input http://StreamHOST:5000: Connection timed out [output stream 1:0 @ 0x3fdbee0] EOF on sink link output stream 1:0:default. [output stream 0:0 @ 0x4063c60] EOF on sink link output stream 0:0:default. [output stream 2:0 @ 0x3fe2460] EOF on sink link output stream 2:0:default. No more output streams to write to, finishing. [libmp3lame @ 0x4047ac0] Trying to remove 776 more samples than there are in the queue [libmp3lame @ 0x40552a0] Trying to remove 776 more samples than there are in the queue [libmp3lame @ 0x40616e0] Trying to remove 776 more samples than there are in the queue size= 4710kB time=00:03:20.93 bitrate= 192.0kbits/s video:0kB audio:14915kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://StreamHOST:5000): Input stream #0:0 (audio): 9419 packets read (38576129 bytes); 9418 frames decoded (9644032 samples); Total: 9419 packets (38576129 bytes) demuxed Output file #0 (icecast://source:secret-password at localhost:80/HitFM_192): Output stream #0:0 (audio): 7692 frames encoded (8860455 samples); 7693 packets muxed (4823040 bytes); Total: 7693 packets (4823040 bytes) muxed Output file #1 (icecast://source:secret-password at localhost:80/HitFM_96): Output stream #1:0 (audio): 7692 frames encoded (8860455 samples); 7693 packets muxed (2411520 bytes); Total: 7693 packets (2411520 bytes) muxed Output file #2 (icecast://source:secret-password at localhost:80/HitFM_320): Output stream #2:0 (audio): 7692 frames encoded (8860455 samples); 7693 packets muxed (8038400 bytes); Total: 7693 packets (8038400 bytes) muxed 9418 frames successfully decoded, 1 decoding errors [AVIOContext @ 0x4053280] Statistics: 0 seeks, 7694 writeouts [AVIOContext @ 0x4055b60] Statistics: 0 seeks, 7694 writeouts [AVIOContext @ 0x4062020] Statistics: 0 seeks, 7694 writeouts [AVIOContext @ 0x400dc60] Statistics: 38576129 bytes read, 0 seeks From gabriele.salvati at quixant.com Thu Oct 6 15:37:14 2016 From: gabriele.salvati at quixant.com (Gabriele Salvati) Date: Thu, 6 Oct 2016 12:37:14 +0000 Subject: [FFmpeg-user] VDPAU Hardware decoding Message-ID: Hi to all, I'm writing an application to decode H264 video by VDPAU. I got two different video first one big buck bunny (downloaded from http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_normal.mp4) and another one made by an artist. I dump the format for the videos, I get the following dump for big buck bunny: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/qmax/Downloads/bbb_60fps_no_audio.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 composer : Sacha Goedegebure encoder : Lavf57.48.103 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation Duration: 00:10:34.53, start: 0.033000, bitrate: 4006 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 4001 kb/s, 60 fps, 60 tbr, 60k tbn, 120 tbc (default) Metadata: handler_name : VideoHandler and for the video made by the artist: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/qmax/Videos/Quixant_fire/Quixant_fire_1080.mp4': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2016-09-22T17:09:24.000000Z encoder : HandBrake 0.10.5 2016021100 Duration: 00:00:27.30, start: 0.000000, bitrate: 7058 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 7056 kb/s, 30 fps, 30 tbr, 90k tbn, 60 tbc (default) Metadata: creation_time : 2016-09-22T17:09:24.000000Z handler_name : VideoHandler The problem is that I can decode the Quixant_fire_1080.mp4 video in hardware, while for the video bbb_60fps_no_audio.mp4 the callback get_format is called two times, first time the returned pixel format is 109, while the second time is 0. I copy the get_format function from ffmpeg.c I'm surprised that it works fine for Quixant_fire_1080.mp4 video and it doesn't work for video bbb_60fps_no_audio.mp4 video. Could someone help me please? Kind Regards, Gabriele Salvati Video and Audio application engineer Quixant Italia Srl ________________________________ Le informazioni contenute in questo messaggio e negli eventuali allegati sono confidenziali e ad uso esclusivo del destinatario indicato. Qualora non fossero a Lei destinati o abbia ricevuto questa comunicazione per errore, La preghiamo di tener presente che qualsiasi divulgazione, distribuzione o duplicazione delle informazioni in essa contenute ? strettamente proibita e pu? essere illegale. La informiamo che deve darci tempestiva comunicazione della ricezione del messaggio e distruggerlo immediatamente. I contenuti possono essere soggetti ad accordi di non- divulgazione e riservatezza. Le opinioni e i punti di vista espressi in questo messaggio di posta elettronica sono propri dell'autore e potrebbero non corrispondere a opinioni e punti di vista di Quixant. Nessuna informazione contenuta in questo messaggio pu? essere interpretata come modifica dei termini di qualsiasi accordo contrattuale scritto, esistente tra Quixant Plc (comprese le sue controllate) e qualsiasi persona fisica o giuridica. From simatechdeveloper at gmail.com Thu Oct 6 15:48:20 2016 From: simatechdeveloper at gmail.com (Tech Developer) Date: Thu, 6 Oct 2016 18:18:20 +0530 Subject: [FFmpeg-user] FFMpeg regards Message-ID: Hi, i installed ffmpeg for open meetings web conferencing software, now i able to got .avi,.flv.jpg files from recorded video, but *.ogg,*.mp4 not able to got openmeetings team said that is incompatible ffmpeg i want complete compatible ffmpeg for centos and ubutu os. how to install this ffmpeg https://www.johnvansickle.com/ffmpeg/ -- Thanks & Regards, Preetha R From sven.c.dack at sky.com Thu Oct 6 16:47:07 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 6 Oct 2016 14:47:07 +0100 Subject: [FFmpeg-user] FFMpeg regards In-Reply-To: References: Message-ID: On 06/10/16 13:48, Tech Developer wrote: > Hi, > i installed ffmpeg for open meetings web conferencing software, > now i able to got .avi,.flv.jpg files from recorded video, but *.ogg,*.mp4 > not able to got openmeetings team said that is incompatible ffmpeg i want > complete compatible ffmpeg for centos and ubutu os. > how to install this ffmpeg https://www.johnvansickle.com/ffmpeg/ > If you are using the files downloaded from "https://www.johnvansickle.com/ffmpeg/" then you really need to contact them. The binary versions of ffmpeg provided by the distributions should not have a problem with .ogg and .mp4 files, but if you do find a bug then you also want to contact them first. When you don't think it is a bug but a user problem, then you have come to the right place. Please provide an example of what you are trying to do and do give more details such as the command line and output of ffmpeg. From mboufleur at gmail.com Thu Oct 6 16:53:14 2016 From: mboufleur at gmail.com (Marcelo Boufleur) Date: Thu, 6 Oct 2016 10:53:14 -0300 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: I'm not sure that what Mikhail wants really exists. If I understand correctly, you want to retain original encoding and drop one frame every two frames. If this would be possible, you would have to work at the DNxHD inner level, identify each frame start/end (by headers), bit-stream copy whichever frames you would need, and then re-generate the DNxHD layer and headers to reflect all the changes you have made. I may be wrong, but I believe with current FFmpeg implementation you can only work either with stream copy (if you don't want to change encoding, nor frame rate, which defies his purpose), or use the previous suggestions to cut framerate by half, which implies on re-encoding (which again, defies his purpose). From barsnick at gmx.net Thu Oct 6 17:07:02 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 6 Oct 2016 16:07:02 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: <20161006140702.GC24464@sunshine.barsnick.net> On Thu, Oct 06, 2016 at 10:53:14 -0300, Marcelo Boufleur wrote: > I'm not sure that what Mikhail wants really exists. If I understand > correctly, you want to retain original encoding and drop one frame every > two frames. I understand the same thing. (Carl Eugen was concentrating on Mikhail's "not re-encoding" wording, which can of course be achieved by just decoding. ;-)) Keep every second frames without decoding them, but re-assembling them to a valid MXF. > If this would be possible, you would have to work at the DNxHD inner level, > identify each frame start/end (by headers), bit-stream copy whichever > frames you would need, and then re-generate the DNxHD layer and headers to > reflect all the changes you have made. Exactly. Since you don't want to decode (which implies re-encoding), this would be with "-c:v copy" and would effectively be a bitstream filter. I'm not aware that any such filter exists (and whether the ffmpeg devs would even consider accepting integrating such a bsf). It pure theory, this *could* even be done for more codecs than just DNxHD. > I may be wrong, but I believe with current FFmpeg implementation you can > only work either with stream copy (if you don't want to change encoding, > nor frame rate, which defies his purpose), or use the previous suggestions > to cut framerate by half, which implies on re-encoding (which again, defies > his purpose). I found the suggestion to use the concat demuxer with streamcopy very interesting. Assuming it can seek and cut precisely, that could work - again in theory. Let's experiment with that. :) Moritz From mikhailwas at gmail.com Thu Oct 6 17:16:09 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Thu, 6 Oct 2016 16:16:09 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: On 6 October 2016 at 10:07, Carl Eugen Hoyos wrote: > 2016-10-05 23:08 GMT+02:00 Mikhail V : >> On 5 October 2016 at 19:55, Carl Eugen Hoyos wrote: >>> 2016-10-05 15:45 GMT+02:00 Mikhail V : >>> >>>> Is it possible that ffmpeg cannot do this without re-encoding? >>> >>> You can export single frames and delete half of them using a >>> shell script. > >> Sure I can :) Also I can just directly recode it in 25 fps in any codec. >> So I suppose the answer is - I can't do it without re-encode. > > If you want to drop every second frame without re-encoding at > all, you can export all frames as single frames and use a shell > script to drop half of them. I admit I am not fully getting your idea then. I want the output as same video file. If I export as images then it is just a folder with images. Yes they will be not changed, but if I want them back in a DNxHD video file, how can I guarantee that the information will be not changed due to compression? Do you mean this is possible somehow to put the images back in video file without touching the image information? From ceffmpeg at gmail.com Thu Oct 6 18:22:12 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 6 Oct 2016 17:22:12 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: 2016-10-06 15:53 GMT+02:00 Marcelo Boufleur : > I'm not sure that what Mikhail wants really exists. If I understand > correctly, you want to retain original encoding and drop one frame every > two frames. > > If this would be possible, you would have to work at the DNxHD inner level, > identify each frame start/end (by headers), bit-stream copy whichever > frames you would need, Fortunately, FFmpeg does all this for you: We call it "parsing" and it is necessary for many (general) use-cases. > and then re-generate the DNxHD layer and headers to > reflect all the changes you have made. No such header exists for dnxhd, just for mxf. Carl Eugen From ceffmpeg at gmail.com Thu Oct 6 18:29:47 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 6 Oct 2016 17:29:47 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: 2016-10-06 16:16 GMT+02:00 Mikhail V : > I admit I am not fully getting your idea then. Your original email (and subsequent ones) sounded as if you knew exactly what has to be done, you were just asking if it is possible without a little shell magic (I think it is not). You can do: $ ffmpeg -i input -vcodec copy -f image2 frame%4d Now make symbolic links to every second frame but with sequential numbers (Don't ask me how). $ ffmpeg -f image2 -vcodec dnxhd -i linked_frames%4d -vcodec copy out.mxf (25fps is the default for the image2 demuxer, use -framerate to change it) Or simply concatenate the frames you like with "cat" and do: $ ffmpeg -i concatenated_file -vcodec copy out.mxf Carl Eugen From barsnick at gmx.net Thu Oct 6 18:34:21 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 6 Oct 2016 17:34:21 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: <20161006140702.GC24464@sunshine.barsnick.net> References: <20161006140702.GC24464@sunshine.barsnick.net> Message-ID: <20161006153421.GD24464@sunshine.barsnick.net> On Thu, Oct 06, 2016 at 16:07:02 +0200, Moritz Barsnick wrote: > I found the suggestion to use the concat demuxer with streamcopy very > interesting. Assuming it can seek and cut precisely, that could work - > again in theory. Let's experiment with that. :) So, where are your results, everyone? ;-) Here are mine. I created a 50 fps DNxHR MXF file. The testsrc2 filter/source kindly puts the frame numbers onto each frame: $ ffmpeg -f lavfi -i testsrc2=s=hd720:r=50 -c:v dnxhd -profile:v dnxhr_hq -t 3 input.mxf I created a concat script for these three seconds, to select every second frame, which means stepping forward by 0.040 (two frames at 50 fps), for a duration of 0.020 (one frame): $ perl -e 'print "ffconcat version 1.0\n\n"; my $t = 0; while ($t <= 3) { printf("file input.mxf\ninpoint %1.3f\nduration 0.020\noutpoint %1.3f\n\n", $t, $t + 0.020); $t += 0.040; }' > concatscript.txt Then I used this concat demuxer script to do the actual extraction: $ ffmpeg -r 25 -f concat -i concatscript.txt -c:v copy output.mxf Visual inspection of the result shows me that every second frame was extracted, at a resulting frame rate of 25 fps. Verifying with the frashhash demuxer showed me that every second frame is indeed identical: $ ffmpeg -i input.mxf -c copy -f framehash input.mxf.hash $ ffmpeg -i output.mxf -c copy -f framehash output.mxf.hash Bingo! :-) Still, a bitstream filter would be nifty. ;-) Moritz From ceffmpeg at gmail.com Thu Oct 6 18:46:32 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 6 Oct 2016 17:46:32 +0200 Subject: [FFmpeg-user] Invalid PCM packet, In-Reply-To: References: Message-ID: 2016-10-06 9:37 GMT+02:00 Roman : > Hi! > > I'm running online radio, that gets stream from DEVA DB9000TX. For some > reason I'm getting pretty often these errors, sometimes 2-3 in a row > during one hour. Network issues unfortunately have the unavoidable disadvantage that they are hard to reproduce. In any case, please test current FFmpeg git head and report back. Carl Eugen From p.remek1 at googlemail.com Thu Oct 6 23:25:25 2016 From: p.remek1 at googlemail.com (P. Remek) Date: Thu, 6 Oct 2016 22:25:25 +0200 Subject: [FFmpeg-user] ffmpeg multithreaded performance bad for specific physical machine In-Reply-To: References: Message-ID: Hi, I have some update regarding my original question: we figured that if we switch off linux watchdog with "echo 0 > proc/sys/kernel/watchdog" the multithreaded behaivor and performance of ffmpeg goes back to normal. We don't know yet why is that because on our two socket physical machine the performance is normal even with this switched on. Any ideas? Regards On Fri, Sep 30, 2016 at 11:17 PM, P. Remek wrote: > Hello, > > I am facing rather interesting problem and am slowly running out of > ideas. It seems that ffmpeg running on one of our physical machines > has performance problems when running with multiple threads. > > We have two physical boxes: > > First: 2-socket Intel Xeon E5-2630 v2 > Second 4-socket Intel Xeon E7-8867 v3 > > First seems ok, when I run encoding with 1 thread I get ~20 fps, with > 2 threads ~40 fps. So it scales up as expected. > > The second however, with 1 thread I get ~25 fps, and with 2 threads it > stays roughly the same on ~25 fps - so, no scale up. > > What is also interesting that the CPU consumption (viewed using htop) > looks comparable on both machines when running 2 threads - basically 3 > cores are spinning somewhere around 80% but with different end result > (20 vs 40 fps). > > I already excluded hyperthreading (disabled on both), numa issues (I > am starting the command with taskset to bind the execution to cores > running on same socket) and specific instructions which are different > on our different CPU families - like for example AVX2 which is only on > our E7 cpu (I disabled everything using -cpuflags 0, -x264opts asm=0) > > I also tried to compile the binaries directly on the tested machines > to exclude some CPU-specific compile time optimizations which might > take effect. > > Does anybody have an idea where else could be the problem? > > Here is the command which I use to run the test: > > root at lab-node3:~/ffsource/ffmpeg-3.1.3# taskset -c 1,2,3 ./ffmpeg > -cpuflags 0 -f lavfi -i testsrc=duration=60:size=1024x576:rate=25 > -threads 2 -preset veryfast -c libx264 -x264opts asm=0 -f mpegts - >>/dev/null > > Regards, > Prema From romeo.r at gmail.com Fri Oct 7 01:26:49 2016 From: romeo.r at gmail.com (Roman) Date: Fri, 7 Oct 2016 01:26:49 +0300 Subject: [FFmpeg-user] Invalid PCM packet, In-Reply-To: References: Message-ID: 2016-10-06 18:46 GMT+03:00 Carl Eugen Hoyos : > > Network issues unfortunately have the unavoidable disadvantage that > they are hard to reproduce. > In any case, please test current FFmpeg git head and report back. Seems like the issue was with the CPU over committing inside the VM. After I removed some ffmpeg processes, it has normalized. Thanks for your time. -- Best regards, Roman. From sven.c.dack at sky.com Fri Oct 7 01:50:40 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 6 Oct 2016 23:50:40 +0100 Subject: [FFmpeg-user] ffmpeg multithreaded performance bad for specific physical machine In-Reply-To: References: Message-ID: <311a7a47-ac11-b560-22ff-afd755bd13f3@sky.com> On 06/10/16 21:25, P. Remek wrote: > Hi, > > I have some update regarding my original question: we figured that if > we switch off linux watchdog with "echo 0 > proc/sys/kernel/watchdog" > the multithreaded behaivor and performance of ffmpeg goes back to > normal. We don't know yet why is that because on our two socket > physical machine the performance is normal even with this switched on. > Any ideas? > > Regards I fear your problem goes beyond the scope of this mailing list. When you are using the exact same binary on both machines then it's very likely not a problem caused directly by ffmpeg, but one coming from the environments in which it is run in. Can you say for sure that this is a problem specific only to ffmpeg and have you had a look at other software and found a similar problem? Are you using the same CPU governor on both machines? ... Use the performance governor. Are you using the same kernel on both machines? ... Use the same task scheduling algorithm, the same frequency governor, etc.. ... One could come up with quite a list of questions which needed to be answered. I suggest you start by looking at everything related to energy-saving and turn it off in order to get a less dynamic behaviour from your OS and thereby a more fixed environment before you start comparing these. Don't forget to look at BIOS settings, too. From simatechdeveloper at gmail.com Fri Oct 7 07:52:11 2016 From: simatechdeveloper at gmail.com (Tech Developer) Date: Fri, 7 Oct 2016 10:22:11 +0530 Subject: [FFmpeg-user] FFMpeg regards In-Reply-To: References: Message-ID: Hi, Thank you for your reply previously i installed ffmpeg using this https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu but this not generate *.avi , *.flv files. how to correctly install ffmpeg in ubuntu and cent os On Thu, Oct 6, 2016 at 7:17 PM, Sven C. Dack wrote: > On 06/10/16 13:48, Tech Developer wrote: > >> Hi, >> i installed ffmpeg for open meetings web conferencing software, >> now i able to got .avi,.flv.jpg files from recorded video, but *.ogg,*.mp4 >> not able to got openmeetings team said that is incompatible ffmpeg i want >> complete compatible ffmpeg for centos and ubutu os. >> how to install this ffmpeg https://www.johnvansickle.com/ffmpeg/ >> >> If you are using the files downloaded from "https://www.johnvansickle.com > /ffmpeg/" then you really need to contact them. > > The binary versions of ffmpeg provided by the distributions should not > have a problem with .ogg and .mp4 files, but if you do find a bug then you > also want to contact them first. > > When you don't think it is a bug but a user problem, then you have come to > the right place. Please provide an example of what you are trying to do and > do give more details such as the command line and output of ffmpeg. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". -- Thanks & Regards, Preetha R From francois.visagie at gmail.com Fri Oct 7 11:13:04 2016 From: francois.visagie at gmail.com (Francois Visagie) Date: Fri, 7 Oct 2016 11:13:04 +0300 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: <20161006153421.GD24464@sunshine.barsnick.net> References: <20161006140702.GC24464@sunshine.barsnick.net> <20161006153421.GD24464@sunshine.barsnick.net> Message-ID: <003f01d22072$a3d12900$eb737b00$@gmail.com> > -----Original Message----- > From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of > Moritz Barsnick > Sent: 06 October 2016 18:34 > To: FFmpeg user discussions > Subject: Re: [FFmpeg-user] Selecting/dropping frames without re-encoding > > On Thu, Oct 06, 2016 at 16:07:02 +0200, Moritz Barsnick wrote: > > I found the suggestion to use the concat demuxer with streamcopy very > > interesting. Assuming it can seek and cut precisely, that could work - > > again in theory. Let's experiment with that. :) > > So, where are your results, everyone? ;-) Here are mine. > > I created a 50 fps DNxHR MXF file. The testsrc2 filter/source kindly puts the > frame numbers onto each frame: > > $ ffmpeg -f lavfi -i testsrc2=s=hd720:r=50 -c:v dnxhd -profile:v dnxhr_hq -t 3 > input.mxf > > I created a concat script for these three seconds, to select every second > frame, which means stepping forward by 0.040 (two frames at 50 fps), for a > duration of 0.020 (one frame): > > $ perl -e 'print "ffconcat version 1.0\n\n"; my $t = 0; while ($t <= 3) { > printf("file input.mxf\ninpoint %1.3f\nduration 0.020\noutpoint %1.3f\n\n", > $t, $t + 0.020); $t += 0.040; }' > concatscript.txt > > Then I used this concat demuxer script to do the actual extraction: > > $ ffmpeg -r 25 -f concat -i concatscript.txt -c:v copy output.mxf > > Visual inspection of the result shows me that every second frame was > extracted, at a resulting frame rate of 25 fps. > > Verifying with the frashhash demuxer showed me that every second frame > is indeed identical: > > $ ffmpeg -i input.mxf -c copy -f framehash input.mxf.hash $ ffmpeg -i > output.mxf -c copy -f framehash output.mxf.hash > > Bingo! :-) Well done :-) > > Still, a bitstream filter would be nifty. ;-) > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org > with subject "unsubscribe". From sven.c.dack at sky.com Fri Oct 7 11:37:13 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Fri, 7 Oct 2016 09:37:13 +0100 Subject: [FFmpeg-user] FFMpeg regards In-Reply-To: References: Message-ID: On 07/10/16 05:52, Tech Developer wrote: > Hi, > Thank you for your reply previously i installed ffmpeg using this > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu > but this not generate *.avi , *.flv files. how to correctly install ffmpeg > in ubuntu and cent os It's much easier. Simply install the package. For Ubuntu/Debian you do: $ sudo apt-get install ffmpeg I'm not a Gentoo user, but you might want to read this for how to install it on Gentoo: https://wiki.gentoo.org/wiki/Ffmpeg > > On Thu, Oct 6, 2016 at 7:17 PM, Sven C. Dack wrote: > >> On 06/10/16 13:48, Tech Developer wrote: >> >>> Hi, >>> i installed ffmpeg for open meetings web conferencing software, >>> now i able to got .avi,.flv.jpg files from recorded video, but *.ogg,*.mp4 >>> not able to got openmeetings team said that is incompatible ffmpeg i want >>> complete compatible ffmpeg for centos and ubutu os. >>> how to install this ffmpeg https://www.johnvansickle.com/ffmpeg/ >>> >>> If you are using the files downloaded from "https://www.johnvansickle.com >> /ffmpeg/" then you really need to contact them. >> >> The binary versions of ffmpeg provided by the distributions should not >> have a problem with .ogg and .mp4 files, but if you do find a bug then you >> also want to contact them first. >> >> When you don't think it is a bug but a user problem, then you have come to >> the right place. Please provide an example of what you are trying to do and >> do give more details such as the command line and output of ffmpeg. >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > > > From barsnick at gmx.net Fri Oct 7 13:06:45 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 7 Oct 2016 12:06:45 +0200 Subject: [FFmpeg-user] FFMpeg regards In-Reply-To: References: Message-ID: <20161007100645.GC7517@sunshine.barsnick.net> On Fri, Oct 07, 2016 at 10:22:11 +0530, Tech Developer wrote: > Hi, > Thank you for your reply previously i installed ffmpeg using this > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu > but this not generate *.avi , *.flv files. how to correctly install ffmpeg I'm pretty sure it does. What did you try, what was the result? Command line and complete, uncut console output please. (I have an idea what could be wrong, but I won't write tons of guesses here. Please provide the info, and we will guide you through it.) Moritz From barsnick at gmx.net Fri Oct 7 13:08:51 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 7 Oct 2016 12:08:51 +0200 Subject: [FFmpeg-user] VDPAU Hardware decoding In-Reply-To: References: Message-ID: <20161007100851.GD7517@sunshine.barsnick.net> On Thu, Oct 06, 2016 at 12:37:14 +0000, Gabriele Salvati wrote: > The problem is that I can decode the Quixant_fire_1080.mp4 video in > hardware, while for the video bbb_60fps_no_audio.mp4 the callback > get_format is called two times, first time the returned pixel format > is 109, while the second time is 0. I copy the get_format function > from ffmpeg.c This question is more likely to be answered on the libav-user mailing list. (IOW: I have no idea either. ;-)) Moritz From ceffmpeg at gmail.com Fri Oct 7 14:07:53 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Fri, 7 Oct 2016 13:07:53 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: <20161006153421.GD24464@sunshine.barsnick.net> References: <20161006140702.GC24464@sunshine.barsnick.net> <20161006153421.GD24464@sunshine.barsnick.net> Message-ID: 2016-10-06 17:34 GMT+02:00 Moritz Barsnick : > $ ffmpeg -r 25 -f concat -i concatscript.txt -c:v copy output.mxf This scales very badly, no? Carl Eugen From simatechdeveloper at gmail.com Fri Oct 7 14:52:50 2016 From: simatechdeveloper at gmail.com (Tech Developer) Date: Fri, 7 Oct 2016 17:22:50 +0530 Subject: [FFmpeg-user] FFMpeg regards In-Reply-To: <20161007100645.GC7517@sunshine.barsnick.net> References: <20161007100645.GC7517@sunshine.barsnick.net> Message-ID: Hi, Thanksfor your reply @ Moritz. I have tried ffmpeg installation in ubuntu os - localhost and cent os -server, Now FFMPEG works perfect in local host ubuntu os and generates *.ogg,*.mp3,*.flv,*avi open meetings recorded video, but in server cent os, it not generate above said files from the recorded video. check here ubuntu ffmpeg installation instruction https://cwiki.apache.org/confluence/download/attachments/27838216/ffmpeg-ubuntu-debian.sh?version=1&modificationDate=1470062212000&api=v2 check here cent os ffmpeg installation instruction https://cwiki.apache.org/confluence/download/attachments/27838216/ffmpeg-centos2.sh?version=2&modificationDate=1470061771000&api=v2 Now i want ffmpeg solution for cent os. I got these instructions from here https://cwiki.apache.org/confluence/display/OPENMEETINGS/Tutorials+for+installing+OpenMeetings+and+Tools On Fri, Oct 7, 2016 at 3:36 PM, Moritz Barsnick wrote: > On Fri, Oct 07, 2016 at 10:22:11 +0530, Tech Developer wrote: > > Hi, > > Thank you for your reply previously i installed ffmpeg using this > > https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu > > but this not generate *.avi , *.flv files. how to correctly install > ffmpeg > > I'm pretty sure it does. What did you try, what was the result? Command > line and complete, uncut console output please. > > (I have an idea what could be wrong, but I won't write tons of guesses > here. Please provide the info, and we will guide you through it.) > > Moritz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > -- Thanks & Regards, Preetha R From barsnick at gmx.net Fri Oct 7 15:06:25 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 7 Oct 2016 14:06:25 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: <20161006140702.GC24464@sunshine.barsnick.net> <20161006153421.GD24464@sunshine.barsnick.net> Message-ID: <20161007120625.GE7517@sunshine.barsnick.net> On Fri, Oct 07, 2016 at 13:07:53 +0200, Carl Eugen Hoyos wrote: > 2016-10-06 17:34 GMT+02:00 Moritz Barsnick : > > $ ffmpeg -r 25 -f concat -i concatscript.txt -c:v copy output.mxf > > This scales very badly, no? It's just a proof of concept. :) It scales nicely (linearly? or is seeking more expensive the deeper you seek?), and works assuming you have CFR input and output, and you know those rates, and ... , and ... ;-) It "scales" better then writing every frame to disk and selecting every second one by symlinking. That's 180000 intermediate files plus 90000 symlinks for one hour of video. Then I'd rather have ffmpeg seek into the input file 90000 times. But both basically suck. I still prefer that "select" bitstream filter. ;-) Moritz From barsnick at gmx.net Fri Oct 7 16:31:21 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 7 Oct 2016 15:31:21 +0200 Subject: [FFmpeg-user] FFMpeg regards In-Reply-To: References: <20161007100645.GC7517@sunshine.barsnick.net> Message-ID: <20161007133121.GF7517@sunshine.barsnick.net> On Fri, Oct 07, 2016 at 17:22:50 +0530, Tech Developer wrote: > open meetings recorded video, but in server cent os, it not generate above > said files from the recorded video. This is what I would like to see. As I said, command line and complete, uncut console output please. (Not of the installation, but of the use of ffmpeg to generate e.g. AVI.) Every freaking version of ffmpeg has been able to create AVIs. ;-) The issue must relate to the options you are using, or a very specific codec. Moritz From ceffmpeg at gmail.com Fri Oct 7 16:55:05 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Fri, 7 Oct 2016 15:55:05 +0200 Subject: [FFmpeg-user] FFMpeg regards In-Reply-To: <20161007133121.GF7517@sunshine.barsnick.net> References: <20161007100645.GC7517@sunshine.barsnick.net> <20161007133121.GF7517@sunshine.barsnick.net> Message-ID: 2016-10-07 15:31 GMT+02:00 Moritz Barsnick : > Every freaking version of ffmpeg has been able to create AVIs. ;-) Suse user may disagree;-(( Carl Eugen From cus at passwd.hu Fri Oct 7 22:18:18 2016 From: cus at passwd.hu (Marton Balint) Date: Fri, 7 Oct 2016 21:18:18 +0200 (CEST) Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: <20161007120625.GE7517@sunshine.barsnick.net> References: <20161006140702.GC24464@sunshine.barsnick.net> <20161006153421.GD24464@sunshine.barsnick.net> <20161007120625.GE7517@sunshine.barsnick.net> Message-ID: On Fri, 7 Oct 2016, Moritz Barsnick wrote: > On Fri, Oct 07, 2016 at 13:07:53 +0200, Carl Eugen Hoyos wrote: >> 2016-10-06 17:34 GMT+02:00 Moritz Barsnick : >> > $ ffmpeg -r 25 -f concat -i concatscript.txt -c:v copy output.mxf >> >> This scales very badly, no? > > It's just a proof of concept. :) It scales nicely (linearly? or is > seeking more expensive the deeper you seek?), and works assuming you > have CFR input and output, and you know those rates, and ... , and ... > ;-) Scaling issues are probably caused by the fact that the concat demuxer reopens the file for each frame, instead of detecting that the next segment is referring to the same file as the previous one. Probably not too hard to improve the concat demuxer to detect such cases and avoid reopening the source. Regards, Marton From ceffmpeg at gmail.com Fri Oct 7 22:46:41 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Fri, 7 Oct 2016 21:46:41 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: <20161007120625.GE7517@sunshine.barsnick.net> References: <20161006140702.GC24464@sunshine.barsnick.net> <20161006153421.GD24464@sunshine.barsnick.net> <20161007120625.GE7517@sunshine.barsnick.net> Message-ID: 2016-10-07 14:06 GMT+02:00 Moritz Barsnick : > On Fri, Oct 07, 2016 at 13:07:53 +0200, Carl Eugen Hoyos wrote: >> 2016-10-06 17:34 GMT+02:00 Moritz Barsnick : >> > $ ffmpeg -r 25 -f concat -i concatscript.txt -c:v copy output.mxf >> >> This scales very badly, no? > > It's just a proof of concept. :) It scales nicely (linearly? or is I don't think so or at least I accept it to be magnitudes slower than using the symlinks. > seeking more expensive the deeper you seek?), and works > assuming you have CFR input and output, and you know > those rates, and ... , and ... > ;-) > > It "scales" better then writing every frame to disk and selecting > every second one by symlinking. That's 180000 intermediate > files plus 90000 symlinks for one hour of video. > Then I'd rather have ffmpeg seek into the input file 90000 times. But it actually opens the file 90000 times;-( Carl Eugen From mikhailwas at gmail.com Sat Oct 8 01:01:05 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Sat, 8 Oct 2016 00:01:05 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: > You can do: > $ ffmpeg -i input -vcodec copy -f image2 frame%4d > > Now make symbolic links to every second frame but > with sequential numbers (Don't ask me how). > $ ffmpeg -f image2 -vcodec dnxhd -i linked_frames%4d -vcodec copy out.mxf > (25fps is the default for the image2 demuxer, use -framerate to change it) Great, this worked for me. I don't know symlinks yet however so I have just deleted every second frame with a python script and then ran that command - worked fine, a video file produces correctly. > Or simply concatenate the frames you like with "cat" and do: > $ ffmpeg -i concatenated_file -vcodec copy out.mxf Well with concatenate I am also not very familiar, but I will look in Moritz' solution. I tried to pass a list with only filenames to concat filter but that did not work, seems the list must contain time points as in Moritz' solution to work at all. BTW after that manipulations a fair question arizes: why ffmpeg does not support something like: "... -f image2 -i filelist.txt output" It would ease all those strange manipulations and would not need symlinks or whatever. From al4321 at gmail.com Sat Oct 8 01:07:13 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sat, 8 Oct 2016 01:07:13 +0300 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple Message-ID: Hello all, I have encoded a bunch of videos for my iPad into MPEG-4-AVC using ffmpeg + libx264. I'm using Debian Linux 9/testing and it's version of ffmpeg on x64 for encoding. ffmpeg version 3.1.2-1 Copyright (c) 2000-2016 the FFmpeg developers Two of my videos have very strange behavior: They can forward/rewind/seek first few minutes of the video, and after a certain point I can't forward/rewind/seek video (but seeking audio still works), and video stops playing after reaching that point. This problem happens with ALL Apple decoders (iTunes+Quicktime on Windows 7, Quicktime on Mac, and my iPad Pro). The problem on two problematic videos is instantly visible with Quicktime on Windows:I get "Error -2002: a bad public movie atom was found in the movie" My Target device: iPad Pro 9.7 -- it has very powerful decoder. Even 4K UltraHD video in AVC works perfectly. FFprobe for first of my problematic videos: http://pastebin.com/Wh94xZR0 FFprobe for 2nd problematic video: http://pastebin.com/tymVrL5J Both videos play perfectly fine on Windows Media Player and VLC for Windows, two separate decoders. Any ideas ? -- -"Technologov" From ceffmpeg at gmail.com Sat Oct 8 01:31:09 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Sat, 8 Oct 2016 00:31:09 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: 2016-10-08 0:01 GMT+02:00 Mikhail V : > BTW after that manipulations a fair question arizes: why > ffmpeg does not support something like: > "... -f image2 -i filelist.txt output" (This command tries to read a frame / imagefile called filelist.txt) It does, it is called -f concat and is just an alternative of your python script. Carl Eugen From ceffmpeg at gmail.com Sat Oct 8 01:32:29 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Sat, 8 Oct 2016 00:32:29 +0200 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: 2016-10-08 0:07 GMT+02:00 Alexey Eromenko : > ffmpeg version 3.1.2-1 Copyright (c) 2000-2016 the FFmpeg developers Please understand that only current FFmpeg git head is supported here. > Two of my videos have very strange behavior: FFmpeg command line and complete, uncut console output missing. Carl Eugen From kieran.o.leary at gmail.com Sat Oct 8 01:28:08 2016 From: kieran.o.leary at gmail.com (Kieran O Leary) Date: Fri, 7 Oct 2016 23:28:08 +0100 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: Hi On 7 Oct 2016 11:15 p.m., "Alexey Eromenko" wrote: > > Hello all, > > I have encoded a bunch of videos for my iPad into MPEG-4-AVC using > ffmpeg + libx264. > > FFprobe for first of my problematic videos: > http://pastebin.com/Wh94xZR0 > > FFprobe for 2nd problematic video: > http://pastebin.com/tymVrL5J > You will probably get better answers if you instead post the full uncut console output of your FFmpeg encode, including the full command used. It also helps if you paste this into your email rather than using a third party website. Best, Kieran. From al4321 at gmail.com Sat Oct 8 02:10:17 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sat, 8 Oct 2016 02:10:17 +0300 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: >Please understand that only current FFmpeg git head is supported here. FFmpeg's own website offers 3.1.4 and redirects to Debian's page of v.3.1.4: https://tracker.debian.org/pkg/ffmpeg And I can't find how-to install ffmpeg-git on Debian. FFmpeg's encoder output: http://pastebin.com/NgkJVARD -- -Alexey Eromenko "Technologov" From william.caulfield at contentbridge.tv Sat Oct 8 02:49:59 2016 From: william.caulfield at contentbridge.tv (William Caulfield) Date: Fri, 7 Oct 2016 16:49:59 -0700 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: > > > > FFmpeg's encoder output: > http://pastebin.com/NgkJVARD > > > May have many other issues, but at a minimum you should add " -movflags +faststart" for better QT compatibility. -- *William Caulfield *| *ContentBridge Systems* From al4321 at gmail.com Sat Oct 8 02:51:44 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sat, 8 Oct 2016 02:51:44 +0300 Subject: [FFmpeg-user] Failed to build ffmpeg-git from source on Debian/testing Message-ID: Downloaded ffmpeg-git + installed all build-dependencies: The configuration was copied over from Debian. (ffmpeg has too much external libraries and dependencies to choose one-by-one). ffmpeg-git configure step: http://pastebin.com/jYv0RujW # make ... CC libswresample/options.o CC libswresample/rematrix.o libswresample/rematrix.c: In function ‘auto_matrix’: libswresample/rematrix.c:378:47: warning: iteration 64 invokes undefined behavior [-Waggressive-loop-optimizations] s->matrix_flt[0][i] = s->matrix[0][i]; ~~~~~~~~~~~~^~~ libswresample/rematrix.c:377:9: note: within this loop for (i = 0; i < FF_ARRAY_ELEMS(s->matrix[0])*FF_ARRAY_ELEMS(s->matrix[0]); i++) ^~~ CC libswresample/resample.o CC libswresample/resample_dsp.o CC libswresample/soxr_resample.o CC libswresample/swresample.o CC libswresample/swresample_frame.o YASM libswresample/x86/audio_convert.o STRIP libswresample/x86/audio_convert.o skipping strip -wN ..@* libswresample/x86/audio_convert.o CC libswresample/x86/audio_convert_init.o YASM libswresample/x86/rematrix.o STRIP libswresample/x86/rematrix.o skipping strip -wN ..@* libswresample/x86/rematrix.o CC libswresample/x86/rematrix_init.o YASM libswresample/x86/resample.o STRIP libswresample/x86/resample.o skipping strip -wN ..@* libswresample/x86/resample.o CC libswresample/x86/resample_init.o GEN libswresample/libswresample.ver LD libswresample/libswresample.so.2 LD libavcodec/libavcodec.so.57 libavcodec/libopenjpegenc.o: In function `libopenjpeg_encode_frame': /root/ffmpeg/libavcodec/libopenjpegenc.c:705: undefined reference to `opj_create_compress' /root/ffmpeg/libavcodec/libopenjpegenc.c:716: undefined reference to `opj_set_error_handler' /root/ffmpeg/libavcodec/libopenjpegenc.c:717: undefined reference to `opj_set_warning_handler' /root/ffmpeg/libavcodec/libopenjpegenc.c:785: undefined reference to `opj_stream_destroy' /root/ffmpeg/libavcodec/libopenjpegenc.c:786: undefined reference to `opj_destroy_codec' /root/ffmpeg/libavcodec/libopenjpegenc.c:718: undefined reference to `opj_set_info_handler' /root/ffmpeg/libavcodec/libopenjpegenc.c:724: undefined reference to `opj_setup_encoder' /root/ffmpeg/libavcodec/libopenjpegenc.c:729: undefined reference to `opj_stream_default_create' /root/ffmpeg/libavcodec/libopenjpegenc.c:757: undefined reference to `opj_stream_set_write_function' /root/ffmpeg/libavcodec/libopenjpegenc.c:758: undefined reference to `opj_stream_set_skip_function' /root/ffmpeg/libavcodec/libopenjpegenc.c:759: undefined reference to `opj_stream_set_seek_function' /root/ffmpeg/libavcodec/libopenjpegenc.c:761: undefined reference to `opj_stream_set_user_data' /root/ffmpeg/libavcodec/libopenjpegenc.c:768: undefined reference to `opj_start_compress' /root/ffmpeg/libavcodec/libopenjpegenc.c:769: undefined reference to `opj_encode' /root/ffmpeg/libavcodec/libopenjpegenc.c:770: undefined reference to `opj_end_compress' libavcodec/libopenjpegenc.o: In function `libopenjpeg_encode_close': /root/ffmpeg/libavcodec/libopenjpegenc.c:798: undefined reference to `opj_image_destroy' libavcodec/libopenjpegenc.o: In function `libopenjpeg_encode_init': /root/ffmpeg/libavcodec/libopenjpegenc.c:307: undefined reference to `opj_set_default_encoder_parameters' /root/ffmpeg/libavcodec/libopenjpegenc.c:384: undefined reference to `opj_image_destroy' libavcodec/libopenjpegenc.o: In function `mj2_create_image': /root/ffmpeg/libavcodec/libopenjpegenc.c:287: undefined reference to `opj_image_create' /usr/bin/ld: libavcodec/libavcodec.so.57: hidden symbol `opj_stream_set_write_function' isn't defined /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status library.mak:102: recipe for target 'libavcodec/libavcodec.so.57' failed make: *** [libavcodec/libavcodec.so.57] Error 1 If compiler doesn't like "libavcodec", then why configure step succeeded ? Any ideas ? -- -Alexey Eromenko "Technologov" From sven.c.dack at sky.com Sat Oct 8 05:16:37 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Sat, 8 Oct 2016 03:16:37 +0100 Subject: [FFmpeg-user] Failed to build ffmpeg-git from source on Debian/testing In-Reply-To: References: Message-ID: <411c6fda-ae88-b4c2-08eb-f6a86249ffae@sky.com> On 08/10/16 00:51, Alexey Eromenko wrote: > Downloaded ffmpeg-git + installed all build-dependencies: > > The configuration was copied over from Debian. (ffmpeg has too much > external libraries and dependencies to choose one-by-one). > > ffmpeg-git configure step: > http://pastebin.com/jYv0RujW > > > # make > ... > CC libswresample/options.o > CC libswresample/rematrix.o > libswresample/rematrix.c: In function ‘auto_matrix’: > libswresample/rematrix.c:378:47: warning: iteration 64 invokes > undefined behavior [-Waggressive-loop-optimizations] > s->matrix_flt[0][i] = s->matrix[0][i]; > ~~~~~~~~~~~~^~~ > libswresample/rematrix.c:377:9: note: within this loop > for (i = 0; i < > FF_ARRAY_ELEMS(s->matrix[0])*FF_ARRAY_ELEMS(s->matrix[0]); i++) > ^~~ > CC libswresample/resample.o > CC libswresample/resample_dsp.o > CC libswresample/soxr_resample.o > CC libswresample/swresample.o > CC libswresample/swresample_frame.o > YASM libswresample/x86/audio_convert.o > STRIP libswresample/x86/audio_convert.o > skipping strip -wN ..@* libswresample/x86/audio_convert.o > CC libswresample/x86/audio_convert_init.o > YASM libswresample/x86/rematrix.o > STRIP libswresample/x86/rematrix.o > skipping strip -wN ..@* libswresample/x86/rematrix.o > CC libswresample/x86/rematrix_init.o > YASM libswresample/x86/resample.o > STRIP libswresample/x86/resample.o > skipping strip -wN ..@* libswresample/x86/resample.o > CC libswresample/x86/resample_init.o > GEN libswresample/libswresample.ver > LD libswresample/libswresample.so.2 > LD libavcodec/libavcodec.so.57 > libavcodec/libopenjpegenc.o: In function `libopenjpeg_encode_frame': > /root/ffmpeg/libavcodec/libopenjpegenc.c:705: undefined reference to > `opj_create_compress' > /root/ffmpeg/libavcodec/libopenjpegenc.c:716: undefined reference to > `opj_set_error_handler' > /root/ffmpeg/libavcodec/libopenjpegenc.c:717: undefined reference to > `opj_set_warning_handler' > /root/ffmpeg/libavcodec/libopenjpegenc.c:785: undefined reference to > `opj_stream_destroy' > /root/ffmpeg/libavcodec/libopenjpegenc.c:786: undefined reference to > `opj_destroy_codec' > /root/ffmpeg/libavcodec/libopenjpegenc.c:718: undefined reference to > `opj_set_info_handler' > /root/ffmpeg/libavcodec/libopenjpegenc.c:724: undefined reference to > `opj_setup_encoder' > /root/ffmpeg/libavcodec/libopenjpegenc.c:729: undefined reference to > `opj_stream_default_create' > /root/ffmpeg/libavcodec/libopenjpegenc.c:757: undefined reference to > `opj_stream_set_write_function' > /root/ffmpeg/libavcodec/libopenjpegenc.c:758: undefined reference to > `opj_stream_set_skip_function' > /root/ffmpeg/libavcodec/libopenjpegenc.c:759: undefined reference to > `opj_stream_set_seek_function' > /root/ffmpeg/libavcodec/libopenjpegenc.c:761: undefined reference to > `opj_stream_set_user_data' > /root/ffmpeg/libavcodec/libopenjpegenc.c:768: undefined reference to > `opj_start_compress' > /root/ffmpeg/libavcodec/libopenjpegenc.c:769: undefined reference to > `opj_encode' > /root/ffmpeg/libavcodec/libopenjpegenc.c:770: undefined reference to > `opj_end_compress' > libavcodec/libopenjpegenc.o: In function `libopenjpeg_encode_close': > /root/ffmpeg/libavcodec/libopenjpegenc.c:798: undefined reference to > `opj_image_destroy' > libavcodec/libopenjpegenc.o: In function `libopenjpeg_encode_init': > /root/ffmpeg/libavcodec/libopenjpegenc.c:307: undefined reference to > `opj_set_default_encoder_parameters' > /root/ffmpeg/libavcodec/libopenjpegenc.c:384: undefined reference to > `opj_image_destroy' > libavcodec/libopenjpegenc.o: In function `mj2_create_image': > /root/ffmpeg/libavcodec/libopenjpegenc.c:287: undefined reference to > `opj_image_create' > /usr/bin/ld: libavcodec/libavcodec.so.57: hidden symbol > `opj_stream_set_write_function' isn't defined > /usr/bin/ld: final link failed: Bad value > collect2: error: ld returned 1 exit status > library.mak:102: recipe for target 'libavcodec/libavcodec.so.57' failed > make: *** [libavcodec/libavcodec.so.57] Error 1 > > If compiler doesn't like "libavcodec", then why configure step succeeded ? > > Any ideas ? You need libopenjpeg or change your configure arguments. configure ... --disable-decoder=libopenjpeg ... --enable-libopenjpeg ... You probably want to remove the "--enable" bit. From michael.heuberger at binarykitchen.com Sat Oct 8 05:39:34 2016 From: michael.heuberger at binarykitchen.com (Michael Heuberger) Date: Sat, 8 Oct 2016 15:39:34 +1300 Subject: [FFmpeg-user] Looking for an apt-get package that comes with Rubberband Message-ID: <4f7757e6-494d-b06a-0eab-d7b7bd2ed909@binarykitchen.com> Hello folks To deploy my app easier among my machines, I am looking for a linux package where ffmpeg is compiled with the rubberband tool altogether. So that I can simply install or update it via apt-get instead of using a long git bash command which is prone to crash. The usual Ubuntu source package is quite old and does not come with Rubberband: https://launchpad.net/ubuntu/+source/ffmpeg/7:2.8.6-1ubuntu2 Anyone knows of such a source I could use? Thanks Michael -- Binary Kitchen Michael Heuberger 1/33 Parrish Road Sandringham Auckland 1025 (New Zealand) Mobile (text only) ... +64 21 261 89 81 Email ................ michael at binarykitchen.com Website .............. http://www.binarykitchen.com From lists at reto.ch Sat Oct 8 07:50:03 2016 From: lists at reto.ch (Reto Kromer) Date: Sat, 8 Oct 2016 06:50:03 +0200 Subject: [FFmpeg-user] Looking for an apt-get package that comes with Rubberband In-Reply-To: <4f7757e6-494d-b06a-0eab-d7b7bd2ed909@binarykitchen.com> Message-ID: Michael Heuberger wrote: >To deploy my app easier among my machines, I am looking for >a linux package where ffmpeg is compiled with the >rubberband tool altogether. Using linuxbrew you can install ffmpeg with rubberband: brew install ffmpeg {...} --with-rubberband Works fine on my side for both HEAD and 3.1.3 (3.1.4 should follow in the next week or so). Hope this helps! Reto From tim_z at gmx.net Sat Oct 8 10:23:35 2016 From: tim_z at gmx.net (Tim Zett) Date: Sat, 8 Oct 2016 09:23:35 +0200 Subject: [FFmpeg-user] ffmpeg issues with XAVC-L in MXF container In-Reply-To: References: Message-ID: Hi Carl Eugen, here comes the console output - attached. x264 does not support paff encoding, do you think the encoding quality is bad? => can you please tell me what you mean with 'paff' ? It is common and actually the standard that one does encode progressive frames with x264, so if 'libx264' obviously cannot do it in my case, which ffmpeg codec should be used then? It's not about quality here but getting exactly the same specs at the output file except it's size. I don't understand this sentence. => The original (input) files had 50 frames per second, means a constant frame rate. The resulting (output file) deals with a variable frame rate (like those videos from mobile phones or frame grabber) which is unusable in my editing program. So the remaining question is: Why is libx264 touching both my progressive frames and the constant frame rate? Regards, Tim Am 05.10.2016 um 13:12 schrieb Carl Eugen Hoyos: > 2016-10-05 12:42 GMT+02:00 Tim Zett : > >> I'd like to re-wrap Sony XAVC-L video based on OP-1a in MXF container, > Please use "remuxing" so everybody here understands what > you are trying to say. > >> in order to produce proxy files for my edits. >> I am using the following command line: >> >> & $ffmpegpath -i $Item.FullName -map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 >> -c:a copy -c:d copy -c:t copy -copyts -metadata creation_time=$Timestamp >> -c:v libx264 -pix_fmt yuv422p10le -intra -b:v 16000k -vf scale=1280:720 -y >> $targetfolder\$TargetItem'.MXF' > Complete, uncut console output missing. > >> However, the resulting frames are interlaced, even though in the >> original file the are progressive, > x264 does not support paff encoding, do you think the encoding > quality is bad? > >> and even they are variable frames, other than in >> the original where they are fixed: > I don't understand this sentence. > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". -------------- next part -------------- ffmpeg.exe : ffmpeg version N-81409-ga3cab3d Copyright (c) 2000-2016 the FFmpeg developers In \\LTB\Thomas\Scripts\MakeXAVCProxy.ps1:37 Zeichen:5 + & $ffmpegpath -i $Item.FullName -map 0:0 -map 0:1 -map 0:2 -map 0 ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (ffmpeg version ...mpeg developers:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 29.100 / 55. 29.100 libavcodec 57. 54.100 / 57. 54.100 libavformat 57. 47.101 / 57. 47.101 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 52.100 / 6. 52.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Input #0, mxf, from 'D:\_Test\FCTFE_03\Clip0001.MXF': Metadata: uid : 4907240a-b84e-122d-9c7c-000000000000 generation_uid : 49072414-b84e-122d-9be8-000000000000 company_name : Sony product_name : Mem product_version : 2.00 product_uid : ffffffff-ffff-ffff-ffff-ffffffffffff modification_date: 2016-09-04 11:03:04 material_package_umid: 0x060A2B340101010501010D431300000096E6E075357605C990B686FFFED299BB timecode : 00:17:07:34 Duration: 00:00:04.80 , start: 0.000000 , bitrate: 52919 kb/s Stream #0: 0: Video: h264 (High 4:2:2), yuv422p10le(tv, bt709/bt709/iec61966-2-4), 1920x1080 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 50 tbn, 100 tb c Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0: 1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0:3 : Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0: 4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0:5: Data: none Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB data_type : vbi_vanc_smpte_436M [libx264 @ 000000000076dfc0] using SAR=1/1 [libx264 @ 000000000076dfc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 000000000076dfc0] profile High 4:2:2 Intra, level 3.2, 4:2:2 8-bit [mxf @ 0000000002b72ba0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 4 times Output #0, mxf, to 'D:\_Test\FCTFE_03\Proxy\Clip0001.MXF': Metadata: uid : 4907240a-b84e-122d-9c7c-000000000000 generation_uid : 49072414-b84e-122d-9be8-000000000000 company_name : Sony product_name : Mem product_version : 2.00 product_uid : ffffffff-ffff-ffff-ffff-ffffffffffff modification_date: 2016-09-04 11:03:04 material_package_umid: 0x060A2B340101010501010D431300000096E6E075357605C990B686FFFED299BB timecode : 00:17:07:34 creation_time : 2016-10-08 11:15:3 5 encoder : Lavf57.47.101 Stream #0: 0: Video: h264 (libx264), yuv422p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 8000 kb/s, 50 fps, 50 tbn, 50 tbc Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB encoder : Lavc57.54.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/8000000 buffer size: 0 vbv_delay: -1 Stream #0:1 : Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0: 2: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0: 3: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream #0: 4: Audio: pcm_s24le, 48000 Hz, mono (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D431300000097E6E075357605C990B686FFFED299BB Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0: 2 (copy) Stream #0:3 -> #0: 3 (copy) Stream #0:4 -> #0:4 (copy) Press [q] to stop, [?] for help [mxf @ 0000000002b72ba0] -d10_channelcount requires MXF D-10 and will be ignored Last message r ep eate d 3 times frame= 14 fps=5.7 q=28.0 size= 45kB time=00:00:00.46 bitrate= 800.3kbits/s speed=0.186x frame= 64 fps= 22 q=30.0 size= 1685kB time=00:00:01.46 bitrate=9453.5kbits/s speed=0.491x frame= 117 fps= 34 q=30.0 size= 3376kB time=00:00:02.52 bitrate=10975.6kbits/s speed=0.725x frame= 164 fps= 41 q=30.0 size= 4883kB time=00:00:03.46 bitrate=11561.0kbits/s speed=0.868x frame= 214 fps= 48 q=30.0 size= 6493kB time=00:00:04.46 bitrate=11926.2kbits/s speed=0.994x frame= 240 fps= 50 q=-1.0 Lsize= 7766kB time=00:00:04.80 bitrate=13254.1kbits/s speed= 1x video:4691kB audio:2700kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.071590% [libx264 @ 000000000076dfc0] frame I:240 Avg QP:29.20 size: 20016 [libx264 @ 000000000076dfc0] mb I I16..4: 20.2% 61.7% 18.2% [libx264 @ 000000000076dfc0] final ratefactor: 22.21 [libx264 @ 000000000076dfc0] 8x8 transform intra:61.6% [libx264 @ 000000000076dfc0] coded y,uvDC,uvAC intra: 49.1% 38.8% 0.2% [libx264 @ 000000000076dfc0] i16 v,h,dc,p: 32% 45% 7% 16% [libx264 @ 000000000076dfc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 15% 22% 7% 5% 5% 5% 5% 4% [libx264 @ 000000000076dfc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 43% 19% 13% 6% 5% 4% 4% 3% 2% [libx264 @ 000000000076dfc0] i8c dc,h,v,p: 54% 15% 29% 2% [libx264 @ 000000000076dfc0] kb/s:8006.32 From al4321 at gmail.com Sat Oct 8 12:15:06 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sat, 8 Oct 2016 12:15:06 +0300 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple Message-ID: +faststart didn't solve the problem, sadly. http://pastebin.com/r2yg1w1V Here is what I'we got: -- using Atomic Parsley tool F:\Test-video-coding\Apple-decoder-issues>C:\Dropbox\Install-experimental\Atomic Parsley-win32-0.9.0\AtomicParsley.exe Pocahontas2-Anti-Apple-360p-2pass-faststar t.mp4 -T Atom ftyp @ 0 of size: 32, ends @ 32 Atom moov @ 32 of size: 1251026, ends @ 1251058 Atom mvhd @ 40 of size: 108, ends @ 148 Atom trak @ 148 of size: 1250812, ends @ 1250960 Atom tkhd @ 156 of size: 92, ends @ 248 Atom edts @ 248 of size: 36, ends @ 284 Atom elst @ 256 of size: 28, ends @ 284 Atom mdia @ 284 of size: 1250676, ends @ 1250960 Atom mdhd @ 292 of size: 44, ends @ 336 Atom hdlr @ 336 of size: 45, ends @ 381 Atom minf @ 381 of size: 1250579, ends @ 1250960 Atom vmhd @ 389 of size: 20, ends @ 409 Atom dinf @ 409 of size: 36, ends @ 445 Atom dref @ 417 of size: 28, ends @ 445 Atom stbl @ 445 of size: 1250515, ends @ 1250960 Atom stsd @ 453 of size: 171, ends @ 624 Atom avc1 @ 469 of size: 155, ends @ 624 Atom avcC @ 555 of size: 53, ends @ 608 Atom pasp @ 608 of size: 16, ends @ 624 ~ Atom stts @ 624 of size: 24, ends @ 648 Atom stss @ 648 of size: 5036, ends @ 5684 Atom ctts @ 5684 of size: 814104, ends @ 819788 Atom stsc @ 819788 of size: 7588, ends @ 827376 Atom stsz @ 827376 of size: 421028, ends @ 1248404 Atom stco @ 1248404 of size: 2556, ends @ 1250960 Atom udta @ 1250960 of size: 98, ends @ 1251058 Atom meta @ 1250968 of size: 90, ends @ 1251058 Atom hdlr @ 1250980 of size: 33, ends @ 1251013 Atom ilst @ 1251013 of size: 45, ends @ 1251058 Atom ctoo @ 1251021 of size: 37, ends @ 1251058 Atom data @ 1251029 of size: 29, ends @ 1251058 Atom free @ 1251058 of size: 8, ends @ 1251066 Atom mdat @ 1251066 of size: 658526846, ends @ 659777912 ~ denotes an unknown atom ------------------------------------------------------ Total size: 659777912 bytes; 32 atoms total. AtomicParsley version: 0.9.0 (utf16 ) Media data: 658526846 bytes; 1251066 bytes all other atoms (0.190% atom overhead ). Total free atom space: 8 bytes; 0.000% waste. Padding available: 8 bytes. ------------------------------------------------------ F:\Test-video-coding\Apple-decoder-issues> ==== What this unknown atom could be ? Hmmm... Also I have a bunch of other videos that work just fine, despite NOT moving the "moov atom" to the beginning. Anyway, "unknown atom" is not the biggest problem either: Another file lacks "unknown atom" and still fails to play on Apple. AtomicParsley.exe Pocahontas2-Anti-Apple.mp4: http://pastebin.com/SzgtXUHe Any ideas ? From al4321 at gmail.com Sat Oct 8 12:43:32 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sat, 8 Oct 2016 12:43:32 +0300 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: More info on this issue: Encoding only the first 2 minutes work fine (using -to 00:02:00), but encoding the first 4 minutes already results in an error. From al4321 at gmail.com Sat Oct 8 13:29:09 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sat, 8 Oct 2016 13:29:09 +0300 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: Here is an example broken video file: -- (video data was blurred on purpose.) https://drive.google.com/open?id=0BycgkMZbeQOzaXpFRVJ5T09VeTQ This broken video cannot be played on iTunes/Quicktime, beyond about 50 seconds. From Thomas.Matthias at dolby.com Fri Oct 7 20:25:10 2016 From: Thomas.Matthias at dolby.com (Matthias, Thomas) Date: Fri, 7 Oct 2016 17:25:10 +0000 Subject: [FFmpeg-user] DeckLink Output Controls Message-ID: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> Hi There, I’m looking into using FFMPEG for its DeckLink device control. The capture part of the API seems fairly fully featured, however the output/playback controls seems to have some strange limitations. Specifically, on output, there is a hard-coded limit of only 8 channels of audio. What’s strange, is that the capture partition can handle up to 16, which makes sense considering most DeckLink cards have SDI input/output, and 16 channels is a standard workflow for SDI. Also, is there a reason why only 2 and 8 channels are supported, instead of just “n” channels (4 or 6 channels, for example)? Would it be possible to output 16 channels of audio? Is there a better way to do this (via the command line?)? Could a custom version of the decklink_enc files be built to handle 16 channels or is there some other limitation I’m not aware of? Thanks in advance, I really appreciate any advice/ideas here. Also, is there a specific reason that input/output are limited to only 48khz for audio? I’m guessing this is specific to DeckLink cards, but I haven’t found a specific reason yet. ~Thomas Matthias From reuben.m at gmail.com Sat Oct 8 22:53:08 2016 From: reuben.m at gmail.com (Reuben Martin) Date: Sat, 08 Oct 2016 14:53:08 -0500 Subject: [FFmpeg-user] DeckLink Output Controls In-Reply-To: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> References: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> Message-ID: <5492491.aGnp3rceaL@subterfuge> On Friday, October 7, 2016 5:25:10 PM CDT Matthias, Thomas wrote: > Hi There, > > I’m looking into using FFMPEG for its DeckLink device control. The capture > part of the API seems fairly fully featured, however the output/playback > controls seems to have some strange limitations. Specifically, on output, > there is a hard-coded limit of only 8 channels of audio. HDMI is limited to 8 channels. Sombody somewhere probably didn’t want to implement the logic required to make channel limits depend on the output interface used. > What’s strange, > is that the capture partition can handle up to 16, which makes sense > considering most DeckLink cards have SDI input/output, and 16 channels is a > standard workflow for SDI. Also, is there a reason why only 2 and 8 > channels are supported, instead of just “n” channels (4 or 6 channels, for > example)? HDMI offers stereo mode, and 8 channel mode when using PCM streams. There is no a’la-carte audio mode. Dolby / DTS has things like 5.1, but that is an entirely differnt stream type separate from PCM. > Would it be possible to output 16 channels of audio? Is there a better way > to do this (via the command line?)? Could a custom version of the > decklink_enc files be built to handle 16 channels or is there some other > limitation I’m not aware of? Probably. Depends on what the API supports. > Thanks in advance, I really appreciate any advice/ideas here. Also, is > there a specific reason that input/output are limited to only 48khz for > audio? SDI is 20bit 48k audio only. There’s really no good reason for anything else. Technically SDI also supports 48048 and 47952 to allow for pull up/down, but I think that is done by manipulating the clock rather than explicitly changing the sample rate. -Reuben From coniophora at gmail.com Sat Oct 8 23:25:53 2016 From: coniophora at gmail.com (Jim Worrall) Date: Sat, 8 Oct 2016 14:25:53 -0600 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: > On 2016 Oct 8, at 4:29 AM, Alexey Eromenko wrote: > > Here is an example broken video file: -- (video data was blurred on purpose.) > https://drive.google.com/open?id=0BycgkMZbeQOzaXpFRVJ5T09VeTQ > > This broken video cannot be played on iTunes/Quicktime, beyond about 50 seconds. > _______________________________________________ I haven’t looked at your file, but the first thing I would do is compare your encoding settings (which, as far as I can see, you still haven’t posted) to the video specifications of the playback device. For your iPad Pro, they are: Video formats supported: H.264 video up to 4K, 30 frames per second, High Profile level 4.2 with AAC‑LC audio up to 160 Kbps, 48kHz, stereo audio or Dolby Audio up to 1008 Kbps, 48kHz, stereo or multichannel audio, in .m4v, .mp4, and .mov file formats; MPEG‑4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC‑LC audio up to 160 Kbps per channel, 48kHz, stereo audio or Dolby Audio up to 1008 Kbps, 48kHz, stereo or multichannel audio, in .m4v, .mp4, and .mov file formats; Motion JPEG (M‑JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format From al4321 at gmail.com Sat Oct 8 23:38:16 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sat, 8 Oct 2016 23:38:16 +0300 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: >I haven’t looked at your file, but the first thing I would do is compare your encoding settings (which, as far as I can see, you still haven’t posted) to the video specifications of the playback device. For your iPad Pro, they are: I posted everything. All default settings still cause the problem for a few specific videos (the vast majority of my encoded videos work just fine).. $ ffmpeg -i $INPUT.y4m -b:v 1200k -s 640x360 $OUTPUT.mp4 FFmpeg's encoder output: http://pastebin.com/NgkJVARD -Technologov From coniophora at gmail.com Sun Oct 9 00:22:48 2016 From: coniophora at gmail.com (Jim Worrall) Date: Sat, 8 Oct 2016 15:22:48 -0600 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: Message-ID: <9BFA1BF5-BB12-4010-9673-8243E854C7EA@gmail.com> > On 2016 Oct 8, at 2:38 PM, Alexey Eromenko wrote: > >> I haven’t looked at your file, but the first thing I would do is compare your encoding settings (which, as far as I can see, you still haven’t posted) to the video specifications of the playback device. For your iPad Pro, they are: > > I posted everything. All default settings still cause the problem for > a few specific videos (the vast majority of my encoded videos work > just fine).. > > > $ ffmpeg -i $INPUT.y4m -b:v 1200k -s 640x360 $OUTPUT.mp4 > > FFmpeg's encoder output: > http://pastebin.com/NgkJVARD I’ve never seen an ffmpeg configuration output that looks like that, but what do I know. Also it gives you a warning that there is a "library configuration mismatch" - I don’t know what that is but would fix that before looking for other problems. I don’t see anything obvious in the output that should make it incompatible with Apple’s specs. From al4321 at gmail.com Sun Oct 9 00:27:35 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Sun, 9 Oct 2016 00:27:35 +0300 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: <9BFA1BF5-BB12-4010-9673-8243E854C7EA@gmail.com> References: <9BFA1BF5-BB12-4010-9673-8243E854C7EA@gmail.com> Message-ID: Okay, for now I was forced to open a bug report #5882 https://trac.ffmpeg.org/ticket/5882 So far I found this problem on 3 out of 700+ videos, making it fairly rare, but still significant. That means about 0.5% of my videos DO NOT PLAY on iPad/Apple products no matter which encoding settings I use. From coniophora at gmail.com Sun Oct 9 00:56:29 2016 From: coniophora at gmail.com (Jim Worrall) Date: Sat, 8 Oct 2016 15:56:29 -0600 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: <9BFA1BF5-BB12-4010-9673-8243E854C7EA@gmail.com> Message-ID: > On 2016 Oct 8, at 3:27 PM, Alexey Eromenko wrote: > > Okay, for now I was forced to open a bug report #5882 > https://trac.ffmpeg.org/ticket/5882 Well, it seems obvious from "library configuration mismatch” there is something wrong with your ffmpeg installation, but I guess you’re going to ignore that. From list at xenhideout.nl Sun Oct 9 01:24:10 2016 From: list at xenhideout.nl (Xen) Date: Sun, 09 Oct 2016 00:24:10 +0200 Subject: [FFmpeg-user] tools for viewing frames and results Message-ID: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> Is there any way in Linux to obtain an accurate frame/time number through a GUI that can be used with ffmpeg? I know Avidemux hardly works at all, VLC will not reliably show frames. Pitivi is not an option, I haven't tried Kdenlive because it crashed the first time I used it. Haven't attempted OpenShot or Cinerella and "DragonPlayer" is too worthless to exist. What is a good tool to view results after you've created a video? Because VLC closes its window and constantly resizes stuff it is not very suitable. GMplayer in Debian doesn't work. (Kubuntu). Regards. From sven.c.dack at sky.com Sun Oct 9 02:52:00 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Sun, 9 Oct 2016 00:52:00 +0100 Subject: [FFmpeg-user] tools for viewing frames and results In-Reply-To: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> References: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> Message-ID: <21ba6b8e-17f7-36c9-cf5b-58856143a7b5@sky.com> On 08/10/16 23:24, Xen wrote: > Is there any way in Linux to obtain an accurate frame/time number through a > GUI that can be used with ffmpeg? > > I know Avidemux hardly works at all, VLC will not reliably show frames. > > Pitivi is not an option, I haven't tried Kdenlive because it crashed the first > time I used it. > > Haven't attempted OpenShot or Cinerella and "DragonPlayer" is too worthless to > exist. > > What is a good tool to view results after you've created a video? Because VLC > closes its window and constantly resizes stuff it is not very suitable. > > GMplayer in Debian doesn't work. (Kubuntu). > > Regards. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". Don't call the work of others "too worthless to exist". Your rudeness is uncalled for. VLC doesn't have to skip frames but drops them as a feature to hurry up the playback. You'll find it in its many advanced options. If its about viewing a video frame by frame then you can reconfigure the GUI of VLC to include a button for it. You'll find a keyboard shortcut for it, too. My preferred player is mpv - simple, fast and yet powerful options. You can watch a video frame by frame with , and . in single steps. When you start it from the command line with --osd-fractions will it show an exact time code down to milliseconds on the console. $ apt-get install mpv From michael.heuberger at binarykitchen.com Sun Oct 9 02:53:57 2016 From: michael.heuberger at binarykitchen.com (Michael Heuberger) Date: Sun, 9 Oct 2016 12:53:57 +1300 Subject: [FFmpeg-user] Looking for an apt-get package that comes with Rubberband In-Reply-To: References: Message-ID: <626d0fb7-eeff-49ad-57e1-34c46d0fc406@binarykitchen.com> Ugh, linuxbrew? Rather avoid it since apt-get is the one package manager for Linux and most servers run on Linux. Is there no source I can use for apt-get? On 08/10/16 17:50, Reto Kromer wrote: > Michael Heuberger wrote: > >> To deploy my app easier among my machines, I am looking for >> a linux package where ffmpeg is compiled with the >> rubberband tool altogether. > Using linuxbrew you can install ffmpeg with rubberband: > > brew install ffmpeg {...} --with-rubberband > > Works fine on my side for both HEAD and 3.1.3 (3.1.4 > should follow in the next week or so). > > Hope this helps! Reto > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". -- Binary Kitchen Michael Heuberger 1/33 Parrish Road Sandringham Auckland 1025 (New Zealand) Mobile (text only) ... +64 21 261 89 81 Email ................ michael at binarykitchen.com Website .............. http://www.binarykitchen.com From barsnick at gmx.net Sun Oct 9 05:08:41 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 9 Oct 2016 04:08:41 +0200 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: <9BFA1BF5-BB12-4010-9673-8243E854C7EA@gmail.com> Message-ID: <20161009020841.GA26351@sunshine.barsnick.net> On Sat, Oct 08, 2016 at 15:56:29 -0600, Jim Worrall wrote: > > https://trac.ffmpeg.org/ticket/5882 > Well, it seems obvious from "library configuration mismatch” there is something > wrong with your ffmpeg installation, but I guess you’re going to ignore that. It means he's executing the ffmpeg "--extra-version=1" using the libraries compiled with "--extra-version=1+b3". Indeed, while I don't seen why this would cause the described bug, it should be cleaned up first. Moritz From rslovers at yandex.com Sun Oct 9 20:32:50 2016 From: rslovers at yandex.com (rslovers at yandex.com) Date: Sun, 09 Oct 2016 20:32:50 +0300 Subject: [FFmpeg-user] http inside concat demuxer Message-ID: <20161009203250.WcuGXNNs@smtp3o.mail.yandex.net> I tried: ffmpeg -user-agent whatever -f concat -i list with list content: file 'http://localhost:10000/1' file 'http://localhost:10000/2' ... But ffmpeg just ignored the user-agent option and sent the default one, how could I set http protocol related options when using the concat demuxer? Thanks! From iltlwp at gmail.com Sun Oct 9 21:22:33 2016 From: iltlwp at gmail.com (Ryder Wright) Date: Sun, 9 Oct 2016 11:22:33 -0700 Subject: [FFmpeg-user] Extracting images from swf using ffmpeg (version 8 swf vs version 10) Message-ID: Hi all, I have a collection of swf files, some of which are version 8 and some are version 10. I want to create animated gifs from these files. I've established that I can obtain a collection of images from the version 8 swfs using: % ffmpeg -i $swf -f image2 -vcodec png -r 30 i%02d.png but when the above is invoked on version 10 swfs, I get an error: could not find codec parameters When I invoke 'swfextract' on a version 8 image, I get something like: % swfextract a.swf Objects in file a.swf: [-i] 6 Shapes: ID(s) 2, 5, 9, 11, 13, 16 [-i] 2 MovieClips: ID(s) 10, 17 [-f] 1 Frame: ID(s) 0 When I invoke 'swfextract' on a version 10 image, I get something like: % swfextract b.swf Objects in file b.swf: [-i] 1 MovieClip: ID(s) 3 [-F] 1 Font: ID(s) 2 [-b] 1 Binary: ID(s) 1 [-f] 1 Frame: ID(s) 0 No shapes, just a single MovieClip (and a Font). Questions: - Anyone know why ffmpeg works for version 8 swf files but not version 10 files? - Why does one specify a format type of 'image2' (as opposed to 'swf' or 'avm2')? - Is there a way to extract images from a version 10 swf file using ffmpeg? Thanks, Ryder From barsnick at gmx.net Sun Oct 9 21:33:54 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 9 Oct 2016 20:33:54 +0200 Subject: [FFmpeg-user] Extracting images from swf using ffmpeg (version 8 swf vs version 10) In-Reply-To: References: Message-ID: <20161009183354.GA10352@sunshine.barsnick.net> On Sun, Oct 09, 2016 at 11:22:33 -0700, Ryder Wright wrote: > but when the above is invoked on version 10 swfs, I get an error: > could not find codec parameters Apparently ffmpeg can't correctly decode/demux the version 10 SWF file. Please show us the complete, uncut console output of the above command. > No shapes, just a single MovieClip (and a Font). Can you share a sample? > - Why does one specify a format type of 'image2' (as opposed to 'swf' or > 'avm2')? You don't have to; if you give "something%d.jpg" with a recognized image extension, them image2 demuxer for said image format is automatically chosen. That format specifies that a series of single images is to be output (instead of e.g. just one image). Moritz From iltlwp at gmail.com Sun Oct 9 21:41:46 2016 From: iltlwp at gmail.com (Ryder Wright) Date: Sun, 9 Oct 2016 11:41:46 -0700 Subject: [FFmpeg-user] Extracting images from swf using ffmpeg (version 8 swf vs version 10) In-Reply-To: References: Message-ID: Ah, I think I've answered my own question (posting the result in case it is useful for anyone else) # See what objects exist in the SWF file % swfextract b.swf Objects in file b.swf: [-i] 1 MovieClip: ID(s) 3 [-F] 1 Font: ID(s) 2 [-b] 1 Binary: ID(s) 1 [-f] 1 Frame: ID(s) 0 # Extract out the MovieClip % swfextract -i 3 b.swf -o b-3.swf # See what is in the MovieClip % swfextract b-3.swf Objects in file b-3.swf: [-i] 1 MovieClip: ID(s) 3 [-f] 1 Frame: ID(s) 0 % ls -l b*.swf -rw-r--r-- 1 wmh eng 53 Oct 9 11:24 b-3.swf -rw-r--r-- 1 wmh eng 115136 Oct 9 10:17 b.swf >From the size of the b-3.swf file, it is not storing any actual data. # See what is in the Binary object: % swfextract b.swf -b 1 -o b-1.bin % file b-1.bin b-1.bin: Macromedia Flash data, version 9 % mv b-1.bin b-1.swf % ffmpeg -i b-1.swf -f image2 -vcodec png -r 30 k%02d.png Success! On Sun, Oct 9, 2016 at 11:22 AM, Ryder Wright wrote: > Hi all, > > I have a collection of swf files, some of which are version 8 and some are > version 10. I want to create animated gifs from these files. > > I've established that I can obtain a collection of images from the version > 8 swfs using: > % ffmpeg -i $swf -f image2 -vcodec png -r 30 i%02d.png > but when the above is invoked on version 10 swfs, I get an error: > could not find codec parameters > > When I invoke 'swfextract' on a version 8 image, I get something like: > > % swfextract a.swf > Objects in file a.swf: > [-i] 6 Shapes: ID(s) 2, 5, 9, 11, 13, 16 > [-i] 2 MovieClips: ID(s) 10, 17 > [-f] 1 Frame: ID(s) 0 > > When I invoke 'swfextract' on a version 10 image, I get something like: > > % swfextract b.swf > Objects in file b.swf: > [-i] 1 MovieClip: ID(s) 3 > [-F] 1 Font: ID(s) 2 > [-b] 1 Binary: ID(s) 1 > [-f] 1 Frame: ID(s) 0 > > No shapes, just a single MovieClip (and a Font). > > Questions: > > - Anyone know why ffmpeg works for version 8 swf files but not version > 10 files? > - Why does one specify a format type of 'image2' (as opposed to 'swf' > or 'avm2')? > - Is there a way to extract images from a version 10 swf file using > ffmpeg? > > Thanks, > Ryder > > > > From iltlwp at gmail.com Sun Oct 9 21:54:37 2016 From: iltlwp at gmail.com (Ryder Wright) Date: Sun, 9 Oct 2016 11:54:37 -0700 Subject: [FFmpeg-user] Extracting images from swf using ffmpeg (version 8 swf vs version 10) In-Reply-To: <20161009183354.GA10352@sunshine.barsnick.net> References: <20161009183354.GA10352@sunshine.barsnick.net> Message-ID: Wow, thanks for the fast response Moritz! > Apparently ffmpeg can't correctly decode/demux the version 10 SWF file. > Please show us the complete, uncut console output of the above command. > I believe I've found a way to address my problem (posted separately), but I'd be interested in learning more about how the full log can help debug this issue. Here's the full output: % ffmpeg -i b.swf -f image2 -vcodec png -r 30 j%02d.png ffmpeg version 2.8.5 Copyright (c) 2000-2016 the FFmpeg developers built with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [swf @ 0x7fb6b9804600] SWF compressed file detected b.swf: could not find codec parameters For comparison, here's the output for a version 8 SWF file (a.swf): % ffmpeg -i a.swf -f image2 -vcodec png -r 30 i%02d.png ffmpeg -i a.swf -f image2 -vcodec png -r 30 i%02d.png ffmpeg version 2.8.5 Copyright (c) 2000-2016 the FFmpeg developers built with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [swf @ 0x7fdf6b002000] SWF compressed file detected Input #0, swf, from 'a.swf': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: vp6f, yuv420p, 480x320, 30 fps, 30 tbr, 30 tbn Output #0, image2, to 'i%02d.png': Metadata: encoder : Lavf56.40.101 Stream #0:0: Video: png, rgb24, 480x320, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc Metadata: encoder : Lavc56.60.100 png Stream mapping: Stream #0:0 -> #0:0 (vp6f (native) -> png (native)) Press [q] to stop, [?] for help frame= 31 fps=0.0 q=-0.0 Lsize=N/A time=00:00:01.03 bitrate=N/A video:6278kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown In addition to the above output, k01.png, k02,png, ... k31.png are created, as desired (for version 8, but not version 10). > > No shapes, just a single MovieClip (and a Font). > > Can you share a sample? > I didn't do so initially because the swf files are NSFW and I didn't want to offend anyone's sensibilities ;-) I can share under separate cover if it is useful. > - Why does one specify a format type of 'image2' (as opposed to 'swf' > or > > 'avm2')? > > You don't have to; if you give "something%d.jpg" with a recognized > image extension, them image2 demuxer for said image format is > automatically chosen. > Ah, that makes sense. As an aside, just for my own curiosity, a question about the -f flag. From the manual: -f fmt (*input/output*) Force input or output file format. The format is normally auto detected for input files and guessed from the file extension for output files, so this option is not needed in most cases. How does one specify an input format and an output format with the same flag (-f)? When would one need to specify a format of 'swf'? How about 'avm2'? I was initially thinking maybe the difference between version 8 and version 10 was that version 8 was using 'swf' and version 10 was using 'avm2'. > That format specifies that a series of single images is to be output > (instead of e.g. just one image). > Makes sense. > Moritz > Sincerely appreciation the response Moritz ... thanks! Ryder From alhaseebjafar at gmail.com Sun Oct 9 14:04:14 2016 From: alhaseebjafar at gmail.com (Al-Haseeb Jafar) Date: Sun, 9 Oct 2016 16:04:14 +0500 Subject: [FFmpeg-user] Adding Watermark to Video Message-ID: I'm completely unfamiliar with ffmpeg (I just know its name). On my video site phpvibe CMS is using the following ffmpeg command. CMD 1: {ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart {output}.mp4 I want to add a functionality to this code of adding watermark to the top right corner, padding 10 pixels right and top, while converting the video. I found this command for this purpose. CMD 2: {ffmpeg-cmd} -i {input} -i watermark.png -filter_complex "overlay=main_w-overlay_w-10:10" {output}.mp4 Can you help me properly adding CMD 2 into CMD 1, plz? And where should be watermark.png? I mean in which directory? I'm ready to pay for this. From freeuserback at gmail.com Sun Oct 9 15:10:45 2016 From: freeuserback at gmail.com (Free User) Date: Sun, 9 Oct 2016 13:10:45 +0100 Subject: [FFmpeg-user] How to Cite FFMPEG in papers Message-ID: Hello, Would you please advise on how we should cite ffmpeg in published research papers. Regards, From mymlact at gmx.com Thu Oct 6 03:19:32 2016 From: mymlact at gmx.com (mymlact at gmx.com) Date: Wed, 5 Oct 2016 17:19:32 -0700 Subject: [FFmpeg-user] combine dvd files with all info into single file Message-ID: <57F59894.4000108@gmx.com> Hi All, I've been reading post after post today but can't seem to find exactly what I need. Goal: Rip a DVD and then create a single file for playing via dnla enabled components, from the resulting rip files, that has everything included, menu, all audio streams, video stream, subtitles AND has 100% of the quality as the DVD/VOB files. I originally wanted to create one single large VOB file, but read that technically VOBs should not be over 1Gb. Additionally I'm not sure if VOB supports menus and subtitles, so converting to another format that my TV supports is acceptable. If this is incorrect, please DO correct me! A large VOB is fine as my television supports VOBs. Smaller file size would be nice, but again, I want to maintain the original quality of the movie! As I understand it, generally the first VOB has the menus, i.e. VTS_07_0.VOB in the file list below, but I'm new to this and not completely sure. I did find this page http://www.videohelp.com/dvd#struct , which details a bit the structure of the DVD, but seems to leave a little out. Can ffmpeg even process the .BUP or .IFO files? Anyway, what I have tried is below. Any and all help appreciated! Thanks, Setup: Openbsd: 5.8 dvdbackup: 0.4.2 ffmpeg: fmpeg version git-N-72901-g15466db Copyright (c) 2000-2015 the FFmpeg developers built with clang version 3.5 (trunk) configuration: --enable-libx265 --enable-shared --arch=amd64 --cc=cc --disable-altivec --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-debug --disable-iconv --disable-indev=jack --disable-indev=oss --disable-loongson3 --disable-lzma --disable-mips32r5 --disable-mips64r6 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-msa --disable-neon --disable-outdev=oss --disable-outdev=sdl --disable-vfp --enable-avresample --enable-fontconfig --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-openssl --extra-cflags='-I/usr/local/include -I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' --mandir=/usr/local/man --optflags='-O2 -pipe -Wno-redundant-decls' I can upgrade if needed, if that will solve the issue. Steps: 1. rip a dvd a. dvdbackup -i /dev/cd0c -o /dvd_directory 2. Files created: a. VIDEO_TS.BUP VTS_01_0.BUP VTS_02_0.BUP VTS_03_0.BUP VTS_04_0.BUP VTS_05_0.BUP VTS_06_0.BUP VTS_07_0.BUP VTS_07_1.VOB VTS_07_4.VOB VTS_07_7.VOB VTS_08_1.VOB VIDEO_TS.IFO VTS_01_0.IFO VTS_02_0.IFO VTS_03_0.IFO VTS_04_0.IFO VTS_05_0.IFO VTS_06_0.IFO VTS_07_0.IFO VTS_07_2.VOB VTS_07_5.VOB VTS_08_0.BUP VIDEO_TS.VOB VTS_01_1.VOB VTS_02_1.VOB VTS_03_1.VOB VTS_04_1.VOB VTS_05_1.VOB VTS_06_1.VOB VTS_07_0.VOB VTS_07_3.VOB VTS_07_6.VOB VTS_08_0.IFO 3. try to use ffmpeg to achieve goal. a. ffmpeg -y -i concat:VTS_01_0.IFO\|VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB -analyzeduration 999M -map 0 -loglevel repeat+40 movie.vob ffmpeg version git-N-72901-g15466db Copyright (c) 2000-2015 the FFmpeg developers built with clang version 3.5 (trunk) configuration: --enable-libx265 --enable-shared --arch=amd64 --cc=cc --disable-altivec --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-debug --disable-iconv --disable-indev=jack --disable-indev=oss --disable-loongson3 --disable-lzma --disable-mips32r5 --disable-mips64r6 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-msa --disable-neon --disable-outdev=oss --disable-outdev=sdl --disable-vfp --enable-avresample --enable-fontconfig --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-openssl --extra-cflags='-I/usr/local/include -I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' --mandir=/usr/local/man --optflags='-O2 -pipe -Wno-redundant-decls' libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc 53. 3.100 / 53. 3.100 [mpeg @ 0x8520ac02000] max_analyze_duration 5000000 reached at 5004667 microseconds [mpeg @ 0x8520ac02000] Could not find codec parameters for stream 5 (Audio: ac3, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpeg, from 'concat:VTS_01_0.IFO|VTS_01_0.VOB|VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB': Duration: 00:00:06.66, start: 0.280633, bitrate: N/A Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, smpte170m), 720x480 [SAR 32:27 DAR 16:9], max. 9800 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle Stream #0:5[0x81]: Audio: ac3, 0 channels Data stream encoding not supported yet (only streamcopy) b. ffmpeg -y -i concat:VTS_01_0.IFO\|VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB -analyzeduration 999M -map 0 -loglevel repeat+40 -dn movie.vob ffmpeg version git-N-72901-g15466db Copyright (c) 2000-2015 the FFmpeg developers built with clang version 3.5 (trunk) configuration: --enable-libx265 --enable-shared --arch=amd64 --cc=cc --disable-altivec --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-debug --disable-iconv --disable-indev=jack --disable-indev=oss --disable-loongson3 --disable-lzma --disable-mips32r5 --disable-mips64r6 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-msa --disable-neon --disable-outdev=oss --disable-outdev=sdl --disable-vfp --enable-avresample --enable-fontconfig --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-openssl --extra-cflags='-I/usr/local/include -I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' --mandir=/usr/local/man --optflags='-O2 -pipe -Wno-redundant-decls' libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc 53. 3.100 / 53. 3.100 [mpeg @ 0x1426d3101800] max_analyze_duration 5000000 reached at 5004667 microseconds [mpeg @ 0x1426d3101800] Could not find codec parameters for stream 5 (Audio: ac3, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpeg, from 'concat:VTS_01_0.IFO|VTS_01_0.VOB|VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB': Duration: 00:00:06.66, start: 0.280633, bitrate: N/A Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, smpte170m), 720x480 [SAR 32:27 DAR 16:9], max. 9800 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle Stream #0:5[0x81]: Audio: ac3, 0 channels [graph 0 input from stream 0:1 @ 0x142666c06c00] w:720 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2 [graph 1 input from stream 0:2 @ 0x142693598a00] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3 [audio format for output stream 0:1 @ 0x142666c06800] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1' [auto-inserted resampler 0 @ 0x1426c142cd00] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz Output #0, svcd, to 'movie.vob': Stream #0:0: Video: mpeg2video, 1 reference frame, none, q=2-31, 128 kb/s, SAR 32:27 DAR 0:0, 29.97 fps Metadata: encoder : Lavc56.41.100 mpeg2video Stream #0:1: Audio: mp2, 0 channels, 128 kb/s Metadata: encoder : Lavc56.41.100 mp2 Stream #0:2: Subtitle: none, 128 kb/s Stream #0:3: Subtitle: none, 128 kb/s Stream #0:4: Audio: mp2, 0 channels, 128 kb/s Stream mapping: Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native)) Stream #0:2 -> #0:1 (ac3 (native) -> mp2 (native)) Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> ? (?)) Stream #0:4 -> #0:3 (dvd_subtitle (dvdsub) -> ? (?)) Stream #0:5 -> #0:4 (ac3 (native) -> mp2 (native)) Encoder (codec none) not found for output stream #0:2 c. ffmpeg -y -i concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB -analyzeduration 999M -map 0 -loglevel repeat+40 -dn movie.vob ffmpeg version git-N-72901-g15466db Copyright (c) 2000-2015 the FFmpeg developers built with clang version 3.5 (trunk) configuration: --enable-libx265 --enable-shared --arch=amd64 --cc=cc --disable-altivec --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-debug --disable-iconv --disable-indev=jack --disable-indev=oss --disable-loongson3 --disable-lzma --disable-mips32r5 --disable-mips64r6 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-msa --disable-neon --disable-outdev=oss --disable-outdev=sdl --disable-vfp --enable-avresample --enable-fontconfig --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-openssl --extra-cflags='-I/usr/local/include -I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' --mandir=/usr/local/man --optflags='-O2 -pipe -Wno-redundant-decls' libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc 53. 3.100 / 53. 3.100 [mpeg @ 0xd7782cac800] max_analyze_duration 5000000 reached at 5004667 microseconds [mpeg @ 0xd7782cac800] Could not find codec parameters for stream 5 (Audio: ac3, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpeg, from 'concat:VTS_01_0.VOB|VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB': Duration: 00:00:06.66, start: 0.280633, bitrate: N/A Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, smpte170m), 720x480 [SAR 32:27 DAR 16:9], max. 9800 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle Stream #0:5[0x81]: Audio: ac3, 0 channels [graph 0 input from stream 0:1 @ 0xd7839dfc600] w:720 h:480 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:32/27 sws_param:flags=2 [graph 1 input from stream 0:2 @ 0xd7838712d00] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3 [audio format for output stream 0:1 @ 0xd7769a8d100] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1' [auto-inserted resampler 0 @ 0xd7839dfce00] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz Output #0, svcd, to 'movie.vob': Stream #0:0: Video: mpeg2video, 1 reference frame, none, q=2-31, 128 kb/s, SAR 32:27 DAR 0:0, 29.97 fps Metadata: encoder : Lavc56.41.100 mpeg2video Stream #0:1: Audio: mp2, 0 channels, 128 kb/s Metadata: encoder : Lavc56.41.100 mp2 Stream #0:2: Subtitle: none, 128 kb/s Stream #0:3: Subtitle: none, 128 kb/s Stream #0:4: Audio: mp2, 0 channels, 128 kb/s Stream mapping: Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native)) Stream #0:2 -> #0:1 (ac3 (native) -> mp2 (native)) Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> ? (?)) Stream #0:4 -> #0:3 (dvd_subtitle (dvdsub) -> ? (?)) Stream #0:5 -> #0:4 (ac3 (native) -> mp2 (native)) Encoder (codec none) not found for output stream #0:2 d. ffmpeg -y -i concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB -analyzeduration 999M -map 0 -loglevel repeat+40 -dn -c:v copy -c:a copy movie.mp4 ffmpeg version git-N-72901-g15466db Copyright (c) 2000-2015 the FFmpeg developers built with clang version 3.5 (trunk) configuration: --enable-libx265 --enable-shared --arch=amd64 --cc=cc --disable-altivec --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-debug --disable-iconv --disable-indev=jack --disable-indev=oss --disable-loongson3 --disable-lzma --disable-mips32r5 --disable-mips64r6 --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --disable-msa --disable-neon --disable-outdev=oss --disable-outdev=sdl --disable-vfp --enable-avresample --enable-fontconfig --enable-gpl --enable-libass --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-libopus --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-openssl --extra-cflags='-I/usr/local/include -I/usr/X11R6/include' --extra-libs='-L/usr/local/lib -L/usr/X11R6/lib' --mandir=/usr/local/man --optflags='-O2 -pipe -Wno-redundant-decls' libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc 53. 3.100 / 53. 3.100 [mpeg @ 0x1efb285f6000] max_analyze_duration 5000000 reached at 5004667 microseconds [mpeg @ 0x1efb285f6000] Could not find codec parameters for stream 5 (Audio: ac3, 0 channels): unspecified sample format Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpeg, from 'concat:VTS_01_0.VOB|VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB|VTS_01_6.VOB': Duration: 00:00:06.66, start: 0.280633, bitrate: N/A Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, smpte170m), 720x480 [SAR 32:27 DAR 16:9], max. 9800 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x20]: Subtitle: dvd_subtitle Stream #0:4[0x21]: Subtitle: dvd_subtitle Stream #0:5[0x81]: Audio: ac3, 0 channels Output #0, mp4, to 'movie.mp4': Stream #0:0: Video: mpeg2video, 1 reference frame, yuv420p, 720x480 (0x0) [SAR 32:27 DAR 16:9], q=2-31, max. 9800 kb/s, 29.97 fps, 59.94 tbr, 90k tbc Stream #0:1: Audio: ac3, 48000 Hz, stereo, 192 kb/s Stream #0:2: Subtitle: none, 128 kb/s Stream #0:3: Subtitle: none, 128 kb/s Stream #0:4: Audio: none, 0 channels, 128 kb/s Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:2 -> #0:1 (copy) Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> ? (?)) Stream #0:4 -> #0:3 (dvd_subtitle (dvdsub) -> ? (?)) Stream #0:5 -> #0:4 (copy) Encoder (codec none) not found for output stream #0:2 From lou at lrcd.com Sun Oct 9 22:19:24 2016 From: lou at lrcd.com (Lou) Date: Sun, 09 Oct 2016 11:19:24 -0800 Subject: [FFmpeg-user] How to Cite FFMPEG in papers In-Reply-To: References: Message-ID: <1476040764.3634250.750498921.65D0C9B4@webmail.messagingengine.com> On Sun, Oct 9, 2016, at 04:10 AM, Free User wrote: > Hello, > Would you please advise on how we should cite ffmpeg in published > research > papers. It's been years since I've done this, but if I recall correctly you should refer to the writing style that you are following, such as "Chicago" or whatever is used in your field of study. It should provide guidelines for both text and reference citations. Your reference may look something like this: FFmpeg Developers. (2016). ffmpeg tool (Version be1d324) [Software]. Available from http://ffmpeg.org/ From barsnick at gmx.net Sun Oct 9 22:39:16 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 9 Oct 2016 21:39:16 +0200 Subject: [FFmpeg-user] Extracting images from swf using ffmpeg (version 8 swf vs version 10) In-Reply-To: References: <20161009183354.GA10352@sunshine.barsnick.net> Message-ID: <20161009193916.GB10352@sunshine.barsnick.net> On Sun, Oct 09, 2016 at 11:54:37 -0700, Ryder Wright wrote: > I'd be interested in learning more about how the full log can help debug > this issue. Here's the full output: In this case, not much (technically), but generally speaking: - We can see which version you are using. Often, issues have been solved and features been added "in the meantime". - We can see the compilation options. Sometimes some feature or library may be missing. - We can see what ffmpeg makes of the input file and its streams. - We can see what happened before (and sometimes after) the error excerpt you happened to post. > ffmpeg version 2.8.5 Copyright (c) 2000-2016 the FFmpeg developers You version is quite old. We usually recommend you to try the latest version of git master if possible, or at the very least the latest release. In this case, I don't see any significant diffences in swfdec, but what do I know. It may be related to the used codec. > [swf @ 0x7fb6b9804600] SWF compressed file detected > b.swf: could not find codec parameters ffmpeg bails out pretty early, I think it can't even see the streams. > I can share under separate cover if it is useful. Not to me, I'm not a developer, nor do I know much about SWF. Perhaps there's a different v10 sample to be found on the net which exposes the same symptoms, but I'm too lazy to search. > How does one specify an input format and an output format with the same > flag (-f)? Let me quote from the same manual: As a general rule, options are applied to the next specified file. Therefore, order is important, and you can have the same option on the command line multiple times. Each occurrence is then applied to the next input or output file. Exceptions from this rule are the global options (e.g. verbosity level), which should be specified first. Do not mix input and output files -- first specify all input files, then all output files. Also do not mix options which belong to different files. All options apply ONLY to the next input or output file and are reset between files. In other words: Before each input file, you can specify its input options, and before each output file its output options. That's how you can use "-f" both for your input and your output. > When would one need to specify a format of 'swf'? How about 'avm2'? I was > initially thinking maybe the difference between version 8 and version 10 > was that version 8 was using 'swf' and version 10 was using 'avm2'. ffmpeg has various methods of auto-detecting a format. One last resort is the filename extension. You can use "-f" if you want to help ffmpeg or override its decision. I wasn't even aware of avm2. Have you tried specifying "-f avm2" as input option to your v10 file? > Sincerely appreciation the response Moritz ... thanks! Thanks, Moritz From barsnick at gmx.net Sun Oct 9 22:40:45 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 9 Oct 2016 21:40:45 +0200 Subject: [FFmpeg-user] Extracting images from swf using ffmpeg (version 8 swf vs version 10) In-Reply-To: References: Message-ID: <20161009194045.GC10352@sunshine.barsnick.net> On Sun, Oct 09, 2016 at 11:41:46 -0700, Ryder Wright wrote: > From the size of the b-3.swf file, it is not storing any actual data. Good work. > % ffmpeg -i b-1.swf -f image2 -vcodec png -r 30 k%02d.png > Success! Unless it's a miscoded SWF file, we'd probably like to see ffmpeg be able to demux this file by itself. ;-) Moritz From barsnick at gmx.net Sun Oct 9 22:53:02 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 9 Oct 2016 21:53:02 +0200 Subject: [FFmpeg-user] combine dvd files with all info into single file In-Reply-To: <57F59894.4000108@gmx.com> References: <57F59894.4000108@gmx.com> Message-ID: <20161009195302.GD10352@sunshine.barsnick.net> Hi, On Wed, Oct 05, 2016 at 17:19:32 -0700, mymlact at gmx.com wrote: > I originally wanted to create one single large VOB file, but read that > technically VOBs should not be over 1Gb. Additionally I'm not sure if > VOB supports menus and subtitles, so converting to another format that > my TV supports is acceptable. Well, a DVD successfully stores menus ad subtitles in VOB files, so it should be possible. I do not know though whether ffmpeg is capable of correctly writing e.g. menus back to VOB files. I also don't know whether a newer version of ffmpeg would help, it's always worth a try. What I do know though: > b. ffmpeg -y -i > concat:VTS_01_0.IFO\|VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB > -analyzeduration 999M -map 0 -loglevel repeat+40 -dn movie.vob [...] > Stream mapping: > Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native)) > Stream #0:2 -> #0:1 (ac3 (native) -> mp2 (native)) > Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> ? (?)) > Stream #0:4 -> #0:3 (dvd_subtitle (dvdsub) -> ? (?)) > Stream #0:5 -> #0:4 (ac3 (native) -> mp2 (native)) > Encoder (codec none) not found for output stream #0:2 You should specify "-c copy". > c. ffmpeg -y -i > concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB > -analyzeduration 999M -map 0 -loglevel repeat+40 -dn movie.vob [...] > [mpeg @ 0xd7782cac800] Could not find codec parameters for stream 5 > (Audio: ac3, 0 channels): unspecified sample format Oops? > d. ffmpeg -y -i > concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB > -analyzeduration 999M -map 0 -loglevel repeat+40 -dn -c:v copy -c:a > copy movie.mp4 [...] > Stream mapping: > Stream #0:1 -> #0:0 (copy) > Stream #0:2 -> #0:1 (copy) > Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> ? (?)) > Stream #0:4 -> #0:3 (dvd_subtitle (dvdsub) -> ? (?)) > Stream #0:5 -> #0:4 (copy) > Encoder (codec none) not found for output stream #0:2 Here you did specify to copy, but only for video and audio. But the subtitle and data (menu?) streams are those which ffmpeg doesn't know how to convert. So either add "-c:s copy -c:d copy", or just use "-c copy". And you probably won't get menu streams (and certainly not dvd_subtitle tracks) into mp4 files. VOB seems sanest to try. Moritz From philip at turmel.org Sun Oct 9 23:36:49 2016 From: philip at turmel.org (Phil Turmel) Date: Sun, 9 Oct 2016 16:36:49 -0400 Subject: [FFmpeg-user] combine dvd files with all info into single file In-Reply-To: <57F59894.4000108@gmx.com> References: <57F59894.4000108@gmx.com> Message-ID: <77acb95f-7b16-1d65-a835-eb97abd4a9be@turmel.org> On 10/05/2016 08:19 PM, mymlact at gmx.com wrote: > Hi All, > > I've been reading post after post today but can't seem to find exactly > what I need. > > Goal: > Rip a DVD and then create a single file for playing via dnla enabled > components, from the resulting rip files, that has everything included, > menu, all audio streams, video stream, subtitles AND has 100% of the > quality as the DVD/VOB files. You can't. The VOB files don't hold the little bits of code that make the menus and special features work. That stuff is stored in the IFO files, with a bunch of sector references and lookups that have to match the DVD's physical layout. The closest thing to what you want is to make an ISO file with the appropriate content, mimicing a real DVD. Many playback engines will operate on such a file as if reading the original DVD. VLC and MythTV are both capable of handling all menu content and special features in ISO files. The challenge with modern DVDs is to get the content off the original DVD and into a filesystem so that you can construct an ISO. DVD makers "trap" the content so simple copying hits deliberate bad sectors all over the place, and only the path through the menus that a real user can see and pick will produce a working sector access pattern. Ripping software tries to pretend to be a user to figure out how to distinguish good sectors from bad, but there's some pretty tricky movie houses who are highly motivated to fake them out. For untrapped DVDs, dvdbackup and mkisofs are all you need. For trapped DVDs, those tools need more help. This is now off-topic for ffmpeg-user, but google should help. :-) Phil From Nomis101 at web.de Sun Oct 9 23:37:36 2016 From: Nomis101 at web.de (=?UTF-8?B?Tm9taXMxMDEg8J+QnQ==?=) Date: Sun, 9 Oct 2016 22:37:36 +0200 Subject: [FFmpeg-user] Configure does not find any dependencies anymore In-Reply-To: References: Message-ID: <6c954d18-10bd-8230-ac43-d7f0c0b5b907@web.de> I don't know what was happening, but I'm not able anymore to build ffmpeg. It was working nicely since a few weeks (I don't know what I have done to break it). I'm on Mac OS X 10.12. I've tried with the latest git version of ffmpeg. Normally I install any dependencies via Macports which is not a problem. Since a few weeks configure stops at the point: /$ ./configure --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libsmbclient --enable-libopus --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwavpack --disable-ffplay --enable-libx264 --enable-libx265 --enable-libxvid --enable-version3 --disable-indev=qtkit --disable-indev=x11grab_xcb --enable-swscale --enable-avfilter --enable-avresample --enable-lzma --enable-gnutls --enable-libfribidi --enable-vda --enable-videotoolbox --enable-yasm --enable-postproc --enable-nonfree --enable-libfdk-aac --enable-librtmp --enable-opencl --enable-vaapi --enable-openal --enable-libcdio --enable-libssh --enable-openssl --enable-pic --extra-cflags="-fno-builtin-memset -fstack-protector-strong -fwrapv -march=native -mtune=native -fvectorize -fslp-vectorize -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -mfpmath=sse" --extra-cxxflags="-fno-builtin-memset -fstack-protector-strong -fwrapv -march=native -mtune=native -fvectorize -fslp-vectorize -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -mfpmath=sse" --extra-ldflags="-fstack-protector-strong"// //ERROR: gnutls not found using pkg-config// // //If you think configure made a mistake, make sure you are using the latest// //version from Git. If the latest version fails, report the problem to the// //ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.// //Include the log file "config.log" produced by configure as this will help// //solve the problem./ But gnutls IS installed via Macports: $ which gnutls /opt/local/bin/gnutls If I remove --enable-gnutls it stops at ERROR: libass not found using pkg-config (which is installed as well, for sure) and so on and so on. First I removed Macports and installed the trunk version. This did not help. Than I cheched the PATH in my .profile file, this was correct. I restarted my computer, did not help. I reinstalled the Xcode developer and command line tools. This did not help. I really don't know what happened and what else I can do. From cleyfaye at gmail.com Sun Oct 9 23:49:58 2016 From: cleyfaye at gmail.com (Cley Faye) Date: Sun, 9 Oct 2016 22:49:58 +0200 Subject: [FFmpeg-user] Configure does not find any dependencies anymore In-Reply-To: <6c954d18-10bd-8230-ac43-d7f0c0b5b907@web.de> References: <6c954d18-10bd-8230-ac43-d7f0c0b5b907@web.de> Message-ID: 2016-10-09 22:37 GMT+02:00 Nomis101 🐝 : > //ERROR: gnutls not found using pkg-config// > // > //If you think configure made a mistake, make sure you are using the > latest// > //version from Git. If the latest version fails, report the problem to > the// > //ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on > irc.freenode.net.// > //Include the log file "config.log" produced by configure as this will > help// > //solve the problem./ > ​I believe you forgot to include the "config.log" file; it might contain useful informations. It would probably be interesting to also give the output of "pkg-config --list-all", since configure seems to use that. From list at xenhideout.nl Mon Oct 10 00:00:26 2016 From: list at xenhideout.nl (Xen) Date: Sun, 09 Oct 2016 23:00:26 +0200 Subject: [FFmpeg-user] tools for viewing frames and results In-Reply-To: <21ba6b8e-17f7-36c9-cf5b-58856143a7b5@sky.com> References: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> <21ba6b8e-17f7-36c9-cf5b-58856143a7b5@sky.com> Message-ID: <22a91aeb54e07b9a947b5e466be1dfcd@dds.nl> Sven C. Dack schreef op 09-10-2016 1:52: > Don't call the work of others "too worthless to exist". Your rudeness > is uncalled for. And that's denigrating and patronizing, but so you have it. I think it hardly can be considered "the work of others" or even "a work" in the light of things, because it was not inspired but compelled, but have it your way. That software has consistently failed to play anything I threw at it and has caused me more time than it ever rewarded me with, so I consider it... too worthless to exist yes. Maybe you shouldn't go patronizing someone as the first answer to a question you've been asked, or that you're trying to answer, with respect to the situation of it. But I still thank you for your answer. > VLC doesn't have to skip frames but drops them as a feature to hurry > up the playback. You'll find it in its many advanced options. If its > about viewing a video frame by frame then you can reconfigure the GUI > of VLC to include a button for it. You'll find a keyboard shortcut for > it, too. I know and I have tried it many times but it does not skip to the last frame consistently, for one thing. > My preferred player is mpv - simple, fast and yet powerful options. > You can watch a video frame by frame with , and . in single steps. > When you start it from the command line with --osd-fractions will it > show an exact time code down to milliseconds on the console. > > $ apt-get install mpv Well thank you. Now was that so hard to do? Yes, I can patronize as well :p. Seriously... Anyway, thanks for this information, I wish it could be just about the information instead of telling others what to do and what not to do and all of that. Regards. From sven.c.dack at sky.com Mon Oct 10 00:34:19 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Sun, 9 Oct 2016 22:34:19 +0100 Subject: [FFmpeg-user] tools for viewing frames and results In-Reply-To: <22a91aeb54e07b9a947b5e466be1dfcd@dds.nl> References: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> <21ba6b8e-17f7-36c9-cf5b-58856143a7b5@sky.com> <22a91aeb54e07b9a947b5e466be1dfcd@dds.nl> Message-ID: <9a240d71-d5c4-f520-e82d-674118c5a324@sky.com> On 09/10/16 22:00, Xen wrote: > ... I wish it could be just about the information instead of telling others > what to do and what not to do and all of that. It's called "biting the hand that feeds you." You're welcome. From kieran.o.leary at gmail.com Mon Oct 10 00:31:48 2016 From: kieran.o.leary at gmail.com (Kieran O Leary) Date: Sun, 9 Oct 2016 22:31:48 +0100 Subject: [FFmpeg-user] Adding Watermark to Video In-Reply-To: References: Message-ID: Hi, replies below: On Sunday, 9 October 2016, Al-Haseeb Jafar wrote: > I'm completely unfamiliar with ffmpeg (I just know its name). > On my video site phpvibe CMS is using the following ffmpeg command. > CMD 1: > {ffmpeg-cmd} -i {input} -vcodec libx264 -s {ffmpeg-vsize} -threads 4 > -movflags faststart {output}.mp4 > I want to add a functionality to this code of adding watermark to the top > right corner, padding 10 pixels right and top, while converting the video. > I found this command for this purpose. > CMD 2: > {ffmpeg-cmd} -i {input} -i watermark.png -filter_complex > "overlay=main_w-overlay_w-10:10" {output}.mp4 > Can you help me properly adding CMD 2 into CMD 1, plz? > I haven't tested this but it should work.. {ffmpeg-cmd} -i {input} -i /wherever/watermark/is/located/watermark.png -vcodec libx264 -s {ffmpeg-vsize} -threads 4 -movflags faststart -filter_complex "overlay=main_w-overlay_w-10:10" {output}.mp4 > > And where should be watermark.png? I mean in which directory? If you don't specify a path, ffmpeg will assume that's it's your current working directory. You can specify the full path, so instead of watermark.png, something like /home/user/Downloads/watermark.png, or wherever your watermark is located. > I'm ready to pay for this. There should be no need for this as you should be able to get support here, but if you wish to donate to the development of ffmpeg https://www.ffmpeg.org/donations.html -Kieran From mboufleur at gmail.com Mon Oct 10 05:48:27 2016 From: mboufleur at gmail.com (Marcelo Boufleur) Date: Sun, 9 Oct 2016 23:48:27 -0300 Subject: [FFmpeg-user] DeckLink Output Controls In-Reply-To: <5492491.aGnp3rceaL@subterfuge> References: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> <5492491.aGnp3rceaL@subterfuge> Message-ID: > > SDI is 20bit 48k audio only. There’s really no good reason for anything > else. > Technically SDI also supports 48048 and 47952 to allow for pull up/down, > but I > think that is done by manipulating the clock rather than explicitly > changing > the sample rate. SD-SDI PCM Audio is 20 bits, but it can also support 24 bits according to SMPTE 272M. Sampling rate can also range from 32Khz to 48Khz. For HD, there's also SMPTE 299M which mandates 24 bit audio, and also sampling rates range from 32Khz to 48Khz. You can also have 20 bit in HD (and also SD) in the form of non-audio PCM Data, using SMPTE 337M format (for Dolby-E and other compressed formats described in SMPTE 338M). From Nomis101 at web.de Mon Oct 10 20:57:10 2016 From: Nomis101 at web.de (=?UTF-8?B?Tm9taXMxMDEg8J+QnQ==?=) Date: Mon, 10 Oct 2016 19:57:10 +0200 Subject: [FFmpeg-user] Configure does not find any dependencies anymore In-Reply-To: References: <6c954d18-10bd-8230-ac43-d7f0c0b5b907@web.de> Message-ID: Am 09.10.16 um 22:49 schrieb Cley Faye: > 2016-10-09 22:37 GMT+02:00 Nomis101 🐝 : > >> //ERROR: gnutls not found using pkg-config// >> // >> //If you think configure made a mistake, make sure you are using the >> latest// >> //version from Git. If the latest version fails, report the problem to >> the// >> //ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on >> irc.freenode.net.// >> //Include the log file "config.log" produced by configure as this will >> help// >> //solve the problem./ >> > ​I believe you forgot to include the "config.log" file; it might contain > useful informations. > > It would probably be interesting to also give the output of "pkg-config > --list-all", since configure seems to use that. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". OK. Please find attached the config.log. The output of "pkg-config --list-all" is: $ pkg-config --list-all -bash: pkg-config: command not found -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log.zip Type: application/zip Size: 50690 bytes Desc: not available URL: From mikhailwas at gmail.com Mon Oct 10 22:12:48 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Mon, 10 Oct 2016 21:12:48 +0200 Subject: [FFmpeg-user] Selecting/dropping frames without re-encoding In-Reply-To: References: Message-ID: On 8 October 2016 at 00:31, Carl Eugen Hoyos wrote: > 2016-10-08 0:01 GMT+02:00 Mikhail V : >> BTW after that manipulations a fair question arizes: why >> ffmpeg does not support something like: >> "... -f image2 -i filelist.txt output" > > (This command tries to read a frame / imagefile called filelist.txt) > It does, it is called -f concat and is just an alternative of your > python script. > > Carl Eugen Hi again. Since you say that "-f concat" should work same as -f image2 to create video from images, probably you can pour some light on what I am doing wrong then. Note that ideally I need an MOV file because Sony Vegas cannot open MXF files for some reason so MOV container is preferred. So I have a file "concat.txt" in my case it holds following data: file 'frame0001' file 'frame0003' file 'frame0005' file 'frame0007' file 'frame0009' file 'frame0011' .... So it is simply a list of odd frames generated by my script. Now to create a MXF I use this command: $ffmpeg -f concat -r 25 -i concat.txt -vcodec copy out.mxf Which is probably not correct? but I don't know exact right command. The result seems correct BUT ffmpeg spits out errors on each frame (here is only last part of the output): .... [mxf @ 0000028f2461b200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 0 Last message repeated 62 times frame= 813 fps= 46 q=-1.0 size= 365042kB time=00:00:00.08 bitrate=37380251.6kbits/s [mxf @ 0000028f2461b200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 0 Last message repeated 140 times frame= 954 fps= 52 q=-1.0 size= 428351kB time=00:00:00.08 bitrate=43863093.2kbits/s [mxf @ 0000028f2461b200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 0 Last message repeated 138 times frame= 1093 fps= 58 q=-1.0 size= 490762kB time=00:00:00.08 bitrate=50253979.6kbits/s [mxf @ 0000028f2461b200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 0 Last message repeated 142 times frame= 1236 fps= 64 q=-1.0 size= 554969kB time=00:00:00.08 bitrate=56828776.4kbits/s [mxf @ 0000028f2461b200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 0 Last message repeated 142 times frame= 1379 fps= 70 q=-1.0 size= 619176kB time=00:00:00.08 bitrate=63403573.2kbits/s [mxf @ 0000028f2461b200] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 0 Last message repeated 120 times frame= 1500 fps= 74 q=-1.0 Lsize= 673506kB time=00:00:00.08 bitrate=68966967.7kbits/s speed=0.00395x video:672000kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.224039% As said the resulting file is correct, but what does these errors mean I am not sure. Anyway if I use -f image2 to generate a same video no errors appear - how is that? What is correct command then for concat if I am doing it wrong? Now the same command for mov container. MOV is also valid for DNxHD codec and actually is preferred in my case since MXF files cannot be opened by Sony Vegas. $ffmpeg -f concat -r 25 -i concat.txt -vcodec copy out.mxf And the output (last part of it, since it also spits out errors on each frame): [mov @ 0000014afd95b200] Non-monotonous DTS in output stream 0:0; previous: 1258, current: 0; changing to 1259. This may result in incorrect timestamps in the output file. [mov @ 0000014afd95b200] Non-monotonous DTS in output stream 0:0; previous: 1259, current: 512; changing to 1260. This may result in incorrect timestamps in the output file. [mov,mp4,m4a,3gp,3g2,mj2 @ 0000014aff2a0420] moov atom not found [concat @ 0000014afd956640] Impossible to open 'out.mov' concat.txt: Invalid data found when processing input frame= 750 fps= 43 q=-1.0 Lsize= 336002kB time=00:00:00.13 bitrate=19882772.1kbits/s speed=0.00788x video:336000kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000698% In this case it produces a file but it is _incorrect_ See FFPROBE for mov file - fps is nonsense: $ffprobe out.mov ffprobe version N-79107-g30d1213 Copyright (c) 2007-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 19.100 / 55. 19.100 libavcodec 57. 28.103 / 57. 28.103 libavformat 57. 29.100 / 57. 29.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 39.102 / 6. 39.102 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf57.29.100 Duration: 00:00:00.14, start: 0.000000, bitrate: 19802382 kb/s Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p10le(tv, bt709/unknown/unknown), 1280x720, 27939852 kb/s, 7613.01 fps, 12800 tbr, 12800 tbn, 12800 tbc (default) Metadata: handler_name : DataHandler So how would I do it with a file list and concat so it does not give me errors and produces correct MOV file? From cleyfaye at gmail.com Mon Oct 10 22:19:44 2016 From: cleyfaye at gmail.com (Cley Faye) Date: Mon, 10 Oct 2016 21:19:44 +0200 Subject: [FFmpeg-user] Configure does not find any dependencies anymore In-Reply-To: References: <6c954d18-10bd-8230-ac43-d7f0c0b5b907@web.de> Message-ID: 2016-10-10 19:57 GMT+02:00 Nomis101 🐝 : > OK. Please find attached the config.log. The output of "pkg-config > --list-all" is: > > $ pkg-config --list-all > -bash: pkg-config: command not found > ​Also in the config.log: > WARNING: pkg-config not found, library detection may fail.​ ​Others might be more knowledgeable about the specifics of mac dev. environments, but it seems that pkg-config is not available. There seem to be support for pkg-config in homebrew. From Nomis101 at web.de Mon Oct 10 22:29:37 2016 From: Nomis101 at web.de (=?UTF-8?B?Tm9taXMxMDEg8J+QnQ==?=) Date: Mon, 10 Oct 2016 21:29:37 +0200 Subject: [FFmpeg-user] Configure does not find any dependencies anymore In-Reply-To: References: <6c954d18-10bd-8230-ac43-d7f0c0b5b907@web.de> Message-ID: Am 10.10.16 um 21:19 schrieb Cley Faye: > ​Others might be more knowledgeable about the specifics of mac dev. > environments, but it seems that pkg-config is not available. > There seem to be support for pkg-config in homebrew. Yes, I also found this out just now. Installing pkg-config via Macports did the trick. Don't know at which point I lost my pkg-config. But now it works just fine. Thanks for your support! From al4321 at gmail.com Mon Oct 10 22:58:57 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Mon, 10 Oct 2016 21:58:57 +0200 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: <20161009020841.GA26351@sunshine.barsnick.net> References: <9BFA1BF5-BB12-4010-9673-8243E854C7EA@gmail.com> <20161009020841.GA26351@sunshine.barsnick.net> Message-ID: I have provided a new test case and a new evidence for this bug: https://trac.ffmpeg.org/ticket/5882 -- -Alexey Eromenko "Technologov" From al4321 at gmail.com Tue Oct 11 01:17:41 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 00:17:41 +0200 Subject: [FFmpeg-user] Encoding Apple-Quicktime compatible videos ? - Broken videos on Apple In-Reply-To: References: <9BFA1BF5-BB12-4010-9673-8243E854C7EA@gmail.com> <20161009020841.GA26351@sunshine.barsnick.net> Message-ID: Sadly ffmpeg developers don't care about bugs, and close bugs without any explanation. https://trac.ffmpeg.org/ticket/5882#comment:10 From al4321 at gmail.com Tue Oct 11 01:23:40 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 00:23:40 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it Message-ID: Hello all, Bug #5882; Certain x264 videos do not play on Apple decoders (Quicktime/iTunes/iPad) Today was closed by developer "cehoyos" without any explanation, and without any resolution. He treats all bugs like that ? Worse yet; he treats all people like bugs ? -- -Alexey Eromenko "Technologov" From sven.c.dack at sky.com Tue Oct 11 03:09:57 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Tue, 11 Oct 2016 01:09:57 +0100 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: Message-ID: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> On 10/10/16 23:23, Alexey Eromenko wrote: > Hello all, > > Bug #5882; Certain x264 videos do not play on Apple decoders > (Quicktime/iTunes/iPad) > > Today was closed by developer "cehoyos" without any explanation, and > without any resolution. > He treats all bugs like that ? Worse yet; he treats all people like bugs ? > > -- > -Alexey Eromenko "Technologov" > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". Hello, sorry you feel this way, but looking at your bug report do you seem to have a misunderstand regarding who is responsible for which bugs. You state that it's Apple's decoder that cannot play the videos. And at the same time do you state VLC does play them. VLC uses ffmpeg's libraries so it obviously works with ffmpeg, just not with Apple's decoder. Further more do you state that the videos were created with libx264, which if it was the source of your problem, is also not part of ffmpeg but only an external library and has its own project. In short, you have no case. You first need to accept that the problem is very likely with the Apple decoder. Just because you cannot find anyone at Apple to listen to your problem doesn't mean you can shove it onto ffmpeg. You have also reopened the bug report several times, which suggest a certain stubbornness in accepting these facts. You then have to provide evidence of this being an ffmpeg bug, and you have so far only provided evidence against it. Cehoyos's responses were also quite clear and not unfriendly at all, because he told you how to solve your problem. I suggest that you change your stance in this matter and stop acting like Cehoyos would owe you an apology. User problems are handled here on this maling list and not on the bug tracker. Or do you disagree? From al4321 at gmail.com Tue Oct 11 03:30:40 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 02:30:40 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> Message-ID: > Hello, > > sorry you feel this way, but looking at your bug report do you seem to have > a misunderstand regarding who is responsible for which bugs. You state that > it's Apple's decoder that cannot play the videos. And at the same time do > you state VLC does play them. VLC uses ffmpeg's libraries so it obviously > works with ffmpeg, just not with Apple's decoder. Further more do you state > that the videos were created with libx264, which if it was the source of > your problem, is also not part of ffmpeg but only an external library and > has its own project. In short, you have no case. > > You first need to accept that the problem is very likely with the Apple > decoder. Just because you cannot find anyone at Apple to listen to your > problem doesn't mean you can shove it onto ffmpeg. You have also reopened > the bug report several times, which suggest a certain stubbornness in > accepting these facts. You then have to provide evidence of this being an > ffmpeg bug, and you have so far only provided evidence against it. Cehoyos's > responses were also quite clear and not unfriendly at all, because he told > you how to solve your problem. > > I suggest that you change your stance in this matter and stop acting like > Cehoyos would owe you an apology. > > User problems are handled here on this maling list and not on the bug > tracker. Or do you disagree? > It well may be an Apple bug, but since I can't find anyone at Apple to fix it, I think fixing it in the encoder is way simpler, and it is the way to go. Especially because it's open-source and because Apple players are popular. Discovering after-the-fact that some of my videos are incompatible with Apple decoders is a no-no, and a total shock for me. And no documentation on such fundamental issues _AT ALL_. Even the workaround parameter he suggested is not documented either. Like I know for sure that a BMP file is a Bitmap and is displayed correctly every time, on all computers and operating systems, and MP3 file is an audio file, and is played back correctly every time, on all supported platforms, I expect the same from MP4 video file -- it must be played perfectly on all supported platforms, and since those poipular decoders are well-known, the encoder can target their limitations too. For ffmpeg developers fixing this bug maybe simple, just parsing the container tags properly, and yes, testing resulting MP4 files with the popular media players is super-critical; This means at least Windows (Windows Media Player and VLC), Android (Google Nexus and Samsung Galaxy) and Apple (iOS + Mac OS). Perhaps not for every minor release, but for major releases QA is a must-have. I can do some of the testing myself, being a QA guy, I'm capable of this task, but when there is a severe and critical issue, alarms must be sounded. It's my duty. (+I can add testing on Chromebook and Debian Linux and other platforms) -- -Alexey Eromenko "Technologov" From sven.c.dack at sky.com Tue Oct 11 04:21:05 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Tue, 11 Oct 2016 02:21:05 +0100 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> Message-ID: On 11/10/16 01:30, Alexey Eromenko wrote: > ... > It well may be an Apple bug, but since I can't find anyone at Apple to > fix it, I think fixing it in the encoder is way simpler, and it is the > way to go. Especially because it's open-source and because Apple > players are popular. So you're saying you can't do it yourself... Still, the only way for you to get features added to an open source project is by providing patches (which may still get rejected even when you provide patches). Alternatively can you ask for someone to do it for you and to offer a reward (meaning, you offer a job). My suggestion to you is to take Cehoyos' solution and to give it a try. Perhaps write a script using ffmpeg or ffprobe and see if you cannot detect the issue and fix it in a script. Only provide patches if you run into the problem regularly and when your solution doesn't break anything. From lingjiujianke at gmail.com Tue Oct 11 04:19:42 2016 From: lingjiujianke at gmail.com (Steven Liu) Date: Tue, 11 Oct 2016 09:19:42 +0800 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> Message-ID: 2016-10-11 8:30 GMT+08:00 Alexey Eromenko : > > Hello, > > > > sorry you feel this way, but looking at your bug report do you seem to > have > > a misunderstand regarding who is responsible for which bugs. You state > that > > it's Apple's decoder that cannot play the videos. And at the same time do > > you state VLC does play them. VLC uses ffmpeg's libraries so it obviously > > works with ffmpeg, just not with Apple's decoder. Further more do you > state > > that the videos were created with libx264, which if it was the source of > > your problem, is also not part of ffmpeg but only an external library and > > has its own project. In short, you have no case. > > > > You first need to accept that the problem is very likely with the Apple > > decoder. Just because you cannot find anyone at Apple to listen to your > > problem doesn't mean you can shove it onto ffmpeg. You have also reopened > > the bug report several times, which suggest a certain stubbornness in > > accepting these facts. You then have to provide evidence of this being an > > ffmpeg bug, and you have so far only provided evidence against it. > Cehoyos's > > responses were also quite clear and not unfriendly at all, because he > told > > you how to solve your problem. > > > > I suggest that you change your stance in this matter and stop acting like > > Cehoyos would owe you an apology. > > > > User problems are handled here on this maling list and not on the bug > > tracker. Or do you disagree? > > > > It well may be an Apple bug, but since I can't find anyone at Apple to > fix it, I think fixing it in the encoder is way simpler, and it is the > way to go. Especially because it's open-source and because Apple > players are popular. > > Discovering after-the-fact that some of my videos are incompatible > with Apple decoders is a no-no, and a total shock for me. And no > documentation on such fundamental issues _AT ALL_. Even the workaround > parameter he suggested is not documented either. > > Like I know for sure that a BMP file is a Bitmap and is displayed > correctly every time, on all computers and operating systems, and MP3 > file is an audio file, and is played back correctly every time, on all > supported platforms, I expect the same from MP4 video file -- it must > be played perfectly on all supported platforms, and since those > poipular decoders are well-known, the encoder can target their > limitations too. > > For ffmpeg developers fixing this bug maybe simple, just parsing the > container tags properly, and yes, testing resulting MP4 files with the > popular media players is super-critical; This means at least Windows > (Windows Media Player and VLC), Android (Google Nexus and Samsung > Galaxy) and Apple (iOS + Mac OS). Perhaps not for every minor release, > but for major releases QA is a must-have. > > I can do some of the testing myself, being a QA guy, I'm capable of > this task, but when there is a severe and critical issue, alarms must > be sounded. It's my duty. (+I can add testing on Chromebook and Debian > Linux and other platforms) > > -- > -Alexey Eromenko "Technologov" > Patch welcome. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From reuben.m at gmail.com Tue Oct 11 08:20:02 2016 From: reuben.m at gmail.com (Reuben Martin) Date: Tue, 11 Oct 2016 00:20:02 -0500 Subject: [FFmpeg-user] DeckLink Output Controls In-Reply-To: References: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> <5492491.aGnp3rceaL@subterfuge> Message-ID: <1607492.OjOgqLTZW0@subterfuge> On Sunday, October 9, 2016 11:48:27 PM CDT Marcelo Boufleur wrote: > > SDI is 20bit 48k audio only. There’s really no good reason for anything > > else. > > Technically SDI also supports 48048 and 47952 to allow for pull up/down, > > but I > > think that is done by manipulating the clock rather than explicitly > > changing > > the sample rate. > > SD-SDI PCM Audio is 20 bits, but it can also support 24 bits according to > SMPTE 272M. > Sampling rate can also range from 32Khz to 48Khz. > > For HD, there's also SMPTE 299M which mandates 24 bit audio, and also > sampling rates range from 32Khz to 48Khz. Although that is in the official spec, I have never seen any SDI equipment use anything other than 48k. Doesn’t mean any doesn’t exist, but if so it’s not very common. I’m not sure there is a difference between 20 and 24 bit audio (in reguards to the bit allocation within the signal) since 20 bit is usually padded inside of a 24 or 32 bit word size. > > You can also have 20 bit in HD (and also SD) in the form of non-audio PCM > Data, using SMPTE 337M format (for Dolby-E and other compressed formats > described in SMPTE 338M). From erik.dobberkau at gmail.com Tue Oct 11 08:41:04 2016 From: erik.dobberkau at gmail.com (Erik Dobberkau) Date: Tue, 11 Oct 2016 07:41:04 +0200 Subject: [FFmpeg-user] DeckLink Output Controls In-Reply-To: <1607492.OjOgqLTZW0@subterfuge> References: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> <5492491.aGnp3rceaL@subterfuge> <1607492.OjOgqLTZW0@subterfuge> Message-ID: Am Dienstag, 11. Oktober 2016 schrieb Reuben Martin : > > > I’m not sure there is a difference between 20 and 24 bit audio (in > reguards to > the bit allocation within the signal) since 20 bit is usually padded > inside of > a 24 or 32 bit word size. > > Both SD and HD SDI video use AES-3 audio for PCM streaming, which again is 20bits by default, but one may occupy the 4 user bits in each frame to allow for 24bits PCM word length. So yes, the bit allocation is the same with or without the nibble of the four LSB. From ceffmpeg at gmail.com Tue Oct 11 09:55:01 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Tue, 11 Oct 2016 08:55:01 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> Message-ID: Hi! 2016-10-11 2:09 GMT+02:00 Sven C. Dack : > sorry you feel this way, but looking at your bug report do you seem > to have a misunderstand regarding who is responsible for which bugs. The main point is that there is no "bug" (except maybe in VirtualDubMod): Apple specifies how mov works, another standard defines valid isom files. You cannot really expect QT to support isom when this is about the few differences in the specifications. And if you need compatibility with QT (and a few media players that support mov anyway) you shouldn't choose isom as your container. > You state that it's Apple's decoder that cannot play the videos. More important is - imo - that the videos play fine with WMP which primarily implements isom. > And at the same time do you state VLC does play them. VLC uses > ffmpeg's libraries vlc by default uses its own demuxer (which - just as FFmpeg - supports both isom and mov). > so it obviously works with ffmpeg, just not with Apple's decoder. > You first need to accept that the problem is very likely with the > Apple decoder. The problem is that the input video has a frame rate of 10000000 / 417083 which most likely wasn't intended, it should be 24000/1001. Requesting that FFmpeg should change the frame rate without user interaction doesn't seem like a good idea to me. [...] > User problems are handled here on this maling list and not on > the bug tracker. This is an extremely important point. >From FFmpeg's pov, there must be a difference between the user mailing list (where you may report bugs) and the bug tracker (where no user questions should be asked). Carl Eugen From al4321 at gmail.com Tue Oct 11 10:31:21 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 09:31:21 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> Message-ID: I have a strong belief, that produced MP4 files should be played on all popular players, and any potential issues must be documented. Additionally ffmpeg should provide a BIG WARNING that a resulting file will not be playable on Apple decoders, and offer to fix it automatically. -Alexey From sven.c.dack at sky.com Tue Oct 11 12:19:55 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Tue, 11 Oct 2016 10:19:55 +0100 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> Message-ID: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> On 11/10/16 08:31, Alexey Eromenko wrote: > I have a strong belief, that produced MP4 files should be played on > all popular players, and any potential issues must be documented. > > Additionally ffmpeg should provide a BIG WARNING that a resulting file > will not be playable on Apple decoders, and offer to fix it > automatically. > > -Alexey No. This isn't about what you belief. Before you can expect ffmpeg or all popular players to play your files do you have to provide the correct input files and options to ffmpeg. That's a fact and it's how ffmpeg works. Once you get this right will ffmpeg be your best friend and will produce the files you need, but not before then. From nikhil.r at geazy.com Tue Oct 11 12:36:31 2016 From: nikhil.r at geazy.com (qwertynik) Date: Tue, 11 Oct 2016 02:36:31 -0700 (PDT) Subject: [FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg Message-ID: <1476178590998-4677799.post@n4.nabble.com> Note: I have a few days ( 3-4 ) of experience with using FFmpeg, and I do not fully understand the commands I mention here ( most of them are from stack overflow forums - I do not have those links bookmarked ). I wanted to generate a 30-second video, with 16:9 aspect ratio, from a set of images and an audio with blend + zoom and pan effect. Started this by just generating slide show of images from the video **Slideshow of images** ffmpeg -framerate 1/4 -start_number 1 -i 164470_%d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p -vf scale=16:9 out.mp4 Then, tried adding an audio to the video, and this is the command I used. ffmpeg -framerate 1/4 -start_number 1 -i 164470_%d.jpg -i audio.wav -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k -pix_fmt yuv420p -shortest outWithAudioNew.mp4 With this command, I was able to create the video with zoom and pan effects. It did not cycle through the images, though. ffmpeg \ -framerate 1/4 -start_number 1 -i 164470_%d.jpg \ -vf "zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0015))':d=125" \ -c:v libx264 -t 30 -s "800x450" outWithZoom.mp4 **To add in a blend effect I used this command:** ffmpeg \ -loop 1 -t 5 -i 164470_2.jpg \ -loop 1 -t 5 -i 164470_3.jpg \ -loop 1 -t 5 -i 164470_4.jpg \ -loop 1 -t 5 -i 164470_5.jpg \ -filter_complex \ "[1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b1v]; \ [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b2v]; \ [3:v][2:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b3v]; \ [0:v][b1v][1:v][b2v][2:v][b3v][3:v]concat=n=7,format=yuv420p[v]" \ -map "[v]" -aspect 16:9 outWithFasterBlend.mp4 This particular post is from where I got the command to create a video with blend effect. http://superuser.com/questions/833232/create-video-with-5-images-with-fadein-out-effect-in-ffmpeg **Blend with zoom** ffmpeg \ -loop 1 -t 5 -i 164470_2.jpg \ -loop 1 -t 5 -i 164470_3.jpg \ -loop 1 -t 5 -i 164470_5.jpg \ -filter_complex \ "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v0]; \ [1:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v1]; \ [2:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v2]; \ [1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b1v]; \ [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b2v]; \ [v0][b1v][v1][b2v][v2]concat=n=5,format=yuv420p[v]" \ -map "[v]" -aspect 16:9 outWithBlendAndZoom.mp4 This command did not work out, I am not sure why. Here is the output: ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg developers built on Oct 31 2014 05:16:04 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 89.100 / 52. 89.100 libavcodec 55. 66.101 / 55. 66.101 libavformat 55. 43.100 / 55. 43.100 libavdevice 55. 13.101 / 55. 13.101 libavfilter 4. 8.100 / 4. 8.100 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc 52. 3.100 / 52. 3.100 Input #0, image2, from '164470_2.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 tbr, 25 tbn, 25 tbc Input #1, image2, from '164470_3.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #1:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 tbr, 25 tbn, 25 tbc Input #2, image2, from '164470_5.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #2:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 tbr, 25 tbn, 25 tbc File 'outWithBlendAndZoom.mp4' already exists. Overwrite ? [y/N] y [swscaler @ 0xba66100] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0xbaa23a0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0xbac4680] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0xbae6960] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0xbb07260] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0xbb2af20] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0xbb4d200] deprecated pixel format used, make sure you did set range correctly [Parsed_concat_5 @ 0xba8e060] Input link in1:v0 parameters (size 1600x1200, SAR 0:1) do not match the corresponding output link in0:v0 parameters (1280x720, SAR 0:1) [Parsed_concat_5 @ 0xba8e060] Failed to configure output pad on Parsed_concat_5 So now, I want to be able to do all of this in one command. Summarizing what I need in the video: 1. 30-second video with blend and zoom + pan effect. 2. Audio 3. And each image in the video must get an equal amount of time. If 5 images, then each image must last for about 6 seconds. 4. The aspect ratio of the video should be 16:9. Not all the images I use have the same resolution, can FFmpeg work with such images? Or I need to work on those images to have the same resolution With my current understanding, I know what a 'filtergraph', 'filterchain' and a 'filter' is. But I do not fully understand what each filter argument does. Similar question has been posted on SuperUser, http://superuser.com/questions/1131702/create-a-video-using-images-and-audio-with-blend-and-zoom-filters-using-ffmpeg I appreciate your efforts in trying to fix this problem. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Create-a-video-using-images-and-audio-with-blend-and-zoom-filters-using-FFmpeg-tp4677799.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mikhailwas at gmail.com Tue Oct 11 15:24:18 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Tue, 11 Oct 2016 14:24:18 +0200 Subject: [FFmpeg-user] tools for viewing frames and results In-Reply-To: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> References: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> Message-ID: On 10/9/2016 12:24 AM, Xen wrote: > Is there any way in Linux to obtain an accurate frame/time number > through a GUI that can be used with ffmpeg? > > I know Avidemux hardly works at all, VLC will not reliably show frames. > > Pitivi is not an option, I haven't tried Kdenlive because it crashed > the first time I used it. > > Haven't attempted OpenShot or Cinerella and "DragonPlayer" is too > worthless to exist. > > What is a good tool to view results after you've created a video? > Because VLC closes its window and constantly resizes stuff it is not > very suitable. > > GMplayer in Debian doesn't work. (Kubuntu). > I suppose you just want a decent player with frame-by-frame navigation. I use MPC-HC player (https://mpc-hc.org/ ). It is much better than VLC for this purpose, you can navigate frame by frame and show time with milliseconds, and even set custom keyboard shortcuts. If you want to see exact frame number I don't think there is such a player. From mikhailwas at gmail.com Tue Oct 11 15:28:02 2016 From: mikhailwas at gmail.com (Mikhail V) Date: Tue, 11 Oct 2016 14:28:02 +0200 Subject: [FFmpeg-user] tools for viewing frames and results In-Reply-To: References: <3fc3ad7c97ea5d80e37a46fdd68520eb@dds.nl> Message-ID: <9148fdec-c76a-b50d-895b-55051229c9a5@gmail.com> On 10/11/2016 2:24 PM, Mikhail V wrote: > On 10/9/2016 12:24 AM, Xen wrote: >> Is there any way in Linux to obtain an accurate frame/time number >> through a GUI that can be used with ffmpeg? >> >> I know Avidemux hardly works at all, VLC will not reliably show frames. >> >> Pitivi is not an option, I haven't tried Kdenlive because it crashed >> the first time I used it. >> >> Haven't attempted OpenShot or Cinerella and "DragonPlayer" is too >> worthless to exist. >> >> What is a good tool to view results after you've created a video? >> Because VLC closes its window and constantly resizes stuff it is not >> very suitable. >> >> GMplayer in Debian doesn't work. (Kubuntu). >> > I suppose you just want a decent player with frame-by-frame navigation. > I use MPC-HC player (https://mpc-hc.org/ ). > It is much better than VLC for this purpose, you can navigate > frame by frame and show time with milliseconds, and even set custom > keyboard shortcuts. If you want to see exact frame number I don't think > there is such a player. > > Sorry, didn't know this Windows only player, just seen it on their site. From al4321 at gmail.com Tue Oct 11 16:13:04 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 15:13:04 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries Message-ID: Hi all, I have a wierd issue. I have self-compiled ffmpeg-git on Debian Linux 9, but it keeps using system libararies for avcodec, avformat, ... and everything else. Basically my code change do not reflect in binary even when run locally like $ ./ffmpeg and even after install to : /usr/local/bin/ffmpeg How do you fight this problem ? -- -Alexey Eromenko "Technologov" From h.reindl at thelounge.net Tue Oct 11 16:24:42 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 11 Oct 2016 15:24:42 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: References: Message-ID: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> Am 11.10.2016 um 15:13 schrieb Alexey Eromenko: > I have a wierd issue. > I have self-compiled ffmpeg-git on Debian Linux 9, but it keeps using > system libararies for avcodec, avformat, ... and everything else. > > Basically my code change do not reflect in binary even when run > locally like $ ./ffmpeg > and even after install to : /usr/local/bin/ffmpeg > > How do you fight this problem? you did not mention and hence nobody knows how did you configure, build and install it From al4321 at gmail.com Tue Oct 11 16:40:26 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 15:40:26 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> Message-ID: I have downloaded ffmpeg-git to $HOME alexey at deb9ws:~/ffmpeg$ pwd /home/alexey/ffmpeg alexey at deb9ws:~/ffmpeg$ ./ffmpeg -version ffmpeg version N-81947-gc45ba26-3 Copyright (c) 2000-2016 the FFmpeg developers Plus I have Debian's version of ffmpeg installed, for reference (it cannot be removed, since Debian's KDE depends on it). Starting "ffmpeg" locally instantly gives me library warnings, and it doesn't use my code at all ===================================================== alexey at deb9ws:~/ffmpeg$ ./ffmpeg -y -i /mnt/E/Video-MPEG4-AVC-test/Pocahontas2.avi -map 0 -b:v 800k -pix_fmt yuv420p -to 00:08:00 -vcodec libx264 -ac 2 -b:a 128k /mnt/E/Video-MPEG4-AVC-test/Pocahontas2.mov ffmpeg version N-81947-gc45ba26-3 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.1.1 (Debian 6.1.1-11) 20160802 configuration: --enable-gpl --extra-version=3 --enable-libx264 --enable-libvorbis --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libx265 WARNING: library configuration mismatch avutil configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avcodec configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avformat configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avdevice configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avfilter configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 swscale configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 swresample configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 postproc configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, avi, from '/mnt/E/Video-MPEG4-AVC-test/Pocahontas2.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2542/release) title : Pokahontas.2.Puteshestvie.V.Novyj.Mir.1998.DUAL.BDRip.XviD.AC3.-HELLYWOOD artist : Gummy Duration: 01:13:09.84, start: 0.000000, bitrate: 2841 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 704x400 [SAR 1:1 DAR 44:25], 1930 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side), fltp, 448 kb/s [libx264 @ 0x1f49760] using SAR=1/1 [libx264 @ 0x1f49760] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x1f49760] profile High, level 3.0 [libx264 @ 0x1f49760] 264 - core 148 r2708 86b7198 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mov @ 0x1f34ce0] WARNING codec timebase is very high. If duration is too long, file may not be playable by quicktime. Specify a shorter timebase or choose different container. Output #0, mov, to '/mnt/E/Video-MPEG4-AVC-test/Pocahontas2.mov': Metadata: artist : Gummy title : Pokahontas.2.Puteshestvie.V.Novyj.Mir.1998.DUAL.BDRip.XviD.AC3.-HELLYWOOD encoder : Lavf57.51.103 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 704x400 [SAR 1:1 DAR 44:25], q=-1--1, 800 kb/s, 23.98 fps, 10000k tbn, 23.98 tbc Metadata: encoder : Lavc57.61.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/800000 buffer size: 0 vbv_delay: -1 Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc57.61.100 aac Stream #0:2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc57.61.100 aac Stream mapping: Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Stream #0:2 -> #0:2 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help ============== This "WARNING codec timebase is very high" message was modified by my code, yet executed old code. Basically it executed a system library -- libavformat from Debian, rather than my self-compiled code. Plus I have deleted everything from /usr/local/lib/* and /usr/local/bin/* Any ideas ? -Alexey From h.reindl at thelounge.net Tue Oct 11 17:02:13 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 11 Oct 2016 16:02:13 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> Message-ID: <5f013ec5-fd85-8d35-bdbc-657fc9a6315d@thelounge.net> Am 11.10.2016 um 15:40 schrieb Alexey Eromenko: > I have downloaded ffmpeg-git to $HOME where you download soemthing don't matter where you install it do (make install) try "--enable-static --disable-shared" and honestly your amount of "--enable" switches is pervert - clean it up and don't list everything you can find without proper understanding what you are doing and hence i have not the intention to start digging around in that output > alexey at deb9ws:~/ffmpeg$ pwd > /home/alexey/ffmpeg > alexey at deb9ws:~/ffmpeg$ ./ffmpeg -version > ffmpeg version N-81947-gc45ba26-3 Copyright (c) 2000-2016 the FFmpeg developers > > Plus I have Debian's version of ffmpeg installed, for reference (it > cannot be removed, since Debian's KDE depends on it). > > > Starting "ffmpeg" locally instantly gives me library warnings, and it > doesn't use my code at all > ===================================================== > alexey at deb9ws:~/ffmpeg$ ./ffmpeg -y -i > /mnt/E/Video-MPEG4-AVC-test/Pocahontas2.avi -map 0 -b:v 800k -pix_fmt > yuv420p -to 00:08:00 -vcodec libx264 -ac 2 -b:a 128k > /mnt/E/Video-MPEG4-AVC-test/Pocahontas2.mov > ffmpeg version N-81947-gc45ba26-3 Copyright (c) 2000-2016 the FFmpeg developers > built with gcc 6.1.1 (Debian 6.1.1-11) 20160802 > configuration: --enable-gpl --extra-version=3 --enable-libx264 > --enable-libvorbis --enable-libvpx --enable-libmp3lame > --enable-libopus --enable-libx265 > WARNING: library configuration mismatch > avutil configuration: --extra-version=1 --toolchain=hardened > --libdir=/usr/lib/x86_64-linux-gnu > --incdir=/usr/include/x86_64-linux-gnu From barsnick at gmx.net Tue Oct 11 17:19:11 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 11 Oct 2016 16:19:11 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> Message-ID: <20161011141911.GE1186@sunshine.barsnick.net> On Tue, Oct 11, 2016 at 15:40:26 +0200, Alexey Eromenko wrote: > Plus I have Debian's version of ffmpeg installed, for reference (it > cannot be removed, since Debian's KDE depends on it). If you don't have anything except the included ff* tools (ffmpeg, ffplay, ffserver) which depends on the self-build ffmpeg libraries, why not just build statically? Then the "linker" (ambiguous word, sorry) is run at compile time, and correctly. Just drop "--enable-shared" from your configure line. Otherwise you need to run something like $ LD_LIBRARY_PATH=.:./libavdevice:./libavformat:./libavfilter:./libavcodec:./libswscale:./libswresample:./libavutil ./ffmpeg I think ffmpeg doesn't provide a wrapper this. (Some autoconf projects do, e.g. to enable "make test".) (We could take this even further, by adding an ELF RUNPATH/RPATH to your binaries. Not something to ever be done in general BTW.) Moritz From barsnick at gmx.net Tue Oct 11 17:20:13 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 11 Oct 2016 16:20:13 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: <5f013ec5-fd85-8d35-bdbc-657fc9a6315d@thelounge.net> References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> <5f013ec5-fd85-8d35-bdbc-657fc9a6315d@thelounge.net> Message-ID: <20161011142013.GF1186@sunshine.barsnick.net> On Tue, Oct 11, 2016 at 16:02:13 +0200, Reindl Harald wrote: > and honestly your amount of "--enable" switches is pervert - clean it > up and don't list everything you can find without proper > understanding what you are doing and hence i have not the intention > to start digging around in that output I *think* he just copied Debian's switches. ;-) Moritz From al4321 at gmail.com Tue Oct 11 17:24:01 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 16:24:01 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: <20161011141911.GE1186@sunshine.barsnick.net> References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> <20161011141911.GE1186@sunshine.barsnick.net> Message-ID: I have done as suggested, but problem was NOT FIXED. alexey at deb9ws:~/ffmpeg$ ./configure --enable-gpl --extra-version=4 --enable-libx264 --enable-libx265 --enable-static --disable-shared $ make $ ./ffmpeg ... returns me the WARNING from system avformat library, rather than custom. Any other options ? From barsnick at gmx.net Tue Oct 11 17:28:53 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Tue, 11 Oct 2016 16:28:53 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> <20161011141911.GE1186@sunshine.barsnick.net> Message-ID: <20161011142853.GI1186@sunshine.barsnick.net> On Tue, Oct 11, 2016 at 16:24:01 +0200, Alexey Eromenko wrote: > $ make > $ ./ffmpeg First: $ make clean Moritz From ceffmpeg at gmail.com Tue Oct 11 17:34:59 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Tue, 11 Oct 2016 16:34:59 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: <20161011142853.GI1186@sunshine.barsnick.net> References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> <20161011141911.GE1186@sunshine.barsnick.net> <20161011142853.GI1186@sunshine.barsnick.net> Message-ID: > Am 11.10.2016 um 16:28 schrieb Moritz Barsnick : > >> On Tue, Oct 11, 2016 at 16:24:01 +0200, Alexey Eromenko wrote: >> $ make >> $ ./ffmpeg > > First: > $ make clean +1, this should solve the issue. Carl Eugen From mboufleur at gmail.com Tue Oct 11 17:37:38 2016 From: mboufleur at gmail.com (Marcelo Boufleur) Date: Tue, 11 Oct 2016 11:37:38 -0300 Subject: [FFmpeg-user] DeckLink Output Controls In-Reply-To: <1607492.OjOgqLTZW0@subterfuge> References: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> <5492491.aGnp3rceaL@subterfuge> <1607492.OjOgqLTZW0@subterfuge> Message-ID: > > Although that is in the official spec, I have never seen any SDI equipment > use > anything other than 48k. Doesn’t mean any doesn’t exist, but if so it’s not > very common. > I agree. I have seen some SDI converters and embedders/de-embedders working with 32Khz, 44.1Khz and 48Khz, but so far I haven't seen any real world practical situation where I would need sampling frequencies other than 48Khz (which does not mean there aren't any). It seens newer versions of SMPTE standards (mainly 424-M and 425-M) make room for additional sampling frequencies such as 88.2Khz and 96Khz, (and also add more channels - 32 if I recall) but I am not sure. Also, the current API from Decklink (as well as the card itself) would also have to support the above newer standards. From al4321 at gmail.com Tue Oct 11 17:52:19 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Tue, 11 Oct 2016 16:52:19 +0200 Subject: [FFmpeg-user] Self-Compiled "ffmpeg" still uses system libraries In-Reply-To: References: <5b3123a7-1490-59c3-24b2-1fb4c824042f@thelounge.net> <20161011141911.GE1186@sunshine.barsnick.net> <20161011142853.GI1186@sunshine.barsnick.net> Message-ID: I did: $ make clean Yeah, finally it works, Big Thanks ! > I *think* he just copied Debian's switches. ;-) Indeed, initially I just copied Debian's switches. But now I removed all the extras. So, back to my patch. Will test it now. I want to auto-fix timebase on both MP4 and MOV containers. From cvilad at gmail.com Wed Oct 12 00:25:58 2016 From: cvilad at gmail.com (Carles Vila) Date: Tue, 11 Oct 2016 23:25:58 +0200 Subject: [FFmpeg-user] framerate conversion with sync audio Message-ID: Hi, I'm trying to perform framerate conversion of a video, from 24fps to 25fps to be precise. The source is mov, ProRes with multichannel audio at 48kHz. It is mandatory for my application to preserve the integrity of all frames, i.e. no frame-interpolation or duplication should occur. In other words, just the playback speed should be increased from 24 to 25, resulting in a video of slightly shorter duration. I've been partially successful so far using the command ffmpeg -r 25 -i -r 25 -c:v prores -profile:v 3 -c:a pcm_s24le This comand produces a good video, shorter than the original, but the problem is with audio. As you can imagine, the audio drifts out of sync because it has no knowledge of the video framerate conversion. My solution now is to process the audio externally, in an audio editor. I must apply a sample rate conversion, first forcing the sample rate metadata to 50.000 Hz (48.000 *(25/24)) and then resampling at 48.000 Hz This shortens the audio by the same amount as the video and can be merged to it. Is there any way to perform this audio processing within ffmpeg? Thanks! ffmpeg -r 25 -i input.mov -r 25 -c:v prores -profile:v 3 -c:a pcm_s24le output_25fps.mov ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers built with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/2.7.2_1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus --enable-libquvi --enable-libx265 --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.2_1/include/openjpeg-1.5 ' --enable-nonfree --enable-vda libavutil 54. 27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56. 36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101 / 5. 16.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1. 2.100 libpostproc 53. 3.100 / 53. 3.100 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Guessed Channel Layout for Input Stream #0.4 : mono Guessed Channel Layout for Input Stream #0.5 : mono Guessed Channel Layout for Input Stream #0.6 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2016-10-11 12:30:25 Duration: 00:01:49.04, start: 0.000000, bitrate: 150503 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709), 1920x1080, 143548 kb/s, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler encoder : Apple ProRes 422 HQ timecode : 00:00:00:00 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler Stream #0:2(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler Stream #0:3(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler Stream #0:4(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler Stream #0:5(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler Stream #0:6(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler Stream #0:7(eng): Data: none (tmcd / 0x64636D74) (default) Metadata: creation_time : 2016-10-11 12:32:09 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 File 'output_25fps.mov' already exists. Overwrite ? [y/N] y Output #0, mov, to 'output_25fps.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf56.36.100 Stream #0:0(eng): Video: prores (apch) (apch / 0x68637061), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 encoder : Lavc56.41.100 prores Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, mono, s32 (24 bit), 1152 kb/s (default) Metadata: creation_time : 2016-10-11 12:30:25 handler_name : Apple Alias Data Handler encoder : Lavc56.41.100 pcm_s24le Stream mapping: Stream #0:0 -> #0:0 (prores (native) -> prores (native)) Stream #0:1 -> #0:1 (pcm_s24le (native) -> pcm_s24le (native)) Press [q] to stop, [?] for help frame= 2617 fps= 51 q=0.0 Lsize= 2132252kB time=00:01:49.04 bitrate=160190.2kbits/s video:2116877kB audio:15334kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001927% From steveboyer85 at gmail.com Wed Oct 12 01:00:50 2016 From: steveboyer85 at gmail.com (Steve Boyer) Date: Tue, 11 Oct 2016 17:00:50 -0500 Subject: [FFmpeg-user] framerate conversion with sync audio In-Reply-To: References: Message-ID: On Tue, Oct 11, 2016 at 4:25 PM, Carles Vila wrote: > Hi, I'm trying to perform framerate conversion of a video, from 24fps to > 25fps to be precise. > The source is mov, ProRes with multichannel audio at 48kHz. > It is mandatory for my application to preserve the integrity of all frames, > i.e. no frame-interpolation or duplication should occur. > In other words, just the playback speed should be increased from 24 to 25, > resulting in a video of slightly shorter duration. > I've been partially successful so far using the command > > ffmpeg -r 25 -i -r 25 -c:v prores -profile:v 3 -c:a > pcm_s24le > > This comand produces a good video, shorter than the original, but the > problem is with audio. As you can imagine, the audio drifts out of sync > because it has no knowledge of the video framerate conversion. > My solution now is to process the audio externally, in an audio editor. I > must apply a sample rate conversion, first forcing the sample rate metadata > to 50.000 Hz (48.000 *(25/24)) and then resampling at 48.000 Hz > This shortens the audio by the same amount as the video and can be merged > to it. > Is there any way to perform this audio processing within ffmpeg? > Thanks! Have you tried experimenting with the audio filter "atempo"? I'm guessing here, but try: ffmpeg -i ... -af atempo=0.96 (24/25 = 0.96) ~Steve From al4321 at gmail.com Wed Oct 12 01:42:16 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Wed, 12 Oct 2016 00:42:16 +0200 Subject: [FFmpeg-user] Why FFmpeg provides it's own decoder, but relies on 3rd party encoders? Message-ID: The important encoders I use myself are libmp3lame, libvpx, libx264, libx265 and more... Except for AAC audio codec, everything else uses 3rd party encoders, but decoders for ffmpeg are built-in, right ? Why so ? Because encoders improve faster than decoders ? Or because encoders are more buggy, so you prefer to update them more frequently ? Just wanna know a bit of background about political and/or technical design decision of times past. -- -Alexey Eromenko "Technologov" From sven.c.dack at sky.com Wed Oct 12 02:22:09 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Wed, 12 Oct 2016 00:22:09 +0100 Subject: [FFmpeg-user] Why FFmpeg provides it's own decoder, but relies on 3rd party encoders? In-Reply-To: References: Message-ID: <438e5ead-8653-31ae-d560-f0cf6a31ed3a@sky.com> On 11/10/16 23:42, Alexey Eromenko wrote: > The important encoders I use myself are libmp3lame, libvpx, libx264, > libx265 and more... > > Except for AAC audio codec, everything else uses 3rd party encoders, > but decoders for ffmpeg are built-in, right ? > > Why so ? Because encoders improve faster than decoders ? Or because > encoders are more buggy, so you prefer to update them more frequently > ? > > Just wanna know a bit of background about political and/or technical > design decision of times past. > Decoders are usually much easier to implement, need to follow minimal hardware requirements in order to run on many platforms and so are less complex than the encoders. There is also libfdk_aac, which implements an external AAC encoders if this is of interest to. From reuben.m at gmail.com Wed Oct 12 03:24:05 2016 From: reuben.m at gmail.com (Reuben Martin) Date: Tue, 11 Oct 2016 19:24:05 -0500 Subject: [FFmpeg-user] DeckLink Output Controls In-Reply-To: References: <31831E98-6789-4079-8111-497188DA4CC6@dolby.com> <1607492.OjOgqLTZW0@subterfuge> Message-ID: <4114255.ECBzabdrGb@subterfuge> On Tuesday, October 11, 2016 11:37:38 AM CDT Marcelo Boufleur wrote: > > Although that is in the official spec, I have never seen any SDI equipment > > use > > anything other than 48k. Doesn’t mean any doesn’t exist, but if so it’s > > not > > very common. > > I agree. I have seen some SDI converters and embedders/de-embedders working > with 32Khz, 44.1Khz and 48Khz, but so far I haven't seen any real world > practical situation where I would need sampling frequencies other than > 48Khz (which does not mean there aren't any). > I think one big reason nobody uses 44100 is that when you pull up/down you drop/gain .001 seconds of audio samples. That works out nicely with 48000 because the difference works out to +/-48. But with 44100 you get a fractional +/-44.1 samples which doesn’t work. And I think most broadcast engineers would not be too fond of the idea of dropping the audio fidelity to 32k. -Reube n From joed12385 at gmail.com Tue Oct 11 03:34:04 2016 From: joed12385 at gmail.com (Joe Dickerson) Date: Mon, 10 Oct 2016 17:34:04 -0700 Subject: [FFmpeg-user] Embedding cover artwork in video files Message-ID: I'm trying to embed cover artwork into my video files (all .mp4 format). I haven't been able to find any definitive answer on whether or not ffmpeg can accomplish this or not. Some people said they have successfully accomplished this and provided code that worked (from forum posts dated a year or much later ago), but unfortunately none of them have worked for me. As a work around I decided to use mp4art (I understand many programs can embed, but I'm specifically looking for CLI) and it worked beautifully. I created a .bat file to make ffmpeg copy a video/audio and mux external .srt file, then call mp4art and embed poster.jpg. The bat file was integrated into my right click menu via registry. Here is the bat file: @echo off for /F %%i in ('dir /b *.srt') do ( goto :external ) setlocal ENABLEDELAYEDEXPANSION set fName=%1 set ffmpeg="F:\Apps\Media\FFMPEG\bin\ffmpeg.exe" set mp4art="F:\Apps\Media\FFMPEG\MP4art\mp4art.exe" for /f "tokens=* delims= " %%F in ('echo %fName%') do ( %ffmpeg% -i "%%~fF" -f srt -i "%%~fF" -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng "%%~dpnF_new.mp4" %mp4art% -f --add folder.jpg "%%~dpnF_new.mp4" pause ) exit :external setlocal ENABLEDELAYEDEXPANSION set fName=%1 set ffmpeg="F:\Apps\Media\FFMPEG\bin\ffmpeg.exe" set mp4art="F:\Apps\Media\FFMPEG\MP4art\mp4art.exe" for /f "tokens=* delims= " %%F in ('echo %fName%') do ( %ffmpeg% -i "%%~fF" -i "%%~dpnF.eng.srt" -c:v copy -c:a copy -c:s mov_text -metadata:s:s:0 language=eng "%%~dpnF_new.mp4" %mp4art% -f --add folder.jpg "%%~dpnF_new.mp4" ) exit As stated before, this works great. I would really love to remove mp4art and just stick with ffmpeg. Is there any way to embed cover art? I seem to find plenty of examples for music, but the movie examples I've found don't work. Thanks in advance and thank you for this amazingly flexible and strong program!! From phil4000n at gmail.com Mon Oct 10 22:29:22 2016 From: phil4000n at gmail.com (Sub Phil) Date: Mon, 10 Oct 2016 21:29:22 +0200 Subject: [FFmpeg-user] Can't record screen under Windows Message-ID: RE: https://trac.ffmpeg.org/wiki/Capture/Desktop Microsoft Windows [version 10.0.14393] (c) 2016 Microsoft Corporation. Tous droits réservés. C:\WINDOWS\system32>ffmpeg -f dshow -i video="screen-capture-recorder" e:\output.flv ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [dshow @ 0000000000e76560] Could not find video device with name [screen-capture-recorder] among source devices of type video. video=screen-capture-recorder: I/O error C:\WINDOWS\system32>ffmpeg -list_devices true -f dshow -i dummy ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [dshow @ 0000000000f96500] DirectShow video devices (some may be both video and audio devices) [dshow @ 0000000000f96500] "TOSHIBA Web Camera - HD" [dshow @ 0000000000f96500] Alternative name "@device_pnp_\\?\usb#vid_04f2&pid_b307&mi_00#7&366e0267&3&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global" [dshow @ 0000000000f96500] DirectShow audio devices [dshow @ 0000000000f96500] "Microphone (Realtek High Definition Audio)" [dshow @ 0000000000f96500] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{0580589F-8566-43F3-A007-88B81F60AA24}" dummy: Immediate exit requested C:\WINDOWS\system32> From george at nsup.org Wed Oct 12 10:14:46 2016 From: george at nsup.org (Nicolas George) Date: Wed, 12 Oct 2016 09:14:46 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> Message-ID: <20161012071446.GA1048207@phare.normalesup.org> Le decadi 20 vendémiaire, an CCXXV, Alexey Eromenko a écrit : > I have a strong belief, that produced MP4 files should be played on > all popular players, and any potential issues must be documented. > > Additionally ffmpeg should provide a BIG WARNING that a resulting file > will not be playable on Apple decoders, and offer to fix it > automatically. MP4 files are specified by a standard. If a player can not handle some file adhering to that standard, that is its fault. Bugs in third-party software should not restrict FFmpeg users from creating valid files they want, and it is not FFmpeg's task to document third party's bugs. FFmpeg may document a well known bug in a well known third party software, but this this would be a service offered as a convenience, not a duty. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: Digital signature URL: From barsnick at gmx.net Wed Oct 12 10:17:19 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 12 Oct 2016 09:17:19 +0200 Subject: [FFmpeg-user] Can't record screen under Windows In-Reply-To: References: Message-ID: <20161012071719.GD31718@sunshine.barsnick.net> On Mon, Oct 10, 2016 at 21:29:22 +0200, Sub Phil wrote: > RE: https://trac.ffmpeg.org/wiki/Capture/Desktop [...] > [dshow @ 0000000000e76560] Could not find video device with name > [screen-capture-recorder] among source devices of type video. > video=screen-capture-recorder: I/O error Did you follow the link from the wiki page to the installer? https://github.com/rdp/screen-capture-recorder-to-video-windows-free Moritz From dev at rarevision.com Wed Oct 12 10:31:59 2016 From: dev at rarevision.com (Thomas Worth) Date: Wed, 12 Oct 2016 00:31:59 -0700 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: On Tue, Oct 11, 2016 at 2:19 AM, Sven C. Dack wrote: > On 11/10/16 08:31, Alexey Eromenko wrote: > >> I have a strong belief, that produced MP4 files should be played on >> all popular players, and any potential issues must be documented. >> >> Additionally ffmpeg should provide a BIG WARNING that a resulting file >> will not be playable on Apple decoders, and offer to fix it >> automatically. >> >> -Alexey >> > No. This isn't about what you belief. Before you can expect ffmpeg or all > popular players to play your files do you have to provide the correct input > files and options to ffmpeg. That's a fact and it's how ffmpeg works. Once > you get this right will ffmpeg be your best friend and will produce the > files you need, but not before then. > Has anyone actually looked at the MP4 file, BrokenVideo-8min.mp4? It was written with a video track timescale of 0, a track duration of 0 and due to that, outrageous packet durations. Regardless of the quality of input (which I'm sure was bad), the muxer should still be able to detect that something is obviously wrong. In this case, the muxer should probably just fail with an error. No reasonable person should expect MP4s written this way to work correctly. Based on the fact that ffmpeg is writing timescale 0 and duration 0, I'd say this should probably be considered a bug. But that's just my opinion. From kazhadena at googlemail.com Wed Oct 12 12:41:06 2016 From: kazhadena at googlemail.com (Andreas Hummel) Date: Wed, 12 Oct 2016 11:41:06 +0200 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift Message-ID: Hi there, i'm struggeling with the conversion from dpx files via ffmpeg to prores and h.264 movie files on a windows machine. In the past days i read a lot about the different flags and options but couldnt figure out what the 'best' conversion technique is. At the moment i'm getting a slight hue shift in the encoded videos and i don't know where it's coming from. Probably i'm using too many options or false flags but i thought, this list might give me a hint to solve the problem at it's core. Somehow i always get the color shift, regardless which options i try with ffmpeg on the command line. The only way to obtain a 1:1 color representation in a prores file was via Nuke from TheFoundry. For h.264 i've got almost the same issue plus settle banding artefacts in dark areas with a gradient. I tried to minimize the artefacts in the gradient but couldn't find a suitable option yet. Here you may find a comparison image: http://www.directupload.net/file/d/4506/satnse88_jpg.htm Full resolution can be found here: http://uploaded.net/file/e02zd4ct Zoom is at 100%. The left image shows a frame from the dpx sequence, 2nd is the ffmpeg prores and 3rd picture shows a crop of my best attempt to encode it with h264. Or is that already the 'best' output i can get? Thanks in advance for your help. Cheers, Andreas My code looks like this: ############################### PRORES: ffmpeg.exe -y -f image2 -start_number 0 -r 25 -i INPUT_%8d.dpx -r 25 -vcodec prores_ks -profile:v 3 -pix_fmt yuv422p10le -filter_complex "[0:v]lutrgb=r=gammaval(1/1.0):g=gammaval(1/1.0):b=gammaval(1/1.0),colormatrix=bt601: bt709'" -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vendor ap10 OUTPUT_prores3.mov ffmpeg\x64\be1d324\bin\ffmpeg.exe -y -f image2 -start_number 0 -r 25 -i INPUT_%8d.dpx -r 25 -vcodec prores_ks -profile:v 3 -pix_fmt yuv422p10le -filter_complex "[0:v]lutrgb=r=gammaval(1/1.0):g=gammaval(1/1.0):b=gammaval(1/1.0),colormatrix=bt601: bt709'" -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vendor ap10 OUTPUT_prores3.mov ffmpeg version N-81872-gbe1d324 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 60.101 / 57. 60.101 libavformat 57. 51.102 / 57. 51.102 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, image2, from 'INPUT_%8d.dpx': Duration: 00:01:04.48, start: 0.000000, bitrate: N/A Stream #0:0: Video: dpx, gbrp10le, 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Output #0, mov, to 'OUTPUT.mov': Metadata: encoder : Lavf57.51.102 Stream #0:0: Video: prores (prores_ks) (apch / 0x68637061), yuv422p10le(bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc57.60.101 prores_ks Stream mapping: Stream #0:0 (dpx) -> lutrgb colormatrix -> Stream #0:0 (prores_ks) Press [q] to stop, [?] for help frame= 1612 fps=9.0 q=-0.0 Lsize= 1173941kB time=00:01:04.44 bitrate=149238.3kbits/s speed=0.358x video:1173928kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001109% ############################### h.264: ffmpeg.exe -y -probesize 5000000 -f image2 -start_number 0 -r 25 -i INPUT_%8d.dpx -r 25 -vcodec libx264 -preset superfast -profile:v high -level 4.2 -crf 9 -pix_fmt yuv420p -vf colormatrix=bt601:bt709 -color_primaries 1 -color_trc 1 -colorspace 1 -vendor ap10 OUTPUT.mov ffmpeg\x64\be1d324\bin\ffmpeg.exe -y -probesize 5000000 -f image2 -start_number 0 -r 25 -i INPUT_%8d.dpx -r 25 -vcodec libx264 -preset superfast -profile:v high -level 4.2 -crf 9 -pix_fmt yuv420p -vf colormatrix=bt601:bt709 -color_primaries 1 -color_trc 1 -colorspace 1 -vendor ap10 OUTPUT.mov ffmpeg version N-81872-gbe1d324 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 60.101 / 57. 60.101 libavformat 57. 51.102 / 57. 51.102 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, image2, from 'INPUT_%8d.dpx': Duration: 00:01:04.48, start: 0.000000, bitrate: N/A Stream #0:0: Video: dpx, gbrp10le, 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Codec AVOption vendor (vendor ID) specified for output file #0 (OUTPUT.mov) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [libx264 @ 0000000000e2c0a0] using SAR=1/1 [libx264 @ 0000000000e2c0a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0000000000e2c0a0] profile High, level 4.2 [libx264 @ 0000000000e2c0a0] 264 - core 148 r2721 72d53ab - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=9.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 pb_ratio=1.30 aq=1:1.00 Output #0, mov, to 'OUTPUT.mov': Metadata: encoder : Lavf57.51.102 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc57.60.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (dpx (native) -> h264 (libx264)) Press [q] to stop, [?] for help frame= 1612 fps= 40 q=-1.0 Lsize= 475782kB time=00:01:04.36 bitrate=60559.4kbits/s speed=1.61x video:475758kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.004930% [libx264 @ 0000000000e2c0a0] frame I:26 Avg QP: 2.73 size:521104 [libx264 @ 0000000000e2c0a0] frame P:449 Avg QP: 4.18 size:394077 [libx264 @ 0000000000e2c0a0] frame B:1137 Avg QP: 5.93 size:260938 [libx264 @ 0000000000e2c0a0] consecutive B-frames: 5.0% 1.9% 2.8% 90.3% [libx264 @ 0000000000e2c0a0] mb I I16..4: 50.2% 19.8% 30.0% [libx264 @ 0000000000e2c0a0] mb P I16..4: 9.6% 9.2% 6.9% P16..4: 46.1% 0.0% 0.0% 0.0% 0.0% skip:28.3% [libx264 @ 0000000000e2c0a0] mb B I16..4: 3.7% 2.8% 0.8% B16..8: 29.3% 0.0% 0.0% direct:32.4% skip:31.0% L0:29.0% L1:26.2% BI:44.7% [libx264 @ 0000000000e2c0a0] 8x8 transform intra:34.6% inter:50.2% [libx264 @ 0000000000e2c0a0] coded y,uvDC,uvAC intra: 98.2% 98.9% 98.4% inter: 59.8% 53.2% 46.9% [libx264 @ 0000000000e2c0a0] i16 v,h,dc,p: 20% 8% 67% 4% [libx264 @ 0000000000e2c0a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 13% 38% 7% 7% 5% 6% 5% 8% [libx264 @ 0000000000e2c0a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 21% 14% 9% 8% 7% 8% 7% 11% [libx264 @ 0000000000e2c0a0] i8c dc,h,v,p: 44% 16% 31% 9% [libx264 @ 0000000000e2c0a0] Weighted P-Frames: Y:8.2% UV:4.0% [libx264 @ 0000000000e2c0a0] kb/s:60443.67 From ceffmpeg at gmail.com Wed Oct 12 12:58:44 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 11:58:44 +0200 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift In-Reply-To: References: Message-ID: 2016-10-12 11:41 GMT+02:00 Andreas Hummel : > Here you may find a comparison image: > http://www.directupload.net/file/d/4506/satnse88_jpg.htm > > Full resolution can be found here: > http://uploaded.net/file/e02zd4ct (I have probably downloaded thousands of user-provided samples, these sites are not acceptable, sorry. Our own upload site is unfortunately down for months already.) > Or is that already the 'best' output i can get? I cannot really comment on your issue but your input file has 30bpp, your h264 output file only 12, so there has to be a difference wrt the colour representation. Carl Eugen From ceffmpeg at gmail.com Wed Oct 12 12:50:34 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 11:50:34 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: 2016-10-12 9:31 GMT+02:00 Thomas Worth : > Has anyone actually looked at the MP4 file, BrokenVideo-8min.mp4? > It was written with a video track timescale of 0 The uploaded file BrokenVideo-8min.mp4 has a video track timescale of 10000000, exactly as the input file from the conversion. (If I set it to 0, playback fails with every software.) > a track duration of 0 and due to that, outrageous packet durations. > Regardless of the quality of input (which I'm sure was bad), the muxer > should still be able to detect that something is obviously wrong. In this > case, the muxer should probably just fail with an error. > No reasonable person should expect MP4s written this > way to work correctly. The file works fine with every software tested so far except QT, this includes vlc, MPlayer, xine, GStreamer and WMP (which contrary to what was claimed here all use different demuxers afaik). Carl Eugen From nikhil.r at geazy.com Wed Oct 12 13:36:30 2016 From: nikhil.r at geazy.com (Nikhil M Ranka) Date: Wed, 12 Oct 2016 16:06:30 +0530 Subject: [FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg Message-ID: Note: I have a few days ( 3-4 ) of experience with using FFmpeg, and I do not fully understand the commands I mention here ( most of them are from stack overflow forums - I do not have those links bookmarked ). I wanted to generate a 30-second video, with 16:9 aspect ratio, from a set of images and an audio with blend + zoom and pan effect. Started this by just generating slide show of images from the video **Slideshow of images** ffmpeg -framerate 1/4 -start_number 1 -i 164470_%d.jpg -c:v libx264 -r > 30 -pix_fmt yuv420p -vf scale=16:9 out.mp4 Then, tried adding an audio to the video, and this is the command I used. ffmpeg -framerate 1/4 -start_number 1 -i 164470_%d.jpg -i audio.wav > -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k > -pix_fmt yuv420p -shortest outWithAudioNew.mp4 With this command, I was able to create the video with zoom and pan effects. It did not cycle through the images, though. ffmpeg \ > -framerate 1/4 -start_number 1 -i 164470_%d.jpg \ > -vf "zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-0.0015))':d=125" \ > -c:v libx264 -t 30 -s "800x450" outWithZoom.mp4 **To add in a blend effect I used this command:** ffmpeg \ > -loop 1 -t 5 -i 164470_2.jpg \ > -loop 1 -t 5 -i 164470_3.jpg \ > -loop 1 -t 5 -i 164470_4.jpg \ > -loop 1 -t 5 -i 164470_5.jpg \ > -filter_complex \ > "[1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-( > if(gte(T,1.5),1,T/1.5)))'[b1v]; \ > [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-( > if(gte(T,1.5),1,T/1.5)))'[b2v]; \ > [3:v][2:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-( > if(gte(T,1.5),1,T/1.5)))'[b3v]; \ > [0:v][b1v][1:v][b2v][2:v][b3v][3:v]concat=n=7,format=yuv420p[v]" \ > -map "[v]" -aspect 16:9 outWithFasterBlend.mp4 This particular post is from where I got the command to create a video with blend effect. http://superuser.com/questions/833232/create-video- with-5-images-with-fadein-out-effect-in-ffmpeg **Blend with zoom** > > ffmpeg \ > -loop 1 -t 5 -i 164470_2.jpg \ > -loop 1 -t 5 -i 164470_3.jpg \ > -loop 1 -t 5 -i 164470_5.jpg \ > -filter_complex \ > "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/ > zoom/2)':y='ih/2-(ih/zoom/2)'[v0]; \ > [1:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/ > zoom/2)':y='ih/2-(ih/zoom/2)'[v1]; \ > [2:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/ > zoom/2)':y='ih/2-(ih/zoom/2)'[v2]; \ > [1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-( > if(gte(T,1.5),1,T/1.5)))'[b1v]; \ > [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-( > if(gte(T,1.5),1,T/1.5)))'[b2v]; \ > [v0][b1v][v1][b2v][v2]concat=n=5,format=yuv420p[v]" \ > -map "[v]" -aspect 16:9 outWithBlendAndZoom.mp4 This command did not work out, I am not sure why. Here is the output: ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg > developers > built on Oct 31 2014 05:16:04 with gcc 4.6 (Debian 4.6.3-1) > configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 > --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' > --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' > --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared > --disable-ffserver --disable-doc --enable-bzlib --enable-zlib > --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl > --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray > --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 > --enable-libvpx > libavutil 52. 89.100 / 52. 89.100 > libavcodec 55. 66.101 / 55. 66.101 > libavformat 55. 43.100 / 55. 43.100 > libavdevice 55. 13.101 / 55. 13.101 > libavfilter 4. 8.100 / 4. 8.100 > libswscale 2. 6.100 / 2. 6.100 > libswresample 0. 19.100 / 0. 19.100 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, image2, from '164470_2.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #0:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > Input #1, image2, from '164470_3.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #1:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > Input #2, image2, from '164470_5.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #2:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > File 'outWithBlendAndZoom.mp4' already exists. Overwrite ? [y/N] y > [swscaler @ 0xba66100] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbaa23a0] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbac4680] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbae6960] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb07260] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb2af20] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb4d200] deprecated pixel format used, make sure you did > set range correctly > [Parsed_concat_5 @ 0xba8e060] Input link in1:v0 parameters (size > 1600x1200, SAR 0:1) do not match the corresponding output link in0:v0 > parameters (1280x720, SAR 0:1) > [Parsed_concat_5 @ 0xba8e060] Failed to configure output pad on > Parsed_concat_5 So now, I want to be able to do all of this in one command. Summarizing what I need in the video: 1. 30-second video with blend and zoom + pan effect. 2. Audio 3. And each image in the video must get an equal amount of time. If 5 images, then each image must last for about 6 seconds. 4. The aspect ratio of the video should be 16:9. Not all the images I use have the same resolution, can FFmpeg work with such images? Or I need to work on those images to have the same resolution Regards, *Nikhil* From ceffmpeg at gmail.com Wed Oct 12 13:49:02 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 12:49:02 +0200 Subject: [FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg In-Reply-To: References: Message-ID: 2016-10-12 12:36 GMT+02:00 Nikhil M Ranka : > ffmpeg -framerate 1/4 -start_number 1 -i 164470_%d.jpg -c:v libx264 -r >> 30 -pix_fmt yuv420p -vf scale=16:9 out.mp4 start_number 1 is / was never necessary. > Then, tried adding an audio to the video, and this is the command I used. > > ffmpeg -framerate 1/4 -start_number 1 -i 164470_%d.jpg -i audio.wav > -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k > -pix_fmt yuv420p -shortest outWithAudioNew.mp4 -strict experimental is not necessary anymore for our aac encoder. > ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 This is old and unsupported, if you don't want to compile yourself, you can download a binaries that other users provide from external sites linked from our download page: http://ffmpeg.org/download.html > Not all the images I use have the same resolution, can FFmpeg > work with such images? It will automatically scale them to the output resolution (that defaults to the resolution of the first input frame). Carl Eugen From sven.c.dack at sky.com Wed Oct 12 14:07:31 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Wed, 12 Oct 2016 12:07:31 +0100 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: On 12/10/16 08:31, Thomas Worth wrote: > On Tue, Oct 11, 2016 at 2:19 AM, Sven C. Dack wrote: > >> On 11/10/16 08:31, Alexey Eromenko wrote: >> >>> I have a strong belief, that produced MP4 files should be played on >>> all popular players, and any potential issues must be documented. >>> >>> Additionally ffmpeg should provide a BIG WARNING that a resulting file >>> will not be playable on Apple decoders, and offer to fix it >>> automatically. >>> >>> -Alexey >>> >> No. This isn't about what you belief. Before you can expect ffmpeg or all >> popular players to play your files do you have to provide the correct input >> files and options to ffmpeg. That's a fact and it's how ffmpeg works. Once >> you get this right will ffmpeg be your best friend and will produce the >> files you need, but not before then. >> > Has anyone actually looked at the MP4 file, BrokenVideo-8min.mp4? It was > written with a video track timescale of 0, a track duration of 0 and due to > that, outrageous packet durations. Regardless of the quality of input > (which I'm sure was bad), the muxer should still be able to detect that > something is obviously wrong. In this case, the muxer should probably just > fail with an error. No reasonable person should expect MP4s written this > way to work correctly. Based on the fact that ffmpeg is writing timescale 0 > and duration 0, I'd say this should probably be considered a bug. But > that's just my opinion. Let's not make ffmpeg more pedantic. It has so far been always up to the users to decide what output they need and otherwise for ffmpeg to default to producing the best it has to offer. Most users then don't have a problem with this and are happy to accept it when the best isn't what they need but to use the options to produce a video more suitable for them. Let's also not forget that the problem is with an Apple player. Those get replaced each year by a next generation. Does ffmpeg really need to default to producing videos for a piece of hardware which at the day it lands on the shelf is already considered outdated by its maker? From kazhadena at googlemail.com Wed Oct 12 14:06:30 2016 From: kazhadena at googlemail.com (Andreas Hummel) Date: Wed, 12 Oct 2016 13:06:30 +0200 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift In-Reply-To: References: Message-ID: Thanks for your response Carl Eugen,. Up until now i only had to deal with image sequences and didn't convert them myself. Therefore i wasn't sure if the results could have been better with other options. Thanks for your feedback. cheers, Andreas 2016-10-12 11:58 GMT+02:00 Carl Eugen Hoyos : > 2016-10-12 11:41 GMT+02:00 Andreas Hummel : > > > Here you may find a comparison image: > > http://www.directupload.net/file/d/4506/satnse88_jpg.htm > > > > Full resolution can be found here: > > http://uploaded.net/file/e02zd4ct > > (I have probably downloaded thousands of user-provided samples, > these sites are not acceptable, sorry. Our own upload site is > unfortunately down for months already.) > > > Or is that already the 'best' output i can get? > > I cannot really comment on your issue but your input file has 30bpp, > your h264 output file only 12, so there has to be a difference wrt the > colour representation. > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From ceffmpeg at gmail.com Wed Oct 12 14:37:15 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 13:37:15 +0200 Subject: [FFmpeg-user] Why FFmpeg provides it's own decoder, but relies on 3rd party encoders? In-Reply-To: References: Message-ID: 2016-10-12 0:42 GMT+02:00 Alexey Eromenko : > The important encoders I use myself are libmp3lame, libvpx, libx264, > libx265 and more... > > Except for AAC audio codec, everything else uses 3rd party encoders, Everything? Like mpeg2video, mpeg4 asp, msmpeg4, mp2, ac-3, e-ac-3 and hundreds more? > but decoders for ffmpeg are built-in, right ? External decoders like libopenjpeg exist though. > Why so ? lame is older than FFmpeg, libvpx was written by a company to support their video format (it wouldn't have made sense for them to implement an FFmpeg-based encoder) and x265 is a direct successor of x264. At the time x264 was started, FFmpeg still tried to implement all encoders themselves (and the saying was "first write a working encoder, then start with the decoder implementation"). There is a very old post somewhere that explains why x264 was written as an independent project, in retrospect this was a large advantage for the single developers. The main reason is that nobody sent patches for the mentioned encoders so far... I believe it is possible to write a (not top-quality) mp3 encoder on top of FFmpeg (just needs a bitstream filter), but nobody cared. Carl Eugen From ceffmpeg at gmail.com Wed Oct 12 14:44:10 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 13:44:10 +0200 Subject: [FFmpeg-user] framerate conversion with sync audio In-Reply-To: References: Message-ID: 2016-10-11 23:25 GMT+02:00 Carles Vila : > Hi, I'm trying to perform framerate conversion of a video, from 24fps to > 25fps to be precise. > The source is mov, ProRes with multichannel audio at 48kHz. > It is mandatory for my application to preserve the integrity of all frames, > i.e. no frame-interpolation or duplication should occur. Then use the setpts filter, the input option -r tends to be unreliable. Although using setpts means you have to take care if audio and video start at the same time. Or to say it differently: setpts is recommended, if r works for you, all the better! Since you change the video length, you have to change audio speed, I don't know if asetpts is an alternative to atempo. Carl Eugen From nikhil.r at geazy.com Wed Oct 12 14:53:05 2016 From: nikhil.r at geazy.com (Nikhil M Ranka) Date: Wed, 12 Oct 2016 17:23:05 +0530 Subject: [FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg In-Reply-To: References: Message-ID: Thank for the reply. It is this command that I am facing issues with. Can you tell me how to fix it? Have already spent hours if not days finding a solution for this **Blend with zoom** > > ffmpeg \ > -loop 1 -t 5 -i 164470_2.jpg \ > -loop 1 -t 5 -i 164470_3.jpg \ > -loop 1 -t 5 -i 164470_5.jpg \ > -filter_complex \ > "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoo > m/2)':y='ih/2-(ih/zoom/2)'[v0]; \ > [1:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v1]; > \ > [2:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v2]; > \ > [1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b1v]; > \ > [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b2v]; > \ > [v0][b1v][v1][b2v][v2]concat=n=5,format=yuv420p[v]" \ > -map "[v]" -aspect 16:9 outWithBlendAndZoom.mp4 This command did not work out, I am not sure why. Here is the output: ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg > developers > built on Oct 31 2014 05:16:04 with gcc 4.6 (Debian 4.6.3-1) > configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 > --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' > --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' > --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared > --disable-ffserver --disable-doc --enable-bzlib --enable-zlib > --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl > --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray > --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 > --enable-libvpx > libavutil 52. 89.100 / 52. 89.100 > libavcodec 55. 66.101 / 55. 66.101 > libavformat 55. 43.100 / 55. 43.100 > libavdevice 55. 13.101 / 55. 13.101 > libavfilter 4. 8.100 / 4. 8.100 > libswscale 2. 6.100 / 2. 6.100 > libswresample 0. 19.100 / 0. 19.100 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, image2, from '164470_2.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #0:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > Input #1, image2, from '164470_3.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #1:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > Input #2, image2, from '164470_5.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #2:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > File 'outWithBlendAndZoom.mp4' already exists. Overwrite ? [y/N] y > [swscaler @ 0xba66100] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbaa23a0] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbac4680] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbae6960] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb07260] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb2af20] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb4d200] deprecated pixel format used, make sure you did > set range correctly > [Parsed_concat_5 @ 0xba8e060] Input link in1:v0 parameters (size > 1600x1200, SAR 0:1) do not match the corresponding output link in0:v0 > parameters (1280x720, SAR 0:1) > [Parsed_concat_5 @ 0xba8e060] Failed to configure output pad on > Parsed_concat_5 Regards, *Nikhil* From lists at reto.ch Wed Oct 12 15:05:24 2016 From: lists at reto.ch (Reto Kromer) Date: Wed, 12 Oct 2016 14:05:24 +0200 Subject: [FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg In-Reply-To: Message-ID: Nikhil M Ranka wrote: > ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 >the FFmpeg developers built on Oct 31 2014 05:16:04 As Carl Eugen already mentioned, you should really update. Best regards, Reto From sven.c.dack at sky.com Wed Oct 12 15:08:02 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Wed, 12 Oct 2016 13:08:02 +0100 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: <9696430f-a6a8-5ec4-ae4f-ee4fed692116@sky.com> On 12/10/16 10:50, Carl Eugen Hoyos wrote: > The file works fine with every software tested so far except QT, > this includes vlc, MPlayer, xine, GStreamer and WMP (which > contrary to what was claimed here all use different demuxers > afaik). mpv plays it, too. Why isn't ffmpeg being used to just fix the broken files in Alex's collection? According to him is it 3 videos out of 700, which have this issue. Why can't these be fixed? From ceffmpeg at gmail.com Wed Oct 12 15:11:21 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 14:11:21 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: <9696430f-a6a8-5ec4-ae4f-ee4fed692116@sky.com> References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <9696430f-a6a8-5ec4-ae4f-ee4fed692116@sky.com> Message-ID: 2016-10-12 14:08 GMT+02:00 Sven C. Dack : > On 12/10/16 10:50, Carl Eugen Hoyos wrote: >> >> The file works fine with every software tested so far except QT, >> this includes vlc, MPlayer, xine, GStreamer and WMP (which >> contrary to what was claimed here all use different demuxers >> afaik). > > mpv plays it, too. Iiuc, mpv uses libavformat to demux isom (but I didn't mention FFmpeg above), I used the old MPlayer mov demuxer for testing. Carl Eugen From Ganesh.Irelan at syda.org Wed Oct 12 15:16:33 2016 From: Ganesh.Irelan at syda.org (Ganesh.Irelan at syda.org) Date: Wed, 12 Oct 2016 12:16:33 +0000 Subject: [FFmpeg-user] essence MD5 Message-ID: <2ECD469915FF9F47AD27F916FE8A43FA1D2A1B53@sms1-ca-ht> Hello, Non-developer here... I want to generate an essence MD5 for WAV files and then populate that value into a field in a DAM system. I have tested two commands to generate the essence MD5 hash. ffmpeg -i INPUT -map 0:a -f md5 OUTPUT.md5 ffmpeg -i "INPUT" -map 0:a -f md5 -hash md5 - Neither of these is ideal. The first one puts the value in a separate file. The second puts it amongst other info in the console making it difficult to parse out as in the following example. (The value I want is the fourth line from the bottom.) Is there an FFMPEG command that will give a cleaner console output than this? Thank you, Kevin C:\>ffmpeg -i "Test BWAV 2.wav" -map 0:a -f md5 -hash md5 - ffmpeg version N-79546-g13406b6 Copyright (c) 2000-2016 the FFmp built with gcc 5.3.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32thr isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --e enable-libfreetype --enable-libgme --enable-libgsm --enable-libi modplug --enable-libmfx --enable-libmp3lame --enable-libopencore libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable e-libschroedinger --enable-libsnappy --enable-libsoxr --enable-l -libtheora --enable-libtwolame --enable-libvidstab --enable-libv ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwe 264 --enable-libx265 --enable-libxavs --enable-libxvid --enable- -lzma --enable-decklink --enable-zlib libavutil 55. 22.100 / 55. 22.100 libavcodec 57. 35.100 / 57. 35.100 libavformat 57. 34.102 / 57. 34.102 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 44.100 / 6. 44.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, wav, from 'Test BWAV 2.wav': Metadata: comment : Test File with BEXT time_reference : 0 Duration: 00:00:14.55, bitrate: 1413 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 s16, 1411 kb/s [md5 @ 0000000000506520] Using AVStream.codec to pass codec para is deprecated, use AVStream.codecpar instead. Output #0, md5, to 'pipe:': Metadata: comment : Test File with BEXT time_reference : 0 encoder : Lavf57.34.102 Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 k Metadata: encoder : Lavc57.35.100 pcm_s16le Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help MD5=0c9f578c5d4849d4f18e07dfe08370e5 size= 0kB time=00:00:14.55 bitrate= 0.0kbits/s speed= 93 video:0kB audio:2507kB subtitle:0kB other streams:0kB global hea overhead: unknown This e-mail (including any attachments) is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are notified that any dissemination, distribution or copying of it (including any attachments), or taking any actions based on it, is prohibited. If you have received this e-mail in error, please immediately notify the sender by reply e-mail, delete the original, and destroy any copies or printouts. Thank you. em-tr-v1-2016 From ceffmpeg at gmail.com Wed Oct 12 15:23:09 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 14:23:09 +0200 Subject: [FFmpeg-user] essence MD5 In-Reply-To: <2ECD469915FF9F47AD27F916FE8A43FA1D2A1B53@sms1-ca-ht> References: <2ECD469915FF9F47AD27F916FE8A43FA1D2A1B53@sms1-ca-ht> Message-ID: 2016-10-12 14:16 GMT+02:00 : > I want to generate an essence MD5 for WAV files and then > populate that value into a field in a DAM system. Just curious: What is a DAM system? > I have tested two commands to generate the essence MD5 > hash. > > ffmpeg -i INPUT -map 0:a -f md5 OUTPUT.md5 > ffmpeg -i "INPUT" -map 0:a -f md5 -hash md5 - > > Neither of these is ideal. The first one puts the value in a > separate file. (That's what you asked for) > The second puts it amongst other info in the console making > it difficult to parse out as in the following example. Only one line is printed to stdout. An alternative is to use -loglevel warning or error or fatal. > This e-mail (including any attachments) is intended only for > use by the addressee(s) named herein and may contain > legally privileged and/or confidential information. Please avoid this when sending emails to a public mailing list. Carl Eugen From nikhil.r at geazy.com Wed Oct 12 15:25:38 2016 From: nikhil.r at geazy.com (Nikhil M Ranka) Date: Wed, 12 Oct 2016 17:55:38 +0530 Subject: [FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg In-Reply-To: References: Message-ID: Yes, as per Carl's suggestion, I installed the latest version ffmpeg version N-81972-g8063978-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers Now, can you look at the command which is to generate a video with blend and zoom filters and help me with fixing that? **Blend with zoom** > > ffmpeg \ > -loop 1 -t 5 -i 164470_2.jpg \ > -loop 1 -t 5 -i 164470_3.jpg \ > -loop 1 -t 5 -i 164470_5.jpg \ > -filter_complex \ > "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoo > m/2)':y='ih/2-(ih/zoom/2)'[v0]; \ > [1:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v1]; > \ > [2:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v2]; > \ > [1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b1v]; > \ > [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b2v]; > \ > [v0][b1v][v1][b2v][v2]concat=n=5,format=yuv420p[v]" \ > -map "[v]" -aspect 16:9 outWithBlendAndZoom.mp4 This command did not work out, I am not sure why. Here is the output: ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg > developers > built on Oct 31 2014 05:16:04 with gcc 4.6 (Debian 4.6.3-1) > configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 > --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' > --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' > --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared > --disable-ffserver --disable-doc --enable-bzlib --enable-zlib > --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl > --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray > --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex > --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 > --enable-libvpx > libavutil 52. 89.100 / 52. 89.100 > libavcodec 55. 66.101 / 55. 66.101 > libavformat 55. 43.100 / 55. 43.100 > libavdevice 55. 13.101 / 55. 13.101 > libavfilter 4. 8.100 / 4. 8.100 > libswscale 2. 6.100 / 2. 6.100 > libswresample 0. 19.100 / 0. 19.100 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, image2, from '164470_2.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #0:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > Input #1, image2, from '164470_3.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #1:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > Input #2, image2, from '164470_5.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #2:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 > tbr, 25 tbn, 25 tbc > File 'outWithBlendAndZoom.mp4' already exists. Overwrite ? [y/N] y > [swscaler @ 0xba66100] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbaa23a0] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbac4680] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbae6960] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb07260] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb2af20] deprecated pixel format used, make sure you did > set range correctly > [swscaler @ 0xbb4d200] deprecated pixel format used, make sure you did > set range correctly > [Parsed_concat_5 @ 0xba8e060] Input link in1:v0 parameters (size > 1600x1200, SAR 0:1) do not match the corresponding output link in0:v0 > parameters (1280x720, SAR 0:1) > [Parsed_concat_5 @ 0xba8e060] Failed to configure output pad on > Parsed_concat_5 Regards, *Nikhil* On Wed, Oct 12, 2016 at 5:35 PM, Reto Kromer wrote: > Nikhil M Ranka wrote: > > > ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 > >the FFmpeg developers built on Oct 31 2014 05:16:04 > > As Carl Eugen already mentioned, you should really update. > > Best regards, Reto > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From lists at reto.ch Wed Oct 12 15:29:59 2016 From: lists at reto.ch (Reto Kromer) Date: Wed, 12 Oct 2016 14:29:59 +0200 Subject: [FFmpeg-user] essence MD5 In-Reply-To: <2ECD469915FF9F47AD27F916FE8A43FA1D2A1B53@sms1-ca-ht> Message-ID: Ganesh.Irelan at syda.org wrote: >ffmpeg -i "INPUT" -map 0:a -f md5 -hash md5 - Add "-loglevel quiet". From borys.owczarzak at wachowiakisyn.pl Wed Oct 12 15:42:36 2016 From: borys.owczarzak at wachowiakisyn.pl (Borys Owczarzak) Date: Wed, 12 Oct 2016 14:42:36 +0200 Subject: [FFmpeg-user] ffmpeg mux to mpegts Message-ID: <6e48075a-a020-e229-2e4a-ba2b552ff7cd@wachowiakisyn.pl> Hi all, I tried create ts file in following way: * **/ ffmpeg -y -i h264-20M.h264 -i audio.aac -vcodec copy -acodec copy -f mpegts file.ts/* Unfortunatelly I get error * **/ [mpegts @ 0x25db3c0] first pts value must be set/**/ /**/ av_interleaved_write_frame(): Invalid data found when processing input/**/ /**/ [mpegts @ 0x25db3c0] first pts value must be set/* Full output: */ffmpeg version 2.8.6-1ubuntu2 Copyright (c) 2000-2016 the FFmpeg developers/**/ /**/ built with gcc 5.3.1 (Ubuntu 5.3.1-11ubuntu1) 20160311/**/ /**/ configuration: --prefix=/usr --extra-version=1ubuntu2 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv/**/ /**/ libavutil 54. 31.100 / 54. 31.100/**/ /**/ libavcodec 56. 60.100 / 56. 60.100/**/ /**/ libavformat 56. 40.101 / 56. 40.101/**/ /**/ libavdevice 56. 4.100 / 56. 4.100/**/ /**/ libavfilter 5. 40.101 / 5. 40.101/**/ /**/ libavresample 2. 1. 0 / 2. 1. 0/**/ /**/ libswscale 3. 1.101 / 3. 1.101/**/ /**/ libswresample 1. 2.101 / 1. 2.101/**/ /**/ libpostproc 53. 3.100 / 53. 3.100/**/ /**/[h264 @ 0x25d4400] Stream #0: not enough frames to estimate rate; consider increasing probesize/**/ /**/Input #0, h264, from 'h264-20M.h264':/**/ /**/ Duration: N/A, bitrate: N/A/**/ /**/ Stream #0:0: Video: h264 (High), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc/**/ /**/[aac @ 0x25d5d20] Estimating duration from bitrate, this may be inaccurate/**/ /**/Input #1, aac, from 'audio.aac':/**/ /**/ Duration: 00:01:06.83, bitrate: 117 kb/s/**/ /**/ Stream #1:0: Audio: aac (LC), 48000 Hz, mono, fltp, 117 kb/s/**/ /**/Output #0, mpegts, to 'file.ts':/**/ /**/ Metadata:/**/ /**/ encoder : Lavf56.40.101/**/ /**/ Stream #0:0: Video: h264, yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 1200k tbc/**/ /**/ Stream #0:1: Audio: aac, 48000 Hz, mono, 117 kb/s/**/ /**/Stream mapping:/**/ /**/ Stream #0:0 -> #0:0 (copy)/**/ /**/ Stream #1:0 -> #0:1 (copy)/**/ /**/Press [q] to stop, [?] for help/**/ /**/[mpegts @ 0x25db3c0] first pts value must be set/**/ /**/av_interleaved_write_frame(): Invalid data found when processing input/**/ /**/[mpegts @ 0x25db3c0] first pts value must be set/**/ /**/frame= 4 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.04 bitrate= 0.0kbits/s/**/ /**/video:2106kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown/**/ /**/Conversion failed!/*/ / How pts value should be set? Kind regards Borys Owczarzak From steveboyer85 at gmail.com Wed Oct 12 16:21:28 2016 From: steveboyer85 at gmail.com (Steve Boyer) Date: Wed, 12 Oct 2016 08:21:28 -0500 Subject: [FFmpeg-user] framerate conversion with sync audio In-Reply-To: References: Message-ID: On Tue, Oct 11, 2016 at 5:00 PM, Steve Boyer wrote: > > > Have you tried experimenting with the audio filter "atempo"? I'm guessing > here, but try: > > ffmpeg -i ... -af atempo=0.96 > > (24/25 = 0.96) > > Wow, I messed that one up completely. Incorporating Carl's suggestion as well of -vf setpts, the filter chain should look something like: ffmpeg -i -vf setpts=PTS*0.8 -af=atune=25/24 or if -r works for you: ffmpeg -r 25 -i -af=atune=25/24 Just a heads-up: on a test clip, looks like using -ss and -r before -i causes frame-sync issues, so if you were wanting to skip forward into your test clip, make sure to use -ss after -i . > ~Steve > > From dev at rarevision.com Wed Oct 12 17:03:27 2016 From: dev at rarevision.com (Thomas Worth) Date: Wed, 12 Oct 2016 07:03:27 -0700 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: On Wed, Oct 12, 2016 at 2:50 AM, Carl Eugen Hoyos wrote: > 2016-10-12 9:31 GMT+02:00 Thomas Worth : > > > Has anyone actually looked at the MP4 file, BrokenVideo-8min.mp4? > > > It was written with a video track timescale of 0 > > The uploaded file BrokenVideo-8min.mp4 has a video track timescale of > 10000000, exactly as the input file from the conversion. > > (If I set it to 0, playback fails with every software.) > > > a track duration of 0 and due to that, outrageous packet durations. > > Regardless of the quality of input (which I'm sure was bad), the muxer > > should still be able to detect that something is obviously wrong. In this > > case, the muxer should probably just fail with an error. > > > No reasonable person should expect MP4s written this > > way to work correctly. > > The file works fine with every software tested so far except QT, > this includes vlc, MPlayer, xine, GStreamer and WMP (which > contrary to what was claimed here all use different demuxers > afaik). > Upon closer inspection, there is definitely a problem. The 10000000 you are referring to is in the wrong place in the video track's mdhd atom. mdhd should be 32 bytes, according to the Apple specification for QuickTime, which the MP4 file format is based upon. The mdhd in Alexey's file is 44 bytes. mdhd should look like this: [0000] //size [0000] //'mdhd' [0] //version [000] //flags [0000] //creation time [0000] //modification time [0000] //time scale [0000] //duration [00] //language [00] //quality The mdhd atom in question is located at offset 12065154 in BrokenVideo-8min.mp4. The 10000000 is actually where language and quality should be, and spans both fields. Then there's an extra 12 bytes at the end of the atom. I double checked this with a properly encoded MP4 file, and sure enough mdhd for the video track was 32 bytes. Just look at mdhd and you'll see what I'm talking about. Thomas From phil_rhodes at rocketmail.com Wed Oct 12 17:25:01 2016 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 12 Oct 2016 14:25:01 +0000 (UTC) Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: <394569239.301702.1476282301709@mail.yahoo.com> > The file works fine with every software tested so far except QT, The fact that these files don't work with one of the world's most popular players is a problem. You can argue about whether it's a bug or not, but at some point no user is going to sit there happily not watching a video, thinking "aren't ffmpeg's developers experts." Priority one is that things work. All else is secondary. P From ceffmpeg at gmail.com Wed Oct 12 18:04:57 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 17:04:57 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: 2016-10-12 16:03 GMT+02:00 Thomas Worth : > On Wed, Oct 12, 2016 at 2:50 AM, Carl Eugen Hoyos > wrote: > >> 2016-10-12 9:31 GMT+02:00 Thomas Worth : >> >> > Has anyone actually looked at the MP4 file, BrokenVideo-8min.mp4? > Just look at mdhd and you'll see what I'm talking about. This is the second comment today that could be misinterpreted: Please remember that not everybody is a native speaker and be more careful. Allow me a question: Did you test with any non-QT based player? If your analysis were right, nothing could play the sample, so I believe it is safe to say that your analysis cannot be correct. [...] > Upon closer inspection, there is definitely a problem. The > 10000000 you are referring to is in the wrong place in the > video track's mdhd atom. mdhd should be 32 bytes, > according to the Apple specification for QuickTime, which > the MP4 file format is based upon. You are of course right that isom is based on mov but you are missing two (important) things: There is a difference between mov and isom. Alexey told us that he needs QT compatibility but he told FFmpeg that he absolutely doesn't care about QT, he requested an isom file (and that's why FFmpeg did not try to create a QT-compatible file and did not warn that the file is not QT-compatible). > The mdhd in Alexey's file is 44 bytes. mdhd should look > like this: > > [0000] //size > [0000] //'mdhd' > [0] //version > [000] //flags > [0000] //creation time > [0000] //modification time > [0000] //time scale > [0000] //duration The mdhd atom in the file is version 1 and has 64bit time and duration fields and is therefore twelve bytes larger than a version 0 mdhd atom. Thank you for finally solving the question why QT fails! Carl Eugen From reuben.m at gmail.com Wed Oct 12 18:51:04 2016 From: reuben.m at gmail.com (Reuben Martin) Date: Wed, 12 Oct 2016 10:51:04 -0500 Subject: [FFmpeg-user] Tee muxer and rtmp parameters In-Reply-To: References: Message-ID: I’m trying send rtmp connections to 2 separate destinations using the tee muxer, but I haven’t been able to find a way to set rtmp_conn values separately for each rtmp slave. Is this even possible using the tee muxer? I’m currently using 3.1.4. (can build head of master if that makes any difference) -Reuben From freeuserback at gmail.com Wed Oct 12 14:12:30 2016 From: freeuserback at gmail.com (Freeuserback) Date: Wed, 12 Oct 2016 04:12:30 -0700 (PDT) Subject: [FFmpeg-user] How to Cite FFMPEG in papers In-Reply-To: <1476040764.3634250.750498921.65D0C9B4@webmail.messagingengine.com> References: <1476040764.3634250.750498921.65D0C9B4@webmail.messagingengine.com> Message-ID: <1476270750818-4677830.post@n4.nabble.com> Thank you :) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-Cite-FFMPEG-in-papers-tp4677770p4677830.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From t.soernes at gmail.com Wed Oct 12 10:14:56 2016 From: t.soernes at gmail.com (=?UTF-8?Q?Torstein_S=C3=B8rnes?=) Date: Wed, 12 Oct 2016 09:14:56 +0200 Subject: [FFmpeg-user] Compiling for libavcodec VDPAU hwaccel Message-ID: When compiling I get Checking for libavcodec VDPAU hwaccel : no I'm installing ffmpeg through mpv-build which fetches the latest ffmpeg from github. ffmpeg_options: --enable-vdpau --enable-libass vdpauinfo output (vdpauinfo.txt) and a full ffmpeg build log (mpv log.txt) is attached. Thanks for any help -------------- next part -------------- + git pull --rebase Current branch master is up to date. + do_clone_all + do_clone ffmpeg https://github.com/FFmpeg/FFmpeg.git + set -ex + test -e ffmpeg + cd ffmpeg + git remote set-url origin https://github.com/FFmpeg/FFmpeg.git + git fetch + do_clone fribidi http://anongit.freedesktop.org/git/fribidi/fribidi.git + set -ex + test -e fribidi + cd fribidi + git remote set-url origin http://anongit.freedesktop.org/git/fribidi/fribidi.git + git fetch + do_clone libass https://github.com/libass/libass.git + set -ex + test -e libass + cd libass + git remote set-url origin https://github.com/libass/libass.git + git fetch + do_clone mpv https://github.com/mpv-player/mpv.git + set -ex + test -e mpv + cd mpv + git remote set-url origin https://github.com/mpv-player/mpv.git + git fetch + do_gitmaster ffmpeg n + set -ex + cd ffmpeg + git checkout --detach origin/master HEAD is now at 8063978... avformat/matroskaenc: don't write a FlagInterlaced element if it would write the default value + git remote prune origin + do_releasetag fribidi + cd fribidi + git tag + grep -v rc + grep -v dev + versort_with_prefix + tail -n 1 + sed -n -e s/^\([0-9]\)/\1/p + sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 + sed -e s/^// + version=0.19.7 + git checkout --detach refs/tags/0.19.7 HEAD is now at 1a6935c... 0.19.7 + do_gitmaster libass + set -ex + cd libass + git checkout --detach origin/master HEAD is now at 35dc4dd... Add CVE identifiers of the fuzzing fixes. + git remote prune origin + do_gitmaster mpv v + set -ex + cd mpv + git checkout --detach origin/master HEAD is now at b5357e8... ao_alsa: try to fallback to "hdmi" before "iec958" for spdif + git remote prune origin + do_update_debian_versions + scripts/debian-update-versions + do_bootstrap + scripts/mpv-bootstrap Found 'waf', skipping download. make: Entering directory '/home/torstein/mpv-build/libass' Making distclean in libass make[1]: Entering directory '/home/torstein/mpv-build/libass/libass' test -z "libass.la" || rm -f libass.la rm -f ./so_locations rm -rf .libs _libs rm -rf x86/.libs x86/_libs rm -f *.o rm -f x86/*.o rm -f x86/*.lo rm -f *.lo rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f x86/.deps/.dirstamp rm -f x86/.dirstamp rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[1]: Leaving directory '/home/torstein/mpv-build/libass/libass' Making distclean in test make[1]: Entering directory '/home/torstein/mpv-build/libass/test' rm -rf .libs _libs rm -f test rm -f *.o rm -f *.lo rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[1]: Leaving directory '/home/torstein/mpv-build/libass/test' Making distclean in profile make[1]: Entering directory '/home/torstein/mpv-build/libass/profile' rm -rf .libs _libs rm -f profile rm -f *.o rm -f *.lo rm -f *.tab.c test -z "" || rm -f test . = "." || test -z "" || rm -f rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -rf ./.deps rm -f Makefile make[1]: Leaving directory '/home/torstein/mpv-build/libass/profile' make[1]: Entering directory '/home/torstein/mpv-build/libass' rm -rf .libs _libs rm -f *.lo test -z "libass.pc" || rm -f libass.pc test . = "." || test -z "" || rm -f rm -f config.h stamp-h1 rm -f libtool config.lt rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags rm -f cscope.out cscope.in.out cscope.po.out cscope.files make[1]: Leaving directory '/home/torstein/mpv-build/libass' rm -f config.status config.cache config.log configure.lineno config.status.lineno rm -f Makefile make: Leaving directory '/home/torstein/mpv-build/libass' 'distclean' finished successfully (0.010s) Running autoreconf... autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:6: installing './compile' configure.ac:2: installing './missing' libass/Makefile.am: installing './depcomp' autoreconf: Leaving directory `.' checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking how to print strings... printf checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) gcc3 checking how to run the C preprocessor... gcc -E checking dependency style of gcc... gcc3 checking for ANSI C header files... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for stdint.h... (cached) yes checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for strdup... yes checking for strndup... yes checking for library containing libiconv_open... no checking for library containing iconv_open... none required checking for fabs in -lm... yes checking for yasm... yes checking if yasm supports vpmovzxwd... yes checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for FREETYPE... yes checking for FRIBIDI... yes checking for FONTCONFIG... yes checking for CORETEXT... no checking for DIRECTWRITE... no checking for HARFBUZZ... yes checking whether make supports nested variables... (cached) yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libass/Makefile config.status: creating test/Makefile config.status: creating profile/Makefile config.status: creating libass.pc config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands make: Entering directory '/home/torstein/mpv-build/libass' Making install in libass make[1]: Entering directory '/home/torstein/mpv-build/libass/libass' CC ass.lo CC ass_font.lo CC ass_fontselect.lo CC ass_cache.lo CC ass_render.lo CC ass_utils.lo CC ass_bitmap.lo CC ass_blur.lo CC ass_library.lo CC ass_drawing.lo CC ass_parse.lo CC ass_render_api.lo CC ass_shaper.lo CC ass_strtod.lo CC ass_fontconfig.lo CC ass_string.lo CC ass_rasterizer.lo CC ass_rasterizer_c.lo YASM x86/blend_bitmaps.lo YASM x86/blur.lo YASM x86/cpuid.lo YASM x86/utils.lo YASM x86/rasterizer.lo YASM x86/be_blur.lo CCLD libass.la ar: `u' modifier ignored since `D' is the default (see `U') make[2]: Entering directory '/home/torstein/mpv-build/libass/libass' /bin/mkdir -p '/home/torstein/mpv-build/build_libs/lib' /bin/mkdir -p '/home/torstein/mpv-build/build_libs/include/ass' /bin/bash ../libtool --mode=install /usr/bin/install -c libass.la '/home/torstein/mpv-build/build_libs/lib' /usr/bin/install -c -m 644 ass.h ass_types.h '/home/torstein/mpv-build/build_libs/include/ass' libtool: install: /usr/bin/install -c .libs/libass.lai /home/torstein/mpv-build/build_libs/lib/libass.la libtool: install: /usr/bin/install -c .libs/libass.a /home/torstein/mpv-build/build_libs/lib/libass.a libtool: install: chmod 644 /home/torstein/mpv-build/build_libs/lib/libass.a libtool: install: ranlib /home/torstein/mpv-build/build_libs/lib/libass.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/sbin" ldconfig -n /home/torstein/mpv-build/build_libs/lib ---------------------------------------------------------------------- Libraries have been installed in: /home/torstein/mpv-build/build_libs/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make[2]: Leaving directory '/home/torstein/mpv-build/libass/libass' make[1]: Leaving directory '/home/torstein/mpv-build/libass/libass' make[1]: Entering directory '/home/torstein/mpv-build/libass' make[2]: Entering directory '/home/torstein/mpv-build/libass' make[2]: Nothing to be done for 'install-exec-am'. /bin/mkdir -p '/home/torstein/mpv-build/build_libs/lib/pkgconfig' /usr/bin/install -c -m 644 libass.pc '/home/torstein/mpv-build/build_libs/lib/pkgconfig' make[2]: Leaving directory '/home/torstein/mpv-build/libass' make[1]: Leaving directory '/home/torstein/mpv-build/libass' make: Leaving directory '/home/torstein/mpv-build/libass' Auto-enabling GnuTLS. Using ffmpeg options: --enable-gpl --disable-debug --disable-doc --enable-vdpau --enable-libass --enable-gnutls install prefix /home/torstein/mpv-build/build_libs source path /home/torstein/mpv-build/ffmpeg C compiler gcc C library glibc ARCH x86 (generic) big-endian no runtime cpu detection yes yasm yes MMX enabled yes MMXEXT enabled yes 3DNow! enabled yes 3DNow! extended enabled yes SSE enabled yes SSSE3 enabled yes AESNI enabled yes AVX enabled yes XOP enabled yes FMA3 enabled yes FMA4 enabled yes i686 features enabled yes CMOV is fast yes EBX available yes EBP available yes debug symbols no strip symbols yes optimize for size no optimizations yes static yes shared no postprocessing support yes new filter support yes network support yes threading support pthreads safe bitstream reader yes SDL2 support no opencl enabled no JNI support no texi2html enabled no perl enabled yes pod2man enabled yes makeinfo enabled no makeinfo supports HTML no Enabled programs: ffmpeg ffprobe ffserver External libraries: gnutls libass libxcb_shape libxcb_xfixes xlib zlib iconv libxcb External libraries providing hardware acceleration: nvenc vaapi vdpau Libraries: avcodec avfilter avutil postproc swresample swscale avdevice avformat Enabled decoders: aac avrn fic mp3adu pcm_u8 theora aac_fixed avrp flac mp3adufloat pcm_zork thp aac_latm avs flashsv mp3float pcx tiertexseqvideo aasc avui flashsv2 mp3on4 pgm tiff ac3 ayuv flic mp3on4float pgmyuv tmv ac3_fixed bethsoftvid flv mpc7 pgssub truehd adpcm_4xm bfi fourxm mpc8 pictor truemotion1 adpcm_adx bink fraps mpeg1_vdpau pjs truemotion2 adpcm_afc binkaudio_dct frwu mpeg1video png truemotion2rt adpcm_aica binkaudio_rdft g2m mpeg2video ppm truespeech adpcm_ct bintext g723_1 mpeg4 prores tscc adpcm_dtk bmp g729 mpeg4_vdpau prores_lgpl tscc2 adpcm_ea bmv_audio gif mpeg_vdpau ptx tta adpcm_ea_maxis_xa bmv_video gsm mpegvideo qcelp twinvq adpcm_ea_r1 brender_pix gsm_ms mpl2 qdm2 txd adpcm_ea_r2 c93 h261 msa1 qdraw ulti adpcm_ea_r3 cavs h263 msmpeg4v1 qpeg utvideo adpcm_ea_xas ccaption h263i msmpeg4v2 qtrle v210 adpcm_g722 cdgraphics h263p msmpeg4v3 r10k v210x adpcm_g726 cdxl h264 msrle r210 v308 adpcm_g726le cfhd h264_vdpau mss1 ra_144 v408 adpcm_ima_amv cinepak hap mss2 ra_288 v410 adpcm_ima_apc cljr hevc msvideo1 ralf vb adpcm_ima_dat4 cllc hnm4_video mszh rawvideo vble adpcm_ima_dk3 comfortnoise hq_hqa mts2 realtext vc1 adpcm_ima_dk4 cook hqx mvc1 rl2 vc1_vdpau adpcm_ima_ea_eacs cpia huffyuv mvc2 roq vc1image adpcm_ima_ea_sead cscd iac mxpeg roq_dpcm vcr1 adpcm_ima_iss cyuv idcin nellymoser rpza vmdaudio adpcm_ima_oki dca idf nuv rscc vmdvideo adpcm_ima_qt dds iff_ilbm on2avc rv10 vmnc adpcm_ima_rad dfa imc opus rv20 vorbis adpcm_ima_smjpeg dirac indeo2 paf_audio rv30 vp3 adpcm_ima_wav dnxhd indeo3 paf_video rv40 vp5 adpcm_ima_ws dpx indeo4 pam s302m vp6 adpcm_ms dsd_lsbf indeo5 pbm sami vp6a adpcm_mtaf dsd_lsbf_planar interplay_acm pcm_alaw sanm vp6f adpcm_psx dsd_msbf interplay_dpcm pcm_bluray screenpresso vp7 adpcm_sbpro_2 dsd_msbf_planar interplay_video pcm_dvd sdx2_dpcm vp8 adpcm_sbpro_3 dsicinaudio jacosub pcm_f32be sgi vp9 adpcm_sbpro_4 dsicinvideo jpeg2000 pcm_f32le sgirle vplayer adpcm_swf dss_sp jpegls pcm_f64be sheervideo vqa adpcm_thp dst jv pcm_f64le shorten wavpack adpcm_thp_le dvaudio kgv1 pcm_lxf sipr webp adpcm_vima dvbsub kmvc pcm_mulaw smackaud webvtt adpcm_xa dvdsub lagarith pcm_s16be smacker wmalossless adpcm_yamaha dvvideo loco pcm_s16be_planar smc wmapro aic dxa m101 pcm_s16le smvjpeg wmav1 alac dxtory mace3 pcm_s16le_planar snow wmav2 alias_pix dxv mace6 pcm_s24be sol_dpcm wmavoice als eac3 magicyuv pcm_s24daud sonic wmv1 amrnb eacmv mdec pcm_s24le sp5x wmv2 amrwb eamad metasound pcm_s24le_planar srt wmv3 amv eatgq microdvd pcm_s32be ssa wmv3_vdpau anm eatgv mimic pcm_s32le stl wmv3image ansi eatqi mjpeg pcm_s32le_planar subrip wnv1 ape eightbps mjpegb pcm_s64be subviewer ws_snd1 apng eightsvx_exp mlp pcm_s64le subviewer1 xan_dpcm ass eightsvx_fib mmvideo pcm_s8 sunrast xan_wc3 asv1 escape124 motionpixels pcm_s8_planar svq1 xan_wc4 asv2 escape130 movtext pcm_u16be svq3 xbin atrac1 evrc mp1 pcm_u16le tak xbm atrac3 exr mp1float pcm_u24be targa xface atrac3p ffv1 mp2 pcm_u24le targa_y216 xl aura ffvhuff mp2float pcm_u32be tdsc xma1 aura2 ffwavesynth mp3 pcm_u32le text xma2 xsub y41p yop zero12v zlib zmbv xwd ylc yuv4 zerocodec Enabled encoders: a64multi comfortnoise ljpeg pcm_s16be_planar ppm tiff a64multi5 dca mjpeg pcm_s16le prores truehd aac dnxhd mjpeg_vaapi pcm_s16le_planar prores_aw tta ac3 dpx mlp pcm_s24be prores_ks utvideo ac3_fixed dvbsub movtext pcm_s24daud qtrle v210 adpcm_adx dvdsub mp2 pcm_s24le r10k v308 adpcm_g722 dvvideo mp2fixed pcm_s24le_planar r210 v408 adpcm_g726 eac3 mpeg1video pcm_s32be ra_144 v410 adpcm_ima_qt ffv1 mpeg2video pcm_s32le rawvideo vc2 adpcm_ima_wav ffvhuff mpeg4 pcm_s32le_planar roq vorbis adpcm_ms flac msmpeg4v2 pcm_s64be roq_dpcm wavpack adpcm_swf flashsv msmpeg4v3 pcm_s64le rv10 webvtt adpcm_yamaha flashsv2 msvideo1 pcm_s8 rv20 wmav1 alac flv nellymoser pcm_s8_planar s302m wmav2 alias_pix g723_1 nvenc pcm_u16be sgi wmv1 amv gif nvenc_h264 pcm_u16le snow wmv2 apng h261 nvenc_hevc pcm_u24be sonic wrapped_avframe ass h263 pam pcm_u24le sonic_ls xbm asv1 h263p pbm pcm_u32be srt xface asv2 h264_nvenc pcm_alaw pcm_u32le ssa xsub avrp h264_vaapi pcm_f32be pcm_u8 subrip xwd avui hevc_nvenc pcm_f32le pcx sunrast y41p ayuv hevc_vaapi pcm_f64be pgm svq1 yuv4 bmp huffyuv pcm_f64le pgmyuv targa zlib cinepak jpeg2000 pcm_mulaw png text zmbv cljr jpegls pcm_s16be Enabled hwaccels: h263_vaapi hevc_vaapi mpeg2_vaapi mpeg4_vdpau vc1_vdpau wmv3_vaapi h264_vaapi hevc_vdpau mpeg2_vdpau vc1_vaapi vp9_vaapi wmv3_vdpau h264_vdpau mpeg1_vdpau mpeg4_vaapi Enabled parsers: aac dca dvdsub h264 mpegvideo tak aac_latm dirac flac hevc opus vc1 ac3 dnxhd g729 mjpeg png vorbis adx dpx gsm mlp pnm vp3 bmp dvaudio h261 mpeg4video rv30 vp8 cavsvideo dvbsub h263 mpegaudio rv40 vp9 cook dvd_nav Enabled demuxers: aa dcstr image2 mlp pcm_s8 subviewer1 aac dfa image2_alias_pix mlv pcm_u16be sup ac3 dirac image2_brender_pix mm pcm_u16le svag acm dnxhd image2pipe mmf pcm_u24be swf act dsf image_bmp_pipe mov pcm_u24le tak adf dsicin image_dds_pipe mp3 pcm_u32be tedcaptions adp dss image_dpx_pipe mpc pcm_u32le thp ads dts image_exr_pipe mpc8 pcm_u8 threedostr adx dtshd image_j2k_pipe mpegps pjs tiertexseq aea dv image_jpeg_pipe mpegts pmp tmv afc dvbsub image_jpegls_pipe mpegtsraw pva truehd aiff dvbtxt image_pam_pipe mpegvideo pvf tta aix dxa image_pbm_pipe mpjpeg qcp tty amr ea image_pcx_pipe mpl2 r3d txd anm ea_cdata image_pgm_pipe mpsub rawvideo v210 apc eac3 image_pgmyuv_pipe msf realtext v210x ape epaf image_pictor_pipe msnwc_tcp redspark vag apng ffm image_png_pipe mtaf rl2 vc1 aqtitle ffmetadata image_ppm_pipe mtv rm vc1t asf filmstrip image_qdraw_pipe musx roq vivo asf_o flac image_sgi_pipe mv rpl vmd ass flic image_sunrast_pipe mvi rsd vobsub ast flv image_tiff_pipe mxf rso voc au fourxm image_webp_pipe mxg rtp vpk avi frm ingenient nc rtsp vplayer avr fsb ipmovie nistsphere sami vqf avs g722 ircam nsv sap w64 bethsoftvid g723_1 iss nut sbg wav bfi g729 iv8 nuv sdp wc3 bfstm genh ivf ogg sdr2 webm_dash_manifest bink gif ivr oma segafilm webvtt bintext gsm jacosub paf shorten wsaud bit gxf jv pcm_alaw siff wsd bmv h261 live_flv pcm_f32be sln wsvqa boa h263 lmlm4 pcm_f32le smacker wtv brstm h264 loas pcm_f64be smjpeg wv c93 hevc lrc pcm_f64le smush wve caf hls lvf pcm_mulaw sol xa cavsvideo hnm lxf pcm_s16be sox xbin cdg ico m4v pcm_s16le spdif xmv cdxl idcin matroska pcm_s24be srt xvag cine idf mgsts pcm_s24le stl xwma concat iff microdvd pcm_s32be str yop data ilbc mjpeg pcm_s32le subviewer yuv4mpegpipe daud Enabled muxers: a64 eac3 image2 mpeg2dvd pcm_s24le spdif ac3 f4v image2pipe mpeg2svcd pcm_s32be spx adts ffm ipod mpeg2video pcm_s32le srt adx ffmetadata ircam mpeg2vob pcm_s8 stream_segment aiff fifo ismv mpegts pcm_u16be swf amr filmstrip ivf mpjpeg pcm_u16le tee apng flac jacosub mxf pcm_u24be tg2 asf flv latm mxf_d10 pcm_u24le tgp asf_stream framecrc lrc mxf_opatom pcm_u32be truehd ass framehash m4v null pcm_u32le tta ast framemd5 matroska nut pcm_u8 uncodedframecrc au g722 matroska_audio oga psp vc1 avi g723_1 md5 ogg rawvideo vc1t avm2 gif microdvd ogv rm voc bit gsm mjpeg oma roq w64 caf gxf mkvtimestamp_v2 opus rso wav cavsvideo h261 mlp pcm_alaw rtp webm crc h263 mmf pcm_f32be rtp_mpegts webm_chunk dash h264 mov pcm_f32le rtsp webm_dash_manifest data hash mp2 pcm_f64be sap webp daud hds mp3 pcm_f64le segment webvtt dirac hevc mp4 pcm_mulaw singlejpeg wtv dnxhd hls mpeg1system pcm_s16be smjpeg wv dts ico mpeg1vcd pcm_s16le smoothstreaming yuv4mpegpipe dv ilbc mpeg1video pcm_s24be sox Enabled protocols: async file httpproxy mmst rtmpts tee cache ftp https pipe rtp tls_gnutls concat gopher icecast rtmp srtp udp crypto hls md5 rtmps subfile udplite data http mmsh rtmpt tcp unix ffrtmphttp Enabled filters: abench ass decimate hstack perspective silencedetect acompressor astats deflate hue phase silenceremove acrossfade astreamselect dejudder hwdownload pixdesctest sine acrusher atadenoise delogo hwupload pp smartblur adelay atempo deshake hysteresis pp7 smptebars adrawgraph atrim detelecine idet prewitt smptehdbars aecho avectorscope dilation il psnr sobel aemphasis avgblur displace inflate pullup spectrumsynth aeval bandpass drawbox interlace qp split aevalsrc bandreject drawgraph interleave random spp afade bass drawgrid join readvitc ssim afftfilt bbox dynaudnorm kerndeint realtime stereo3d aformat bench earwax lenscorrection remap stereotools agate biquad ebur128 life removegrain stereowiden ahistogram bitplanenoise edgedetect loop removelogo streamselect ainterleave blackdetect elbg lowpass repeatfields subtitles alimiter blackframe eq lut replaygain super2xsai allpass blend equalizer lut2 reverse swaprect allrgb boxblur erosion lut3d rgbtestsrc swapuv allyuv bwdif extractplanes lutrgb rotate tblend aloop cellauto extrastereo lutyuv sab telecine alphaextract channelmap fade mandelbrot scale testsrc alphamerge channelsplit fftfilt maskedclamp scale2ref testsrc2 amerge chorus field maskedmerge scale_vaapi thumbnail ametadata chromakey fieldhint mcdeint select tile amix ciescope fieldmatch mergeplanes selectivecolor tinterlace amovie codecview fieldorder mestimate sendcmd transpose anequalizer color find_rect metadata separatefields treble anoisesrc colorbalance firequalizer minterpolate setdar tremolo anull colorchannelmixer flanger movie setfield trim anullsink colorkey format mpdecimate setpts unsharp anullsrc colorlevels fps mptestsrc setsar uspp apad colormatrix framepack negate settb vaguedenoiser aperms colorspace framerate nlmeans showcqt vectorscope aphasemeter compand framestep nnedi showfreqs vflip aphaser compensationdelay fspp noformat showinfo vibrato apulsator concat gblur noise showpalette vignette arealtime convolution geq null showspectrum volume aresample copy gradfun nullsink showspectrumpic volumedetect areverse cover_rect haldclut nullsrc showvolume vstack aselect crop haldclutsrc overlay showwaves w3fdif asendcmd cropdetect hdcd owdenoise showwavespic waveform asetnsamples crystalizer hflip pad shuffleframes weave asetpts curves highpass palettegen shuffleplanes xbr asetrate datascope histeq paletteuse sidechaincompress yadif asettb dcshift histogram pan sidechaingate yuvtestsrc ashowinfo dctdnoiz hqdn3d perms signalstats zoompan asplit deband hqx Enabled bsfs: aac_adtstoasc dump_extradata imx_dump_header mov2textsub noise text2movsub chomp h264_mp4toannexb mjpeg2jpeg mp3_header_decompress remove_extradata vp9_superframe dca_core hevc_mp4toannexb mjpega_dump_header mpeg4_unpack_bframes Enabled indevs: alsa fbdev lavfi oss v4l2 x11grab_xcb dv1394 jack Enabled outdevs: alsa fbdev oss v4l2 xv License: GPL version 2 or later Creating config.mak, config.h, and doc/config.texi... make: Entering directory '/home/torstein/mpv-build/ffmpeg_build' CC ffmpeg.o CC libavdevice/alldevices.o CC libavdevice/alsa_dec.o CC libavdevice/alsa.o src/ffmpeg.c: In function 'do_streamcopy': src/ffmpeg.c:1981:9: warning: 'avpicture_fill' is deprecated [-Wdeprecated-declarations] int ret = avpicture_fill(&pict, opkt.data, ost->st->codecpar->format, ost->st->codecpar->width, ost->st->codecpar->height); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffmpeg.c:42: src/libavcodec/avcodec.h:5451:5: note: declared here int avpicture_fill(AVPicture *picture, const uint8_t *ptr, ^ src/ffmpeg.c: In function 'init_output_stream': src/ffmpeg.c:3051:9: warning: 'avcodec_copy_context' is deprecated [-Wdeprecated-declarations] ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffmpeg.c:42: src/libavcodec/avcodec.h:4239:5: note: declared here int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src); ^ src/ffmpeg.c:3051:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] ret = avcodec_copy_context(ost->st->codec, ost->enc_ctx); ^ In file included from src/ffmpeg.c:42:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg.c:3079:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] ost->st->codec->codec= ost->enc_ctx->codec; ^ In file included from src/ffmpeg.c:42:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg.c: In function 'check_keyboard_interaction': src/ffmpeg.c:3741:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] debug = input_streams[0]->st->codec->debug<<1; ^ In file included from src/ffmpeg.c:42:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg.c:3760:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] input_streams[i]->st->codec->debug = debug; ^ In file included from src/ffmpeg.c:42:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg.c: In function 'sigterm_handler': src/ffmpeg.c:329:9: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] write(2/*STDERR_FILENO*/, "Received > 3 system signals, hard exiting\n", ^ CC libavdevice/alsa_enc.o src/ffmpeg.c: In function 'sub2video_push_ref': src/ffmpeg.c:222:9: warning: ignoring return value of 'av_buffersrc_add_frame_flags', declared with attribute warn_unused_result [-Wunused-result] av_buffersrc_add_frame_flags(ist->filters[i]->filter, frame, ^ src/ffmpeg.c: In function 'sub2video_flush': src/ffmpeg.c:297:9: warning: ignoring return value of 'av_buffersrc_add_frame', declared with attribute warn_unused_result [-Wunused-result] av_buffersrc_add_frame(ist->filters[i]->filter, NULL); ^ CC libavdevice/avdevice.o CC libavdevice/dv1394.o CC libavdevice/fbdev_common.o CC libavdevice/fbdev_dec.o CC libavdevice/fbdev_enc.o CC libavdevice/jack.o CC libavdevice/lavfi.o CC libavdevice/oss.o CC libavdevice/oss_enc.o CC libavdevice/oss_dec.o CC libavdevice/timefilter.o CC libavdevice/utils.o CC libavdevice/v4l2-common.o CC libavdevice/v4l2.o CC libavdevice/v4l2enc.o CC libavdevice/xcbgrab.o CC libavdevice/xv.o CC libavformat/3dostr.o CC libavformat/4xm.o CC libavformat/a64.o CC libavformat/aacdec.o CC libavformat/ac3dec.o CC libavformat/aadec.o CC libavformat/acm.o CC libavformat/act.o CC libavformat/adp.o CC libavformat/ads.o CC libavformat/adtsenc.o CC libavformat/adxdec.o CC libavformat/aea.o CC libavformat/afc.o CC libavformat/aiffdec.o CC libavformat/aiffenc.o CC libavformat/aixdec.o CC libavformat/allformats.o CC libavformat/amr.o CC libavformat/anm.o CC libavformat/apc.o CC libavformat/ape.o CC libavformat/apetag.o CC libavformat/apngdec.o CC libavformat/apngenc.o CC libavformat/aqtitledec.o CC libavformat/asf.o CC libavformat/asfcrypt.o CC libavformat/asfdec_f.o CC libavformat/asfdec_o.o CC libavformat/asfenc.o CC libavformat/assdec.o CC libavformat/assenc.o CC libavformat/ast.o CC libavformat/astdec.o CC libavformat/astenc.o CC libavformat/async.o CC libavformat/au.o CC libavformat/audiointerleave.o CC libavformat/avc.o CC libavformat/avidec.o CC libavformat/avienc.o CC libavformat/avio.o CC libavformat/aviobuf.o CC libavformat/avlanguage.o CC libavformat/avr.o CC libavformat/avs.o CC libavformat/bethsoftvid.o CC libavformat/bfi.o CC libavformat/bink.o CC libavformat/bintext.o CC libavformat/bit.o CC libavformat/bmv.o CC libavformat/boadec.o CC libavformat/brstm.o CC libavformat/c93.o CC libavformat/cache.o CC libavformat/caf.o CC libavformat/cafdec.o CC libavformat/cafenc.o CC libavformat/cavsvideodec.o CC libavformat/cdg.o CC libavformat/cdxl.o CC libavformat/cinedec.o CC libavformat/concat.o CC libavformat/concatdec.o CC libavformat/crcenc.o CC libavformat/crypto.o src/libavformat/concatdec.c: In function 'detect_stream_specific': src/libavformat/concatdec.c:206:9: warning: 'av_bitstream_filter_init' is deprecated [-Wdeprecated-declarations] if (!(bsf = av_bitstream_filter_init("h264_mp4toannexb"))) { ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/concatdec.c:27: src/libavcodec/avcodec.h:5842:27: note: declared here AVBitStreamFilterContext *av_bitstream_filter_init(const char *name); ^ src/libavformat/concatdec.c: In function 'concat_read_close': src/libavformat/concatdec.c:372:17: warning: 'av_bitstream_filter_close' is deprecated [-Wdeprecated-declarations] av_bitstream_filter_close(cat->files[i].streams[j].bsf); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/concatdec.c:27: src/libavcodec/avcodec.h:5886:6: note: declared here void av_bitstream_filter_close(AVBitStreamFilterContext *bsf); ^ src/libavformat/concatdec.c: In function 'filter_packet': src/libavformat/concatdec.c:532:9: warning: 'av_bitstream_filter_filter' is deprecated [-Wdeprecated-declarations] ret = av_bitstream_filter_filter(bsf, cs->avctx, NULL, ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/concatdec.c:27: src/libavcodec/avcodec.h:5874:5: note: declared here int av_bitstream_filter_filter(AVBitStreamFilterContext *bsfc, ^ CC libavformat/cutils.o CC libavformat/dashenc.o CC libavformat/data_uri.o CC libavformat/dauddec.o CC libavformat/daudenc.o CC libavformat/dcstr.o CC libavformat/dfa.o CC libavformat/diracdec.o CC libavformat/dnxhddec.o CC libavformat/dsfdec.o CC libavformat/dsicin.o CC libavformat/dss.o CC libavformat/dtsdec.o CC libavformat/dtshddec.o CC libavformat/dump.o src/libavformat/dump.c: In function 'dump_stream_format': src/libavformat/dump.c:429:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] avctx->properties = st->codec->properties; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:430:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] avctx->codec = st->codec->codec; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:431:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] avctx->qmin = st->codec->qmin; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:432:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] avctx->qmax = st->codec->qmax; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:433:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] avctx->coded_width = st->codec->coded_width; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:434:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] avctx->coded_height = st->codec->coded_height; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:469:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] int tbc = st->codec->time_base.den && st->codec->time_base.num; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:469:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] int tbc = st->codec->time_base.den && st->codec->time_base.num; ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/dump.c:481:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] print_fps(1 / av_q2d(st->codec->time_base), "tbc"); ^ In file included from src/libavformat/dump.c:36:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ CC libavformat/dv.o CC libavformat/dvbsub.o CC libavformat/dvbtxt.o CC libavformat/dvenc.o CC libavformat/dxa.o CC libavformat/eacdata.o CC libavformat/electronicarts.o CC libavformat/epafdec.o CC libavformat/ffmdec.o CC libavformat/ffmenc.o src/libavformat/ffmdec.c: In function 'ffm_close': src/libavformat/ffmdec.c:254:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] av_freep(&s->streams[i]->codec->rc_eq); ^ In file included from src/libavformat/ffmdec.c:31:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/ffmdec.c:254:9: warning: 'rc_eq' is deprecated [-Wdeprecated-declarations] av_freep(&s->streams[i]->codec->rc_eq); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2667:17: note: declared here const char *rc_eq; ^ src/libavformat/ffmdec.c: In function 'ffm2_read_header': src/libavformat/ffmdec.c:338:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] codec = st->codec; ^ In file included from src/libavformat/ffmdec.c:31:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/ffmdec.c:397:13: warning: 'rc_eq' is deprecated [-Wdeprecated-declarations] codec->rc_eq = av_strdup(rc_eq_buf); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2667:17: note: declared here const char *rc_eq; ^ src/libavformat/ffmdec.c:408:13: warning: 'mpeg_quant' is deprecated [-Wdeprecated-declarations] codec->mpeg_quant = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2002:9: note: declared here int mpeg_quant; ^ src/libavformat/ffmdec.c:410:13: warning: 'me_method' is deprecated [-Wdeprecated-declarations] codec->me_method = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:1910:30: note: declared here attribute_deprecated int me_method; ^ src/libavformat/ffmdec.c:413:13: warning: 'frame_skip_cmp' is deprecated [-Wdeprecated-declarations] codec->frame_skip_cmp = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2766:9: note: declared here int frame_skip_cmp; ^ src/libavformat/ffmdec.c:414:13: warning: 'rc_buffer_aggressivity' is deprecated [-Wdeprecated-declarations] codec->rc_buffer_aggressivity = av_int2double(avio_rb64(pb)); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2689:11: note: declared here float rc_buffer_aggressivity; ^ src/libavformat/ffmdec.c:417:13: warning: 'coder_type' is deprecated [-Wdeprecated-declarations] codec->coder_type = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2728:9: note: declared here int coder_type; ^ src/libavformat/ffmdec.c:422:13: warning: 'scenechange_threshold' is deprecated [-Wdeprecated-declarations] codec->scenechange_threshold = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2260:9: note: declared here int scenechange_threshold; ^ src/libavformat/ffmdec.c:423:13: warning: 'b_frame_strategy' is deprecated [-Wdeprecated-declarations] codec->b_frame_strategy = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:1981:9: note: declared here int b_frame_strategy; ^ src/libavformat/ffmdec.c:490:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_parameters_from_context(s->streams[i]->codecpar, s->streams[i]->codec); ^ In file included from src/libavformat/ffmdec.c:31:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/ffmdec.c: In function 'ffm_read_header': src/libavformat/ffmdec.c:550:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] codec = st->codec; ^ In file included from src/libavformat/ffmdec.c:31:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/ffmdec.c:597:13: warning: 'rc_eq' is deprecated [-Wdeprecated-declarations] codec->rc_eq = av_strdup(rc_eq_buf); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2667:17: note: declared here const char *rc_eq; ^ src/libavformat/ffmdec.c:608:13: warning: 'mpeg_quant' is deprecated [-Wdeprecated-declarations] codec->mpeg_quant = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2002:9: note: declared here int mpeg_quant; ^ src/libavformat/ffmdec.c:610:13: warning: 'me_method' is deprecated [-Wdeprecated-declarations] codec->me_method = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:1910:30: note: declared here attribute_deprecated int me_method; ^ src/libavformat/ffmdec.c:613:13: warning: 'frame_skip_cmp' is deprecated [-Wdeprecated-declarations] codec->frame_skip_cmp = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2766:9: note: declared here int frame_skip_cmp; ^ src/libavformat/ffmdec.c:614:13: warning: 'rc_buffer_aggressivity' is deprecated [-Wdeprecated-declarations] codec->rc_buffer_aggressivity = av_int2double(avio_rb64(pb)); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2689:11: note: declared here float rc_buffer_aggressivity; ^ src/libavformat/ffmdec.c:617:13: warning: 'coder_type' is deprecated [-Wdeprecated-declarations] codec->coder_type = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2728:9: note: declared here int coder_type; ^ src/libavformat/ffmdec.c:622:13: warning: 'scenechange_threshold' is deprecated [-Wdeprecated-declarations] codec->scenechange_threshold = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:2260:9: note: declared here int scenechange_threshold; ^ src/libavformat/ffmdec.c:623:13: warning: 'b_frame_strategy' is deprecated [-Wdeprecated-declarations] codec->b_frame_strategy = avio_rb32(pb); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffmdec.c:31: src/libavcodec/avcodec.h:1981:9: note: declared here int b_frame_strategy; ^ CC libavformat/ffmetadec.o src/libavformat/ffmenc.c: In function 'ffm_write_header': src/libavformat/ffmenc.c:246:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] bit_rate += st->codec->bit_rate; ^ In file included from src/libavformat/ffmenc.c:27:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/ffmenc.c:259:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] codec = st->codec; ^ In file included from src/libavformat/ffmenc.c:27:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ CC libavformat/ffmetaenc.o CC libavformat/fifo.o CC libavformat/file.o CC libavformat/filmstripdec.o CC libavformat/filmstripenc.o CC libavformat/flac_picture.o CC libavformat/flacdec.o CC libavformat/flacenc.o CC libavformat/flacenc_header.o CC libavformat/flic.o CC libavformat/flvdec.o CC libavformat/flvenc.o CC libavformat/format.o CC libavformat/framecrcenc.o CC libavformat/framehash.o CC libavformat/frmdec.o CC libavformat/fsb.o CC libavformat/ftp.o CC libavformat/g722.o CC libavformat/g723_1.o CC libavformat/g729dec.o CC libavformat/genh.o CC libavformat/gif.o CC libavformat/gifdec.o CC libavformat/gopher.o CC libavformat/gsmdec.o CC libavformat/gxf.o CC libavformat/gxfenc.o CC libavformat/h261dec.o CC libavformat/h263dec.o CC libavformat/h264dec.o CC libavformat/hashenc.o CC libavformat/hdsenc.o CC libavformat/hevc.o CC libavformat/hevcdec.o CC libavformat/hls.o CC libavformat/hlsenc.o CC libavformat/hlsproto.o CC libavformat/hnm.o CC libavformat/http.o CC libavformat/httpauth.o CC libavformat/icecast.o CC libavformat/icodec.o CC libavformat/icoenc.o CC libavformat/id3v1.o CC libavformat/id3v2.o CC libavformat/id3v2enc.o CC libavformat/idcin.o CC libavformat/idroqdec.o CC libavformat/idroqenc.o CC libavformat/iff.o CC libavformat/ilbc.o CC libavformat/img2.o CC libavformat/img2_alias_pix.o CC libavformat/img2_brender_pix.o CC libavformat/img2dec.o CC libavformat/img2enc.o CC libavformat/ingenientdec.o src/libavformat/img2enc.c: In function 'write_packet': src/libavformat/img2enc.c:163:13: warning: 'av_dup_packet' is deprecated [-Wdeprecated-declarations] (ret = av_dup_packet(&pkt2)) < 0 || ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/img2enc.c:30: src/libavcodec/avcodec.h:4448:5: note: declared here int av_dup_packet(AVPacket *pkt); ^ CC libavformat/ipmovie.o CC libavformat/ircam.o CC libavformat/ircamdec.o CC libavformat/ircamenc.o CC libavformat/isom.o CC libavformat/iss.o CC libavformat/iv8.o src/libavformat/isom.c: In function 'ff_mp4_read_dec_config_descr': src/libavformat/isom.c:483:14: warning: variable 'v' set but not used [-Wunused-but-set-variable] unsigned v; ^ CC libavformat/ivfdec.o CC libavformat/ivfenc.o CC libavformat/jacosubdec.o CC libavformat/jacosubenc.o CC libavformat/jvdec.o CC libavformat/latmenc.o CC libavformat/lmlm4.o CC libavformat/loasdec.o CC libavformat/lrc.o CC libavformat/lrcdec.o CC libavformat/lrcenc.o CC libavformat/lvfdec.o CC libavformat/lxfdec.o CC libavformat/m4vdec.o CC libavformat/matroska.o CC libavformat/matroskadec.o CC libavformat/matroskaenc.o CC libavformat/md5proto.o CC libavformat/metadata.o CC libavformat/microdvddec.o CC libavformat/mgsts.o CC libavformat/microdvdenc.o CC libavformat/mkvtimestamp_v2.o CC libavformat/mlpdec.o CC libavformat/mlvdec.o CC libavformat/mm.o CC libavformat/mmf.o CC libavformat/mms.o CC libavformat/mmsh.o CC libavformat/mmst.o CC libavformat/mov.o src/libavformat/mov.c: In function 'get_edit_list_entry': src/libavformat/mov.c:2778:29: warning: passing argument 1 of 'avpriv_request_sample' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] avpriv_request_sample(msc, "Support for mvhd.timescale = 0 with editlists"); ^ In file included from src/libavformat/mov.c:32:0: src/libavutil/internal.h:236:6: note: expected 'void *' but argument is of type 'const MOVStreamContext * {aka const struct MOVStreamContext *}' void avpriv_request_sample(void *avc, ^ CC libavformat/mov_chan.o CC libavformat/movenc.o CC libavformat/movenccenc.o CC libavformat/movenchint.o CC libavformat/mp3dec.o CC libavformat/mp3enc.o CC libavformat/mpc.o CC libavformat/mpc8.o CC libavformat/mpeg.o CC libavformat/mpegenc.o CC libavformat/mpegts.o src/libavformat/movenc.c: In function 'mov_flush_fragment': src/libavformat/movenc.c:4467:12: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] static int mov_flush_fragment(AVFormatContext *s, int force) ^ src/libavformat/movenc.c:4467:12: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] src/libavformat/movenc.c:868:8: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] if (cluster_idx >= track->entry) ^ CC libavformat/mpegtsenc.o CC libavformat/mpegvideodec.o CC libavformat/mpjpeg.o CC libavformat/mpjpegdec.o CC libavformat/mpl2dec.o CC libavformat/mpsubdec.o CC libavformat/msf.o CC libavformat/msnwc_tcp.o CC libavformat/mtaf.o CC libavformat/mtv.o CC libavformat/musx.o CC libavformat/mux.o CC libavformat/mvdec.o CC libavformat/mvi.o CC libavformat/mxf.o CC libavformat/mxfdec.o CC libavformat/mxfenc.o CC libavformat/mxg.o CC libavformat/ncdec.o CC libavformat/network.o CC libavformat/nistspheredec.o CC libavformat/nsvdec.o CC libavformat/nullenc.o CC libavformat/nut.o CC libavformat/nutdec.o CC libavformat/nutenc.o CC libavformat/nuv.o CC libavformat/oggdec.o CC libavformat/oggenc.o CC libavformat/oggparsecelt.o CC libavformat/oggparsedaala.o CC libavformat/oggparsedirac.o CC libavformat/oggparseflac.o CC libavformat/oggparseopus.o CC libavformat/oggparseogm.o CC libavformat/oggparseskeleton.o CC libavformat/oggparsespeex.o CC libavformat/oggparsetheora.o CC libavformat/oggparsevorbis.o CC libavformat/oggparsevp8.o CC libavformat/oma.o CC libavformat/omadec.o CC libavformat/omaenc.o CC libavformat/options.o CC libavformat/os_support.o CC libavformat/paf.o CC libavformat/pcm.o CC libavformat/pcmdec.o CC libavformat/pcmenc.o CC libavformat/pjsdec.o CC libavformat/pmpdec.o CC libavformat/protocols.o CC libavformat/psxstr.o CC libavformat/pva.o CC libavformat/pvfdec.o CC libavformat/qcp.o CC libavformat/qtpalette.o CC libavformat/r3d.o CC libavformat/rawdec.o CC libavformat/rawenc.o CC libavformat/rawutils.o CC libavformat/rdt.o CC libavformat/rawvideodec.o CC libavformat/realtextdec.o CC libavformat/redspark.o CC libavformat/replaygain.o CC libavformat/riff.o CC libavformat/riffdec.o CC libavformat/riffenc.o CC libavformat/rl2.o CC libavformat/rm.o CC libavformat/rmdec.o CC libavformat/rmenc.o CC libavformat/rmsipr.o CC libavformat/rpl.o CC libavformat/rsd.o CC libavformat/rso.o CC libavformat/rsodec.o CC libavformat/rsoenc.o CC libavformat/rtmphttp.o CC libavformat/rtmppkt.o CC libavformat/rtmpproto.o CC libavformat/rtp.o CC libavformat/rtpdec.o CC libavformat/rtpdec_ac3.o CC libavformat/rtpdec_amr.o CC libavformat/rtpdec_asf.o CC libavformat/rtpdec_dv.o CC libavformat/rtpdec_g726.o CC libavformat/rtpdec_h261.o CC libavformat/rtpdec_h263.o CC libavformat/rtpdec_h263_rfc2190.o CC libavformat/rtpdec_h264.o CC libavformat/rtpdec_hevc.o CC libavformat/rtpdec_ilbc.o CC libavformat/rtpdec_jpeg.o CC libavformat/rtpdec_latm.o CC libavformat/rtpdec_mpa_robust.o CC libavformat/rtpdec_mpeg12.o CC libavformat/rtpdec_mpeg4.o src/libavformat/rtpdec_mpeg4.c: In function 'parse_fmtp': src/libavformat/rtpdec_mpeg4.c:281:38: warning: passing argument 2 of 'parse_fmtp_config' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] res = parse_fmtp_config(par, value); ^ src/libavformat/rtpdec_mpeg4.c:100:12: note: expected 'char *' but argument is of type 'const char *' static int parse_fmtp_config(AVCodecParameters *par, char *value) ^ CC libavformat/rtpdec_mpegts.o CC libavformat/rtpdec_qcelp.o CC libavformat/rtpdec_qdm2.o CC libavformat/rtpdec_qt.o CC libavformat/rtpdec_svq3.o CC libavformat/rtpdec_vc2hq.o CC libavformat/rtpdec_vp8.o CC libavformat/rtpdec_vp9.o CC libavformat/rtpdec_xiph.o CC libavformat/rtpenc.o CC libavformat/rtpenc_aac.o CC libavformat/rtpenc_amr.o CC libavformat/rtpenc_chain.o CC libavformat/rtpenc_h261.o CC libavformat/rtpenc_h263.o CC libavformat/rtpenc_h263_rfc2190.o CC libavformat/rtpenc_h264_hevc.o CC libavformat/rtpenc_jpeg.o CC libavformat/rtpenc_latm.o CC libavformat/rtpenc_mpv.o CC libavformat/rtpenc_mpegts.o CC libavformat/rtpenc_vc2hq.o CC libavformat/rtpenc_vp8.o CC libavformat/rtpenc_vp9.o CC libavformat/rtpenc_xiph.o CC libavformat/rtpproto.o CC libavformat/rtsp.o CC libavformat/rtspdec.o CC libavformat/rtspenc.o CC libavformat/samidec.o CC libavformat/sapdec.o CC libavformat/sapenc.o CC libavformat/sauce.o CC libavformat/sbgdec.o CC libavformat/sdp.o CC libavformat/sdr2.o src/libavformat/sdp.c: In function 'sdp_write_media_attributes': src/libavformat/sdp.c:692:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (st->codec) { ^ In file included from src/libavformat/sdp.c:29:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/sdp.c:696:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (st->codec->flags & AV_CODEC_FLAG_QSCALE) ^ In file included from src/libavformat/sdp.c:29:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/sdp.c:698:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] else if (!av_opt_get_int(st->codec, "vad", AV_OPT_FLAG_ENCODING_PARAM, &vad_option) && vad_option) ^ In file included from src/libavformat/sdp.c:29:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ CC libavformat/segafilm.o CC libavformat/segment.o CC libavformat/shortendec.o CC libavformat/sierravmd.o CC libavformat/smacker.o CC libavformat/siff.o CC libavformat/smjpeg.o CC libavformat/smjpegdec.o CC libavformat/smjpegenc.o CC libavformat/smoothstreamingenc.o CC libavformat/smush.o CC libavformat/sol.o CC libavformat/soxdec.o CC libavformat/spdif.o CC libavformat/soxenc.o CC libavformat/spdifdec.o CC libavformat/spdifenc.o CC libavformat/srtdec.o CC libavformat/srtenc.o CC libavformat/srtp.o CC libavformat/srtpproto.o CC libavformat/stldec.o CC libavformat/subfile.o CC libavformat/subtitles.o CC libavformat/subviewer1dec.o CC libavformat/subviewerdec.o CC libavformat/supdec.o CC libavformat/svag.o CC libavformat/swf.o CC libavformat/swfdec.o CC libavformat/swfenc.o CC libavformat/takdec.o CC libavformat/tcp.o CC libavformat/tedcaptionsdec.o CC libavformat/tee.o CC libavformat/tee_common.o CC libavformat/teeproto.o CC libavformat/tiertexseq.o CC libavformat/thp.o CC libavformat/tls.o CC libavformat/tls_gnutls.o CC libavformat/tta.o CC libavformat/tmv.o CC libavformat/ttaenc.o CC libavformat/tty.o CC libavformat/txd.o CC libavformat/udp.o CC libavformat/uncodedframecrcenc.o CC libavformat/unix.o CC libavformat/url.o CC libavformat/urldecode.o CC libavformat/utils.o CC libavformat/v210.o CC libavformat/vag.o CC libavformat/vc1dec.o src/libavformat/utils.c: In function 'avformat_transfer_internal_stream_timing_info': src/libavformat/utils.c:5341:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] const AVCodecContext *dec_ctx = ist->codec; ^ In file included from src/libavformat/audiointerleave.h:27:0, from src/libavformat/utils.c:43: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavformat/utils.c:5342:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] AVCodecContext *enc_ctx = ost->codec; ^ In file included from src/libavformat/audiointerleave.h:27:0, from src/libavformat/utils.c:43: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ CC libavformat/vc1test.o CC libavformat/vc1testenc.o CC libavformat/vivo.o CC libavformat/voc.o CC libavformat/voc_packet.o CC libavformat/vocdec.o CC libavformat/vocenc.o CC libavformat/vorbiscomment.o CC libavformat/vpcc.o CC libavformat/vpk.o CC libavformat/vplayerdec.o CC libavformat/vqf.o CC libavformat/w64.o CC libavformat/wavdec.o CC libavformat/wavenc.o CC libavformat/wc3movie.o CC libavformat/webm_chunk.o CC libavformat/webmdashenc.o CC libavformat/webpenc.o CC libavformat/webvttdec.o CC libavformat/webvttenc.o CC libavformat/westwood_aud.o CC libavformat/westwood_vqa.o CC libavformat/wsddec.o CC libavformat/wtv_common.o CC libavformat/wtvdec.o CC libavformat/wtvenc.o CC libavformat/wv.o CC libavformat/wvdec.o CC libavformat/wvedec.o CC libavformat/wvenc.o CC libavformat/xa.o CC libavformat/xmv.o CC libavformat/xvag.o CC libavformat/xwma.o CC libavformat/yop.o CC libavformat/yuv4mpegdec.o CC libavformat/yuv4mpegenc.o CC libpostproc/postprocess.o CC cmdutils.o CC ffmpeg_opt.o src/ffmpeg_opt.c: In function 'add_input_streams': src/ffmpeg_opt.c:723:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (av_codec_get_lowres(st->codec)) { ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:724:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] av_codec_set_lowres(ist->dec_ctx, av_codec_get_lowres(st->codec)); ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:725:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] ist->dec_ctx->width = st->codec->width; ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:726:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] ist->dec_ctx->height = st->codec->height; ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:727:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] ist->dec_ctx->coded_width = st->codec->coded_width; ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:728:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] ist->dec_ctx->coded_height = st->codec->coded_height; ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c: In function 'read_ffserver_streams': src/ffmpeg_opt.c:1934:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_get_context_defaults3(st->codec, codec); ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:1939:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] av_opt_set_dict2(st->codec, &opts, AV_OPT_SEARCH_CHILDREN); ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:1946:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] choose_pixel_fmt(st, st->codec, codec, st->codecpar->format); ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c:1947:9: warning: 'avcodec_copy_context' is deprecated [-Wdeprecated-declarations] avcodec_copy_context(ost->enc_ctx, st->codec); ^ In file included from src/cmdutils.h:28:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavcodec/avcodec.h:4239:5: note: declared here int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src); ^ src/ffmpeg_opt.c:1947:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_copy_context(ost->enc_ctx, st->codec); ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffmpeg_opt.c: In function 'open_output_file': src/ffmpeg_opt.c:2329:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (av_opt_set(ost->st->codec, "flags", e->value, 0) < 0) ^ In file included from src/cmdutils.h:30:0, from src/ffmpeg.h:32, from src/ffmpeg_opt.c:23: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ CC ffmpeg_filter.o CC ffmpeg_vaapi.o CC ffmpeg_vdpau.o CC ffprobe.o CC ffserver.o src/ffprobe.c: In function 'show_packet': src/ffprobe.c:1813:5: warning: 'convergence_duration' is deprecated [-Wdeprecated-declarations] print_duration_ts("convergence_duration", pkt->convergence_duration); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffprobe.c:31: src/libavcodec/avcodec.h:1629:13: note: declared here int64_t convergence_duration; ^ src/ffprobe.c:1814:5: warning: 'convergence_duration' is deprecated [-Wdeprecated-declarations] print_duration_time("convergence_duration_time", pkt->convergence_duration, &st->time_base); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffprobe.c:31: src/libavcodec/avcodec.h:1629:13: note: declared here int64_t convergence_duration; ^ src/ffprobe.c: In function 'process_frame': src/ffprobe.c:1982:13: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(dec_ctx, frame, &got_frame, pkt); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffprobe.c:31: src/libavcodec/avcodec.h:4810:5: note: declared here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ src/ffprobe.c:1986:13: warning: 'avcodec_decode_audio4' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_audio4(dec_ctx, frame, &got_frame, pkt); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffprobe.c:31: src/libavcodec/avcodec.h:4761:5: note: declared here int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, ^ src/ffprobe.c: In function 'show_stream': src/ffprobe.c:2272:9: warning: 'timecode_frame_start' is deprecated [-Wdeprecated-declarations] if (dec_ctx && dec_ctx->timecode_frame_start >= 0) { ^ In file included from src/libavformat/avformat.h:319:0, from src/ffprobe.c:31: src/libavcodec/avcodec.h:2787:13: note: declared here int64_t timecode_frame_start; ^ src/ffprobe.c:2274:13: warning: 'timecode_frame_start' is deprecated [-Wdeprecated-declarations] av_timecode_make_mpeg_tc_string(tcbuf, dec_ctx->timecode_frame_start); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffprobe.c:31: src/libavcodec/avcodec.h:2787:13: note: declared here int64_t timecode_frame_start; ^ src/ffprobe.c:2338:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (stream->codec->rc_max_rate > 0) print_val ("max_bit_rate", stream->codec->rc_max_rate, unit_bit_per_second_str); ^ In file included from src/ffprobe.c:31:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffprobe.c:1728:12: warning: 'codec' is deprecated [-Wdeprecated-declarations] struct unit_value uv; \ ^ src/ffprobe.c:2338:41: note: in expansion of macro 'print_val' if (stream->codec->rc_max_rate > 0) print_val ("max_bit_rate", stream->codec->rc_max_rate, unit_bit_per_second_str); ^ In file included from src/ffprobe.c:31:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'close_connection': src/ffserver.c:917:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (st->codec->codec) ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:918:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_close(st->codec); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'find_stream_in_feed': src/ffserver.c:1207:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] AVCodecContext *feed_codec = feed->streams[i]->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'modify_current_stream': src/ffserver.c:1248:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] AVCodecContext *codec = req->streams[i]->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'print_stream_params': src/ffserver.c:1886:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] codec = avcodec_find_encoder(st->codec->codec_id); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1890:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] switch(st->codec->codec_type) { ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1894:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->channels, st->codec->sample_rate); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1894:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->channels, st->codec->sample_rate); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1899:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] "%dx%d, q=%d-%d, fps=%d", st->codec->width, ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1900:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->height, st->codec->qmin, st->codec->qmax, ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1900:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->height, st->codec->qmin, st->codec->qmax, ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1900:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->height, st->codec->qmin, st->codec->qmax, ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1901:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->time_base.den / st->codec->time_base.num); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1901:22: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->time_base.den / st->codec->time_base.num); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1909:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] i, type, (int64_t)st->codec->bit_rate/1000, ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'compute_status': src/ffserver.c:1996:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] AVCodec *codec = avcodec_find_encoder(st->codec->codec_id); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:1998:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] switch(st->codec->codec_type) { ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2000:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] audio_bit_rate += st->codec->bit_rate; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2008:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] video_bit_rate += st->codec->bit_rate; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2016:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] video_bit_rate += st->codec->bit_rate; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2113:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] bitrate += c1->stream->streams[j]->codec->bit_rate; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2115:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] bitrate += c1->stream->feed->streams[c1->feed_streams[j]]->codec->bit_rate; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'open_input_stream': src/ffserver.c:2219:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] c->stream->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) { ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'http_prepare_data': src/ffserver.c:2288:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] c->fmt_ctx.streams[i]->codec->frame_number = 0; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2386:33: warning: 'codec' is deprecated [-Wdeprecated-declarations] (st->codec->codec_type == AVMEDIA_TYPE_VIDEO || ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2415:25: warning: 'codec' is deprecated [-Wdeprecated-declarations] codec = ctx->streams[0]->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2421:25: warning: 'codec' is deprecated [-Wdeprecated-declarations] codec = ctx->streams[pkt.stream_index]->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'http_receive_data': src/ffserver.c:2821:17: warning: 'avcodec_copy_context' is deprecated [-Wdeprecated-declarations] avcodec_copy_context(fst->codec, st->codec); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffserver.c:33: src/libavcodec/avcodec.h:4239:5: note: declared here int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src); ^ src/ffserver.c:2821:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_copy_context(fst->codec, st->codec); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2821:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_copy_context(fst->codec, st->codec); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'prepare_sdp_description': src/ffserver.c:2998:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] avc->streams[i]->codec = stream->streams[i]->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2998:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] avc->streams[i]->codec = stream->streams[i]->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:2999:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_parameters_from_context(stream->streams[i]->codecpar, stream->streams[i]->codec); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'rtp_new_av_stream': src/ffserver.c:3435:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] av_freep(&st->codec); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'add_av_stream1': src/ffserver.c:3527:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] fst->codec = avcodec_alloc_context3(codec->codec); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3528:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (!fst->codec) { ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3532:9: warning: 'avcodec_copy_context' is deprecated [-Wdeprecated-declarations] avcodec_copy_context(fst->codec, codec); ^ In file included from src/libavformat/avformat.h:319:0, from src/ffserver.c:33: src/libavcodec/avcodec.h:4239:5: note: declared here int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src); ^ src/ffserver.c:3532:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] avcodec_copy_context(fst->codec, codec); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3537:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] fst->codec = codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'add_av_stream': src/ffserver.c:3557:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] av = st->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3559:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] av1 = feed->streams[i]->codec; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'extract_mpeg4_header': src/ffserver.c:3618:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (st->codec->codec_id == AV_CODEC_ID_MPEG4 && ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3619:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->extradata_size == 0) { ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3632:9: warning: 'codec' is deprecated [-Wdeprecated-declarations] if (st->codec->codec_id == AV_CODEC_ID_MPEG4 && ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3633:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->extradata_size == 0) { ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3634:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] av_freep(&st->codec->extradata); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3643:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->extradata = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3644:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec->extradata_size = size; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3645:21: warning: 'codec' is deprecated [-Wdeprecated-declarations] memcpy(st->codec->extradata, pkt.data, size); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'build_file_streams': src/ffserver.c:3709:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] add_av_stream1(stream, infile->streams[i]->codec, 1); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'build_feed_streams': src/ffserver.c:3818:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] matches = check_codec_match (sf->codec, ss->codec, i); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3818:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] matches = check_codec_match (sf->codec, ss->codec, i); ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c: In function 'compute_bandwidth': src/ffserver.c:3913:13: warning: 'codec' is deprecated [-Wdeprecated-declarations] switch(st->codec->codec_type) { ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/ffserver.c:3916:17: warning: 'codec' is deprecated [-Wdeprecated-declarations] bandwidth += st->codec->bit_rate; ^ In file included from src/ffserver.c:33:0: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ CC ffserver_config.o src/ffserver_config.c: In function 'add_codec': src/ffserver_config.c:292:13: warning: 'rc_eq' is deprecated [-Wdeprecated-declarations] av->rc_eq = av_strdup("tex^qComp"); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffm.h:26, from src/ffserver_config.c:29: src/libavcodec/avcodec.h:2667:17: note: declared here const char *rc_eq; ^ src/ffserver_config.c:294:13: warning: 'rc_eq' is deprecated [-Wdeprecated-declarations] WARNING("Setting default value for video rate control equation = " ^ In file included from src/libavformat/avformat.h:319:0, from src/libavformat/ffm.h:26, from src/ffserver_config.c:29: src/libavcodec/avcodec.h:2667:17: note: declared here const char *rc_eq; ^ src/ffserver_config.c:325:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] st->codec = av; ^ In file included from src/libavformat/ffm.h:26:0, from src/ffserver_config.c:29: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-1080p50_60.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-360p.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-1080p.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-720p50_60.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-720p.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/doc/ffprobe.xsd INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/transcoding.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/metadata.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/filtering_video.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/muxing.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/avio_dir_cmd.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/filter_audio.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/http_multiclient.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/resampling_audio.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/remuxing.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/filtering_audio.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/extract_mvs.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/decoding_encoding.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/avio_reading.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/qsvdec.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/transcode_aac.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/demuxing_decoding.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/scaling_video.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/Makefile INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/README INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-1080p50_60.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-360p.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-1080p.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-720p50_60.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/presets/libvpx-720p.ffpreset INSTALL home/torstein/mpv-build/ffmpeg/doc/ffprobe.xsd INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/transcoding.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/metadata.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/filtering_video.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/muxing.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/avio_dir_cmd.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/filter_audio.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/http_multiclient.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/resampling_audio.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/remuxing.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/filtering_audio.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/extract_mvs.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/decoding_encoding.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/avio_reading.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/qsvdec.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/transcode_aac.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/demuxing_decoding.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/scaling_video.c INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/Makefile INSTALL home/torstein/mpv-build/ffmpeg/doc/examples/README INSTALL home/torstein/mpv-build/ffmpeg/libavdevice/avdevice.h INSTALL home/torstein/mpv-build/ffmpeg/libavdevice/version.h INSTALL libavdevice/libavdevice.pc INSTALL home/torstein/mpv-build/ffmpeg/libavfilter/avfilter.h INSTALL home/torstein/mpv-build/ffmpeg/libavfilter/avfiltergraph.h INSTALL home/torstein/mpv-build/ffmpeg/libavfilter/buffersink.h INSTALL home/torstein/mpv-build/ffmpeg/libavfilter/buffersrc.h INSTALL home/torstein/mpv-build/ffmpeg/libavfilter/version.h INSTALL libavfilter/libavfilter.pc INSTALL home/torstein/mpv-build/ffmpeg/libavformat/avformat.h INSTALL home/torstein/mpv-build/ffmpeg/libavformat/avio.h INSTALL home/torstein/mpv-build/ffmpeg/libavformat/version.h INSTALL libavformat/libavformat.pc INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/avcodec.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/avdct.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/avfft.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/d3d11va.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/dirac.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/dv_profile.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/dxva2.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/jni.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/mediacodec.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/qsv.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/vaapi.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/vda.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/vdpau.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/version.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/videotoolbox.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/vorbis_parser.h INSTALL home/torstein/mpv-build/ffmpeg/libavcodec/xvmc.h INSTALL libavcodec/libavcodec.pc INSTALL home/torstein/mpv-build/ffmpeg/libpostproc/postprocess.h INSTALL home/torstein/mpv-build/ffmpeg/libpostproc/version.h INSTALL libpostproc/libpostproc.pc INSTALL home/torstein/mpv-build/ffmpeg/libswresample/swresample.h INSTALL home/torstein/mpv-build/ffmpeg/libswresample/version.h INSTALL libswresample/libswresample.pc INSTALL home/torstein/mpv-build/ffmpeg/libswscale/swscale.h INSTALL home/torstein/mpv-build/ffmpeg/libswscale/version.h INSTALL libswscale/libswscale.pc INSTALL home/torstein/mpv-build/ffmpeg/libavutil/adler32.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/aes.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/aes_ctr.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/attributes.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/audio_fifo.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/avassert.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/avstring.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/avutil.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/base64.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/blowfish.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/bprint.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/bswap.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/buffer.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/cast5.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/camellia.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/channel_layout.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/common.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/cpu.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/crc.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/des.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/dict.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/display.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/downmix_info.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/error.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/eval.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/fifo.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/file.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/frame.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hash.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hmac.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hwcontext.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hwcontext_cuda.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hwcontext_dxva2.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hwcontext_qsv.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hwcontext_vaapi.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/hwcontext_vdpau.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/imgutils.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/intfloat.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/intreadwrite.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/lfg.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/log.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/macros.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/mathematics.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/mastering_display_metadata.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/md5.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/mem.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/motion_vector.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/murmur3.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/opt.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/parseutils.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/pixdesc.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/pixelutils.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/pixfmt.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/random_seed.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/rc4.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/rational.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/replaygain.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/ripemd.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/samplefmt.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/sha.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/sha512.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/stereo3d.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/threadmessage.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/time.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/timecode.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/timestamp.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/tree.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/twofish.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/version.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/xtea.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/tea.h INSTALL home/torstein/mpv-build/ffmpeg/libavutil/lzo.h INSTALL libavutil/avconfig.h INSTALL libavutil/ffversion.h INSTALL libavutil/libavutil.pc CC libavfilter/aeval.o AR libavdevice/libavdevice.a CC libavfilter/af_acrusher.o CC libavfilter/af_adelay.o CC libavfilter/af_aecho.o CC libavfilter/af_aemphasis.o CC libavfilter/af_afade.o CC libavfilter/af_afftfilt.o CC libavfilter/af_aformat.o CC libavfilter/af_agate.o CC libavfilter/af_alimiter.o CC libavfilter/af_amerge.o CC libavfilter/af_amix.o CC libavfilter/af_anequalizer.o CC libavfilter/af_anull.o CC libavfilter/af_apad.o CC libavfilter/af_aphaser.o CC libavfilter/af_apulsator.o CC libavfilter/af_aresample.o CC libavfilter/af_asetnsamples.o CC libavfilter/af_asetrate.o CC libavfilter/af_ashowinfo.o CC libavfilter/af_astats.o CC libavfilter/af_atempo.o CC libavfilter/af_biquads.o CC libavfilter/af_channelmap.o CC libavfilter/af_channelsplit.o CC libavfilter/af_chorus.o CC libavfilter/af_compand.o CC libavfilter/af_compensationdelay.o CC libavfilter/af_crystalizer.o CC libavfilter/af_dcshift.o CC libavfilter/af_dynaudnorm.o CC libavfilter/af_earwax.o CC libavfilter/af_extrastereo.o CC libavfilter/af_firequalizer.o CC libavfilter/af_flanger.o CC libavfilter/af_hdcd.o CC libavfilter/af_join.o CC libavfilter/af_pan.o CC libavfilter/af_replaygain.o CC libavfilter/af_sidechaincompress.o CC libavfilter/af_silencedetect.o CC libavfilter/af_silenceremove.o CC libavfilter/af_stereotools.o CC libavfilter/af_stereowiden.o CC libavfilter/af_tremolo.o CC libavfilter/af_vibrato.o CC libavfilter/af_volume.o CC libavfilter/af_volumedetect.o CC libavfilter/allfilters.o CC libavfilter/asrc_anoisesrc.o CC libavfilter/asink_anullsink.o CC libavfilter/asrc_anullsrc.o CC libavfilter/asrc_sine.o CC libavfilter/audio.o CC libavfilter/avf_ahistogram.o CC libavfilter/avf_aphasemeter.o CC libavfilter/avf_avectorscope.o CC libavfilter/avf_concat.o CC libavfilter/avf_showcqt.o CC libavfilter/avf_showfreqs.o CC libavfilter/avf_showspectrum.o CC libavfilter/avf_showvolume.o CC libavfilter/avf_showwaves.o CC libavfilter/avfilter.o CC libavfilter/avfiltergraph.o CC libavfilter/bbox.o CC libavfilter/buffersink.o CC libavfilter/buffersrc.o CC libavfilter/colorspacedsp.o CC libavfilter/drawutils.o CC libavfilter/dualinput.o CC libavfilter/f_bench.o CC libavfilter/f_drawgraph.o CC libavfilter/f_ebur128.o CC libavfilter/f_interleave.o CC libavfilter/f_loop.o CC libavfilter/f_metadata.o CC libavfilter/f_perms.o CC libavfilter/f_realtime.o CC libavfilter/f_reverse.o CC libavfilter/f_select.o CC libavfilter/f_sendcmd.o CC libavfilter/f_streamselect.o CC libavfilter/formats.o CC libavfilter/fifo.o CC libavfilter/framepool.o CC libavfilter/framesync.o CC libavfilter/generate_wave_table.o CC libavfilter/graphdump.o CC libavfilter/graphparser.o CC libavfilter/lavfutils.o src/libavfilter/lavfutils.c: In function 'ff_load_image': src/libavfilter/lavfutils.c:53:5: warning: 'codec' is deprecated [-Wdeprecated-declarations] codec_ctx = format_ctx->streams[0]->codec; ^ In file included from src/libavfilter/lavfutils.h:27:0, from src/libavfilter/lavfutils.c:22: src/libavformat/avformat.h:885:21: note: declared here AVCodecContext *codec; ^ src/libavfilter/lavfutils.c:79:5: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(codec_ctx, frame, &frame_decoded, &pkt); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavfilter/lavfutils.h:27, from src/libavfilter/lavfutils.c:22: src/libavcodec/avcodec.h:4810:5: note: declared here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ CC libavfilter/lswsutils.o CC libavfilter/motion_estimation.o CC libavfilter/opencl_allkernels.o CC libavfilter/pthread.o CC libavfilter/setpts.o CC libavfilter/settb.o CC libavfilter/split.o CC libavfilter/src_movie.o CC libavfilter/transform.o src/libavfilter/src_movie.c: In function 'movie_push_frame': src/libavfilter/src_movie.c:524:9: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(st->codec_ctx, frame, &got_frame, pkt); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavfilter/src_movie.c:40: src/libavcodec/avcodec.h:4810:5: note: declared here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ src/libavfilter/src_movie.c:527:9: warning: 'avcodec_decode_audio4' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_audio4(st->codec_ctx, frame, &got_frame, pkt); ^ In file included from src/libavformat/avformat.h:319:0, from src/libavfilter/src_movie.c:40: src/libavcodec/avcodec.h:4761:5: note: declared here int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, ^ CC libavfilter/trim.o CC libavfilter/vaf_spectrumsynth.o CC libavfilter/vf_alphamerge.o CC libavfilter/vf_aspect.o CC libavfilter/vf_atadenoise.o CC libavfilter/vf_avgblur.o CC libavfilter/vf_bbox.o CC libavfilter/vf_bitplanenoise.o CC libavfilter/vf_blackdetect.o CC libavfilter/vf_blackframe.o CC libavfilter/vf_blend.o CC libavfilter/vf_boxblur.o CC libavfilter/vf_bwdif.o CC libavfilter/vf_chromakey.o CC libavfilter/vf_ciescope.o CC libavfilter/vf_codecview.o CC libavfilter/vf_colorbalance.o CC libavfilter/vf_colorchannelmixer.o CC libavfilter/vf_colorkey.o CC libavfilter/vf_colorlevels.o CC libavfilter/vf_colormatrix.o CC libavfilter/vf_colorspace.o CC libavfilter/vf_convolution.o CC libavfilter/vf_copy.o CC libavfilter/vf_cover_rect.o CC libavfilter/vf_crop.o CC libavfilter/vf_cropdetect.o CC libavfilter/vf_curves.o CC libavfilter/vf_datascope.o CC libavfilter/vf_dctdnoiz.o CC libavfilter/vf_deband.o CC libavfilter/vf_decimate.o CC libavfilter/vf_dejudder.o CC libavfilter/vf_delogo.o CC libavfilter/vf_deshake.o CC libavfilter/vf_detelecine.o CC libavfilter/vf_displace.o CC libavfilter/vf_drawbox.o CC libavfilter/vf_edgedetect.o CC libavfilter/vf_elbg.o CC libavfilter/vf_eq.o CC libavfilter/vf_extractplanes.o CC libavfilter/vf_fade.o CC libavfilter/vf_fftfilt.o CC libavfilter/vf_field.o CC libavfilter/vf_fieldhint.o CC libavfilter/vf_fieldmatch.o CC libavfilter/vf_fieldorder.o CC libavfilter/vf_find_rect.o CC libavfilter/vf_format.o CC libavfilter/vf_fps.o CC libavfilter/vf_framepack.o CC libavfilter/vf_framerate.o CC libavfilter/vf_framestep.o CC libavfilter/vf_fspp.o CC libavfilter/vf_gblur.o CC libavfilter/vf_geq.o CC libavfilter/vf_gradfun.o CC libavfilter/vf_hflip.o CC libavfilter/vf_histeq.o CC libavfilter/vf_histogram.o CC libavfilter/vf_hqdn3d.o CC libavfilter/vf_hqx.o CC libavfilter/vf_hue.o CC libavfilter/vf_hwdownload.o CC libavfilter/vf_hwupload.o CC libavfilter/vf_hysteresis.o src/libavfilter/vf_hwupload.c: In function 'hwupload_query_formats': src/libavfilter/vf_hwupload.c:84:5: warning: ignoring return value of 'ff_formats_ref', declared with attribute warn_unused_result [-Wunused-result] ff_formats_ref(input_formats, &avctx->inputs[0]->out_formats); ^ src/libavfilter/vf_hwupload.c:86:5: warning: ignoring return value of 'ff_formats_ref', declared with attribute warn_unused_result [-Wunused-result] ff_formats_ref(ff_make_format_list(output_pix_fmts), ^ CC libavfilter/vf_idet.o CC libavfilter/vf_il.o CC libavfilter/vf_interlace.o CC libavfilter/vf_kerndeint.o CC libavfilter/vf_lenscorrection.o CC libavfilter/vf_lut.o CC libavfilter/vf_lut2.o CC libavfilter/vf_lut3d.o CC libavfilter/vf_maskedclamp.o CC libavfilter/vf_maskedmerge.o CC libavfilter/vf_mcdeint.o src/libavfilter/vf_mcdeint.c: In function 'config_props': src/libavfilter/vf_mcdeint.c:137:9: warning: 'me_method' is deprecated [-Wdeprecated-declarations] enc_ctx->me_method = ME_ITER; ^ In file included from src/libavfilter/vf_mcdeint.c:54:0: src/libavcodec/avcodec.h:1910:30: note: declared here attribute_deprecated int me_method; ^ src/libavfilter/vf_mcdeint.c: In function 'filter_frame': src/libavfilter/vf_mcdeint.c:192:5: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_encode_video2(mcdeint->enc_ctx, &pkt, inpic, &got_frame); ^ In file included from src/libavfilter/vf_mcdeint.c:54:0: src/libavcodec/avcodec.h:5321:5: note: declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ src/libavfilter/vf_mcdeint.c:196:5: warning: 'coded_frame' is deprecated [-Wdeprecated-declarations] frame_dec = mcdeint->enc_ctx->coded_frame; ^ In file included from src/libavfilter/vf_mcdeint.c:54:0: src/libavcodec/avcodec.h:3097:35: note: declared here attribute_deprecated AVFrame *coded_frame; ^ CC libavfilter/vf_mergeplanes.o CC libavfilter/vf_mestimate.o CC libavfilter/vf_minterpolate.o CC libavfilter/vf_mpdecimate.o src/libavfilter/vf_minterpolate.c: In function 'inject_frame': src/libavfilter/vf_minterpolate.c:724:23: warning: variable 'frame' set but not used [-Wunused-but-set-variable] Frame frame_tmp, *frame; ^ CC libavfilter/vf_neighbor.o CC libavfilter/vf_nlmeans.o CC libavfilter/vf_nnedi.o CC libavfilter/vf_noise.o CC libavfilter/vf_null.o CC libavfilter/vf_overlay.o CC libavfilter/vf_owdenoise.o CC libavfilter/vf_pad.o CC libavfilter/vf_palettegen.o CC libavfilter/vf_paletteuse.o CC libavfilter/vf_perspective.o CC libavfilter/vf_phase.o CC libavfilter/vf_pixdesctest.o CC libavfilter/vf_pp.o CC libavfilter/vf_pp7.o CC libavfilter/vf_psnr.o CC libavfilter/vf_pullup.o CC libavfilter/vf_qp.o CC libavfilter/vf_random.o CC libavfilter/vf_readvitc.o CC libavfilter/vf_remap.o CC libavfilter/vf_removegrain.o CC libavfilter/vf_removelogo.o CC libavfilter/vf_repeatfields.o CC libavfilter/vf_rotate.o CC libavfilter/vf_sab.o CC libavfilter/vf_scale.o CC libavfilter/vf_scale_vaapi.o src/libavfilter/vf_scale_vaapi.c: In function 'scale_vaapi_query_formats': src/libavfilter/vf_scale_vaapi.c:65:5: warning: ignoring return value of 'ff_formats_ref', declared with attribute warn_unused_result [-Wunused-result] ff_formats_ref(ff_make_format_list(pix_fmts), ^ src/libavfilter/vf_scale_vaapi.c:67:5: warning: ignoring return value of 'ff_formats_ref', declared with attribute warn_unused_result [-Wunused-result] ff_formats_ref(ff_make_format_list(pix_fmts), ^ CC libavfilter/vf_selectivecolor.o CC libavfilter/vf_separatefields.o CC libavfilter/vf_setfield.o CC libavfilter/vf_showinfo.o CC libavfilter/vf_showpalette.o CC libavfilter/vf_shuffleframes.o CC libavfilter/vf_signalstats.o CC libavfilter/vf_shuffleplanes.o CC libavfilter/vf_smartblur.o CC libavfilter/vf_spp.o CC libavfilter/vf_ssim.o CC libavfilter/vf_stack.o CC libavfilter/vf_stereo3d.o CC libavfilter/vf_subtitles.o CC libavfilter/vf_super2xsai.o CC libavfilter/vf_swaprect.o CC libavfilter/vf_swapuv.o CC libavfilter/vf_telecine.o CC libavfilter/vf_thumbnail.o CC libavfilter/vf_tile.o CC libavfilter/vf_tinterlace.o CC libavfilter/vf_transpose.o CC libavfilter/vf_unsharp.o CC libavfilter/vf_uspp.o CC libavfilter/vf_vaguedenoiser.o src/libavfilter/vf_uspp.c: In function 'filter': src/libavfilter/vf_uspp.c:253:9: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_encode_video2(p->avctx_enc[i], &pkt, p->frame, &got_pkt_ptr); ^ In file included from src/libavfilter/internal.h:35:0, from src/libavfilter/vf_uspp.c:34: src/libavcodec/avcodec.h:5321:5: note: declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ src/libavfilter/vf_uspp.c:259:9: warning: 'coded_frame' is deprecated [-Wdeprecated-declarations] p->frame_dec = p->avctx_enc[i]->coded_frame; ^ In file included from src/libavfilter/internal.h:35:0, from src/libavfilter/vf_uspp.c:34: src/libavcodec/avcodec.h:3097:35: note: declared here attribute_deprecated AVFrame *coded_frame; ^ CC libavfilter/vf_vectorscope.o CC libavfilter/vf_vflip.o CC libavfilter/vf_vignette.o CC libavfilter/vf_w3fdif.o CC libavfilter/vf_waveform.o CC libavfilter/vf_weave.o CC libavfilter/vf_xbr.o CC libavfilter/vf_yadif.o CC libavfilter/vf_zoompan.o CC libavfilter/video.o CC libavfilter/vsink_nullsink.o CC libavfilter/vsrc_cellauto.o CC libavfilter/vsrc_life.o CC libavfilter/vsrc_mandelbrot.o CC libavfilter/vsrc_mptestsrc.o CC libavfilter/vsrc_testsrc.o CC libavfilter/window_func.o YASM libavfilter/x86/af_volume.o STRIP libavfilter/x86/af_volume.o CC libavfilter/x86/af_volume_init.o CC libavfilter/x86/avf_showcqt_init.o YASM libavfilter/x86/avf_showcqt.o CC libavfilter/x86/colorspacedsp_init.o CC libavfilter/x86/vf_blend_init.o STRIP libavfilter/x86/avf_showcqt.o CC libavfilter/x86/vf_bwdif_init.o YASM libavfilter/x86/vf_blend.o CC libavfilter/x86/vf_eq.o STRIP libavfilter/x86/vf_blend.o YASM libavfilter/x86/vf_bwdif.o CC libavfilter/x86/vf_fspp_init.o YASM libavfilter/x86/vf_fspp.o YASM libavfilter/x86/vf_gradfun.o STRIP libavfilter/x86/vf_gradfun.o CC libavfilter/x86/vf_gradfun_init.o STRIP libavfilter/x86/vf_bwdif.o YASM libavfilter/x86/vf_hqdn3d.o STRIP libavfilter/x86/vf_fspp.o CC libavfilter/x86/vf_hqdn3d_init.o STRIP libavfilter/x86/vf_hqdn3d.o CC libavfilter/x86/vf_idet_init.o YASM libavfilter/x86/vf_idet.o STRIP libavfilter/x86/vf_idet.o CC libavfilter/x86/vf_interlace_init.o YASM libavfilter/x86/vf_interlace.o STRIP libavfilter/x86/vf_interlace.o CC libavfilter/x86/vf_maskedmerge_init.o YASM libavfilter/x86/vf_maskedmerge.o CC libavfilter/x86/vf_noise.o STRIP libavfilter/x86/vf_maskedmerge.o CC libavfilter/x86/vf_pp7_init.o YASM libavfilter/x86/vf_pp7.o YASM libavfilter/x86/vf_psnr.o CC libavfilter/x86/vf_psnr_init.o STRIP libavfilter/x86/vf_pp7.o CC libavfilter/x86/vf_pullup_init.o STRIP libavfilter/x86/vf_psnr.o YASM libavfilter/x86/vf_pullup.o CC libavfilter/x86/vf_removegrain_init.o YASM libavfilter/x86/colorspacedsp.o STRIP libavfilter/x86/vf_pullup.o CC libavfilter/x86/vf_spp.o CC libavfilter/x86/vf_ssim_init.o YASM libavfilter/x86/vf_ssim.o STRIP libavfilter/x86/vf_ssim.o CC libavfilter/x86/vf_stereo3d_init.o YASM libavfilter/x86/vf_stereo3d.o YASM libavfilter/x86/vf_removegrain.o CC libavfilter/x86/vf_tinterlace_init.o STRIP libavfilter/x86/vf_stereo3d.o CC libavfilter/x86/vf_w3fdif_init.o YASM libavfilter/x86/vf_w3fdif.o STRIP libavfilter/x86/vf_w3fdif.o CC libavfilter/x86/vf_yadif_init.o STRIP libavfilter/x86/vf_removegrain.o YASM libavfilter/x86/vf_yadif.o YASM libavfilter/x86/yadif-10.o STRIP libavfilter/x86/vf_yadif.o AR libavformat/libavformat.a YASM libavfilter/x86/yadif-16.o STRIP libavfilter/x86/yadif-10.o CC libavcodec/012v.o CC libavcodec/4xm.o CC libavcodec/8bps.o STRIP libavfilter/x86/yadif-16.o CC libavcodec/8svx.o STRIP libavfilter/x86/colorspacedsp.o CC libavcodec/a64multienc.o CC libavcodec/aac_ac3_parser.o CC libavcodec/aac_adtstoasc_bsf.o CC libavcodec/aac_parser.o CC libavcodec/aacadtsdec.o CC libavcodec/aaccoder.o CC libavcodec/aacdec.o CC libavcodec/aacdec_fixed.o CC libavcodec/aacenc.o CC libavcodec/aacenc_is.o CC libavcodec/aacenc_ltp.o CC libavcodec/aacenc_pred.o CC libavcodec/aacenc_tns.o CC libavcodec/aacenctab.o CC libavcodec/aacps_fixed.o CC libavcodec/aacps_float.o CC libavcodec/aacpsdsp_fixed.o CC libavcodec/aacpsdsp_float.o CC libavcodec/aacpsy.o CC libavcodec/aacsbr.o CC libavcodec/aacsbr_fixed.o CC libavcodec/aactab.o CC libavcodec/aandcttab.o CC libavcodec/aasc.o CC libavcodec/ac3.o CC libavcodec/ac3_parser.o CC libavcodec/ac3dec_data.o CC libavcodec/ac3dec_fixed.o CC libavcodec/ac3dec_float.o CC libavcodec/ac3dsp.o CC libavcodec/ac3enc.o CC libavcodec/ac3enc_fixed.o CC libavcodec/ac3enc_float.o CC libavcodec/ac3tab.o CC libavcodec/acelp_filters.o CC libavcodec/acelp_pitch_delay.o CC libavcodec/acelp_vectors.o CC libavcodec/adpcm.o CC libavcodec/adpcm_data.o CC libavcodec/adpcmenc.o CC libavcodec/adx.o CC libavcodec/adx_parser.o CC libavcodec/adxdec.o CC libavcodec/adxenc.o CC libavcodec/aic.o CC libavcodec/alac.o CC libavcodec/alac_data.o CC libavcodec/alacdsp.o CC libavcodec/alacenc.o CC libavcodec/aliaspixdec.o CC libavcodec/aliaspixenc.o CC libavcodec/allcodecs.o CC libavcodec/alsdec.o In file included from src/libavcodec/alsdec.c:41:0: src/libavutil/softfloat_ieee754.h:72:12: warning: 'av_sf2int_ieee754' defined but not used [-Wunused-function] static int av_sf2int_ieee754(SoftFloat_IEEE754 a) { ^ src/libavutil/softfloat_ieee754.h:93:26: warning: 'av_mul_sf_ieee754' defined but not used [-Wunused-function] static SoftFloat_IEEE754 av_mul_sf_ieee754(SoftFloat_IEEE754 a, SoftFloat_IEEE754 b) { ^ CC libavcodec/amrnbdec.o CC libavcodec/amrwbdec.o CC libavcodec/anm.o CC libavcodec/ansi.o CC libavcodec/apedec.o CC libavcodec/ass.o CC libavcodec/ass_split.o CC libavcodec/assdec.o CC libavcodec/assenc.o CC libavcodec/asv.o CC libavcodec/asvdec.o CC libavcodec/asvenc.o CC libavcodec/atrac.o CC libavcodec/atrac1.o CC libavcodec/atrac3.o CC libavcodec/atrac3plus.o CC libavcodec/atrac3plusdec.o CC libavcodec/atrac3plusdsp.o CC libavcodec/audio_frame_queue.o CC libavcodec/audioconvert.o CC libavcodec/audiodsp.o CC libavcodec/aura.o CC libavcodec/avdct.o CC libavcodec/avfft.o CC libavcodec/avpacket.o CC libavcodec/avpicture.o CC libavcodec/avrndec.o CC libavcodec/avs.o src/libavcodec/avrndec.c: In function 'decode_frame': src/libavcodec/avrndec.c:110:9: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(a->mjpeg_avctx, data, got_frame, avpkt); ^ In file included from src/libavcodec/avrndec.c:22:0: src/libavcodec/avcodec.h:4810:5: note: declared here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ CC libavcodec/avuidec.o CC libavcodec/avuienc.o CC libavcodec/bethsoftvideo.o CC libavcodec/bfi.o CC libavcodec/bgmc.o CC libavcodec/bink.o CC libavcodec/binkaudio.o CC libavcodec/binkdsp.o CC libavcodec/bintext.o CC libavcodec/bitstream.o CC libavcodec/bitstream_filter.o src/libavcodec/bitstream_filter.c: In function 'av_bitstream_filter_next': src/libavcodec/bitstream_filter.c:40:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return av_bsf_next(&opaque); ^ src/libavcodec/bitstream_filter.c: In function 'av_bitstream_filter_init': src/libavcodec/bitstream_filter.c:71:20: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ctx->filter = bsf; ^ src/libavcodec/bitstream_filter.c: In function 'av_bitstream_filter_filter': src/libavcodec/bitstream_filter.c:133:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pkt.data = buf; ^ CC libavcodec/bitstream_filters.o CC libavcodec/blockdsp.o CC libavcodec/bmp.o CC libavcodec/bmp_parser.o CC libavcodec/bmpenc.o CC libavcodec/bmvaudio.o CC libavcodec/bmvvideo.o CC libavcodec/brenderpix.o CC libavcodec/bsf.o CC libavcodec/bswapdsp.o CC libavcodec/c93.o CC libavcodec/cabac.o CC libavcodec/canopus.o CC libavcodec/cavs.o CC libavcodec/cavs_parser.o CC libavcodec/cavsdata.o CC libavcodec/cavsdec.o CC libavcodec/cavsdsp.o CC libavcodec/cbrt_data.o CC libavcodec/cbrt_data_fixed.o CC libavcodec/ccaption_dec.o CC libavcodec/cdgraphics.o CC libavcodec/cdxl.o CC libavcodec/celp_filters.o CC libavcodec/celp_math.o CC libavcodec/cfhd.o CC libavcodec/cfhddata.o CC libavcodec/cga_data.o CC libavcodec/chomp_bsf.o CC libavcodec/cinepak.o CC libavcodec/cinepakenc.o CC libavcodec/cljrdec.o CC libavcodec/cljrenc.o CC libavcodec/cllc.o CC libavcodec/cngdec.o CC libavcodec/cngenc.o CC libavcodec/codec_desc.o CC libavcodec/cook.o CC libavcodec/cook_parser.o CC libavcodec/cpia.o CC libavcodec/cscd.o CC libavcodec/cyuv.o CC libavcodec/d3d11va.o CC libavcodec/dca.o CC libavcodec/dca_core.o CC libavcodec/dca_core_bsf.o CC libavcodec/dca_exss.o CC libavcodec/dca_lbr.o CC libavcodec/dca_parser.o CC libavcodec/dca_xll.o CC libavcodec/dcadata.o CC libavcodec/dcadct.o CC libavcodec/dcadec.o CC libavcodec/dcadsp.o CC libavcodec/dcaenc.o CC libavcodec/dcahuff.o CC libavcodec/dct.o CC libavcodec/dct32_fixed.o CC libavcodec/dct32_float.o CC libavcodec/dds.o CC libavcodec/dfa.o CC libavcodec/dirac.o CC libavcodec/dirac_arith.o CC libavcodec/dirac_dwt.o CC libavcodec/dirac_parser.o CC libavcodec/dirac_vlc.o CC libavcodec/diracdec.o CC libavcodec/diracdsp.o CC libavcodec/diractab.o CC libavcodec/dnxhd_parser.o CC libavcodec/dnxhddata.o CC libavcodec/dnxhddec.o CC libavcodec/dnxhdenc.o CC libavcodec/dpcm.o CC libavcodec/dpx.o CC libavcodec/dpx_parser.o CC libavcodec/dpxenc.o CC libavcodec/dsd.o CC libavcodec/dsddec.o CC libavcodec/dsicinaudio.o CC libavcodec/dsicinvideo.o CC libavcodec/dss_sp.o CC libavcodec/dstdec.o CC libavcodec/dump_extradata_bsf.o CC libavcodec/dv.o CC libavcodec/dv_profile.o CC libavcodec/dvaudio_parser.o CC libavcodec/dvaudiodec.o CC libavcodec/dvbsub.o CC libavcodec/dvbsub_parser.o CC libavcodec/dvbsubdec.o CC libavcodec/dvd_nav_parser.o CC libavcodec/dvdata.o CC libavcodec/dvdec.o CC libavcodec/dvdsub_parser.o CC libavcodec/dvdsubdec.o CC libavcodec/dvdsubenc.o CC libavcodec/dvenc.o CC libavcodec/dxa.o src/libavcodec/dvenc.c: In function 'dv_encode_video_segment': src/libavcodec/dvenc.c:379:81: warning: array subscript is above array bounds [-Warray-bounds] for (a2 = a + 1; b->next[k] >= mb_area_start[a2 + 1]; a2++) ^ src/libavcodec/dvenc.c:379:81: warning: array subscript is above array bounds [-Warray-bounds] CC libavcodec/dxtory.o CC libavcodec/dxv.o CC libavcodec/eac3_data.o CC libavcodec/eac3enc.o CC libavcodec/eacmv.o CC libavcodec/eaidct.o CC libavcodec/eamad.o CC libavcodec/eatgq.o CC libavcodec/eatgv.o CC libavcodec/eatqi.o CC libavcodec/elbg.o CC libavcodec/elsdec.o CC libavcodec/error_resilience.o CC libavcodec/escape124.o CC libavcodec/escape130.o CC libavcodec/evrcdec.o CC libavcodec/exif.o CC libavcodec/exr.o CC libavcodec/faandct.o CC libavcodec/faanidct.o CC libavcodec/faxcompr.o CC libavcodec/fdctdsp.o CC libavcodec/fft_fixed.o CC libavcodec/fft_fixed_32.o CC libavcodec/fft_float.o CC libavcodec/fft_init_table.o CC libavcodec/ffv1.o CC libavcodec/ffv1dec.o CC libavcodec/ffv1enc.o CC libavcodec/ffwavesynth.o CC libavcodec/fic.o CC libavcodec/flac.o CC libavcodec/flac_parser.o CC libavcodec/flacdata.o CC libavcodec/flacdec.o CC libavcodec/flacdsp.o CC libavcodec/flacenc.o CC libavcodec/flashsv.o CC libavcodec/flashsv2enc.o CC libavcodec/flashsvenc.o CC libavcodec/flicvideo.o CC libavcodec/flvdec.o CC libavcodec/flvenc.o CC libavcodec/fmtconvert.o CC libavcodec/frame_thread_encoder.o CC libavcodec/fraps.o src/libavcodec/frame_thread_encoder.c: In function 'worker': src/libavcodec/frame_thread_encoder.c:86:9: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_encode_video2(avctx, pkt, frame, &got_packet); ^ In file included from src/libavcodec/frame_thread_encoder.h:24:0, from src/libavcodec/frame_thread_encoder.c:21: src/libavcodec/avcodec.h:5321:5: note: declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ src/libavcodec/frame_thread_encoder.c:92:13: warning: 'av_dup_packet' is deprecated [-Wdeprecated-declarations] int ret2 = av_dup_packet(pkt); ^ In file included from src/libavcodec/frame_thread_encoder.h:24:0, from src/libavcodec/frame_thread_encoder.c:21: src/libavcodec/avcodec.h:4448:5: note: declared here int av_dup_packet(AVPacket *pkt); ^ CC libavcodec/frwu.o CC libavcodec/g2meet.o CC libavcodec/g722.o CC libavcodec/g722dec.o CC libavcodec/g722dsp.o CC libavcodec/g722enc.o CC libavcodec/g723_1.o CC libavcodec/g723_1dec.o CC libavcodec/g723_1enc.o CC libavcodec/g726.o CC libavcodec/g729_parser.o CC libavcodec/g729dec.o CC libavcodec/g729postfilter.o CC libavcodec/gif.o CC libavcodec/gifdec.o CC libavcodec/golomb.o CC libavcodec/gsm_parser.o CC libavcodec/gsmdec.o CC libavcodec/gsmdec_data.o CC libavcodec/h261.o CC libavcodec/h261_parser.o CC libavcodec/h261data.o CC libavcodec/h261dec.o CC libavcodec/h261enc.o CC libavcodec/h263.o CC libavcodec/h263_parser.o CC libavcodec/h263data.o CC libavcodec/h263dec.o CC libavcodec/h263dsp.o CC libavcodec/h2645_parse.o CC libavcodec/h264_cabac.o CC libavcodec/h264_cavlc.o CC libavcodec/h264_direct.o CC libavcodec/h264_loopfilter.o CC libavcodec/h264_mb.o CC libavcodec/h264_mp4toannexb_bsf.o CC libavcodec/h264_parse.o CC libavcodec/h264_parser.o CC libavcodec/h264_picture.o CC libavcodec/h264_ps.o CC libavcodec/h264_refs.o CC libavcodec/h264_sei.o CC libavcodec/h264_slice.o CC libavcodec/h264chroma.o CC libavcodec/h264data.o CC libavcodec/h264dec.o CC libavcodec/h264dsp.o CC libavcodec/h264idct.o CC libavcodec/h264pred.o CC libavcodec/h264qpel.o CC libavcodec/hap.o CC libavcodec/hapdec.o CC libavcodec/hevc.o CC libavcodec/hevc_cabac.o CC libavcodec/hevc_data.o CC libavcodec/hevc_filter.o CC libavcodec/hevc_mp4toannexb_bsf.o CC libavcodec/hevc_mvs.o CC libavcodec/hevc_parser.o CC libavcodec/hevc_ps.o CC libavcodec/hevc_refs.o CC libavcodec/hevc_sei.o CC libavcodec/hevcdsp.o CC libavcodec/hevcpred.o CC libavcodec/hnm4video.o CC libavcodec/hpeldsp.o CC libavcodec/hq_hqa.o CC libavcodec/hq_hqadata.o CC libavcodec/hq_hqadsp.o CC libavcodec/hqx.o CC libavcodec/hqxdsp.o CC libavcodec/hqxvlc.o CC libavcodec/htmlsubtitles.o CC libavcodec/huffman.o CC libavcodec/huffyuv.o CC libavcodec/huffyuvdec.o CC libavcodec/huffyuvdsp.o CC libavcodec/huffyuvenc.o CC libavcodec/huffyuvencdsp.o CC libavcodec/idcinvideo.o CC libavcodec/idctdsp.o CC libavcodec/iff.o CC libavcodec/iirfilter.o CC libavcodec/imc.o CC libavcodec/imdct15.o CC libavcodec/imgconvert.o CC libavcodec/imx_dump_header_bsf.o CC libavcodec/indeo2.o CC libavcodec/indeo3.o CC libavcodec/indeo4.o CC libavcodec/indeo5.o CC libavcodec/intelh263dec.o CC libavcodec/interplayacm.o CC libavcodec/interplayvideo.o CC libavcodec/intrax8.o CC libavcodec/intrax8dsp.o CC libavcodec/ituh263dec.o CC libavcodec/ituh263enc.o CC libavcodec/ivi.o CC libavcodec/ivi_dsp.o CC libavcodec/j2kenc.o CC libavcodec/jacosubdec.o CC libavcodec/jfdctfst.o CC libavcodec/jfdctint.o CC libavcodec/jni.o CC libavcodec/jpeg2000.o CC libavcodec/jpeg2000dec.o CC libavcodec/jpeg2000dsp.o CC libavcodec/jpeg2000dwt.o CC libavcodec/jpegls.o CC libavcodec/jpeglsdec.o CC libavcodec/jpeglsenc.o CC libavcodec/jpegtables.o CC libavcodec/jrevdct.o CC libavcodec/jvdec.o CC libavcodec/kbdwin.o CC libavcodec/kgv1dec.o CC libavcodec/kmvc.o CC libavcodec/lagarith.o CC libavcodec/lagarithrac.o CC libavcodec/latm_parser.o CC libavcodec/lcldec.o CC libavcodec/lclenc.o CC libavcodec/ljpegenc.o CC libavcodec/loco.o CC libavcodec/lossless_audiodsp.o CC libavcodec/lossless_videodsp.o CC libavcodec/lpc.o CC libavcodec/lsp.o CC libavcodec/lzf.o CC libavcodec/lzw.o CC libavcodec/lzwenc.o CC libavcodec/m101.o CC libavcodec/mace.o CC libavcodec/magicyuv.o CC libavcodec/mathtables.o CC libavcodec/mdct_fixed.o CC libavcodec/mdct_fixed_32.o CC libavcodec/mdct_float.o CC libavcodec/mdec.o CC libavcodec/me_cmp.o CC libavcodec/mediacodec.o CC libavcodec/metasound.o CC libavcodec/metasound_data.o CC libavcodec/microdvddec.o CC libavcodec/mimic.o CC libavcodec/mjpeg2jpeg_bsf.o CC libavcodec/mjpeg_parser.o CC libavcodec/mjpega_dump_header_bsf.o CC libavcodec/mjpegbdec.o CC libavcodec/mjpegdec.o CC libavcodec/mjpegenc.o CC libavcodec/mjpegenc_common.o CC libavcodec/mlp.o CC libavcodec/mlp_parser.o CC libavcodec/mlpdec.o CC libavcodec/mlpdsp.o CC libavcodec/mlpenc.o CC libavcodec/mlz.o CC libavcodec/mmvideo.o CC libavcodec/motion_est.o CC libavcodec/motionpixels.o CC libavcodec/movsub_bsf.o CC libavcodec/movtextdec.o CC libavcodec/movtextenc.o CC libavcodec/mp3_header_decompress_bsf.o CC libavcodec/mpc.o CC libavcodec/mpc7.o CC libavcodec/mpc8.o CC libavcodec/mpeg12.o CC libavcodec/mpeg12data.o CC libavcodec/mpeg12dec.o CC libavcodec/mpeg12enc.o CC libavcodec/mpeg4_unpack_bframes_bsf.o CC libavcodec/mpeg4audio.o CC libavcodec/mpeg4video.o CC libavcodec/mpeg4video_parser.o CC libavcodec/mpeg4videodec.o CC libavcodec/mpeg4videoenc.o CC libavcodec/mpeg_er.o CC libavcodec/mpegaudio.o CC libavcodec/mpegaudio_parser.o CC libavcodec/mpegaudiodata.o CC libavcodec/mpegaudiodec_fixed.o CC libavcodec/mpegaudiodec_float.o CC libavcodec/mpegaudiodecheader.o CC libavcodec/mpegaudiodsp.o CC libavcodec/mpegaudiodsp_data.o CC libavcodec/mpegaudiodsp_fixed.o CC libavcodec/mpegaudiodsp_float.o CC libavcodec/mpegaudioenc_fixed.o CC libavcodec/mpegaudioenc_float.o CC libavcodec/mpegpicture.o CC libavcodec/mpegutils.o CC libavcodec/mpegvideo.o CC libavcodec/mpegvideo_enc.o src/libavcodec/mpegvideo_enc.c: In function 'encode_frame': src/libavcodec/mpegvideo_enc.c:1400:5: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_encode_video2(c, &pkt, frame, &got_output); ^ In file included from src/libavcodec/mpegvideo_enc.c:42:0: src/libavcodec/avcodec.h:5321:5: note: declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ CC libavcodec/mpegvideo_motion.o CC libavcodec/mpegvideo_parser.o CC libavcodec/mpegvideodata.o CC libavcodec/mpegvideodsp.o CC libavcodec/mpegvideoencdsp.o CC libavcodec/mpl2dec.o CC libavcodec/mqc.o CC libavcodec/mqcenc.o CC libavcodec/mqcdec.o CC libavcodec/msgsmdec.o CC libavcodec/msmpeg4.o CC libavcodec/msmpeg4data.o CC libavcodec/msmpeg4dec.o CC libavcodec/msmpeg4enc.o CC libavcodec/msrle.o CC libavcodec/msrledec.o CC libavcodec/mss1.o CC libavcodec/mss12.o CC libavcodec/mss2.o CC libavcodec/mss2dsp.o CC libavcodec/mss3.o CC libavcodec/mss34dsp.o CC libavcodec/mss4.o CC libavcodec/msvideo1.o CC libavcodec/msvideo1enc.o CC libavcodec/mvcdec.o CC libavcodec/mxpegdec.o CC libavcodec/nellymoser.o CC libavcodec/nellymoserdec.o CC libavcodec/nellymoserenc.o CC libavcodec/noise_bsf.o CC libavcodec/nuv.o CC libavcodec/nvenc.o CC libavcodec/nvenc_h264.o CC libavcodec/nvenc_hevc.o CC libavcodec/on2avc.o CC libavcodec/on2avcdata.o CC libavcodec/options.o CC libavcodec/opus.o CC libavcodec/opus_celt.o CC libavcodec/opus_parser.o CC libavcodec/opus_silk.o CC libavcodec/opusdec.o CC libavcodec/pafaudio.o CC libavcodec/pafvideo.o CC libavcodec/pamenc.o CC libavcodec/parser.o CC libavcodec/pcm-bluray.o CC libavcodec/pcm-dvd.o CC libavcodec/pcm.o CC libavcodec/pcx.o CC libavcodec/pcxenc.o CC libavcodec/pgssubdec.o CC libavcodec/pictordec.o CC libavcodec/pixblockdsp.o CC libavcodec/png.o CC libavcodec/png_parser.o CC libavcodec/pngdec.o CC libavcodec/pngdsp.o CC libavcodec/pngenc.o CC libavcodec/pnm.o CC libavcodec/pnm_parser.o CC libavcodec/pnmdec.o CC libavcodec/pnmenc.o CC libavcodec/profiles.o CC libavcodec/proresdata.o CC libavcodec/proresdec2.o CC libavcodec/proresdec_lgpl.o CC libavcodec/proresdsp.o CC libavcodec/proresenc_anatoliy.o CC libavcodec/proresenc_kostya.o CC libavcodec/psymodel.o CC libavcodec/pthread.o CC libavcodec/pthread_frame.o CC libavcodec/pthread_slice.o CC libavcodec/ptx.o CC libavcodec/qcelpdec.o CC libavcodec/qdm2.o CC libavcodec/qdrw.o CC libavcodec/qpeg.o CC libavcodec/qpeldsp.o CC libavcodec/qsv_api.o CC libavcodec/qtrle.o CC libavcodec/qtrleenc.o CC libavcodec/r210dec.o CC libavcodec/r210enc.o CC libavcodec/ra144.o CC libavcodec/ra144dec.o CC libavcodec/ra144enc.o CC libavcodec/ra288.o CC libavcodec/ralf.o CC libavcodec/rangecoder.o CC libavcodec/ratecontrol.o CC libavcodec/raw.o CC libavcodec/rawdec.o CC libavcodec/rawenc.o CC libavcodec/rdft.o CC libavcodec/realtextdec.o CC libavcodec/remove_extradata_bsf.o CC libavcodec/resample.o CC libavcodec/resample2.o CC libavcodec/rl.o CC libavcodec/rl2.o CC libavcodec/rle.o CC libavcodec/roqaudioenc.o CC libavcodec/roqvideo.o CC libavcodec/roqvideodec.o CC libavcodec/roqvideoenc.o CC libavcodec/rpza.o CC libavcodec/rscc.o CC libavcodec/rtjpeg.o CC libavcodec/rv10.o CC libavcodec/rv10enc.o CC libavcodec/rv20enc.o CC libavcodec/rv30.o CC libavcodec/rv30dsp.o CC libavcodec/rv34.o CC libavcodec/rv34_parser.o CC libavcodec/rv34dsp.o CC libavcodec/rv40.o CC libavcodec/rv40dsp.o CC libavcodec/s302m.o CC libavcodec/s302menc.o CC libavcodec/samidec.o CC libavcodec/sanm.o CC libavcodec/sbrdsp.o CC libavcodec/sbrdsp_fixed.o CC libavcodec/screenpresso.o CC libavcodec/sgidec.o CC libavcodec/sgienc.o CC libavcodec/sgirledec.o CC libavcodec/sheervideo.o CC libavcodec/shorten.o CC libavcodec/simple_idct.o CC libavcodec/sinewin.o CC libavcodec/sinewin_fixed.o CC libavcodec/sipr.o CC libavcodec/sipr16k.o CC libavcodec/smacker.o CC libavcodec/smc.o CC libavcodec/smvjpegdec.o src/libavcodec/smvjpegdec.c: In function 'smvjpeg_decode_frame': src/libavcodec/smvjpegdec.c:158:9: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(s->avctx, mjpeg_data, &s->mjpeg_data_size, avpkt); ^ In file included from src/libavcodec/smvjpegdec.c:28:0: src/libavcodec/avcodec.h:4810:5: note: declared here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ CC libavcodec/snappy.o CC libavcodec/snow.o CC libavcodec/snow_dwt.o CC libavcodec/snowdec.o CC libavcodec/snowenc.o src/libavcodec/snowenc.c: In function 'encode_frame': src/libavcodec/snowenc.c:1646:5: warning: 'coded_frame' is deprecated [-Wdeprecated-declarations] av_frame_unref(avctx->coded_frame); ^ In file included from src/libavcodec/snowenc.c:25:0: src/libavcodec/avcodec.h:3097:35: note: declared here attribute_deprecated AVFrame *coded_frame; ^ src/libavcodec/snowenc.c:1647:5: warning: 'coded_frame' is deprecated [-Wdeprecated-declarations] ret = av_frame_ref(avctx->coded_frame, s->current_picture); ^ In file included from src/libavcodec/snowenc.c:25:0: src/libavcodec/avcodec.h:3097:35: note: declared here attribute_deprecated AVFrame *coded_frame; ^ src/libavcodec/snowenc.c:1677:9: warning: 'me_method' is deprecated [-Wdeprecated-declarations] s->m.me_method= s->avctx->me_method; ^ In file included from src/libavcodec/snowenc.c:25:0: src/libavcodec/avcodec.h:1910:30: note: declared here attribute_deprecated int me_method; ^ src/libavcodec/snowenc.c:1879:5: warning: 'frame_bits' is deprecated [-Wdeprecated-declarations] avctx->frame_bits = s->m.frame_bits; ^ In file included from src/libavcodec/snowenc.c:25:0: src/libavcodec/avcodec.h:2836:9: note: declared here int frame_bits; ^ src/libavcodec/snowenc.c:1880:5: warning: 'mv_bits' is deprecated [-Wdeprecated-declarations] avctx->mv_bits = s->m.mv_bits; ^ In file included from src/libavcodec/snowenc.c:25:0: src/libavcodec/avcodec.h:2818:9: note: declared here int mv_bits; ^ src/libavcodec/snowenc.c:1881:5: warning: 'misc_bits' is deprecated [-Wdeprecated-declarations] avctx->misc_bits = s->m.misc_bits; ^ In file included from src/libavcodec/snowenc.c:25:0: src/libavcodec/avcodec.h:2832:9: note: declared here int misc_bits; ^ src/libavcodec/snowenc.c:1882:5: warning: 'p_tex_bits' is deprecated [-Wdeprecated-declarations] avctx->p_tex_bits = s->m.p_tex_bits; ^ In file included from src/libavcodec/snowenc.c:25:0: src/libavcodec/avcodec.h:2824:9: note: declared here int p_tex_bits; ^ CC libavcodec/sonic.o CC libavcodec/sp5xdec.o CC libavcodec/srtdec.o CC libavcodec/srtenc.o CC libavcodec/startcode.o CC libavcodec/subviewerdec.o CC libavcodec/sunrast.o CC libavcodec/sunrastenc.o CC libavcodec/svq1.o CC libavcodec/svq13.o CC libavcodec/svq1dec.o CC libavcodec/svq1enc.o CC libavcodec/svq3.o CC libavcodec/synth_filter.o CC libavcodec/tak.o CC libavcodec/tak_parser.o CC libavcodec/takdec.o CC libavcodec/takdsp.o CC libavcodec/targa.o CC libavcodec/targa_y216dec.o CC libavcodec/targaenc.o CC libavcodec/tdsc.o src/libavcodec/tdsc.c: In function 'tdsc_decode_jpeg_tile': src/libavcodec/tdsc.c:354:5: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(ctx->jpeg_avctx, ctx->jpgframe, ^ In file included from src/libavcodec/tdsc.c:41:0: src/libavcodec/avcodec.h:4810:5: note: declared here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ CC libavcodec/textdec.o CC libavcodec/texturedsp.o CC libavcodec/tiertexseqv.o CC libavcodec/tiff.o CC libavcodec/tiff_common.o CC libavcodec/tiff_data.o CC libavcodec/tiffenc.o CC libavcodec/tmv.o CC libavcodec/tpeldsp.o CC libavcodec/truemotion1.o CC libavcodec/truemotion2.o CC libavcodec/truemotion2rt.o CC libavcodec/truespeech.o CC libavcodec/tscc.o CC libavcodec/tscc2.o CC libavcodec/tta.o CC libavcodec/ttadata.o CC libavcodec/ttadsp.o CC libavcodec/ttaenc.o CC libavcodec/ttaencdsp.o CC libavcodec/twinvq.o CC libavcodec/twinvqdec.o CC libavcodec/txd.o CC libavcodec/ulti.o CC libavcodec/utils.o CC libavcodec/utvideo.o src/libavcodec/utils.c: In function 'avcodec_encode_audio2': src/libavcodec/utils.c:1914:13: warning: 'av_dup_packet' is deprecated [-Wdeprecated-declarations] if (av_dup_packet(avpkt) < 0) { ^ In file included from src/libavcodec/utils.c:46:0: src/libavcodec/avcodec.h:4448:5: note: declared here int av_dup_packet(AVPacket *pkt); ^ src/libavcodec/utils.c: In function 'avcodec_encode_video2': src/libavcodec/utils.c:2008:13: warning: 'av_dup_packet' is deprecated [-Wdeprecated-declarations] if (av_dup_packet(avpkt) < 0) { ^ In file included from src/libavcodec/utils.c:46:0: src/libavcodec/avcodec.h:4448:5: note: declared here int av_dup_packet(AVPacket *pkt); ^ src/libavcodec/utils.c: In function 'avcodec_decode_video2': src/libavcodec/utils.c:2235:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] avctx->internal->pkt = avpkt; ^ src/libavcodec/utils.c:2236:37: warning: passing argument 2 of 'apply_param_change' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ret = apply_param_change(avctx, avpkt); ^ src/libavcodec/utils.c:2086:12: note: expected 'AVPacket * {aka struct AVPacket *}' but argument is of type 'const AVPacket * {aka const struct AVPacket *}' static int apply_param_change(AVCodecContext *avctx, AVPacket *avpkt) ^ src/libavcodec/utils.c: In function 'do_decode': src/libavcodec/utils.c:2785:9: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(avctx, avctx->internal->buffer_frame, ^ src/libavcodec/utils.c:2210:25: note: declared here int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ src/libavcodec/utils.c:2790:9: warning: 'avcodec_decode_audio4' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_audio4(avctx, avctx->internal->buffer_frame, ^ src/libavcodec/utils.c:2313:25: note: declared here int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx, ^ src/libavcodec/utils.c: In function 'do_encode': src/libavcodec/utils.c:2936:9: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_encode_video2(avctx, avctx->internal->buffer_pkt, ^ src/libavcodec/utils.c:1952:25: note: declared here int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx, ^ src/libavcodec/utils.c:2939:9: warning: 'avcodec_encode_audio2' is deprecated [-Wdeprecated-declarations] ret = avcodec_encode_audio2(avctx, avctx->internal->buffer_pkt, ^ src/libavcodec/utils.c:1806:25: note: declared here int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx, ^ CC libavcodec/utvideodec.o CC libavcodec/utvideoenc.o CC libavcodec/v210dec.o CC libavcodec/v210enc.o CC libavcodec/v210x.o CC libavcodec/v308dec.o CC libavcodec/v308enc.o CC libavcodec/v408dec.o CC libavcodec/v408enc.o CC libavcodec/v410dec.o CC libavcodec/v410enc.o CC libavcodec/vaapi.o CC libavcodec/vaapi_encode.o CC libavcodec/vaapi_encode_h264.o CC libavcodec/vaapi_encode_h265.o CC libavcodec/vaapi_encode_h26x.o CC libavcodec/vaapi_encode_mjpeg.o In file included from src/libavcodec/vaapi_encode_h265.c:32:0: src/libavcodec/vaapi_encode_h265.c: In function 'vaapi_encode_h265_write_sequence_header': src/libavcodec/vaapi_encode_h265.c:305:49: warning: array subscript is above array bounds [-Warray-bounds] u(1, mseq_var(layer_id_included_flag[i][j])); ^ src/libavcodec/vaapi_encode_h26x.h:32:63: note: in definition of macro 'write_u' #define write_u(pbc, width, value, name) put_bits(pbc, width, value) ^ src/libavcodec/vaapi_encode_h265.c:305:13: note: in expansion of macro 'u' u(1, mseq_var(layer_id_included_flag[i][j])); ^ src/libavcodec/vaapi_encode_h265.c:305:18: note: in expansion of macro 'mseq_var' u(1, mseq_var(layer_id_included_flag[i][j])); ^ CC libavcodec/vaapi_h264.o CC libavcodec/vaapi_hevc.o CC libavcodec/vaapi_mpeg2.o CC libavcodec/vaapi_mpeg4.o CC libavcodec/vaapi_vc1.o CC libavcodec/vaapi_vp9.o CC libavcodec/vb.o CC libavcodec/vble.o CC libavcodec/vc1.o CC libavcodec/vc1_block.o CC libavcodec/vc1_loopfilter.o CC libavcodec/vc1_mc.o CC libavcodec/vc1_parser.o CC libavcodec/vc1_pred.o CC libavcodec/vc1data.o CC libavcodec/vc1dec.o CC libavcodec/vc1dsp.o CC libavcodec/vc2enc.o CC libavcodec/vc2enc_dwt.o CC libavcodec/vcr1.o CC libavcodec/vdpau.o CC libavcodec/vdpau_h264.o CC libavcodec/vdpau_hevc.o CC libavcodec/vdpau_mpeg12.o CC libavcodec/vdpau_mpeg4.o CC libavcodec/vdpau_vc1.o CC libavcodec/videodsp.o CC libavcodec/vima.o CC libavcodec/vmdaudio.o CC libavcodec/vmdvideo.o CC libavcodec/vmnc.o CC libavcodec/vorbis.o CC libavcodec/vorbis_data.o CC libavcodec/vorbis_parser.o CC libavcodec/vorbisdec.o CC libavcodec/vorbisdsp.o CC libavcodec/vorbisenc.o CC libavcodec/vp3.o CC libavcodec/vp3_parser.o CC libavcodec/vp3dsp.o CC libavcodec/vp5.o CC libavcodec/vp56.o CC libavcodec/vp56data.o CC libavcodec/vp56dsp.o CC libavcodec/vp56rac.o CC libavcodec/vp6.o CC libavcodec/vp6dsp.o CC libavcodec/vp8.o CC libavcodec/vp8_parser.o CC libavcodec/vp8dsp.o CC libavcodec/vp9.o CC libavcodec/vp9_parser.o CC libavcodec/vp9_superframe_bsf.o CC libavcodec/vp9dsp.o CC libavcodec/vp9dsp_10bpp.o CC libavcodec/vp9dsp_12bpp.o CC libavcodec/vp9dsp_8bpp.o CC libavcodec/vqavideo.o CC libavcodec/wavpack.o CC libavcodec/wavpackenc.o CC libavcodec/webp.o CC libavcodec/webvttdec.o CC libavcodec/webvttenc.o CC libavcodec/wma.o CC libavcodec/wma_common.o CC libavcodec/wma_freqs.o CC libavcodec/wmadec.o CC libavcodec/wmaenc.o CC libavcodec/wmalosslessdec.o CC libavcodec/wmaprodec.o CC libavcodec/wmavoice.o CC libavcodec/wmv2.o CC libavcodec/wmv2data.o CC libavcodec/wmv2dec.o CC libavcodec/wmv2dsp.o CC libavcodec/wmv2enc.o CC libavcodec/wnv1.o CC libavcodec/wrapped_avframe.o CC libavcodec/ws-snd1.o YASM libavcodec/x86/aacpsdsp.o STRIP libavcodec/x86/aacpsdsp.o CC libavcodec/x86/aacpsdsp_init.o CC libavcodec/x86/ac3dsp_init.o YASM libavcodec/x86/alacdsp.o YASM libavcodec/x86/ac3dsp.o STRIP libavcodec/x86/alacdsp.o CC libavcodec/x86/alacdsp_init.o CC libavcodec/x86/audiodsp_init.o STRIP libavcodec/x86/ac3dsp.o CC libavcodec/x86/blockdsp_init.o YASM libavcodec/x86/blockdsp.o YASM libavcodec/x86/audiodsp.o STRIP libavcodec/x86/blockdsp.o CC libavcodec/x86/bswapdsp_init.o YASM libavcodec/x86/bswapdsp.o STRIP libavcodec/x86/audiodsp.o CC libavcodec/x86/cavsdsp.o CC libavcodec/x86/constants.o STRIP libavcodec/x86/bswapdsp.o CC libavcodec/x86/dcadsp_init.o YASM libavcodec/x86/dcadsp.o STRIP libavcodec/x86/dcadsp.o CC libavcodec/x86/dct_init.o YASM libavcodec/x86/dct32.o YASM libavcodec/x86/dirac_dwt.o STRIP libavcodec/x86/dct32.o CC libavcodec/x86/dirac_dwt_init.o STRIP libavcodec/x86/dirac_dwt.o CC libavcodec/x86/diracdsp_init.o YASM libavcodec/x86/diracdsp.o YASM libavcodec/x86/dnxhdenc.o CC libavcodec/x86/dnxhdenc_init.o STRIP libavcodec/x86/diracdsp.o STRIP libavcodec/x86/dnxhdenc.o CC libavcodec/x86/fdct.o CC libavcodec/x86/fdctdsp_init.o CC libavcodec/x86/fft_init.o YASM libavcodec/x86/flac_dsp_gpl.o STRIP libavcodec/x86/flac_dsp_gpl.o YASM libavcodec/x86/fft.o CC libavcodec/x86/flacdsp_init.o YASM libavcodec/x86/flacdsp.o YASM libavcodec/x86/fmtconvert.o STRIP libavcodec/x86/fft.o CC libavcodec/x86/fmtconvert_init.o STRIP libavcodec/x86/fmtconvert.o STRIP libavcodec/x86/flacdsp.o CC libavcodec/x86/g722dsp_init.o YASM libavcodec/x86/fpel.o YASM libavcodec/x86/g722dsp.o STRIP libavcodec/x86/g722dsp.o CC libavcodec/x86/h263dsp_init.o YASM libavcodec/x86/h263_loopfilter.o STRIP libavcodec/x86/fpel.o STRIP libavcodec/x86/h263_loopfilter.o YASM libavcodec/x86/h264_chromamc_10bit.o STRIP libavcodec/x86/h264_chromamc_10bit.o YASM libavcodec/x86/h264_chromamc.o YASM libavcodec/x86/h264_deblock.o YASM libavcodec/x86/h264_deblock_10bit.o STRIP libavcodec/x86/h264_chromamc.o STRIP libavcodec/x86/h264_deblock_10bit.o STRIP libavcodec/x86/h264_deblock.o YASM libavcodec/x86/h264_idct_10bit.o YASM libavcodec/x86/h264_idct.o STRIP libavcodec/x86/h264_idct_10bit.o YASM libavcodec/x86/h264_intrapred.o STRIP libavcodec/x86/h264_idct.o CC libavcodec/x86/h264_intrapred_init.o YASM libavcodec/x86/h264_intrapred_10bit.o CC libavcodec/x86/h264_qpel.o STRIP libavcodec/x86/h264_intrapred.o STRIP libavcodec/x86/h264_intrapred_10bit.o YASM libavcodec/x86/h264_qpel_10bit.o YASM libavcodec/x86/h264_qpel_8bit.o STRIP libavcodec/x86/h264_qpel_10bit.o YASM libavcodec/x86/h264_weight.o STRIP libavcodec/x86/h264_qpel_8bit.o STRIP libavcodec/x86/h264_weight.o CC libavcodec/x86/h264chroma_init.o CC libavcodec/x86/h264dsp_init.o YASM libavcodec/x86/h264_weight_10bit.o STRIP libavcodec/x86/h264_weight_10bit.o YASM libavcodec/x86/hevc_idct.o STRIP libavcodec/x86/hevc_idct.o YASM libavcodec/x86/hevc_res_add.o YASM libavcodec/x86/hevc_deblock.o STRIP libavcodec/x86/hevc_res_add.o YASM libavcodec/x86/hevc_sao.o STRIP libavcodec/x86/hevc_sao.o STRIP libavcodec/x86/hevc_deblock.o CC libavcodec/x86/hevcdsp_init.o YASM libavcodec/x86/hevc_sao_10bit.o STRIP libavcodec/x86/hevc_sao_10bit.o YASM libavcodec/x86/hpeldsp.o STRIP libavcodec/x86/hpeldsp.o CC libavcodec/x86/hpeldsp_init.o YASM libavcodec/x86/hevc_mc.o CC libavcodec/x86/huffyuvdsp_init.o YASM libavcodec/x86/huffyuvdsp.o YASM libavcodec/x86/huffyuvencdsp.o STRIP libavcodec/x86/huffyuvdsp.o CC libavcodec/x86/huffyuvencdsp_mmx.o STRIP libavcodec/x86/huffyuvencdsp.o CC libavcodec/x86/idctdsp_init.o YASM libavcodec/x86/idctdsp.o STRIP libavcodec/x86/idctdsp.o YASM libavcodec/x86/jpeg2000dsp.o STRIP libavcodec/x86/jpeg2000dsp.o CC libavcodec/x86/jpeg2000dsp_init.o YASM libavcodec/x86/lossless_audiodsp.o YASM libavcodec/x86/imdct36.o STRIP libavcodec/x86/lossless_audiodsp.o CC libavcodec/x86/lossless_audiodsp_init.o YASM libavcodec/x86/lossless_videodsp.o STRIP libavcodec/x86/lossless_videodsp.o CC libavcodec/x86/lossless_videodsp_init.o STRIP libavcodec/x86/imdct36.o CC libavcodec/x86/lpc.o CC libavcodec/x86/me_cmp_init.o YASM libavcodec/x86/mlpdsp.o STRIP libavcodec/x86/mlpdsp.o CC libavcodec/x86/mlpdsp_init.o CC libavcodec/x86/mpegaudiodsp.o YASM libavcodec/x86/me_cmp.o CC libavcodec/x86/mpegvideo.o CC libavcodec/x86/mpegvideodsp.o CC libavcodec/x86/mpegvideoenc.o STRIP libavcodec/x86/me_cmp.o YASM libavcodec/x86/mpegvideoencdsp.o STRIP libavcodec/x86/mpegvideoencdsp.o CC libavcodec/x86/mpegvideoencdsp_init.o YASM libavcodec/x86/pixblockdsp.o CC libavcodec/x86/pixblockdsp_init.o STRIP libavcodec/x86/pixblockdsp.o CC libavcodec/x86/pngdsp_init.o YASM libavcodec/x86/pngdsp.o STRIP libavcodec/x86/pngdsp.o CC libavcodec/x86/proresdsp_init.o YASM libavcodec/x86/proresdsp.o YASM libavcodec/x86/qpel.o STRIP libavcodec/x86/qpel.o STRIP libavcodec/x86/proresdsp.o CC libavcodec/x86/qpeldsp_init.o YASM libavcodec/x86/qpeldsp.o YASM libavcodec/x86/rv34dsp.o STRIP libavcodec/x86/rv34dsp.o CC libavcodec/x86/rv34dsp_init.o YASM libavcodec/x86/rv40dsp.o STRIP libavcodec/x86/qpeldsp.o CC libavcodec/x86/rv40dsp_init.o STRIP libavcodec/x86/rv40dsp.o YASM libavcodec/x86/sbrdsp.o STRIP libavcodec/x86/sbrdsp.o CC libavcodec/x86/sbrdsp_init.o CC libavcodec/x86/simple_idct.o STRIP libavcodec/x86/hevc_mc.o CC libavcodec/x86/snowdsp.o YASM libavcodec/x86/svq1enc.o STRIP libavcodec/x86/svq1enc.o CC libavcodec/x86/svq1enc_init.o YASM libavcodec/x86/synth_filter.o CC libavcodec/x86/synth_filter_init.o STRIP libavcodec/x86/synth_filter.o YASM libavcodec/x86/simple_idct10.o CC libavcodec/x86/takdsp_init.o YASM libavcodec/x86/takdsp.o CC libavcodec/x86/ttadsp_init.o YASM libavcodec/x86/ttadsp.o STRIP libavcodec/x86/takdsp.o CC libavcodec/x86/ttaencdsp_init.o STRIP libavcodec/x86/ttadsp.o CC libavcodec/x86/v210-init.o YASM libavcodec/x86/ttaencdsp.o STRIP libavcodec/x86/ttaencdsp.o CC libavcodec/x86/v210enc_init.o YASM libavcodec/x86/v210.o YASM libavcodec/x86/v210enc.o STRIP libavcodec/x86/v210.o CC libavcodec/x86/vc1dsp_init.o STRIP libavcodec/x86/v210enc.o CC libavcodec/x86/vc1dsp_mmx.o STRIP libavcodec/x86/simple_idct10.o YASM libavcodec/x86/vc1dsp_mc.o YASM libavcodec/x86/vc1dsp_loopfilter.o STRIP libavcodec/x86/vc1dsp_mc.o CC libavcodec/x86/videodsp_init.o YASM libavcodec/x86/videodsp.o STRIP libavcodec/x86/vc1dsp_loopfilter.o CC libavcodec/x86/vorbisdsp_init.o YASM libavcodec/x86/vorbisdsp.o STRIP libavcodec/x86/vorbisdsp.o CC libavcodec/x86/vp3dsp_init.o STRIP libavcodec/x86/videodsp.o CC libavcodec/x86/vp6dsp_init.o YASM libavcodec/x86/vp3dsp.o YASM libavcodec/x86/vp6dsp.o STRIP libavcodec/x86/vp6dsp.o CC libavcodec/x86/vp8dsp_init.o STRIP libavcodec/x86/vp3dsp.o CC libavcodec/x86/vp9dsp_init.o YASM libavcodec/x86/vp8dsp.o CC libavcodec/x86/vp9dsp_init_10bpp.o STRIP libavcodec/x86/vp8dsp.o CC libavcodec/x86/vp9dsp_init_12bpp.o YASM libavcodec/x86/vp8dsp_loopfilter.o CC libavcodec/x86/vp9dsp_init_16bpp.o STRIP libavcodec/x86/vp8dsp_loopfilter.o YASM libavcodec/x86/vp9intrapred.o YASM libavcodec/x86/vp9intrapred_16bpp.o STRIP libavcodec/x86/vp9intrapred.o STRIP libavcodec/x86/vp9intrapred_16bpp.o YASM libavcodec/x86/vp9itxfm_16bpp.o YASM libavcodec/x86/vp9lpf_16bpp.o YASM libavcodec/x86/vp9lpf.o STRIP libavcodec/x86/vp9itxfm_16bpp.o YASM libavcodec/x86/vp9mc.o STRIP libavcodec/x86/vp9mc.o YASM libavcodec/x86/vp9mc_16bpp.o STRIP libavcodec/x86/vp9mc_16bpp.o YASM libavcodec/x86/xvididct.o STRIP libavcodec/x86/vp9lpf_16bpp.o CC libavcodec/x86/xvididct_init.o CC libavcodec/xan.o STRIP libavcodec/x86/xvididct.o CC libavcodec/xbmdec.o CC libavcodec/xbmenc.o CC libavcodec/xface.o CC libavcodec/xfacedec.o src/libavcodec/xface.c: In function 'ff_xface_generate_face': src/libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] if (l >= i && m == j) ^ src/libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] src/libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Wstrict-overflow] src/libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] src/libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] src/libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] src/libavcodec/xface.c:318:27: warning: assuming signed overflow does not occur when assuming that (X + c) >= X is always true [-Wstrict-overflow] CC libavcodec/xfaceenc.o CC libavcodec/xiph.o CC libavcodec/xl.o CC libavcodec/xsubdec.o CC libavcodec/xsubenc.o CC libavcodec/xvididct.o CC libavcodec/xwddec.o STRIP libavcodec/x86/vp9lpf.o CC libavcodec/xwdenc.o CC libavcodec/xxan.o YASM libavcodec/x86/vp9itxfm.o CC libavcodec/y41pdec.o CC libavcodec/y41penc.o CC libavcodec/ylc.o CC libavcodec/yop.o CC libavcodec/yuv4dec.o CC libavcodec/yuv4enc.o CC libavcodec/zerocodec.o CC libavcodec/zmbv.o CC libavcodec/zmbvenc.o AR libpostproc/libpostproc.a CC libswresample/audioconvert.o CC libswresample/dither.o CC libswresample/options.o CC libswresample/rematrix.o src/libswresample/rematrix.c: In function 'auto_matrix': src/libswresample/rematrix.c:378:47: warning: iteration 64u invokes undefined behavior [-Waggressive-loop-optimizations] s->matrix_flt[0][i] = s->matrix[0][i]; ^ src/libswresample/rematrix.c:377:9: note: containing loop for (i = 0; i < FF_ARRAY_ELEMS(s->matrix[0])*FF_ARRAY_ELEMS(s->matrix[0]); i++) ^ CC libswresample/resample.o CC libswresample/resample_dsp.o CC libswresample/swresample.o CC libswresample/swresample_frame.o CC libswresample/x86/audio_convert_init.o YASM libswresample/x86/rematrix.o STRIP libswresample/x86/rematrix.o CC libswresample/x86/rematrix_init.o YASM libswresample/x86/resample.o YASM libswresample/x86/audio_convert.o CC libswresample/x86/resample_init.o CC libswscale/alphablend.o STRIP libswresample/x86/resample.o CC libswscale/gamma.o CC libswscale/hscale.o CC libswscale/hscale_fast_bilinear.o CC libswscale/input.o src/libswscale/input.c:929:13: warning: 'planar_rgb9le_to_a' defined but not used [-Wunused-function] static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \ ^ src/libswscale/input.c:941:5: note: in expansion of macro 'rgb9plus_planar_funcs_endian' rgb9plus_planar_funcs_endian(nbits, le, 0) \ ^ src/libswscale/input.c:944:1: note: in expansion of macro 'rgb9plus_planar_funcs' rgb9plus_planar_funcs(9) ^ src/libswscale/input.c:929:13: warning: 'planar_rgb9be_to_a' defined but not used [-Wunused-function] static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \ ^ src/libswscale/input.c:942:5: note: in expansion of macro 'rgb9plus_planar_funcs_endian' rgb9plus_planar_funcs_endian(nbits, be, 1) ^ src/libswscale/input.c:944:1: note: in expansion of macro 'rgb9plus_planar_funcs' rgb9plus_planar_funcs(9) ^ src/libswscale/input.c:929:13: warning: 'planar_rgb14le_to_a' defined but not used [-Wunused-function] static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \ ^ src/libswscale/input.c:941:5: note: in expansion of macro 'rgb9plus_planar_funcs_endian' rgb9plus_planar_funcs_endian(nbits, le, 0) \ ^ src/libswscale/input.c:947:1: note: in expansion of macro 'rgb9plus_planar_funcs' rgb9plus_planar_funcs(14) ^ src/libswscale/input.c:929:13: warning: 'planar_rgb14be_to_a' defined but not used [-Wunused-function] static void planar_rgb##nbits##endian_name##_to_a(uint8_t *dst, const uint8_t *src[4], \ ^ src/libswscale/input.c:942:5: note: in expansion of macro 'rgb9plus_planar_funcs_endian' rgb9plus_planar_funcs_endian(nbits, be, 1) ^ src/libswscale/input.c:947:1: note: in expansion of macro 'rgb9plus_planar_funcs' rgb9plus_planar_funcs(14) ^ CC libswscale/options.o CC libswscale/output.o STRIP libswresample/x86/audio_convert.o CC libswscale/rgb2rgb.o CC libswscale/slice.o src/libswscale/slice.c: In function 'ff_init_slice_from_src': src/libswscale/slice.c:178:56: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] s->plane[i].line[start[i] - first + j] = src_[i] + j * stride[i]; ^ src/libswscale/slice.c:184:37: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] s->plane[i].line[j] = src_[i] + j * stride[i]; ^ CC libswscale/swscale.o CC libswscale/swscale_unscaled.o CC libswscale/utils.o CC libswscale/vscale.o CC libswscale/x86/hscale_fast_bilinear_simd.o YASM libswscale/x86/input.o STRIP libswscale/x86/input.o YASM libswscale/x86/output.o STRIP libswscale/x86/output.o CC libswscale/x86/rgb2rgb.o STRIP libavcodec/x86/vp9itxfm.o CC libswscale/x86/swscale.o YASM libswscale/x86/scale.o CC libswscale/x86/yuv2rgb.o CC libswscale/yuv2rgb.o CC libavutil/adler32.o CC libavutil/aes.o STRIP libswscale/x86/scale.o CC libavutil/aes_ctr.o CC libavutil/audio_fifo.o CC libavutil/avstring.o CC libavutil/base64.o CC libavutil/blowfish.o CC libavutil/bprint.o CC libavutil/buffer.o CC libavutil/camellia.o CC libavutil/cast5.o CC libavutil/channel_layout.o CC libavutil/color_utils.o CC libavutil/cpu.o CC libavutil/crc.o CC libavutil/des.o CC libavutil/dict.o CC libavutil/display.o CC libavutil/downmix_info.o CC libavutil/error.o CC libavutil/eval.o CC libavutil/fifo.o CC libavutil/file.o CC libavutil/file_open.o CC libavutil/fixed_dsp.o CC libavutil/float_dsp.o CC libavutil/frame.o CC libavutil/hash.o CC libavutil/hmac.o CC libavutil/hwcontext.o CC libavutil/hwcontext_vaapi.o CC libavutil/hwcontext_vdpau.o CC libavutil/imgutils.o CC libavutil/intmath.o CC libavutil/integer.o CC libavutil/lfg.o CC libavutil/lls.o CC libavutil/log.o CC libavutil/log2_tab.o CC libavutil/lzo.o CC libavutil/mastering_display_metadata.o CC libavutil/mathematics.o CC libavutil/md5.o CC libavutil/mem.o CC libavutil/murmur3.o CC libavutil/opt.o CC libavutil/parseutils.o CC libavutil/pixdesc.o CC libavutil/pixelutils.o CC libavutil/random_seed.o CC libavutil/rational.o CC libavutil/rc4.o CC libavutil/reverse.o CC libavutil/ripemd.o CC libavutil/samplefmt.o CC libavutil/sha.o CC libavutil/sha512.o CC libavutil/stereo3d.o CC libavutil/tea.o CC libavutil/threadmessage.o CC libavutil/time.o CC libavutil/timecode.o CC libavutil/tree.o CC libavutil/twofish.o CC libavutil/utils.o CC libavutil/x86/cpu.o YASM libavutil/x86/cpuid.o YASM libavutil/x86/fixed_dsp.o STRIP libavutil/x86/cpuid.o CC libavutil/x86/fixed_dsp_init.o STRIP libavutil/x86/fixed_dsp.o CC libavutil/x86/float_dsp_init.o CC libavutil/x86/lls_init.o YASM libavutil/x86/float_dsp.o YASM libavutil/x86/lls.o CC libavutil/x86/pixelutils_init.o YASM libavutil/x86/pixelutils.o STRIP libavutil/x86/lls.o CC libavutil/xga_font_data.o CC libavutil/xtea.o STRIP libavutil/x86/float_dsp.o INSTALL libavdevice/libavdevice.a INSTALL libavformat/libavformat.a INSTALL libpostproc/libpostproc.a AR libavfilter/libavfilter.a STRIP libavutil/x86/pixelutils.o AR libavcodec/libavcodec.a AR libswresample/libswresample.a AR libswscale/libswscale.a INSTALL libswresample/libswresample.a INSTALL libavfilter/libavfilter.a INSTALL libswscale/libswscale.a INSTALL libavcodec/libavcodec.a AR libavutil/libavutil.a LD ffmpeg_g LD ffprobe_g LD ffserver_g INSTALL libavutil/libavutil.a CP ffserver STRIP ffserver CP ffmpeg STRIP ffmpeg CP ffprobe STRIP ffprobe INSTALL install-progs-yes INSTALL ffmpeg INSTALL ffprobe INSTALL ffserver make: Leaving directory '/home/torstein/mpv-build/ffmpeg_build' Using mpv options: Setting top to : /home/torstein/mpv-build/mpv Setting out to : /home/torstein/mpv-build/mpv/build Checking for waf version in 1.8.4-1.9.0 : ok Checking for program 'cc' : /usr/bin/cc Checking for program 'pkg-config' : /usr/bin/pkg-config Checking for program 'ar' : /usr/bin/ar Checking for program 'perl' : /usr/bin/perl Checking for program 'rst2html' : /usr/bin/rst2html Checking for program 'rst2man' : /usr/bin/rst2man Checking for program 'rst2pdf' : not found Checking for program 'windres' : not found Checking for 'gcc' (C compiler) : /usr/bin/cc Detected target OS: : os-linux Checking for compiler flags -Werror=implicit-function-declaration : yes Checking for compiler flags -Wno-error=deprecated-declarations : yes Checking for compiler flags -Wno-error=unused-function : yes Checking for compiler flags -Wempty-body : yes Checking for compiler flags -Wdisabled-optimization : yes Checking for compiler flags -Wstrict-prototypes : yes Checking for compiler flags -Wno-format-zero-length : yes Checking for compiler flags -Werror=format-security : yes Checking for compiler flags -Wno-redundant-decls : yes Checking for mpv CLI player : yes Checking for shared library : disabled Checking for static library : disabled Checking for static build : disabled Checking for whether to include binary compile time : yes Checking for whether to optimize : yes Checking for whether to compile-in debugging information : yes Checking for manpage generation : yes Checking for html manual generation : disabled Checking for pdf manual generation : disabled Checking for dynamic loader : yes Checking for dlopen : yes Checking for compilation of default filters for vf_dlopen : disabled Checking for zsh completion : disabled Checking for inline assembly (currently without effect) : yes Checking for test suite (using cmocka) : disabled Checking for generate a clang compilation database : disabled Checking for compiler support for noexecstack : yes Checking for linker support for --nxcompat --no-seh --dynamicbase : no Checking for -lm : yes Checking for MinGW : os-win32 not found Checking for POSIX environment : yes Checking for development environment : yes Checking for win32 : not found any of os-win32, os-cygwin Checking for internal pthread wrapper for win32 (Vista+) : win32 not found Checking for POSIX threads : yes Checking for GNU C extensions : yes Checking for stdatomic.h : yes Checking for compiler support for __atomic built-ins : stdatomic found Checking for compiler support for __sync built-ins : stdatomic found Checking for stdatomic.h support or emulation : yes Checking for C11 TLS support : yes Checking for linking with -lrt : yes Checking for iconv : yes Checking for w32/dos paths : not found any of os-win32, os-cygwin Checking for termios : yes Checking for shm : yes Checking for nanosleep : yes Checking for POSIX spawnp()/kill() : yes Checking for posix_spawnp() or MinGW : yes Checking for glob() : yes Checking for glob() win32 replacement : not found any of os-win32, os-cygwin Checking for fchmod() : yes Checking for vt.h : yes Checking for gbm.h : yes Checking for GLIBC API for setting thread name : yes Checking for OSX API for setting thread name : glibc-thread-name found Checking for BSD API for setting thread name : glibc-thread-name found Checking for NetBSD API for setting thread name : glibc-thread-name found Checking for BSD's fstatfs() : no Checking for Linux's fstatfs() : yes Checking for Samba support : yes Checking for Lua : yes (version found: 52arch) Checking for SSA/ASS support : yes Checking for libass OSD support : yes Checking for dummy OSD support : libass-osd found Checking for zlib : yes Checking for Encoding : yes Checking for Bluray support : yes Checking for dvdread support : yes Checking for dvdnav support : yes Checking for cdda support (libcdio) : yes Checking for ENCA support : yes Checking for libguess support : yes Checking for uchardet support : yes Checking for librubberband support : yes Checking for LCMS2 support : yes Checking for VapourSynth filter bridge (Python) : no ('vapoursynth >= 24 vapoursynth-script >= 23' not found) Checking for VapourSynth filter bridge (Lazy Lua) : no ('vapoursynth >= 24' not found) Checking for VapourSynth filter bridge (core) : not found any of vapoursynth-lazy, vapoursynth Checking for libarchive wrapper for reading zip files and more : disabled Checking for SDL2 : disabled Checking for SDL (1.x) : disabled Checking for OSS (implementation from opensound.com) : no Checking for OSS (platform-specific OSS implementation) : yes Checking for OSS (emulation on top of SunAudio) : oss-audio-native found Checking for OSS audio output : yes Checking for RSound audio output : no Checking for sndio audio input/output : disabled Checking for PulseAudio audio output : yes Checking for JACK audio output : yes Checking for OpenAL audio output : disabled Checking for OpenSL ES audio output : no Checking for ALSA audio output : yes Checking for CoreAudio audio output : no Checking for WASAPI audio output : win32 not found Checking for Cocoa : no Checking for DRM : yes Checking for GBM : yes Checking for Wayland : yes Checking for X11 : yes Checking for Xss screensaver extensions : yes Checking for X extensions : yes Checking for Xv video output : yes Checking for Xinerama : yes Checking for Xrandr : yes Checking for OpenGL Cocoa Backend : cocoa not found Checking for OpenGL X11 Backend : yes Checking for OpenGL X11 EGL Backend : yes Checking for OpenGL DRM EGL Backend : yes Checking for OpenGL Wayland Backend : yes Checking for OpenGL Win32 Backend : win32 not found Checking for OpenGL/DirectX Interop Backend : gl-win32 not found Checking for OpenGL Win32 ANGLE Backend : not found any of os-win32, os-cygwin Checking for VDPAU acceleration : yes Checking for VDPAU with OpenGL/X11 : yes Checking for VAAPI acceleration : yes Checking for VAAPI (X11 support) : yes Checking for VAAPI (Wayland support) : yes Checking for VAAPI (DRM/EGL support) : yes Checking for VAAPI GLX : yes Checking for VAAPI EGL on X11 : yes Checking for VAAPI EGL : yes Checking for CACA : yes Checking for JPEG support : yes Checking for Direct3D support : win32 not found Checking for Android support : no Checking for Raspberry Pi support : no Checking for Desktop standard OpenGL support : yes Checking for Android OpenGL ES support : android not found Checking for Any OpenGL (ES) support : yes Checking for OpenGL without platform-specific code (e.g. for libmpv) : not found any of libmpv-shared, libmpv-static Checking for MALI via Linux fbdev : no Checking for OpenGL video outputs : yes Checking for EGL helper functions : yes Checking for libav/ffmpeg : yes Checking for libswresample : yes Checking for libavresample : libswresample found Checking for usable resampler found : yes Checking for libavfilter : yes Checking for libavdevice : yes Checking for libavcodec avcodec_enum_to_chroma_pos API : no Checking for libavutil AVFrame metadata : yes Checking for libavutil AVFrame skip samples metadata : yes Checking for libavutil AV_PIX_FMT_MMAL : yes Checking for libavtuil av_version_info() : yes Checking for libavutil new pixdesc fields : yes Checking for libavcodec 64 bit AVPacket.duration : yes Checking for libavcodec AVSubtitleRect AVPicture removal : yes Checking for libavcodec avcodec_profile_name() : no Checking for libavcodec decode/encode API : no Checking for libavcodec AVCodecParameters API : yes Checking for libavutil AVHWFramesContext API : yes Checking for libavutil HDR TRCs : yes Checking for libavutil mastering display metadata struct : yes Checking for libavcodec VAAPI hwaccel : yes Checking for libavcodec videotoolbox hwaccel : no Checking for Videotoolbox with OpenGL : videotoolbox-hwaccel, gl-cocoa not found Checking for libavcodec VDPAU hwaccel : no Checking for libavcodec DXVA2 and D3D11VA hwaccel : win32 not found Checking for CUDA hwaccel : yes Checking for GCC SSE4 intrinsics for GPU memcpy : yes Checking for TV interface : yes Checking for videoio.h : no Checking for videodev2.h : yes Checking for Video4Linux2 TV interface : yes Checking for libv4l2 support : yes Checking for audio input support : yes Checking for DVB input module : yes Checking for w32 executable : not found any of os-win32, os-cygwin Checking for Apple Remote support : cocoa not found Writing configuration header: : config.h 'configure' finished successfully (3.235s) Waf: Entering directory `/home/torstein/mpv-build/mpv/build' [ 1/245] Compiling version.sh [ 2/245] Compiling TOOLS/osxbundle/mpv.app/Contents/Resources/icon.icns [ 3/245] Compiling video/out/x11_icon.bin [ 4/245] Compiling etc/input.conf [ 5/245] Compiling etc/builtin.conf [ 6/245] Compiling sub/osd_font.otf [ 7/245] Compiling player/lua/defaults.lua [ 8/245] Compiling player/lua/assdraw.lua [ 9/245] Compiling player/lua/options.lua [ 10/245] Compiling player/lua/osc.lua [ 11/245] Compiling player/lua/ytdl_hook.lua [ 12/245] Processing ebml_types.h: demux/ebml.c demux/demux_mkv.c -> build/ebml_types.h [ 13/245] Compiling demux/ebml.c [ 14/245] Compiling DOCS/man/mpv.rst [ 15/245] Compiling video/out/opengl/osd.c [ 16/245] Compiling demux/demux_playlist.c [ 17/245] Compiling demux/demux.c [ 18/245] Compiling osdep/semaphore_osx.c [ 19/245] Compiling input/cmd_parse.c [ 20/245] Compiling audio/chmap_sel.c [ 21/245] Compiling audio/filter/af_equalizer.c [ 22/245] Compiling player/main.c [ 23/245] Compiling player/command.c [ 24/245] Compiling video/filter/refqueue.c [ 25/245] Compiling video/filter/vf_vdpaurb.c [ 26/245] Compiling audio/filter/af_pan.c [ 27/245] Compiling stream/stream_memory.c [ 28/245] Compiling video/out/opengl/lcms.c [ 29/245] Compiling video/mp_image.c [ 30/245] Compiling video/filter/vf_dsize.c [ 31/245] Compiling stream/tvi_v4l2.c [ 32/245] Compiling options/path.c [ 33/245] Compiling demux/demux_lavf.c [ 34/245] Compiling misc/bstr.c [ 35/245] Compiling input/cmd_list.c [ 36/245] Compiling stream/stream_rar.c [ 37/245] Compiling video/filter/vf_rotate.c [ 38/245] Compiling video/filter/vf_stereo3d.c [ 39/245] Compiling input/event.c [ 40/245] Compiling player/playloop.c [ 41/245] Compiling video/out/opengl/formats.c [ 42/245] Compiling common/av_common.c [ 43/245] Compiling video/decode/vd_lavc.c [ 44/245] Compiling video/filter/vf_mirror.c [ 45/245] Compiling common/playlist.c [ 46/245] Compiling audio/out/pull.c [ 47/245] Compiling player/video.c ../video/decode/vd_lavc.c: In function 'decode': ../video/decode/vd_lavc.c:801:5: warning: 'avcodec_decode_video2' is deprecated [-Wdeprecated-declarations] ret = avcodec_decode_video2(avctx, ctx->pic, &got_picture, &pkt); ^ In file included from /home/torstein/mpv-build/mpv/common/av_common.h:25:0, from ../video/decode/vd_lavc.c:35: /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:4810:5: note: declared here int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, ^ ../video/decode/vd_lavc.c:857:5: warning: 'pkt_pts' is deprecated [-Wdeprecated-declarations] mpi->pts = mp_pts_from_av(ctx->pic->pkt_pts, &ctx->codec_timebase); ^ In file included from /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:38:0, from /home/torstein/mpv-build/mpv/common/av_common.h:25, from ../video/decode/vd_lavc.c:35: /home/torstein/mpv-build/build_libs/include/libavutil/frame.h:276:13: note: declared here int64_t pkt_pts; ^ [ 48/245] Compiling video/filter/vf_pullup.c [ 49/245] Compiling misc/ring.c [ 50/245] Compiling video/filter/vf.c [ 51/245] Compiling stream/stream_bluray.c [ 52/245] Compiling video/out/vo.c [ 53/245] Compiling demux/demux_raw.c [ 54/245] Compiling audio/filter/af_lavcac3enc.c [ 55/245] Compiling audio/chmap.c [ 56/245] Compiling sub/img_convert.c [ 57/245] Compiling audio/audio_buffer.c ../audio/filter/af_lavcac3enc.c: In function 'filter_out': ../audio/filter/af_lavcac3enc.c:321:5: warning: 'avcodec_encode_audio2' is deprecated [-Wdeprecated-declarations] int lavc_ret = avcodec_encode_audio2(s->lavc_actx, &pkt, frame, &ok); ^ In file included from ../audio/filter/af_lavcac3enc.c:28:0: /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:5282:5: note: declared here int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, ^ [ 58/245] Compiling video/vdpau.c [ 59/245] Compiling osdep/main-fn-unix.c [ 60/245] Compiling video/filter/vf_gradfun.c [ 61/245] Compiling video/out/vo_xv.c [ 62/245] Compiling video/out/opengl/context.c [ 63/245] Compiling video/out/opengl/user_shaders.c [ 64/245] Compiling audio/out/ao_alsa.c [ 65/245] Compiling player/audio.c [ 66/245] Compiling audio/out/ao_jack.c [ 67/245] Compiling osdep/timer.c [ 68/245] Compiling common/version.c [ 69/245] Compiling video/out/wayland_common.c [ 70/245] Compiling video/filter/vf_dlopen.c [ 71/245] Compiling video/filter/vf_expand.c [ 72/245] Compiling video/out/wayland/buffer.c [ 73/245] Compiling osdep/path-unix.c [ 74/245] Compiling stream/stream_dvb.c [ 75/245] Compiling ta/ta_talloc.c [ 76/245] Compiling sub/dec_sub.c [ 77/245] Compiling video/csputils.c [ 78/245] Compiling demux/demux_mkv.c [ 79/245] Compiling audio/filter/af.c [ 80/245] Compiling video/out/opengl/hwdec_vaglx.c [ 81/245] Compiling video/out/opengl/common.c [ 82/245] Compiling osdep/terminal-unix.c [ 83/245] Compiling stream/cache.c [ 84/245] Compiling stream/stream_dvd_common.c [ 85/245] Compiling video/out/opengl/hwdec_cuda.c [ 86/245] Compiling input/ipc-unix.c [ 87/245] Compiling video/out/opengl/utils.c [ 88/245] Compiling audio/filter/tools.c [ 89/245] Compiling video/decode/vaapi.c [ 90/245] Compiling audio/out/ao.c [ 91/245] Compiling video/filter/vf_vdpaupp.c [ 92/245] Compiling sub/sd_ass.c [ 93/245] Compiling input/keycodes.c [ 94/245] Compiling common/encode_lavc.c [ 95/245] Compiling stream/ai_alsa1x.c [ 96/245] Compiling stream/cookies.c [ 97/245] Compiling video/mp_image_pool.c [ 98/245] Compiling stream/rar.c [ 99/245] Compiling video/filter/vf_eq.c [100/245] Compiling video/out/vo_image.c [101/245] Compiling video/out/opengl/context_x11.c [102/245] Compiling options/options.c [103/245] Compiling video/out/vo_wayland.c [104/245] Compiling video/decode/cuda.c [105/245] Compiling misc/rendezvous.c [106/245] Compiling demux/ebml.c [107/245] Compiling osdep/io.c [108/245] Compiling player/lavfi.c [109/245] Compiling osdep/subprocess.c [110/245] Compiling stream/audio_in.c [111/245] Compiling video/out/aspect.c [112/245] Compiling demux/demux_disc.c [113/245] Compiling sub/draw_bmp.c [114/245] Compiling stream/cache_file.c [115/245] Compiling common/av_log.c [116/245] Compiling options/parse_commandline.c [117/245] Compiling player/scripting.c [118/245] Compiling video/out/vo_x11.c [119/245] Compiling osdep/subprocess-posix.c [120/245] Compiling video/filter/vf_lavfi.c [121/245] Compiling audio/format.c [122/245] Compiling video/out/dither.c [123/245] Compiling video/hwdec.c [124/245] Compiling video/out/filter_kernels.c [125/245] Compiling audio/filter/af_drc.c [126/245] Compiling player/external_files.c [127/245] Compiling video/filter/vf_scale.c [128/245] Compiling video/out/bitmap_packer.c [129/245] Compiling video/filter/vf_crop.c [130/245] Compiling demux/demux_mkv_timeline.c [131/245] Compiling player/misc.c [132/245] Compiling video/out/vo_vdpau.c [133/245] Compiling stream/stream_file.c [134/245] Compiling stream/stream_dvdnav.c [135/245] Compiling player/loadfile.c [136/245] Compiling video/filter/vf_vavpp.c [137/245] Compiling misc/node.c [138/245] Compiling audio/filter/af_channels.c [139/245] Compiling stream/stream.c [140/245] Compiling stream/stream_lavf.c [141/245] Compiling audio/filter/af_volume.c [142/245] Compiling sub/sd_lavc.c [143/245] Compiling stream/stream_cb.c [144/245] Compiling video/fmt-conversion.c [145/245] Compiling audio/out/ao_null.c [146/245] Compiling demux/packet.c [147/245] Compiling stream/tv.c [148/245] Compiling stream/stream_dvd.c [149/245] Compiling video/out/vo_vaapi.c [150/245] Compiling audio/out/ao_oss.c [151/245] Compiling demux/cue.c [152/245] Compiling osdep/threads.c [153/245] Compiling player/client.c [154/245] Compiling demux/demux_null.c [155/245] Compiling video/out/opengl/video_shaders.c [156/245] Compiling player/configfiles.c [157/245] Compiling audio/fmt-conversion.c [158/245] Compiling player/lua.c [159/245] Compiling common/tags.c [160/245] Compiling demux/demux_timeline.c [161/245] Compiling sub/lavc_conv.c [162/245] Compiling common/codecs.c [163/245] Compiling video/filter/vf_yadif.c [164/245] Compiling demux/demux_cue.c [165/245] Compiling video/vaapi.c [166/245] Compiling ta/ta_utils.c [167/245] Compiling player/osd.c [168/245] Compiling video/decode/dec_video.c [169/245] Compiling video/out/drm_common.c [170/245] Compiling misc/charset_conv.c [171/245] Compiling video/out/opengl/context_x11egl.c [172/245] Compiling audio/decode/ad_lavc.c In file included from ../misc/charset_conv.c:40:0: /usr/include/uchardet/uchardet.h:52:1: warning: function declaration isn't a prototype [-Wstrict-prototypes] uchardet_t uchardet_new(); ^ [173/245] Compiling video/out/opengl/context_drm_egl.c [174/245] Compiling video/out/opengl/video.c [175/245] Compiling video/out/opengl/hwdec_vaegl.c ../audio/decode/ad_lavc.c: In function 'decode_packet': ../audio/decode/ad_lavc.c:224:5: warning: 'avcodec_decode_audio4' is deprecated [-Wdeprecated-declarations] int ret = avcodec_decode_audio4(avctx, priv->avframe, &got_frame, &pkt); ^ In file included from ../audio/decode/ad_lavc.c:24:0: /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:4761:5: note: declared here int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, ^ ../audio/decode/ad_lavc.c:248:5: warning: 'pkt_pts' is deprecated [-Wdeprecated-declarations] double out_pts = mp_pts_from_av(priv->avframe->pkt_pts, &priv->codec_timebase); ^ In file included from /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:38:0, from ../audio/decode/ad_lavc.c:24: /home/torstein/mpv-build/build_libs/include/libavutil/frame.h:276:13: note: declared here int64_t pkt_pts; ^ [176/245] Compiling stream/stream_cdda.c [177/245] Compiling player/screenshot.c [178/245] Compiling audio/filter/af_rubberband.c [179/245] Compiling sub/ass_mp.c [180/245] Compiling ta/ta.c [181/245] Compiling video/out/vo_null.c [182/245] Compiling video/image_writer.c [183/245] Compiling video/sws_utils.c [184/245] Compiling video/filter/vf_noformat.c [185/245] Compiling options/m_config.c ../video/image_writer.c: In function 'write_lavc': ../video/image_writer.c:146:5: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations] int ret = avcodec_encode_video2(avctx, &pkt, pic, &got_output); ^ In file included from ../video/image_writer.c:23:0: /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:5321:5: note: declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ [186/245] Compiling osdep/timer-linux.c [187/245] Compiling video/out/opengl/context_wayland.c [188/245] Compiling video/out/vo_opengl.c [189/245] Compiling video/out/wayland/memfile.c [190/245] Compiling demux/timeline.c [191/245] Compiling audio/filter/af_scaletempo.c [192/245] Compiling audio/decode/ad_spdif.c [193/245] Compiling demux/demux_rar.c ../audio/decode/ad_spdif.c: In function 'determine_codec_profile': ../audio/decode/ad_spdif.c:126:5: warning: 'avcodec_decode_audio4' is deprecated [-Wdeprecated-declarations] if (avcodec_decode_audio4(ctx, frame, &got_frame, pkt) < 1 || !got_frame) ^ In file included from /home/torstein/mpv-build/build_libs/include/libavformat/avformat.h:319:0, from ../audio/decode/ad_spdif.c:23: /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:4761:5: note: declared here int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, ^ [194/245] Compiling options/parse_configfile.c [195/245] Compiling stream/stream_tv.c [196/245] Compiling stream/tvi_dummy.c [197/245] Compiling video/out/x11_common.c [198/245] Compiling video/out/vo_drm.c [199/245] Compiling player/sub.c [200/245] Compiling misc/json.c [201/245] Compiling video/out/opengl/egl_helpers.c [202/245] Compiling video/out/win_state.c [203/245] Compiling video/out/vo_caca.c [204/245] Compiling demux/codec_tags.c [205/245] Compiling common/common.c [206/245] Compiling audio/filter/af_format.c [207/245] Compiling audio/filter/af_lavrresample.c [208/245] Compiling audio/filter/af_lavfi.c [209/245] Compiling audio/out/ao_pcm.c [210/245] Compiling video/out/opengl/hwdec_vdpau.c [211/245] Compiling input/input.c [212/245] Compiling sub/osd_libass.c [213/245] Compiling audio/decode/dec_audio.c [214/245] Compiling video/out/opengl/hwdec.c [215/245] Compiling audio/out/ao_lavc.c [216/245] Compiling stream/stream_smb.c [217/245] Compiling misc/dispatch.c [218/245] Compiling demux/demux_tv.c [219/245] Compiling demux/demux_edl.c ../audio/out/ao_lavc.c: In function 'encode_audio_and_write': ../audio/out/ao_lavc.c:303:5: warning: 'avcodec_encode_audio2' is deprecated [-Wdeprecated-declarations] int status = avcodec_encode_audio2(ac->codec, &packet, frame, &got_packet); ^ In file included from /home/torstein/mpv-build/mpv/common/encode_lavc.h:26:0, from ../audio/out/ao_lavc.c:39: /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:5282:5: note: declared here int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, ^ [220/245] Compiling options/m_option.c [221/245] Compiling video/out/vo_lavc.c [222/245] Compiling demux/demux_mf.c [223/245] Compiling stream/frequencies.c [224/245] Compiling video/filter/vf_flip.c ../video/out/vo_lavc.c: In function 'encode_video_and_write': ../video/out/vo_lavc.c:282:5: warning: 'avcodec_encode_video2' is deprecated [-Wdeprecated-declarations] int status = avcodec_encode_video2(vc->codec, &packet, frame, &got_packet); ^ In file included from /home/torstein/mpv-build/mpv/common/encode_lavc.h:26:0, from ../video/out/vo_lavc.c:34: /home/torstein/mpv-build/build_libs/include/libavcodec/avcodec.h:5321:5: note: declared here int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, ^ [225/245] Compiling stream/dvb_tune.c [226/245] Compiling video/vdpau_mixer.c [227/245] Compiling video/img_format.c [228/245] Compiling stream/stream_avdevice.c [229/245] Compiling stream/ai_oss.c [230/245] Compiling video/filter/vf_sub.c [231/245] Compiling stream/stream_null.c [232/245] Compiling video/gpu_memcpy.c [233/245] Compiling audio/out/push.c [234/245] Compiling audio/out/ao_pulse.c [235/245] Compiling video/filter/vf_buffer.c [236/245] Compiling video/out/vo_opengl_cb.c [237/245] Compiling options/m_property.c [238/245] Compiling input/ipc.c [239/245] Compiling video/filter/vf_format.c [240/245] Compiling common/msg.c [241/245] Compiling sub/osd.c [242/245] Compiling stream/stream_edl.c [243/245] Compiling stream/stream_mf.c [244/245] Compiling audio/audio.c [245/245] Linking build/mpv Waf: Leaving directory `/home/torstein/mpv-build/mpv/build' 'build' finished successfully (10.100s) -------------- next part -------------- display: :0 screen: 0 API version: 1 Information string: NVIDIA VDPAU Driver Shared Library 370.28 Thu Sep 1 19:18:08 PDT 2016 Video surface: name width height types ------------------------------------------- 420 4096 4096 NV12 YV12 422 4096 4096 UYVY YUYV Decoder capabilities: name level macbs width height ---------------------------------------------------- MPEG1 0 65536 4032 4048 MPEG2_SIMPLE 3 65536 4032 4048 MPEG2_MAIN 3 65536 4032 4048 H264_BASELINE 41 65536 4032 4080 H264_MAIN 41 65536 4032 4080 H264_HIGH 41 65536 4032 4080 VC1_SIMPLE 1 8190 2048 2048 VC1_MAIN 2 8190 2048 2048 VC1_ADVANCED 4 8190 2048 2048 MPEG4_PART2_SP 3 8192 2048 2048 MPEG4_PART2_ASP 5 8192 2048 2048 DIVX4_QMOBILE 0 8192 2048 2048 DIVX4_MOBILE 0 8192 2048 2048 DIVX4_HOME_THEATER 0 8192 2048 2048 DIVX4_HD_1080P 0 8192 2048 2048 DIVX5_QMOBILE 0 8192 2048 2048 DIVX5_MOBILE 0 8192 2048 2048 DIVX5_HOME_THEATER 0 8192 2048 2048 DIVX5_HD_1080P 0 8192 2048 2048 H264_CONSTRAINED_BASELINE 41 65536 4032 4080 H264_EXTENDED 41 65536 4032 4080 H264_PROGRESSIVE_HIGH 41 65536 4032 4080 H264_CONSTRAINED_HIGH 41 65536 4032 4080 H264_HIGH_444_PREDICTIVE 41 65536 4032 4080 HEVC_MAIN --- not supported --- HEVC_MAIN_10 --- not supported --- HEVC_MAIN_STILL --- not supported --- HEVC_MAIN_12 --- not supported --- HEVC_MAIN_444 --- not supported --- Output surface: name width height nat types ---------------------------------------------------- B8G8R8A8 16384 16384 y Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 R10G10B10A2 16384 16384 y Y8U8V8A8 V8U8Y8A8 A4I4 I4A4 A8I8 I8A8 Bitmap surface: name width height ------------------------------ B8G8R8A8 16384 16384 R8G8B8A8 16384 16384 R10G10B10A2 16384 16384 B10G10R10A2 16384 16384 A8 16384 16384 Video mixer: feature name sup ------------------------------------ DEINTERLACE_TEMPORAL y DEINTERLACE_TEMPORAL_SPATIAL y INVERSE_TELECINE y NOISE_REDUCTION y SHARPNESS y LUMA_KEY y From nikhil.r at geazy.com Wed Oct 12 20:58:14 2016 From: nikhil.r at geazy.com (Nikhil M Ranka) Date: Wed, 12 Oct 2016 23:28:14 +0530 Subject: [FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg In-Reply-To: References: Message-ID: Using this command I am trying to generate a video with a combination of both blend and zoompan fiters. > ffmpeg \ > -loop 1 -t 5 -i 164470_2.jpg \ > -loop 1 -t 5 -i 164470_4.jpg \ > -loop 1 -t 5 -i 164470_5.jpg \ > -filter_complex \ > "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v0]; > \ > [1:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v1]; > \ > [2:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v2]; > \ > [1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b1v]; > \ > [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b2v]; > \ > [v0][b1v][v1][b2v][v2]concat=n=5,format=yuv420p[v]" \ > -map "[v]" -aspect 16:9 outWithBlendAndZoom.mp4 Here is the output of the command. > ffmpeg version N-81972-g8063978-static http://johnvansickle.com/ffmpeg/ > Copyright (c) 2000-2016 the FFmpeg developers > built with gcc 5.4.1 (Debian 5.4.1-2) 20160904 > configuration: --enable-gpl --enable-version3 --enable-static > --disable-debug --disable-ffplay --disable-indev=sndio > --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-gray --enable-libass --enable-libebur128 > --enable-libfreetype --enable-libfribidi --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg > --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex > --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc > --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 > --enable-libx265 --enable-libxvid --enable-libzimg > libavutil 55. 32.100 / 55. 32.100 > libavcodec 57. 61.102 / 57. 61.102 > libavformat 57. 51.106 / 57. 51.106 > libavdevice 57. 0.102 / 57. 0.102 > libavfilter 6. 63.100 / 6. 63.100 > libswscale 4. 1.100 / 4. 1.100 > libswresample 2. 2.100 / 2. 2.100 > libpostproc 54. 0.100 / 54. 0.100 > Input #0, image2, from '164470_2.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: 253286 kb/s > Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), > 1600x1200, 25 fps, 25 tbr, 25 tbn, 25 tbc > Input #1, image2, from '164470_4.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: 220653 kb/s > Stream #1:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), > 1600x1200, 25 fps, 25 tbr, 25 tbn, 25 tbc > Input #2, image2, from '164470_5.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: 253983 kb/s > Stream #2:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown), > 1600x1200, 25 fps, 25 tbr, 25 tbn, 25 tbc > File 'outWithBlendAndZoom.mp4' already exists. Overwrite ? [y/N] y > [swscaler @ 0xae59120] deprecated pixel format used, make sure you did set > range correctly > [swscaler @ 0xae93060] deprecated pixel format used, make sure you did set > range correctly > [swscaler @ 0xaeccfc0] deprecated pixel format used, make sure you did set > range correctly > [swscaler @ 0xaf06f20] deprecated pixel format used, make sure you did set > range correctly > [swscaler @ 0xaf40e80] deprecated pixel format used, make sure you did set > range correctly > [swscaler @ 0xaf7ade0] deprecated pixel format used, make sure you did set > range correctly > [swscaler @ 0xafb4d40] deprecated pixel format used, make sure you did set > range correctly > [Parsed_concat_5 @ 0xae32c60] Input link in1:v0 parameters (size > 1600x1200, SAR 0:1) do not match the corresponding output link in0:v0 > parameters (1280x720, SAR 0:1) > [Parsed_concat_5 @ 0xae32c60] Failed to configure output pad on > Parsed_concat_5 > Error configuring complex filters. > Invalid argument Any inputs here which would fix the issue with the command would be greatly appreciated. Thanks Regards, *Nikhil* On Wed, Oct 12, 2016 at 5:55 PM, Nikhil M Ranka wrote: > Yes, as per Carl's suggestion, I installed the latest version > > ffmpeg version N-81972-g8063978-static http://johnvansickle.com/ffmpeg/ > Copyright (c) 2000-2016 the FFmpeg developers > > Now, can you look at the command which is to generate a video with blend > and zoom filters and help me with fixing that? > > > **Blend with zoom** > >> >> ffmpeg \ >> -loop 1 -t 5 -i 164470_2.jpg \ >> -loop 1 -t 5 -i 164470_3.jpg \ >> -loop 1 -t 5 -i 164470_5.jpg \ >> -filter_complex \ >> "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoo >> m/2)':y='ih/2-(ih/zoom/2)'[v0]; \ >> [1:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v1]; >> \ >> [2:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v2]; >> \ >> [1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b1v]; >> \ >> [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b2v]; >> \ >> [v0][b1v][v1][b2v][v2]concat=n=5,format=yuv420p[v]" \ >> -map "[v]" -aspect 16:9 outWithBlendAndZoom.mp4 > > > This command did not work out, I am not sure why. Here is the output: > > ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg >> developers >> built on Oct 31 2014 05:16:04 with gcc 4.6 (Debian 4.6.3-1) >> configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 >> --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' >> --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' >> --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared >> --disable-ffserver --disable-doc --enable-bzlib --enable-zlib >> --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl >> --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray >> --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex >> --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 >> --enable-libvpx >> libavutil 52. 89.100 / 52. 89.100 >> libavcodec 55. 66.101 / 55. 66.101 >> libavformat 55. 43.100 / 55. 43.100 >> libavdevice 55. 13.101 / 55. 13.101 >> libavfilter 4. 8.100 / 4. 8.100 >> libswscale 2. 6.100 / 2. 6.100 >> libswresample 0. 19.100 / 0. 19.100 >> libpostproc 52. 3.100 / 52. 3.100 >> Input #0, image2, from '164470_2.jpg': >> Duration: 00:00:00.04, start: 0.000000, bitrate: N/A >> Stream #0:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 >> tbr, 25 tbn, 25 tbc >> Input #1, image2, from '164470_3.jpg': >> Duration: 00:00:00.04, start: 0.000000, bitrate: N/A >> Stream #1:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 >> tbr, 25 tbn, 25 tbc >> Input #2, image2, from '164470_5.jpg': >> Duration: 00:00:00.04, start: 0.000000, bitrate: N/A >> Stream #2:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25 >> tbr, 25 tbn, 25 tbc >> File 'outWithBlendAndZoom.mp4' already exists. Overwrite ? [y/N] y >> [swscaler @ 0xba66100] deprecated pixel format used, make sure you >> did set range correctly >> [swscaler @ 0xbaa23a0] deprecated pixel format used, make sure you >> did set range correctly >> [swscaler @ 0xbac4680] deprecated pixel format used, make sure you >> did set range correctly >> [swscaler @ 0xbae6960] deprecated pixel format used, make sure you >> did set range correctly >> [swscaler @ 0xbb07260] deprecated pixel format used, make sure you >> did set range correctly >> [swscaler @ 0xbb2af20] deprecated pixel format used, make sure you >> did set range correctly >> [swscaler @ 0xbb4d200] deprecated pixel format used, make sure you >> did set range correctly >> [Parsed_concat_5 @ 0xba8e060] Input link in1:v0 parameters (size >> 1600x1200, SAR 0:1) do not match the corresponding output link in0:v0 >> parameters (1280x720, SAR 0:1) >> [Parsed_concat_5 @ 0xba8e060] Failed to configure output pad on >> Parsed_concat_5 >> > > Regards, > *Nikhil* > > On Wed, Oct 12, 2016 at 5:35 PM, Reto Kromer wrote: > >> Nikhil M Ranka wrote: >> >> > ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 >> >the FFmpeg developers built on Oct 31 2014 05:16:04 >> >> As Carl Eugen already mentioned, you should really update. >> >> Best regards, Reto >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". >> > > From al4321 at gmail.com Wed Oct 12 23:17:04 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Wed, 12 Oct 2016 22:17:04 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: In reality, I need a video that is cross-platform. Android, for example, doesn't like *.mov videos, using the default Samsung Video Player on Samsung Galaxy S series. This is why *please please please* allow people to encode videos, that work everywhere, and document the process. Everywhere (for me) is defined as: Samsung Galaxy S3 - to S7 (Android 4+), Chromebook (preferably), iPhone (4S)+, iPad 2+ (Apple iOS), MacBook (Mac OS X), Windows 7+ (10), and Debian Linux. (Windows XP also needed, and it works with 3rd party codecs). And I want it to work out-of-the-box using stock media player and stock codecs, if possible. The best candidate for such a video would be H.264/MPEG-4-AVC (High-Profile) codec in MP4 container and with 2-channel AAC-LC audio (and using yuv420p colorspace and limited timebase and up to Full HD 1080p and up to 30 fps and ... well too many "ands"). I require a good quality Full HD 1080p videos and 2-channel stereo sound. I never realized that the problem is so difficult with videos, while MP3 audio and JPEG (and PNG) images work great everywhere, out-of-the-box, for videos the problem is so hard to crack. And closing bugs without resolution doesn't help my use-case either. Maybe we need some kind of input parameter that will check lots of stuff to produce compatible videos, specifically check for timebase (limit 100k), fps (limit up to 30 framerate), colorspace (limit to yuv420p only), audio (limit 2-channel and AAC-LC or MP3 audio), and limited bitrate (maybe level 5.0?). What I really need is some kind of a "limited" MP4 profile, that works *everywhere*. Maybe a good solution to my problem is to introduce a new flag to ffmpeg encoder like "-compatible" which will enforce all those limits upon encoded video, but guarantee that things will work in all popular decoders? Best wishes, -Alexey On Wed, Oct 12, 2016 at 5:04 PM, Carl Eugen Hoyos wrote: > 2016-10-12 16:03 GMT+02:00 Thomas Worth : >> On Wed, Oct 12, 2016 at 2:50 AM, Carl Eugen Hoyos >> wrote: >> >>> 2016-10-12 9:31 GMT+02:00 Thomas Worth : >>> >>> > Has anyone actually looked at the MP4 file, BrokenVideo-8min.mp4? > >> Just look at mdhd and you'll see what I'm talking about. > > This is the second comment today that could be misinterpreted: > Please remember that not everybody is a native speaker and > be more careful. > > Allow me a question: > Did you test with any non-QT based player? > If your analysis were right, nothing could play the sample, so I > believe it is safe to say that your analysis cannot be correct. > > [...] > >> Upon closer inspection, there is definitely a problem. The >> 10000000 you are referring to is in the wrong place in the >> video track's mdhd atom. mdhd should be 32 bytes, >> according to the Apple specification for QuickTime, which >> the MP4 file format is based upon. > > You are of course right that isom is based on mov but you > are missing two (important) things: > There is a difference between mov and isom. > Alexey told us that he needs QT compatibility but he told > FFmpeg that he absolutely doesn't care about QT, he > requested an isom file (and that's why FFmpeg did not try > to create a QT-compatible file and did not warn that the file > is not QT-compatible). > >> The mdhd in Alexey's file is 44 bytes. mdhd should look >> like this: >> >> [0000] //size >> [0000] //'mdhd' >> [0] //version >> [000] //flags >> [0000] //creation time >> [0000] //modification time >> [0000] //time scale >> [0000] //duration > > The mdhd atom in the file is version 1 and has 64bit time and > duration fields and is therefore twelve bytes larger than a > version 0 mdhd atom. > > Thank you for finally solving the question why QT fails! > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". -- -Alexey Eromenko "Technologov" From al4321 at gmail.com Wed Oct 12 23:31:30 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Wed, 12 Oct 2016 22:31:30 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: And please DONT push me to MOV. The same way that I don't encode audio only-for-Apple and I don't encode images only-for-Apple, I want to encode video to work everywhere. From al4321 at gmail.com Wed Oct 12 23:35:53 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Wed, 12 Oct 2016 22:35:53 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: Let's call my wish " -compatible 1.0" (targeting current-gen hardware) and once all the popular hardware platforms advances to HEVC to AV1 codec, we will create a new profile " -compatible 2.0" for UltraHD resolution 4K and 60 fps and 10-bit and updated codecs and more... So once every 5 to 10 years I recommend to create a new " -compatible X.0" profile. From barsnick at gmx.net Wed Oct 12 23:52:39 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 12 Oct 2016 22:52:39 +0200 Subject: [FFmpeg-user] Compiling for libavcodec VDPAU hwaccel In-Reply-To: References: Message-ID: <20161012205239.GG31718@sunshine.barsnick.net> On Wed, Oct 12, 2016 at 09:14:56 +0200, Torstein Sørnes wrote: > When compiling I get > Checking for libavcodec VDPAU hwaccel : no Well, not from ffmpeg: > External libraries providing hardware acceleration: > nvenc vaapi vdpau [...] > Enabled hwaccels: > h263_vaapi hevc_vaapi mpeg2_vaapi mpeg4_vdpau vc1_vdpau wmv3_vaapi > h264_vaapi hevc_vdpau mpeg2_vdpau vc1_vaapi vp9_vaapi wmv3_vdpau > h264_vdpau mpeg1_vdpau mpeg4_vaapi [...] > INSTALL install-progs-yes > INSTALL ffmpeg > INSTALL ffprobe > INSTALL ffserver > make: Leaving directory '/home/torstein/mpv-build/ffmpeg_build' All went fine. Then comes mpv build: [...] > Checking for libavcodec VDPAU hwaccel : no Are you sure it's checking the static library you just built (and installed to /home/torstein/mpv-build/build_libs)? Anyway, looks like an mpv problem to me. Moritz From ceffmpeg at gmail.com Wed Oct 12 23:57:36 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 22:57:36 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: 2016-10-12 22:17 GMT+02:00 Alexey Eromenko : > Android, for example, doesn't like *.mov videos, using the default > Samsung Video Player on Samsung Galaxy S series. How can I reproduce this? Please do not top-post here, Carl Eugen From barsnick at gmx.net Thu Oct 13 00:11:26 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 12 Oct 2016 23:11:26 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: <20161012211126.GH31718@sunshine.barsnick.net> On Wed, Oct 12, 2016 at 22:35:53 +0200, Alexey Eromenko wrote: > Let's call my wish " -compatible 1.0" (targeting current-gen hardware) > and once all the popular hardware platforms advances to HEVC to AV1 > codec, we will create a new profile " -compatible 2.0" for UltraHD > resolution 4K and 60 fps and 10-bit and updated codecs and more... Wow, you're opening a can of worms in a world of incompatibility. Have you seen this (perhaps outdated, perhaps slightly incorrect) table, just for iOS? https://trac.ffmpeg.org/wiki/Encode/H.264#iOS (Other sources for this information can also be found.) And then check for websites which recommend how to encode for the web for compatibility with iOS AND other mobile devices AND desktop, and tell you how many variants of your video you need to provide, for "sufficient" coverage. (Perhaps those days are over since a few years? Dunno.) > So once every 5 to 10 years I recommend to create a new " -compatible > X.0" profile. With iOS obsoleting itself every few years, few << 5. ;) (May be exaggerated, I don't have enough data.) I think you're deep into "wrapper" land, which needs to maintain knowledge (and requirements like yours) outside of an encoder. Just my $0.02, Moritz From al4321 at gmail.com Thu Oct 13 00:38:45 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Wed, 12 Oct 2016 23:38:45 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: <20161012211126.GH31718@sunshine.barsnick.net> References: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <20161012211126.GH31718@sunshine.barsnick.net> Message-ID: Carl Eugen Hoyos wrote: >How can I reproduce this? Encode any file into *.mov and try to play it. Either from Samsung File Manager or Samsung Video Player or from Android Gallery. (tested on Samsung Galaxy S7, but I'm pretty sure same will happen on every other Galaxy; If you need I can also test on Galaxy S3 and Galaxy Note 10.1 tablet and Galaxy Tab S2 tablet, which I also have in my family) *But* if you change the file extension of the encoded *.MOV file to *.mp4, it plays perfectly with both players. Moreover, the Android video file scanner refuses to detect and to add MOV files to the video library (which works great for WebM and MP4 files). What happens is that Android refuses to recognize MOV as a video file. (until you install VLC for Android or some 3rd party video player) Basically MP4 and MPEG-4-AVC, being a standard, gives some advantages. Moritz Barsnick wrote: > Wow, you're opening a can of worms in a world of incompatibility. Have > you seen this (perhaps outdated, perhaps slightly incorrect) table, > just for iOS? > https://trac.ffmpeg.org/wiki/Encode/H.264#iOS > (Other sources for this information can also be found.) Yes, I read this table and I consider it a good job. But it doesn't mention "timebase" and not a pee about "-video_track_timescale" parameter. Perhaps this info should be added. What I see is that iPhone 4S (and above) as well as iPad 2+ are fairly good. They can decode H.264 Full HD 1080p video @ 30 fps (8-bit) perfectly. Because I require Full HD 1080p videos, older devices like iPhone 1 or iPad 1 can't play those, and are unsupported by Apple anyway, they can be removed from "compatible 1.0" profile. > > I think you're deep into "wrapper" land, which needs to maintain > knowledge (and requirements like yours) outside of an encoder. Yeah, maybe. But I don't know how-to write a wrapper around ffmpeg. Can I extract information like timebase and fps and duration from input video file ? Best wishes, -Alexey From ceffmpeg at gmail.com Thu Oct 13 00:46:42 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 12 Oct 2016 23:46:42 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <20161012211126.GH31718@sunshine.barsnick.net> Message-ID: 2016-10-12 23:38 GMT+02:00 Alexey Eromenko : > Carl Eugen Hoyos wrote: >>How can I reproduce this? > > Encode any file into *.mov and try to play it. Sorry that my question was so unclear: Please provide the command line and console output and an input (!) file that allow to reproduce this issue. Carl Eugen From al4321 at gmail.com Thu Oct 13 00:58:46 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Wed, 12 Oct 2016 23:58:46 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <20161012211126.GH31718@sunshine.barsnick.net> Message-ID: On Wed, Oct 12, 2016 at 11:46 PM, Carl Eugen Hoyos wrote: > 2016-10-12 23:38 GMT+02:00 Alexey Eromenko : >> Carl Eugen Hoyos wrote: >>>How can I reproduce this? >> >> Encode any file into *.mov and try to play it. > > Sorry that my question was so unclear: > Please provide the command line and console output and an input (!) > file that allow to reproduce this issue. alexey at deb9ws:/media/cdrom$ ffmpeg -i /media/sf_F_DRIVE/Test-video-coding/3DMark03/3DMark03-f01-h264-20000k-bitrate.mp4 -b:v 2000k /media/sf_F_DRIVE/Test-video-coding/3DMark03/3DMark03-f01-h264-2000k-bitrate-mov.mov ffmpeg version 3.1.3-1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.1.1 (Debian 6.1.1-11) 20160802 configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 WARNING: library configuration mismatch avutil configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avcodec configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avformat configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avdevice configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 avfilter configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 swresample configuration: --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 libavutil 55. 28.100 / 55. 32.100 libavcodec 57. 48.101 / 57. 61.100 libavformat 57. 41.100 / 57. 51.103 libavdevice 57. 0.101 / 57. 0.102 libavfilter 6. 47.100 / 6. 63.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/sf_F_DRIVE/Test-video-coding/3DMark03/3DMark03-f01-h264-20000k-bitrate.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf53.21.1 Duration: 00:00:30.00, start: 0.000000, bitrate: 21985 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1024x768, 21981 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler [libx264 @ 0x1737e40] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x1737e40] profile High, level 3.1 [libx264 @ 0x1737e40] 264 - core 148 r2708 86b7198 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mov @ 0x1736560] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Output #0, mov, to '/media/sf_F_DRIVE/Test-video-coding/3DMark03/3DMark03-f01-h264-2000k-bitrate-mov.mov': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.51.103 Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1024x768, q=-1--1, 2000 kb/s, 30 fps, 15360 tbn, 30 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc57.48.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 0 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Press [q] to stop, [?] for help frame= 900 fps= 29 q=-1.0 Lsize= 8026kB time=00:00:29.90 bitrate=2198.8kbits/s speed=0.968x video:8014kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.142594% [libx264 @ 0x1737e40] frame I:6 Avg QP:29.11 size: 76159 [libx264 @ 0x1737e40] frame P:226 Avg QP:34.17 size: 19209 [libx264 @ 0x1737e40] frame B:668 Avg QP:37.72 size: 5101 [libx264 @ 0x1737e40] consecutive B-frames: 0.9% 0.2% 0.7% 98.2% [libx264 @ 0x1737e40] mb I I16..4: 3.9% 59.7% 36.4% [libx264 @ 0x1737e40] mb P I16..4: 1.3% 9.8% 1.3% P16..4: 42.3% 14.8% 8.9% 0.0% 0.0% skip:21.6% [libx264 @ 0x1737e40] mb B I16..4: 0.1% 0.8% 0.0% B16..8: 47.5% 4.7% 1.2% direct: 2.4% skip:43.2% L0:45.5% L1:52.6% BI: 1.9% [libx264 @ 0x1737e40] final ratefactor: 31.67 [libx264 @ 0x1737e40] 8x8 transform intra:77.6% inter:63.7% [libx264 @ 0x1737e40] coded y,uvDC,uvAC intra: 61.3% 35.3% 5.5% inter: 14.4% 4.2% 0.0% [libx264 @ 0x1737e40] i16 v,h,dc,p: 10% 42% 9% 39% [libx264 @ 0x1737e40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 17% 19% 6% 14% 7% 17% 4% 10% [libx264 @ 0x1737e40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 20% 26% 7% 9% 6% 9% 5% 7% [libx264 @ 0x1737e40] i8c dc,h,v,p: 78% 15% 6% 1% [libx264 @ 0x1737e40] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x1737e40] ref P L0: 59.7% 16.2% 17.9% 6.2% [libx264 @ 0x1737e40] ref B L0: 90.1% 7.4% 2.4% [libx264 @ 0x1737e40] ref B L1: 96.4% 3.6% [libx264 @ 0x1737e40] kb/s:2188.22 The problem is not encoded file per se, but the *.mov file extension, that Android dislikes. As I said after a simple rename to MP4 extension, it works. Input file: https://drive.google.com/open?id=0BycgkMZbeQOzbzFIZy1aYzA3ZXc Output file: (MOV) https://drive.google.com/open?id=0BycgkMZbeQOzYjg3WnE0OTc5WUU -- -Alexey Eromenko "Technologov" From ceffmpeg at gmail.com Thu Oct 13 01:10:56 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 13 Oct 2016 00:10:56 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <20161012211126.GH31718@sunshine.barsnick.net> Message-ID: 2016-10-12 23:58 GMT+02:00 Alexey Eromenko : > The problem is not encoded file per se, but the *.mov file > extension, that Android dislikes. As I said after a simple > rename to MP4 extension, it works. So the file does play on Android, I don't have to test? Carl Eugen From al4321 at gmail.com Thu Oct 13 01:15:03 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Thu, 13 Oct 2016 00:15:03 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <20161012211126.GH31718@sunshine.barsnick.net> Message-ID: On Thu, Oct 13, 2016 at 12:10 AM, Carl Eugen Hoyos wrote: > 2016-10-12 23:58 GMT+02:00 Alexey Eromenko : > >> The problem is not encoded file per se, but the *.mov file >> extension, that Android dislikes. As I said after a simple >> rename to MP4 extension, it works. > > So the file does play on Android, I don't have to test? > The file plays, after I change the file extension to MP4, yes. -- -Alexey Eromenko "Technologov" From h.reindl at thelounge.net Thu Oct 13 02:12:29 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 13 Oct 2016 01:12:29 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: <8aaea547-a6c9-8ca8-c631-846c6f15cd68@thelounge.net> Am 12.10.2016 um 22:31 schrieb Alexey Eromenko: > And please DONT push me to MOV. > > The same way that I don't encode audio only-for-Apple and I don't > encode images only-for-Apple, I want to encode video to work > everywhere than just encode them H264 *baseline* which wroks on all apple devices, android and everything else for many years - that's it From h.reindl at thelounge.net Thu Oct 13 02:15:01 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 13 Oct 2016 01:15:01 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <20161012211126.GH31718@sunshine.barsnick.net> Message-ID: <6ca1a2dd-8969-37a1-7dd5-fe341718b488@thelounge.net> Am 13.10.2016 um 00:15 schrieb Alexey Eromenko: > On Thu, Oct 13, 2016 at 12:10 AM, Carl Eugen Hoyos wrote: >> 2016-10-12 23:58 GMT+02:00 Alexey Eromenko : >> >>> The problem is not encoded file per se, but the *.mov file >>> extension, that Android dislikes. As I said after a simple >>> rename to MP4 extension, it works. >> >> So the file does play on Android, I don't have to test? >> > > The file plays, after I change the file extension to MP4, yes so what is the problem of ffmpeg? guess what - you are supposed to use .m4v - ffmpeg even warns with profile 'ipod' if you are not doing so for many years - that's all not a ffmpeg problem - it's know about the crap out there and use ffmpeg the right way for whatever you need From sven.c.dack at sky.com Thu Oct 13 04:19:41 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 13 Oct 2016 02:19:41 +0100 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: <11decb44-4c0d-4e71-1d30-a233b2ebba9f@sky.com> On 12/10/16 21:17, Alexey Eromenko wrote: > In reality, I need a video that is cross-platform. Android, for > example, doesn't like *.mov videos, using the default Samsung Video > Player on Samsung Galaxy S series. > This is why *please please please* allow people to encode videos, that > work everywhere, and document the process. > > Everywhere (for me) is defined as: Samsung Galaxy S3 - to S7 (Android > 4+), Chromebook (preferably), iPhone (4S)+, iPad 2+ (Apple iOS), > MacBook (Mac OS X), Windows 7+ (10), and Debian Linux. (Windows XP > also needed, and it works with 3rd party codecs). What you want is out of control of the encoders. When players refuse to support a standard then there is nothing the encoders can do about it. Most people skip right past the default players and install VLC. VLC runs on all the platforms you've mentioned (and more). It supports the latest and best video & audio standards, comes with the same user interface and nobody needs to make any compromises with regards to quality or versatility (except for having to install it). It's been the perfect solution to this problem and the reason for its popularity, but it's also likely not the solution you were expecting to find. From al4321 at gmail.com Thu Oct 13 09:56:15 2016 From: al4321 at gmail.com (Alexey Eromenko) Date: Thu, 13 Oct 2016 08:56:15 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: <8aaea547-a6c9-8ca8-c631-846c6f15cd68@thelounge.net> References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <8aaea547-a6c9-8ca8-c631-846c6f15cd68@thelounge.net> Message-ID: On Oct 13, 2016 2:12 AM, "Reindl Harald" wrote: > > > > Am 12.10.2016 um 22:31 schrieb Alexey Eromenko: >> >> And please DONT push me to MOV. >> >> The same way that I don't encode audio only-for-Apple and I don't >> encode images only-for-Apple, I want to encode video to work >> everywhere > > > than just encode them H264 *baseline* which wroks on all apple devices, android and everything else for many years - that's it > > baseline won't solve the problems. It doesn't force low timebase and it doesn't force yuv420p colorspace, it doesn't force FPS 30 limit, so things won't work. And high profile actually works fine on all of the devices I tested. === Back to the problem : I propose two new solutions for ffmpeg : a patch that will auto-set a low timebase, up to 100k and "-compatible 1.0" parameter to force many parameters, including timebase, according to what decoders can actually play back. Is there a downside to force a timebase between 10k and 100k? If we agree, we can try to write a solution. -Alexey. From dev at rarevision.com Thu Oct 13 11:22:12 2016 From: dev at rarevision.com (Thomas Worth) Date: Thu, 13 Oct 2016 01:22:12 -0700 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> Message-ID: On Wed, Oct 12, 2016 at 8:04 AM, Carl Eugen Hoyos wrote: > 2016-10-12 16:03 GMT+02:00 Thomas Worth : > > On Wed, Oct 12, 2016 at 2:50 AM, Carl Eugen Hoyos > > wrote: > > > >> 2016-10-12 9:31 GMT+02:00 Thomas Worth : > >> > >> > Has anyone actually looked at the MP4 file, BrokenVideo-8min.mp4? > > > Just look at mdhd and you'll see what I'm talking about. > > This is the second comment today that could be misinterpreted: > Please remember that not everybody is a native speaker and > be more careful. > Understood. Thanks. Allow me a question: > Did you test with any non-QT based player? > If your analysis were right, nothing could play the sample, so I > believe it is safe to say that your analysis cannot be correct. > Yes. Tested the file with Adobe After Effects version 13 on a Mac, and it failed. I am pretty sure After Effects uses its own media decoder for MOV/MP4 and not QuickTime. The mdhd atom in the file is version 1 and has 64bit time and > duration fields and is therefore twelve bytes larger than a > version 0 mdhd atom. > Right. I took another look at this, and QuickTime Player on OS X 10.12 does report a 23.976 frame rate. I re-encoded Alexey's file with my copy of ffmpeg using libx264 and using -video_track_timescale 10000000, and it wrote an MP4 file with the same mdhd atom as Alexey's file. Obviously, the duration field of the mdhd atom (version 1) needed to be 64 bit since the video was so long that the PTS values would have exceeded the 32 bit unsigned limit. In this case, since the file has 11509 frames, the last PTS would be 11509*417083, or 4800208247. Anyway, it worked with QuickTime Player so we can rule this out. It may not be a container problem after all as I originally suspected, but an H264 decoder problem. If the file were encoded as JPEG and not H.264 and it works, then the problem is codec related. Thomas From h.reindl at thelounge.net Thu Oct 13 11:32:23 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 13 Oct 2016 10:32:23 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <8aaea547-a6c9-8ca8-c631-846c6f15cd68@thelounge.net> Message-ID: Am 13.10.2016 um 08:56 schrieb Alexey Eromenko: > On Oct 13, 2016 2:12 AM, "Reindl Harald" wrote: >> >> Am 12.10.2016 um 22:31 schrieb Alexey Eromenko: >>> >>> And please DONT push me to MOV. >>> >>> The same way that I don't encode audio only-for-Apple and I don't >>> encode images only-for-Apple, I want to encode video to work >>> everywhere >> >> >> than just encode them H264 *baseline* which wroks on all apple devices, > android and everything else for many years - that's it >> > > baseline won't solve the problems. It doesn't force low timebase and it > doesn't force yuv420p colorspace, it doesn't force FPS 30 limit, so things > won't work *you* are the one operating ffmpeg and so it's under your control, practically everyone which is using ffmpeg writes some wrapper script around and never bother about details in the future private $mp4_x264_options = array ( array('param' => 'f', 'value' => 'ipod'), array('param' => 'preset', 'value' => 'slow'), array('param' => 'codec:v', 'value' => 'libx264'), array('param' => 'codec:a', 'value' => 'aac'), array('param' => 'strict', 'value' => 'experimental'), array('param' => 'cutoff', 'value' => '15000'), array('param' => 'flags', 'value' => '+loop+mv4'), array('param' => 'cmp', 'value' => '256'), array('param' => 'partitions', 'value' => '+parti4x4+parti8x8+partp4x4+partp8x8+partb8x8'), array('param' => 'me_method', 'value' => 'hex'), array('param' => 'me_range', 'value' => '16'), array('param' => 'subq', 'value' => '9'), array('param' => 'trellis', 'value' => '1'), array('param' => 'refs', 'value' => '5'), array('param' => 'g', 'value' => '250'), array('param' => 'keyint_min', 'value' => '25'), array('param' => 'sc_threshold', 'value' => '40'), array('param' => 'i_qfactor', 'value' => '0.71'), array('param' => 'qcomp', 'value' => '0.6'), array('param' => 'qmin', 'value' => '0'), array('param' => 'qmax', 'value' => '69'), array('param' => 'qdiff', 'value' => '4'), array('param' => 'bufsize', 'value' => '2M'), array('param' => 'pix_fmt', 'value' => 'yuv420p'), array('param' => 'multithreading', 'value' => true), array('param' => 'qt_faststart', 'value' => true), array('param' => 'movflags', 'value' => '+faststart'), array('param' => 'flvtool2', 'value' => false), array('param' => 'twopass', 'value' => true), ); From sven.c.dack at sky.com Thu Oct 13 12:43:37 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 13 Oct 2016 10:43:37 +0100 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <8aaea547-a6c9-8ca8-c631-846c6f15cd68@thelounge.net> Message-ID: On 13/10/16 07:56, Alexey Eromenko wrote: > If we agree, we can try to write a solution. > You don't need people to agree with you. You really just need to provide patches, make sure you don't limit or destroy anybody else's work and be fair to all. When you get a No as an answer then demand an explanation and follow it. If you want ffmpeg to have a new option, a new decoder/encoder, filter, format, whatever, then just go ahead and do it. From cvilad at gmail.com Thu Oct 13 12:41:52 2016 From: cvilad at gmail.com (Carles Vila) Date: Thu, 13 Oct 2016 11:41:52 +0200 Subject: [FFmpeg-user] framerate conversion with sync audio In-Reply-To: References: Message-ID: > > > > > > ffmpeg -i ... -af atempo=0.96 > > > > (24/25 = 0.96) > > > > Wow, I messed that one up completely. Incorporating Carl's suggestion as > well of -vf setpts, the filter chain should look something like: > > ffmpeg -i -vf setpts=PTS*0.8 -af=atune=25/24 > > or if -r works for you: > ffmpeg -r 25 -i -af=atune=25/24 > > Hi, I have tested with the atempo filter and it certainly works! BTW I think atune does not exist..:) Thanks for pointing me in the right direction though. A drawback for me is the fact that this filter performs pitch correction. Anyone know what algorithm is being used? Anyway, this introduces artifacts and phase issues in multichannel audio which are unacceptable in my case. I have further investigated and found a filter chain that suits my need: asetrate, followed by aresample. To be precise i have used ffmpeg -r 25 -i input_24fps.mov -af asetrate=50000,aresample=48000 -c:v prores -profile:v 3 -c:a pcm_s24le output_25fps_resampledaudio.mov where 50000=48000*(25/24) My only remaining problem, is that my original mov has 6 audio streams but my process only processes and outputs the first. How can I apply the same filter to all audio streams? Thank you!! From ceffmpeg at gmail.com Thu Oct 13 12:54:16 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 13 Oct 2016 11:54:16 +0200 Subject: [FFmpeg-user] framerate conversion with sync audio In-Reply-To: References: Message-ID: 2016-10-13 11:41 GMT+02:00 Carles Vila : > ffmpeg -r 25 -i input_24fps.mov -af asetrate=50000,aresample=48000 -c:v > prores -profile:v 3 -c:a pcm_s24le output_25fps_resampledaudio.mov > > where 50000=48000*(25/24) > > My only remaining problem, is that my original mov has 6 audio streams but > my process only processes and outputs the first. > How can I apply the same filter to all audio streams? You use -filter_complex instead of -vf and -af -filter_complex [0:0]setpts=PTS*0.8[v];[0:1]asetrate,aresample[a0];[0:2]asetrate,aresample[a1] and then -map [v] -map [a0] -map [a1] (untested) Carl Eugen From ceffmpeg at gmail.com Thu Oct 13 12:55:19 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 13 Oct 2016 11:55:19 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <8aaea547-a6c9-8ca8-c631-846c6f15cd68@thelounge.net> Message-ID: 2016-10-13 11:43 GMT+02:00 Sven C. Dack : > On 13/10/16 07:56, Alexey Eromenko wrote: >> >> If we agree, we can try to write a solution. >> > You don't need people to agree with you. You really just need to > provide patches, make sure you don't limit or destroy anybody > else's work and be fair to all. > > When you get a No as an answer then demand an explanation > and follow it. If you want ffmpeg to have a new option, a new > decoder/encoder, filter, format, whatever, then just go ahead and do it. This is all true but I would like to add that Michael has already suggested which way to go. Carl Eugen From alseczg at gmail.com Thu Oct 13 13:34:38 2016 From: alseczg at gmail.com (tyt xtreme) Date: Thu, 13 Oct 2016 12:34:38 +0200 Subject: [FFmpeg-user] nvenc h264 encoding Message-ID: Dear All, Any idea why this encoding doesn't work? $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high444p -pixel_format yuv444p -preset default perspective_out.mp4 ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.50.100 Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s, 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) Metadata: handler_name : VideoHandler File 'perspective_out.mp4' already exists. Overwrite ? [y/N] y Output #0, mp4, to 'perspective_out.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.51.103 Stream #0:0(eng): Video: h264 (h264_nvenc) (High 4:4:4 Predictive) ([33][0][0][0] / 0x0021), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 fps, 30k tbn, 29.97 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc57.61.100 h264_nvenc Side data: cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help [h264_nvenc @ 0000000001d84640] No free surfaces Video encoding failed Conversion failed! Thanks, Br, Gabor From sven.c.dack at sky.com Thu Oct 13 14:52:03 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 13 Oct 2016 12:52:03 +0100 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: References: Message-ID: On 13/10/16 11:34, tyt xtreme wrote: > Dear All, > > Any idea why this encoding doesn't work? > > $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high444p > -pixel_format yuv444p -preset default perspective_out.mp4 > > ... > [h264_nvenc @ 0000000001d84640] No free surfaces > Video encoding failed > Conversion failed! Surfaces are a reference to the memory buffers used by the encoder. You can find out about which surfaces your graphics card supports by opening the Nvidia settings panel, -> "VDPAU Information", -> "Surface Limits". If your card doesn't support the pixel format or the picture exceeds the surface limit might this already explain why you get this error message. Although I would expect to see a different error message... You can also check with "nvidia-smi" which applications are currently using your graphics card. Suspended processes, zombie processes or just multiple processes can also exhaust the amount of available surfaces. From kevin.j.wheatley at gmail.com Thu Oct 13 15:35:10 2016 From: kevin.j.wheatley at gmail.com (Kevin Wheatley) Date: Thu, 13 Oct 2016 13:35:10 +0100 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift In-Reply-To: References: Message-ID: Andreas, instead of using the -colormatrix option try instead using -vf scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709 assuming your DPX files are utilising full range encoding Kevin From shima at pspunch.com Thu Oct 13 16:00:15 2016 From: shima at pspunch.com (PSPunch) Date: Thu, 13 Oct 2016 22:00:15 +0900 Subject: [FFmpeg-user] Audio delayed with DeckLink Message-ID: <40186d5b-1529-0922-f657-acd1092a2d56@pspunch.com> Hi, On Win7 x64, Capturing SDI from DeckLink Duo 2. When encoding with FFmpeg, audio seems to be about 100ms later than video. Is there a known solution to this, or is there a way to delay video by roughly 100ms? Below is the command & output when using NVENC and streaming UDP, but delayed audio is present also when using libx264 or outputting to FLV file. Also there is no such sync issues when capturing the same SDI input using Blackmagic Media Express. --------------------------------------------------- ffmpeg -f decklink -i "DeckLink Duo (3)@9" -vcodec nvenc -b:v 2M -pix_fmt yuv420p -acodec aac -b:a 128k -bsf:v h264_mp4toannexb -f mpegts udp://127.0.0.1:30003?pkt_size=1316 ffmpeg version N-79037-g370cecc Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/david/opt/ffmpeg-cross-compile/sandbox/cross_compilers/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --enable-decklink --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-frei0r --enable-filter=frei0r --enable-bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-libdcadec --enable-avisynth --enable-gray --enable-libopenh264 --extra-libs=-lpsapi --extra-cflags= --enable-static --disable-shared --prefix=/home/david/opt/ffmpeg-cross-compile/sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-nonfree --enable-libfdk-aac --disable-libfaac --enable-nvenc --enable-runtime-cpudetect libavutil 55. 19.100 / 55. 19.100 libavcodec 57. 28.103 / 57. 28.103 libavformat 57. 28.101 / 57. 28.101 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 39.102 / 6. 39.102 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [decklink @ 0000000000603420] Found Decklink mode 1920 x 1080 with rate 29.97(i) [decklink @ 0000000000603420] Frame received (#1) - No input signal detected - Frames dropped 1 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, decklink, from 'DeckLink Duo (3)@9': Duration: N/A, start: 0.000000, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, -5 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc Output #0, mpegts, to 'udp://127.0.0.1:30003?pkt_size=1316': Metadata: encoder : Lavf57.28.101 Stream #0:0: Video: h264 (nvenc) (Main), yuv420p, 1920x1080, q=-1--1, 2000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc Metadata: encoder : Lavc57.28.103 nvenc Side data: cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: -1 Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc57.28.103 aac Stream mapping: Stream #0:1 -> #0:0 (rawvideo (native) -> h264 (nvenc)) Stream #0:0 -> #0:1 (pcm_s16le (native) -> aac (native)) -- David Shimamoto From alseczg at gmail.com Thu Oct 13 16:01:00 2016 From: alseczg at gmail.com (tyt xtreme) Date: Thu, 13 Oct 2016 15:01:00 +0200 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: References: Message-ID: And what can i do on Windows to check these capabilities? Btw the GPU is a Gainward 6 Gb nVidia GTX 980 Ti so i think this should support the above formats. On Thu, Oct 13, 2016 at 1:52 PM, Sven C. Dack wrote: > On 13/10/16 11:34, tyt xtreme wrote: > >> Dear All, >> >> Any idea why this encoding doesn't work? >> >> $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high444p >> -pixel_format yuv444p -preset default perspective_out.mp4 >> >> ... >> [h264_nvenc @ 0000000001d84640] No free surfaces >> Video encoding failed >> Conversion failed! >> > Surfaces are a reference to the memory buffers used by the encoder. You > can find out about which surfaces your graphics card supports by opening > the Nvidia settings panel, -> "VDPAU Information", -> "Surface Limits". > > If your card doesn't support the pixel format or the picture exceeds the > surface limit might this already explain why you get this error message. > Although I would expect to see a different error message... > > You can also check with "nvidia-smi" which applications are currently > using your graphics card. Suspended processes, zombie processes or just > multiple processes can also exhaust the amount of available surfaces. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From adf.lists at gmail.com Thu Oct 13 16:05:02 2016 From: adf.lists at gmail.com (Andy Furniss) Date: Thu, 13 Oct 2016 14:05:02 +0100 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift In-Reply-To: References: Message-ID: <57FF867E.6030304@gmail.com> Kevin Wheatley wrote: > Andreas, > > instead of using the -colormatrix option try instead using > > -vf scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709 > > assuming your DPX files are utilising full range encoding also scale has flags which may or may not affect quality in this case. IIRC getting them to work can be a bit variable, historically -sws-flags flag1+flag2 ... used to work, but not last time I tested so -vf scale=........:flags=flag1+flag2..... was what I last used - best to double check with -loglevel verbose + check output to be sure. https://www.ffmpeg.org/ffmpeg-scaler.html#scaler_005foptions I am thinking of trying accurate_rnd full_chroma_int full_chroma_inp bitexact not that I know what's best or relevant, so trial and error really. From cvilad at gmail.com Thu Oct 13 16:52:10 2016 From: cvilad at gmail.com (Carles Vila) Date: Thu, 13 Oct 2016 15:52:10 +0200 Subject: [FFmpeg-user] framerate conversion with sync audio In-Reply-To: References: Message-ID: > > > How can I apply the same filter to all audio streams? > > You use -filter_complex instead of -vf and -af > > -filter_complex > [0:0]setpts=PTS*0.8[v];[0:1]asetrate,aresample[a0];[0:2] > asetrate,aresample[a1] > and then -map [v] -map [a0] -map [a1] > (untested) > After a couple of attempts, it works! But I keep using the -r 25 option before -i. It works just fine for me. From sven.c.dack at sky.com Thu Oct 13 17:50:23 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 13 Oct 2016 15:50:23 +0100 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: References: Message-ID: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> On 13/10/16 14:01, tyt xtreme wrote: > And what can i do on Windows to check these capabilities? > Btw the GPU is a Gainward 6 Gb nVidia GTX 980 Ti so i think this should > support the above formats. If I'm not mistaken then yuv444p is linked to 10-bit depth encoding, which is only possible on the newer Pascal cards (the 10x0 series). The Video SDK page only mentions HEVC/H.265, but I believe it also applies to AVC/H.264. See here: https://developer.nvidia.com/nvidia-video-codec-sdk Try using "high" instead of "high444p" for the profile and "nv12" or "yuv420p" for the pixel format. If you want best quality for compression then add "-rc vbr_2pass -rc-lookahead 32" to the command line. The encoder cannot actually do two full passes, but it can look ahead up to 32 frames, which acts as a substitute for 2-pass encoding and can improve the picture quality a lot especially around I-frames. > > On Thu, Oct 13, 2016 at 1:52 PM, Sven C. Dack wrote: > >> On 13/10/16 11:34, tyt xtreme wrote: >> >>> Dear All, >>> >>> Any idea why this encoding doesn't work? >>> >>> $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high444p >>> -pixel_format yuv444p -preset default perspective_out.mp4 >>> >>> ... >>> [h264_nvenc @ 0000000001d84640] No free surfaces >>> Video encoding failed >>> Conversion failed! >>> >> Surfaces are a reference to the memory buffers used by the encoder. You >> can find out about which surfaces your graphics card supports by opening >> the Nvidia settings panel, -> "VDPAU Information", -> "Surface Limits". >> >> If your card doesn't support the pixel format or the picture exceeds the >> surface limit might this already explain why you get this error message. >> Although I would expect to see a different error message... >> >> You can also check with "nvidia-smi" which applications are currently >> using your graphics card. Suspended processes, zombie processes or just >> multiple processes can also exhaust the amount of available surfaces. >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From george at nsup.org Thu Oct 13 18:05:32 2016 From: george at nsup.org (Nicolas George) Date: Thu, 13 Oct 2016 17:05:32 +0200 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> References: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> Message-ID: <20161013150532.GA2129599@phare.normalesup.org> Le duodi 22 vendémiaire, an CCXXV, Sven C. Dack a écrit : > If I'm not mistaken then yuv444p is linked to 10-bit depth encoding Not necessarily. yuv444 is opposed to yuv420: with 420, pixels are grouped as 2×2 squares, where all four pixels have their brightness ("y" = "luminance") encoded, while the color ("u"/"v" = "chrominance") is the same for all four; with 444, pixels have all three components coded individually. That means that in 444, each pixels use three components, while in 420 they only use 1.5 on average, half as much. This makes sense because the eye is more sensitive to brightness changes than color changes. 10-bits depth is opposed to 8-bits depth, it measures the accuracy for each component. All four combinations are possible: yuv420p8, yuv420p10, yuv444p8, yuv444p10. The 8 is usually not printed because it was for a long time the only possible choice and is still the default. Of course, because of compatibility problems, once you decide to ditch yuv420p8, you might as well go all the way to yuv444p10, therefore the two intermediate ones are more rarely seen. But yuv444p8 makes sense for screencasts, to avoid color bleeding. The p means that libavcodec stores the three components in three separate memory areas rather than interleaved all together like rgb24. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: Digital signature URL: From sven.c.dack at sky.com Thu Oct 13 18:57:07 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 13 Oct 2016 16:57:07 +0100 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: <20161013150532.GA2129599@phare.normalesup.org> References: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> <20161013150532.GA2129599@phare.normalesup.org> Message-ID: On 13/10/16 16:05, Nicolas George wrote: > Le duodi 22 vendémiaire, an CCXXV, Sven C. Dack a écrit : >> If I'm not mistaken then yuv444p is linked to 10-bit depth encoding > Not necessarily. ... Sorry if I wasn't clear enough. I didn't say yuv444p was a 10-bit format. I said it is /linked/ to 10-bit depth encoding. Of course can one use and convert basically any format into whatever the hardware needs as input. It's just not being done here. From dariusz.wapinski at sgtsa.pl Thu Oct 13 18:52:29 2016 From: dariusz.wapinski at sgtsa.pl (=?UTF-8?Q?dariusz_wapi=C5=84ski?=) Date: Thu, 13 Oct 2016 08:52:29 -0700 (PDT) Subject: [FFmpeg-user] hls hevc_qsv ffmpeg generates one big chunk Message-ID: <1476373949662-4677880.post@n4.nabble.com> Hello, any ideas why it doesnt work? /ffmpeg-3.1.4/ffmpeg -loglevel debug -progress - -re -i udp://x.x.x.x?fifo_size=1000000&overrun_nonfatal=1&buffer_size=1048576 -threads 2 -acodec copy -vcodec hevc_qsv -load_plugins 6fadc791a0c2eb479ab6dcd5ea9da347 -preset veryfast -q 20 -g 250 -f tee -map 0:a -map 0:v -flags +global_header [hls_time=10:hls_list_size=3:hls_wrap=0tart_number=1:hls_flags=delete_segments:hls_segment_filename=/run/hls/1/high/fragment%03d.ts]/run/hls/1/high/playlist.m3u8 it generates one big file but i want segments with duration 10second. Are there any issues with hevc_qsv and hls segmenter??? best regards -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/hls-hevc-qsv-ffmpeg-generates-one-big-chunk-tp4677880.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From jshupert at theppsgroup.com Thu Oct 13 19:50:56 2016 From: jshupert at theppsgroup.com (Jim Shupert) Date: Thu, 13 Oct 2016 12:50:56 -0400 Subject: [FFmpeg-user] ffv1 level Message-ID: <2cd579fa-e1e5-c9ce-449f-b14c7cb97377@theppsgroup.com> if one does not declare a level or a gop what is the default meaning ffmpeg -i \ -acodec copy \ -vcodec ffv1 \ -level 3 \ -coder 1 \ -context 1 \ -g 1 \ -level 3 declares , ffv1 vers 3 -g 1 declares a gop of 1 what is the default if not declared ffmpeg -i \ -acodec copy \ -vcodec ffv1 \ -coder 1 \ thanks jS From a.todaro.lcg at gmail.com Thu Oct 13 13:33:15 2016 From: a.todaro.lcg at gmail.com (Adriano Todaro) Date: Thu, 13 Oct 2016 12:33:15 +0200 Subject: [FFmpeg-user] Creating image stream from h264 and piping Message-ID: Hi all, I'll try to describe clearly what I'm trying to achieve. If I use this command: ffmpeg -i 'rtsp:// user:password at 192.168.1.90:554/axis-media/media.amp?videocodec=h264' -vf "select='eq(pict_type,I)'" -vsync vfr thumb%04d.jpg FFmpeg creates a series of JPEG images from the I frames of the original video stream. Now I need to pipe this output, but if I do: ffmpeg -i 'rtsp:// user:password at 192.168.1.90:554/axis-media/media.amp?videocodec=h264' -vf "select='eq(pict_type,I)'" -vsync vfr pipe:1 I get the error: ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.1 (GCC) 20160830 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, rtsp, from 'rtsp:// root:avansig at 192.168.1.90:554/axis-media/media.amp?videocodec=h264': Metadata: title : Media Presentation Duration: N/A, start: 0.040089, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709), 1280x800 [SAR 1:1 DAR 8:5], 25 tbr, 90k tbn, 180k tbc [NULL @ 0x5590e4565b00] Unable to find a suitable output format for 'pipe:1' pipe:1: Invalid argument Seemingly because ffmpeg can't guess the output format anymore. So the question is: how can crete a stream of jpeg images that I can send through pipe:1? I've tried to add something like "-f jpeg" but of course it didn't work. Thanks in advance, Adriano Todaro. From cleyfaye at gmail.com Thu Oct 13 20:57:24 2016 From: cleyfaye at gmail.com (Cley Faye) Date: Thu, 13 Oct 2016 19:57:24 +0200 Subject: [FFmpeg-user] Developer "cehoyos" closed my bug without any explanation, and without solving it In-Reply-To: References: <9b0f8165-5dd3-b1a0-7c25-0a3d3cf937f5@sky.com> <77694134-f5d9-0472-3a40-a0602a3087c5@sky.com> <8aaea547-a6c9-8ca8-c631-846c6f15cd68@thelounge.net> Message-ID: 2016-10-13 10:32 GMT+02:00 Reindl Harald : > baseline won't solve the problems. It doesn't force low timebase and it >> doesn't force yuv420p colorspace, it doesn't force FPS 30 limit, so things >> won't work >> > > *you* are the one operating ffmpeg and so it's under your control, > practically everyone which is using ffmpeg writes some wrapper script > around and never bother about details in the future ​I've been reading this thread since the beginning, and I believe this point wasn't stressed enough. ffmpeg is merely a tool that takes input, and produce as output whatever you asked it to. It does not need to know the specifics beyond the settings required to operate. Having the abilities to set everything as required is enough. Adding more command line options to ffmpeg as a convenience when the same result can already be achieved in other ways seems inefficient, since many people do write simple wrapper (sometime a single-line script) to fit their needs anyway. Changing ffmpeg so that it tries to accomodate the specific usages of everyone would probably be a nightmare to maintain, when a single line shell/batch file would achieve the same. From dave at dericed.com Thu Oct 13 21:19:08 2016 From: dave at dericed.com (Dave Rice) Date: Thu, 13 Oct 2016 14:19:08 -0400 Subject: [FFmpeg-user] ffv1 level In-Reply-To: <2cd579fa-e1e5-c9ce-449f-b14c7cb97377@theppsgroup.com> References: <2cd579fa-e1e5-c9ce-449f-b14c7cb97377@theppsgroup.com> Message-ID: <0F4CBA55-8C7E-4512-9CD8-8ACAF152BED1@dericed.com> > On Oct 13, 2016, at 12:50 PM, Jim Shupert wrote: > > if one does not declare a level or a gop what is the default > > meaning > > > ffmpeg -i \ > -acodec copy \ > -vcodec ffv1 \ > -level 3 \ > -coder 1 \ > -context 1 \ > -g 1 \ > > > > -level 3 > declares , ffv1 vers 3 > -g 1 > declares a gop of 1 > > what is the default if not declared > > ffmpeg -i \ > -acodec copy \ > -vcodec ffv1 \ > -coder 1 \ > From running your example command and examining the output via: ffmpeg -debug 1 -i output.mkv -f null - The default gop size appears to be 12. Dave Rice From barsnick at gmx.net Thu Oct 13 22:14:38 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 13 Oct 2016 21:14:38 +0200 Subject: [FFmpeg-user] Creating image stream from h264 and piping In-Reply-To: References: Message-ID: <20161013191438.GA16924@sunshine.barsnick.net> Hi Adriano, On Thu, Oct 13, 2016 at 12:33:15 +0200, Adriano Todaro wrote: > [NULL @ 0x5590e4565b00] Unable to find a suitable output format for 'pipe:1' > pipe:1: Invalid argument [...] > Seemingly because ffmpeg can't guess the output format anymore. Right, not from "pipe:". You'll have to tell it about the format you wish to use. > So the question is: how can crete a stream of jpeg images that I can send > through pipe:1? A series of images has the format "image2pipe". (I think documentation for that format is weak.) > I've tried to add something like "-f jpeg" but of course it didn't work. "-c:v mjpeg -f image2pipe pipe:1" should do the trick. Moritz From cus at passwd.hu Fri Oct 14 00:00:58 2016 From: cus at passwd.hu (Marton Balint) Date: Thu, 13 Oct 2016 23:00:58 +0200 (CEST) Subject: [FFmpeg-user] Audio delayed with DeckLink In-Reply-To: <40186d5b-1529-0922-f657-acd1092a2d56@pspunch.com> References: <40186d5b-1529-0922-f657-acd1092a2d56@pspunch.com> Message-ID: On Thu, 13 Oct 2016, PSPunch wrote: > Hi, > > On Win7 x64, Capturing SDI from DeckLink Duo 2. > > When encoding with FFmpeg, audio seems to be about 100ms later than > video. Is there a known solution to this, or is there a way to delay > video by roughly 100ms? I tested the DeckLink drivers on Linux, and they very often fail to provide proper timestamps for the audio and video they produce, there is also a noticable clock skew after a few hours if you use their video clock, and they also skip frames (different number of audio and video frames) in the event of a signal loss. To work around this problem, there are the audio_pts and video_pts options, so you can customize where you want your timestamps to come from. In my experience, wallclock is the only thing that works reliably, so I typically use these options: -vsync 1 -video_pts wallclock -audio_pts wallclock -af aresample=async=1 Regards, Marton From lletourn49 at gmail.com Fri Oct 14 02:18:34 2016 From: lletourn49 at gmail.com (Louis Letourneau) Date: Thu, 13 Oct 2016 19:18:34 -0400 Subject: [FFmpeg-user] m3u8 = non-monotonous DTS Message-ID: I'm having trouble understanding if I'm doing something wrong or if I'm missing a flag and I hope you guys can help If I create an m3u8 with the following command (version 3.1.4) mkdir a ./ffmpeg -y -s 640x480 -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/zero -an -vcodec libx264 -preset medium -tune stillimage -crf 24 -pix_fmt yuv420p -shortest -force_key_frames "expr:gte(t,n_forced*5)" -bf 0 -hls_time 5 -hls_list_size 0 -hls_wrap 0 -hls_allow_cache 1 -hls_segment_filename "a/a_%04d.ts" -t 60 a/a.m3u8 and then convert it to mp4 ./ffmpeg -y -i a/a.m3u8 -codec copy a.mp4 I will get ---------------> ffmpeg version n3.1.4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.1) 20160609 configuration: --prefix=/data/software/ffmpeg-3.1.4 --enable-libfreetype --enable-x11grab --enable-libpulse --enable-gpl --enable-sdl --enable-libx264 --enable-opengl --enable-nonfree --enable-libfdk-aac --enable-libopus --enable-libvpx --enable-openssl --enable-static libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 [hls,applehttp @ 0x3085340] No longer receiving playlist 0 [hls,applehttp @ 0x3085340] Now receiving playlist 0, segment 0 Input #0, hls,applehttp, from 'a/a.m3u8': Duration: 00:00:59.96, start: 1.400000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc [mp4 @ 0x31bb100] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Output #0, mp4, to 'a.mp4': Metadata: encoder : Lavf57.41.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x480, q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mpegts @ 0x3088c40] DTS 126000 < 572400 out of order [hls,applehttp @ 0x3085340] DTS 126000 < 572400 out of order [mp4 @ 0x31bb100] Non-monotonous DTS in output stream 0:0; previous: 446400, current: 0; changing to 446401. This may result in incorrect timestamps in the output file. [mp4 @ 0x31bb100] Non-monotonous DTS in output stream 0:0; previous: 446401, current: 3600; changing to 446402. This may result in incorrect timestamps in the output file. [mp4 @ 0x31bb100] Non-monotonous DTS in output stream 0:0; previous: 446402, current: 7200; changing to 446403. This may result in incorrect timestamps in the output file. [mp4 @ 0x31bb100] Non-monotonous DTS in output stream 0:0; previous: 446403, current: 10800; changing to 446404. This may result in incorrect timestamps in the output file. [mp4 @ 0x31bb100] Non-monotonous DTS in output stream 0:0; previous: 446404, current: 14400; changing to 446405. This may result in incorrect timestamps in the output file. [mp4 @ 0x31bb100] Non-monotonous DTS in output stream 0:0; previous: 446405, current: 18000; changing to 446406. This may result in incorrect timestamps in the output file. [mp4 @ 0x31bb100] Non-monotonous DTS in output stream 0:0; previous: 446406, current: 21600; changing to 446407. This may result in incorrect timestamps in the output file. [...] frame= 1625 fps=0.0 q=-1.0 Lsize= 64kB time=00:00:59.96 bitrate= 8.7kbits/s speed=2.16e+03x video:79kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown ---------------> or ./ffmpeg -y -vsync 0 -i a/a.m3u8 -f image2 "a/out%d.jpg" ---------------> ffmpeg version n3.1.4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.1) 20160609 configuration: --prefix=/data/software/ffmpeg-3.1.4 --enable-libfreetype --enable-x11grab --enable-libpulse --enable-gpl --enable-sdl --enable-libx264 --enable-opengl --enable-nonfree --enable-libfdk-aac --enable-libopus --enable-libvpx --enable-openssl --enable-static libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 [hls,applehttp @ 0x3b30360] No longer receiving playlist 0 [hls,applehttp @ 0x3b30360] Now receiving playlist 0, segment 0 Input #0, hls,applehttp, from 'a/a.m3u8': Duration: 00:00:59.96, start: 1.400000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 640x480, 25 fps, 25 tbr, 90k tbn, 50 tbc [swscaler @ 0x3b6b240] deprecated pixel format used, make sure you did set range correctly [image2 @ 0x3c66120] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Output #0, image2, to 'a/out%d.jpg': Metadata: encoder : Lavf57.41.100 Stream #0:0: Video: mjpeg, yuvj420p(pc), 640x480, q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc Metadata: encoder : Lavc57.48.101 mjpeg Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native)) Press [q] to stop, [?] for help [mpegts @ 0x3b33c60] DTS 126000 < 572400 out of order [hls,applehttp @ 0x3b30360] DTS 126000 < 572400 out of order [mjpeg @ 0x3b82e00] Invalid pts (0) <= last (124) Video encoding failed ---------------> It seems the first segment gets repeated, which explains this message 125 = 25fps * 5secs per segment And if I use ./ffprobe -show_packets -i a/a.m3u8 | grep dts= | less I see that the first segments packets (pts or dts), a/a_0000.ts, seem to be repeated. if I look at each segment one after the other the dts and pts keep incrementing fine, so it's really starting from an m3u8 that's the problem. It's been like this at least since 3.1.2 but head of master doesn't seem to have this issue. I'm now wondering, if it's fixed, when does master get merged into the branches (when will this be stable)? The 2.8 branch also seems to be ok. (I tested 2.8.8) Thank you Louis From shima at pspunch.com Fri Oct 14 07:42:09 2016 From: shima at pspunch.com (PSPunch) Date: Fri, 14 Oct 2016 13:42:09 +0900 Subject: [FFmpeg-user] Audio delayed with DeckLink In-Reply-To: References: <40186d5b-1529-0922-f657-acd1092a2d56@pspunch.com> Message-ID: Hi Marton, The suggested options fixed the sync issue in a snap. Thank you, thank you, thank you!! BTW, I understand from brief searching that the wallclock option is relatively new. Just curious how FFmpeg users dealt with Decklink boards until they were available?? -- David Shimamoto On 2016/10/14 6:00, Marton Balint wrote: > I tested the DeckLink drivers on Linux, and they very often fail to > provide proper timestamps for the audio and video they produce, there is > also a noticable clock skew after a few hours if you use their video > clock, and they also skip frames (different number of audio and video > frames) in the event of a signal loss. > > To work around this problem, there are the audio_pts and video_pts > options, so you can customize where you want your timestamps to come > from. In my experience, wallclock is the only thing that works reliably, > so I typically use these options: > > -vsync 1 > -video_pts wallclock > -audio_pts wallclock > -af aresample=async=1 From alseczg at gmail.com Fri Oct 14 13:53:06 2016 From: alseczg at gmail.com (tyt xtreme) Date: Fri, 14 Oct 2016 12:53:06 +0200 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: References: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> <20161013150532.GA2129599@phare.normalesup.org> Message-ID: Thanks for the help and explanation! I can tell the encoding runs now, tried with the following command: $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high -preset:v fast perspective_out.mp4 but the output image/video coloring really weird. from a normal coloring it's going to be weird mixture of green,red "ghosty" image. The input file details are: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.50.100 Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s, 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) Metadata: handler_name : VideoHandler The output file details are: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.51.103 Duration: 00:07:27.92, start: 0.000000, bitrate: 5301 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 5300 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Any idea? On Thu, Oct 13, 2016 at 5:57 PM, Sven C. Dack wrote: > On 13/10/16 16:05, Nicolas George wrote: > >> Le duodi 22 vendémiaire, an CCXXV, Sven C. Dack a écrit : >> >>> If I'm not mistaken then yuv444p is linked to 10-bit depth encoding >>> >> Not necessarily. ... >> > > Sorry if I wasn't clear enough. I didn't say yuv444p was a 10-bit format. > I said it is /linked/ to 10-bit depth encoding. > > Of course can one use and convert basically any format into whatever the > hardware needs as input. It's just not being done here. > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From sven.c.dack at sky.com Fri Oct 14 14:14:48 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Fri, 14 Oct 2016 12:14:48 +0100 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: References: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> <20161013150532.GA2129599@phare.normalesup.org> Message-ID: <18468c90-73e6-2dc1-1bc1-c2b390deeec1@sky.com> On 14/10/16 11:53, tyt xtreme wrote: > Thanks for the help and explanation! I can tell the encoding runs now, > tried with the following command: > $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high -preset:v fast > perspective_out.mp4 > > but the output image/video coloring really weird. from a normal coloring > it's going to be weird mixture of green,red "ghosty" image. > The input file details are: > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.50.100 > Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s > Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / > 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s, > 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) > Metadata: > handler_name : VideoHandler > > The output file details are: > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.51.103 > Duration: 00:07:27.92, start: 0.000000, bitrate: 5301 kb/s > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > 3840x2160 [SAR 1:1 DAR 16:9], 5300 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, > 59.94 tbc (default) > Metadata: > handler_name : VideoHandler > > Any idea? > Something is not right here. In your example command line do you call the output file "prespective_out.mp4" but in the details below is it called "output.mp4". The original file also shows to have a frame rate of 24.94 fps, but "output.mp4" is reported to have 29.97 fps, and you didn't perform and frame rate conversion on the command line. Can you double check this, please? From alseczg at gmail.com Fri Oct 14 14:40:25 2016 From: alseczg at gmail.com (tyt xtreme) Date: Fri, 14 Oct 2016 13:40:25 +0200 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: <18468c90-73e6-2dc1-1bc1-c2b390deeec1@sky.com> References: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> <20161013150532.GA2129599@phare.normalesup.org> <18468c90-73e6-2dc1-1bc1-c2b390deeec1@sky.com> Message-ID: I have post renamed the file but i've did the re-encoding again on the original file like this: log: $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high -preset:v fast perspective_out.mp4 ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.50.100 Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s, 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) Metadata: handler_name : VideoHandler File 'perspective_out.mp4' already exists. Overwrite ? [y/N] y Output #0, mp4, to 'perspective_out.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.51.103 Stream #0:0(eng): Video: h264 (h264_nvenc) (High) ([33][0][0][0] / 0x0021), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 fps, 30k tbn, 29.97 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc57.61.100 h264_nvenc Side data: cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help Past duration 0.731316 too large 8815kB time=00:00:27.22 bitrate=2652.4kbits/s dup=206 drop=0 speed=3.95x .... On Fri, Oct 14, 2016 at 1:14 PM, Sven C. Dack wrote: > On 14/10/16 11:53, tyt xtreme wrote: > >> Thanks for the help and explanation! I can tell the encoding runs now, >> tried with the following command: >> $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high -preset:v fast >> perspective_out.mp4 >> >> but the output image/video coloring really weird. from a normal coloring >> it's going to be weird mixture of green,red "ghosty" image. >> The input file details are: >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4': >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> encoder : Lavf57.50.100 >> Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s >> Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / >> 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s, >> 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) >> Metadata: >> handler_name : VideoHandler >> >> The output file details are: >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'output.mp4': >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> encoder : Lavf57.51.103 >> Duration: 00:07:27.92, start: 0.000000, bitrate: 5301 kb/s >> Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, >> 3840x2160 [SAR 1:1 DAR 16:9], 5300 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, >> 59.94 tbc (default) >> Metadata: >> handler_name : VideoHandler >> >> Any idea? >> >> Something is not right here. In your example command line do you call the > output file "prespective_out.mp4" but in the details below is it called > "output.mp4". The original file also shows to have a frame rate of 24.94 > fps, but "output.mp4" is reported to have 29.97 fps, and you didn't perform > and frame rate conversion on the command line. > > Can you double check this, please? > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From sven.c.dack at sky.com Fri Oct 14 15:15:45 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Fri, 14 Oct 2016 13:15:45 +0100 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: References: <9945e6e7-e92d-efae-f2a3-18b4aa6f3017@sky.com> <20161013150532.GA2129599@phare.normalesup.org> <18468c90-73e6-2dc1-1bc1-c2b390deeec1@sky.com> Message-ID: On 14/10/16 12:40, tyt xtreme wrote: > I have post renamed the file but i've did the re-encoding again on the > original file like this: > > log: > $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high -preset:v fast > perspective_out.mp4 > ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg > developers > built with gcc 5.4.0 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads > --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth > --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-iconv --enable-libass --enable-libbluray > --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme > --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 > --enable-libopenjpeg --enable-libopus --enable-librtmp > --enable-libschroedinger --enable-libsnappy --enable-libsoxr > --enable-libspeex --enable-libtheora --enable-libtwolame > --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis > --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 > --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg > --enable-lzma --enable-decklink --enable-zlib > libavutil 55. 32.100 / 55. 32.100 > libavcodec 57. 61.100 / 57. 61.100 > libavformat 57. 51.103 / 57. 51.103 > libavdevice 57. 0.102 / 57. 0.102 > libavfilter 6. 63.100 / 6. 63.100 > libswscale 4. 1.100 / 4. 1.100 > libswresample 2. 2.100 / 2. 2.100 > libpostproc 54. 0.100 / 54. 0.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.50.100 > Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s > Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / > 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s, > 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) > Metadata: > handler_name : VideoHandler > File 'perspective_out.mp4' already exists. Overwrite ? [y/N] y > Output #0, mp4, to 'perspective_out.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.51.103 > Stream #0:0(eng): Video: h264 (h264_nvenc) (High) ([33][0][0][0] / > 0x0021), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 > fps, 30k tbn, 29.97 tbc (default) > Metadata: > handler_name : VideoHandler > encoder : Lavc57.61.100 h264_nvenc > Side data: > cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: > -1 > Stream mapping: > Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc)) > Press [q] to stop, [?] for help > Past duration 0.731316 too large 8815kB time=00:00:27.22 > bitrate=2652.4kbits/s dup=206 drop=0 speed=3.95x > .... > You'll have to let the more experienced users take a look at it and provide a sample of the input file. From barsnick at gmx.net Fri Oct 14 15:52:44 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Fri, 14 Oct 2016 14:52:44 +0200 Subject: [FFmpeg-user] m3u8 = non-monotonous DTS In-Reply-To: References: Message-ID: <20161014125244.GB27165@sunshine.barsnick.net> Hi Louis, On Thu, Oct 13, 2016 at 19:18:34 -0400, Louis Letourneau wrote: > It seems the first segment gets repeated, which explains this message > 125 = 25fps * 5secs per segment "ffmpeg -loglevel verbose" at least shows you which segments are opened. > It's been like this at least since 3.1.2 but head of master doesn't seem to > have this issue. I'm now wondering, if it's fixed, when does master get > merged into the branches (when will this be stable)? That's correct, git master doesn't have this issue. (I tried to reproduce.) hls support has received quite a few enhancements and possibly fixes recently, perhaps the fixes weren't backported to 3.1.x releases. There are plans to release ffmpeg 3.2 from git master "soon", but no official date, AFAIK. You could request the fix to be backported to 3.1, but I think a 3.1.5 release will not come well before 3.2. ;-) Why do you need a release, anyway? Do you rely on getting your ffmpeg from a distribution? (BTW, great instructions to reproduce, without any external dependencies or input files. Thanks for that!) Moritz From sven.c.dack at sky.com Fri Oct 14 16:35:33 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Fri, 14 Oct 2016 14:35:33 +0100 Subject: [FFmpeg-user] nvenc h264 encoding In-Reply-To: References: Message-ID: <2d352d6a-7cf7-1840-60f4-5d24a55549c6@sky.com> On 13/10/16 14:01, tyt xtreme wrote: > And what can i do on Windows to check these capabilities? > Btw the GPU is a Gainward 6 Gb nVidia GTX 980 Ti so i think this should > support the above formats. >>> Any idea why this encoding doesn't work? >>> >>> $ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high444p >>> -pixel_format yuv444p -preset default perspective_out.mp4 >>> >>> ... >>> [h264_nvenc @ 0000000001d84640] No free surfaces >>> Video encoding failed >>> Conversion failed! >>> I've now tried it on a GTX 960 (Maxwell GM 206) and there you can encode with yuv444p. The chip was the last of the Maxwell-series iirc and doesn't support 10-bit depth. So either they snuck it in at the very last or it's an issue with the driver or libraries. This is with Video SDK 7.0.1 and CUDA 8.0. You can try to update the Nvidia driver and libraries and see if this changes anything. $ ffmpeg -i ../U-HD-Test-Videos/Harmonic_Snow_Monkeys_4k_\(Ultra_HD\)_-_DASH.webm -c:v h264_nvenc -pix_fmt:v yuv444p -profile:v high444p -preset:v default out5.mp4 ffmpeg version N-81995-ge62165b Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.1 (GCC) 20161013 configuration: --prefix=/home/sven/av --enable-gpl --enable-version3 --enable-nonfree --arch=x86_64 --cpu=native --enable-debug --enable-shared --enable-static --enable-libvorbis --enable-libopus --enable-libx264 --enable-libx265 --enable-opengl --enable-opencl --enable-vaapi --enable-vdpau --enable-cuda --enable-cuvid --enable-nvenc --enable-libnpp --extra-cflags='-I/home/sven/av/include -I/usr/local/cuda/include -I/usr/local/Video_Codec_SDK_7.0.1/Samples/common/inc' --extra-ldflags='-L/home/sven/av/lib -L/usr/local/cuda/lib64' --ar=gcc-ar --nm=gcc-nm --ranlib=true libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.103 / 57. 61.103 libavformat 57. 52.100 / 57. 52.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, matroska,webm, from '../U-HD-Test-Videos/Harmonic_Snow_Monkeys_4k_(Ultra_HD)_-_DASH.webm': Metadata: encoder : google Duration: 00:01:00.04, start: 0.000000, bitrate: 25305 kb/s Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709/unknown/unknown), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 1k tbn, 1k tbc (default) File 'out5.mp4' already exists. Overwrite ? [y/N] y Output #0, mp4, to 'out5.mp4': Metadata: encoder : Lavf57.52.100 Stream #0:0(eng): Video: h264 (*h264_nvenc*) (*High 4:4:4 Predictive*) ([33][0][0][0] / 0x0021), *yuv444p*, 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 59.94 fps, 19001 tbn, 59.94 tbc (default) Metadata: encoder : Lavc57.61.103 h264_nvenc Side data: cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (vp9 (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help From eugenijusu at balticom.eu Fri Oct 14 17:33:50 2016 From: eugenijusu at balticom.eu (Eugenijus Urbonas) Date: Fri, 14 Oct 2016 17:33:50 +0300 Subject: [FFmpeg-user] ES info problem Message-ID: <1210352f-6ced-ab6d-b33f-08d6fa810061@balticom.eu> Hello! I am trying to generate still image with silent audio-track to push it to the DVB network. MPEG-ts stream is generating with this command: ~/bin/ffmpeg -loop 1 -i ~/image-mpeg4.jpg -f lavfi -i anullsrc -map 0:v -map 1:a -c:a mp2 -b:a 128k -c:v libx264 -preset medium -profile:v baseline -level 3.0 -tune stillimage -pix_fmt yuv420p -s 720x576 -framerate 25 -crf 1 -bufsize 2000k -maxrate 2000k -f mpegts udp://239.31.5.205:1234 in the result I get correct SPTS with two ESs inside, but video-stream is not described as it should (there is no ES-info section): https://drive.google.com/open?id=0B27FBYXaYyqAQ2NmNHBKNXZMdXc Input #0, mpegts, from 'udp://239.31.5.205:1234': Duration: N/A, start: 13590.794289, bitrate: N/A Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s For example, stream generated with vlc contains all info inside: https://drive.google.com/open?id=0B27FBYXaYyqATnVXX0p5dU8zY2s Input #0, mpegts, from 'udp://239.31.5.206:1234': Duration: N/A, start: 90599.384444, bitrate: N/A Program 1 Stream #0:0[0x43]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 50 tbr, 90k tbn, 50 tbc Actually the same issue is present even if I try to wrap pre-generated h.264 file into MPEG-ts with command: ~/bin/ffmpeg -re -stream_loop 1 -i ~/video2.mpg -c:v copy -vsync drop -c:a copy -f mpegts udp://239.31.5.205:1234 So the question is, how could I set ES info? Could not find any useful information in documentation. -- Ar cieņu, Eugenijus Urbonas From lletourn49 at gmail.com Fri Oct 14 18:14:19 2016 From: lletourn49 at gmail.com (Louis Letourneau) Date: Fri, 14 Oct 2016 11:14:19 -0400 Subject: [FFmpeg-user] m3u8 = non-monotonous DTS In-Reply-To: <20161014125244.GB27165@sunshine.barsnick.net> References: <20161014125244.GB27165@sunshine.barsnick.net> Message-ID: > > "ffmpeg -loglevel verbose" at least shows you which segments are opened. > Well what do know, I should have tried that. Very useful on m3u8s. > Why do you need a release, anyway? Do you rely on getting your ffmpeg > from a distribution? > For development it doesn't really matter. For our production server we tend to like tagged releases, not HEAD or a changeset somewhere in a branch. This being said, since master is ok, I think I'll switch to master/HEAD instead of going to 2.8.8 until 3.2 is released (BTW, great instructions to reproduce, without any external > dependencies or input files. Thanks for that!) > My pleasure. And thank you for the complete answer, it makes tons of sense. Louis From lists at reto.ch Fri Oct 14 19:09:55 2016 From: lists at reto.ch (Reto Kromer) Date: Fri, 14 Oct 2016 18:09:55 +0200 Subject: [FFmpeg-user] m3u8 = non-monotonous DTS In-Reply-To: <20161014125244.GB27165@sunshine.barsnick.net> Message-ID: Moritz Barsnick wrote: >Why do you need a release, anyway? The question about the releases is asked from time to time. I don't use releases myself, but I always advise AV archivists, who implement FFmpeg in their workflow, to use the last release of an actively maintained branch. Why? Because for the people living outside our "gang" it is much easier to keep the software updated this way (e.g. via Brew). Therefore I am really grateful to the volunteers who make this possible, even if I am not a direct beneficiary. Best regards, Reto From cus at passwd.hu Fri Oct 14 21:42:05 2016 From: cus at passwd.hu (Marton Balint) Date: Fri, 14 Oct 2016 20:42:05 +0200 (CEST) Subject: [FFmpeg-user] Audio delayed with DeckLink In-Reply-To: References: <40186d5b-1529-0922-f657-acd1092a2d56@pspunch.com> Message-ID: On Fri, 14 Oct 2016, PSPunch wrote: > Hi Marton, > > The suggested options fixed the sync issue in a snap. > Thank you, thank you, thank you!! > > BTW, I understand from brief searching that the wallclock option is > relatively new. Just curious how FFmpeg users dealt with Decklink boards > until they were available?? Older generation cards were better, next gen cards like duo2 have more problems timestamp-wise. Regards, Marton From lletourn49 at gmail.com Sat Oct 15 02:15:41 2016 From: lletourn49 at gmail.com (Louis Letourneau) Date: Fri, 14 Oct 2016 19:15:41 -0400 Subject: [FFmpeg-user] m3u8 = non-monotonous DTS In-Reply-To: References: <20161014125244.GB27165@sunshine.barsnick.net> Message-ID: > I don't use releases myself, but I always advise AV > archivists, who implement FFmpeg in their workflow, to use > the last release of an actively maintained branch. Why? > Because for the people living outside our "gang" it is much > easier to keep the software updated this way So do you suggest I use master but as soon as 3.2 is released and if it doesn't have the issue, I switch to that tagged version? Louis Louis From tung.tran at v247.com Sat Oct 15 01:08:20 2016 From: tung.tran at v247.com (Tung Tran) Date: Fri, 14 Oct 2016 17:08:20 -0500 Subject: [FFmpeg-user] How to add subtitle to HLS segments Message-ID: Dear all Could you please point me the command to create .m3u8 playlist for subtitles using for HLS streaming (VoD). I have the .srt file but dont know how to make .m3u8 playlist from it. Thank you --- Best regards, *Tung Tran* *UNO IPTV* From andrey.turkin at gmail.com Fri Oct 14 21:14:06 2016 From: andrey.turkin at gmail.com (Andrey Turkin) Date: Fri, 14 Oct 2016 21:14:06 +0300 Subject: [FFmpeg-user] [FFmpeg-devel] h264_nvenc encoding issue In-Reply-To: References: Message-ID: Hi, Can you check if adding -vf format=nv12 makes any difference? 2016-10-14 15:47 GMT+03:00 tyt xtreme : > Hi, > > I already post my mail to ffmpeg-users group regarding this issue but no > one could help me out and advised to ask more experienced users. So i hope > you can tell me something and sorry posting here. > > Here is my re-encoding command's output (Windows 8.1 with Bash): > *$ ffmpeg -i perspective.mp4 -c:v h264_nvenc -profile:v high -preset:v fast > perspective_out.mp4* > > ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg > developers > built with gcc 5.4.0 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads > --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth > --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-iconv --enable-libass --enable-libbluray > --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme > --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 > --enable-libopenjpeg --enable-libopus --enable-librtmp > --enable-libschroedinger --enable-libsnappy --enable-libsoxr > --enable-libspeex --enable-libtheora --enable-libtwolame > --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis > --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 > --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg > --enable-lzma --enable-decklink --enable-zlib > libavutil 55. 32.100 / 55. 32.100 > libavcodec 57. 61.100 / 57. 61.100 > libavformat 57. 51.103 / 57. 51.103 > libavdevice 57. 0.102 / 57. 0.102 > libavfilter 6. 63.100 / 6. 63.100 > libswscale 4. 1.100 / 4. 1.100 > libswresample 2. 2.100 / 2. 2.100 > libpostproc 54. 0.100 / 54. 0.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.50.100 > Duration: 00:07:27.87, start: 2.132000, bitrate: 10235 kb/s > Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / > 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 10233 kb/s, > 24.94 fps, 29.97 tbr, 1000k tbn, 2000k tbc (default) > Metadata: > handler_name : VideoHandler > File 'perspective_out.mp4' already exists. Overwrite ? [y/N] y > Output #0, mp4, to 'perspective_out.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf57.51.103 > Stream #0:0(eng): Video: h264 (h264_nvenc) (High) ([33][0][0][0] / > 0x0021), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 > fps, 30k tbn, 29.97 tbc (default) > Metadata: > handler_name : VideoHandler > encoder : Lavc57.61.100 h264_nvenc > Side data: > cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: > -1 > Stream mapping: > Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc)) > Press [q] to stop, [?] for help > Past duration 0.731316 too large 8815kB time=00:00:27.22 > bitrate=2652.4kbits/s dup=206 drop=0 speed=3.95x > > > The output is far away from optimal. It's kind of green,red colored & > ghosty. Attached - resized - image samples about the original and output > frames. Any idea why encoder doing this? I'm using GeForce GTX 980 Ti 6Gb > GPU. > > Thanks! > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > From dev.betscape at gmail.com Sat Oct 15 14:49:21 2016 From: dev.betscape at gmail.com (Bet Scape) Date: Sat, 15 Oct 2016 13:49:21 +0200 Subject: [FFmpeg-user] Inserting text at exact timestamps Message-ID: Is it possible to insert text into a video at the exact timestamps? Assuming video is 10 minutes long and I have over 500 messages to display for 1 second each and I only have the timestamps of when the messages should appear. From sven.c.dack at sky.com Sat Oct 15 20:47:41 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Sat, 15 Oct 2016 18:47:41 +0100 Subject: [FFmpeg-user] Inserting text at exact timestamps In-Reply-To: References: Message-ID: <352bde82-ba47-d74f-e7b0-43bc5994f072@sky.com> On 15/10/16 12:49, Bet Scape wrote: > Is it possible to insert text into a video at the exact timestamps? > > Assuming video is 10 minutes long and I have over 500 messages to display > for 1 second each and I only have the timestamps of when the messages > should appear. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". Subtitles come to mind. They do just that. Otherwise see the drawtext filter: https://ffmpeg.org/ffmpeg-filters.html#drawtext-1 From alseczg at gmail.com Sat Oct 15 22:51:12 2016 From: alseczg at gmail.com (tyt xtreme) Date: Sat, 15 Oct 2016 21:51:12 +0200 Subject: [FFmpeg-user] Stream to Youtube issue Message-ID: Dear All, I am using the following command to test streaming to youtube but doesn't show any video or get sound on Youtube's Live Streaming page, however inform me stream is live, and has good healt. What i am doing wrong? $ ffmpeg.exe -re -loop 1 -i output_total_720p.png -i output.mp3 -c:v libx264 -c:a libmp3lame -x264-params keyint=60 -g 60 -pix_fmt yuv420p -r 30 -vb 2500k -f flv rtmp://x.rtmp.youtube.com/live2/$ID ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, png_pipe, from 'output_total_720p.png': Duration: N/A, bitrate: N/A Stream #0:0: Video: png, rgb24(pc), 1280x720, 25 fps, 25 tbr, 25 tbn, 25 tbc Input #1, mp3, from 'output.mp3': Metadata: encoder : Lavf57.47.101 Duration: 00:01:31.01, start: 0.025057, bitrate: 128 kb/s Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Metadata: encoder : Lavc57.54 [libx264 @ 0000000001c314c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0000000001c314c0] profile High, level 3.1 [libx264 @ 0000000001c314c0] 264 - core 148 r2721 72d53ab - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=60 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [flv @ 0000000001c07b40] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times Output #0, flv, to 'rtmp://x.rtmp.youtube.com/live2/pa1g-z9qg-qcze-5f67': Metadata: encoder : Lavf57.41.100 Stream #0:0: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 1280x720, q=-1--1, 2500 kb/s, 30 fps, 1k tbn, 30 tbc Metadata: encoder : Lavc57.48.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/2500000 buffer size: 0 vbv_delay: -1 Stream #0:1: Audio: mp3 (libmp3lame) ([2][0][0][0] / 0x0002), 44100 Hz, stereo, s16p Metadata: encoder : Lavc57.48.101 libmp3lame Stream mapping: Stream #0:0 -> #0:0 (png (native) -> h264 (libx264)) Stream #1:0 -> #0:1 (mp3 (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help frame= 9 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= ... Thanks! From sven.c.dack at sky.com Sun Oct 16 14:31:15 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Sun, 16 Oct 2016 12:31:15 +0100 Subject: [FFmpeg-user] Stream to Youtube issue In-Reply-To: References: Message-ID: <56edb8e3-d429-a14e-d621-243955b4e6a0@sky.com> On 15/10/16 20:51, tyt xtreme wrote: > Dear All, > > I am using the following command to test streaming to youtube but doesn't > show any video or get sound on Youtube's Live Streaming page, however > inform me stream is live, and has good healt. What i am doing wrong? > > $ ffmpeg.exe -re -loop 1 -i output_total_720p.png -i output.mp3 -c:v > libx264 -c:a libmp3lame -x264-params keyint=60 -g 60 -pix_fmt yuv420p -r 30 > -vb 2500k -f flv rtmp://x.rtmp.youtube.com/live2/$ID > Hello, seeing how you didn't get an answer yet did I test it. It apparently worked in the past with just the parameters you've used. I've found even simpler command lines, which must have worked at some point. The only success I had was by using OBS, which is on their list of supported streaming apps. It could be they are currently filtering out unknown streams or are just having some general trouble. Their service is still marked as BETA. The status messages regarding the stream on their dashboard seem a bit dodgy. I suggest you try asking on the YouTube forums. What works the last time I tried was streaming via Twitch.TV. You can find a short description here: https://www.mail-archive.com/ffmpeg-user at ffmpeg.org/msg11011.html General info on streaming can be found here: https://trac.ffmpeg.org/wiki/StreamingGuide Sven From alex.hutnik at gmail.com Sun Oct 16 18:13:03 2016 From: alex.hutnik at gmail.com (Alex A. Hutnik) Date: Sun, 16 Oct 2016 11:13:03 -0400 Subject: [FFmpeg-user] Split RTSP stream to file and socket Message-ID: Hello, As the subject suggests, I have an RTSP stream (from an IP camera). I'm trying to create two outputs: a file recording the stream, and a unix socket. Specifically, the file output is just an MP4 file. For the socket output I want to pass the stream through the 'fps' filter first. I tried this: ffmpeg -i rtsp://ip/stream -filter_complex '[0:v]split=2[in1][in2];[in2]fps=4[out2]' -map '[in1]' out.mp4 -map '[out2]' unix://video_stream I intend to use some python scripts to do something with the 4FPS video coming in from that socket. I thought about (and tried) using a named pipe but couldn't get that working. Plus to my knowledge pipes are blocking and I would like ffmpeg to continue writing to the MP4 file regardless of the python script processing input from the socket or pipe. Is this possible? From candycat10 at gmail.com Sun Oct 16 00:54:33 2016 From: candycat10 at gmail.com (Ana B.) Date: Sat, 15 Oct 2016 14:54:33 -0700 Subject: [FFmpeg-user] File size doubles with MKV to MP4 re-encoding? Message-ID: Hello! I am trying to* re-encode MKV files into MP4 *and am getting pretty desperate. FFMPEG changes my files to MP4 format, with the same quality intact, but *the file size nearly doubles* with every conversion. (I don't know if this is helpful, but using conversion programs like HandBrake yields the same results: same quality but double the size of the original MKV.) This is taking up a lot of GB on my laptop, but I absolutely need the MP4 container to play my videos in Sony Vegas. Here is the code that I run: ffmpeg -i input.mkv -c:v libx264 output.mp4 Why is the file size doubling? Is there anything I can do to prevent this or do you have any other suggestions? I seriously appreciate any help, *thank you so much*!! From gandy.bruno at gmail.com Sun Oct 16 18:04:09 2016 From: gandy.bruno at gmail.com (Bruno Gandy) Date: Sun, 16 Oct 2016 17:04:09 +0200 Subject: [FFmpeg-user] Record rtsp stream and add timestamp in subtitle track. Message-ID: hello I want record the rtsp stream of my ip cam and add time stamp in subtitle track. how can i do this with ffmpeg? I succes record the rtsp stream to mkv file but can't add subbtile track with time. Thank's -- Bruno GANDY From pajaroloco_2 at hotmail.com Sun Oct 16 20:15:12 2016 From: pajaroloco_2 at hotmail.com (=?utf-8?B?VsOtY3RvciBJbER1Y2Np?=) Date: Sun, 16 Oct 2016 17:15:12 +0000 Subject: [FFmpeg-user] Trying to make filter_complex use yuv444p Message-ID: Hi there. I'm doing some experiments related to changing subtitle contents with variable-size boxes. Images related: http://imgur.com/a/IGKnm I've made a subtitle file in .ass format with the box outline mode and put it into a video with a green background with the following line: ffmpeg -loop 1 -framerate 29.970 -i "Background.png" -y -c:v rawvideo -t 00:00:40 -vf subtitles=SUBS.BOXBORDER.ASS Export\SAMPLE.CROMA1.AVI The result is a clean and crispy bordered image, as the latter one in the link. Here the tricky part: Now I'm trying to keep a small part of a video enclosed in the white part, so after changing the original video from yuv420i to bgr24 (Just to be certain) I'm using filter_complex: ffmpeg -i "ORIGINAL.M1V" -i "Export\SAMPLE.CROMA1.AVI" -y -filter_complex "[1:v]chromakey=0xFFFFFF:0.25:0.00[keyed];[0:v][keyed]overlay[out]" -map "[out]" -c:v rawvideo -pix_fmt bgr24 Export\SAMPLE.FINALCROMA.AVI FFmpeg does enter the original video under the croma one, but the borders are not crispy and perfect, as the first image in the link shows. Now, I've read a bit about yuv420 and yuv444, and that yuv420 has the tendency of blurring the edges. I need clean edges for the chroma vid as I'll latter use this croma image against another video with chromakey, that way, there won't be any outer borders showing up in the finished product. But I haven't been able to find the way to keep things crisp, even when forcing the pix_fmt. Can anyone help me out? Thank you for your time. From lou at lrcd.com Sun Oct 16 21:36:58 2016 From: lou at lrcd.com (Lou) Date: Sun, 16 Oct 2016 10:36:58 -0800 Subject: [FFmpeg-user] File size doubles with MKV to MP4 re-encoding? In-Reply-To: References: Message-ID: <1476643018.2594846.757627553.4DEF828B@webmail.messagingengine.com> On Sat, Oct 15, 2016, at 01:54 PM, Ana B. wrote: [...] > Here is the code that I run: > > ffmpeg -i input.mkv -c:v libx264 output.mp4 Please show the complete console output from your command. It is required information. From sven.c.dack at sky.com Mon Oct 17 00:12:36 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Sun, 16 Oct 2016 22:12:36 +0100 Subject: [FFmpeg-user] File size doubles with MKV to MP4 re-encoding? In-Reply-To: References: Message-ID: <5fd6227e-cd07-c86a-4f93-38b9ef104f84@sky.com> On 15/10/16 22:54, Ana B. wrote: > Hello! I am trying to* re-encode MKV files into MP4 *and am getting pretty > desperate. FFMPEG changes my files to MP4 format, with the same quality > intact, but *the file size nearly doubles* with every conversion. (I don't > know if this is helpful, but using conversion programs like HandBrake > yields the same results: same quality but double the size of the original > MKV.) This is taking up a lot of GB on my laptop, but I absolutely need the > MP4 container to play my videos in Sony Vegas. > > Here is the code that I run: > > ffmpeg -i input.mkv -c:v libx264 output.mp4 > > Why is the file size doubling? Is there anything I can do to prevent this > or do you have any other suggestions? I seriously appreciate any help, *thank > you so much*!! > _______________________________________________ If you know your input has got compatible streams then you can do: $ ffmpeg -i input.mkv -c:v copy -c:a copy output.mp4 Otherwise will you have to set either a bit rate or a fixed quality for the transcoding and thereby control the output size. This means you will also lose a bit in quality, because of another lossy compression. Why do you need the video in an .mp4 container format? Sven From shima at pspunch.com Mon Oct 17 09:07:34 2016 From: shima at pspunch.com (PSPunch) Date: Mon, 17 Oct 2016 15:07:34 +0900 Subject: [FFmpeg-user] Audio delayed with DeckLink In-Reply-To: References: <40186d5b-1529-0922-f657-acd1092a2d56@pspunch.com> Message-ID: <9d43812b-e83e-c8db-acd4-40bf2b55e0e1@pspunch.com> On 2016/10/15 3:42, Marton Balint wrote: >> BTW, I understand from brief searching that the wallclock option is >> relatively new. Just curious how FFmpeg users dealt with Decklink >> boards until they were available?? > Older generation cards were better, next gen cards like duo2 have more > problems timestamp-wise. I see... Sad to hear, but glad BMD provide a 4in option, and event more glad you saved my investment from going to waste. Thanks again. -- David Shimamoto From kazhadena at googlemail.com Mon Oct 17 14:59:01 2016 From: kazhadena at googlemail.com (Andreas Hummel) Date: Mon, 17 Oct 2016 13:59:01 +0200 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift In-Reply-To: <57FF867E.6030304@gmail.com> References: <57FF867E.6030304@gmail.com> Message-ID: Hello Kevin, thanks for the hint. I replaced the -colormatrix option with the -vf scale=.. option you suggested but i'm still getting a slight hue shift in the final converted movie. Even the added -sws_flags you suggested thx @Andy couldn't solve the problem. I tried various combinations but somehow i can't get a color correct output with ffmpeg so far. ffmpeg.exe -loglevel verbose -y -f image2 -start_number 0 -r 25 -i INPUT -r 25 -vcodec prores_ks -profile:v 3 -pix_fmt yuv422p10le -vf scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709 -sws_flags accurate_rnd+full_chroma_int+full_chroma_inp+bitexact -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vendor ap10 OUTPUT.mov ######## The log looks currently like this: Input #0, image2, from 'INPUT': Duration: 00:01:04.48, start: 0.000000, bitrate: N/A Stream #0:0: Video: dpx, 1 reference frame, gbrp10le, 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc [Parsed_scale_0 @ 00000000025899a0] w:iw h:ih flags:'bicubic' interl:0 [graph 0 input from stream 0:0 @ 0000000002587ba0] w:1920 h:1080 pixfmt:gbrp10le tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [graph 0 input from stream 0:0 @ 0000000002587ba0] TB:0.040000 FRAME_RATE:25.000000 SAMPLE_RATE:nan [Parsed_scale_0 @ 00000000025899a0] w:1920 h:1080 fmt:gbrp10le sar:1/1 -> w:1920 h:1080 fmt:yuv422p10le sar:1/1 flags:0x4 Output #0, mov, to 'OUTPUT.mov': Metadata: encoder : Lavf57.51.103 Stream #0:0: Video: prores (prores_ks), 1 reference frame (apch / 0x68637061), yuv422p10le(bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 12800 tbn, 25 tbc Metadata: encoder : Lavc57.61.102 prores_ks Stream mapping: Stream #0:0 -> #0:0 (dpx (native) -> prores (prores_ks)) Press [q] to stop, [?] for help No more output streams to write to, finishing.e=00:01:04.28 bitrate=115202.2kbits/s speed=0.42x frame= 1612 fps= 11 q=-0.0 Lsize= 904052kB time=00:01:04.44 bitrate=114928.4kbits/s speed=0.42x video:904040kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001372% Input file #0 (INPUT.dpx): Input stream #0:0 (video): 1612 packets read (13390381056 bytes); 1612 frames decoded; Total: 1612 packets (13390381056 bytes) demuxed Output file #0 (OUTPUT.mov): Output stream #0:0 (video): 1612 frames encoded; 1612 packets muxed (925736976 bytes); Total: 1612 packets (925736976 bytes) muxed ######## I checked my input footage with ffprobe and mediainfo and the output is as follows: --> ffprobe Input #0, dpx_pipe, from 'INPUT': Duration: N/A, bitrate: N/A Stream #0:0: Video: dpx, gbrp10le, 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc --> mediainfo Format : DPX Format version : Version 1.0 File size : 12.5 GiB Duration : 1 min 4 s Overall bit rate : 1 661 Mb/s Encoded date : 2016-10-05T10:36:57Mit Writing library : daVinci Video Format : DPX Format version : Version 1.0 Duration : 1 min 4 s Bit rate : 1 661 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Color space : RGB Bit depth : 10 bits Scan type : Progressive Compression mode : Lossless Bits/(Pixel*Frame) : 32.047 Stream size : 12.5 GiB (100%) Writing library : daVinci Encoded date : 2016-10-05T10:36:57Mit Color primaries : Printing density ######## The output file has the following info: -->ffprobe Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'OUTPUT.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf57.51.103 Duration: 00:01:04.48, start: 0.000000, bitrate: 114857 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 114855 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default) Metadata: handler_name : DataHandler encoder : Lavc57.61.102 prores_ks 2016-10-13 15:05 GMT+02:00 Andy Furniss : > Kevin Wheatley wrote: > >> Andreas, >> >> instead of using the -colormatrix option try instead using >> >> -vf scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_c >> olor_matrix=bt709 >> >> assuming your DPX files are utilising full range encoding >> > > also scale has flags which may or may not affect quality in this case. > > IIRC getting them to work can be a bit variable, historically > > -sws-flags flag1+flag2 ... used to work, but not last time I tested so > > -vf scale=........:flags=flag1+flag2..... was what I last used - best > > to double check with -loglevel verbose + check output to be sure. > > https://www.ffmpeg.org/ffmpeg-scaler.html#scaler_005foptions > > I am thinking of trying accurate_rnd full_chroma_int full_chroma_inp > bitexact > > not that I know what's best or relevant, so trial and error really. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From eugenijusu at balticom.eu Mon Oct 17 17:36:12 2016 From: eugenijusu at balticom.eu (Eugenijus Urbonas) Date: Mon, 17 Oct 2016 17:36:12 +0300 Subject: [FFmpeg-user] ES info problem In-Reply-To: <1210352f-6ced-ab6d-b33f-08d6fa810061@balticom.eu> References: <1210352f-6ced-ab6d-b33f-08d6fa810061@balticom.eu> Message-ID: <43b6bc20-1810-6234-3a1b-337c7be6ff01@balticom.eu> Hello! Any advises? I can not find a key to set ES Info, so my DVB-equipment can't recognize video-stream correctly. Does anyone here use ffmpeg to create DVB-ready stream? On 14.10.2016. 17:33, Eugenijus Urbonas wrote: > Hello! > > I am trying to generate still image with silent audio-track to push it > to the DVB network. MPEG-ts stream is generating with this command: > > ~/bin/ffmpeg -loop 1 -i ~/image-mpeg4.jpg -f lavfi -i anullsrc -map > 0:v -map 1:a -c:a mp2 -b:a 128k -c:v libx264 -preset medium -profile:v > baseline -level 3.0 -tune stillimage -pix_fmt yuv420p -s 720x576 > -framerate 25 -crf 1 -bufsize 2000k -maxrate 2000k -f mpegts > udp://239.31.5.205:1234 > > in the result I get correct SPTS with two ESs inside, but video-stream > is not described as it should (there is no ES-info section): > https://drive.google.com/open?id=0B27FBYXaYyqAQ2NmNHBKNXZMdXc > > Input #0, mpegts, from 'udp://239.31.5.205:1234': > > Duration: N/A, start: 13590.794289, bitrate: N/A > > Program 1 > > Metadata: > > service_name : Service01 > > service_provider: FFmpeg > > Stream #0:0[0x100]: Video: h264 (Constrained Baseline) > ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 > fps, 25 tbr, 90k tbn, 50 tbc > > Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, > stereo, s16p, 128 kb/s > > For example, stream generated with vlc contains all info inside: > https://drive.google.com/open?id=0B27FBYXaYyqATnVXX0p5dU8zY2s > > Input #0, mpegts, from 'udp://239.31.5.206:1234': > > Duration: N/A, start: 90599.384444, bitrate: N/A > > Program 1 > > Stream #0:0[0x43]: Video: mpeg2video (Main) ([2][0][0][0] / > 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 50 tbr, > 90k tbn, 50 tbc > > Actually the same issue is present even if I try to wrap pre-generated > h.264 file into MPEG-ts with command: > > ~/bin/ffmpeg -re -stream_loop 1 -i ~/video2.mpg -c:v copy -vsync drop > -c:a copy -f mpegts udp://239.31.5.205:1234 > > So the question is, how could I set ES info? Could not find any useful > information in documentation. > -- Ar cieņu, Eugenijus Urbonas A/S Balticom Televīzijas pakalpojuma IT inženieris E-pasta adrese: eugenijusu at balticom.eu Kont. tālr.: 27028292 From tung.tran at v247.com Mon Oct 17 19:50:14 2016 From: tung.tran at v247.com (Tung Tran) Date: Mon, 17 Oct 2016 11:50:14 -0500 Subject: [FFmpeg-user] Create subtitle playlist Message-ID: Dear all Could you please point me the command to create .m3u8 playlist for subtitles on HLS streaming (VoD) application. I have the .srt file but dont know how to make .m3u8 playlist from it. Thank you --- Best regards, *Tung Tran* *UNO IPTV* From adf.lists at gmail.com Mon Oct 17 21:26:12 2016 From: adf.lists at gmail.com (Andy Furniss) Date: Mon, 17 Oct 2016 19:26:12 +0100 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift In-Reply-To: References: <57FF867E.6030304@gmail.com> Message-ID: <580517C4.3040506@gmail.com> Andreas Hummel wrote: > Hello Kevin, thanks for the hint. I replaced the -colormatrix option > with the -vf scale=.. option you suggested but i'm still getting a > slight hue shift in the final converted movie. > > Even the added -sws_flags you suggested thx @Andy couldn't solve the > problem. I tried various combinations but somehow i can't get a > color correct output with ffmpeg so far. > > > ffmpeg.exe -loglevel verbose -y -f image2 -start_number 0 -r 25 -i > INPUT -r 25 -vcodec prores_ks -profile:v 3 -pix_fmt yuv422p10le -vf > scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709 > > > -sws_flags accurate_rnd+full_chroma_int+full_chroma_inp+bitexact > -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vendor > ap10 OUTPUT.mov > [Parsed_scale_0 @ 00000000025899a0] w:iw h:ih flags:'bicubic' > interl:0 [graph 0 input from stream 0:0 @ 0000000002587ba0] w:1920 > h:1080 pixfmt:gbrp10le tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 > [graph 0 input from stream 0:0 @ 0000000002587ba0] TB:0.040000 > FRAME_RATE:25.000000 SAMPLE_RATE:nan [Parsed_scale_0 @ > 00000000025899a0] w:1920 h:1080 fmt:gbrp10le sar:1/1 -> w:1920 > h:1080 fmt:yuv422p10le sar:1/1 flags:0x4 I can see from that that the -sws_flags didn't take. I don't have your input and like Carl Eugen said the upload site is so annoying I haven't seen your output either. Even if I had I don't know how it was made or how good any 10 -> 8 bit conversion was, plus I would be viewing on a crappy tn panel which likely doesn't even do 8 bit. I did a test with some 48 bit rgb sgi images In summary rather than -sws_flags appending below to the scale command :flags=accurate_rnd+full_chroma_int+full_chroma_inp+bitexact got a different output for me. I don't know how you would test 10 bit though as making/displaying jpg involves another conversion, which may give different output depending on what/what parameters are involved. From adf.lists at gmail.com Mon Oct 17 21:37:43 2016 From: adf.lists at gmail.com (Andy Furniss) Date: Mon, 17 Oct 2016 19:37:43 +0100 Subject: [FFmpeg-user] dpx to prores & h.264 - color shift In-Reply-To: <580517C4.3040506@gmail.com> References: <57FF867E.6030304@gmail.com> <580517C4.3040506@gmail.com> Message-ID: <58051A77.9070204@gmail.com> Andy Furniss wrote: > Andreas Hummel wrote: >> Hello Kevin, thanks for the hint. I replaced the -colormatrix option >> with the -vf scale=.. option you suggested but i'm still getting a >> slight hue shift in the final converted movie. >> >> Even the added -sws_flags you suggested thx @Andy couldn't solve the >> problem. I tried various combinations but somehow i can't get a >> color correct output with ffmpeg so far. >> >> >> ffmpeg.exe -loglevel verbose -y -f image2 -start_number 0 -r 25 -i >> INPUT -r 25 -vcodec prores_ks -profile:v 3 -pix_fmt yuv422p10le -vf >> scale=in_range=full:in_color_matrix=bt709:out_range=tv:out_color_matrix=bt709 >> >> >> >> > -sws_flags accurate_rnd+full_chroma_int+full_chroma_inp+bitexact >> -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vendor >> ap10 OUTPUT.mov > >> [Parsed_scale_0 @ 00000000025899a0] w:iw h:ih flags:'bicubic' >> interl:0 [graph 0 input from stream 0:0 @ 0000000002587ba0] w:1920 >> h:1080 pixfmt:gbrp10le tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 >> [graph 0 input from stream 0:0 @ 0000000002587ba0] TB:0.040000 >> FRAME_RATE:25.000000 SAMPLE_RATE:nan [Parsed_scale_0 @ >> 00000000025899a0] w:1920 h:1080 fmt:gbrp10le sar:1/1 -> w:1920 >> h:1080 fmt:yuv422p10le sar:1/1 flags:0x4 > > I can see from that that the -sws_flags didn't take. More testing - Seems I am wrong here. Appending like I said will show different, but with loglevel debug you can see the flags do get set with -sws_flags and md5sum shows the same results. > > I don't have your input and like Carl Eugen said the upload site is so > annoying I haven't seen your output either. Even if I had I don't know > how it was made or how good any 10 -> 8 bit conversion was, plus I would > be viewing on a crappy tn panel which likely doesn't even do 8 bit. > > I did a test with some 48 bit rgb sgi images > > In summary rather than -sws_flags appending below to the scale command > > :flags=accurate_rnd+full_chroma_int+full_chroma_inp+bitexact > > got a different output for me. I don't know how you would test 10 bit > though as making/displaying jpg involves another conversion, which may > give different output depending on what/what parameters are involved. From sven.c.dack at sky.com Tue Oct 18 12:47:15 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Tue, 18 Oct 2016 10:47:15 +0100 Subject: [FFmpeg-user] Create subtitle playlist In-Reply-To: References: Message-ID: <8888f44f-9697-c06c-5a74-40e4408fd1d0@sky.com> On 17/10/16 17:50, Tung Tran wrote: > Dear all > > Could you please point me the command to create .m3u8 playlist for > subtitles on HLS streaming (VoD) application. I have the .srt file but > dont know how to make .m3u8 playlist from it. > > Thank you From what I know are .m3u files just plain text files (.m3u = ASCII text, m3u8 = UTF-8 text). See also: https://en.wikipedia.org/wiki/M3U This is an example for an .m3u file that I have on my desktop to play an Internet radio station: --- PulseRadio.m3u --- #EXTM3U #EXTINF:-2,(#1 192k) PulsRadio Version 100% Trance - www.pulsradio.com http://icecast.pulsradio.com:80/pulstranceHD.mp3 --- I believe lines starting with "#" are mere optional comments and all the file then contains are lists of URLs of all sorts. Should be the easiest thing in the world to create with only a text editor. Sven From tevans.uk at googlemail.com Tue Oct 18 17:03:44 2016 From: tevans.uk at googlemail.com (Tom Evans) Date: Tue, 18 Oct 2016 15:03:44 +0100 Subject: [FFmpeg-user] Create subtitle playlist In-Reply-To: References: Message-ID: On Mon, Oct 17, 2016 at 5:50 PM, Tung Tran wrote: > Dear all > > Could you please point me the command to create .m3u8 playlist for > subtitles on HLS streaming (VoD) application. I have the .srt file but > dont know how to make .m3u8 playlist from it. > > Thank you > Simply add the srt file as an input and convert to webvtt: Eg: > $ ffmpeg \ ----> -i bones_s09e07.mp4 \ ----> -i bones_s09e07.srt \ ----> -c copy -c:s webvtt \ ----> -start_number 0 -hls_time 10 -hls_list_size 0 \ ----> -f hls \ ----> out/index.m3u8 Cheers Tom From jsloat at articulate.com Tue Oct 18 18:53:48 2016 From: jsloat at articulate.com (joshsloat) Date: Tue, 18 Oct 2016 08:53:48 -0700 (PDT) Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <1473812196095-4677514.post@n4.nabble.com> <1474024404839-4677561.post@n4.nabble.com> <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> Message-ID: <1476806028483-4677920.post@n4.nabble.com> Hi Anand, I’m wondering if you ever reached resolution with this issue. I just submitted an app to the Mac App Store that is being rejected for the same reason: We have confirmed that the following API is present in your binary: framework: '/System/Library/Frameworks/Security.framework/Versions/A/Security': SecIdentityCreate Apple does not specifically point to our use of the bundled ffmpeg executable, but when I run nm from Terminal on ffmpeg to extract the symbol table, "_SecIdentityCreate" does show up in the output. FFmpeg is either using this private API or is using a method name that directly conflicts with a private method in Apple’s security framework. Anand - Were you able to somehow navigate this issue with Apple? Or perhaps find a way to build FFmpeg from source in a way that passes validation? Carl - It looks like there was some unaddressed confusion about why this is resulting in rejection. Apple strictly forbids the use of private APIs for apps submitted to the App Store. They run automated scans on binaries that dump symbol tables and compare with their private APIs. If there’s a match, they reject. The use of SecIdentityCreate in the ffmpeg executable is the reason for rejection. Thanks in advance, Josh -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFmpeg-without-SecIdentityCreate-API-tp4676487p4677920.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ceffmpeg at gmail.com Tue Oct 18 20:04:13 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Tue, 18 Oct 2016 19:04:13 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <1476806028483-4677920.post@n4.nabble.com> References: <1473812196095-4677514.post@n4.nabble.com> <1474024404839-4677561.post@n4.nabble.com> <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> Message-ID: 2016-10-18 17:53 GMT+02:00 joshsloat : > Carl - It looks like there was some unaddressed confusion > about why this is resulting in rejection. Why do you think so? What's wrong with --disable-securetransport? And where can I find the source code of your FFmpeg distribution? Carl Eugen From jsloat at articulate.com Tue Oct 18 20:21:15 2016 From: jsloat at articulate.com (Josh Sloat) Date: Tue, 18 Oct 2016 13:21:15 -0400 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <1473812196095-4677514.post@n4.nabble.com> <1474024404839-4677561.post@n4.nabble.com> <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> Message-ID: Anand mentioned that compiling with that option also resulted in rejection: >I tried to build myself using this ./configure --disable-protocol=tls_securetransport. They rejected it. The conversation seemed to sputter out after that, so I am reaching out for clarity. We’re not currently compiling ffmpeg from source. We’re using the binary obtained directly from: http://www.ffmpegmac.net Josh > On Oct 18, 2016, at 1:04 PM, Carl Eugen Hoyos wrote: > > 2016-10-18 17:53 GMT+02:00 joshsloat : >> Carl - It looks like there was some unaddressed confusion >> about why this is resulting in rejection. > > Why do you think so? > What's wrong with --disable-securetransport? > And where can I find the source code of your > FFmpeg distribution? > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From tung.tran at v247.com Tue Oct 18 22:29:15 2016 From: tung.tran at v247.com (Tung Tran) Date: Tue, 18 Oct 2016 14:29:15 -0500 Subject: [FFmpeg-user] Create subtitle playlist In-Reply-To: References: Message-ID: Dear Tom Evans Thank you very much for your guide, It saves ton of my time. --- Best regards, *Tung Tran* *UNO IPTV* *V247 Enterprise Corp*Phone: 713.358.2257 9999 Bellaire Blvd., Ste. 1111* | *Houston, TX 77036 *tung.tran at V247.com | www.V247.com * On Tue, Oct 18, 2016 at 9:03 AM, Tom Evans wrote: > On Mon, Oct 17, 2016 at 5:50 PM, Tung Tran wrote: > > Dear all > > > > Could you please point me the command to create .m3u8 playlist for > > subtitles on HLS streaming (VoD) application. I have the .srt file but > > dont know how to make .m3u8 playlist from it. > > > > Thank you > > > > Simply add the srt file as an input and convert to webvtt: > > Eg: > > > $ ffmpeg \ > ----> -i bones_s09e07.mp4 \ > ----> -i bones_s09e07.srt \ > ----> -c copy -c:s webvtt \ > ----> -start_number 0 -hls_time 10 -hls_list_size 0 \ > ----> -f hls \ > ----> out/index.m3u8 > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From h.reindl at thelounge.net Wed Oct 19 02:12:47 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 19 Oct 2016 01:12:47 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <1473812196095-4677514.post@n4.nabble.com> <1474024404839-4677561.post@n4.nabble.com> <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> Message-ID: <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> Am 18.10.2016 um 19:21 schrieb Josh Sloat: > We’re not currently compiling ffmpeg from source. We’re using the binary obtained directly from: http://www.ffmpegmac.net so WHAT is the point of a subject containing "compiling" then? From jsloat at articulate.com Wed Oct 19 02:11:06 2016 From: jsloat at articulate.com (joshsloat) Date: Tue, 18 Oct 2016 16:11:06 -0700 (PDT) Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> References: <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> Message-ID: <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> I didn’t create the subject line. I was responding to an existing thread. The original poster started with a downloaded binary (just like me) and got rejected (just like me). The original question had to do with trying to find a way to compile from source that would get around the rejection. Anand seemed to have some insights on dealing with the App Store and I was hoping to find out if he got to a resolution (compiling from source or otherwise). > On Oct 18, 2016, at 7:05 PM, Reindl Harald [via FFmpeg-users] wrote: > > > > Am 18.10.2016 um 19:21 schrieb Josh Sloat: > > We’re not currently compiling ffmpeg from source. We’re using the binary obtained directly from: http://www.ffmpegmac.net > > > so WHAT is the point of a subject containing "compiling" then? > _______________________________________________ > ffmpeg-user mailing list > [hidden email] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [hidden email] with subject "unsubscribe". > > If you reply to this email, your message will be added to the discussion below: > http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFmpeg-without-SecIdentityCreate-API-tp4676487p4677924.html > To unsubscribe from Compiling FFmpeg without SecIdentityCreate API, click here . > NAML -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFmpeg-without-SecIdentityCreate-API-tp4676487p4677925.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Wed Oct 19 02:23:28 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 19 Oct 2016 01:23:28 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> References: <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> Message-ID: <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> Am 19.10.2016 um 01:11 schrieb joshsloat: > I didn’t create the subject line. I was responding to an existing thread oh my.... From jsloat at articulate.com Wed Oct 19 02:24:34 2016 From: jsloat at articulate.com (Josh Sloat) Date: Tue, 18 Oct 2016 19:24:34 -0400 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> References: <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> Message-ID: <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> How is this helpful? > On Oct 18, 2016, at 7:23 PM, Reindl Harald wrote: > > > > Am 19.10.2016 um 01:11 schrieb joshsloat: >> I didn’t create the subject line. I was responding to an existing thread > > oh my.... > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From h.reindl at thelounge.net Wed Oct 19 11:15:34 2016 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 19 Oct 2016 10:15:34 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> References: <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> Message-ID: <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> Am 19.10.2016 um 01:24 schrieb Josh Sloat: > How is this helpful? how about learning to use your mail client? that starts with not top-posting and create your own topic by compose a new mail and *not* reply to something else - however, if you have a precompiled binary from somewhere then bother the person who built it >> On Oct 18, 2016, at 7:23 PM, Reindl Harald wrote: >> >> >> >> Am 19.10.2016 um 01:11 schrieb joshsloat: >>> I didn’t create the subject line. I was responding to an existing thread >> >> oh my.... From phil_rhodes at rocketmail.com Wed Oct 19 11:18:53 2016 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 19 Oct 2016 08:18:53 +0000 (UTC) Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> References: <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> Message-ID: <731312548.683013.1476865133783@mail.yahoo.com> > however, if you have a precompiled binary from somewhere then bother the person who built it Or, you could discuss it here, where there might be some other people who've used it. P From alseczg at gmail.com Wed Oct 19 12:46:33 2016 From: alseczg at gmail.com (Gabor Alsecz) Date: Wed, 19 Oct 2016 11:46:33 +0200 Subject: [FFmpeg-user] Transcode video problem with h264_nvenc Message-ID: Dear All, I try to transcode a video with h264_nvenc codec with the following command (including stdout/pipe, Windows): ffmpeg -i perspective1440.mp4 -c:v h264_nvenc -profile:v high -vf format=nv12 -qp 0 -f h264 - > perspective1440_out_nvenc.mp4 *Output:* ffmpeg version N-81960-g1bda0ee Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective1440.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.51.103 Duration: 00:07:27.92, start: 0.000000, bitrate: 4157 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 2560x1440 [SAR 1:1 DAR 16:9], 4154 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Codec AVOption qp (Constant quantization parameter rate control method) specified for output file #0 (pipe:) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Output #0, h264, to 'pipe:': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.51.103 Stream #0:0(eng): Video: h264 (h264_nvenc) (High), nv12, 2560x1440 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default) Metadata: handler_name : VideoHandler encoder : Lavc57.61.100 h264_nvenc Side data: cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc)) Press [q] to stop, [?] for help frame=13424 fps=266 q=26.0 Lsize= 104655kB time=00:07:27.91 bitrate=1914.1kbits/s speed=8.88x video:104655kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% So far this seems fine, the process executed, video file created. But when tried to play with any video player it does nothing. *Than i have checked with ffprobe:* $ ffprobe perspective1440_out_nvenc.mp4 ffprobe version N-81960-g1bda0ee Copyright (c) 2007-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, h264, from 'perspective1440_out_nvenc.mp4': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p, 2560x1440 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 1200k tbn, 59.94 tbc *While the ffprobe of the original input media is:* $ ffprobe perspective1440.mp4 ffprobe version N-81960-g1bda0ee Copyright (c) 2007-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.100 / 57. 61.100 libavformat 57. 51.103 / 57. 51.103 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'perspective1440.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf57.51.103 Duration: 00:07:27.92, start: 0.000000, bitrate: 4157 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 2560x1440 [SAR 1:1 DAR 16:9], 4154 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler What i've missed here? Thanks! br, Gabor From krueger at lesspain.software Wed Oct 19 13:32:00 2016 From: krueger at lesspain.software (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 19 Oct 2016 12:32:00 +0200 Subject: [FFmpeg-user] Extracting embedded xml metadata im mp4 Message-ID: Hi, I am currently looking at files from Sony A7S cameras (h264 in mp4) and looking at those files in a hex/text editor I can see that they have xml metadata written in a "meta" tag as far as I can see: Is it possible to extract that XML using ffmpeg or ffprobe? I tried this: ffprobe -export_all 1 -show_format /Volumes/LPSSD2/Shoots/Animals/C0032.MP4 ffprobe version git-2016-10-17-2f0ea8d Copyright (c) 2007-2016 the FFmpeg developers built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) configuration: --enable-shared --disable-static --disable-doc --disable-devices --enable-indev=lavfi --prefix=/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/ffmpeg --install-name-dir='@rpath' --extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libmp3lame/include/ --extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libmp3lame/lib/ --extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libogg/include/ --extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libogg/lib/ --extra-cflags=-I/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libvorbis/include/ --extra-ldflags=-L/Users/teamcity/buildAgent/work/3b1b1b1b725f407e/build/libvorbis/lib/ --extra-ldflags='-Wl,-rpath, at loader_path/../lib' --enable-libvorbis --enable-libvpx --enable-libmp3lame --enable-libopenh264 --enable-libfreetype libavutil 55. 32.100 / 55. 32.100 libavcodec 57. 61.103 / 57. 61.103 libavformat 57. 52.100 / 57. 52.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/LPSSD2/Shoots/Animals/C0032.MP4': Metadata: major_brand : XAVC minor_version : 16785407 compatible_brands: XAVCmp42iso2 creation_time : 2016-03-14T14:00:37.000000Z Duration: 00:00:05.51, start: 0.000000, bitrate: 48999 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 47263 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default) Metadata: creation_time : 2016-03-14T14:00:37.000000Z handler_name : Video Media Handler encoder : AVC Coding Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default) Metadata: creation_time : 2016-03-14T14:00:37.000000Z handler_name : Sound Media Handler Stream #0:2(und): Data: none (rtmd / 0x646D7472), 196 kb/s (default) Metadata: creation_time : 2016-03-14T14:00:37.000000Z handler_name : Timed Metadata Media Handler timecode : 00:15:40:08 Unsupported codec with id 0 for input stream 2 [FORMAT] filename=/Volumes/LPSSD2/Shoots/Animals/C0032.MP4 nb_streams=3 nb_programs=0 format_name=mov,mp4,m4a,3gp,3g2,mj2 format_long_name=QuickTime / MOV start_time=0.000000 duration=5.505500 size=33721095 bit_rate=48999865 probe_score=100 TAG:major_brand=XAVC TAG:minor_version=16785407 TAG:compatible_brands=XAVCmp42iso2 TAG:creation_time=2016-03-14T14:00:37.000000Z [/FORMAT] but as you can see, the metadata is not exported. Any hints would be appreciated. Thanks, Robert From barsnick at gmx.net Wed Oct 19 14:00:27 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 19 Oct 2016 13:00:27 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> References: <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> Message-ID: <20161019110027.GA6127@sunshine.barsnick.net> On Wed, Oct 19, 2016 at 10:15:34 +0200, Reindl Harald wrote: > and create your own topic by compose a new mail and *not* reply to > something else No, he replied to the existing thread, asking whether the OP (or whatever you call them on a mailing list) had come to a resolution - of the original issue. It's not a new topic at all, and I am sure that Josh understands very well that the binary he has been using isn't being accepted my the AppStore and never will. > - however, if you have a > precompiled binary from somewhere then bother the person who built it No, that's why he's here in this thread. He wants to know whether Anand managed to recompile ffmpeg properly to get his app approved. Moritz From sven.c.dack at sky.com Wed Oct 19 14:03:31 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Wed, 19 Oct 2016 12:03:31 +0100 Subject: [FFmpeg-user] Transcode video problem with h264_nvenc In-Reply-To: References: Message-ID: <960a990f-51be-a13e-4fe0-e449c497d052@sky.com> On 19/10/16 10:46, Gabor Alsecz wrote: > Dear All, > > I try to transcode a video with h264_nvenc codec with the following command > (including stdout/pipe, Windows): > ffmpeg -i perspective1440.mp4 -c:v h264_nvenc -profile:v high -vf > format=nv12 -qp 0 -f h264 - > perspective1440_out_nvenc.mp4 > The option "-f h264" specifies a raw video output without a container. Not every video player is able or willing to play such a file. MPV, gxine and mplayer do play it, VLC does not (at least not by default). You could try "-f flv" and see if your player accepts it. FLV is often used in streaming and may be more suitable for your needs. Sven From barsnick at gmx.net Wed Oct 19 14:17:52 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 19 Oct 2016 13:17:52 +0200 Subject: [FFmpeg-user] Transcode video problem with h264_nvenc In-Reply-To: References: Message-ID: <20161019111752.GB6127@sunshine.barsnick.net> On Wed, Oct 19, 2016 at 11:46:33 +0200, Gabor Alsecz wrote: > ffmpeg -i perspective1440.mp4 -c:v h264_nvenc -profile:v high -vf > format=nv12 -qp 0 -f h264 - > perspective1440_out_nvenc.mp4 [...] > So far this seems fine, the process executed, video file created. But when > tried to play with any video player it does nothing. Probably because you created a raw H.264 stream ("-f h264"), but put it in a file named *.mp4. Some players will thereby certainly expect an MP4 container (due to the extension). Smarter ones will check the content... E.g. MPlayer copes fine in my quick tests, VLC not. If you are intending to create an H.264 stream in an MP4 container, either use "-f mp4 -", or just use "perspective1440_out_nvenc.mp4" as the output file name (and no forced format), instead of '-' and piping. > *While the ffprobe of the original input media is:* Why are you comparing input and output (with "while")? You converted from one to the other, so you can expect them to be different. Especially as you told ffmpeg exactly what to make of the output (and it did just that). ;-) Gabor, I just noticed you are neither tellung us your expectations, not what you think went wrong. If your expectation was for the output H.264 stream to have the colorspace nv12 (were you?), I don't know why the conversion process tells you it is creating that, but the ffprobe of the resulting file sees yuv420p. P.S.: please note that "-qp 0" isn't being used, as ffmpeg is telling you. And it's probably smarter to use "-pix_fmt" than the "format" filter to force an output colorspace. But as I wrote, I have no idea what you're trying to achieve, and which part of the result you don't like.) Cheers, Moritz From alseczg at gmail.com Wed Oct 19 14:39:00 2016 From: alseczg at gmail.com (Gabor Alsecz) Date: Wed, 19 Oct 2016 13:39:00 +0200 Subject: [FFmpeg-user] Transcode video problem with h264_nvenc In-Reply-To: <20161019111752.GB6127@sunshine.barsnick.net> References: <20161019111752.GB6127@sunshine.barsnick.net> Message-ID: On Wed, Oct 19, 2016 at 1:17 PM, Moritz Barsnick wrote: > On Wed, Oct 19, 2016 at 11:46:33 +0200, Gabor Alsecz wrote: > > ffmpeg -i perspective1440.mp4 -c:v h264_nvenc -profile:v high -vf > > format=nv12 -qp 0 -f h264 - > perspective1440_out_nvenc.mp4 > [...] > > So far this seems fine, the process executed, video file created. But > when > > tried to play with any video player it does nothing. > > Probably because you created a raw H.264 stream ("-f h264"), but put it > in a file named *.mp4. Some players will thereby certainly expect an > MP4 container (due to the extension). Smarter ones will check the > content... E.g. MPlayer copes fine in my quick tests, VLC not. > Yes this is exactly what Sven has been also written and now i got it. Thanks! > > If you are intending to create an H.264 stream in an MP4 container, > either use "-f mp4 -", or just use "perspective1440_out_nvenc.mp4" as > the output file name (and no forced format), instead of '-' and piping. > Tried with "-f flv" (idea by Svan) and that case video playback also works fine. I didn't yet tried with "-f mp4" but guessing it would work fine as well. > > > *While the ffprobe of the original input media is:* > > Why are you comparing input and output (with "while")? You converted > from one to the other, so you can expect them to be different. > Especially as you told ffmpeg exactly what to make of the output (and > it did just that). ;-) > Right, i have used wrong wording here, sorry. > > Gabor, I just noticed you are neither tellung us your expectations, not > what you think went wrong. If your expectation was for the output H.264 > stream to have the colorspace nv12 (were you?), I don't know why the > conversion process tells you it is creating that, but the ffprobe of > the resulting file sees yuv420p. > P.S.: please note that "-qp 0" isn't being used, as ffmpeg is telling > you. And it's probably smarter to use "-pix_fmt" than the "format" > filter to force an output colorspace. But as I wrote, I have no idea > what you're trying to achieve, and which part of the result you don't > like.) > Got it, thanks for your hints! What i really try to achieve here to find a good command line option or a very similar one i can implement in my code where feeding FFmpeg process's stdout with raw byte data from code which encodes and stream to Youtube than. > > Cheers, > Moritz From sven.c.dack at sky.com Wed Oct 19 15:02:54 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Wed, 19 Oct 2016 13:02:54 +0100 Subject: [FFmpeg-user] Transcode video problem with h264_nvenc In-Reply-To: References: <20161019111752.GB6127@sunshine.barsnick.net> Message-ID: <2b9b9c5d-9ce5-bb02-b2dc-720452351ffe@sky.com> On 19/10/16 12:39, Gabor Alsecz wrote: > Got it, thanks for your hints! > What i really try to achieve here to find a good command line option or a > very similar one i can implement in my code where feeding FFmpeg process's > stdout with raw byte data from code which encodes and stream to Youtube > than. > We just had this topic the other day. The YouTube streaming service is still in beta and for unknown reason has it stopped working with ffmpeg (I'm assuming it did work in the past, because various people have posted scripts for ffmpeg on the Internet and these must have been working for them). However, beta or not, YouTube does already state they expect the incoming streams to be either FLV or DASH. So you'll likely be well on the right tracks by going with FLV for your tests. From alseczg at gmail.com Wed Oct 19 15:14:52 2016 From: alseczg at gmail.com (Gabor Alsecz) Date: Wed, 19 Oct 2016 14:14:52 +0200 Subject: [FFmpeg-user] Transcode video problem with h264_nvenc In-Reply-To: <2b9b9c5d-9ce5-bb02-b2dc-720452351ffe@sky.com> References: <20161019111752.GB6127@sunshine.barsnick.net> <2b9b9c5d-9ce5-bb02-b2dc-720452351ffe@sky.com> Message-ID: On Wed, Oct 19, 2016 at 2:02 PM, Sven C. Dack wrote: > On 19/10/16 12:39, Gabor Alsecz wrote: > >> Got it, thanks for your hints! >> What i really try to achieve here to find a good command line option or a >> very similar one i can implement in my code where feeding FFmpeg process's >> stdout with raw byte data from code which encodes and stream to Youtube >> than. >> >> We just had this topic the other day. The YouTube streaming service is > still in beta and for unknown reason has it stopped working with ffmpeg > (I'm assuming it did work in the past, because various people have posted > scripts for ffmpeg on the Internet and these must have been working for > them). However, beta or not, YouTube does already state they expect the > incoming streams to be either FLV or DASH. So you'll likely be well on the > right tracks by going with FLV for your tests. Yes you are right we had this topic some days before. Possible it was a temporary issue by Youtube because yesterday i've tested & it's just started to work again with the same command. So it seems ok now again?! > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From jsloat at articulate.com Wed Oct 19 16:27:05 2016 From: jsloat at articulate.com (joshsloat) Date: Wed, 19 Oct 2016 06:27:05 -0700 (PDT) Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <20161019110027.GA6127@sunshine.barsnick.net> References: <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> <20161019110027.GA6127@sunshine.barsnick.net> Message-ID: Thanks Moritz and Phil. You are precisely correct as to why I posted the question where I did. >how about learning to use your mail client? Good grief, Reindl. Comments like these are precisely why every conversation on the Internet devolves into a flame war. No help, no value, just misguided missiles. Back to the topic at hand - has anyone here had luck coming up with a build configuration that has successfully navigated Mac App Store approval? I have gone to Apple with this problem and they simply said: "you may want to consult with the developers of the third party framework, FFmpeg. While App Review cannot provide technical assistance, we have seen developers find solutions while using this third party framework.” It appears that it is, in fact, possible - just a matter of finding the right switches. Josh > On Oct 19, 2016, at 6:53 AM, Moritz Barsnick [via FFmpeg-users] wrote: > > On Wed, Oct 19, 2016 at 10:15:34 +0200, Reindl Harald wrote: > > and create your own topic by compose a new mail and *not* reply to > > something else > > No, he replied to the existing thread, asking whether the OP (or > whatever you call them on a mailing list) had come to a resolution - of > the original issue. It's not a new topic at all, and I am sure that > Josh understands very well that the binary he has been using isn't > being accepted my the AppStore and never will. > > > - however, if you have a > > precompiled binary from somewhere then bother the person who built it > > No, that's why he's here in this thread. He wants to know whether Anand > managed to recompile ffmpeg properly to get his app approved. > > Moritz > _______________________________________________ > ffmpeg-user mailing list > [hidden email] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [hidden email] with subject "unsubscribe". > > If you reply to this email, your message will be added to the discussion below: > http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFmpeg-without-SecIdentityCreate-API-tp4676487p4677932.html > To unsubscribe from Compiling FFmpeg without SecIdentityCreate API, click here . > NAML -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFmpeg-without-SecIdentityCreate-API-tp4676487p4677938.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cvilad at gmail.com Wed Oct 19 18:17:20 2016 From: cvilad at gmail.com (Carles Vila) Date: Wed, 19 Oct 2016 17:17:20 +0200 Subject: [FFmpeg-user] issue with concat and seek Message-ID: Hi, I have two mp4 (myIntro.mp4 and movie.mp4) that I want to concatenate, but the second video should start at 10 seconds. Both mp4 have same properties. Normal concat without seeking works just fine: ffmpeg -f concat -i list.txt -c copy output.mp4 I cut the first few seconds of the movie to remove some logos using: ffmpeg -ss 10.1 -i input_2.mp4 -c copy input_2_nologos.mp4 Playing back this file works as expected, the logos are gone. Problem is when I repeat the concat command above with the new movie, obviously updating the list.txt file, The logos are back! What am I doing wrong? Are the logos preserved, only hidden when seeking? Can I do the concat and seeking in one step? Thanks for any hint From barsnick at gmx.net Wed Oct 19 18:39:09 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 19 Oct 2016 17:39:09 +0200 Subject: [FFmpeg-user] Extracting embedded xml metadata im mp4 In-Reply-To: References: Message-ID: <20161019153909.GD6127@sunshine.barsnick.net> On Wed, Oct 19, 2016 at 12:32:00 +0200, Robert Krüger wrote: > Hi, > > I am currently looking at files from Sony A7S cameras (h264 in mp4) and > looking at those files in a hex/text editor I can see that they have xml > metadata written in a "meta" tag as far as I can see: I couldn't find a sample to test. I found one with a "Timed Metadata Media Handler" data stream in this ticket: https://trac.ffmpeg.org/ticket/5645 but it seems to contain binary data. Using $ ffprobe -show_packets -show_data or even $ ffprobe -show_packets -show_data -print_format compact you should see each packet's data in hexadecimal form. That could be parsed back to plain text (or binary, or whatever was in your data stream). To actually *extract* the data, I used this patch: http://ffmpeg.org/pipermail/ffmpeg-devel/2016-May/194445.html A newer version is here, though I think that's not the one I tested: http://ffmpeg.org/pipermail/ffmpeg-devel/2016-June/195929.html Note that both were rejected on ffmpeg-devel. I used that patch (patched ffmpeg) to extract the data stream to (Base64 text) file, and converted that to original data: $ grep -Ev ':|^\;' sony_a7s_XAVC_S_1080_25p_10s.fftextdata | perl -MMIME::Base64 -e 'while(<>) { print decode_base64($_) . "\n"; }' But as I said, there's only binary data in that sample apparently, and I *seem* to see the same stuff in the extracted data an in the MP4 file. Moritz From barsnick at gmx.net Wed Oct 19 18:51:03 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 19 Oct 2016 17:51:03 +0200 Subject: [FFmpeg-user] issue with concat and seek In-Reply-To: References: Message-ID: <20161019155103.GE6127@sunshine.barsnick.net> On Wed, Oct 19, 2016 at 17:17:20 +0200, Carles Vila wrote: > Normal concat without seeking works just fine: > ffmpeg -f concat -i list.txt -c copy output.mp4 You should probably be showing us list.txt. Actually, you should be showing us the complete, uncut console output of your ffmpeg commands as well. > obviously updating the list.txt file, Are you sure? You could extract input_2_nologos.mp4 image by image, just to be absolutely sure, but ffmpeg should do the right thing. > The logos are back! What am I doing wrong? Are the logos preserved, only > hidden when seeking? No, ffmpeg should actually cut with "-ss". > Can I do the concat and seeking in one step? Sure. The concat file takes per-file options such as "inpoint" and "duration": https://www.ffmpeg.org/ffmpeg-formats.html#Syntax ("inpoint" is a timestamp, and not an offset from the beginning, it seems. I haven't tested the effects.) Moritz From siddharth.bidasaria at citrix.com Wed Oct 19 19:16:41 2016 From: siddharth.bidasaria at citrix.com (Siddharth Bidasaria) Date: Wed, 19 Oct 2016 16:16:41 +0000 Subject: [FFmpeg-user] H264 decoding with dx11 (libavcodec) Message-ID: <619e22c52292475abeb47e0a32a4e931@FTLPEX02CL01.citrite.net> Hi, I'm looking for a minimalistic example/guide for setting up dx11 hardware acceleration for h264 decoding using libavcodec I was trying to follow the basic concepts behind this link (for dxva), and translating it to dx11 resources/functions. However at the moment I am doing something terribly wrong in the get_buffer2 callback and need to understand the model better to debug what I'm doing wrong (I'm new to both DirectX and ffmpeg, so it's been a steep learning curve) If someone could point me to an existing example implementation that would be of great help and much appreciated! Thanks, -Sid From barsnick at gmx.net Wed Oct 19 19:22:11 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 19 Oct 2016 18:22:11 +0200 Subject: [FFmpeg-user] H264 decoding with dx11 (libavcodec) In-Reply-To: <619e22c52292475abeb47e0a32a4e931@FTLPEX02CL01.citrite.net> References: <619e22c52292475abeb47e0a32a4e931@FTLPEX02CL01.citrite.net> Message-ID: <20161019162211.GF6127@sunshine.barsnick.net> On Wed, Oct 19, 2016 at 16:16:41 +0000, Siddharth Bidasaria wrote: > I'm looking for a minimalistic example/guide for setting up dx11 > hardware acceleration for h264 decoding using libavcodec (I have no idea about any of this, but:) You might get help here, but for proper help with programming with the libav* libraries, you should turn to the mailing list libav-user: http://ffmpeg.org/pipermail/libav-user/ Cheers, Moritz From krueger at lesspain.software Wed Oct 19 20:31:21 2016 From: krueger at lesspain.software (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 19 Oct 2016 19:31:21 +0200 Subject: [FFmpeg-user] Extracting embedded xml metadata im mp4 In-Reply-To: <20161019153909.GD6127@sunshine.barsnick.net> References: <20161019153909.GD6127@sunshine.barsnick.net> Message-ID: On Wed, Oct 19, 2016 at 5:39 PM, Moritz Barsnick wrote: > On Wed, Oct 19, 2016 at 12:32:00 +0200, Robert Krüger wrote: > > Hi, > > > > I am currently looking at files from Sony A7S cameras (h264 in mp4) and > > looking at those files in a hex/text editor I can see that they have xml > > metadata written in a "meta" tag as far as I can see: > > I couldn't find a sample to test. I found one with a "Timed Metadata > Media Handler" data stream in this ticket: > https://trac.ffmpeg.org/ticket/5645 > but it seems to contain binary data. > > Using > $ ffprobe -show_packets -show_data > or even > $ ffprobe -show_packets -show_data -print_format compact > you should see each packet's data in hexadecimal form. That could be > parsed back to plain text (or binary, or whatever was in your data > stream). > > To actually *extract* the data, I used this patch: > http://ffmpeg.org/pipermail/ffmpeg-devel/2016-May/194445.html > > A newer version is here, though I think that's not the one I tested: > http://ffmpeg.org/pipermail/ffmpeg-devel/2016-June/195929.html > > Note that both were rejected on ffmpeg-devel. > > I used that patch (patched ffmpeg) to extract the data stream to > (Base64 text) file, and converted that to original data: > > $ grep -Ev ':|^\;' sony_a7s_XAVC_S_1080_25p_10s.fftextdata | perl > -MMIME::Base64 -e 'while(<>) { print decode_base64($_) . "\n"; }' > > I was wondering why the sample name looked familiar. It's mine :-). > But as I said, there's only binary data in that sample apparently, and > I *seem* to see the same stuff in the extracted data an in the MP4 > file. > > In my case, I would not expect the data to be in a packet, so I guess the -show_packets approach would not work. I want to extract the data using API anyway but if it works on the command line, I know it works via API as well. I just checked. The sample from ticket 5645 also contains that xml metadata in the "meta" atom which is the last atom of the file. Contained data is: Are those meta atoms parsed in the mov demuxer? From waynemerricks at thevoiceasia.com Wed Oct 19 20:42:50 2016 From: waynemerricks at thevoiceasia.com (Wayne Merricks) Date: Wed, 19 Oct 2016 18:42:50 +0100 Subject: [FFmpeg-user] Newbie ish question with mpegts streaming Message-ID: <2ace48a8-1898-03e9-5c16-4a941a5a8100@thevoiceasia.com> Hi, I'm trying to match a stream from a proprietary box with ffmpeg so that hopefully the program that is receiving the stream will actually work with it (rather than doing nothing like it is now). I have matched most of the options but there are a few that I can't find good explanations for on Google/man pages. If I have an mpegts h264 main profile stream that outputs this info: Stream #0:0[0xdf] - Can I set the 0xdf part? My ffmpeg command is outputting 0x100 (0:0 is the video stream) Stream #0:1[0xe0] - Can I set the 0xe0 part? I'm getting 0x101 here. Finally after stream 0:1 I get Audio: mp2 ([4][0][0][0] / 0x004), but ffmpeg is outputting mp2 ([3][0][0][0] / 0x0003). Apologies for the list spam but I'm not even sure what to Google/look for in the man pages let alone how to set or what these options actually mean. If it helps here is my entire ffmpeg command so far: ffmpeg -re -i rtmp://my_rtmp_source -vcodec libx264 -profile:v main -vf scale=1920x1080,setsar=1/1,setdar=16/9 -pix_fmt yuv420p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -acodec mp2 -b:a 96k -ar 48000 -metadata service_name="TVA" -metadata service_provider="TVA" -metadata:s:a:0 language=GBR -f mpegts udp://127.0.0.1:2345 As you can guess I'm forced into an RTMP -> UDP mpegts conversion. Sadly, I can't change that. Thanks for reading, Wayne From cleyfaye at gmail.com Wed Oct 19 20:43:00 2016 From: cleyfaye at gmail.com (Cley Faye) Date: Wed, 19 Oct 2016 19:43:00 +0200 Subject: [FFmpeg-user] issue with concat and seek In-Reply-To: <20161019155103.GE6127@sunshine.barsnick.net> References: <20161019155103.GE6127@sunshine.barsnick.net> Message-ID: 2016-10-19 17:51 GMT+02:00 Moritz Barsnick : > No, ffmpeg should actually cut with "-ss". ​Hmm, I'm not sure. This wiki page (https://trac.ffmpeg.org/wiki/Seeking ) says: > Using -ss as input option together with -c:v copy might not be accurate since ffmpeg is forced to only use/split on i-frames. Though it will—if possible—adjust the start time of the stream to a negative value to compensate for that. Basically, if you specify "second 157" and there is no key frame until second 159, it will include two seconds of audio (with no video) at the start, then will start from the first key frame. So be careful when splitting and doing codec copy. To me, it sound like it might copy all the video, and set the stream to start at the specified time, if there is no keyframe between the start and the cutting point. If that's the case, then concat might not be honoring this starting time. From cvilad at gmail.com Wed Oct 19 21:24:20 2016 From: cvilad at gmail.com (Carles Vila) Date: Wed, 19 Oct 2016 20:24:20 +0200 Subject: [FFmpeg-user] issue with concat and seek In-Reply-To: References: <20161019155103.GE6127@sunshine.barsnick.net> Message-ID: <5807ba5d.4336c20a.84720.6ebd@mx.google.com> Thanks for hinting in the right direction. Indeed there was no key frame up to sec. 10,5 (amazed by this!) The fact that QuickTime player did *not* show the cut beginning increased my confusion. But further processing with ffmpeg (concat) proves that the frames are there. Increasing the seek has solved the issue.. -----Mensaje original----- De: "Cley Faye" Enviado: ‎19/‎10/‎2016 19:43 Para: "FFmpeg user questions" Asunto: Re: [FFmpeg-user] issue with concat and seek 2016-10-19 17:51 GMT+02:00 Moritz Barsnick : > No, ffmpeg should actually cut with "-ss". ​Hmm, I'm not sure. This wiki page (https://trac.ffmpeg.org/wiki/Seeking ) says: > Using -ss as input option together with -c:v copy might not be accurate since ffmpeg is forced to only use/split on i-frames. Though it will—if possible—adjust the start time of the stream to a negative value to compensate for that. Basically, if you specify "second 157" and there is no key frame until second 159, it will include two seconds of audio (with no video) at the start, then will start from the first key frame. So be careful when splitting and doing codec copy. To me, it sound like it might copy all the video, and set the stream to start at the specified time, if there is no keyframe between the start and the cutting point. If that's the case, then concat might not be honoring this starting time. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From ceffmpeg at gmail.com Thu Oct 20 00:28:03 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 19 Oct 2016 23:28:03 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <1473812196095-4677514.post@n4.nabble.com> <1474024404839-4677561.post@n4.nabble.com> <1474073412332-4677598.post@n4.nabble.com> <1474073678676-4677599.post@n4.nabble.com> <778876518.206795.1474139537663@mail.yahoo.com> <1474139687150-4677607.post@n4.nabble.com> <1476806028483-4677920.post@n4.nabble.com> Message-ID: 2016-10-18 19:21 GMT+02:00 Josh Sloat : > We’re not currently compiling ffmpeg from source. Sorry, your mail is difficult to read: To which of my questions is this the answer? Carl Eugen From ceffmpeg at gmail.com Thu Oct 20 00:29:01 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 19 Oct 2016 23:29:01 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <1476806028483-4677920.post@n4.nabble.com> <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> <20161019110027.GA6127@sunshine.barsnick.net> Message-ID: 2016-10-19 15:27 GMT+02:00 joshsloat : > It appears that it is, in fact, possible - just a matter of finding the right switches. Could it also be a matter of reading the mails I write? Carl Eugen From ceffmpeg at gmail.com Thu Oct 20 00:32:27 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 19 Oct 2016 23:32:27 +0200 Subject: [FFmpeg-user] Newbie ish question with mpegts streaming In-Reply-To: <2ace48a8-1898-03e9-5c16-4a941a5a8100@thevoiceasia.com> References: <2ace48a8-1898-03e9-5c16-4a941a5a8100@thevoiceasia.com> Message-ID: 2016-10-19 19:42 GMT+02:00 Wayne Merricks : > If it helps here is my entire ffmpeg command so far: Please always provide the command line you tested together with the complete, uncut console output when asking for help here. In your case, please also provide the complete console output of "ffmpeg -i file" for a working stream. Carl Eugen From ceffmpeg at gmail.com Thu Oct 20 00:35:12 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 19 Oct 2016 23:35:12 +0200 Subject: [FFmpeg-user] Extracting embedded xml metadata im mp4 In-Reply-To: References: <20161019153909.GD6127@sunshine.barsnick.net> Message-ID: 2016-10-19 19:31 GMT+02:00 Robert Krüger : > Are those meta atoms parsed in the mov demuxer? Yes, but most content (except "hdlr") is ignored. Carl Eugen From jsloat at articulate.com Thu Oct 20 00:28:01 2016 From: jsloat at articulate.com (joshsloat) Date: Wed, 19 Oct 2016 14:28:01 -0700 (PDT) Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> <20161019110027.GA6127@sunshine.barsnick.net> Message-ID: <2579CA9F-CB6C-4150-B613-9518D10BCE25@articulate.com> >Could it also be a matter of reading the mails I write? I’ve read every single line of every single post in this thread. You gave the original poster a solution and he said it didn’t work. I can either repeat what the OP did and end up with the same result - or we can move things closer to getting a solution. Please do not respond if you are only looking to throw daggers. > On Oct 19, 2016, at 5:21 PM, Carl Eugen Hoyos-2 [via FFmpeg-users] wrote: > > 2016-10-19 15:27 GMT+02:00 joshsloat <[hidden email] >: > > > It appears that it is, in fact, possible - just a matter of finding the right switches. > > Could it also be a matter of reading the mails I write? > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > [hidden email] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > [hidden email] with subject "unsubscribe". > > If you reply to this email, your message will be added to the discussion below: > http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFmpeg-without-SecIdentityCreate-API-tp4676487p4677949.html > To unsubscribe from Compiling FFmpeg without SecIdentityCreate API, click here . > NAML -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFmpeg-without-SecIdentityCreate-API-tp4676487p4677952.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ceffmpeg at gmail.com Thu Oct 20 00:42:27 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 19 Oct 2016 23:42:27 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: <2579CA9F-CB6C-4150-B613-9518D10BCE25@articulate.com> References: <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> <20161019110027.GA6127@sunshine.barsnick.net> <2579CA9F-CB6C-4150-B613-9518D10BCE25@articulate.com> Message-ID: 2016-10-19 23:28 GMT+02:00 joshsloat : >>Could it also be a matter of reading the mails I write? > > I’ve read every single line of every single post in this thread. > You gave the original poster a solution and he said it didn’t work. Where did he say that? Please fix your quoting, Carl Eugen From waynemerricks at thevoiceasia.com Thu Oct 20 01:01:52 2016 From: waynemerricks at thevoiceasia.com (Wayne Merricks) Date: Wed, 19 Oct 2016 23:01:52 +0100 Subject: [FFmpeg-user] Newbie ish question with mpegts streaming In-Reply-To: References: <2ace48a8-1898-03e9-5c16-4a941a5a8100@thevoiceasia.com> Message-ID: <75397105754b4bc6000163ee23056cd8@thevoiceasia.com> Hi, Apologies, I assumed the command by itself would be enough. I've been playing with the command since the email but I'm still unable to get the proprietary system to correctly receive. I can't provide a working ffmpeg -i because the equipment/software in use is an old version of some Windows software called Zixi receiver. I'm trying to get ffmpeg to match the output of Zixi so that I can bypass the encoder chain for various reasons. This is the output from the Windows system with the proprietary software but I get the same output mismatch in terms of ffprobe under Ubuntu 16.04. I had to use x264opts on the Windows build as -color_primaries wasn't being parsed there. ffmpeg -re -i rtmp://my_rtmp_feed -vcodec libx264 -profile:v main -level 3.1 -s 1920:1080 -pix_fmt yuv420p -x264opts colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=off -vf setsar=1/1,setdar=16/9 -acodec mp2 -b:a 96k -ar 48000 -metadata service_name="TVA" -metadata service_provider="TVA" -metadata:s:a:0 language=GBR -f mpegts udp://127.0.0.1:2345 ffmpeg version N-60274-gdce9321 Copyright (c) 2000-2014 the FFmpeg developers built on Jan 31 2014 22:01:13 with gcc 4.8.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 63.100 / 52. 63.100 libavcodec 55. 49.101 / 55. 49.101 libavformat 55. 28.101 / 55. 28.101 libavdevice 55. 7.100 / 55. 7.100 libavfilter 4. 1.101 / 4. 1.101 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Metadata: duration 0.00 width 1280.00 height 720.00 videodatarate 1464.84 framerate 25.00 videocodecid 7.00 audiodatarate 93.75 audiosamplerate 48000.00 audiosamplesize 16.00 stereo TRUE audiocodecid 10.00 encoder Lavf57.2.100 filesize 0.00 Input #0, flv, from 'rtmp://my_rtmp_feed': Metadata: encoder : Lavf57.2.100 Duration: 00:00:00.00, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1280x720, 1500 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp, 96 kb/s [libx264 @ 04349e20] using SAR=1/1 [libx264 @ 04349e20] frame MB size (120x68) > level limit (3600) [libx264 @ 04349e20] DPB size (4 frames, 32640 mbs) > level limit (2 frames, 18000 mbs) [libx264 @ 04349e20] MB rate (204000) > level limit (108000) [libx264 @ 04349e20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64 [libx264 @ 04349e20] profile Main, level 3.1 Output #0, mpegts, to 'udp://127.0.0.1:2345': Metadata: service_provider: TVA service_name : TVA encoder : Lavf55.28.101 Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 25 tbc Stream #0:1(GBR): Audio: mp2, 48000 Hz, stereo, s16, 96 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> mp2) Press [q] to stop, [?] for help Then you get your standard frame encoding information e.g.: frame= 195 fps= 25 q=28.0 size= 113kB time=00:00:07.93 bitrate= 117.0kbits/s dup=33 drop=0 Then on quit: video:57kB audio:197kB subtitle:0 data:0 global headers:0kB muxing overhead 28.835307% [libx264 @ 04349e20] frame I:2 Avg QP: 8.19 size: 14054 [libx264 @ 04349e20] frame P:105 Avg QP: 9.20 size: 78 [libx264 @ 04349e20] frame B:310 Avg QP:12.67 size: 72 [libx264 @ 04349e20] consecutive B-frames: 0.7% 0.5% 0.0% 98.8% [libx264 @ 04349e20] mb I I16..4: 95.6% 0.0% 4.4% [libx264 @ 04349e20] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0% [libx264 @ 04349e20] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0:90.5% L1: 9.5% BI: 0.0% [libx264 @ 04349e20] coded y,uvDC,uvAC intra: 3.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0% [libx264 @ 04349e20] i16 v,h,dc,p: 98% 1% 2% 0% [libx264 @ 04349e20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 20% 16% 4% 4% 7% 4% 6% 3% [libx264 @ 04349e20] i8c dc,h,v,p: 100% 0% 0% 0% [libx264 @ 04349e20] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 04349e20] ref P L0: 89.5% 5.3% 5.3% [libx264 @ 04349e20] ref B L0: 9.3% 90.7% [libx264 @ 04349e20] kb/s:28.17 I'm only encoding a static image for the video stream hence the low video output 57kB. On 2016-10-19 22:32, Carl Eugen Hoyos wrote: > 2016-10-19 19:42 GMT+02:00 Wayne Merricks > : >> If it helps here is my entire ffmpeg command so far: > > Please always provide the command line you tested together with the > complete, uncut console output when asking for help here. > > In your case, please also provide the complete console output of > "ffmpeg -i file" for a working stream. > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From jsloat at articulate.com Thu Oct 20 00:56:42 2016 From: jsloat at articulate.com (Josh Sloat) Date: Wed, 19 Oct 2016 17:56:42 -0400 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> <20161019110027.GA6127@sunshine.barsnick.net> <2579CA9F-CB6C-4150-B613-9518D10BCE25@articulate.com> Message-ID: >Where did he say that? OP discusses failed methods here: https://www.mail-archive.com/ffmpeg-user at ffmpeg.org/msg11151.html >Please fix your quoting I’m using the Reply button in mail.app and the “>" symbol for quoting. Pretty standard stuff. Not sure what more I can do. > On Oct 19, 2016, at 5:42 PM, Carl Eugen Hoyos wrote: > > 2016-10-19 23:28 GMT+02:00 joshsloat : >>> Could it also be a matter of reading the mails I write? >> >> I’ve read every single line of every single post in this thread. > >> You gave the original poster a solution and he said it didn’t work. > > Where did he say that? > > Please fix your quoting, Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From ceffmpeg at gmail.com Thu Oct 20 01:04:01 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 20 Oct 2016 00:04:01 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> <20161019110027.GA6127@sunshine.barsnick.net> <2579CA9F-CB6C-4150-B613-9518D10BCE25@articulate.com> Message-ID: 2016-10-19 23:56 GMT+02:00 Josh Sloat : >>Where did he say that? > > OP discusses failed methods here: > https://www.mail-archive.com/ffmpeg-user at ffmpeg.org/msg11151.html (Now an important part of my email is missing above) I don't think he discusses a suggested method "here". Carl Eugen From ceffmpeg at gmail.com Thu Oct 20 01:06:55 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 20 Oct 2016 00:06:55 +0200 Subject: [FFmpeg-user] Newbie ish question with mpegts streaming In-Reply-To: <75397105754b4bc6000163ee23056cd8@thevoiceasia.com> References: <2ace48a8-1898-03e9-5c16-4a941a5a8100@thevoiceasia.com> <75397105754b4bc6000163ee23056cd8@thevoiceasia.com> Message-ID: 2016-10-20 0:01 GMT+02:00 Wayne Merricks : > ffmpeg version N-60274-gdce9321 Copyright (c) 2000-2014 This is old, please test current FFmpeg git head (which will support the options that your version doesn't support). Did you also provide ffmpeg -i output for the working stream? Please do not top-post here, Carl Eugen From georgenistor at zoho.com Thu Oct 20 06:12:44 2016 From: georgenistor at zoho.com (George Nistor) Date: Thu, 20 Oct 2016 06:12:44 +0300 Subject: [FFmpeg-user] when to use 10bit Message-ID: <6710084186.20161020061244@zoho.com> Hello Ffmpeg-users, I have a general question. When makes sense to use 10 bit for video encoding? Does it make any difference at high kbps? For more than 3000 kbps it is seen a difference in more quality (acuracy) of the colors? -- Best regards, George mailto:georgenistor at zoho.com From applemax82 at 163.com Thu Oct 20 07:05:41 2016 From: applemax82 at 163.com (qw) Date: Thu, 20 Oct 2016 12:05:41 +0800 (CST) Subject: [FFmpeg-user] how to convert flv/mp4 into hls Message-ID: <567f82e3.177a76.157e044189a.Coremail.applemax82@163.com> Hi, Generally, ffmpeg can convert flv/mp4 files into hls format, where m3u8 is the list file, and segment format is ts. Is it possible that segment format is set to mp4? Thanks! Regards Andrew From applemax82 at 163.com Thu Oct 20 09:58:57 2016 From: applemax82 at 163.com (qw) Date: Thu, 20 Oct 2016 14:58:57 +0800 (CST) Subject: [FFmpeg-user] does ffmpeg support fMP4 segments in HLS Message-ID: <4cffb8cf.17aafa.157e0e2b7f2.Coremail.applemax82@163.com> Hi, does ffmpeg support fMP4 segments in HLS? how to convert flv/mp4 into hls format with fmp4 segment? Thanks Regards Andrew From erik.dobberkau at gmail.com Thu Oct 20 09:58:10 2016 From: erik.dobberkau at gmail.com (Erik Dobberkau) Date: Thu, 20 Oct 2016 08:58:10 +0200 Subject: [FFmpeg-user] Compiling FFmpeg without SecIdentityCreate API In-Reply-To: References: <8515be58-a2c3-7dfb-112c-3df99f45af9a@thelounge.net> <969A8009-AFF0-4832-9CFF-11F8C6C947D8@articulate.com> <84c57dc2-d26a-3da6-2687-da9c753bb8e5@thelounge.net> <2B6882C4-967A-48E0-8154-E87453F7180B@articulate.com> <25674974-6b5e-0973-2c58-ca8fc087581f@thelounge.net> <20161019110027.GA6127@sunshine.barsnick.net> <2579CA9F-CB6C-4150-B613-9518D10BCE25@articulate.com> Message-ID: Am Mittwoch, 19. Oktober 2016 schrieb Josh Sloat : > > >Please fix your quoting > > I’m using the Reply button in mail.app and the “>" symbol for quoting. > Pretty standard stuff. Not sure what more I can do. > Josh, please reply in context below the respective question/statement, and remove any excess text (e.g. footers) since it is already incorporated in the post before yours. The ">" is not a problem. Thank you. Erik From erik.dobberkau at gmail.com Thu Oct 20 10:09:01 2016 From: erik.dobberkau at gmail.com (Erik Dobberkau) Date: Thu, 20 Oct 2016 09:09:01 +0200 Subject: [FFmpeg-user] when to use 10bit In-Reply-To: <6710084186.20161020061244@zoho.com> References: <6710084186.20161020061244@zoho.com> Message-ID: Am Donnerstag, 20. Oktober 2016 schrieb George Nistor : > Hello Ffmpeg-users, > > I have a general question. > When makes sense to use 10 bit for video encoding? > > Does it make any difference at high kbps? For more than 3000 kbps it is > seen a difference > in more quality (acuracy) of the colors? > George, 10bit color depth is mostly being used in the acquisition or intermediate (processing) stage of video, it is not (yet) common in distribution. With the advent of HEVC and HDR this will most likely change on the distribution side, but slowly. If you're interested in the topic, there are some research papers available for free on the BBC's R&D web site. IMHO you won't see a quality improvement in such low bitrates -- a difference, yes. When talking about uncompressed or intra-frame compressed video, one will see a difference at bitrates larger than 100Mbps, because then the spatial compression losses are almost gone, and color fidelity gets more important, if you're using a 4:2:2 or 4:4:4 color sampling. In delivery codecs such as AVC (H.264) and HEVC (H.265), a provable difference will most likely be seen at bitrates larger than 30Mbps, or 15Mbps, respectively. Erik From francois.visagie at gmail.com Thu Oct 20 10:08:42 2016 From: francois.visagie at gmail.com (Francois Visagie) Date: Thu, 20 Oct 2016 10:08:42 +0300 Subject: [FFmpeg-user] when to use 10bit In-Reply-To: <6710084186.20161020061244@zoho.com> References: <6710084186.20161020061244@zoho.com> Message-ID: <006301d22aa0$cd22f580$6768e080$@gmail.com> > -----Original Message----- > From: ffmpeg-user [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of > George Nistor > Sent: 20 October 2016 06:13 > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] when to use 10bit > > Hello Ffmpeg-users, > > I have a general question. > When makes sense to use 10 bit for video encoding? > > Does it make any difference at high kbps? For more than 3000 kbps it is seen > a difference in more quality (acuracy) of the colors? In my view, there are two more important considerations: 1. If the source is 10-bit video, encode it as such to preserve precision 2. You may want to consider encoding lower bit-depth source to 10 bits if the source contains flat gradients that may show banding after denoising and/or quantisation at the chosen bitrate. > > > -- > Best regards, > George mailto:georgenistor at zoho.com > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org > with subject "unsubscribe". From ceffmpeg at gmail.com Thu Oct 20 10:51:52 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 20 Oct 2016 09:51:52 +0200 Subject: [FFmpeg-user] when to use 10bit In-Reply-To: <6710084186.20161020061244@zoho.com> References: <6710084186.20161020061244@zoho.com> Message-ID: 2016-10-20 5:12 GMT+02:00 George Nistor : > When makes sense to use 10 bit for video encoding? Using x264 10bit encoding always (!) means better quality for a given bitrate, even for 8bit input but many video players may not be able to playback 10bit h264. Carl Eugen From ceffmpeg at gmail.com Thu Oct 20 11:03:13 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 20 Oct 2016 10:03:13 +0200 Subject: [FFmpeg-user] Compiling for libavcodec VDPAU hwaccel In-Reply-To: References: Message-ID: 2016-10-12 9:14 GMT+02:00 Torstein Sørnes : > ffmpeg_options: > --enable-vdpau (This is not related to your issue, just to FFmpeg configuration in general) The option --enable-vdpau has no effect, that's why it is not listed when you run ./configure --help. Carl Eugen From krueger at lesspain.software Thu Oct 20 11:41:06 2016 From: krueger at lesspain.software (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 20 Oct 2016 10:41:06 +0200 Subject: [FFmpeg-user] Extracting embedded xml metadata im mp4 In-Reply-To: References: <20161019153909.GD6127@sunshine.barsnick.net> Message-ID: On Wed, Oct 19, 2016 at 11:35 PM, Carl Eugen Hoyos wrote: > 2016-10-19 19:31 GMT+02:00 Robert Krüger : > > > Are those meta atoms parsed in the mov demuxer? > > Yes, but most content (except "hdlr") is ignored. > > Thanks for the clarification! So would a patch be accepted that implements reading of this additional metadata? From ceffmpeg at gmail.com Thu Oct 20 11:49:17 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 20 Oct 2016 10:49:17 +0200 Subject: [FFmpeg-user] Extracting embedded xml metadata im mp4 In-Reply-To: References: <20161019153909.GD6127@sunshine.barsnick.net> Message-ID: 2016-10-20 10:41 GMT+02:00 Robert Krüger : > So would a patch be accepted that implements reading of this > additional metadata? (Sorry if this was not directed to me...) I am not maintainer of mov.c and therefore cannot answer but the only way to find out is to send a (clean) patch made with git format-patch to the development mailing list. Carl Eugen From alseczg at gmail.com Thu Oct 20 11:38:58 2016 From: alseczg at gmail.com (Gabor Alsecz) Date: Thu, 20 Oct 2016 10:38:58 +0200 Subject: [FFmpeg-user] Set keyframe interval raw video Message-ID: Dear All, Would like to know what is the best way/parameter to force key frame interval. I would need 2*FPS I'm feeding FFmpeg's stdout with raw images at fps 25. So far i have the following command: ffmpeg -y -loglevel info -f lavfi -i aevalsrc=0 -f rawvideo -pix_fmt rgb24 -video_size 1280x720 -framerate=25 -i "-" -f flv -acodec aac -vcodec h264_nvenc -profile:v high -vf "fps=25,format=yuv420p" -minrate 3000k -maxrate 3000k -bufsize 6000k output.mp4 Thanks! br, g. From barsnick at gmx.net Thu Oct 20 12:06:27 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 20 Oct 2016 11:06:27 +0200 Subject: [FFmpeg-user] issue with concat and seek In-Reply-To: References: <20161019155103.GE6127@sunshine.barsnick.net> Message-ID: <20161020090627.GC8001@sunshine.barsnick.net> On Wed, Oct 19, 2016 at 19:43:00 +0200, Cley Faye wrote: > To me, it sound like it might copy all the video, and set the stream to > start at the specified time, if there is no keyframe between the start and > the cutting point. If that's the case, then concat might not be honoring > this starting time. Good point - I wasn't aware it would do it this way. (I'll need to play around with this to understand, for myself.) I'm pretty sure the "inpoint" directive to the concat demuxer will then suffer the same issue. Its documentation even says: This directive works best with intra frame codecs, because for non-intra frame ones you will usually get extra packets before the actual In point and the decoded content will most likely contain frames before In point too. Cheers, Moritz From ceffmpeg at gmail.com Thu Oct 20 12:13:14 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 20 Oct 2016 11:13:14 +0200 Subject: [FFmpeg-user] Set keyframe interval raw video In-Reply-To: References: Message-ID: 2016-10-20 10:38 GMT+02:00 Gabor Alsecz : > Dear All, > > Would like to know what is the best way/parameter to force key frame > interval. I would need 2*FPS > I'm feeding FFmpeg's stdout with raw images at fps 25. > So far i have the following command: > ffmpeg -y -loglevel info -f lavfi -i aevalsrc=0 -f rawvideo -pix_fmt > rgb24 -video_size 1280x720 -framerate=25 -i "-" -f flv -acodec aac -vcodec I don't think this is supposed to work. > h264_nvenc -profile:v high -vf "fps=25,format=yuv420p" -minrate 3000k Careful with the fps filter: If input fps == output fps, don't use it to be on the safe side. > -maxrate 3000k -bufsize 6000k output.mp4 -g should set the keyframe interval. Carl Eugen From cvilad at gmail.com Thu Oct 20 12:35:10 2016 From: cvilad at gmail.com (Carles Vila) Date: Thu, 20 Oct 2016 11:35:10 +0200 Subject: [FFmpeg-user] issue with concat and seek In-Reply-To: <20161020090627.GC8001@sunshine.barsnick.net> References: <20161019155103.GE6127@sunshine.barsnick.net> <20161020090627.GC8001@sunshine.barsnick.net> Message-ID: > > > Good point - I wasn't aware it would do it this way. (I'll need to play > around with this to understand, for myself.) > > I'm pretty sure the "inpoint" directive to the concat demuxer will then > suffer the same issue. Its documentation even says: > > This directive works best with intra frame codecs, because for > non-intra frame ones you will usually get extra packets before the > actual In point and the decoded content will most likely contain > frames before In point too. > > Hi Moritz, I don't know if my reply yesterday went through (for some reason I don't receive my own ffmpeg-user emails in gmail) Anyway, that is exactly what was happening. From m.zdila at gmail.com Thu Oct 20 13:32:58 2016 From: m.zdila at gmail.com (=?UTF-8?Q?Martin_=C5=BDdila?=) Date: Thu, 20 Oct 2016 12:32:58 +0200 Subject: [FFmpeg-user] Video processing stopped prematurely on resolution change Message-ID: Hello I have two videos where one of them changes it resolution (rotation) twice. I would like to join them side by side. I've used following command: ffmpeg -y -i a.webm -i b.webm -filter_complex " color=color=black:size=640x240 [base]; [0:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease [left]; [1:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease [right]; [base][left] overlay [tmp1]; [tmp1][right] overlay=x=320" \ -c:v libx264 -preset fast -c:a copy -t 30 output.mkv The problem is that the result video (output.mkv) ends at second resolution change and doesn't continue beyond that. It looks like a bug of ffmpeg. Could somebody please confirm it or suggest a workaround? Attached attach including debug output can be found at http://filebin.ca/2z6yMpuLdtyP/videotest.tgz. Thank you -- Martin Ždila From m.zdila at gmail.com Thu Oct 20 15:46:56 2016 From: m.zdila at gmail.com (=?UTF-8?Q?Martin_=C5=BDdila?=) Date: Thu, 20 Oct 2016 14:46:56 +0200 Subject: [FFmpeg-user] Video processing stopped prematurely on resolution change In-Reply-To: References: Message-ID: Even simpler example to reproduce the problem using just one file from the referenced tarball: ffmpeg -y -i b.webm -filter_complex " color=color=black:size=320x240 [bg]; [0:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease [main]; [bg][main] overlay=x=160-overlay_w/2:shortest=1" \ -c:v libx264 -preset slow output.mp4 It seems that ffmpeg has pretty much a problem with videos changing its dimension. For example this will only show single frame: ffmpeg -y -i b.webm -i logo.png -filter_complex " color=color=black:size=320x240 [bg]; [0:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease [main]; [bg][main] overlay=x=160-overlay_w/2:shortest=1 [tmp]; [tmp][1:v] overlay=shortest=1" \ -c:v libx264 -preset slow output.mp4 This even uses the video not changing its dimenstions, but the result is like 1 FPS and there are many messages in the logs "[Parsed_overlay_8 @ 0x1cf2500] [framesync @ 0x1cf25e8] Buffer queue overflow, dropping.". Also the same video used on both sides is not even synced: ffmpeg -y -i a.webm -i logo.png -filter_complex " color=color=black:size=640x240 [base]; [1:v] setpts=PTS-STARTPTS [logo]; [0:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease [left]; [0:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease [right]; [base][left] overlay [tmp1]; [tmp1][right] overlay=x=320+160-overlay_w/2 [tmp2]; [tmp2][logo] overlay" \ -c:v libx264 -preset slow -c:a aac -t 30 output.mp4 Replacing a.webm with b.webm makes encoding so slow that i doubt it will ever end (CPU is at 0%). Do you think I should report is as a bug? PS: version info (is in the debug log in the tarball as well): ffmpeg version 3.1.4-1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.0 (Debian 6.2.0-6) 20161010 configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-libtesseract --disable-stripping --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 On Thu, Oct 20, 2016 at 12:32 PM, Martin Ždila wrote: > Hello > > I have two videos where one of them changes it resolution (rotation) > twice. I would like to join them side by side. I've used following command: > > ffmpeg -y -i a.webm -i b.webm -filter_complex " > color=color=black:size=640x240 [base]; > [0:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease > [left]; > [1:v] setpts=PTS-STARTPTS, scale=320x240:force_original_aspect_ratio=decrease > [right]; > [base][left] overlay [tmp1]; > [tmp1][right] overlay=x=320" \ > -c:v libx264 -preset fast -c:a copy -t 30 output.mkv > > The problem is that the result video (output.mkv) ends at second > resolution change and doesn't continue beyond that. It looks like a bug of > ffmpeg. Could somebody please confirm it or suggest a workaround? Attached > attach including debug output can be found at http://filebin.ca/ > 2z6yMpuLdtyP/videotest.tgz. > > Thank you > -- > Martin Ždila > > -- Ing. Martin Ždila tel:+421-908-363-848 mailto:martin at zdila.sk http://www.zdila.sk/ From m.zdila at gmail.com Thu Oct 20 17:34:59 2016 From: m.zdila at gmail.com (=?UTF-8?Q?Martin_=C5=BDdila?=) Date: Thu, 20 Oct 2016 16:34:59 +0200 Subject: [FFmpeg-user] overlay filter corrupts timing of the video Message-ID: Hello When I run following command against file in http://filebin.ca/2z88Rc4fcYbB/videos.tar then output timing is corrupted - result is like 1 FPS. ffmpeg -y -i a.mp4 -filter_complex " nullsrc=size=320x240 [bg]; [0:v] scale=320x240 [main]; [bg][main] overlay=shortest=1" \ -c:v libx264 -preset veryfast a.tmp.mp4 Is there a way to fix it? PS: It is only a reuced complex usecase with no real meaning. Thanks ffmpeg version 3.1.4-1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.0 (Debian 6.2.0-6) 20161010 configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-libtesseract --disable-stripping --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Martin Ždila From ilkertezcan at gmail.com Thu Oct 20 21:07:43 2016 From: ilkertezcan at gmail.com (ilker tezcan) Date: Thu, 20 Oct 2016 21:07:43 +0300 Subject: [FFmpeg-user] when to use 10bit In-Reply-To: References: <6710084186.20161020061244@zoho.com> Message-ID: <600fdf34-803e-70c9-b0d9-22401763ea36@gmail.com> Also, old GPUs doesn't supports playback to videos encoded "10-bit" x264 in GPU (hardware-acceleration) mode. Therefore the CPU usage increases while the 10-bit videos playing. From sven.c.dack at sky.com Thu Oct 20 21:50:04 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 20 Oct 2016 19:50:04 +0100 Subject: [FFmpeg-user] when to use 10bit In-Reply-To: <600fdf34-803e-70c9-b0d9-22401763ea36@gmail.com> References: <6710084186.20161020061244@zoho.com> <600fdf34-803e-70c9-b0d9-22401763ea36@gmail.com> Message-ID: <0062bc81-3543-4b1f-f34e-9d806391929b@sky.com> On 20/10/16 19:07, ilker tezcan wrote: > Also, old GPUs doesn't supports playback to videos encoded "10-bit" x264 in > GPU (hardware-acceleration) mode. Therefore the CPU usage increases while the > 10-bit videos playing. > _______________________________________________ I think the question as to when to use 10bit can be reduced to "Before encoding!". It will take a while before 10bit or 12bit has finally arrived for the consumers. I wouldn't be surprised if the higher bit depth didn't find wide acceptance before manufacturers have finally arrived at 16bit. I don't see how consumers are going to buy new displays with every 2bit step. Marketing may try to sell it, but consumers will have a hard time telling a difference and only at 16bit will manufacturers find the most common ground and can pour it into the consumer market (i.e. still image processing is at 16bit for a while now) and only then may we see 8bit getting pushed back. We will also likely have 1080p and UHD everywhere with frame rates of 60Hz and more before this happens. Just my $0.02 opinion. From lou at lrcd.com Thu Oct 20 22:27:09 2016 From: lou at lrcd.com (Lou) Date: Thu, 20 Oct 2016 11:27:09 -0800 Subject: [FFmpeg-user] Video processing stopped prematurely on resolution change In-Reply-To: References: Message-ID: <20161020112709.543ad970@jagoff.localdomain> On Thu, 20 Oct 2016 14:46:56 +0200 Martin Ždila wrote: > Even simpler example to reproduce the problem using just one file from the > referenced tarball: > > ffmpeg -y -i b.webm -filter_complex " > color=color=black:size=320x240 [bg]; > [0:v] setpts=PTS-STARTPTS, > scale=320x240:force_original_aspect_ratio=decrease [main]; > [bg][main] overlay=x=160-overlay_w/2:shortest=1" \ > -c:v libx264 -preset slow output.mp4 I didn't look into the weirdness of your timestamps, frame rate, and timebase, but you can eliminate the color source and the overlays by using pad and hstack instead. Should be faster and simpler: ffmpeg -i a.webm -i b.webm -filter_complex \ "[0:v]fps=25,scale=320x240:force_original_aspect_ratio=decrease,pad=320:240:(ow-iw)/2:(oh-ih)/2[l]; \ [1:v]fps=25,scale=320x240:force_original_aspect_ratio=decrease,pad=320:240:(ow-iw)/2:(oh-ih)/2[r]; \ [l][r]hstack=inputs=2:shortest=1[v]" \ -map "[v]" output From m.zdila at gmail.com Fri Oct 21 15:23:06 2016 From: m.zdila at gmail.com (=?UTF-8?Q?Martin_=C5=BDdila?=) Date: Fri, 21 Oct 2016 14:23:06 +0200 Subject: [FFmpeg-user] Video processing stopped prematurely on resolution change In-Reply-To: <20161020112709.543ad970@jagoff.localdomain> References: <20161020112709.543ad970@jagoff.localdomain> Message-ID: Thanks Lou! Looks like hstack filter doesn't have a problem with the video changing dimensions :-) Now I have a problem to add logo. I've tried following command but the output is empty: ffmpeg -y -i a.webm -i b.webm -i logo.png -filter_complex \ "[0:v] fps=25, scale=320x240:force_original_aspect_ratio=decrease, pad=320:240:(ow-iw)/2:(oh-ih)/2 [l]; [1:v] fps=25, scale=320x240:force_original_aspect_ratio=decrease, pad=320:240:(ow-iw)/2:(oh-ih)/2 [r]; [l][r] hstack=inputs=2:shortest=1 [v]; [v][2:v] overlay=10:10:shortest=0 [o]" \ -map "[o]" output.mp4 When I remove shortest=0 then ffmpeg never ends. Regarding weird timestamps - I agree, they are weird but I can do nothing with it. It is a raw output from WebRTC stream. On Thu, Oct 20, 2016 at 9:27 PM, Lou wrote: > On Thu, 20 Oct 2016 14:46:56 +0200 > Martin Ždila wrote: > > > Even simpler example to reproduce the problem using just one file from > the > > referenced tarball: > > > > ffmpeg -y -i b.webm -filter_complex " > > color=color=black:size=320x240 [bg]; > > [0:v] setpts=PTS-STARTPTS, > > scale=320x240:force_original_aspect_ratio=decrease [main]; > > [bg][main] overlay=x=160-overlay_w/2:shortest=1" \ > > -c:v libx264 -preset slow output.mp4 > > I didn't look into the weirdness of your timestamps, frame rate, and > timebase, but you can eliminate the color source and the overlays by > using pad and hstack instead. Should be faster and simpler: > > ffmpeg -i a.webm -i b.webm -filter_complex \ > "[0:v]fps=25,scale=320x240:force_original_aspect_ratio= > decrease,pad=320:240:(ow-iw)/2:(oh-ih)/2[l]; \ > [1:v]fps=25,scale=320x240:force_original_aspect_ratio= > decrease,pad=320:240:(ow-iw)/2:(oh-ih)/2[r]; \ > [l][r]hstack=inputs=2:shortest=1[v]" \ > -map "[v]" output > -- Ing. Martin Ždila tel:+421-908-363-848 mailto:martin at zdila.sk http://www.zdila.sk/ From krueger at lesspain.software Fri Oct 21 18:34:26 2016 From: krueger at lesspain.software (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Fri, 21 Oct 2016 17:34:26 +0200 Subject: [FFmpeg-user] Extracting embedded xml metadata im mp4 In-Reply-To: References: <20161019153909.GD6127@sunshine.barsnick.net> Message-ID: On Thu, Oct 20, 2016 at 10:49 AM, Carl Eugen Hoyos wrote: > 2016-10-20 10:41 GMT+02:00 Robert Krüger : > > > So would a patch be accepted that implements reading of this > > additional metadata? > > (Sorry if this was not directed to me...) > > I am not maintainer of mov.c and therefore cannot answer but > the only way to find out is to send a (clean) patch made with > git format-patch to the development mailing list. > > OK, I created ticket 5901 so it is documented and can be referred to. From lou at lrcd.com Sat Oct 22 21:21:32 2016 From: lou at lrcd.com (Lou) Date: Sat, 22 Oct 2016 10:21:32 -0800 Subject: [FFmpeg-user] Video processing stopped prematurely on resolution change In-Reply-To: References: <20161020112709.543ad970@jagoff.localdomain> Message-ID: <1477160492.3150458.764126137.5BA0D5C9@webmail.messagingengine.com> On Fri, Oct 21, 2016, at 04:23 AM, Martin Ždila wrote: > Thanks Lou! Looks like hstack filter doesn't have a problem with the > video > changing dimensions :-) More likely the omission of setpts filter. > Now I have a problem to add logo. I've tried following command but the > output is empty: > > ffmpeg -y -i a.webm -i b.webm -i logo.png -filter_complex \ > "[0:v] fps=25, scale=320x240:force_original_aspect_ratio=decrease, > pad=320:240:(ow-iw)/2:(oh-ih)/2 [l]; > [1:v] fps=25, scale=320x240:force_original_aspect_ratio=decrease, > pad=320:240:(ow-iw)/2:(oh-ih)/2 [r]; > [l][r] hstack=inputs=2:shortest=1 [v]; > [v][2:v] overlay=10:10:shortest=0 [o]" \ > -map "[o]" output.mp4 > > When I remove shortest=0 then ffmpeg never ends. Add "-loop 1" before "-i logo.png" then use "shortest=1" in overlay. Please avoid top-posting on this mailing list. From filntisis.panagiotis at gmail.com Sun Oct 23 04:11:20 2016 From: filntisis.panagiotis at gmail.com (=?UTF-8?B?zqbOuc67zr3PhM6vz4POt8+CIM6gzrHOvc6xzrPOuc+Oz4TOt8+C?=) Date: Sun, 23 Oct 2016 04:11:20 +0300 Subject: [FFmpeg-user] Stream merge with offset presents additional delay Message-ID: I have a .MTS video recorded with a panasonic camera with both a video and audio streams. I want to replace the audio stream with another audio stream taken via a high quality microphone. I have already aligned both audio streams and want to merge the video with the new audio. However if I merge directly: ffmpeg -i 00101.MTS -itsoffset 29.4009 -i good.wav -c:v copy -c:a copy -map 0:0 -map 1:0 output.mkv and check the frames with ffprobe: ffprobe -i output.mkv -show_frames then the first audio frame comes at about 60 ms later at 29.468. If I first do though: ffmpeg -i 00101.mts -c:v copy -c:a copy 00101.mkv and then I merge using the video stream from the 00101.mkv file the first audio frame comes at a correct time. Is this a bug of ffmpeg or is ffmpeg taking account for something i am not aware? If not what is happening ? I am pretty new to encoding and stuff like that. A correct time occurs also if i use the .MTS video directly but instead of copying using libx264 encoding. Some additional information is that the start_time of both streams in the original .MTS file is not zero (while in the 00101.mkv file it is) but at 0.400144 seconds. Moreover in the .MTS video the output from ffprobe shows that the duration of the frame is 0.016678 while in the .mkv the duration is 0.033 (the video fps is 29.97): .MTS [FRAME] media_type=video stream_index=0 key_frame=0 pkt_pts=36013 pkt_pts_time=0.400144 pkt_dts=37515 pkt_dts_time=0.416833 best_effort_timestamp=36013 best_effort_timestamp_time=0.400144 pkt_duration=1501 pkt_duration_time=0.016678 pkt_pos=47232 pkt_size=12268 width=1920 height=1080 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=B coded_picture_number=1 display_picture_number=0 interlaced_frame=1 top_field_first=1 repeat_pict=0 [/FRAME] .mkv [FRAME] media_type=video stream_index=0 key_frame=0 pkt_pts=0 pkt_pts_time=0.000000 pkt_dts=17 pkt_dts_time=0.017000 best_effort_timestamp=0 best_effort_timestamp_time=0.000000 pkt_duration=33 pkt_duration_time=0.033000 pkt_pos=45198 pkt_size=12268 width=1920 height=1080 pix_fmt=yuv420p sample_aspect_ratio=1:1 pict_type=B coded_picture_number=1 display_picture_number=0 interlaced_frame=1 top_field_first=1 repeat_pict=0 [/FRAME] From martin.vignali at gmail.com Sun Oct 23 20:46:33 2016 From: martin.vignali at gmail.com (Martin Vignali) Date: Sun, 23 Oct 2016 19:46:33 +0200 Subject: [FFmpeg-user] Mov : how to set interlaced value of mov muxer Message-ID: Hello I would like to encode some progressive video to interlace quicktime I try to use -top 1 and +ildct, The frames seems to be compressed as interleaved, but the mov muxer, still think it's a progressive frame. The codec name for xdcam is not the right one, and the fiel value is not correct for prores or mov xdcam. Output with prores encoding : ./ffmpeg -i ./TEST_TRAME_MOV.mov -t 0.2 -vcodec prores_ks -flags +ildct -top 1 -acodec copy -f mov ./resProresInterl.mov ffmpeg version N-82089-gb8d7150 Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) configuration: --prefix=../build --disable-yasm libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 53.100 / 57. 53.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './TEST_TRAME_MOV.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2015-03-26T14:35:02.000000Z Duration: 00:00:15.00, start: 0.000000, bitrate: 189651 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709), 1920x1080, 188074 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple encoder : Apple ProRes 422 (HQ) timecode : 00:00:00:00 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple Stream #0:3(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:03.000000Z handler_name : Gestionnaire d?alias Apple timecode : 00:00:00:00 [prores_ks @ 0x7f81aa011200] Autoselected HQ profile to keep best quality. It can be overridden through -profile option. Output #0, mov, to './resProresInterl.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf57.53.100 Stream #0:0(eng): Video: prores (prores_ks) (apch / 0x68637061), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 0.04 fps, 12800 tbn, 25 tbc (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple timecode : 00:00:00:00 encoder : Lavc57.63.103 prores_ks Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, 768 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple Stream mapping: Stream #0:0 -> #0:0 (prores (native) -> prores (prores_ks)) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 5 fps=1.8 q=-0.0 Lsize= 4773kB time=00:00:00.19 bitrate=203633.0kbits/s speed=0.0698x video:4751kB audio:20kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.038749% ----------- XDcam output ./ffmpeg -i ./TEST_TRAME_MOV.mov -pix_fmt yuv422p -vcodec mpeg2video -seq_disp_ext 1 -flags +ildct+ilme -top 1 -dc 10 -qmin 1 -lmin "1*QP2LAMBDA" -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 36408333 -bf 2 -aspect 16:9 -acodec pcm_s24be -f mov ./resXDcam.mov ffmpeg version N-82089-gb8d7150 Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn) configuration: --prefix=../build --disable-yasm libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 53.100 / 57. 53.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './TEST_TRAME_MOV.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2015-03-26T14:35:02.000000Z Duration: 00:00:15.00, start: 0.000000, bitrate: 189651 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le(bt709), 1920x1080, 188074 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple encoder : Apple ProRes 422 (HQ) timecode : 00:00:00:00 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple Stream #0:3(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:03.000000Z handler_name : Gestionnaire d?alias Apple timecode : 00:00:00:00 Output #0, mov, to './resXDcam.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf57.53.100 Stream #0:0(eng): Video: mpeg2video (4:2:2) (xd5c / 0x63356478), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=1-31, 50000 kb/s, 0.04 fps, 12800 tbn, 25 tbc (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple timecode : 00:00:00:00 encoder : Lavc57.63.103 mpeg2video Side data: cpb: bitrate max/min/avg: 50000000/50000000/50000000 buffer size: 36408333 vbv_delay: -1 Stream #0:1(eng): Audio: pcm_s24be (in24 / 0x34326E69), 48000 Hz, mono, s32, 1152 kb/s (default) Metadata: creation_time : 2015-03-26T14:35:02.000000Z handler_name : Gestionnaire d?alias Apple encoder : Lavc57.63.103 pcm_s24be Stream mapping: Stream #0:0 -> #0:0 (prores (native) -> mpeg2video (native)) Stream #0:1 -> #0:1 (pcm_s16le (native) -> pcm_s24be (native)) Press [q] to stop, [?] for help frame= 375 fps=8.1 q=2.6 Lsize= 93594kB time=00:00:15.00 bitrate=51114.7kbits/s speed=0.326x video:91475kB audio:2109kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.010259% ------------------ Instead of writing xd5c data format, ffmpeg write xd5e. Thanks by advance Martin From ceffmpeg at gmail.com Sun Oct 23 21:13:03 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Sun, 23 Oct 2016 20:13:03 +0200 Subject: [FFmpeg-user] Mov : how to set interlaced value of mov muxer In-Reply-To: References: Message-ID: 2016-10-23 19:46 GMT+02:00 Martin Vignali : > Instead of writing xd5c data format, ffmpeg write xd5e. This is ticket #5504. Carl Eugen From shirishag75 at gmail.com Sun Oct 23 21:24:32 2016 From: shirishag75 at gmail.com (=?UTF-8?B?c2hpcmlzaCDgpLbgpL/gpLDgpYDgpLc=?=) Date: Sun, 23 Oct 2016 23:54:32 +0530 Subject: [FFmpeg-user] Is there a better way to get/see stats when downloading videos via youtube-dl Message-ID: Hi all, First of all thank you for developing and maintaining ffmpeg for so many years. esp. with the numerous encoders and decoders that you provide so we could view, record, encode and decode videos. Please CC me as I'm not subscribed to the list. Now I have been thinking of below for quite some-time. While I'm using youtube-dl, it seems internally it uses ffmpeg - [HotStar] xxxxxxxxxxx: Downloading JSON metadata [HotStar] xxxxxxxxxxx: Downloading TABLET JSON metadata [HotStar] xxxxxxxxxxx: Downloading m3u8 information [download] Destination: xxxxxxxx!-xxxxxxxxxxx.mp4 ffmpeg version 3.1.4-1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.0 (Debian 6.2.0-6) 20161010 configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-libtesseract --disable-stripping --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 [h264 @ 0x207f8a0] non-existing SPS 0 referenced in buffering period [h264 @ 0x207f8a0] SPS unavailable in decode_picture_timing [h264 @ 0x207f8a0] non-existing SPS 0 referenced in buffering period [h264 @ 0x207f8a0] SPS unavailable in decode_picture_timing [hls,applehttp @ 0x1bbed60] No longer receiving playlist 0 [hls,applehttp @ 0x1bbed60] Now receiving playlist 0, segment 1 Input #0, hls,applehttp, from 'https://staragvod3-vh.akamaihd.net/i/videos/lifeok/sain/1858/xxxxxxxxxxx_,16,180,400,800,1300,2000,_STAR.mp4.csmil/index_5_av.m3u8?null=0&id=AgB1w2uVaF++Fz25DFgkx8PkKfTYNEvgHtaM0inzxM15ZcVodMGV5yZjUyicFzwkcdYTv%2f+0ZQ9rsA%3d%3d': Duration: 00:41:46.76, start: 0.100667, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 0 Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 65 kb/s [mp4 @ 0x20c4980] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times Output #0, mp4, to 'file:xxxxxxxx-xxxxxxxxxxx.mp4.part': Metadata: encoder : Lavf57.41.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 65 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mpegts @ 0x206f420] DTS 9090 < 545490 out of order [hls,applehttp @ 0x1bbed60] DTS 9090 < 545490 out of order and then multiple instances of statements like these - [mp4 @ 0x20c4980] Non-monotonous DTS in output stream 0:0; previous: 536430, current: 30; changing to 536431. This may result in incorrect timestamps in the output file. [mp4 @ 0x20c4980] Non-monotonous DTS in output stream 0:1; previous: 287744, current: 0; changing to 287745. This may result in incorrect timestamps in the output file. [mp4 @ 0x20c4980] Non-monotonous DTS in output stream 0:1; previous: 287745, current: 1024; changing to 287746. This may result in incorrect timestamps in the output file. With the status at - frame=62819 fps= 11 q=-1.0 Lsize= 633804kB time=00:41:46.75 bitrate=2071.3kbits/s speed=0.428x video:614305kB audio:18835kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.104869% [ffmpeg] Downloaded 649015556 bytes [download] 100% of 618.95MiB Now it is only at the very end that you come to know what is the time of the whole stream (apart from the beginning if you have looked at) and the bitrate is in kbits sa well as speed which doesn't tell what the speed is about. Can all of this be done in some better way ? I'm looking for better representation of the status in terms of size (from kB to mB), bitrate from (kbits from Kbytes) and speed which makes some sense. Is there a way to achieve that ? Also this seems to be interesting - is there a bug-report about this ? [mp4 @ 0x20c4980] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Is this youtube-dl doing or ffmpeg doing ? Here are both the outputs of youtube-dl and ffmpeg to get an idea of the system - [$] ffmpeg -v "verbose" ffmpeg version 3.1.4-1 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.0 (Debian 6.2.0-6) 20161010 configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-libtesseract --disable-stripping --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-frei0r --enable-chromaprint --enable-libopencv --enable-libx264 libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg' ─[$] youtube-dl --verbose [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'--verbose'] [debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.10.21.1 [debug] Python version 2.7.12+ - Linux-4.7.0-1-amd64-x86_64-with-debian-stretch-sid [debug] exe versions: ffmpeg 3.1.4-1, ffprobe 3.1.4-1, rtmpdump 2.4 [debug] Proxy map: {} Usage: youtube-dl [OPTIONS] URL [URL...] youtube-dl: error: You must provide at least one URL. Type youtube-dl --help to see a list of all options. If there are any tickets to follow, please let me know. Hope the above helps. -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8 From barsnick at gmx.net Mon Oct 24 01:45:42 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 24 Oct 2016 00:45:42 +0200 Subject: [FFmpeg-user] Is there a better way to get/see stats when downloading videos via youtube-dl In-Reply-To: References: Message-ID: <20161023224542.GB16158@sunshine.barsnick.net> On Sun, Oct 23, 2016 at 23:54:32 +0530, shirish शिरीष wrote: > While I'm using youtube-dl, it seems internally it uses ffmpeg - For some download types, such as HLS, it does use ffmpeg. For many others not. > Now it is only at the very end that you come to know what is the time > of the whole stream (apart from the beginning if you have looked at) > and the bitrate is in kbits sa well as speed which doesn't tell what > the speed is about. Can all of this be done in some better way ? Yes, ffmpeg doesn't calculate progress in percent, and I can think of many good reasons for this. > Also this seems to be interesting - is there a bug-report about this ? There are quite a few bug reports at yt-dl.org requesting ffmpeg download progress display. I personally can think of a clean way for youtube-dl to display the progress as it does with other downloads: I would use the "-progress" option, set its destination to a Unix File descriptor via "pipe:N", and parse its fields. At the same time, the console output of ffmpeg could be reduced to "-v quite -stats". About the kbits vs. kBytes: youtube-dl can certainly do that internally. > [mp4 @ 0x20c4980] Using AVStream.codec to pass codec parameters to > muxers is deprecated, use AVStream.codecpar instead. > > Is this youtube-dl doing or ffmpeg doing ? This is ffmpeg. There's nothing you can do about it, it will go away in ffmpeg 3.2 I think. Cheers, Moritz From anacelia.sarlo at gmail.com Mon Oct 24 02:55:48 2016 From: anacelia.sarlo at gmail.com (Anacelia Sarlo) Date: Sun, 23 Oct 2016 20:55:48 -0300 Subject: [FFmpeg-user] Buffering a live m3u8 playlist with ffmpeg Message-ID: Hi, I want to re-stream a live m3u8 playlist and I don't have problem with restreaming it with a delay. My question is, can I implement it with ffmpeg ? is there any way to cache the input stream in a temporary buffer/file, for some time (seconds, perhaps minutes), and then replay it ? A feature like network-caching in VLC ? I saw in the ffmpeg documentation an option called cache:url, but I don't know if I could apply it for that. I'll appreciate your suggestions. Regards, Ana From whootandahalf at gmail.com Mon Oct 24 05:04:40 2016 From: whootandahalf at gmail.com (Owl Owl) Date: Sun, 23 Oct 2016 22:04:40 -0400 Subject: [FFmpeg-user] ISO mp4 Major Brand field non-compliant Message-ID: Folks, I've been attempting to stream videos that I have created with ffmpeg to my chromecast using a local webserver. The process is very simple: 1) Encode the video with ffmpeg into an mp4 container 2) Start webserver hosting that file 3) Tell chromecast to play said video It had been failing for quite a while, but the "BigBuckBunny" example was working perfectly. Investigating further, I discovered that there is a Major and Minor brand field in the header of the mp4 and, as it turns out, ffmpeg inserts "isom" as the major brand and "512" as the minor. I discovered the following bug report from about 9 months ago: https://trac.ffmpeg.org/ticket/5178?cversion=0&cnum_hist=15 Sadly, it appears that that report has been ignored. It's unclear to me reading through the comments the reason for "needs_more_info" being the status. If nothing else, the fact that it's ISO non-compliant, and for no good reason that I can tell, should be enough. The MP4Box workaround command mentioned in that bug tracker worked for me to correct ffmpeg's mistake. However, the "-brand" option did not work, nor should either of those options be required to obtain a playable mp4 from ffmpeg. Steps to reproduce the problem: 1) Download BigBuckBunny: http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 2) Setup http server locally (python3 -m http.server) 3) Tell chromecast to play from your local copy (however you wish to do this) 4) Notice that it plays correctly. 5) Simply use ffmpeg to copy BigBuckBunny to a new file (ffmpeg -i BigBuckBunny.mp4 -c copy BigBuckBunny_2.mp4) 6) Attempt to play BigBuckBunny_2.mp4 Expected Results: I would expect BigBuckBunny_2.mp4 to be able to play the same as the original since all we're doing is copying. Actual Results: Chromecast refuses to play this file because the major/minor brands don't make sense to it. Recommendations: Update ffmpeg to be compliant with the ISO Specifications. Best, Mike From ceffmpeg at gmail.com Mon Oct 24 12:03:20 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Mon, 24 Oct 2016 11:03:20 +0200 Subject: [FFmpeg-user] ISO mp4 Major Brand field non-compliant In-Reply-To: References: Message-ID: 2016-10-24 4:04 GMT+02:00 Owl Owl : > Folks, > > I've been attempting to stream videos that I have created with ffmpeg > to my chromecast using a local webserver. The process is very simple: > > 1) Encode the video with ffmpeg into an mp4 container > 2) Start webserver hosting that file > 3) Tell chromecast to play said video Do I understand correctly that I need a physical chromecast device to reproduce? > It had been failing for quite a while Do you mean it worked before? > but the "BigBuckBunny" example was working perfectly. > Investigating further, I discovered that there is a Major and > Minor brand field in the header of the mp4 and, as it turns > out, ffmpeg inserts "isom" as the major brand and "512" as > the minor. > > I discovered the following bug report from about 9 months ago: > https://trac.ffmpeg.org/ticket/5178?cversion=0&cnum_hist=15 > > Sadly, it appears that that report has been ignored. This is not true (and I don't understand how the reason for this claim could be a misunderstanding). On the contrary, I tried my best to explain a misunderstanding about how FFmpeg and MP4Box work to the OP (the same misunderstanding that you may have, see my question below), the OP knew better than me though;-( > It's unclear to me reading through the comments the reason > for "needs_more_info" being the status. Two things were missing: No answer was given to the question which player fails with isom files made with FFmpeg. (You seem to have answered this.) It wasn't verified if changing the major type helps. > If nothing else, the fact that it's ISO non-compliant, and for no > good reason that I can tell, should be enough. > The MP4Box workaround command mentioned in that bug > tracker worked for me to correct ffmpeg's mistake. > However, the "-brand" option did not work Sorry if I misunderstand this (I am not a native speaker): Do you mean you used the -brand option but the output files were (binary) identical no matter what argument you passed? Or do you mean you tried "-brand mp41", chromecast still didn't play the output file but you still believe that we just have to change the major (and minor) type and playback would work? This seems very unlikely to me but you seem to disagree? > nor should either of those options be required to obtain a > playable mp4 from ffmpeg. Many players, including WMP and (some versions of) QT play isom files written with FFmpeg... > Steps to reproduce the problem: > 1) Download BigBuckBunny: > http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4 This is an mp42 file. FFmpeg does not support writing mp42 files. I suspect it is possible but not completely trivial to fix this. Please test the brand option (or use your favorite binary editor) and report back to verify or falsify your analysis. Then ask the chromecast people what it is that they don't like about the FFmpeg file / what their requirements regarding isom are. Carl Eugen From m.zdila at gmail.com Mon Oct 24 15:59:30 2016 From: m.zdila at gmail.com (=?UTF-8?Q?Martin_=C5=BDdila?=) Date: Mon, 24 Oct 2016 14:59:30 +0200 Subject: [FFmpeg-user] Video processing stopped prematurely on resolution change In-Reply-To: <1477160492.3150458.764126137.5BA0D5C9@webmail.messagingengine.com> References: <20161020112709.543ad970@jagoff.localdomain> <1477160492.3150458.764126137.5BA0D5C9@webmail.messagingengine.com> Message-ID: Lou, thank you, it works. On Sat, Oct 22, 2016 at 8:21 PM, Lou wrote: > > Please avoid top-posting on this mailing list. > Sorry for that. -- Martin Ždila From shirishag75 at gmail.com Mon Oct 24 16:25:35 2016 From: shirishag75 at gmail.com (=?UTF-8?B?c2hpcmlzaCDgpLbgpL/gpLDgpYDgpLc=?=) Date: Mon, 24 Oct 2016 18:55:35 +0530 Subject: [FFmpeg-user] No handler matched request to /register_ffmpeg_2 Message-ID: Hi all, Please CC me as I'm not on the list. I tried to register for the trac account (only to follow a few bug-reports) but it seems can't be done. I get an error saying - Error: Not Found No handler matched request to /register_ffmpeg_2 This was while trying to register as a new user. Looking forward to see it fixed. -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8 From jazzman at misalpina.net Mon Oct 24 16:26:17 2016 From: jazzman at misalpina.net (Claudiu Rad) Date: Mon, 24 Oct 2016 16:26:17 +0300 Subject: [FFmpeg-user] Get RFC6381 codecs representation using ffmpeg/ffprobe Message-ID: <6e5e5efa-9de6-57f7-11ca-9c1cec4b392f@misalpina.net> Hello all, So I have whatever video and I need to obtain the RFC6381 representation of its codecs: https://tools.ietf.org/html/rfc6381 For example: "avc1.640028" means: H.264/AVC video, High Profile, Level 40 "mp4a.40.2" means: AAC-LC I assume ffmpeg knows very well about those things but I've run both ffmpeg/ffprobe on the video but can't find any trace of those things in the output. Or am I missing something? -- Claudiu From ceffmpeg at gmail.com Mon Oct 24 16:37:29 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Mon, 24 Oct 2016 15:37:29 +0200 Subject: [FFmpeg-user] No handler matched request to /register_ffmpeg_2 In-Reply-To: References: Message-ID: 2016-10-24 15:25 GMT+02:00 shirish शिरीष : > I tried to register for the trac account (only to follow a > few bug-reports) but it seems can't be done. Works fine here, reading the rest of your email, I believe you have to re-evaluate your answer to the second anti-spam question. Carl Eugen From ceffmpeg at gmail.com Mon Oct 24 16:33:15 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Mon, 24 Oct 2016 15:33:15 +0200 Subject: [FFmpeg-user] Get RFC6381 codecs representation using ffmpeg/ffprobe In-Reply-To: <6e5e5efa-9de6-57f7-11ca-9c1cec4b392f@misalpina.net> References: <6e5e5efa-9de6-57f7-11ca-9c1cec4b392f@misalpina.net> Message-ID: 2016-10-24 15:26 GMT+02:00 Claudiu Rad : > Hello all, > > So I have whatever video and I need to obtain the RFC6381 > representation of its codecs: https://tools.ietf.org/html/rfc6381 > > For example: > "avc1.640028" means: H.264/AVC video, High Profile, Level 40 > "mp4a.40.2" means: AAC-LC (It isn't clear to me what is provided and what you need - left or right?) > I assume ffmpeg knows very well about those things but I've run both > ffmpeg/ffprobe on the video but can't find any trace of those things in > the output. Or am I missing something? Please provide the ffmpeg command line you have tested and the complete, uncut console output. Carl Eugen From martin.vignali at gmail.com Mon Oct 24 17:25:54 2016 From: martin.vignali at gmail.com (Martin Vignali) Date: Mon, 24 Oct 2016 16:25:54 +0200 Subject: [FFmpeg-user] Mov : how to set interlaced value of mov muxer In-Reply-To: References: Message-ID: 2016-10-23 20:13 GMT+02:00 Carl Eugen Hoyos : > 2016-10-23 19:46 GMT+02:00 Martin Vignali : > > > Instead of writing xd5c data format, ffmpeg write xd5e. > > This is ticket #5504. > > Thanks for your answer, I found a way to resolve the issue. need to add after the input file -field_order tt, to correctly set the mov metadata for an interlaced output from a progressive input. Fix trouble with prores and xdcam from progressive source Martin From jazzman at misalpina.net Mon Oct 24 17:27:35 2016 From: jazzman at misalpina.net (Claudiu Rad) Date: Mon, 24 Oct 2016 17:27:35 +0300 Subject: [FFmpeg-user] Get RFC6381 codecs representation using ffmpeg/ffprobe In-Reply-To: References: <6e5e5efa-9de6-57f7-11ca-9c1cec4b392f@misalpina.net> Message-ID: On 10/24/2016 4:33 PM, Carl Eugen Hoyos wrote: > 2016-10-24 15:26 GMT+02:00 Claudiu Rad : >> Hello all, >> >> So I have whatever video and I need to obtain the RFC6381 >> representation of its codecs: https://tools.ietf.org/html/rfc6381 >> >> For example: >> "avc1.640028" means: H.264/AVC video, High Profile, Level 40 >> "mp4a.40.2" means: AAC-LC > (It isn't clear to me what is provided and what you need - left or right?) I can get right by parsing the commands output, but I need left. > >> I assume ffmpeg knows very well about those things but I've run both >> ffmpeg/ffprobe on the video but can't find any trace of those things in >> the output. Or am I missing something? > Please provide the ffmpeg command line you have tested and the > complete, uncut console output. Ok, sorry. Where can I find for example a representation like "avc1.64??29" (High profile means 100=0x64, level 41=0x29) for the video stream in the below outputs? ffmpeg -i bunny1080p.mp4 ffmpeg version N-82092-g89ec4ad-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.1 (Debian 5.4.1-2) 20160904 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libebur128 --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 53.100 / 57. 53.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bunny1080p.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main At least one output file must be specified ffprobe -print_format json -show_format -show_streams -show_programs -show_chapters bunny1080p.mp4 ffprobe version N-82092-g89ec4ad-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2007-2016 the FFmpeg developers built with gcc 5.4.1 (Debian 5.4.1-2) 20160904 configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libebur128 --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 53.100 / 57. 53.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 { Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bunny1080p.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main "programs": [ ], "streams": [ { "index": 0, "codec_name": "h264", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile": "High", "codec_type": "video", "codec_time_base": "1/60", "codec_tag_string": "avc1", "codec_tag": "0x31637661", "width": 1920, "height": 1080, "coded_width": 1920, "coded_height": 1080, "has_b_frames": 2, "sample_aspect_ratio": "1:1", "display_aspect_ratio": "16:9", "pix_fmt": "yuv420p", "level": 41, "chroma_location": "left", "refs": 1, "is_avc": "true", "nal_length_size": "4", "r_frame_rate": "30/1", "avg_frame_rate": "30/1", "time_base": "1/30000", "start_pts": 2000, "start_time": "0.066667", "duration_ts": 19036000, "duration": "634.533333", "bit_rate": "2998715", "bits_per_raw_sample": "8", "nb_frames": "19036", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0 }, "tags": { "creation_time": "2013-12-16T17:44:39.000000Z", "language": "und", "handler_name": "GPAC ISO Video Handler" } }, { "index": 1, "codec_name": "mp3", "codec_long_name": "MP3 (MPEG audio layer 3)", "codec_type": "audio", "codec_time_base": "1/48000", "codec_tag_string": "mp4a", "codec_tag": "0x6134706d", "sample_fmt": "s16p", "sample_rate": "48000", "channels": 2, "channel_layout": "stereo", "bits_per_sample": 0, "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/48000", "start_pts": 0, "start_time": "0.000000", "duration_ts": 30441600, "duration": "634.200000", "bit_rate": "160000", "nb_frames": "26425", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0 }, "tags": { "creation_time": "2013-12-16T17:44:42.000000Z", "language": "und", "handler_name": "GPAC ISO Audio Handler" } }, { "index": 2, "codec_name": "ac3", "codec_long_name": "ATSC A/52A (AC-3)", "codec_type": "audio", "codec_time_base": "1/48000", "codec_tag_string": "ac-3", "codec_tag": "0x332d6361", "sample_fmt": "fltp", "sample_rate": "48000", "channels": 6, "channel_layout": "5.1(side)", "bits_per_sample": 0, "dmix_mode": "-1", "ltrt_cmixlev": "-1.000000", "ltrt_surmixlev": "-1.000000", "loro_cmixlev": "-1.000000", "loro_surmixlev": "-1.000000", "r_frame_rate": "0/0", "avg_frame_rate": "0/0", "time_base": "1/48000", "start_pts": 0, "start_time": "0.000000", "duration_ts": 30438912, "duration": "634.144000", "bit_rate": "320000", "nb_frames": "19817", "disposition": { "default": 1, "dub": 0, "original": 0, "comment": 0, "lyrics": 0, "karaoke": 0, "forced": 0, "hearing_impaired": 0, "visual_impaired": 0, "clean_effects": 0, "attached_pic": 0 }, "tags": { "creation_time": "2013-12-16T17:44:42.000000Z", "language": "und", "handler_name": "GPAC ISO Audio Handler" }, "side_data_list": [ { "side_data_type": "Audio Service Type", "side_data_size": 4 } ] } ], "chapters": [ ], "format": { "filename": "bunny1080p.mp4", "nb_streams": 3, "nb_programs": 0, "format_name": "mov,mp4,m4a,3gp,3g2,mj2", "format_long_name": "QuickTime / MOV", "start_time": "0.000000", "duration": "634.533333", "size": "276134947", "bit_rate": "3481424", "probe_score": 100, "tags": { "major_brand": "isom", "minor_version": "1", "compatible_brands": "isomavc1", "creation_time": "2013-12-16T17:44:39.000000Z", "title": "Big Buck Bunny, Sunflower version", "artist": "Blender Foundation 2008, Janus Bager Kristensen 2013", "comment": "Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net", "genre": "Animation", "composer": "Sacha Goedegebure" } } } -- Claudiu From whootandahalf at gmail.com Mon Oct 24 19:02:14 2016 From: whootandahalf at gmail.com (Owl Owl) Date: Mon, 24 Oct 2016 12:02:14 -0400 Subject: [FFmpeg-user] ISO mp4 Major Brand field non-compliant In-Reply-To: References: Message-ID: Carl, You likely need a Chromecast to reproduce this specific event. It's possible there is an emulator, but I have not attempted that. Playing an mp4 created by ffmpeg on Chromecast has never worked for me. I can confirm that changing the major type alone using the brand command line switch did not fix this problem. Example: "-brand mp41" did not work. While it appeared to successfully set the major brand, it still would not play on Chromecast. I can confirm that when using the command "MP4Box -brand mp41:0 file.mp4", the output was also playable with Chromcast. Meaning, it doesn't matter if we use mp41 or mp42, both are playable. Through further investigation, it does not appear to be entirely the major_brand/minor_brand field. Hex editing those fields to the same values do not produce a playable video. That said, I would like to reference you to the ISO standard: http://l.web.umkc.edu/lizhu/teaching/2016sp.video-communication/ref/mp4.pdf Specifically, take a look at section 4.3.1 (page 12 in that pdf): The type ‘isom’ (ISO Base Media file) is defined in this section of this specification, as identifying files that conform to the first version of ISO Base Media File Format. More specific identifiers can be used to identify precise versions of specifications providing more detail. *This * *brand should not be used as the major brand*; this base file format should be derived into another specification to be used. There is therefore no defined normal file extension, or mime type assigned to this brand, nor definition of the minor version when ‘isom’ is the major brand. I have put in bold the section I believe is relevant to this part of the conversation. Thus, why I believe ffmpeg's implementation of mp4 to be non-compliant with the ISO standard. Aside from that, i ran the following command to view any macro differences between the two: vimdiff <(MP4Box -info BigBuckBunny_2.mp4 2>&1) <(MP4Box -info BigBuckBunny_2.orig.mp4 2>&1) In this, there are three major differences: 1) The isom vs mp41 as mentioned above 2) A note about "Chroma format 0 - Luma bit depth 8 - chroma bit depth 8". Probably not relevant to the playback issue 3) The version that works has a note: "File suitable for progressive download (moov before mdat)". This seems relevant to playback and would probably constitute a format change that would cause chromecast to work or not. Is there a way to tell ffmpeg to use this progressive download type when formatting the mp4 output? Is so, that might also fix this issue. Best, Mike On Oct 24, 2016 05:03, "Carl Eugen Hoyos" wrote: > 2016-10-24 4:04 GMT+02:00 Owl Owl : > > Folks, > > > > I've been attempting to stream videos that I have created with ffmpeg > > to my chromecast using a local webserver. The process is very simple: > > > > 1) Encode the video with ffmpeg into an mp4 container > > 2) Start webserver hosting that file > > > 3) Tell chromecast to play said video > > Do I understand correctly that I need a physical chromecast > device to reproduce? > > > It had been failing for quite a while > > Do you mean it worked before? > > > but the "BigBuckBunny" example was working perfectly. > > Investigating further, I discovered that there is a Major and > > Minor brand field in the header of the mp4 and, as it turns > > out, ffmpeg inserts "isom" as the major brand and "512" as > > the minor. > > > > I discovered the following bug report from about 9 months ago: > > https://trac.ffmpeg.org/ticket/5178?cversion=0&cnum_hist=15 > > > > Sadly, it appears that that report has been ignored. > > This is not true (and I don't understand how the reason for this > claim could be a misunderstanding). > On the contrary, I tried my best to explain a misunderstanding > about how FFmpeg and MP4Box work to the OP (the same > misunderstanding that you may have, see my question below), > the OP knew better than me though;-( > > > It's unclear to me reading through the comments the reason > > for "needs_more_info" being the status. > > Two things were missing: > No answer was given to the question which player fails with > isom files made with FFmpeg. (You seem to have answered > this.) > It wasn't verified if changing the major type helps. > > > If nothing else, the fact that it's ISO non-compliant, and for no > > good reason that I can tell, should be enough. > > > The MP4Box workaround command mentioned in that bug > > tracker worked for me to correct ffmpeg's mistake. > > > However, the "-brand" option did not work > > Sorry if I misunderstand this (I am not a native speaker): > Do you mean you used the -brand option but the output files > were (binary) identical no matter what argument you passed? > > Or do you mean you tried "-brand mp41", chromecast > still didn't play the output file but you still believe that we > just have to change the major (and minor) type and > playback would work? > This seems very unlikely to me but you seem to disagree? > > > nor should either of those options be required to obtain a > > playable mp4 from ffmpeg. > > Many players, including WMP and (some versions of) QT > play isom files written with FFmpeg... > > > Steps to reproduce the problem: > > 1) Download BigBuckBunny: > > http://commondatastorage.googleapis.com/gtv-videos-bucket/ > sample/BigBuckBunny.mp4 > > This is an mp42 file. FFmpeg does not support writing mp42 files. > I suspect it is possible but not completely trivial to fix this. > > Please test the brand option (or use your favorite binary editor) > and report back to verify or falsify your analysis. > > Then ask the chromecast people what it is that they don't like > about the FFmpeg file / what their requirements regarding isom > are. > > Carl Eugen > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". From reuben.m at gmail.com Mon Oct 24 19:52:49 2016 From: reuben.m at gmail.com (Reuben Martin) Date: Mon, 24 Oct 2016 11:52:49 -0500 Subject: [FFmpeg-user] ISO mp4 Major Brand field non-compliant In-Reply-To: References: Message-ID: <3669609.C7Eq4oFA5r@subterfuge> On Monday, October 24, 2016 12:02:14 PM CDT Owl Owl wrote: > 3) The version that works has a note: "File suitable for progressive > download (moov before mdat)". This seems relevant to playback and would > probably constitute a format change that would cause chromecast to work or > not. Is there a way to tell ffmpeg to use this progressive download type > when formatting the mp4 output? Is so, that might also fix this issue. -movflags faststart http://www.ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv From whootandahalf at gmail.com Mon Oct 24 22:45:12 2016 From: whootandahalf at gmail.com (Owl Owl) Date: Mon, 24 Oct 2016 15:45:12 -0400 Subject: [FFmpeg-user] ISO mp4 Major Brand field non-compliant In-Reply-To: <3669609.C7Eq4oFA5r@subterfuge> References: <3669609.C7Eq4oFA5r@subterfuge> Message-ID: Ok, looks like that was the main problem. Sadly, any mp4 that is longer than a few minutes won't play correctly anyway.. Not sure why. Deciding to use mkv instead as it appears to work better. Best, Mike On Mon, Oct 24, 2016 at 12:52 PM, Reuben Martin wrote: > On Monday, October 24, 2016 12:02:14 PM CDT Owl Owl wrote: > > 3) The version that works has a note: "File suitable for progressive > > download (moov before mdat)". This seems relevant to playback and would > > probably constitute a format change that would cause chromecast to work > or > > not. Is there a way to tell ffmpeg to use this progressive download type > > when formatting the mp4 output? Is so, that might also fix this issue. > > -movflags faststart > > http://www.ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From lou at lrcd.com Mon Oct 24 23:09:46 2016 From: lou at lrcd.com (Lou) Date: Mon, 24 Oct 2016 12:09:46 -0800 Subject: [FFmpeg-user] No handler matched request to /register_ffmpeg_2 In-Reply-To: References: Message-ID: <20161024120946.1a5e38cc@jagoff.localdomain> On Mon, 24 Oct 2016 18:55:35 +0530 shirish शिरीष wrote: > Hi all, > Please CC me as I'm not on the list. > > I tried to register for the trac account (only to follow a few > bug-reports) but it seems can't be done. > > I get an error saying - > > Error: Not Found > > No handler matched request to /register_ffmpeg_2 > > This was while trying to register as a new user. > > Looking forward to see it fixed. > I looked at the trac spam monitor records. Your IP address is listed on an IP blacklist (UCEPROTECT) used by one of the anti-spam plugins, and you failed the CAPTCHA twice resulting in three registration attempts being automatically blocked. I know some of the preventative measures are annoying, but you should have seen the amount of attempted spam registrations and traffic, both by bots and worthless subhumans, before we arrived at the current setup (many hundreds per day at least). Unfortunately, on occasion registration attempts by legitimate users become false positives for various reasons, but it appears that you eventually succeeded though (right?). From shirishag75 at gmail.com Mon Oct 24 23:15:33 2016 From: shirishag75 at gmail.com (=?UTF-8?B?c2hpcmlzaCDgpLbgpL/gpLDgpYDgpLc=?=) Date: Tue, 25 Oct 2016 01:45:33 +0530 Subject: [FFmpeg-user] No handler matched request to /register_ffmpeg_2 In-Reply-To: <20161024120946.1a5e38cc@jagoff.localdomain> References: <20161024120946.1a5e38cc@jagoff.localdomain> Message-ID: at bottom :- On 25/10/2016, Lou wrote: > On Mon, 24 Oct 2016 18:55:35 +0530 > shirish शिरीष wrote: > >> Hi all, >> Please CC me as I'm not on the list. >> >> I tried to register for the trac account (only to follow a few >> bug-reports) but it seems can't be done. >> >> I get an error saying - >> >> Error: Not Found >> >> No handler matched request to /register_ffmpeg_2 >> >> This was while trying to register as a new user. >> >> Looking forward to see it fixed. >> > > I looked at the trac spam monitor records. Your IP address is listed on > an IP blacklist (UCEPROTECT) used by one of the anti-spam plugins, and > you failed the CAPTCHA twice resulting in three registration attempts > being automatically blocked. I know some of the preventative measures > are annoying, but you should have seen the amount of attempted spam > registrations and traffic, both by bots and worthless subhumans, before > we arrived at the current setup (many hundreds per day at least). > > Unfortunately, on occasion registration attempts by legitimate users > become false positives for various reasons, but it appears that you > eventually succeeded though (right?). > Yup, did succeed eventually :) -- Regards, Shirish Agarwal शिरीष अग्रवाल My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8 From yn.musen at gmail.com Tue Oct 25 06:58:28 2016 From: yn.musen at gmail.com (Yuki) Date: Mon, 24 Oct 2016 20:58:28 -0700 (PDT) Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? Message-ID: <1477367907993-4678001.post@n4.nabble.com> Hi. I want to output the MPEG-4 streaming to file. When try to output the MP4 stream to a file, "Invalid data found when processing input" will occur. MPEG-2 stream is successfully output. ffmpeg is whether it is possible to output the MPEG-4 stream to the file? Also, please tell me that way if possible. OS is CentOS 7.2 64bit. ffmpeg is git-2016-10-25-c117343. Thank you. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-output-the-MPEG-4-streaming-to-file-tp4678001.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ceffmpeg at gmail.com Tue Oct 25 11:35:50 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Tue, 25 Oct 2016 10:35:50 +0200 Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: <1477367907993-4678001.post@n4.nabble.com> References: <1477367907993-4678001.post@n4.nabble.com> Message-ID: 2016-10-25 5:58 GMT+02:00 Yuki : > I want to output the MPEG-4 streaming to file. > > When try to output the MP4 stream to a file, "Invalid data > found when processing input" will occur. Please (test current FFmpeg git head) provide your command line including the complete, uncut console output. Carl Eugen From krueger at lesspain.software Tue Oct 25 19:57:09 2016 From: krueger at lesspain.software (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 25 Oct 2016 18:57:09 +0200 Subject: [FFmpeg-user] Writing EXIF metadata Message-ID: Hi, is it possible to add EXIF metadata like title or description to a JPG or PNG image using ffmpeg on the command line (or via api but that's probably for the other list)? I did not find anything regarding that in the docs. Thanks in advance, Robert From erik.dobberkau at gmail.com Tue Oct 25 21:25:47 2016 From: erik.dobberkau at gmail.com (Erik Dobberkau) Date: Tue, 25 Oct 2016 20:25:47 +0200 Subject: [FFmpeg-user] Writing EXIF metadata In-Reply-To: References: Message-ID: Am Dienstag, 25. Oktober 2016 schrieb Robert Krüger : > Hi, > > is it possible to add EXIF metadata like title or description to a JPG or > PNG image using ffmpeg on the command line (or via api but that's probably > for the other list)? > Hi Robert, if not, maybe exiftool is a viable alternative... Erik From yn.musen at gmail.com Wed Oct 26 03:54:38 2016 From: yn.musen at gmail.com (Yuki) Date: Tue, 25 Oct 2016 17:54:38 -0700 (PDT) Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: References: <1477367907993-4678001.post@n4.nabble.com> Message-ID: <1477443278508-4678005.post@n4.nabble.com> > Please (test current FFmpeg git head) provide your command > line including the complete, uncut console output. Provide command line. [centos at localhost Desktop]$ ffmpeg udp://@239.203.59.225:50100 ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 55.100 / 57. 55.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [NULL @ 0x36681a0] Unable to find a suitable output format for 'udp://@239.203.59.225:50100' udp://@239.203.59.225:50100: Invalid argument I executed 'ffmpeg -formats', it does not include MPEG-4 Part 2 demuxing supported. This is wrong? File formats: D. = Demuxing supported .E = Muxing supported -- D 3dostr 3DO STR E 3g2 3GP2 (3GPP2 file format) E 3gp 3GP (3GPP file format) D 4xm 4X Technologies E a64 a64 - video for Commodore 64 D aa Audible AA format files D aac raw ADTS AAC (Advanced Audio Coding) DE ac3 raw AC-3 D acm Interplay ACM D act ACT Voice file format D adf Artworx Data Format D adp ADP D ads Sony PS2 ADS E adts ADTS AAC (Advanced Audio Coding) DE adx CRI ADX D aea MD STUDIO audio D afc AFC DE aiff Audio IFF D aix CRI AIX DE alaw PCM A-law D alias_pix Alias/Wavefront PIX image DE amr 3GPP AMR D anm Deluxe Paint Animation D apc CRYO APC D ape Monkey's Audio DE apng Animated Portable Network Graphics D aqtitle AQTitle subtitles DE asf ASF (Advanced / Active Streaming Format) D asf_o ASF (Advanced / Active Streaming Format) E asf_stream ASF (Advanced / Active Streaming Format) DE ass SSA (SubStation Alpha) subtitle DE ast AST (Audio Stream) DE au Sun AU DE avi AVI (Audio Video Interleaved) E avm2 SWF (ShockWave Flash) (AVM2) D avr AVR (Audio Visual Research) D avs AVS D bethsoftvid Bethesda Softworks VID D bfi Brute Force & Ignorance D bfstm BFSTM (Binary Cafe Stream) D bin Binary text D bink Bink DE bit G.729 BIT file format D bmp_pipe piped bmp sequence D bmv Discworld II BMV D boa Black Ops Audio D brender_pix BRender PIX image D brstm BRSTM (Binary Revolution Stream) D c93 Interplay C93 DE caf Apple CAF (Core Audio Format) DE cavsvideo raw Chinese AVS (Audio Video Standard) video D cdg CD Graphics D cdxl Commodore CDXL video D cine Phantom Cine D concat Virtual concatenation script E crc CRC testing E dash DASH Muxer DE data raw data DE daud D-Cinema audio D dcstr Sega DC STR D dds_pipe piped dds sequence D dfa Chronomaster DFA DE dirac raw Dirac DE dnxhd raw DNxHD (SMPTE VC-3) D dpx_pipe piped dpx sequence D dsf DSD Stream File (DSF) D dsicin Delphine Software International CIN D dss Digital Speech Standard (DSS) DE dts raw DTS D dtshd raw DTS-HD DE dv DV (Digital Video) D dv1394 DV1394 A/V grab D dvbsub raw dvbsub D dvbtxt dvbtxt E dvd MPEG-2 PS (DVD VOB) D dxa DXA D ea Electronic Arts Multimedia D ea_cdata Electronic Arts cdata DE eac3 raw E-AC-3 D epaf Ensoniq Paris Audio File D exr_pipe piped exr sequence DE f32be PCM 32-bit floating-point big-endian DE f32le PCM 32-bit floating-point little-endian E f4v F4V Adobe Flash Video DE f64be PCM 64-bit floating-point big-endian DE f64le PCM 64-bit floating-point little-endian DE fbdev Linux framebuffer DE ffm FFM (FFserver live feed) DE ffmetadata FFmpeg metadata in text E fifo FIFO queue pseudo-muxer D film_cpk Sega FILM / CPK DE filmstrip Adobe Filmstrip DE flac raw FLAC D flic FLI/FLC/FLX animation DE flv FLV (Flash Video) E framecrc framecrc testing E framehash Per-frame hash testing E framemd5 Per-frame MD5 testing D frm Megalux Frame D fsb FMOD Sample Bank DE g722 raw G.722 DE g723_1 raw G.723.1 D g729 G.729 raw format demuxer D genh GENeric Header DE gif GIF Animation DE gsm raw GSM DE gxf GXF (General eXchange Format) DE h261 raw H.261 DE h263 raw H.263 DE h264 raw H.264 video E hash Hash testing E hds HDS Muxer DE hevc raw HEVC video E hls Apple HTTP Live Streaming D hls,applehttp Apple HTTP Live Streaming D hnm Cryo HNM v4 DE ico Microsoft Windows ICO D idcin id Cinematic D idf iCE Draw File D iff IFF (Interchange File Format) DE ilbc iLBC storage DE image2 image2 sequence DE image2pipe piped image2 sequence D ingenient raw Ingenient MJPEG D ipmovie Interplay MVE E ipod iPod H.264 MP4 (MPEG-4 Part 14) DE ircam Berkeley/IRCAM/CARL Sound Format E ismv ISMV/ISMA (Smooth Streaming) D iss Funcom ISS D iv8 IndigoVision 8000 video DE ivf On2 IVF D ivr IVR (Internet Video Recording) D j2k_pipe piped j2k sequence DE jacosub JACOsub subtitle format D jpeg_pipe piped jpeg sequence D jpegls_pipe piped jpegls sequence D jv Bitmap Brothers JV E latm LOAS/LATM D lavfi Libavfilter virtual input device D live_flv live RTMP FLV (Flash Video) D lmlm4 raw lmlm4 D loas LOAS AudioSyncStream DE lrc LRC lyrics D lvf LVF D lxf VR native stream (LXF) DE m4v raw MPEG-4 video E matroska Matroska D matroska,webm Matroska / WebM E md5 MD5 testing D mgsts Metal Gear Solid: The Twin Snakes DE microdvd MicroDVD subtitle format DE mjpeg raw MJPEG video E mkvtimestamp_v2 extract pts as timecode v2 format, as defined by mkvtoolnix DE mlp raw MLP D mlv Magic Lantern Video (MLV) D mm American Laser Games MM DE mmf Yamaha SMAF E mov QuickTime / MOV D mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV E mp2 MP2 (MPEG audio layer 2) DE mp3 MP3 (MPEG audio layer 3) E mp4 MP4 (MPEG-4 Part 14) D mpc Musepack D mpc8 Musepack SV8 DE mpeg MPEG-1 Systems / MPEG program stream E mpeg1video raw MPEG-1 video E mpeg2video raw MPEG-2 video DE mpegts MPEG-TS (MPEG-2 Transport Stream) D mpegtsraw raw MPEG-TS (MPEG-2 Transport Stream) D mpegvideo raw MPEG video DE mpjpeg MIME multipart JPEG D mpl2 MPL2 subtitles D mpsub MPlayer subtitles D msf Sony PS3 MSF D msnwctcp MSN TCP Webcam stream D mtaf Konami PS2 MTAF D mtv MTV DE mulaw PCM mu-law D musx Eurocom MUSX D mv Silicon Graphics Movie D mvi Motion Pixels MVI DE mxf MXF (Material eXchange Format) E mxf_d10 MXF (Material eXchange Format) D-10 Mapping E mxf_opatom MXF (Material eXchange Format) Operational Pattern Atom D mxg MxPEG clip D nc NC camera feed D nistsphere NIST SPeech HEader REsources D nsv Nullsoft Streaming Video E null raw null video DE nut NUT D nuv NuppelVideo E oga Ogg Audio DE ogg Ogg E ogv Ogg Video DE oma Sony OpenMG audio E opus Ogg Opus DE oss OSS (Open Sound System) playback D paf Amazing Studio Packed Animation File D pam_pipe piped pam sequence D pbm_pipe piped pbm sequence D pcx_pipe piped pcx sequence D pgm_pipe piped pgm sequence D pgmyuv_pipe piped pgmyuv sequence D pictor_pipe piped pictor sequence D pjs PJS (Phoenix Japanimation Society) subtitles D pmp Playstation Portable PMP D png_pipe piped png sequence D ppm_pipe piped ppm sequence E psp PSP MP4 (MPEG-4 Part 14) D psxstr Sony Playstation STR D pva TechnoTrend PVA D pvf PVF (Portable Voice Format) D qcp QCP D qdraw_pipe piped qdraw sequence D r3d REDCODE R3D DE rawvideo raw video D realtext RealText subtitle format D redspark RedSpark D rl2 RL2 DE rm RealMedia DE roq raw id RoQ D rpl RPL / ARMovie D rsd GameCube RSD DE rso Lego Mindstorms RSO DE rtp RTP output E rtp_mpegts RTP/mpegts output format DE rtsp RTSP output DE s16be PCM signed 16-bit big-endian DE s16le PCM signed 16-bit little-endian DE s24be PCM signed 24-bit big-endian DE s24le PCM signed 24-bit little-endian DE s32be PCM signed 32-bit big-endian DE s32le PCM signed 32-bit little-endian DE s8 PCM signed 8-bit D sami SAMI subtitle format DE sap SAP output D sbg SBaGen binaural beats script D sdp SDP D sdr2 SDR2 E segment segment D sgi_pipe piped sgi sequence D shn raw Shorten D siff Beam Software SIFF E singlejpeg JPEG single image D sln Asterisk raw pcm DE smjpeg Loki SDL MJPEG D smk Smacker E smoothstreaming Smooth Streaming Muxer D smush LucasArts Smush D sol Sierra SOL DE sox SoX native DE spdif IEC 61937 (used on S/PDIF - IEC958) E spx Ogg Speex DE srt SubRip subtitle D stl Spruce subtitle format E stream_segment,ssegment streaming segment muxer D subviewer SubViewer subtitle format D subviewer1 SubViewer v1 subtitle format D sunrast_pipe piped sunrast sequence D sup raw HDMV Presentation Graphic Stream subtitles D svag Konami PS2 SVAG E svcd MPEG-2 PS (SVCD) DE swf SWF (ShockWave Flash) D tak raw TAK D tedcaptions TED Talks captions E tee Multiple muxer tee D thp THP D tiertexseq Tiertex Limited SEQ D tiff_pipe piped tiff sequence D tmv 8088flex TMV DE truehd raw TrueHD DE tta TTA (True Audio) D tty Tele-typewriter D txd Renderware TeXture Dictionary DE u16be PCM unsigned 16-bit big-endian DE u16le PCM unsigned 16-bit little-endian DE u24be PCM unsigned 24-bit big-endian DE u24le PCM unsigned 24-bit little-endian DE u32be PCM unsigned 32-bit big-endian DE u32le PCM unsigned 32-bit little-endian DE u8 PCM unsigned 8-bit E uncodedframecrc uncoded framecrc testing D v210 Uncompressed 4:2:2 10-bit D v210x Uncompressed 4:2:2 10-bit E v4l2 Video4Linux2 output device D vag Sony PS2 VAG DE vc1 raw VC-1 video DE vc1test VC-1 test bitstream E vcd MPEG-1 Systems / MPEG program stream (VCD) D video4linux2,v4l2 Video4Linux2 device grab D vivo Vivo D vmd Sierra VMD E vob MPEG-2 PS (VOB) D vobsub VobSub subtitle format DE voc Creative Voice D vpk Sony PS2 VPK D vplayer VPlayer subtitles D vqf Nippon Telegraph and Telephone Corporation (NTT) TwinVQ DE w64 Sony Wave64 DE wav WAV / WAVE (Waveform Audio) D wc3movie Wing Commander III movie E webm WebM E webm_chunk WebM Chunk Muxer DE webm_dash_manifest WebM DASH Manifest E webp WebP D webp_pipe piped webp sequence DE webvtt WebVTT subtitle D wsaud Westwood Studios audio D wsd Wideband Single-bit Data (WSD) D wsvqa Westwood Studios VQA DE wtv Windows Television (WTV) DE wv raw WavPack D wve Psion 3 audio D xa Maxis XA D xbin eXtended BINary text (XBIN) D xmv Microsoft XMV D xvag Sony PS3 XVAG D xwma Microsoft xWMA D yop Psygnosis YOP DE yuv4mpegpipe YUV4MPEG pipe Yuki -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-output-the-MPEG-4-streaming-to-file-tp4678001p4678005.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From yn.musen at gmail.com Wed Oct 26 03:51:45 2016 From: yn.musen at gmail.com (Yuki Nakamura) Date: Wed, 26 Oct 2016 09:51:45 +0900 Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: References: <1477367907993-4678001.post@n4.nabble.com> Message-ID: 2016-10-25 17:35 GMT+09:00 Carl Eugen Hoyos : > 2016-10-25 5:58 GMT+02:00 Yuki : > > > I want to output the MPEG-4 streaming to file. > > > > When try to output the MP4 stream to a file, "Invalid data > > found when processing input" will occur. > > Please (test current FFmpeg git head) provide your command > line including the complete, uncut console output. > > Provide command line. [centos at localhost Desktop]$ ffmpeg udp://@239.203.59.225:50100 ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 55.100 / 57. 55.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [NULL @ 0x36681a0] Unable to find a suitable output format for 'udp://@ 239.203.59.225:50100' udp://@239.203.59.225:50100: Invalid argument I executed 'ffmpeg -formats', it does not include MPEG-4 Part 2 demuxing supported. This is wrong? File formats: D. = Demuxing supported .E = Muxing supported -- D 3dostr 3DO STR E 3g2 3GP2 (3GPP2 file format) E 3gp 3GP (3GPP file format) D 4xm 4X Technologies E a64 a64 - video for Commodore 64 D aa Audible AA format files D aac raw ADTS AAC (Advanced Audio Coding) DE ac3 raw AC-3 D acm Interplay ACM D act ACT Voice file format D adf Artworx Data Format D adp ADP D ads Sony PS2 ADS E adts ADTS AAC (Advanced Audio Coding) DE adx CRI ADX D aea MD STUDIO audio D afc AFC DE aiff Audio IFF D aix CRI AIX DE alaw PCM A-law D alias_pix Alias/Wavefront PIX image DE amr 3GPP AMR D anm Deluxe Paint Animation D apc CRYO APC D ape Monkey's Audio DE apng Animated Portable Network Graphics D aqtitle AQTitle subtitles DE asf ASF (Advanced / Active Streaming Format) D asf_o ASF (Advanced / Active Streaming Format) E asf_stream ASF (Advanced / Active Streaming Format) DE ass SSA (SubStation Alpha) subtitle DE ast AST (Audio Stream) DE au Sun AU DE avi AVI (Audio Video Interleaved) E avm2 SWF (ShockWave Flash) (AVM2) D avr AVR (Audio Visual Research) D avs AVS D bethsoftvid Bethesda Softworks VID D bfi Brute Force & Ignorance D bfstm BFSTM (Binary Cafe Stream) D bin Binary text D bink Bink DE bit G.729 BIT file format D bmp_pipe piped bmp sequence D bmv Discworld II BMV D boa Black Ops Audio D brender_pix BRender PIX image D brstm BRSTM (Binary Revolution Stream) D c93 Interplay C93 DE caf Apple CAF (Core Audio Format) DE cavsvideo raw Chinese AVS (Audio Video Standard) video D cdg CD Graphics D cdxl Commodore CDXL video D cine Phantom Cine D concat Virtual concatenation script E crc CRC testing E dash DASH Muxer DE data raw data DE daud D-Cinema audio D dcstr Sega DC STR D dds_pipe piped dds sequence D dfa Chronomaster DFA DE dirac raw Dirac DE dnxhd raw DNxHD (SMPTE VC-3) D dpx_pipe piped dpx sequence D dsf DSD Stream File (DSF) D dsicin Delphine Software International CIN D dss Digital Speech Standard (DSS) DE dts raw DTS D dtshd raw DTS-HD DE dv DV (Digital Video) D dv1394 DV1394 A/V grab D dvbsub raw dvbsub D dvbtxt dvbtxt E dvd MPEG-2 PS (DVD VOB) D dxa DXA D ea Electronic Arts Multimedia D ea_cdata Electronic Arts cdata DE eac3 raw E-AC-3 D epaf Ensoniq Paris Audio File D exr_pipe piped exr sequence DE f32be PCM 32-bit floating-point big-endian DE f32le PCM 32-bit floating-point little-endian E f4v F4V Adobe Flash Video DE f64be PCM 64-bit floating-point big-endian DE f64le PCM 64-bit floating-point little-endian DE fbdev Linux framebuffer DE ffm FFM (FFserver live feed) DE ffmetadata FFmpeg metadata in text E fifo FIFO queue pseudo-muxer D film_cpk Sega FILM / CPK DE filmstrip Adobe Filmstrip DE flac raw FLAC D flic FLI/FLC/FLX animation DE flv FLV (Flash Video) E framecrc framecrc testing E framehash Per-frame hash testing E framemd5 Per-frame MD5 testing D frm Megalux Frame D fsb FMOD Sample Bank DE g722 raw G.722 DE g723_1 raw G.723.1 D g729 G.729 raw format demuxer D genh GENeric Header DE gif GIF Animation DE gsm raw GSM DE gxf GXF (General eXchange Format) DE h261 raw H.261 DE h263 raw H.263 DE h264 raw H.264 video E hash Hash testing E hds HDS Muxer DE hevc raw HEVC video E hls Apple HTTP Live Streaming D hls,applehttp Apple HTTP Live Streaming D hnm Cryo HNM v4 DE ico Microsoft Windows ICO D idcin id Cinematic D idf iCE Draw File D iff IFF (Interchange File Format) DE ilbc iLBC storage DE image2 image2 sequence DE image2pipe piped image2 sequence D ingenient raw Ingenient MJPEG D ipmovie Interplay MVE E ipod iPod H.264 MP4 (MPEG-4 Part 14) DE ircam Berkeley/IRCAM/CARL Sound Format E ismv ISMV/ISMA (Smooth Streaming) D iss Funcom ISS D iv8 IndigoVision 8000 video DE ivf On2 IVF D ivr IVR (Internet Video Recording) D j2k_pipe piped j2k sequence DE jacosub JACOsub subtitle format D jpeg_pipe piped jpeg sequence D jpegls_pipe piped jpegls sequence D jv Bitmap Brothers JV E latm LOAS/LATM D lavfi Libavfilter virtual input device D live_flv live RTMP FLV (Flash Video) D lmlm4 raw lmlm4 D loas LOAS AudioSyncStream DE lrc LRC lyrics D lvf LVF D lxf VR native stream (LXF) DE m4v raw MPEG-4 video E matroska Matroska D matroska,webm Matroska / WebM E md5 MD5 testing D mgsts Metal Gear Solid: The Twin Snakes DE microdvd MicroDVD subtitle format DE mjpeg raw MJPEG video E mkvtimestamp_v2 extract pts as timecode v2 format, as defined by mkvtoolnix DE mlp raw MLP D mlv Magic Lantern Video (MLV) D mm American Laser Games MM DE mmf Yamaha SMAF E mov QuickTime / MOV D mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV E mp2 MP2 (MPEG audio layer 2) DE mp3 MP3 (MPEG audio layer 3) E mp4 MP4 (MPEG-4 Part 14) D mpc Musepack D mpc8 Musepack SV8 DE mpeg MPEG-1 Systems / MPEG program stream E mpeg1video raw MPEG-1 video E mpeg2video raw MPEG-2 video DE mpegts MPEG-TS (MPEG-2 Transport Stream) D mpegtsraw raw MPEG-TS (MPEG-2 Transport Stream) D mpegvideo raw MPEG video DE mpjpeg MIME multipart JPEG D mpl2 MPL2 subtitles D mpsub MPlayer subtitles D msf Sony PS3 MSF D msnwctcp MSN TCP Webcam stream D mtaf Konami PS2 MTAF D mtv MTV DE mulaw PCM mu-law D musx Eurocom MUSX D mv Silicon Graphics Movie D mvi Motion Pixels MVI DE mxf MXF (Material eXchange Format) E mxf_d10 MXF (Material eXchange Format) D-10 Mapping E mxf_opatom MXF (Material eXchange Format) Operational Pattern Atom D mxg MxPEG clip D nc NC camera feed D nistsphere NIST SPeech HEader REsources D nsv Nullsoft Streaming Video E null raw null video DE nut NUT D nuv NuppelVideo E oga Ogg Audio DE ogg Ogg E ogv Ogg Video DE oma Sony OpenMG audio E opus Ogg Opus DE oss OSS (Open Sound System) playback D paf Amazing Studio Packed Animation File D pam_pipe piped pam sequence D pbm_pipe piped pbm sequence D pcx_pipe piped pcx sequence D pgm_pipe piped pgm sequence D pgmyuv_pipe piped pgmyuv sequence D pictor_pipe piped pictor sequence D pjs PJS (Phoenix Japanimation Society) subtitles D pmp Playstation Portable PMP D png_pipe piped png sequence D ppm_pipe piped ppm sequence E psp PSP MP4 (MPEG-4 Part 14) D psxstr Sony Playstation STR D pva TechnoTrend PVA D pvf PVF (Portable Voice Format) D qcp QCP D qdraw_pipe piped qdraw sequence D r3d REDCODE R3D DE rawvideo raw video D realtext RealText subtitle format D redspark RedSpark D rl2 RL2 DE rm RealMedia DE roq raw id RoQ D rpl RPL / ARMovie D rsd GameCube RSD DE rso Lego Mindstorms RSO DE rtp RTP output E rtp_mpegts RTP/mpegts output format DE rtsp RTSP output DE s16be PCM signed 16-bit big-endian DE s16le PCM signed 16-bit little-endian DE s24be PCM signed 24-bit big-endian DE s24le PCM signed 24-bit little-endian DE s32be PCM signed 32-bit big-endian DE s32le PCM signed 32-bit little-endian DE s8 PCM signed 8-bit D sami SAMI subtitle format DE sap SAP output D sbg SBaGen binaural beats script D sdp SDP D sdr2 SDR2 E segment segment D sgi_pipe piped sgi sequence D shn raw Shorten D siff Beam Software SIFF E singlejpeg JPEG single image D sln Asterisk raw pcm DE smjpeg Loki SDL MJPEG D smk Smacker E smoothstreaming Smooth Streaming Muxer D smush LucasArts Smush D sol Sierra SOL DE sox SoX native DE spdif IEC 61937 (used on S/PDIF - IEC958) E spx Ogg Speex DE srt SubRip subtitle D stl Spruce subtitle format E stream_segment,ssegment streaming segment muxer D subviewer SubViewer subtitle format D subviewer1 SubViewer v1 subtitle format D sunrast_pipe piped sunrast sequence D sup raw HDMV Presentation Graphic Stream subtitles D svag Konami PS2 SVAG E svcd MPEG-2 PS (SVCD) DE swf SWF (ShockWave Flash) D tak raw TAK D tedcaptions TED Talks captions E tee Multiple muxer tee D thp THP D tiertexseq Tiertex Limited SEQ D tiff_pipe piped tiff sequence D tmv 8088flex TMV DE truehd raw TrueHD DE tta TTA (True Audio) D tty Tele-typewriter D txd Renderware TeXture Dictionary DE u16be PCM unsigned 16-bit big-endian DE u16le PCM unsigned 16-bit little-endian DE u24be PCM unsigned 24-bit big-endian DE u24le PCM unsigned 24-bit little-endian DE u32be PCM unsigned 32-bit big-endian DE u32le PCM unsigned 32-bit little-endian DE u8 PCM unsigned 8-bit E uncodedframecrc uncoded framecrc testing D v210 Uncompressed 4:2:2 10-bit D v210x Uncompressed 4:2:2 10-bit E v4l2 Video4Linux2 output device D vag Sony PS2 VAG DE vc1 raw VC-1 video DE vc1test VC-1 test bitstream E vcd MPEG-1 Systems / MPEG program stream (VCD) D video4linux2,v4l2 Video4Linux2 device grab D vivo Vivo D vmd Sierra VMD E vob MPEG-2 PS (VOB) D vobsub VobSub subtitle format DE voc Creative Voice D vpk Sony PS2 VPK D vplayer VPlayer subtitles D vqf Nippon Telegraph and Telephone Corporation (NTT) TwinVQ DE w64 Sony Wave64 DE wav WAV / WAVE (Waveform Audio) D wc3movie Wing Commander III movie E webm WebM E webm_chunk WebM Chunk Muxer DE webm_dash_manifest WebM DASH Manifest E webp WebP D webp_pipe piped webp sequence DE webvtt WebVTT subtitle D wsaud Westwood Studios audio D wsd Wideband Single-bit Data (WSD) D wsvqa Westwood Studios VQA DE wtv Windows Television (WTV) DE wv raw WavPack D wve Psion 3 audio D xa Maxis XA D xbin eXtended BINary text (XBIN) D xmv Microsoft XMV D xvag Sony PS3 XVAG D xwma Microsoft xWMA D yop Psygnosis YOP DE yuv4mpegpipe YUV4MPEG pipe Yuki From sven.c.dack at sky.com Wed Oct 26 05:36:51 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Wed, 26 Oct 2016 03:36:51 +0100 Subject: [FFmpeg-user] [FFmpeg-devel] Vibrating and shocking of video's frame In-Reply-To: <026301d22f28$917c1070$b4743150$@sina.com> References: <026301d22f28$917c1070$b4743150$@sina.com> Message-ID: On 26/10/16 02:30, chengmo wrote: > Hi All: > > Do someone encountered this situation like the attach showed ? > > If so ,could you give some tips about it ? > > What's the problem could it be ? A couple of things... "libav" and "ffmpeg" are not the same project. So please don't send e-mails to "libav-user at ffmpeg.org" but to "ffmpeg-user at ffmpeg.org". Further please note "ffmpeg-devel at ffmpeg.org" is for the development of ffmpeg only and you should communicate with ffmpeg-user at ffmpeg.org for all user and usage related questions. Now you say you've attached something. Well, your e-mail didn't come with anything. Could you please send a new e-mail to "ffmpeg-user at ffmpeg.org" and with a complete command line of what you were trying to do, possibly some samples and a clean description of what you are trying to do? And please try to avoid asking what has already been answered through the documentation, the examples and the various guides at https://ffmpeg.org/documentation.html Thank you. From reuben.m at gmail.com Wed Oct 26 06:42:38 2016 From: reuben.m at gmail.com (Reuben Martin) Date: Tue, 25 Oct 2016 22:42:38 -0500 Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: References: <1477367907993-4678001.post@n4.nabble.com> Message-ID: <3494248.1lxg5Tqazv@subterfuge> On Wednesday, October 26, 2016 9:51:45 AM CDT Yuki Nakamura wrote: > 2016-10-25 17:35 GMT+09:00 Carl Eugen Hoyos : > > 2016-10-25 5:58 GMT+02:00 Yuki : > > > I want to output the MPEG-4 streaming to file. > > > > > > When try to output the MP4 stream to a file, "Invalid data > > > found when processing input" will occur. > > > > Please (test current FFmpeg git head) provide your command > > line including the complete, uncut console output. > > Provide command line. > > [centos at localhost Desktop]$ ffmpeg udp://@239.203.59.225:50100 That’s hardly the same command, as it does not even output the same error. At least give some people the satisfaction that you’ve at least tried to search. Cargo-cult copy-and-paste shows more effort than this. ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy -f mpegts stream_dump.ts Also, MPEG4 Part-2 is a codec, not a format. ffmpeg -codecs | grep 'MPEG-4 part 2' -Reuben From anatol2002 at gmail.com Wed Oct 26 07:50:54 2016 From: anatol2002 at gmail.com (Anatol) Date: Wed, 26 Oct 2016 07:50:54 +0300 Subject: [FFmpeg-user] Set keyframe interval raw video In-Reply-To: References: Message-ID: On Thu, Oct 20, 2016 at 12:13 PM, Carl Eugen Hoyos wrote: > 2016-10-20 10:38 GMT+02:00 Gabor Alsecz : > > Dear All, > > > > Would like to know what is the best way/parameter to force key frame > > interval. I would need 2*FPS > > I'm feeding FFmpeg's stdout with raw images at fps 25. > > > So far i have the following command: > > > ffmpeg -y -loglevel info -f lavfi -i aevalsrc=0 -f rawvideo -pix_fmt > > rgb24 -video_size 1280x720 -framerate=25 -i "-" -f flv -acodec aac > -vcodec > > I don't think this is supposed to work. > > > h264_nvenc -profile:v high -vf "fps=25,format=yuv420p" -minrate 3000k > > Careful with the fps filter: If input fps == output fps, don't use it to be > on the safe side. > > > -maxrate 3000k -bufsize 6000k output.mp4 > > -g should set the keyframe interval. > > Carl Eugen > Carl, Why we should be careful with the fps filter? What's wrong with it? Anatol From lou at lrcd.com Wed Oct 26 08:21:39 2016 From: lou at lrcd.com (Lou) Date: Tue, 25 Oct 2016 21:21:39 -0800 Subject: [FFmpeg-user] [FFmpeg-devel] Vibrating and shocking of video's frame In-Reply-To: References: <026301d22f28$917c1070$b4743150$@sina.com> Message-ID: <1477459299.4173766.767540585.1739AC06@webmail.messagingengine.com> On Tue, Oct 25, 2016, at 06:36 PM, Sven C. Dack wrote: > A couple of things... "libav" and "ffmpeg" are not the same project. So > please don't send e-mails to "libav-user at ffmpeg.org" but to > "ffmpeg-user at ffmpeg.org". Further please note "ffmpeg-devel at ffmpeg.org" > is for the development of ffmpeg only and you should communicate with > ffmpeg-user at ffmpeg.org for all user and usage related questions. Your reply is confusing. I will attempt to clarify: libav-user at ffmpeg.org is the mailing list for user questions involving the FFmpeg libraries. ffmpeg-user at ffmpeg.org is the mailing list for user questions involving the FFmpeg command-line interface tools. From yn.musen at gmail.com Wed Oct 26 09:37:58 2016 From: yn.musen at gmail.com (Yuki) Date: Tue, 25 Oct 2016 23:37:58 -0700 (PDT) Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: <3494248.1lxg5Tqazv@subterfuge> References: <1477367907993-4678001.post@n4.nabble.com> <3494248.1lxg5Tqazv@subterfuge> Message-ID: <1477463878865-4678011.post@n4.nabble.com> Reuben Martin wrote > That’s hardly the same command, as it does not even output the same error. > > At least give some people the satisfaction that you’ve at least tried to > search. Cargo-cult copy-and-paste shows more effort than this. > > ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy -f mpegts > stream_dump.ts > > Also, MPEG4 Part-2 is a codec, not a format. > > ffmpeg -codecs | grep 'MPEG-4 part 2' Thank you for your advice, and I'm sorry not enough question. There is a multicast network and in the network, flowing data of H.264 MPEG-2 and Mpeg4 Part2. I send igmp join and captured those packets. and restreaming in test network using Colasoft Packet Builder. When I use command "ffmpeg -i udp://@{IpAddr}:{Port} -c:v copy -c:a copy -f mpegts stream_dump.ts", i got the following results. - H.264...OK. - MPEG-2...OK. - MPEG-4...NG. "Invalid data found when processing input" will occur. I've uploaded a packet file of raw datas. if you will assist me, please use this file. - H.264...https://drive.google.com/file/d/0Bx3xeHwXuVdlbXA4ZDlSYWJsb0U/view?usp=sharing - MPEG-2...https://drive.google.com/file/d/0Bx3xeHwXuVdlMTJJQXhzWUVVR3M/view?usp=sharing - MPEG-4...https://drive.google.com/file/d/0Bx3xeHwXuVdlQi02Um1DbXc1TXM/view?usp=sharing Yuki -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-output-the-MPEG-4-streaming-to-file-tp4678001p4678011.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cleyfaye at gmail.com Wed Oct 26 10:12:14 2016 From: cleyfaye at gmail.com (Cley Faye) Date: Wed, 26 Oct 2016 09:12:14 +0200 Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: <1477463878865-4678011.post@n4.nabble.com> References: <1477367907993-4678001.post@n4.nabble.com> <3494248.1lxg5Tqazv@subterfuge> <1477463878865-4678011.post@n4.nabble.com> Message-ID: > When I use command "ffmpeg -i udp://@{IpAddr}:{Port} -c:v copy -c:a copy -f > mpegts stream_dump.ts", i got the following results. > - H.264...OK. > - MPEG-2...OK. > - MPEG-4...NG. "Invalid data found when processing input" will occur. What is required to better understand the issue is the full command and the full output of the ffmpeg process, from the version header to the end. It will most likely contain the required informations. From yn.musen at gmail.com Wed Oct 26 10:28:11 2016 From: yn.musen at gmail.com (Yuki) Date: Wed, 26 Oct 2016 00:28:11 -0700 (PDT) Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: References: <1477367907993-4678001.post@n4.nabble.com> <3494248.1lxg5Tqazv@subterfuge> <1477463878865-4678011.post@n4.nabble.com> Message-ID: <1477466891788-4678013.post@n4.nabble.com> Cley Faye wrote > What is required to better understand the issue is the full command and > the > full output of the ffmpeg process, from the version header to the end. It > will most likely contain the required informations. Thank you for your reply. Provide results. H.264: [centos at localhost ~]$ ffmpeg -i udp://@239.203.64.134:29000 -c:v copy -c:a copy -f mpegts h264_dump.ts ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 55.100 / 57. 55.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] SPS unavailable in decode_picture_timing [h264 @ 0x44842a0] non-existing PPS 0 referenced [h264 @ 0x44842a0] decode_slice_header error [h264 @ 0x44842a0] no frame! [h264 @ 0x44842a0] concealing 438 DC, 438 AC, 438 MV errors in I frame Input #0, mpegts, from 'udp://@239.203.64.134:29000': Duration: N/A, start: 9141.978289, bitrate: N/A Program 29952 Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Output #0, mpegts, to 'h264_dump.ts': Metadata: encoder : Lavf57.55.100 Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 648 fps= 39 q=-1.0 Lsize= 16635kB time=00:00:21.88 bitrate=6225.8kbits/s speed=1.32x video:15365kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.263613% OutputFile...https://drive.google.com/file/d/0Bx3xeHwXuVdlbzMzcTQxNE9IRFE/view?usp=sharing MPEG-2: [centos at localhost ~]$ ffmpeg -i udp://@239.203.64.133:29000 -c:v copy -c:a copy -f mpegts mpeg2_dump.ts ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 55.100 / 57. 55.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [mpeg2video @ 0x31baf80] Invalid frame dimensions 0x0. Last message repeated 4 times Input #0, mpeg, from 'udp://@239.203.64.133:29000': Duration: N/A, start: 94619.412067, bitrate: 5423 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 5167 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s Output #0, mpegts, to 'mpeg2_dump.ts': Metadata: encoder : Lavf57.55.100 Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], q=2-31, 5167 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc Stream #0:1: Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 629 fps= 38 q=-1.0 Lsize= 14989kB time=00:00:21.84 bitrate=5621.7kbits/s speed=1.32x video:13189kB audio:661kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.228645% OutputFile...https://drive.google.com/file/d/0Bx3xeHwXuVdlVHpEYkpuYmxLNHM/view?usp=sharing MPEG-4: [centos at localhost ~]$ ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy -f mpegts mpeg4_dump.ts ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4) configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass libavutil 55. 33.100 / 55. 33.100 libavcodec 57. 63.103 / 57. 63.103 libavformat 57. 55.100 / 57. 55.100 libavdevice 57. 0.103 / 57. 0.103 libavfilter 6. 64.100 / 6. 64.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 udp://@239.203.59.225:50100: Invalid data found when processing input -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-output-the-MPEG-4-streaming-to-file-tp4678001p4678013.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From krueger at lesspain.software Wed Oct 26 11:09:41 2016 From: krueger at lesspain.software (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 26 Oct 2016 10:09:41 +0200 Subject: [FFmpeg-user] Writing EXIF metadata In-Reply-To: References: Message-ID: Hi Erik, thanks for the hint. I know Exiftool but in this case I need the capability within ffmpeg. At least that would make it a lot easier. Robert On Tue, Oct 25, 2016 at 8:25 PM, Erik Dobberkau wrote: > Am Dienstag, 25. Oktober 2016 schrieb Robert Krüger : > > > Hi, > > > > is it possible to add EXIF metadata like title or description to a JPG or > > PNG image using ffmpeg on the command line (or via api but that's > probably > > for the other list)? > > > > Hi Robert, > > if not, maybe exiftool is a viable alternative... > > Erik > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". -- Robert Krüger Managing Partner Lesspain GmbH & Co. KG http://lesspain.software http://kyno.software From ceffmpeg at gmail.com Wed Oct 26 11:40:55 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 26 Oct 2016 10:40:55 +0200 Subject: [FFmpeg-user] Set keyframe interval raw video In-Reply-To: References: Message-ID: 2016-10-26 6:50 GMT+02:00 Anatol : > On Thu, Oct 20, 2016 at 12:13 PM, Carl Eugen Hoyos > wrote: >> Careful with the fps filter: If input fps == output fps, don't >> use it to be on the safe side. > Why we should be careful with the fps filter? > What's wrong with it? Please fix your quoting! (Really) The fps filter is greedy, it happens that it drops frames when it is supposed to increase the frame rate. Carl Eugen From ceffmpeg at gmail.com Wed Oct 26 11:38:03 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 26 Oct 2016 10:38:03 +0200 Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: <1477463878865-4678011.post@n4.nabble.com> References: <1477367907993-4678001.post@n4.nabble.com> <3494248.1lxg5Tqazv@subterfuge> <1477463878865-4678011.post@n4.nabble.com> Message-ID: 2016-10-26 8:37 GMT+02:00 Yuki : > Reuben Martin wrote >> ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy >> -f mpegts stream_dump.ts If the input is mpegts, this is most likely not a good idea, there are many possibilities to dump the raw stream like tools/aviocat and mplayer -dumpstream. > MPEG-4...https://drive.google.com/file/d/0Bx3xeHwXuVdlQi02Um1DbXc1TXM/view?usp=sharing If you can provide an absolutely fool-proof, 100% clear explanation on what I should do with the pcap file, I will happily test. Carl Eugen From dariusz.wapinski at sgtsa.pl Wed Oct 26 14:49:42 2016 From: dariusz.wapinski at sgtsa.pl (dariusz w) Date: Wed, 26 Oct 2016 04:49:42 -0700 (PDT) Subject: [FFmpeg-user] mp4 to mpeg-2 ts pcr period Message-ID: <1477482582734-4678017.post@n4.nabble.com> Hello, Can anyone help with conversion from mp4 to ts. ffmpeg -i input.mp4 -c copy -bsf:v h264_mp4toannex output.ts outpu.ts plays fine in vlc etc. but output.ts isn't compatibilie with hardware decoders. pcr is rare in output.ts. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/mp4-to-mpeg-2-ts-pcr-period-tp4678017.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From barsnick at gmx.net Wed Oct 26 16:35:18 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 26 Oct 2016 15:35:18 +0200 Subject: [FFmpeg-user] mp4 to mpeg-2 ts pcr period In-Reply-To: <1477482582734-4678017.post@n4.nabble.com> References: <1477482582734-4678017.post@n4.nabble.com> Message-ID: <20161026133518.GD17159@sunshine.barsnick.net> On Wed, Oct 26, 2016 at 04:49:42 -0700, dariusz w wrote: > ffmpeg -i input.mp4 -c copy -bsf:v h264_mp4toannex output.ts ^^^^^^^^^^^^^^ This filter is called "h264_mp4toannexb" (note the last letter). In recent ffmpeg releases and with latest git, it is automatically inserted, you don't need to do so anymore. > outpu.ts plays fine in vlc etc. but output.ts isn't compatibilie with > hardware decoders. pcr is rare in output.ts. Which hardware decoder are you referring to? What is "pcr"? You should show us the (proper) command line, and the command's full uncut console output, so that we can get an idea what has gone wrong. In the meantime, please ensure that you are testing this with latest git (if possible, else latest release). Thanks, Moritz From dariusz.wapinski at sgtsa.pl Wed Oct 26 16:42:58 2016 From: dariusz.wapinski at sgtsa.pl (dariusz w) Date: Wed, 26 Oct 2016 06:42:58 -0700 (PDT) Subject: [FFmpeg-user] mp4 to mpeg-2 ts pcr period In-Reply-To: <20161026133518.GD17159@sunshine.barsnick.net> References: <1477482582734-4678017.post@n4.nabble.com> <20161026133518.GD17159@sunshine.barsnick.net> Message-ID: <1477489378380-4678019.post@n4.nabble.com> Thanks, Yes I meant h264_mp4toannexb sorry for that. I use latest stable version 3.1.5. This video should be played on STB eg. motorola 1853. full output ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.9.2 (Debian 4.9.2-10) configuration: --prefix=/home/darek/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/darek/ffmpeg_build/include --extra-ldflags=-L/home/darek/ffmpeg_build/lib --bindir=/home/darek/bin --enable-gpl --enable-libfdk-aac --enable-libfreetype --enable-libx264 --enable-nonfree --disable-vaapi libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 matched as AVOption 'debug' with argument 'info'. Reading option '-i' ... matched as input file with argument '/srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.mp4'. Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'. Reading option '/srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.ts' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Successfully parsed a group of options. Parsing a group of options: input file /srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.mp4. Successfully parsed a group of options. Opening an input file: /srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.mp4. [file @ 0x27a7b40] Setting default whitelist 'file,crypto' [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] ISO: File Type Major Brand: mp42 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] Unknown dref type 0x08206c7275 size 12 Last message repeated 1 times [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] Before avformat_find_stream_info() pos: 14444560 bytes read:2774717 seeks:1 nb_streams:2 [NULL @ 0x27a9520] [Eval @ 0x7ffe3ecc47b0] Invalid chars 'o' at the end of expression 'info' [NULL @ 0x27a9520] Unable to parse option value "info" [NULL @ 0x27a9520] Error setting option debug to value info. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] Failed to open codec in av_find_stream_info [NULL @ 0x27aa9e0] [Eval @ 0x7ffe3ecc47b0] Invalid chars 'o' at the end of expression 'info' [NULL @ 0x27aa9e0] Unable to parse option value "info" [NULL @ 0x27aa9e0] Error setting option debug to value info. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] Failed to open codec in av_find_stream_info [h264 @ 0x27a9520] nal_unit_type: 7, nal_ref_idc: 3 [h264 @ 0x27a9520] nal_unit_type: 8, nal_ref_idc: 3 [h264 @ 0x27a9520] nal_unit_type: 9, nal_ref_idc: 0 [h264 @ 0x27a9520] nal_unit_type: 7, nal_ref_idc: 3 [h264 @ 0x27a9520] nal_unit_type: 8, nal_ref_idc: 3 [h264 @ 0x27a9520] nal_unit_type: 6, nal_ref_idc: 0 Last message repeated 2 times [h264 @ 0x27a9520] nal_unit_type: 5, nal_ref_idc: 3 [h264 @ 0x27a9520] user data:"x264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=4 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=0 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=5000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=5000 vbv_bufsize=10000 nal_hrd=cbr ip_ratio=1.40 aq=1:1.00" [h264 @ 0x27a9520] no picture [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27a7460] After avformat_find_stream_info() pos: 14947338 bytes read:3252551 seeks:1 frames:26 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isom creation_time : 2016-05-11 21:44:08 Duration: 01:49:39.12, start: 0.000000, bitrate: 5179 kb/s Stream #0:0(eng), 25, 1/25000: Video: h264 (Main), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 4999 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc (default) Stream #0:1(und), 1, 1/44100: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 157 kb/s (default) Successfully opened the file. Parsing a group of options: output file /srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.ts. Applying option c (codec name) with argument copy. Successfully parsed a group of options. Opening an output file: /srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.ts. File '/srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.ts' already exists. Overwrite ? [y/N] y [file @ 0x2d005a0] Setting default whitelist 'file,crypto' Successfully opened the file. [mpegts @ 0x2cfd720] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times [mpegts @ 0x2cfd720] muxrate VBR, pcr every 2500 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to '/srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.ts': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42isom encoder : Lavf57.41.100 Stream #0:0(eng), 0, 1/90000: Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], 0/1, q=2-31, 4999 kb/s, 25 fps, 25 tbr, 90k tbn, 25k tbc (default) Stream #0:1(und), 0, 1/90000: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 157 kb/s (default) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) Last message repeated 1 times Automatically inserted bitstream filter 'h264_mp4toannexb'; args='' cur_dts is invalid (this is harmless if it occurs once at the start per stream) Last message repeated 24 times frame= 9201 fps=4811 q=-1.0 Lsize= 251693kB time=00:06:08.82 bitrate=5590.4kbits/s speed= 193x video:224936kB audio:7097kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.473374% Input file #0 (/srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.mp4): Input stream #0:0 (video): 9201 packets read (230334204 bytes); Input stream #0:1 (audio): 15884 packets read (7267042 bytes); Total: 25085 packets (237601246 bytes) demuxed Output file #0 (/srv/vod-ingest-temp/video/POL_SPI103157_CHEF_HD.ts): Output stream #0:0 (video): 9201 packets muxed (230334204 bytes); Output stream #0:1 (audio): 15884 packets muxed (7267042 bytes); Total: 25085 packets (237601246 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 0x2d006a0] Statistics: 0 seeks, 15239 writeouts [AVIOContext @ 0x27aff60] Statistics: 240923008 bytes read, 19 seeks as you can see pcr is every 2500 packets it is too rare. I have found that this command: ./ffmpeg -debug info -i input.mp4 -c copy -muxrate 7000k output.ts remux *.ts and I see that pcr period is fine for hw decoder. [mpegts @ 0x3579ea0] muxrate 7000000, pcr every 93 pkts, sdt every 2327, pat/pmt every 465 pkts so maybe I should use muxrate everytime? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/mp4-to-mpeg-2-ts-pcr-period-tp4678017p4678019.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ceffmpeg at gmail.com Wed Oct 26 17:58:52 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 26 Oct 2016 16:58:52 +0200 Subject: [FFmpeg-user] mp4 to mpeg-2 ts pcr period In-Reply-To: <1477489378380-4678019.post@n4.nabble.com> References: <1477482582734-4678017.post@n4.nabble.com> <20161026133518.GD17159@sunshine.barsnick.net> <1477489378380-4678019.post@n4.nabble.com> Message-ID: 2016-10-26 15:42 GMT+02:00 dariusz w : > I use latest stable version 3.1.5. There is nothing "stable" about 3.1.5 (see for example #5909), on the contrary, it contains more known bugs and less features than current FFmpeg. [...] > I have found that this command: > > ./ffmpeg -debug info -i input.mp4 -c copy -muxrate 7000k output.ts > > remux *.ts and I see that pcr period is fine for hw decoder. > > [mpegts @ 0x3579ea0] muxrate 7000000, pcr every 93 pkts, > sdt every 2327, pat/pmt every 465 pkts > > so maybe I should use muxrate everytime? If it solves your issue, this is likely a good idea. This sounds like ticket #5750, btw. Carl Eugen From rfg at tristatelogic.com Wed Oct 26 22:06:16 2016 From: rfg at tristatelogic.com (Ronald F. Guilmette) Date: Wed, 26 Oct 2016 12:06:16 -0700 Subject: [FFmpeg-user] Reducing frame rate without reencoding Message-ID: <11202.1477508776@segfault.tristatelogic.com> Apologies if this is an FAQ. I have a video with a fixed frame rate of 59.940 fps. Some of my devices don't cope with this very well. Thus, I'd like to convert the video to one with exactly half the frame rate (29.970), but preferably without doing any reencoding, e.g. just by stripping away every odd numbered frame (or every even numbered one). Is there a way to do this with ffmpeg, and if so, what is the command line to do it? From ceffmpeg at gmail.com Wed Oct 26 22:10:27 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Wed, 26 Oct 2016 21:10:27 +0200 Subject: [FFmpeg-user] Reducing frame rate without reencoding In-Reply-To: <11202.1477508776@segfault.tristatelogic.com> References: <11202.1477508776@segfault.tristatelogic.com> Message-ID: 2016-10-26 21:06 GMT+02:00 Ronald F. Guilmette : > I have a video with a fixed frame rate of 59.940 fps. Some of my > devices don't cope with this very well. Thus, I'd like to convert the > video to one with exactly half the frame rate (29.970), but > preferably without doing any reencoding This is generally not possible / ffmpeg -i output missing. Carl Eugen From sven.c.dack at sky.com Thu Oct 27 00:07:21 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Wed, 26 Oct 2016 22:07:21 +0100 Subject: [FFmpeg-user] Reducing frame rate without reencoding In-Reply-To: <11202.1477508776@segfault.tristatelogic.com> References: <11202.1477508776@segfault.tristatelogic.com> Message-ID: On 26/10/16 20:06, Ronald F. Guilmette wrote: > Apologies if this is an FAQ. > > I have a video with a fixed frame rate of 59.940 fps. Some of my devices > don't cope with this very well. Thus, I'd like to convert the video to > one with exactly half the frame rate (29.970), but preferably without > doing any reencoding, e.g. just by stripping away every odd numbered > frame (or every even numbered one). > > Is there a way to do this with ffmpeg, and if so, what is the command > line to do it? Hello, this is only possible when the input is composed of absolute frames, i.e. with Motion JPEG. Your video will probably have been compressed with one of the more advanced algorithms and these purposely do not treat frames as absolute, but use their differences for their encoding. As such can you not drop every second frame, because you don't have full frames and dropping some of the intermediate frame information means you lose vital information for reconstructing the frames. If you want to change the frame rate then you have to use the "-r" option. For example: $ ffmpeg -i input.mp4 -r 29.97 -c:v libx264 -y output.mp4 From ceffmpeg at gmail.com Thu Oct 27 01:38:06 2016 From: ceffmpeg at gmail.com (Carl Eugen Hoyos) Date: Thu, 27 Oct 2016 00:38:06 +0200 Subject: [FFmpeg-user] Reducing frame rate without reencoding In-Reply-To: References: <11202.1477508776@segfault.tristatelogic.com> Message-ID: 2016-10-26 23:07 GMT+02:00 Sven C. Dack : > On 26/10/16 20:06, Ronald F. Guilmette wrote: >> >> Apologies if this is an FAQ. >> >> I have a video with a fixed frame rate of 59.940 fps. Some of my devices >> don't cope with this very well. Thus, I'd like to convert the video to >> one with exactly half the frame rate (29.970), but preferably without >> doing any reencoding, e.g. just by stripping away every odd numbered >> frame (or every even numbered one). >> >> Is there a way to do this with ffmpeg, and if so, what is the command >> line to do it? > this is only possible when the input is composed of absolute frames, > i.e. with Motion JPEG. Alternatives may exist (but this is impossible to know without ffmpeg -i output). > Your video will probably have been compressed with one of > the more advanced algorithms and these purposely do not treat > frames as absolute, but use their differences for their encoding. As > such can you not drop every second frame, because you don't have > full frames and dropping some of the intermediate frame information > means you lose vital information for reconstructing the frames. > > If you want to change the frame rate then you have to use the "-r" option. > For example: > $ ffmpeg -i input.mp4 -r 29.97 -c:v libx264 -y output.mp4 I do not remember a sample file for which "-r 29.97" would have been correct. Carl Eugen From sven.c.dack at sky.com Thu Oct 27 02:12:01 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 27 Oct 2016 00:12:01 +0100 Subject: [FFmpeg-user] Reducing frame rate without reencoding In-Reply-To: References: <11202.1477508776@segfault.tristatelogic.com> Message-ID: <9a893e76-915b-0ba7-73fb-8022502ff216@sky.com> On 26/10/16 23:38, Carl Eugen Hoyos wrote: > I do not remember a sample file for which "-r 29.97" would > have been correct. > He hasn't given a sample file and I have given an example. From rfg at tristatelogic.com Thu Oct 27 03:47:00 2016 From: rfg at tristatelogic.com (Ronald F. Guilmette) Date: Wed, 26 Oct 2016 17:47:00 -0700 Subject: [FFmpeg-user] Reducing frame rate without reencoding In-Reply-To: Message-ID: <12517.1477529220@segfault.tristatelogic.com> In message , "Sven C. Dack" wrote: >this is only possible when the input is composed of absolute frames, i.e. with >Motion JPEG. Your video will probably have been compressed with one of the more >advanced algorithms and these purposely do not treat frames as absolute, but use >their differences for their encoding. As such can you not drop every second frame, >because you don't have full frames and dropping some of the intermediate >frame information means you lose vital information for reconstructing the frames. I accept your answer, fully and without reservation, but it sort-of makes me think that I have misunderstood, in a rather fundamental way, how video compression works, specifically with respect to MPEG4/AVC. (I should have mentioned this earlier, but that is the specific type of video I'm dealing with.) I though that for, e.g., MPEG4/AVC, most frames are expressed in terms of their differences from some slightly earlier complete reference frame. If so, and if care was taken so that all of the reference frames were preserved in full, wouldn't it be possible to drop, say, all odd numbered frames in the following sequence of frames, up until the next reference frame? As I say, I am already resigned to accepting that, for now, I'll have just go ahead and reencode down to my desired lower frame rate, but I'm still somewhat interested in understanding why what I've described above wouldn't work. I may learn something! And that's never a bad thing. Is each frame within, say, an MPEG4/AVC video dependent upon -both- the nearest preceeding reference frame -and- also the other non-reference preceeding frames ? I guess so. If so, then I guess that also explains why some folks have written that MPEG4/AVC is harder to edit than, say, Motion JPEG... yes? From sven.c.dack at sky.com Thu Oct 27 04:35:50 2016 From: sven.c.dack at sky.com (Sven C. Dack) Date: Thu, 27 Oct 2016 02:35:50 +0100 Subject: [FFmpeg-user] Reducing frame rate without reencoding In-Reply-To: <12517.1477529220@segfault.tristatelogic.com> References: <12517.1477529220@segfault.tristatelogic.com> Message-ID: <5ac372f5-703f-3a5f-d92a-6dd94a7d5f4c@sky.com> On 27/10/16 01:47, Ronald F. Guilmette wrote: > Is each frame within, say, an MPEG4/AVC video dependent upon -both- the > nearest preceeding reference frame -and- also the other non-reference > preceeding frames ? Not necessarily, but it can, yes. It can also reference data in succeeding frames. https://en.wikipedia.org/wiki/Inter_frame From applemax82 at 163.com Thu Oct 27 14:17:14 2016 From: applemax82 at 163.com (qw) Date: Thu, 27 Oct 2016 19:17:14 +0800 (CST) Subject: [FFmpeg-user] how to set timeout for opening or reading rtmp stream Message-ID: <34676387.eea7.15805dbb2ac.Coremail.applemax82@163.com> Hi, I use ffmpeg's native rtmp plugin and the following command to do av transcoding, which will open and read rtmp stream. /usr/local/bin/ffmpeg -i rtmp://localhost:1935/live1/abc -timeout 2 -acodec libfdk_aac -ac 2 -b:a 48k -vcodec libx264 -b:v 1000k -s 640x480 -g 20 -r 20.0 -f flv rtmp://localhost:1935/live2/abcy_p1 but if there is no av packet in input rtmp stream, the command will wait for indefinite time. is there some argument that can set the timeout for opening and reading input rtmp stream? Thanks! Regards Andrew From yn.musen at gmail.com Thu Oct 27 14:26:37 2016 From: yn.musen at gmail.com (Yuki) Date: Thu, 27 Oct 2016 04:26:37 -0700 (PDT) Subject: [FFmpeg-user] How to output the MPEG-4 streaming to file? In-Reply-To: References: <1477367907993-4678001.post@n4.nabble.com> <3494248.1lxg5Tqazv@subterfuge> <1477463878865-4678011.post@n4.nabble.com> Message-ID: <1477567597162-4678029.post@n4.nabble.com> Carl Eugen Hoyos-2 wrote > If the input is mpegts, this is most likely not a good idea, there are > many possibilities to dump the raw stream like tools/aviocat and > mplayer -dumpstream. I did not know there is such a method. After trying the command to obtain the following output. But it is the video that we saw in other systems did not like this noise is not contain. /C:\Program Files\SMPlayer\mplayer>mplayer -dumpstream udp://@239.203.59.225:50100 MPlayer Redxii-SVN-r37871-4.9.3 (x86_64) (C) 2000-2016 MPlayer Team FFmpeg version: N-80185-gbb3388f Build date: 2016-06-04 18:44:50 EDT Playing udp://@239.203.59.225:50100. STREAM_UDP, URL: udp://@239.203.59.225:50100 dump: 4984832 bytes written MPlayer interrupted by signal 2 in module: dumpstream dump: 5025792 bytes written to 'stream.dump'. Core dumped ;) Exiting... (End of file)/ OutputFile: https://drive.google.com/file/d/0Bx3xeHwXuVdlZE9CVnRsMWN4Ukk/view?usp=sharing Carl Eugen Hoyos-2 wrote > If you can provide an absolutely fool-proof, 100% clear explanation > on what I should do with the pcap file, I will happily test. Thank you. What I hope is that the output video files with no noise from this packet. Yuki -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-output-the-MPEG-4-streaming-to-file-tp4678001p4678029.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From SCarucci at evertz.com Thu Oct 27 18:36:09 2016 From: SCarucci at evertz.com (Stefano Carucci) Date: Thu, 27 Oct 2016 15:36:09 +0000 Subject: [FFmpeg-user] decode_slice_header error Message-ID: <5801F22D3E9C3A48BB356E6B2C0919348BDA2B8D@scrabble.eu.evertz.tv> Hello, I came across an issue while decoding an H264 elementary stream with the following error: [h264 @ 0x219ba20] Found reference and non-reference fields in the same frame, which is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [h264 @ 0x219ba20] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel at ffmpeg.org) [h264 @ 0x219ba20] decode_slice_header error [h264 @ 0x219ba20] mmco: unref short failure [h264 @ 0x219a360] decoding for stream 0 failed Input #0, h264, from 'slice_header_error-2016-10-27.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High 4:2:2), yuv422p, 256x128, 31 fps, 25 tbr, 1200k tbn, 50 tbc I am not sure if I am getting the error due to an unsupported feature or a slice header, but the JM19.0 seems to decode it correctly. I would like to uploade a small sample bitstream, but the FTP server seems unreachable. I am using the following version: ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-7) configuration: libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 Best regards, Stefano This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender (as shown above). Kindly do not reproduce, print or forward any material received in error, please delete it immediately. Evertz UK Limited (Company No. 3458137) is incorporated in England and Wales and has its registered office at 100 Berkshire Place, Wharfedale Road, Winnersh, Wokingham, Berkshire, United Kingdom, RG41 5RD. Evertz Singapore Pte Limited (Company No. 200817005N) is incorporated in Singapore and has its registered office at One Marina Boulevard, #28-00. Singapore 018989. From gilgameshfreedom at yandex.ru Thu Oct 27 19:06:36 2016 From: gilgameshfreedom at yandex.ru (=?UTF-8?B?0JDQvdCw0YLQvtC70LjQuSDQmtC+0YDQvtGB0YLQtdC70LXQsg==?=) Date: Thu, 27 Oct 2016 19:06:36 +0300 Subject: [FFmpeg-user] Strange output of ffprobe Message-ID: <8485fe32-aace-5af6-463d-ec7227a5219e@yandex.ru> Hello! Recently I recieved a mp4 for playing. When I tried to play this file I didn't hear any sound in some players (in ffplay sound worked). When I looked at the metadata of this file (via ffprobe), I saw the following: $ ffprobe 6kad_16_144p.mp4 ffprobe version 3.1.4 Copyright (c) 2007-2016 the FFmpeg developers built with Apple LLVM version 8.0.0 (clang-800.0.38) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libass --enable-libfdk-aac --enable-libopus --enable-libx265 --disable-lzma --enable-nonfree --enable-vda libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '6kad_16_144p.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2016-10-04 13:33:08 encoder : Lavf57.51.100 Duration: 00:22:49.90, start: 0.000000, bitrate: 335 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 256x144 [SAR 1:1 DAR 16:9], 201 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: creation_time : 2016-10-04 13:33:08 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default) Metadata: creation_time : 2016-10-04 13:33:08 handler_name : SoundHandler Then I used mediainfo utility to see the metadata of the file: $ mediainfo 6kad_16_144p.mp4 General Complete name : 6kad_16_144p.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 54.8 MiB Duration : 22 min 49 s Overall bit rate : 336 kb/s Encoded date : UTC 2016-10-04 13:33:08 Tagged date : UTC 2016-10-04 13:33:08 Writing application : Lavf57.51.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main at L4.1 Format settings, CABAC : Yes Format settings, ReFrames : 2 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 22 min 49 s Bit rate : 200 kb/s Width : 256 pixels Height : 144 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.217 Stream size : 32.9 MiB (60%) Writing library : x264 core 148 r2721 Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x131 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=0 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=200 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / vbv_maxrate=8500 / vbv_bufsize=24000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:1.00 Encoded date : UTC 2016-10-04 13:33:08 Tagged date : UTC 2016-10-04 13:33:08 Audio ID : 2 Format : ER Parametric Format/Info : Advanced Audio Codec Codec ID : 40 Duration : 22 min 49 s Bit rate mode : Constant Bit rate : 128 kb/s Channel(s) : 2 channels Sampling rate : 7 350 Hz Frame rate : 7.178 FPS (1024 spf) Compression mode : Lossy Stream size : 21.0 MiB (38%) Default : Yes Alternate group : 1 Encoded date : UTC 2016-10-04 13:33:08 Tagged date : UTC 2016-10-04 13:33:08 As you can see the "Sampling rate" in mediainfo is 7 350 Hz (it's illegal value) while "Sampling rate" in ffprobe is 48000 Hz. I think that the problem with the sound of this file has been caused by encoder errors/misconfiguration. But it's very strange that ffrobe always shows me 48000 Hz Sampling rate. Is this a bug or something else? P.S. This mp4 file is available here https://yadi.sk/i/Ew77H8kiwpG7r -- Sincerely, Anatoliy V. Korostelev From lletourn49 at gmail.com Thu Oct 27 21:06:13 2016 From: lletourn49 at gmail.com (Louis Letourneau) Date: Thu, 27 Oct 2016 14:06:13 -0400 Subject: [FFmpeg-user] extract a segment from a live HLS encoding Message-ID: I'm capturing a video using: ffmpeg -y -f decklink -i "DeckLink Mini Recorder (2)@14" -pix_fmt yuv420p -vf "fps=29.97" -force_key_frames "expr:gte(t,n_forced*5)" -codec:a libfdk_aac -b:a 128k -codec:v libx264 -crf 24 -preset fast -bf 0 -hls_time 5 -hls_list_size 0 -hls_wrap 0 -hls_allow_cache 1 -hls_allow_cache 0 -hls_segment_filename segment_%07d.ts segment.m3u8 Say an hour passes, should it be possible, while this command continues capturing, to extract a segment, say 10 minutes after the start: ffmpeg -y -ss 00:10:00 -i segment.m3u8 -codec copy -bsf:a aac_adtstoasc -t 60 my_segment.mp4 At the moment it seems that ffmpeg keeps reloading the HLS manifest, m3u8, until the #EXT-X-ENDLIST appears and never starts the encoding process, even if the segments to copy are complete. I do realise that a wraping HLS stream could be problematic, but still I was wondering if a parameter existed to force it to try anyways. Thanks Louis From lletourn49 at gmail.com Thu Oct 27 21:26:08 2016 From: lletourn49 at gmail.com (Louis Letourneau) Date: Thu, 27 Oct 2016 14:26:08 -0400 Subject: [FFmpeg-user] extract a segment from a live HLS encoding In-Reply-To: References: Message-ID: > > I do realise that a wrapping HLS stream could be problematic, but still I > was wondering if a parameter existed to force it to try anyways. > > Sorry missed it in the doc -live_start_index does exactly this. If it can help someone else: ffmpeg -y -live_start_index 0 -ss 00:10:00 -i segment.m3u8 -codec copy -bsf:a aac_adtstoasc -t 60 my_segment.mp4 Louis From alseczg at gmail.com Thu Oct 27 23:46:06 2016 From: alseczg at gmail.com (Gabor Alsecz) Date: Thu, 27 Oct 2016 22:46:06 +0200 Subject: [FFmpeg-user] Issue with encoding HLS from RTMP input stream Message-ID: Dear All, I am facing the following issue constantly when encode HLS stream from RTMP (h264) stream: The video picture quality changing between good and bad. Bad means part of the image/frame going to be squared (looks like huge individual pixels). Here is the command line: $ ffmpeg -v verbose -i rtsp://192.168.1.103:554/rtsp_tunnel -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 18 -profile:v baseline -maxrate 3000k -bufsize 8000k -pix_fmt yuv420p -flags -global_header -hls_time 3 -hls_list_size 0 -hls_wrap 0 -start_number 0 out.m3u8 ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Routing option strict to both codec and muxer layer [rtsp @ 0000000000348bc0] SDP: v=0 o=- 0 0 IN IP4 192.168.1.103 s=LIVE VIEW c=IN IP4 0.0.0.0 t=0 0 a=control:* m=video 0 RTP/AVP 35 a=rtpmap:35 H264/90000 a=control:video a=recvonly a=fmtp:35 packetization-mode=1;profile-level-id=4d4029;sprop-parameter-sets=Z01AKZpmA8ARPy4C1AQEFAg=,aO44gA== [rtsp @ 0000000000348bc0] setting jitter buffer size to 500 [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 81 packets [h264 @ 000000000034cb00] error while decoding MB 22 38, bytestream -5 [h264 @ 000000000034cb00] concealing 3627 DC, 3627 AC, 3627 MV errors in P frame Input #0, rtsp, from 'rtsp://192.168.1.103:554/rtsp_tunnel': Metadata: title : LIVE VIEW Duration: N/A, start: 0.033389, bitrate: N/A Stream #0:0: Video: h264 (Main), 1 reference frame, yuv420p(tv, bt470bg/bt709/bt709), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 29.97 tbr, 90k tbn, 180k tbc [graph 0 input from stream 0:0 @ 00000000030b0f00] w:1920 h:1080 pixfmt:yuv420p tb:1/90000 fr:30000/1001 sar:1/1 sws_param:flags=2 [libx264 @ 0000000001cf8b40] using SAR=1/1 [libx264 @ 0000000001cf8b40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA3 LZCNT BMI1 [libx264 @ 0000000001cf8b40] profile Constrained Baseline, level 4.0 [hls @ 00000000031b09a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. [mpegts @ 0000000001cc0440] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'out.m3u8': Metadata: title : LIVE VIEW encoder : Lavf57.41.100 Stream #0:0: Video: h264 (libx264), 1 reference frame, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 90k tbn, 29.97 tbc Metadata: encoder : Lavc57.48.101 libx264 Side data: cpb: bitrate max/min/avg: 3000000/0/0 buffer size: 8000000 vbv_delay: -1 Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Press [q] to stop, [?] for help [h264 @ 00000000027d6dc0] error while decoding MB 22 38, bytestream -5 [h264 @ 00000000027d6dc0] concealing 3627 DC, 3627 AC, 3627 MV errors in P frame Past duration 0.998985 too large *** 3 dup! [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 48 packets [h264 @ 00000000023a4dc0] error while decoding MB 9 50, bytestream -9 [h264 @ 00000000023a4dc0] concealing 2200 DC, 2200 AC, 2200 MV errors in P frame *** 5 dup! [rtsp @ 0000000000348bc0] max delay reached. need to consume packetp=8 drop=0 speed=0.0936x [rtsp @ 0000000000348bc0] RTP: missed 1 packets [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 294 packets [h264 @ 00000000030b0660] error while decoding MB 41 9, bytestream -27 [h264 @ 00000000030b0660] concealing 7088 DC, 7088 AC, 7088 MV errors in I frame *** 5 dup! [rtsp @ 0000000000348bc0] max delay reached. need to consume packetp=13 drop=0 speed=0.581x [rtsp @ 0000000000348bc0] RTP: missed 2 packets [h264 @ 0000000001c4afe0] error while decoding MB 115 62, bytestream -5 [h264 @ 0000000001c4afe0] concealing 654 DC, 654 AC, 654 MV errors in P frame [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 3 packets [h264 @ 000000000034e160] error while decoding MB 90 44, bytestream -6 [h264 @ 000000000034e160] concealing 2839 DC, 2839 AC, 2839 MV errors in P frame [hls @ 00000000031b09a0] EXT-X-MEDIA-SEQUENCE:004.07 bitrate=N/A dup=13 drop=0 speed=0.832x [rtsp @ 0000000000348bc0] max delay reached. need to consume packetp=13 drop=0 speed=0.883x [rtsp @ 0000000000348bc0] RTP: missed 16 packets [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 68 packets [h264 @ 00000000023a4dc0] concealing 6559 DC, 6559 AC, 6559 MV errors in I frame [rtsp @ 0000000000348bc0] max delay reached. need to consume packetp=13 drop=0 speed=0.879x [rtsp @ 0000000000348bc0] RTP: missed 7 packets [h264 @ 00000000027d7260] error while decoding MB 46 46, bytestream -5 [h264 @ 00000000027d7260] concealing 2643 DC, 2643 AC, 2643 MV errors in P frame [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 9 packets [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 10 packets [h264 @ 000000000034e160] cabac decode of qscale diff failed at 102 26 [h264 @ 000000000034e160] error while decoding MB 102 26, bytestream 1260 [h264 @ 000000000034e160] concealing 4987 DC, 4987 AC, 4987 MV errors in P frame [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 2 packets [h264 @ 00000000027d6dc0] concealing 913 DC, 913 AC, 913 MV errors in P frame0 speed=0.884x [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 16 packets *** 1 dup! [h264 @ 00000000027d6dc0] error while decoding MB 77 63, bytestream -5 [h264 @ 00000000027d6dc0] concealing 572 DC, 572 AC, 572 MV errors in P frame *** 1 dup! [rtsp @ 0000000000348bc0] max delay reached. need to consume packetp=15 drop=0 speed=0.887x [rtsp @ 0000000000348bc0] RTP: missed 15 packets [h264 @ 000000000034e160] error while decoding MB 24 41, bytestream -11 [h264 @ 000000000034e160] concealing 3265 DC, 3265 AC, 3265 MV errors in P frame *** 1 dup! [rtsp @ 0000000000348bc0] max delay reached. need to consume packetp=16 drop=0 speed=0.891x [rtsp @ 0000000000348bc0] RTP: missed 15 packets [h264 @ 00000000030b0660] error while decoding MB 119 37, bytestream -5 [h264 @ 00000000030b0660] concealing 3650 DC, 3650 AC, 3650 MV errors in P frame [rtsp @ 0000000000348bc0] max delay reached. need to consume packet [rtsp @ 0000000000348bc0] RTP: missed 170 packets *** 1 dup! I've tested with 2 different IP cameras on 2 different servers, but the result always the same. Shouldn't be any networking problem, also the cam directly connected to the PC. Any idea? br, g. From jerome at mediaarea.net Fri Oct 28 00:11:51 2016 From: jerome at mediaarea.net (Jerome Martinez) Date: Thu, 27 Oct 2016 23:11:51 +0200 Subject: [FFmpeg-user] Strange output of ffprobe In-Reply-To: <8485fe32-aace-5af6-463d-ec7227a5219e@yandex.ru> References: <8485fe32-aace-5af6-463d-ec7227a5219e@yandex.ru> Message-ID: <92dc354f-1ec8-ca30-66e7-20923986b1b2@mediaarea.net> Le 27/10/2016 à 18:06, Анатолий Коростелев a écrit : > Hello! > > Recently I recieved a mp4 for playing. When I tried to play this file > I didn't hear any sound in some players (in ffplay sound worked). When > I looked at the metadata of this file (via ffprobe), I saw the following: > > [...] > > Then I used mediainfo utility to see the metadata of the file: > > [...] > > > As you can see the "Sampling rate" in mediainfo is 7 350 Hz (it's > illegal value) It is not an illegal value, AAC specs authorize it. > while "Sampling rate" in ffprobe is 48000 Hz. I think that the problem > with the sound of this file has been caused by encoder > errors/misconfiguration. But it's very strange that ffrobe always > shows me 48000 Hz Sampling rate. Is this a bug or something else? 48000 Hz seems the correct one, so no FFmpeg bug but MediaInfo bug (as a first shot, issue is that there is an ES descriptor without AudioSpecificConfig element in the track header and MediaInfo does not manage correctly this case; note that this may be the reason some players does not play sound). Jérôme, developer of MediaInfo. From gilgameshfreedom at yandex.ru Fri Oct 28 12:09:37 2016 From: gilgameshfreedom at yandex.ru (=?UTF-8?B?0JDQvdCw0YLQvtC70LjQuSDQmtC+0YDQvtGB0YLQtdC70LXQsg==?=) Date: Fri, 28 Oct 2016 12:09:37 +0300 Subject: [FFmpeg-user] Strange output of ffprobe In-Reply-To: <92dc354f-1ec8-ca30-66e7-20923986b1b2@mediaarea.net> References: <8485fe32-aace-5af6-463d-ec7227a5219e@yandex.ru> <92dc354f-1ec8-ca30-66e7-20923986b1b2@mediaarea.net> Message-ID: <583f7a05-ea6e-4be0-8624-ee6a38143ac5@yandex.ru> > 48000 Hz seems the correct one, so no FFmpeg bug but MediaInfo bug (as a first shot, issue is that there is an ES descriptor without AudioSpecificConfig element in the track header and MediaInfo does not manage correctly this case; note that this may be the reason some players does not play sound). Under the absence of the AudioSpecificConfig element in the track header do you mean to the absence of the "Format profile" field of the medianfo output? I've looked at the difference between mediainfo output of this bad mp4 file and a good mp4 file and I've found that the good one contains "Format profile": diff -u mediainfo_output_of_bad_file mediainfo_output_of_good_file: ... Audio ID : 2 -Format : ER Parametric +Format : AAC Format/Info : Advanced Audio Codec +Format profile : LC Codec ID : 40 Duration : 22 min 49 s Bit rate mode : Constant Bit rate : 128 kb/s Channel(s) : 2 channels -Sampling rate : 7 350 Hz -Frame rate : 7.178 FPS (1024 spf) +Channel positions : Front: L R +Sampling rate : 48.0 kHz +Frame rate : 46.875 FPS (1024 spf) Compression mode : Lossy Stream size : 21.0 MiB (38%) Default : Yes Alternate group : 1 ... 28.10.16 0:11, Jerome Martinez пишет: > Le 27/10/2016 à 18:06, Анатолий Коростелев a écrit : >> Hello! >> >> Recently I recieved a mp4 for playing. When I tried to play this file >> I didn't hear any sound in some players (in ffplay sound worked). >> When I looked at the metadata of this file (via ffprobe), I saw the >> following: >> >> [...] >> >> Then I used mediainfo utility to see the metadata of the file: >> >> [...] >> >> >> As you can see the "Sampling rate" in mediainfo is 7 350 Hz (it's >> illegal value) > > It is not an illegal value, AAC specs authorize it. > >> while "Sampling rate" in ffprobe is 48000 Hz. I think that the >> problem with the sound of this file has been caused by encoder >> errors/misconfiguration. But it's very strange that ffrobe always >> shows me 48000 Hz Sampling rate. Is this a bug or something else? > > 48000 Hz seems the correct one, so no FFmpeg bug but MediaInfo bug (as > a first shot, issue is that there is an ES descriptor without > AudioSpecificConfig element in the track header and MediaInfo does not > manage correctly this case; note that this may be the reason some > players does not play sound). > > Jérôme, developer of MediaInfo. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". -- С уважением, Коростелев Анатолий From SCarucci at evertz.com Fri Oct 28 14:51:08 2016 From: SCarucci at evertz.com (Stefano Carucci) Date: Fri, 28 Oct 2016 11:51:08 +0000 Subject: [FFmpeg-user] decode_slice_header error In-Reply-To: <5801F22D3E9C3A48BB356E6B2C0919348BDA2B8D@scrabble.eu.evertz.tv> References: <5801F22D3E9C3A48BB356E6B2C0919348BDA2B8D@scrabble.eu.evertz.tv> Message-ID: <5801F22D3E9C3A48BB356E6B2C0919348BDA2D0F@scrabble.eu.evertz.tv> Attached sample bitstream ________________________________________ From: ffmpeg-user [ffmpeg-user-bounces at ffmpeg.org] on behalf of Stefano Carucci [SCarucci at evertz.com] Sent: 27 October 2016 16:36 To: ffmpeg-user at ffmpeg.org Subject: [FFmpeg-user] decode_slice_header error Hello, I came across an issue while decoding an H264 elementary stream with the following error: [h264 @ 0x219ba20] Found reference and non-reference fields in the same frame, which is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [h264 @ 0x219ba20] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel at ffmpeg.org) [h264 @ 0x219ba20] decode_slice_header error [h264 @ 0x219ba20] mmco: unref short failure [h264 @ 0x219a360] decoding for stream 0 failed Input #0, h264, from 'slice_header_error-2016-10-27.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High 4:2:2), yuv422p, 256x128, 31 fps, 25 tbr, 1200k tbn, 50 tbc I am not sure if I am getting the error due to an unsupported feature or a slice header, but the JM19.0 seems to decode it correctly. I would like to uploade a small sample bitstream, but the FTP server seems unreachable. I am using the following version: ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.8.3 (GCC) 20140911 (Red Hat 4.8.3-7) configuration: libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 Best regards, Stefano This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender (as shown above). Kindly do not reproduce, print or forward any material received in error, please delete it immediately. Evertz UK Limited (Company No. 3458137) is incorporated in England and Wales and has its registered office at 100 Berkshire Place, Wharfedale Road, Winnersh, Wokingham, Berkshire, United Kingdom, RG41 5RD. Evertz Singapore Pte Limited (Company No. 200817005N) is incorporated in Singapore and has its registered office at One Marina Boulevard, #28-00. Singapore 018989. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this e-mail in error please notify the sender (as shown above). Kindly do not reproduce, print or forward any material received in error, please delete it immediately. Evertz UK Limited (Company No. 3458137) is incorporated in England and Wales and has its registered office at 100 Berkshire Place, Wharfedale Road, Winnersh, Wokingham, Berkshire, United Kingdom, RG41 5RD. Evertz Singapore Pte Limited (Company No. 200817005N) is incorporated in Singapore and has its registered office at One Marina Boulevard, #28-00. Singapore 018989. -------------- next part -------------- A non-text attachment was scrubbed... Name: slice_header_error-2016-10-27.h264 Type: application/octet-stream Size: 25883 bytes Desc: slice_header_error-2016-10-27.h264 URL: From deron at pagestream.org Fri Oct 28 16:14:43 2016 From: deron at pagestream.org (Deron) Date: Fri, 28 Oct 2016 07:14:43 -0600 Subject: [FFmpeg-user] How to put SCTE-35 markers in a video Message-ID: <5a244708-272e-f24a-fe14-ee9d9013ed74@pagestream.org> Hello, I see the latest patches for SCTE-35 insertion into HLS (even if the important parts are not applied yet), but how do I actually generate an mpegts with SCTE-35 markers? Thanks, Deron From sustmidown at centrum.cz Fri Oct 28 20:53:04 2016 From: sustmidown at centrum.cz (=?UTF-8?Q?Miroslav_=C5=A0ustek?=) Date: Fri, 28 Oct 2016 19:53:04 +0200 Subject: [FFmpeg-user] [libavformat] Image sequence ends on empty file Message-ID: Hello. I run into a problem that ffmpeg successfully ends encoding in the middle of my image sequence when it contains an empty file. I use command: > ffmpeg -framerate 30 -pattern_type glob -i "*.jpeg" out.mkv The file in the sequence is corrupt and therefore it is empty. It is unintuitive that ffmpeg does not print any error or warning. It ends in the middle like everything was OK. When I write "asdf" in the empty file ffmpeg prints out: > [mjpeg @ 0x1029600] No JPEG data found in image=00:00:47.23 bitrate=3808.3kbits/s speed=0.324x      > Error while decoding stream #0:0: Invalid data found when processing input but processes the whole sequence (minus the corrupt file of course). Why is it that corrupt file in the sequence is skipped but empty file is considered as "end of the sequence"? From the user perspective it can be very confusing. See: http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/img2dec.c;h=a920f4611f46641cba9762f585318552f9f00129;hb=HEAD#l501 where ret[0] is zero for an empty file and: http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/img2dec.c;h=a920f4611f46641cba9762f585318552f9f00129;hb=HEAD#l510 where AVERROR_EOF is returned which makes ffmpeg to think that this is the end of the sequence. From ppirmak at gmail.com Sun Oct 30 14:20:24 2016 From: ppirmak at gmail.com (=?UTF-8?Q?=c3=96mer_Faruk_IRMAK?=) Date: Sun, 30 Oct 2016 15:20:24 +0300 Subject: [FFmpeg-user] Muxing KLV encoded binary data to mpegts Message-ID: <984cbf9d-020b-15c6-b180-601686d19a85@gmail.com> Hello everybody, ffmpeg -re -f lavfi -i testsrc=rate=30 -re -thread_queue_size 131072 -f data -i udp://127.0.0.1:4444 -map 0:0 -map 1:0 -c:v h264 -c:d copy -f mpegts test.ts This is the output of the command above. I simply want to record the data coming from udp synced with video. I push some KLV encoded metadata from udp://127.0.0.1:4444 but recording stops at frame 51. ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.1 (GCC) 20160830 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, lavfi, from 'testsrc=rate=30': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 30 tbr, 30 tbn, 30 tbc Input #1, data, from 'udp://127.0.0.1:4444': Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Data: none File 'test.ts' already exists. Overwrite ? [y/N] y [mpegts @ 0x55ece57efc20] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times Output #0, mpegts, to 'test.ts': Metadata: encoder : Lavf57.41.100 Stream #0:0: Video: mpeg2video (Main), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc Metadata: encoder : Lavc57.48.101 mpeg2video Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1 Stream #0:1: Data: none Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg2video (native)) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 2 fps=0.0 q=4.7 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 2 fps=2.0 q=4.7 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 2 fps=1.3 q=4.7 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 2 fps=1.0 q=4.7 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 2 fps=0.8 q=4.7 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 2 fps=0.7 q=2.0 Lsize= 14kB time=00:00:00.00 bitrate=10117818.2kbits/s speed=3.63e-06x video:12kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.228984% [omer at OmerDesktop HDD]$ ffmpeg -re -f lavfi -i testsrc=rate=30 -re -thread_queue_size 131072 -f data -i udp://127.0.0.1:4444 -map 0:0 -map 1:0 -c:v h264 -c:d copy -f mpegts test.ts ffmpeg version 3.1.5 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 6.2.1 (GCC) 20160830 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 48.101 / 57. 48.101 libavformat 57. 41.100 / 57. 41.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 47.100 / 6. 47.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, lavfi, from 'testsrc=rate=30': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 30 tbr, 30 tbn, 30 tbc Input #1, data, from 'udp://127.0.0.1:4444': Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Data: none File 'test.ts' already exists. Overwrite ? [y/N] y No pixel format specified, yuv444p for H.264 encoding chosen. Use -pix_fmt yuv420p for compatibility with outdated media players. [libx264 @ 0x56461eb0f500] using SAR=1/1 [libx264 @ 0x56461eb0f500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x56461eb0f500] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit [mpegts @ 0x56461eb0dc80] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead. Last message repeated 1 times Output #0, mpegts, to 'test.ts': Metadata: encoder : Lavf57.41.100 Stream #0:0: Video: h264 (libx264), yuv444p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 30 fps, 90k tbn, 30 tbc Metadata: encoder : Lavc57.48.101 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1: Data: none Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264)) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 17 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 32 fps= 31 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 47 fps= 31 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 51 fps= 25 q=29.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 51 fps= 20 q=29.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 51 fps= 17 q=29.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 51 fps= 14 q=29.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= frame= 51 fps= 13 q=-1.0 Lsize= 19kB time=00:00:01.60 bitrate= 94.9kbits/s speed=0.407x From boris.t.richard at gmail.com Mon Oct 31 03:55:26 2016 From: boris.t.richard at gmail.com (Boris T) Date: Sun, 30 Oct 2016 21:55:26 -0400 Subject: [FFmpeg-user] Using ffmpeg to blur moving objects Message-ID: Hello, I'm using ffmpeg to blur moving objects in videos with a command similar to this one: ffmpeg -i "input.mp4" -filter_complex_script "myscript.txt" -map "[step0_overlay]" -f MP4 -c:v libx264 -x264opts keyint=15:min-keyint=15:scenecut=-1 -movflags faststart -y "output.mp4" myscript.txt contents: [0:v]crop=160.00:160.00:94.40:96.00,boxblur=luma_radius=min(10\,min(w\,h)/2):chroma_radius=min(10\,min(cw\,ch)/2)[step0];[0:v][step0]overlay=94.400:96.00:repeatlast=0:enable='between(t,0.073,7.55839409433962)'[step0_overlay]; This does the job fine, but since I'm blurring moving objects, I end up with multiple crop and overlay filters enabled for fractions of seconds. For a 2-minute video with a constantly moving object I can end up with 2000 of these crop-overlay steps, and the more overlay steps I have, the slower the processing gets (less than a frame per second) Is there a better, faster approach to this problem? I've tried using sendcmd to modify and move the blurred overlay on the fly (and presumably avoid having to keep multiple overlays in the filter graph) however I ended up with a blurred box inside the original blurred box. Any input on this problem would be greatly appreciated! Boris From onemda at gmail.com Mon Oct 31 09:37:05 2016 From: onemda at gmail.com (Paul B Mahol) Date: Mon, 31 Oct 2016 08:37:05 +0100 Subject: [FFmpeg-user] Using ffmpeg to blur moving objects In-Reply-To: References: Message-ID: On 10/31/16, Boris T wrote: > Hello, > > I'm using ffmpeg to blur moving objects in videos with a command similar to > this one: > > ffmpeg -i "input.mp4" -filter_complex_script "myscript.txt" -map > "[step0_overlay]" -f MP4 -c:v libx264 -x264opts > keyint=15:min-keyint=15:scenecut=-1 -movflags faststart -y "output.mp4" > > myscript.txt contents: > > [0:v]crop=160.00:160.00:94.40:96.00,boxblur=luma_radius=min(10\,min(w\,h)/2):chroma_radius=min(10\,min(cw\,ch)/2)[step0];[0:v][step0]overlay=94.400:96.00:repeatlast=0:enable='between(t,0.073,7.55839409433962)'[step0_overlay]; > > This does the job fine, but since I'm blurring moving objects, I end up > with multiple crop and overlay filters enabled for fractions of seconds. > For a 2-minute video with a constantly moving object I can end up with 2000 > of these crop-overlay steps, and the more overlay steps I have, the slower > the processing gets (less than a frame per second) Is there a better, > faster approach to this problem? > > I've tried using sendcmd to modify and move the blurred overlay on the fly > (and presumably avoid having to keep multiple overlays in the filter graph) > however I ended up with a blurred box inside the original blurred box. > > Any input on this problem would be greatly appreciated! > > Boris > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". Short story: AFAIK it is not currently possible to track specific moving object with FFmpeg. From george at nsup.org Mon Oct 31 12:22:16 2016 From: george at nsup.org (Nicolas George) Date: Mon, 31 Oct 2016 11:22:16 +0100 Subject: [FFmpeg-user] Using ffmpeg to blur moving objects In-Reply-To: References: Message-ID: <20161031102216.GA1931484@phare.normalesup.org> Le decadi 10 brumaire, an CCXXV, Paul B Mahol a écrit : > Short story: AFAIK it is not currently possible to track specific > moving object with FFmpeg. I think Boris already has the coordinates of the objects and only needs a way to inject them in FFmpeg. It seems boxblur can not change its coordinates on the fly. The best course of action would be to implement process_command() for it, and it would probably not be that hard. Without changing the code, since crop and overlay support process_command(), using them to isolate the part of the image to apply boxblur seems a workable solution, and sendcmd can do that. We do not have enough information to know why it failed. (Please trim your quotes.) Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 801 bytes Desc: Digital signature URL: From applemax82 at 163.com Mon Oct 31 16:10:37 2016 From: applemax82 at 163.com (qw) Date: Mon, 31 Oct 2016 22:10:37 +0800 (CST) Subject: [FFmpeg-user] how to set timeout for opening or reading rtmp stream Message-ID: <5057f7eb.d187.1581b13e2c1.Coremail.applemax82@163.com> Hi, I use ffmpeg's native rtmp plugin and the following command to do av transcoding, which will open and read rtmp stream. /usr/local/bin/ffmpeg -i rtmp://localhost:1935/live1/abc -timeout 2 -acodec libfdk_aac -ac 2 -b:a 48k -vcodec libx264 -b:v 1000k -s 640x480 -g 20 -r 20.0 -f flv rtmp://localhost:1935/live2/abcy_p1 but if there is no av packet in input rtmp stream, the command will wait for indefinite time. is there some argument that can set the timeout for opening and reading input rtmp stream? Thanks! Regards Andrew From boris.t.richard at gmail.com Mon Oct 31 16:23:27 2016 From: boris.t.richard at gmail.com (Boris T) Date: Mon, 31 Oct 2016 10:23:27 -0400 Subject: [FFmpeg-user] Using ffmpeg to blur moving objects In-Reply-To: <20161031102216.GA1931484@phare.normalesup.org> References: <20161031102216.GA1931484@phare.normalesup.org> Message-ID: Hello, Yes, I already have the moving objects' coordinates (x, y values, the box's width and height, as well as the duration of the blur). I only need to use ffmpeg to blur that object in the video according to the provided coordinates. I have a working solution, but it becomes very slow the more blurred overlays I have. This is what I've tried with sendcmd to see if it could improve performance: ffmpeg -i "input.mp4" -filter_complex "[0:v]sendcmd=f=cropmask.cmd,crop=100:100:60:30,boxblur=10[fg]; [0:v][fg]overlay=60:30[v]" -map "[v]" -y ouput.mp4 Contents of cropmask.cmd: 1-2 [enter] crop w 20, [enter] crop h 20, [enter] crop x 50, [enter] crop y 50, [enter] overlay x 50, [enter] overlay y 50; 2-3 [enter] crop w 20, [enter] crop h 20, [enter] crop x 150, [enter] crop y 150, [enter] overlay x 150, [enter] overlay y 150; The problem is that it applies the new box blur inside the old box blur (i.e. the original blur is 100 x 100, the blur from second 1 to second 2 becomes 20x20 but the original blur remains at 100x100 although it also moves according to the new x,y values). I believe this is because ffmpeg does a first pass to generate the crops before applying the overlays? Also the original blur image becomes "static" (i.e. it is a static blurred image moving around). Thanks! Boris On Mon, Oct 31, 2016 at 6:22 AM, Nicolas George wrote: > Le decadi 10 brumaire, an CCXXV, Paul B Mahol a écrit : > > Short story: AFAIK it is not currently possible to track specific > > moving object with FFmpeg. > > I think Boris already has the coordinates of the objects and only needs > a way to inject them in FFmpeg. > > It seems boxblur can not change its coordinates on the fly. The best > course of action would be to implement process_command() for it, and it > would probably not be that hard. > > Without changing the code, since crop and overlay support > process_command(), using them to isolate the part of the image to apply > boxblur seems a workable solution, and sendcmd can do that. We do not > have enough information to know why it failed. > > (Please trim your quotes.) > > Regards, > > -- > Nicolas George > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > To unsubscribe, visit link above, or email > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe". > From lou at lrcd.com Mon Oct 31 19:29:43 2016 From: lou at lrcd.com (Lou) Date: Mon, 31 Oct 2016 09:29:43 -0800 Subject: [FFmpeg-user] how to set timeout for opening or reading rtmp stream In-Reply-To: <5057f7eb.d187.1581b13e2c1.Coremail.applemax82@163.com> References: <5057f7eb.d187.1581b13e2c1.Coremail.applemax82@163.com> Message-ID: <1477934983.3486133.772874537.40E06EF8@webmail.messagingengine.com> On Mon, Oct 31, 2016, at 06:10 AM, qw wrote: > is there some argument that can set the timeout for opening > and reading input rtmp stream? Try "-timeout" as an input option. Value is in seconds. From jnfo at grauman.com Mon Oct 31 21:09:52 2016 From: jnfo at grauman.com (Joshua Grauman) Date: Mon, 31 Oct 2016 12:09:52 -0700 (PDT) Subject: [FFmpeg-user] Changing video size mid-stream Message-ID: Hello all, I have a program that outputs raw video data to ffmpeg like this: ./gen-vid | ffmpeg -f rawvideo -pixel_format bgra -video_size 1366x713 -framerate 30 -i - -vcodec png overtest.avi I am wondering if there is any way to change the video size mid-stream without skipping any frames? Any ideas? Thanks! Josh From barsnick at gmx.net Mon Oct 31 21:31:08 2016 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 31 Oct 2016 20:31:08 +0100 Subject: [FFmpeg-user] Changing video size mid-stream In-Reply-To: References: Message-ID: <20161031193108.GA13365@sunshine.barsnick.net> On Mon, Oct 31, 2016 at 12:09:52 -0700, Joshua Grauman wrote: > ./gen-vid | ffmpeg -f rawvideo -pixel_format bgra -video_size 1366x713 -framerate 30 -i - -vcodec png overtest.avi > > I am wondering if there is any way to change the video size mid-stream > without skipping any frames? Any ideas? Thanks! Do you want to allow the raw input stream to resize, or do you want to resize the output? I believe the former can't be done. There's no way to tell ffmpeg to change those parameters. You would need to make ./gen-vid wrap its output into some codec and/or container which could provide its size. If, on the other hand, you want to resize only the output, you would use the scale filter along with the zmq filter. I outlined its use (for audio with the azmq filter) here: http://lists.ffmpeg.org/pipermail/ffmpeg-user/2016-September/033776.html Moritz