From rhleoni at yahoo.com.br Mon Jul 1 05:13:21 2013 From: rhleoni at yahoo.com.br (Ricardo Leoni) Date: Sun, 30 Jun 2013 20:13:21 -0700 (PDT) Subject: [FFmpeg-user] problems with ISDB-Tb Message-ID: <1372648401.23894.YahooMailNeo@web164501.mail.gq1.yahoo.com> Hello, I have some problems to open ts files that i captured with my isdb-t tuner. When i try the command: ffmpeg - i test.ts, the ffmpeg return me: "Invalid data found when processing input" ? I think the problem is the 16 extra bytes in the file header.. Could anyone help me? Thanks in advanced, Ricardo Leoni Cel.: (019) 9284-4598 From ajsinclair at gmail.com Mon Jul 1 05:55:52 2013 From: ajsinclair at gmail.com (Andrew Sinclair) Date: Mon, 1 Jul 2013 13:55:52 +1000 Subject: [FFmpeg-user] Infinite loop on color bars Message-ID: Does anyone know if it is possible to create an infinite loop off a test source? This would be very useful for testing live streams e.g. ffmpeg -f lavfi -i smptebars -t 10000000000000 -c:v libx264 -an -f flv rtmp://streamingserver/live/stream01 I am just make -t a large number but would like to know if there is a flag to make this infinite. From soho123.2012 at gmail.com Mon Jul 1 06:26:03 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Mon, 1 Jul 2013 12:26:03 +0800 Subject: [FFmpeg-user] ffserver how to skip frame if remote client can not receive at moment In-Reply-To: References: Message-ID: 2013/6/29 basteon > hi, > you should try -vf select=1 option for that. > > What is this "-vf select=1"? Is it for ffserver ? Is it for ffmpeg? ffmepg I use is branch v1.2, which version support the option? Thanks! From absolute01011 at gmail.com Mon Jul 1 06:40:01 2013 From: absolute01011 at gmail.com (Nick Novia) Date: Mon, 1 Jul 2013 00:40:01 -0400 Subject: [FFmpeg-user] problems with ISDB-Tb In-Reply-To: <1372648401.23894.YahooMailNeo@web164501.mail.gq1.yahoo.com> References: <1372648401.23894.YahooMailNeo@web164501.mail.gq1.yahoo.com> Message-ID: stop -Nick On Sun, Jun 30, 2013 at 11:13 PM, Ricardo Leoni wrote: > Hello, > I have some problems to open ts files that i captured with my isdb-t > tuner. When i try the command: ffmpeg - i test.ts, the ffmpeg return me: > "Invalid data found when processing input" > > I think the problem is the 16 extra bytes in the file header.. > > Could anyone help me? > > Thanks in advanced, > > > Ricardo Leoni > Cel.: (019) 9284-4598 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Mon Jul 1 08:17:23 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 1 Jul 2013 06:17:23 +0000 (UTC) Subject: [FFmpeg-user] Infinite loop on color bars References: Message-ID: Andrew Sinclair gmail.com> writes: > ffmpeg -f lavfi -i smptebars -t 10000000000000 -c:v libx264 > -an -f flv rtmp://streamingserver/live/stream01 > > I am just make -t a large number but would like to know if > there is a flag to make this infinite. You can remove -t. Carl Eugen From cehoyos at ag.or.at Mon Jul 1 08:18:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 1 Jul 2013 06:18:09 +0000 (UTC) Subject: [FFmpeg-user] problems with ISDB-Tb References: <1372648401.23894.YahooMailNeo@web164501.mail.gq1.yahoo.com> Message-ID: Ricardo Leoni yahoo.com.br> writes: > I have some problems to open ts files that i captured > with my isdb-t tuner. When i try the command: > ffmpeg - i test.ts, the ffmpeg return me: > "Invalid data found when processing input" (Complete, uncut console output missing.) Please provide a sample. Carl Eugen From krueger at lesspain.de Mon Jul 1 09:28:13 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Mon, 1 Jul 2013 09:28:13 +0200 Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams Message-ID: Hi, I have files created using Apple's Compressor that are MPEG-2 files for in 24p disguised in a 29.97 pulldown scheme. The files are OK and work in Apple's DVD authoring solution DVD Studio Pro. Files are detected by ffmpeg/ffprobe as follows: ffprobe -i ~/tmp/playground/dvd-24p/Compressor-24p-NTSC.m2v -show_streams ffprobe version N-54160-gfb0df5c Copyright (c) 2007-2013 the FFmpeg developers built on Jun 24 2013 11:53:38 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --disable-optimizations --disable-mmx --disable-stripping libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 16.100 / 55. 16.100 libavformat 55. 9.100 / 55. 9.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 Input #0, mpegvideo, from '/Users/krueger/tmp/playground/dvd-24p/Compressor-24p-NTSC.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 30.25 fps, 59.94 tbr, 1200k tbn, 59.94 tbc [STREAM] index=0 codec_name=mpeg2video codec_long_name=MPEG-2 video profile=Main codec_type=video codec_time_base=1001/60000 codec_tag_string=[0][0][0][0] codec_tag=0x0000 width=720 height=480 has_b_frames=1 sample_aspect_ratio=32:27 display_aspect_ratio=16:9 pix_fmt=yuv420p level=8 timecode=01:00:00:00 id=N/A r_frame_rate=60000/1001 avg_frame_rate=121/4 time_base=1/1200000 start_pts=N/A start_time=N/A duration_ts=N/A duration=N/A bit_rate=N/A nb_frames=N/A nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 [/STREAM] My question is now, can I do better than this detecting the pulldown scheme? Maybe this is rather a libav-user question if the answer is, I have to do it programmatically, which I suspect. (I know I should not write this but ..) reports the file as (excerpt): Frame rate : 23.976 fps Scan type : Progressive Scan order : 2:3 Pulldown and I am looking to do the same with ffmpeg (libs or command line). Another thing that I found noteworthy is, that when decoding the file into still frames for testing purposes, It uses 29.97 as the output frame rate (which AFAICS is correct if not reversing the pulldown), I observe that there are no interlacing artefacts in the resulting frames which I would expect if pulldown was applied. Instead frames are repeated from time to time, which will result in the stuttering effect well-known from watching badly converted NTSC->PAL material. Could it be the case that ffmpeg honors the repeat flags in the stream on a frame rather than on a field basis? I have to add that my knowledge as far as the implications of pulldown for the MPEG-2 bitstream are concerned, is very limited, so my assumption may be total BS. If this is considered a bug or you are interested in a sample, I can submit a trac issue with a small sample file. This is the command line and output from extracting the still frames: ffmpeg -i ~/tmp/playground/dvd-24p/Compressor-24p-NTSC.m2v ~/tmp/playground/dvd-24p/24p-pulldown-%3d.png ffmpeg version N-54160-gfb0df5c Copyright (c) 2000-2013 the FFmpeg developers built on Jun 24 2013 11:53:38 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: --disable-optimizations --disable-mmx --disable-stripping libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 16.100 / 55. 16.100 libavformat 55. 9.100 / 55. 9.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 Input #0, mpegvideo, from '/Users/krueger/tmp/playground/dvd-24p/Compressor-24p-NTSC.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 30.25 fps, 59.94 tbr, 1200k tbn, 59.94 tbc [swscaler @ 0x7fa1ba001c00] No accelerated colorspace conversion found from yuv420p to rgb24. [swscaler @ 0x7fa1ba009400] No accelerated colorspace conversion found from yuv420p to rgb24. [swscaler @ 0x7fa1ba011c00] No accelerated colorspace conversion found from yuv420p to rgb24. Output #0, image2, to '/Users/krueger/tmp/playground/dvd-24p/24p-pulldown-%3d.png': Metadata: encoder : Lavf55.9.100 Stream #0:0: Video: png, rgb24, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> png) Press [q] to stop, [?] for help frame= 60 fps=0.0 q=0.0 Lsize=N/A time=00:00:02.00 bitrate=N/A dup=12 drop=0 video:7894kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000272% I found this in the archives: http://permalink.gmane.org/gmane.comp.video.ffmpeg.devel/159880 But it looks as if it was never committed. Thanks in advance, Robert From cehoyos at ag.or.at Mon Jul 1 09:33:45 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 1 Jul 2013 07:33:45 +0000 (UTC) Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams References: Message-ID: Robert Kr?ger lesspain.de> writes: > My question is now, can I do better than this detecting > the pulldown scheme? Maybe this is rather a libav-user > question if the answer is, I have to do it > programmatically, which I suspect. > > (I know I should not write this but ..) You could add MPlayer output. Carl Eugen From krueger at lesspain.de Mon Jul 1 09:50:56 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Mon, 1 Jul 2013 09:50:56 +0200 Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams In-Reply-To: References: Message-ID: On Mon, Jul 1, 2013 at 9:33 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> My question is now, can I do better than this detecting >> the pulldown scheme? Maybe this is rather a libav-user >> question if the answer is, I have to do it >> programmatically, which I suspect. >> >> (I know I should not write this but ..) > > You could add MPlayer output. > > Carl Eugen if it helps in diagnosing this further I will of course install mplayer and do that. Apart from that, is there a specific reason why Media Info is so unacceptable as yet another independent (and as all software certainly not bugfree) source of information? From time to time I come across cases where it does produce better output than ffmpeg and then I find it helpful as one of several data points in analyzing bugs etc.. Best regards, Robert From staalebk at ifi.uio.no Mon Jul 1 12:06:04 2013 From: staalebk at ifi.uio.no (=?utf-8?B?U3TDpWxl?= Kristoffersen) Date: Mon, 1 Jul 2013 12:06:04 +0200 Subject: [FFmpeg-user] h264 screenshot from multicast Message-ID: <20130701100604.GA20160@putsch.kolbu.ws> Hi guys, I'm trying to generate a thumbnail from a multicast stream and I'm running into problems with h264 streams. I have written a small program to subscribe to a multicast stream, and write out the video-pid to disk and then run ffmpeg on it. Sometimes (1 out of 20 times perhaps) the output will be mostly gray (as in, they are missing some or most of their reference frames). One possible solution is to have it capture more data and generate thumbnail for a point in time a couple of seconds into the stream. While this works, it slows down the process a lot, and I want it to be as fast as possible. Is there a way to detect that the thumbnail generated is missing some reference data? Here is an example file that does not work: http://kolbu.ws/~chiller/h264fail.ts When I run it like this: # ffmpeg -i h264fail.ts -vframes 1 badframe.jpg this is the output: http://pastebin.com/KsVDqwPz and this is the file generated: http://kolbu.ws/~chiller/badframe.jpg If I ask for it to decode one second first, like this: # ffmpeg -i h264fail.ts -vframes 1 -ss 1 goodframe.jpg this is the output: http://pastebin.com/kwijcivf (The exact same output from ffmpeg, but with twice the run time) and this is the frame generated: http://kolbu.ws/~chiller/goodframe.jpg I can live with a couple of frames getting bad, as long as I could find a way to detect if it was happening, but the preferred way would be to have it decode until the frame was good, and then stop. Anyone have any input on what I could do? -- St?le Kristoffersen staalebk at ifi.uio.no From basteon at gmail.com Mon Jul 1 13:39:51 2013 From: basteon at gmail.com (basteon) Date: Mon, 1 Jul 2013 11:39:51 +0000 Subject: [FFmpeg-user] h264 screenshot from multicast In-Reply-To: <20130701100604.GA20160@putsch.kolbu.ws> References: <20130701100604.GA20160@putsch.kolbu.ws> Message-ID: Hello, Well, with -vframes 1 you'll write one frame from this ts output and first picture is grey. And you'd say so that sometimes happening, then it may loose packets in the network and you must skip them with select option. That becomes gray 20 times in minute or what period? On 1 July 2013 10:06, St?le Kristoffersen wrote: > Hi guys, I'm trying to generate a thumbnail from a multicast stream and I'm > running into problems with h264 streams. I have written a small program to > subscribe to a multicast stream, and write out the video-pid to disk and > then run ffmpeg on it. Sometimes (1 out of 20 times perhaps) the output > will be mostly gray (as in, they are missing some or most of their > reference frames). One possible solution is to have it capture more data > and generate thumbnail for a point in time a couple of seconds into the > stream. While this works, it slows down the process a lot, and I want it to > be as fast as possible. > > Is there a way to detect that the thumbnail generated is missing some > reference data? > > Here is an example file that does not work: > http://kolbu.ws/~chiller/h264fail.ts > > When I run it like this: > # ffmpeg -i h264fail.ts -vframes 1 badframe.jpg > this is the output: > http://pastebin.com/KsVDqwPz > and this is the file generated: > http://kolbu.ws/~chiller/badframe.jpg > > If I ask for it to decode one second first, like this: > # ffmpeg -i h264fail.ts -vframes 1 -ss 1 goodframe.jpg > this is the output: > http://pastebin.com/kwijcivf > (The exact same output from ffmpeg, but with twice the run time) > and this is the frame generated: > http://kolbu.ws/~chiller/goodframe.jpg > > I can live with a couple of frames getting bad, as long as I could find a > way to detect if it was happening, but the preferred way would be to have > it decode until the frame was good, and then stop. > > Anyone have any input on what I could do? > > -- > St?le Kristoffersen > staalebk at ifi.uio.no > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From basteon at gmail.com Mon Jul 1 13:42:30 2013 From: basteon at gmail.com (basteon) Date: Mon, 1 Jul 2013 11:42:30 +0000 Subject: [FFmpeg-user] ffserver how to skip frame if remote client can not receive at moment In-Reply-To: References: Message-ID: I use 0.10 and one another version I keep since 2010 supports that. On 1 July 2013 04:26, Soho Soho123 wrote: > 2013/6/29 basteon > > > hi, > > you should try -vf select=1 option for that. > > > > > What is this "-vf select=1"? > Is it for ffserver ? > Is it for ffmpeg? > ffmepg I use is branch v1.2, > which version support the option? > > Thanks! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From staalebk at ifi.uio.no Mon Jul 1 14:13:33 2013 From: staalebk at ifi.uio.no (=?utf-8?B?U3TDpWxl?= Kristoffersen) Date: Mon, 1 Jul 2013 14:13:33 +0200 Subject: [FFmpeg-user] h264 screenshot from multicast In-Reply-To: References: <20130701100604.GA20160@putsch.kolbu.ws> Message-ID: <20130701121333.GA72717@putsch.kolbu.ws> On 2013-07-01 at 11:39, basteon wrote: > Hello, > Well, with -vframes 1 you'll write one frame from this ts output and first > picture is grey. And you'd say so that sometimes happening, then it may > loose packets in the network and you must skip them with select option. It's not losing packets, and I know this because the CC counters are correct. > That becomes gray 20 times in minute or what period? I fetch 2MB from the video PID and then point ffmpeg to it. I missed a zero, the actual number is more like 200. So 1 out of 200 times ffmpeg creates an image containing gray stuff. If i use -ss 1 then it always produce good looking image. -- St?le Kristoffersen staalebk at ifi.uio.no From stefasab at gmail.com Mon Jul 1 19:06:17 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Mon, 1 Jul 2013 19:06:17 +0200 Subject: [FFmpeg-user] change in behavior with -vf yadif In-Reply-To: References: <1372531931.27270.YahooMailNeo@web160803.mail.bf1.yahoo.com> Message-ID: <20130701170617.GA9226@barisone> On date Saturday 2013-06-29 20:12:22 +0000, Paul B Mahol wrote: > On 6/29/13, Nicholas Robbins wrote: > > Hello, > > > > I recently upgraded from 0.10.7 to 1.0.7. When I did so I saw a change in > > behavior with the -vf yadif flag. > > > > > > I am using ffmpeg to converge mpeg2 interlaced video (dvd video) to x264. > > > > > > The command I was using was this: > > ffmpeg -report -v 9 -loglevel 99 -i in.mkv -c copy -vf yadif -c:v libx264 > > -preset veryfast -crf 20 /tmp/out.mkv > > > > With 0.10.7, I got this line in the log: [yadif @ 0x75fdbb64a0] mode:0 > > parity:-1 auto_enable:0 > > > > > > With 1.0.7, yadif isn't mentioned in the log at all. > > > > > > It looks, to my untrained eye that the output is deinterlaced, but I could > > be mistaken. So this is my question: > > > > a) am I putting the -vf yadif option in the right place? Maybe ffmpeg got > > pickier about where to put it? > > b) maybe ffmpeg is now less verbose? > > Yes, that message is removed. -loglevel verbose to show it. [...] From onemda at gmail.com Mon Jul 1 19:25:05 2013 From: onemda at gmail.com (Paul B Mahol) Date: Mon, 1 Jul 2013 17:25:05 +0000 Subject: [FFmpeg-user] change in behavior with -vf yadif In-Reply-To: <20130701170617.GA9226@barisone> References: <1372531931.27270.YahooMailNeo@web160803.mail.bf1.yahoo.com> <20130701170617.GA9226@barisone> Message-ID: On 7/1/13, Stefano Sabatini wrote: > On date Saturday 2013-06-29 20:12:22 +0000, Paul B Mahol wrote: >> On 6/29/13, Nicholas Robbins wrote: >> > Hello, >> > >> > I recently upgraded from 0.10.7 to 1.0.7. When I did so I saw a change >> > in >> > behavior with the -vf yadif flag. >> > >> > >> > I am using ffmpeg to converge mpeg2 interlaced video (dvd video) to >> > x264. >> > >> > >> > The command I was using was this: >> > ffmpeg -report -v 9 -loglevel 99 -i in.mkv -c copy -vf yadif -c:v >> > libx264 >> > -preset veryfast -crf 20 /tmp/out.mkv >> > >> > With 0.10.7, I got this line in the log: [yadif @ 0x75fdbb64a0] >> > mode:0 >> > parity:-1 auto_enable:0 >> > >> > >> > With 1.0.7, yadif isn't mentioned in the log at all. >> > >> > >> > It looks, to my untrained eye that the output is deinterlaced, but I >> > could >> > be mistaken. So this is my question: >> > >> > a) am I putting the -vf yadif option in the right place? Maybe ffmpeg >> > got >> > pickier about where to put it? >> > b) maybe ffmpeg is now less verbose? >> >> Yes, that message is removed. > > -loglevel verbose to show it. There is nothing to show. > > [...] > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Tue Jul 2 02:37:55 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 2 Jul 2013 00:37:55 +0000 (UTC) Subject: [FFmpeg-user] h264 screenshot from multicast References: <20130701100604.GA20160@putsch.kolbu.ws> Message-ID: St?le Kristoffersen ifi.uio.no> writes: > Here is an example file that does not work: > http://kolbu.ws/~chiller/h264fail.ts I created ticket #2738, thank you for the sample! Carl Eugen From cehoyos at ag.or.at Tue Jul 2 02:45:39 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 2 Jul 2013 00:45:39 +0000 (UTC) Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams References: Message-ID: Robert Kr?ger lesspain.de> writes: > if it helps in diagnosing this further I will of > course install mplayer and do that. MPlayer for pulldown-stream writes something like "Pulldown detected, changing framerate" which I consider helpful (in this case). But otoh, it is a known limitation that FFmpeg does not handle soft-pulldown very well, so the output will not give a lot of information, I just wanted to describe a possibility to show the issue esily. > Apart from that, is there a specific reason why > Media Info is so unacceptable as yet another > independent (and as all software certainly not > bugfree) source of information? It is not unacceptable, I just don't remember an issue / question where it was useful. (And I incorrectly expected that you have Mplayer installed.) Carl Eugen From twear at quicinc.com Tue Jul 2 03:07:18 2013 From: twear at quicinc.com (Wear, Tyler) Date: Tue, 2 Jul 2013 01:07:18 +0000 Subject: [FFmpeg-user] AVCodecContext profile not being set Message-ID: So I'm using MiniDLNA, but I'm seeing the the DLNA.ORG_PN is not being set correctly for AVC_MP4_BL_CIF15_AAC_520 files. That is mpeg4 files with AAC audio. After some tracing in their code, I found that this is because the AVCodecContext->profile value is set to -99, which is not valid. My understanding is that avcodec is responsible for setting this. I disable a lot of options in ffmpeg to reduce the size as much as possible, I'm worried that I indirectly disabled the option for setting the profile... Any help would be much appreciated. Thanks, Tyler Tyler Wear | Software Engineer Qualcomm Innovation Center, INC Office: (858) 658-3440 Mobile: (574) 904-6777 twear at quicinc.com From 550399108 at qq.com Tue Jul 2 04:17:18 2013 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Tue, 2 Jul 2013 10:17:18 +0800 Subject: [FFmpeg-user] Segmentation fault (core dumped) when run ffmpeg Message-ID: I use FFmpeg 1.2.1 to combiner a video and a audio together. When I run the command like /usr/local/bin/ffmpeg -y -i '10806287.v' -i '10806287.a' -map 0:0 -map 1:0 -vcodec copy -acodec copy 10806287.mp4 output like this: /usr/local/bin/ffmpeg -y -i '10806287.v' -i '10806287.a' -map 0:0 -map 1:0 -vcodec copy -acodec copy 10806287.mp4 ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 2 2013 09:13:57 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-pthreads --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-shared --enable-libass --enable-ffplay --enable-swscale --enable-postproc --enable-avfilter --enable-libbluray --enable-libschroedinger --enable-libspeex --enable-manpages --enable-libopenjpeg --enable-libmp3lame libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '10806287.v': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2013-06-26 14:47:24 Duration: 00:02:11.54, start: 0.000000, bitrate: 958 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 480x480, 957 kb/s, 24 fps, 24 tbr, 600 tbn, 1200 tbc Metadata: rotate : 90 creation_time : 2013-06-26 14:47:24 handler_name : Core Media Data Handler [mp3 @ 0x1321760] max_analyze_duration 5000000 reached at 5015510 microseconds [mp3 @ 0x1321760] Estimating duration from bitrate, this may be inaccurate Input #1, mp3, from '10806287.a': Metadata: encoder : Lavf53.21.0 Duration: 00:02:11.74, start: 0.000000, bitrate: 64 kb/s Stream #1:0: Audio: mp3, 22050 Hz, stereo, s16p, 64 kb/s Output #0, mp4, to '10806287.mp4': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt encoder : Lavf54.63.104 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480x480, q=2-31, 957 kb/s, 24 fps, 19200 tbn, 600 tbc Metadata: rotate : 90 creation_time : 2013-06-26 14:47:24 handler_name : Core Media Data Handler Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 22050 Hz, stereo, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help Segmentation fault (core dumped) but when I run this command again it printed like : /usr/local/bin/ffmpeg -y -i '10806287.v' -i '10806287.a' -map 0:0 -map 1:0 -vcodec copy -acodec copy 10806287.mp4 ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 2 2013 09:13:57 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-pthreads --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-shared --enable-libass --enable-ffplay --enable-swscale --enable-postproc --enable-avfilter --enable-libbluray --enable-libschroedinger --enable-libspeex --enable-manpages --enable-libopenjpeg --enable-libmp3lame libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '10806287.v': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt creation_time : 2013-06-26 14:47:24 Duration: 00:02:11.54, start: 0.000000, bitrate: 958 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 480x480, 957 kb/s, 24 fps, 24 tbr, 600 tbn, 1200 tbc Metadata: rotate : 90 creation_time : 2013-06-26 14:47:24 handler_name : Core Media Data Handler [mp3 @ 0x1cda760] max_analyze_duration 5000000 reached at 5015510 microseconds [mp3 @ 0x1cda760] Estimating duration from bitrate, this may be inaccurate Input #1, mp3, from '10806287.a': Metadata: encoder : Lavf53.21.0 Duration: 00:02:11.74, start: 0.000000, bitrate: 64 kb/s Stream #1:0: Audio: mp3, 22050 Hz, stereo, s16p, 64 kb/s Output #0, mp4, to '10806287.mp4': Metadata: major_brand : qt minor_version : 0 compatible_brands: qt encoder : Lavf54.63.104 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480x480, q=2-31, 957 kb/s, 24 fps, 19200 tbn, 600 tbc Metadata: rotate : 90 creation_time : 2013-06-26 14:47:24 handler_name : Core Media Data Handler Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 22050 Hz, stereo, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 3157 fps=0.0 q=-1.0 Lsize= 16490kB time=00:02:11.73 bitrate=1025.4kbits/s video:15372kB audio:1029kB subtitle:0 global headers:0kB muxing overhead 0.541460% Why the same command returns two different result?And How can I solve this problem. Thank you! From krueger at lesspain.de Tue Jul 2 09:14:21 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 2 Jul 2013 09:14:21 +0200 Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams In-Reply-To: References: Message-ID: On Tue, Jul 2, 2013 at 2:45 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> if it helps in diagnosing this further I will of >> course install mplayer and do that. > > MPlayer for pulldown-stream writes something like > "Pulldown detected, changing framerate" which I > consider helpful (in this case). OK, I will try that. > > But otoh, it is a known limitation that FFmpeg does > not handle soft-pulldown very well, so the output > will not give a lot of information, I just wanted > to describe a possibility to show the issue esily. Thank you for that information! So opening a feature request on Trac and maybe offering a bounty seems like something I could do, once I understand better what is missing. > >> Apart from that, is there a specific reason why >> Media Info is so unacceptable as yet another >> independent (and as all software certainly not >> bugfree) source of information? > > It is not unacceptable, I just don't remember an > issue / question where it was useful. > (And I incorrectly expected that you have Mplayer > installed.) OK, in cases like this, it is occasionally useful when it confirms an already existing assumption. In this case I created the file according to Apple's guidelines for producing an NTSC-DVD from 23.967p material and the output of MediaInfo made perfect sense, so it helped me. I will install mplayer in any case. A more or less funny sidenote: Quicktime does not play the pulldown file correctly either and it was created/processed by Apple tools in every step of the workflow :-). Thanks, Robert From cehoyos at ag.or.at Tue Jul 2 11:44:34 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 2 Jul 2013 09:44:34 +0000 (UTC) Subject: [FFmpeg-user] Segmentation fault (core dumped) when run ffmpeg References: Message-ID: ??? <550399108 qq.com> writes: > ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers Please also test current git head. > Why the same command returns two different result? This often indicates a hardware problem but please recompile with --disable-pthreads to rule out a race condition. Carl Eugen From cehoyos at ag.or.at Tue Jul 2 11:55:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 2 Jul 2013 09:55:09 +0000 (UTC) Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams References: Message-ID: Robert Kr?ger lesspain.de> writes: > > But otoh, it is a known limitation that FFmpeg does > > not handle soft-pulldown very well, so the output > > will not give a lot of information, I just wanted > > to describe a possibility to show the issue esily. > Quicktime does not play the pulldown file correctly > either and it was created/processed by Apple tools in ^^^^^^ > every step of the workflow . I realise now that what I wrote above was quite misleading: I suspect that ffplay plays your program stream with (soft) pulldown fine and that ffmpeg -i file -qscale 2 out.avi produces a file without A/V desync. Additionally, ffmpeg -i file -vf fps=24000/1001 -qscale 2 out.avi produces a file with no repeated frames (I'd expect). Everything else would be a bug that is unknown afaik. To insert telecined frames (you called them "interlaced" frames in your original mails) automatically would be the worst thing to do imo, you can get that effect with the telecine filter. I just wanted to write above that ffmpeg does not explicitly tell you about soft telecine and it does not allow you to create such streams (this is an open ticket) but using the libraries, it should be trivial to detect (just look at the timestamps). I am not convinced that another default behaviour will suddenly solve all problems, just run your stream through the usual inverse telecine chain, that should fix the output. (Or in other words: I wonder what mediainfo says about streams with mixed soft and hard pulldown.) Carl Eugen From doenerbudenchef at yahoo.de Tue Jul 2 12:19:45 2013 From: doenerbudenchef at yahoo.de (Alex) Date: Tue, 2 Jul 2013 03:19:45 -0700 (PDT) Subject: [FFmpeg-user] amerge problem with 2-pass encoding In-Reply-To: References: <1372253180706-4659734.post@n4.nabble.com> <1372331786638-4659754.post@n4.nabble.com> <1372333142824-4659755.post@n4.nabble.com> Message-ID: <1372760385203-4659808.post@n4.nabble.com> This works! Thanks! Best, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/amerge-problem-with-2-pass-encoding-tp4659734p4659808.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From 550399108 at qq.com Tue Jul 2 16:24:40 2013 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Tue, 2 Jul 2013 22:24:40 +0800 Subject: [FFmpeg-user] =?gb18030?b?u9i4tKO6ICBTZWdtZW50YXRpb24gZmF1bHQg?= =?gb18030?q?=28core_dumped=29_when_run_ffmpeg?= Message-ID: I tried the git one and got the same result! ------------------ ???? ------------------ ???: "Carl Eugen Hoyos"; ????: 2013?7?2?(???) ??5:44 ???: "ffmpeg-user"; ??: Re: [FFmpeg-user] Segmentation fault (core dumped) when run ffmpeg ??? <550399108 qq.com> writes: > ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers Please also test current git head. > Why the same command returns two different result? This often indicates a hardware problem but please recompile with --disable-pthreads to rule out a race condition. Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From krueger at lesspain.de Tue Jul 2 16:29:37 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 2 Jul 2013 16:29:37 +0200 Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams In-Reply-To: References: Message-ID: On Tue, Jul 2, 2013 at 11:55 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> > But otoh, it is a known limitation that FFmpeg does >> > not handle soft-pulldown very well, so the output >> > will not give a lot of information, I just wanted >> > to describe a possibility to show the issue esily. > >> Quicktime does not play the pulldown file correctly >> either and it was created/processed by Apple tools in > ^^^^^^ Oh, reading that again, I must say this was misleading. I did not mean to say that ffplay does not play the file as that is not what I tested. >> every step of the workflow . > > I realise now that what I wrote above was quite misleading: > I suspect that ffplay plays your program stream with > (soft) pulldown fine and that ffmpeg -i file -qscale 2 out.avi > produces a file without A/V desync. > Additionally, ffmpeg -i file -vf fps=24000/1001 -qscale 2 out.avi > produces a file with no repeated frames (I'd expect). > Everything else would be a bug that is unknown afaik. That's good to know and good news. I will test this. > > To insert telecined frames (you called them "interlaced" > frames in your original mails) automatically would be the > worst thing to do imo, you can get that effect with the > telecine filter. I am not quite sure what you mean by that. I do not want to insert anything either. I probably did not express myself correctly. > I just wanted to write above that ffmpeg does not explicitly > tell you about soft telecine and it does not allow you to > create such streams (this is an open ticket) but using the Do you mean Ticket #2602? > libraries, it should be trivial to detect (just look at the > timestamps). I am not convinced that another default behaviour OK, thanks, I will try that. > will suddenly solve all problems, just run your stream through Neither proposing, implying nor expecting that. > the usual inverse telecine chain, that should fix the output. > > (Or in other words: I wonder what mediainfo says about > streams with mixed soft and hard pulldown.) I would guess nothing that makes sense. Is this combination used anywhere? Thanks a lot! Your comments have helped me quite a bit. Robert From tevans.uk at googlemail.com Tue Jul 2 16:36:40 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Tue, 2 Jul 2013 15:36:40 +0100 Subject: [FFmpeg-user] =?utf-8?b?5Zue5aSN77yaIFNlZ21lbnRhdGlvbiBmYXVsdCAo?= =?utf-8?q?core_dumped=29_when_run_ffmpeg?= In-Reply-To: References: Message-ID: On Tue, Jul 2, 2013 at 3:24 PM, ??? <550399108 at qq.com> wrote: > I tried the git one and got the same result! Is "the same result" sometimes working, sometimes segfaulting? If you give a program the same input, you should get the same output, not different results. Have you tried different hardware to rule out a hardware defect? Cheers Tom From krueger at lesspain.de Tue Jul 2 17:14:51 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Tue, 2 Jul 2013 17:14:51 +0200 Subject: [FFmpeg-user] Detecting 24 FPS pulldown in MPEG-2 DVD streams In-Reply-To: References: Message-ID: On Tue, Jul 2, 2013 at 11:55 AM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > > Additionally, ffmpeg -i file -vf fps=24000/1001 -qscale 2 out.avi > produces a file with no repeated frames (I'd expect). just tested this and can confirm it works, which is great. From johnblackjr at gmail.com Tue Jul 2 17:18:16 2013 From: johnblackjr at gmail.com (John Black) Date: Tue, 2 Jul 2013 09:18:16 -0600 Subject: [FFmpeg-user] HLS playback problem on Stagefright 1.2 Message-ID: Hi all. I grabbed a bmw commercial MP4 from youtube and transmuxed with ffmpeg to HLS: ffmpeg -i bmw.mp4 -map 0 -vcodec copy -acodec copy -f segment -segment_time 10 -segment_list x -bsf h264_mp4toannexb bmw-%03d.ts This results in 12 ts files, each 10 secs long. This will play perfectly on VLC and QT, but on Android (using Stagefright 1.2) the video distorts badly on transition points between underlying ts segments. (The original MP4 plays fine.) Other HLS streams not produced with ffmpeg play fine on Stagefright. I tried transcoding with libx264 as well, but I get the same problem. It doesn't seem to be a codec problem and I'm suspecting the problem may lie with how ffmpeg is segmenting, or with the Stagefright player, but I'm unsure of how to debug this. I would be happy to follow up with any further info, eg, mpeg version number, build parameters, -i output for mp4 and resulting ts segments, etc. John From fingcmo at gmail.com Tue Jul 2 18:00:26 2013 From: fingcmo at gmail.com (Fing Cmo) Date: Tue, 2 Jul 2013 09:00:26 -0700 Subject: [FFmpeg-user] HLS playback problem on Stagefright 1.2 In-Reply-To: References: Message-ID: John, Try this and report on your successes :) i.e. follow the way he generates his and plays it back. http://blog.walterebert.com/creating-on-hls-video-stream-with-ffmpeg/ Ad. ..................................... On Tue, Jul 2, 2013 at 8:18 AM, John Black wrote: > Hi all. > > I grabbed a bmw commercial MP4 from youtube and transmuxed with ffmpeg to > HLS: > > ffmpeg -i bmw.mp4 -map 0 -vcodec copy -acodec copy -f segment -segment_time > 10 -segment_list x -bsf h264_mp4toannexb bmw-%03d.ts > > This results in 12 ts files, each 10 secs long. > > This will play perfectly on VLC and QT, but on Android (using Stagefright > 1.2) the video distorts badly on transition points between underlying ts > segments. (The original MP4 plays fine.) Other HLS streams not produced > with ffmpeg play fine on Stagefright. > > I tried transcoding with libx264 as well, but I get the same problem. It > doesn't seem to be a codec problem and I'm suspecting the problem may lie > with how ffmpeg is segmenting, or with the Stagefright player, but I'm > unsure of how to debug this. > > I would be happy to follow up with any further info, eg, mpeg version > number, build parameters, -i output for mp4 and resulting ts segments, etc. > > John > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From twear at quicinc.com Wed Jul 3 00:30:43 2013 From: twear at quicinc.com (Wear, Tyler) Date: Tue, 2 Jul 2013 22:30:43 +0000 Subject: [FFmpeg-user] AVCodecContext profile not being set In-Reply-To: References: Message-ID: A little more information. MiniDLNA is using avformat_open_input to retrieve the AVFormatContext, but when the AVCodecContext for the video stream is taken from the AVFormatContext the profile value is always -99 instead of 66 for the h.264 encoded aac 520 file. The more I look into this the more it looks like a possible FFMPEG error. Thanks, Tyler -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Wear, Tyler Sent: Monday, July 01, 2013 6:07 PM To: ffmpeg-user at ffmpeg.org Subject: [FFmpeg-user] AVCodecContext profile not being set So I'm using MiniDLNA, but I'm seeing the the DLNA.ORG_PN is not being set correctly for AVC_MP4_BL_CIF15_AAC_520 files. That is mpeg4 files with AAC audio. After some tracing in their code, I found that this is because the AVCodecContext->profile value is set to -99, which is not valid. My understanding is that avcodec is responsible for setting this. I disable a lot of options in ffmpeg to reduce the size as much as possible, I'm worried that I indirectly disabled the option for setting the profile... Any help would be much appreciated. Thanks, Tyler Tyler Wear | Software Engineer Qualcomm Innovation Center, INC Office: (858) 658-3440 Mobile: (574) 904-6777 twear at quicinc.com _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From twear at quicinc.com Wed Jul 3 01:03:30 2013 From: twear at quicinc.com (Wear, Tyler) Date: Tue, 2 Jul 2013 23:03:30 +0000 Subject: [FFmpeg-user] AVCodecContext profile not being set In-Reply-To: References: Message-ID: FYI, I tested with the nothing disabled from FFMPEG and I am still seeing the issue. Using ffmpeg 1.1 Tyler -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Wear, Tyler Sent: Tuesday, July 02, 2013 3:31 PM To: FFmpeg user questions Subject: Re: [FFmpeg-user] AVCodecContext profile not being set A little more information. MiniDLNA is using avformat_open_input to retrieve the AVFormatContext, but when the AVCodecContext for the video stream is taken from the AVFormatContext the profile value is always -99 instead of 66 for the h.264 encoded aac 520 file. The more I look into this the more it looks like a possible FFMPEG error. Thanks, Tyler -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Wear, Tyler Sent: Monday, July 01, 2013 6:07 PM To: ffmpeg-user at ffmpeg.org Subject: [FFmpeg-user] AVCodecContext profile not being set So I'm using MiniDLNA, but I'm seeing the the DLNA.ORG_PN is not being set correctly for AVC_MP4_BL_CIF15_AAC_520 files. That is mpeg4 files with AAC audio. After some tracing in their code, I found that this is because the AVCodecContext->profile value is set to -99, which is not valid. My understanding is that avcodec is responsible for setting this. I disable a lot of options in ffmpeg to reduce the size as much as possible, I'm worried that I indirectly disabled the option for setting the profile... Any help would be much appreciated. Thanks, Tyler Tyler Wear | Software Engineer Qualcomm Innovation Center, INC Office: (858) 658-3440 Mobile: (574) 904-6777 twear at quicinc.com _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From 550399108 at qq.com Wed Jul 3 03:15:30 2013 From: 550399108 at qq.com (=?gb18030?B?uqvI8MvJ?=) Date: Wed, 3 Jul 2013 09:15:30 +0800 Subject: [FFmpeg-user] =?gb18030?b?u9i4tKO6ILvYuLSjuiBTZWdtZW50YXRpb24g?= =?gb18030?q?fault_=28core_dumped=29_when_run_ffmpeg?= Message-ID: Hi, Tom. 'The same result' means I uninstalled the ffmpeg at version 1.2.1 and complied from the latest source from git. When I run the command I used before.It sometimes working and sometimes segfaulting. I complied this source at three computers and got the same result as above. I used to run this command by ffmpeg at version r26400. It worked well. But it can save the rotate information of the video.So I want to use a newer one. ------------------ ???? ------------------ ???: "Tom Evans"; ????: 2013?7?2?(???) ??10:36 ???: "FFmpeg user questions"; ??: Re: [FFmpeg-user]??? Segmentation fault (core dumped) when run ffmpeg On Tue, Jul 2, 2013 at 3:24 PM, ??? <550399108 at qq.com> wrote: > I tried the git one and got the same result! Is "the same result" sometimes working, sometimes segfaulting? If you give a program the same input, you should get the same output, not different results. Have you tried different hardware to rule out a hardware defect? Cheers Tom _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From doenerbudenchef at yahoo.de Wed Jul 3 14:52:38 2013 From: doenerbudenchef at yahoo.de (Alex) Date: Wed, 3 Jul 2013 05:52:38 -0700 (PDT) Subject: [FFmpeg-user] MXF with XDCAM HD422 Message-ID: <1372855958346-4659820.post@n4.nabble.com> Hi all, I want to encode a prores 422 file (1080p/25) to MXF with OP1a (SMPTE 378M). Compression should be a XDCAM HD422 (MPEG2) with 4:2:2, 50 Mbit/s and Long-GOP. I tried the following and got several error messages: Command: ffmpeg -i test.mov -pix_fmt yuv422p -vcodec mpeg2video -non_linear_quant 1 -flags +ildct+ilme -top 1 -dc 10 -intra_vlc 1 -qmax 3 -lmin "1*QP2LAMBDA" -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -g 12 -b:v 50000k -minrate 50000k -maxrate 50000k -bufsize 8000k -acodec pcm_s16le -ar 48000 -bf 2 -ac 2 -f mxf_d10 output.mxf Output: ffmpeg version N-54207-ge59fb3f Copyright (c) 2000-2013 the FFmpeg developers built on Jun 25 2013 21:55:00 with gcc 4.7.3 (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 -- ble-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable- vpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 17.100 / 55. 17.100 libavformat 55. 10.100 / 55. 10.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003be4a0] Stream #1: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003be4a0] Stream #2: not enough frames to estimate rate; consider increasing probesize Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-03-18 13:06:32 Duration: 00:03:08.96, start: 0.000000, bitrate: 184313 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 182769 kb/s, SAR 1920:1920 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2013-03-18 13:06:32 handler_name : Apple Alias Data Handler timecode : 00:00:00:01 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2013-03-18 13:06:32 handler_name : Apple Alias Data Handler timecode : 00:00:00:01 Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-03-18 13:18:27 handler_name : Apple Alias Data Handler timecode : 00:00:00:01 File 'output.mxf' already exists. Overwrite ? [y/N] y Output #0, mxf_d10, to 'output.mxf': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf55.10.100 Stream #0:0(eng): Video: mpeg2video (xd5c / 0x63356478), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-3, 50000 kb/s, 25 tbn, 25 tbc Metadata: creation_time : 2013-03-18 13:06:32 handler_name : Apple Alias Data Handler timecode : 00:00:00:01 Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2013-03-18 13:06:32 handler_name : Apple Alias Data Handler timecode : 00:00:00:01 Stream mapping: Stream #0:0 -> #0:0 (prores -> mpeg2video) Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le) Press [q] to stop, [?] for help cannot fill d-10 video packete= 32999kB time=00:00:05.24 bitrate=51589.3kbits/s cannot fill d-10 video packete= 41614kB time=00:00:06.04 bitrate=56440.7kbits/s cannot fill d-10 video packete= 41971kB time=00:00:06.40 bitrate=53722.3kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 17 times cannot fill d-10 video packete= 1001931kB time=00:02:12.04 bitrate=62161.6kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 8 times cannot fill d-10 video packete= 1012526kB time=00:02:13.28 bitrate=62234.5kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet cannot fill d-10 video packete= 1014452kB time=00:02:13.56 bitrate=62222.1kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 10 times cannot fill d-10 video packete= 1023922kB time=00:02:14.52 bitrate=62354.8kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 1 times cannot fill d-10 video packete= 1024994kB time=00:02:14.84 bitrate=62271.9kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 10 times cannot fill d-10 video packete= 1034857kB time=00:02:15.88 bitrate=62390.0kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet cannot fill d-10 video packete= 1035996kB time=00:02:16.20 bitrate=62311.9kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 10 times cannot fill d-10 video packete= 1045977kB time=00:02:17.32 bitrate=62399.1kbits/s cannot fill d-10 video packete= 1047529kB time=00:02:17.64 bitrate=62346.4kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 8 times cannot fill d-10 video packete= 1057005kB time=00:02:18.80 bitrate=62384.6kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 1 times cannot fill d-10 video packete= 1059597kB time=00:02:19.12 bitrate=62393.8kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 8 times cannot fill d-10 video packete= 1068043kB time=00:02:19.88 bitrate=62549.4kbits/s cannot fill d-10 video packete= 1068377kB time=00:02:20.20 bitrate=62426.1kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 14 times cannot fill d-10 video packete= 1079824kB time=00:02:21.60 bitrate=62471.2kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 13 times cannot fill d-10 video packete= 1090319kB time=00:02:22.64 bitrate=62618.4kbits/s cannot fill d-10 video packete= 1091266kB time=00:02:23.00 bitrate=62515.0kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 10 times cannot fill d-10 video packete= 1101488kB time=00:02:24.28 bitrate=62540.8kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 6 times cannot fill d-10 video packete= 1107846kB time=00:02:24.60 bitrate=62762.6kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 3 times cannot fill d-10 video packete= 1113141kB time=00:02:25.44 bitrate=62698.4kbits/s cannot fill d-10 video packete= 1114526kB time=00:02:25.80 bitrate=62621.4kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 9 times cannot fill d-10 video packete= 1124328kB time=00:02:27.00 bitrate=62656.4kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 12 times cannot fill d-10 video packete= 1135578kB time=00:02:28.20 bitrate=62771.0kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet cannot fill d-10 video packete= 1137198kB time=00:02:28.56 bitrate=62708.1kbits/s [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet Last message repeated 9 times frame= 4457 fps= 17 q=1.0 Lsize= 1366084kB time=00:02:58.24 bitrate=62785.9kbits/s Thanks, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MXF-with-XDCAM-HD422-tp4659820.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From krueger at lesspain.de Wed Jul 3 17:50:54 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Wed, 3 Jul 2013 17:50:54 +0200 Subject: [FFmpeg-user] MXF with XDCAM HD422 In-Reply-To: <1372855958346-4659820.post@n4.nabble.com> References: <1372855958346-4659820.post@n4.nabble.com> Message-ID: On Wed, Jul 3, 2013 at 2:52 PM, Alex wrote: > Hi all, > > I want to encode a prores 422 file (1080p/25) to MXF with OP1a (SMPTE 378M). > Compression should be a XDCAM HD422 (MPEG2) with 4:2:2, 50 Mbit/s and > Long-GOP. I tried the following and got several error messages: > > Command: > > ffmpeg -i test.mov -pix_fmt yuv422p -vcodec mpeg2video -non_linear_quant 1 > -flags +ildct+ilme -top 1 -dc 10 -intra_vlc 1 -qmax 3 -lmin "1*QP2LAMBDA" > -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -g 12 -b:v 50000k -minrate > 50000k -maxrate 50000k -bufsize 8000k -acodec pcm_s16le -ar 48000 -bf 2 -ac > 2 -f mxf_d10 output.mxf > > Output: > > ffmpeg version N-54207-ge59fb3f Copyright (c) 2000-2013 the FFmpeg > developers > built on Jun 25 2013 21:55:00 with gcc 4.7.3 (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 -- > ble-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libopenjpeg --enable-libopus --enable-librtmp > --enable-libschroedinger --enable-libsoxr --enable-libspeex > --enable-libtheora --enable-libtwolame --enable-libvo-aacenc > --enable-libvo-amrwbenc --enable-libvorbis --enable- > vpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib > libavutil 52. 37.101 / 52. 37.101 > libavcodec 55. 17.100 / 55. 17.100 > libavformat 55. 10.100 / 55. 10.100 > libavdevice 55. 2.100 / 55. 2.100 > libavfilter 3. 77.101 / 3. 77.101 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003be4a0] Stream #1: not enough frames to > estimate rate; consider increasing probesize > [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003be4a0] Stream #2: not enough frames to > estimate rate; consider increasing probesize > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > creation_time : 2013-03-18 13:06:32 > Duration: 00:03:08.96, start: 0.000000, bitrate: 184313 kb/s > Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, > 1920x1080, 182769 kb/s, SAR 1920:1920 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 > tbc > Metadata: > creation_time : 2013-03-18 13:06:32 > handler_name : Apple Alias Data Handler > timecode : 00:00:00:01 > Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, > stereo, s16, 1536 kb/s > Metadata: > creation_time : 2013-03-18 13:06:32 > handler_name : Apple Alias Data Handler > timecode : 00:00:00:01 > Stream #0:2(eng): Data: none (tmcd / 0x64636D74) > Metadata: > creation_time : 2013-03-18 13:18:27 > handler_name : Apple Alias Data Handler > timecode : 00:00:00:01 > File 'output.mxf' already exists. Overwrite ? [y/N] y > Output #0, mxf_d10, to 'output.mxf': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > encoder : Lavf55.10.100 > Stream #0:0(eng): Video: mpeg2video (xd5c / 0x63356478), yuv422p, > 1920x1080 [SAR 1:1 DAR 16:9], q=2-3, 50000 kb/s, 25 tbn, 25 tbc > Metadata: > creation_time : 2013-03-18 13:06:32 > handler_name : Apple Alias Data Handler > timecode : 00:00:00:01 > Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s > Metadata: > creation_time : 2013-03-18 13:06:32 > handler_name : Apple Alias Data Handler > timecode : 00:00:00:01 > Stream mapping: > Stream #0:0 -> #0:0 (prores -> mpeg2video) > Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le) > Press [q] to stop, [?] for help > cannot fill d-10 video packete= 32999kB time=00:00:05.24 > bitrate=51589.3kbits/s > cannot fill d-10 video packete= 41614kB time=00:00:06.04 > bitrate=56440.7kbits/s > cannot fill d-10 video packete= 41971kB time=00:00:06.40 > bitrate=53722.3kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 17 times > cannot fill d-10 video packete= 1001931kB time=00:02:12.04 > bitrate=62161.6kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 8 times > cannot fill d-10 video packete= 1012526kB time=00:02:13.28 > bitrate=62234.5kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > cannot fill d-10 video packete= 1014452kB time=00:02:13.56 > bitrate=62222.1kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 10 times > cannot fill d-10 video packete= 1023922kB time=00:02:14.52 > bitrate=62354.8kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 1 times > cannot fill d-10 video packete= 1024994kB time=00:02:14.84 > bitrate=62271.9kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 10 times > cannot fill d-10 video packete= 1034857kB time=00:02:15.88 > bitrate=62390.0kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > cannot fill d-10 video packete= 1035996kB time=00:02:16.20 > bitrate=62311.9kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 10 times > cannot fill d-10 video packete= 1045977kB time=00:02:17.32 > bitrate=62399.1kbits/s > cannot fill d-10 video packete= 1047529kB time=00:02:17.64 > bitrate=62346.4kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 8 times > cannot fill d-10 video packete= 1057005kB time=00:02:18.80 > bitrate=62384.6kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 1 times > cannot fill d-10 video packete= 1059597kB time=00:02:19.12 > bitrate=62393.8kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 8 times > cannot fill d-10 video packete= 1068043kB time=00:02:19.88 > bitrate=62549.4kbits/s > cannot fill d-10 video packete= 1068377kB time=00:02:20.20 > bitrate=62426.1kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 14 times > cannot fill d-10 video packete= 1079824kB time=00:02:21.60 > bitrate=62471.2kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 13 times > cannot fill d-10 video packete= 1090319kB time=00:02:22.64 > bitrate=62618.4kbits/s > cannot fill d-10 video packete= 1091266kB time=00:02:23.00 > bitrate=62515.0kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 10 times > cannot fill d-10 video packete= 1101488kB time=00:02:24.28 > bitrate=62540.8kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 6 times > cannot fill d-10 video packete= 1107846kB time=00:02:24.60 > bitrate=62762.6kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 3 times > cannot fill d-10 video packete= 1113141kB time=00:02:25.44 > bitrate=62698.4kbits/s > cannot fill d-10 video packete= 1114526kB time=00:02:25.80 > bitrate=62621.4kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 9 times > cannot fill d-10 video packete= 1124328kB time=00:02:27.00 > bitrate=62656.4kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 12 times > cannot fill d-10 video packete= 1135578kB time=00:02:28.20 > bitrate=62771.0kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > cannot fill d-10 video packete= 1137198kB time=00:02:28.56 > bitrate=62708.1kbits/s > [mxf_d10 @ 000000000249e7a0] cannot fill d-10 video packet > Last message repeated 9 times > frame= 4457 fps= 17 q=1.0 Lsize= 1366084kB time=00:02:58.24 > bitrate=62785.9kbits/s > Why the "-f mxf_d10" in there? I must admit, I was not aware of this muxer but D10 is an SD format and certainly not XDCAM. I just looked at your output briefly but the error messages contained a lot of "d-10" stuff. I'd try again just without the "-f mxf_d10". HTH, Robert From grovher at gmail.com Wed Jul 3 18:55:32 2013 From: grovher at gmail.com (grovher) Date: Wed, 3 Jul 2013 09:55:32 -0700 (PDT) Subject: [FFmpeg-user] how to add more than 1 stream of audio to a TS filesetting the language? In-Reply-To: References: Message-ID: <1372870532784-4659822.post@n4.nabble.com> how to create Elementary Stream (.es) or generate paquet elementary Stream (P.E.S.) of video and audio separately (x264 and AAC), from videoTdT.mp4? information: ffmpeg -i videoTdT.mp4 ------------------------------------------------------------------------------------------------------------------------ ffmpeg version git-2013-07-01-b791a08 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 1 2013 17:22:27 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) configuration: --prefix=/home/grovher/ffmpeg_build --extra-cflags=-I/home/grovher/ffmpeg_build/include --extra-ldflags=-L/home/grovher/ffmpeg_build/lib --bindir=/home/grovher/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libx264 --enable-nonfree libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.100 / 55. 18.100 libavformat 55. 10.100 / 55. 10.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videoTdT.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isomavc1mp42 creation_time : 2010-04-07 18:43:22 Duration: 00:02:09.00, start: 0.000000, bitrate: 2102 kb/s Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 110 kb/s Metadata: creation_time : 2010-04-07 18:43:22 handler_name : (C) 2007 Google Inc. v08.13.2007. Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1989 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc Metadata: creation_time : 2010-04-07 18:43:23 handler_name : (C) 2007 Google Inc. v08.13.2007. ------------------------------------------------------------------------------------------------------------------------ can you help? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-add-more-than-1-stream-of-audio-to-a-TS-file-setting-the-language-tp4651132p4659822.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From oliver at fromme.com Wed Jul 3 16:44:30 2013 From: oliver at fromme.com (Oliver Fromme) Date: Wed, 3 Jul 2013 16:44:30 +0200 (CEST) Subject: [FFmpeg-user] Hardcoding subtitles Message-ID: <201307031444.r63EiU0R058599@haluter.fromme.com> I'm trying to "hardcode" forced subtitles into a video, so they are always displayed, independent of the player's subtitle support. In the end I have been successful, but it was kind of an adventure. I'm trying to describe the problems that I encountered, maybe this can help to make ffmpeg better. My ffmpeg version is a recent git snapshot, just a few days old. These are my input files: Video and audio are in an MPEG2 PS file that comes from a DVD (via "mplayer -dumpstream"). The subtitles are in VOBSUB format (I think ffmpeg calls this "dvdsub"), i.e. .idx + .sub files. These have been retrieved from the same DVD with "mencoder -vobsubout". The first problem was that ffmpeg didn't want to read the VOBSUB files directly, no matter what I tried. It seemed to be unable to detect the format automatically, and I was unable to find out how to specify it on the command line. I probably tried more than 20 variantions, without success. However, it's not a big deal: I just wrapped the VOBSUB stream into an MKV container (using mkvmerge), and ffmpeg happily accepted it. So, my input files are now the MPEG2 PS file (same as before) and an MKV file containing just the VOBSUB subtitle stream. According to the excellent manual page, the overlay filter can be used for hardcoding subtitles, so I tried that. The filter specification was simple: -filter_complex "[0:v][1:s]overlay" where file 0 is the MPEG2 PS and file 1 is the MKV file with the VOBSUB stream. If it matters (I don't think it does), here's the complete command line: ffmpeg1 -loglevel warning -stats -i dvdstream-3.mpg -i subtitles-3-1.mkv \ -filter_complex "[0:v][1:s]overlay" \ -c:v libx264 -preset veryslow -tune film -crf 18 -level 4.1 \ -codec:a copy -map 0:a -sn dvdstream-3-vid.mkv Basically, that command worked and created a video with hardcoded subtitles. However, there was one small problem: The duration of the last subtitle was "infinite", i.e. the very last subtitle stayed on the screen until end of the video. It was visible for several minutes including the whole end credits of the movie. Not nice. So I went back to the manual page and re-read the section about the overlay filter. I noticed the "repeatlast" option of this filter, but the last sentence said something like "A value of 0 ... is enabled by default", so I thought that 0 was the default. But I didn't look closely enough ... Upon further inspection, it's just the other way around. Of course that's my mistake, but maybe the manual page could be made a little clearer? Something like "The default value is 1" would probably be clear enough. Anyway, I tried to disable that flag: -filter_complex "[0:v][1:s]overlay=repeatlast=0" It did make a difference, but not what I expected: Now the last subtitle didn't appear at all! I think this is a bug, although I wouldn't rule out the possibility that I did something wrong again. I tried with a different DVD, but same result: When repeatlast=0 is specified, the last VOBSUB subtitle is omitted completely. So, now I pondered over a workaround for that problem. I skimmed over some examples in the manual page that gave me an Idea: I could try to use the gte() function to forcefully end the last subtitle at the desired time stamp. First I used mplayer to look for the exact position where the last subtitle was supposed to end. In this case that was at t = 3375 (that's 56 minutes and 15 seconds). I reverted the "repeatlast" flag to the default so the last subtitle was visible, and used gte() to cancel it at the proper time: -filter_complex "[0:v][1:s]overlay=x='if(gt(t,3375),NAN,x)'" The idee was: If the time is beyond 3375, set the x value of the subtitle frames to NAN (effectively disabling them), otherwise keep them at their original x value. At least I thought that's what the x variable meant. Obviously I was wrong, because the resulting video did not contain *any* subtitles at all. No subtitles anywhere. Either I misunderstood the description of the x variable in the manual page (and in this case the manual page should be clarified), or there's another bug. In my next attempt I replaced the x variable with 0, which should be the default for x anyway: -filter_complex "[0:v][1:s]overlay=x='if(gt(t,3375),NAN,0)'" Finally, that produced the expected result, and I'm happy now. Having to find out the ending time stamp for the last subtitle is a little cumbersome and can't be done automatically (I don't know a CLI tool that's able to display durations or ending time stamps from VOBSUB streams). Therefore I would appreciate if the bug with repeatlast=0 could be fixed, so my workaround won't be necessary anymore. Unfortunately I can't easily upload sample files, because the full movie is too large, and I don't have appropriate software to cut a short clip from it that also retains the subtitles while keeping them in sync with the movie. Best regards Oliver -- From compuvision.sr at gmail.com Wed Jul 3 21:50:11 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 3 Jul 2013 16:50:11 -0300 Subject: [FFmpeg-user] Hardcoding subtitles In-Reply-To: <201307031444.r63EiU0R058599@haluter.fromme.com> References: <201307031444.r63EiU0R058599@haluter.fromme.com> Message-ID: >In the end I have been successful, but it was kind of an adventure. >I'm trying to describe the problems that I encountered, maybe this > can help to make ffmpeg better. Thank you verymuch for this post! Maybe time to create a Wiki page. It will help me a lot to encode other video's with hardcodes subs. Yours sincerely, Albert From onemda at gmail.com Wed Jul 3 21:57:28 2013 From: onemda at gmail.com (Paul B Mahol) Date: Wed, 3 Jul 2013 19:57:28 +0000 Subject: [FFmpeg-user] Hardcoding subtitles In-Reply-To: <201307031444.r63EiU0R058599@haluter.fromme.com> References: <201307031444.r63EiU0R058599@haluter.fromme.com> Message-ID: On 7/3/13, Oliver Fromme wrote: > I'm trying to "hardcode" forced subtitles into a video, so they are > always displayed, independent of the player's subtitle support. > In the end I have been successful, but it was kind of an adventure. > I'm trying to describe the problems that I encountered, maybe this > can help to make ffmpeg better. > > My ffmpeg version is a recent git snapshot, just a few days old. > > These are my input files: Video and audio are in an MPEG2 PS file > that comes from a DVD (via "mplayer -dumpstream"). The subtitles > are in VOBSUB format (I think ffmpeg calls this "dvdsub"), i.e. > .idx + .sub files. These have been retrieved from the same DVD > with "mencoder -vobsubout". > > The first problem was that ffmpeg didn't want to read the VOBSUB > files directly, no matter what I tried. It seemed to be unable > to detect the format automatically, and I was unable to find out > how to specify it on the command line. I probably tried more > than 20 variantions, without success. However, it's not a big > deal: I just wrapped the VOBSUB stream into an MKV container Yes, it is big deal, if you want bug fixed, provide sample and open bug report. You don't need to upload full file. Just enough so bug can be reproduced. > (using mkvmerge), and ffmpeg happily accepted it. So, my input > files are now the MPEG2 PS file (same as before) and an MKV file > containing just the VOBSUB subtitle stream. > > According to the excellent manual page, the overlay filter can > be used for hardcoding subtitles, so I tried that. The filter > specification was simple: > > -filter_complex "[0:v][1:s]overlay" > > where file 0 is the MPEG2 PS and file 1 is the MKV file with the > VOBSUB stream. If it matters (I don't think it does), here's > the complete command line: > > ffmpeg1 -loglevel warning -stats -i dvdstream-3.mpg -i subtitles-3-1.mkv \ > -filter_complex "[0:v][1:s]overlay" \ > -c:v libx264 -preset veryslow -tune film -crf 18 -level 4.1 \ > -codec:a copy -map 0:a -sn dvdstream-3-vid.mkv > > Basically, that command worked and created a video with hardcoded > subtitles. However, there was one small problem: The duration > of the last subtitle was "infinite", i.e. the very last subtitle > stayed on the screen until end of the video. It was visible for > several minutes including the whole end credits of the movie. > Not nice. So I went back to the manual page and re-read the > section about the overlay filter. > > I noticed the "repeatlast" option of this filter, but the last > sentence said something like "A value of 0 ... is enabled by > default", so I thought that 0 was the default. But I didn't > look closely enough ... Upon further inspection, it's just the > other way around. Of course that's my mistake, but maybe the > manual page could be made a little clearer? Something like > "The default value is 1" would probably be clear enough. > > Anyway, I tried to disable that flag: > > -filter_complex "[0:v][1:s]overlay=repeatlast=0" > > It did make a difference, but not what I expected: Now the last > subtitle didn't appear at all! I think this is a bug, although > I wouldn't rule out the possibility that I did something wrong > again. I tried with a different DVD, but same result: When > repeatlast=0 is specified, the last VOBSUB subtitle is omitted > completely. > > So, now I pondered over a workaround for that problem. > I skimmed over some examples in the manual page that gave me an > Idea: I could try to use the gte() function to forcefully end > the last subtitle at the desired time stamp. > > First I used mplayer to look for the exact position where the > last subtitle was supposed to end. In this case that was at > t = 3375 (that's 56 minutes and 15 seconds). I reverted the > "repeatlast" flag to the default so the last subtitle was > visible, and used gte() to cancel it at the proper time: > > -filter_complex "[0:v][1:s]overlay=x='if(gt(t,3375),NAN,x)'" > > The idee was: If the time is beyond 3375, set the x value of > the subtitle frames to NAN (effectively disabling them), > otherwise keep them at their original x value. At least I > thought that's what the x variable meant. > > Obviously I was wrong, because the resulting video did not > contain *any* subtitles at all. No subtitles anywhere. > Either I misunderstood the description of the x variable in > the manual page (and in this case the manual page should be > clarified), or there's another bug. In my next attempt I > replaced the x variable with 0, which should be the default > for x anyway: > > -filter_complex "[0:v][1:s]overlay=x='if(gt(t,3375),NAN,0)'" > > Finally, that produced the expected result, and I'm happy now. > > Having to find out the ending time stamp for the last subtitle > is a little cumbersome and can't be done automatically (I don't > know a CLI tool that's able to display durations or ending > time stamps from VOBSUB streams). Therefore I would appreciate > if the bug with repeatlast=0 could be fixed, so my workaround > won't be necessary anymore. > > Unfortunately I can't easily upload sample files, because the > full movie is too large, and I don't have appropriate software > to cut a short clip from it that also retains the subtitles > while keeping them in sync with the movie. From johnblackjr at gmail.com Thu Jul 4 03:54:06 2013 From: johnblackjr at gmail.com (John Black) Date: Wed, 3 Jul 2013 19:54:06 -0600 Subject: [FFmpeg-user] Muxing private stream into/from mp4 and mpegts Message-ID: Suppose I have a new track (that is neither audio nor video nor subtitles) and I want to mux into an existing mp4 file or extract from an mp4 file. Or I want to mux into/from mpegts. Can ffmpeg do this for me without source mods? I'm going to guess the answer is "no" but thought there might be some obscure feature I haven't run across. Thanks in advance! John From horsley1953 at gmail.com Thu Jul 4 05:00:53 2013 From: horsley1953 at gmail.com (Tom Horsley) Date: Wed, 3 Jul 2013 23:00:53 -0400 Subject: [FFmpeg-user] Arbitrarily correct packets? Message-ID: <20130703230053.3a998b6d@zooty> I keep fighting with files downloaded from my TiVo. Some combination of horrible things broadcasters do to the stream on the way to my TiVo and horrible things the TiVo itself does when converting from the TS to PS mpg often leaves the audio and video screwed up in wondrous ways. I'm just wondering: Since I happen to know this is all NTSC format 29.97 fps video, can I force ffmpeg to utterly re-write the packet info with nice clean alternating fixed length video and audio frames while I'm doing the (2-pass) conversion to H.264? If I can, is there any chance it might actually work and leave the audio and video in sync? Just curious. From cehoyos at ag.or.at Thu Jul 4 11:00:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 4 Jul 2013 09:00:41 +0000 (UTC) Subject: [FFmpeg-user] Arbitrarily correct packets? References: <20130703230053.3a998b6d@zooty> Message-ID: Tom Horsley gmail.com> writes: > Some combination of horrible things broadcasters do to the > stream on the way to my TiVo and horrible things the > TiVo itself does when converting from the TS to PS > mpg often leaves the audio and video screwed up in wondrous > ways. Please provide a sample. Carl Eugen From cehoyos at ag.or.at Thu Jul 4 11:08:55 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 4 Jul 2013 09:08:55 +0000 (UTC) Subject: [FFmpeg-user] Hardcoding subtitles References: <201307031444.r63EiU0R058599@haluter.fromme.com> Message-ID: Oliver Fromme fromme.com> writes: > Basically, that command worked and created a video with hardcoded > subtitles. However, there was one small problem: The duration > of the last subtitle was "infinite" Did you test -fix_sub_duration ? Carl Eugen From oliver at fromme.com Thu Jul 4 12:36:53 2013 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 4 Jul 2013 12:36:53 +0200 (CEST) Subject: [FFmpeg-user] Hardcoding subtitles In-Reply-To: Message-ID: <201307041036.r64AarN0062109@haluter.fromme.com> Paul B Mahol wrote: > On 7/3/13, Oliver Fromme wrote: > > [...] > > The first problem was that ffmpeg didn't want to read the VOBSUB > > files directly, no matter what I tried. It seemed to be unable > > to detect the format automatically, and I was unable to find out > > how to specify it on the command line. I probably tried more > > than 20 variantions, without success. However, it's not a big > > deal: I just wrapped the VOBSUB stream into an MKV container > > Yes, it is big deal, if you want bug fixed, provide sample and open bug report. It doesn't appear to be a bug, I think. It seems that reading "raw" VOBSUB .idx files is simply not supported. Also, it's not mentioned anywhere in the manual page or in the wiki. Best regards Oliver -- From oliver at fromme.com Thu Jul 4 13:05:01 2013 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 4 Jul 2013 13:05:01 +0200 (CEST) Subject: [FFmpeg-user] Hardcoding subtitles In-Reply-To: Message-ID: <201307041105.r64B51dG062186@haluter.fromme.com> Carl Eugen Hoyos wrote: > Oliver Fromme fromme.com> writes: > > > Basically, that command worked and created a video with hardcoded > > subtitles. However, there was one small problem: The duration > > of the last subtitle was "infinite" > > Did you test -fix_sub_duration ? Yes, I did. I'm sorry I forgot to mention it. In fact -fix_sub_duration made things worse: The *first* subtitle frame stayed on the screen until the end of the movie. None of the other subtitles ever appeared, only the first one. Best regards Oliver -- From nicolas.george at normalesup.org Thu Jul 4 15:54:11 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 4 Jul 2013 15:54:11 +0200 Subject: [FFmpeg-user] Hardcoding subtitles In-Reply-To: References: <201307031444.r63EiU0R058599@haluter.fromme.com> Message-ID: <20130704135411.GA24164@phare.normalesup.org> Le sextidi 16 messidor, an CCXXI, Carl Eugen Hoyos a ?crit?: > Did you test -fix_sub_duration ? Please stop with -fix_sub_duration; -fix_sub_duration is for cases where the duration is not known. That happens for DVB and PGS subtitles inside MPEG containers. On the other hand, DVD subtitles have their duration embedded and Matroska format always has duration for subtitles packets, so -fix_sub_duration is doubly wrong in this case. It would still be unneeded reading from VOBSUB directly. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From krueger at lesspain.de Thu Jul 4 16:02:09 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 4 Jul 2013 16:02:09 +0200 Subject: [FFmpeg-user] Support for Prores4444 12bit files Message-ID: Hi, Apple's whitepaper states that Prores4444 has "up to 12bit" color depth. There are no Apple tools that I know of that have a switch to produce such a 12bit beast (their professional transcoder "Compressor" has the options "16.7 million colors" or "more than 16.7 million colors" which is useless in that case as IMO that translates to 8bit and more than 8 bit). Now there exist recorders which explicitly claim to support 10bit _and_ 12bit Prores4444 (see http://www.sounddevices.com/products/pix240i/sample-files/) and I downloaded those and tested transcoding with ffmpeg and the output looks fine. Since the pixel formats used by ffmpeg for Prores are 10 bit only, I am wondering if there is a way to test if the color depth is really 12bit and thus reduced in any transcoding. Could anyone with more intimate knowledge of the decoder(s) shed some light on this? Is the current decoder reducing bit depth of these files when decoding and if so are there plans to add support for a pixel format that allows for 12 bit? Is there a way of testing such a file if it is 10 or 12bit? Apart from the alpha channel (which in this case is not there) neither the header documentation at http://wiki.multimedia.cx/index.php?title=Apple_ProRes nor the source code reveal anything that would be suitable for making that distinction? Or is the formulation "up to 12bit" simply wrong and Prores4444 is always 12bit? Best regards, Robert P.S.: I am not talking about 10 bit files with a special gamma function like Arri Log-C or Sony S-Log but real 12bits of depth. From cehoyos at ag.or.at Thu Jul 4 16:10:21 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 4 Jul 2013 14:10:21 +0000 (UTC) Subject: [FFmpeg-user] Support for Prores4444 12bit files References: Message-ID: Robert Kr?ger lesspain.de> writes: > Could anyone with more intimate knowledge of the > decoder(s) shed some light on this? Wouldn't this need somebody with intimate knowledge of the encoders? Carl Eugen From doenerbudenchef at yahoo.de Thu Jul 4 16:27:09 2013 From: doenerbudenchef at yahoo.de (Alex) Date: Thu, 4 Jul 2013 07:27:09 -0700 (PDT) Subject: [FFmpeg-user] MXF with XDCAM HD422 In-Reply-To: References: <1372855958346-4659820.post@n4.nabble.com> Message-ID: <1372948029015-4659835.post@n4.nabble.com> Works fine. Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MXF-with-XDCAM-HD422-tp4659820p4659835.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From krueger at lesspain.de Thu Jul 4 16:50:42 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 4 Jul 2013 16:50:42 +0200 Subject: [FFmpeg-user] Support for Prores4444 12bit files In-Reply-To: References: Message-ID: On Thu, Jul 4, 2013 at 4:10 PM, Carl Eugen Hoyos wrote: > Robert Kr?ger lesspain.de> writes: > >> Could anyone with more intimate knowledge of the >> decoder(s) shed some light on this? > > Wouldn't this need somebody with intimate knowledge > of the encoders? You may be right but I thought maybe someone who knows about what's actually in the bitstream might also know enough to answer the questions. Lets just hope one of either side comments. Robert From onemda at gmail.com Thu Jul 4 17:25:07 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 4 Jul 2013 15:25:07 +0000 Subject: [FFmpeg-user] Support for Prores4444 12bit files In-Reply-To: References: Message-ID: On 7/4/13, Robert Krueger wrote: > Hi, > > Apple's whitepaper states that Prores4444 has "up to 12bit" color > depth. There are no Apple tools that I know of that have a switch to > produce such a 12bit beast (their professional transcoder "Compressor" > has the options "16.7 million colors" or "more than 16.7 million > colors" which is useless in that case as IMO that translates to 8bit > and more than 8 bit). > > Now there exist recorders which explicitly claim to support 10bit > _and_ 12bit Prores4444 (see > http://www.sounddevices.com/products/pix240i/sample-files/) and I > downloaded those and tested transcoding with ffmpeg and the output > looks fine. Since the pixel formats used by ffmpeg for Prores are 10 > bit only, I am wondering if there is a way to test if the color depth > is really 12bit and thus reduced in any transcoding. > > Could anyone with more intimate knowledge of the decoder(s) shed some > light on this? Is the current decoder reducing bit depth of these > files when decoding and if so are there plans to add support for a > pixel format that allows for 12 bit? > > Is there a way of testing such a file if it is 10 or 12bit? Apart from > the alpha channel (which in this case is not there) neither the header > documentation at > http://wiki.multimedia.cx/index.php?title=Apple_ProRes nor the source > code reveal anything that would be suitable for making that > distinction? Or is the formulation "up to 12bit" simply wrong and > Prores4444 is always 12bit? > > Best regards, > > Robert > > P.S.: I am not talking about 10 bit files with a special gamma > function like Arri Log-C or Sony S-Log but real 12bits of depth. I think you are confused. There is no 12bit prores. Why would 12 bit prores file be smaller than 10 bit one? From krueger at lesspain.de Thu Jul 4 17:59:59 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 4 Jul 2013 17:59:59 +0200 Subject: [FFmpeg-user] Support for Prores4444 12bit files In-Reply-To: References: Message-ID: On Thu, Jul 4, 2013 at 5:25 PM, Paul B Mahol wrote: > On 7/4/13, Robert Krueger wrote: >> Hi, >> >> Apple's whitepaper states that Prores4444 has "up to 12bit" color >> depth. There are no Apple tools that I know of that have a switch to >> produce such a 12bit beast (their professional transcoder "Compressor" >> has the options "16.7 million colors" or "more than 16.7 million >> colors" which is useless in that case as IMO that translates to 8bit >> and more than 8 bit). >> >> Now there exist recorders which explicitly claim to support 10bit >> _and_ 12bit Prores4444 (see >> http://www.sounddevices.com/products/pix240i/sample-files/) and I >> downloaded those and tested transcoding with ffmpeg and the output >> looks fine. Since the pixel formats used by ffmpeg for Prores are 10 >> bit only, I am wondering if there is a way to test if the color depth >> is really 12bit and thus reduced in any transcoding. >> >> Could anyone with more intimate knowledge of the decoder(s) shed some >> light on this? Is the current decoder reducing bit depth of these >> files when decoding and if so are there plans to add support for a >> pixel format that allows for 12 bit? >> >> Is there a way of testing such a file if it is 10 or 12bit? Apart from >> the alpha channel (which in this case is not there) neither the header >> documentation at >> http://wiki.multimedia.cx/index.php?title=Apple_ProRes nor the source >> code reveal anything that would be suitable for making that >> distinction? Or is the formulation "up to 12bit" simply wrong and >> Prores4444 is always 12bit? >> >> Best regards, >> >> Robert >> >> P.S.: I am not talking about 10 bit files with a special gamma >> function like Arri Log-C or Sony S-Log but real 12bits of depth. > > I think you are confused. There is no 12bit prores. OK, so your theory is: - Apple's official whitepaper is bullshit - http://www.sounddevices.com/products/pix240i/specs/ + a lot of articles about it are fraud or just bullshit Definitely possible though it does not sound too likely and i am trying to find out. But you are correct. I am indeed confused. > > Why would 12 bit prores file be smaller than 10 bit one? File size for a video file with a de-factor VBR codec would always depend on a lot of factors 1) the exact motive 2) noise of the camera under the conditions used to record each clip 3) exposure time of the camera 4) the way bitrate control is implemented/tuned for the given codec/setting If those were exactly the same for both clips, then I would say, you are right and it cannot be. From onemda at gmail.com Thu Jul 4 18:29:46 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 4 Jul 2013 16:29:46 +0000 Subject: [FFmpeg-user] Support for Prores4444 12bit files In-Reply-To: References: Message-ID: On 7/4/13, Robert Krueger wrote: > On Thu, Jul 4, 2013 at 5:25 PM, Paul B Mahol wrote: >> On 7/4/13, Robert Krueger wrote: >>> Hi, >>> >>> Apple's whitepaper states that Prores4444 has "up to 12bit" color >>> depth. There are no Apple tools that I know of that have a switch to >>> produce such a 12bit beast (their professional transcoder "Compressor" >>> has the options "16.7 million colors" or "more than 16.7 million >>> colors" which is useless in that case as IMO that translates to 8bit >>> and more than 8 bit). >>> >>> Now there exist recorders which explicitly claim to support 10bit >>> _and_ 12bit Prores4444 (see >>> http://www.sounddevices.com/products/pix240i/sample-files/) and I >>> downloaded those and tested transcoding with ffmpeg and the output >>> looks fine. Since the pixel formats used by ffmpeg for Prores are 10 >>> bit only, I am wondering if there is a way to test if the color depth >>> is really 12bit and thus reduced in any transcoding. >>> >>> Could anyone with more intimate knowledge of the decoder(s) shed some >>> light on this? Is the current decoder reducing bit depth of these >>> files when decoding and if so are there plans to add support for a >>> pixel format that allows for 12 bit? >>> >>> Is there a way of testing such a file if it is 10 or 12bit? Apart from >>> the alpha channel (which in this case is not there) neither the header >>> documentation at >>> http://wiki.multimedia.cx/index.php?title=Apple_ProRes nor the source >>> code reveal anything that would be suitable for making that >>> distinction? Or is the formulation "up to 12bit" simply wrong and >>> Prores4444 is always 12bit? >>> >>> Best regards, >>> >>> Robert >>> >>> P.S.: I am not talking about 10 bit files with a special gamma >>> function like Arri Log-C or Sony S-Log but real 12bits of depth. >> >> I think you are confused. There is no 12bit prores. > > OK, so your theory is: > - Apple's official whitepaper is bullshit > - http://www.sounddevices.com/products/pix240i/specs/ + a lot of > articles about it are fraud or just bullshit > > Definitely possible though it does not sound too likely and i am > trying to find out. But you are correct. I am indeed confused. Looking at both obfuscated decoders there is possibility prores can store any bit depth. If they decode real 12bit as 10bit and output is same as given by other decoders that claim they support real 12bit than I'm in wrong universe. > >> >> Why would 12 bit prores file be smaller than 10 bit one? > > File size for a video file with a de-factor VBR codec would always > depend on a lot of factors > 1) the exact motive > 2) noise of the camera under the conditions used to record each clip > 3) exposure time of the camera > 4) the way bitrate control is implemented/tuned for the given codec/setting > > If those were exactly the same for both clips, then I would say, you > are right and it cannot be. There are still many open questions left. From krueger at lesspain.de Thu Jul 4 19:10:18 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 4 Jul 2013 19:10:18 +0200 Subject: [FFmpeg-user] Support for Prores4444 12bit files In-Reply-To: References: Message-ID: On Jul 4, 2013 6:30 PM, "Paul B Mahol" wrote: > > On 7/4/13, Robert Krueger wrote: > > On Thu, Jul 4, 2013 at 5:25 PM, Paul B Mahol wrote: > >> On 7/4/13, Robert Krueger wrote: > >>> Hi, > >>> > >>> Apple's whitepaper states that Prores4444 has "up to 12bit" color > >>> depth. There are no Apple tools that I know of that have a switch to > >>> produce such a 12bit beast (their professional transcoder "Compressor" > >>> has the options "16.7 million colors" or "more than 16.7 million > >>> colors" which is useless in that case as IMO that translates to 8bit > >>> and more than 8 bit). > >>> > >>> Now there exist recorders which explicitly claim to support 10bit > >>> _and_ 12bit Prores4444 (see > >>> http://www.sounddevices.com/products/pix240i/sample-files/) and I > >>> downloaded those and tested transcoding with ffmpeg and the output > >>> looks fine. Since the pixel formats used by ffmpeg for Prores are 10 > >>> bit only, I am wondering if there is a way to test if the color depth > >>> is really 12bit and thus reduced in any transcoding. > >>> > >>> Could anyone with more intimate knowledge of the decoder(s) shed some > >>> light on this? Is the current decoder reducing bit depth of these > >>> files when decoding and if so are there plans to add support for a > >>> pixel format that allows for 12 bit? > >>> > >>> Is there a way of testing such a file if it is 10 or 12bit? Apart from > >>> the alpha channel (which in this case is not there) neither the header > >>> documentation at > >>> http://wiki.multimedia.cx/index.php?title=Apple_ProRes nor the source > >>> code reveal anything that would be suitable for making that > >>> distinction? Or is the formulation "up to 12bit" simply wrong and > >>> Prores4444 is always 12bit? > >>> > >>> Best regards, > >>> > >>> Robert > >>> > >>> P.S.: I am not talking about 10 bit files with a special gamma > >>> function like Arri Log-C or Sony S-Log but real 12bits of depth. > >> > >> I think you are confused. There is no 12bit prores. > > > > OK, so your theory is: > > - Apple's official whitepaper is bullshit > > - http://www.sounddevices.com/products/pix240i/specs/ + a lot of > > articles about it are fraud or just bullshit > > > > Definitely possible though it does not sound too likely and i am > > trying to find out. But you are correct. I am indeed confused. > > Looking at both obfuscated decoders there is possibility > prores can store any bit depth. > > If they decode real 12bit as 10bit and output is same as given by > other decoders that claim they support real 12bit than I'm > in wrong universe. > I am looking for a way to really compare the decoder output because visually it is not possible to distinguish 10 bit from 12bit (unless you manipulate it in a color grading application that is known to use the full 12bit). I probably have to decode them using libavcodec and using apple apis (where you can decode it to a16bit pixel format) and then compare the numbers if I don't find an easier solution. Furthermore I am trying to get a sample from a more official (preferably Apple) source. There is always the possibility that the sample on the site is not really 12bit because someone messed up. From stefasab at gmail.com Fri Jul 5 12:52:17 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 5 Jul 2013 12:52:17 +0200 Subject: [FFmpeg-user] Hardcoding subtitles In-Reply-To: <201307031444.r63EiU0R058599@haluter.fromme.com> References: <201307031444.r63EiU0R058599@haluter.fromme.com> Message-ID: <20130705105217.GN19933@barisone> On date Wednesday 2013-07-03 16:44:30 +0200, Oliver Fromme wrote: > I'm trying to "hardcode" forced subtitles into a video, so they are > always displayed, independent of the player's subtitle support. > In the end I have been successful, but it was kind of an adventure. > I'm trying to describe the problems that I encountered, maybe this > can help to make ffmpeg better. > > My ffmpeg version is a recent git snapshot, just a few days old. > > These are my input files: Video and audio are in an MPEG2 PS file > that comes from a DVD (via "mplayer -dumpstream"). The subtitles > are in VOBSUB format (I think ffmpeg calls this "dvdsub"), i.e. > .idx + .sub files. These have been retrieved from the same DVD > with "mencoder -vobsubout". > > The first problem was that ffmpeg didn't want to read the VOBSUB > files directly, no matter what I tried. It seemed to be unable > to detect the format automatically, and I was unable to find out > how to specify it on the command line. I probably tried more > than 20 variantions, without success. However, it's not a big > deal: I just wrapped the VOBSUB stream into an MKV container > (using mkvmerge), and ffmpeg happily accepted it. So, my input > files are now the MPEG2 PS file (same as before) and an MKV file > containing just the VOBSUB subtitle stream. > > According to the excellent manual page, the overlay filter can > be used for hardcoding subtitles, so I tried that. The filter > specification was simple: > > -filter_complex "[0:v][1:s]overlay" > > where file 0 is the MPEG2 PS and file 1 is the MKV file with the > VOBSUB stream. If it matters (I don't think it does), here's > the complete command line: > > ffmpeg1 -loglevel warning -stats -i dvdstream-3.mpg -i subtitles-3-1.mkv \ > -filter_complex "[0:v][1:s]overlay" \ > -c:v libx264 -preset veryslow -tune film -crf 18 -level 4.1 \ > -codec:a copy -map 0:a -sn dvdstream-3-vid.mkv > > Basically, that command worked and created a video with hardcoded > subtitles. However, there was one small problem: The duration > of the last subtitle was "infinite", i.e. the very last subtitle > stayed on the screen until end of the video. It was visible for > several minutes including the whole end credits of the movie. > Not nice. So I went back to the manual page and re-read the > section about the overlay filter. > > I noticed the "repeatlast" option of this filter, but the last > sentence said something like "A value of 0 ... is enabled by > default", so I thought that 0 was the default. But I didn't > look closely enough ... Upon further inspection, it's just the > other way around. Of course that's my mistake, but maybe the > manual page could be made a little clearer? Something like > "The default value is 1" would probably be clear enough. Changed. > Anyway, I tried to disable that flag: > > -filter_complex "[0:v][1:s]overlay=repeatlast=0" > > It did make a difference, but not what I expected: Now the last > subtitle didn't appear at all! I think this is a bug, although > I wouldn't rule out the possibility that I did something wrong > again. I tried with a different DVD, but same result: When > repeatlast=0 is specified, the last VOBSUB subtitle is omitted > completely. If this is a bug, we need a sample and a command to reproduce the error. Please consider to file a bug report on trac. > > So, now I pondered over a workaround for that problem. > I skimmed over some examples in the manual page that gave me an > Idea: I could try to use the gte() function to forcefully end > the last subtitle at the desired time stamp. > > First I used mplayer to look for the exact position where the > last subtitle was supposed to end. In this case that was at > t = 3375 (that's 56 minutes and 15 seconds). I reverted the > "repeatlast" flag to the default so the last subtitle was > visible, and used gte() to cancel it at the proper time: > > -filter_complex "[0:v][1:s]overlay=x='if(gt(t,3375),NAN,x)'" The problem is that x is NAN when evaluating this expression, so the result is always NAN. Or in other words, recursive definitions are not supported (and probably meaningless). > > The idee was: If the time is beyond 3375, set the x value of > the subtitle frames to NAN (effectively disabling them), > otherwise keep them at their original x value. At least I > thought that's what the x variable meant. > > Obviously I was wrong, because the resulting video did not > contain *any* subtitles at all. No subtitles anywhere. > Either I misunderstood the description of the x variable in > the manual page (and in this case the manual page should be > clarified), or there's another bug. In my next attempt I > replaced the x variable with 0, which should be the default > for x anyway: > > -filter_complex "[0:v][1:s]overlay=x='if(gt(t,3375),NAN,0)'" > > Finally, that produced the expected result, and I'm happy now. Even better, you could use the enable option (check timeline section in the manual) to avoid x/NAN hacks: enable=gt(t,3375) [...] From salmjuh at hotmail.com Fri Jul 5 12:58:57 2013 From: salmjuh at hotmail.com (juha s.) Date: Fri, 5 Jul 2013 13:58:57 +0300 Subject: [FFmpeg-user] rawvideo -> libx264 Message-ID: Hi I have a DecLinks SDI capture card and I try to transcode to h264. It seems that this is not supported: ---------------------bmdcapture -m 2 -C 1 -A 2 -V 4 -F nut -f pipe:1 | ffmpeg -re -i - -copyts -vcodec libx264 -vprofile main -preset medium -crf 20 -an -b:v 1100k -maxrate 1300k -bufsize 1500k -y /tmp/test.mp4ffmpeg version git-2012-10-02-c785b6d Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2013 13:28:23 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 62.100 / 54. 62.100 libavformat 54. 29.105 / 54. 29.105 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 19.100 / 3. 19.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 16.100 / 0. 16.100 libpostproc 52. 1.100 / 52. 1.100Frame received (#1) - No input signal detected - Frames dropped 1 - Total dropped 1[nut @ 0x1aed280] Unknown codec tag '0x10445350' for stream number 1[nut @ 0x1aed280] Could not find codec parameters for stream 1 (Audio: none (PSD[16] / 0x10445350), 48000 Hz, 2 channels): unknown codecConsider increasing the value for the 'analyzeduration' and 'probesize' options[nut @ 0x1aed280] Estimating duration from bitrate, this may be inaccurateGuessed Channel Layout for Input Stream #0.1 : stereoInput #0, nut, from 'pipe:': Metadata: encoder : Lavf54.20.3 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: none (PSD[16] / 0x10445350), 48000 Hz, stereox264 [error]: main profile doesn't support 4:2:2[libx264 @ 0x1afe460] Error setting profile main.[libx264 @ 0x1afe460] Possible profiles: baseline main high high10 high422 high444Output #0, mp4, to '/tmp/test.mp4': Metadata: encoder : Lavf54.20.3 Stream #0:0: Video: h264, yuv422p, 720x576, q=-1--1, 1100 kb/s, 90k tbn, 25 tbcStream mapping: Stream #0:0 -> #0:0 (rawvideo -> libx264)Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height --------------------------------------- Any ideas? br,jii From yildiz.abdullah at yahoo.com Fri Jul 5 11:33:27 2013 From: yildiz.abdullah at yahoo.com (Abdullah YILDIZ) Date: Fri, 5 Jul 2013 02:33:27 -0700 (PDT) Subject: [FFmpeg-user] error running configure: libx264 not found Message-ID: <1373016807.22026.YahooMailNeo@web120505.mail.ne1.yahoo.com> When I run the configure script, it gives the following error: ./configure --enable-cross-compile --cross-prefix=${CCPREFIX} --arch=armel --target-os=linux --prefix=/path/to/raspberrypi-ffmpeg/ --enable-gpl --enable-libx264 --enable-nonfree --enable-libaacplus --extra-cflags='-I/path/to/raspberrypi-ffmpeg/include' --extra-ldflags='-L/path/to/raspberrypi-ffmpeg/lib' ERROR: libx264 not found libx264.a is located at /path/to/raspberrypi-ffmpeg/lib/ abdullah From lou at lrcd.com Fri Jul 5 22:50:13 2013 From: lou at lrcd.com (Lou) Date: Fri, 5 Jul 2013 12:50:13 -0800 Subject: [FFmpeg-user] rawvideo -> libx264 In-Reply-To: References: Message-ID: <20130705125013.69b017fc@lrcd.com> On Fri, 5 Jul 2013 13:58:57 +0300 juha s. wrote: > Hi > I have a DecLinks SDI capture card and I try to transcode to h264. It seems that this is not supported: ... Your output was too hard to read with the lack of line breaks. > [error]: main profile doesn't support 4:2:2 This is the error message you missed. Your output is yuv422p. Is this what you want? Either remove "-vprofile main", or add "-pix_fmt yuv420p" (or "-vf format=yuv420p"). Note that "-crf 20" and "-b:v 1100k" are mutually exclusive. From h.reindl at thelounge.net Fri Jul 5 22:51:04 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 05 Jul 2013 22:51:04 +0200 Subject: [FFmpeg-user] error running configure: libx264 not found In-Reply-To: <1373016807.22026.YahooMailNeo@web120505.mail.ne1.yahoo.com> References: <1373016807.22026.YahooMailNeo@web120505.mail.ne1.yahoo.com> Message-ID: <51D731B8.1060109@thelounge.net> Am 05.07.2013 11:33, schrieb Abdullah YILDIZ: > When I run the configure script, it gives the following error: > > ./configure --enable-cross-compile --cross-prefix=${CCPREFIX} --arch=armel --target-os=linux > > --prefix=/path/to/raspberrypi-ffmpeg/ > > --enable-gpl --enable-libx264 --enable-nonfree --enable-libaacplus > > --extra-cflags='-I/path/to/raspberrypi-ffmpeg/include' --extra-ldflags='-L/path/to/raspberrypi-ffmpeg/lib' > > ERROR: libx264 not found > > libx264.a is located at /path/to/raspberrypi-ffmpeg/lib/ i guess you want to link x264 static use the configure options below to make itself independent of shared libraries that did for me the trick, some of them are added since the latest x264 because it stopped to work as before --enable-static \ --disable-avs \ --disable-cli \ --disable-ffms \ --disable-gpac \ --disable-lavf \ --disable-opencl \ --disable-swscale -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Fri Jul 5 23:23:08 2013 From: lou at lrcd.com (Lou) Date: Fri, 5 Jul 2013 13:23:08 -0800 Subject: [FFmpeg-user] error running configure: libx264 not found In-Reply-To: <1373016807.22026.YahooMailNeo@web120505.mail.ne1.yahoo.com> References: <1373016807.22026.YahooMailNeo@web120505.mail.ne1.yahoo.com> Message-ID: <20130705132308.40b3f814@lrcd.com> On Fri, 5 Jul 2013 02:33:27 -0700 (PDT) Abdullah YILDIZ wrote: > When I run the configure script, it gives the following error: > > ./configure --enable-cross-compile --cross-prefix=${CCPREFIX} --arch=armel --target-os=linux > > --prefix=/path/to/raspberrypi-ffmpeg/ > > --enable-gpl --enable-libx264 --enable-nonfree --enable-libaacplus > > --extra-cflags='-I/path/to/raspberrypi-ffmpeg/include' --extra-ldflags='-L/path/to/raspberrypi-ffmpeg/lib' > > > > ERROR: libx264 not found > > libx264.a is located at /path/to/raspberrypi-ffmpeg/lib/ Try adding "--extra-libs=-ldl". From jdevelop at gmail.com Sat Jul 6 00:48:33 2013 From: jdevelop at gmail.com (Eugene Dzhurinsky) Date: Fri, 5 Jul 2013 18:48:33 -0400 Subject: [FFmpeg-user] Distinguish between muxer and demuxer optopms Message-ID: <20130705224833.GA28253@devbox.ma.labs.intellij.net> Hello! The "loop" option is available for both image2pipe demuxer and gif muxer. I want to change behavior of GIF muxer so if negative value is passed - then GIF98a header is not written into GIF file. But this conflicts with demuxer option and allowed value range (0 .. 1) I have 2 choices - either add new option, or distinguish muxer/demuxer options at command line - and this is the preferred way. Please advice. Thanks! -- Eugene N Dzhurinsky -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From pdchen at gmail.com Sat Jul 6 01:47:53 2013 From: pdchen at gmail.com (Peter Chen) Date: Fri, 5 Jul 2013 19:47:53 -0400 Subject: [FFmpeg-user] Set start time offset in ts video segment output from mp4 movie clip input Message-ID: I'm converting an mp4 movie clip into a ts video segment using the following command: > ffmpeg -i input-segment-4.mp4 -vcodec copy -acodec copy -qscale 0 -vbsf h264_mp4toannexb -y -r 24 -vf transpose=1 -f mpegts output-segment-4.ts This ts video segment will be part of an HLS (HTTP Live Streaming) video stream. The ffmpeg conversion works great. I might not be asking the following question using the proper terminology, but here's what I'd like to do. I'd like the output file, called output-segment-4.ts in the ffmpeg command above, to have a start time offset of, say, 40 seconds. So, in an HLS video stream that contains these output ts segments, output-segment-0.ts would have a start time of 0 seconds, output-segment-1.ts would have a start time of 10 seconds, etc... Currently, if I'm reading the output of ffprobe correctly, every ts file shows a start time offset of about 1.4 seconds. Below is the output of "ffprobe output-segment-4.ts". I'm basically trying to manipulate output-segment-4.ts so "start: 1.421678" becomes "start: 40.0" in the line "Duration: 00:00:09.95, start: 1.421678, bitrate: 1718 kb/s". In summary, how do I set that start field? Thanks for your help. ---------------------------------- > ffprobe output-segment-4.ts ffprobe version N-54474-g9f89beb Copyright (c) 2007-2013 the FFmpeg developers built on Jul 5 2013 07:00:23 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.101 / 55. 18.101 libavformat 55. 11.100 / 55. 11.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 78.100 / 3. 78.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 Input #0, mpegts, from 'output-segment-4.ts': Duration: 00:00:09.95, start: 1.421678, bitrate: 1718 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p, 710x400, 29.97 tbr, 90k tbn, 180k tbc Stream #0:1[0x101](und): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 110 kb/s From lost.alternative at gmail.com Sat Jul 6 18:52:57 2013 From: lost.alternative at gmail.com (J. Scott Edwards) Date: Sat, 6 Jul 2013 10:52:57 -0600 Subject: [FFmpeg-user] Is it possible to just change the fps flags? Message-ID: Hello, i have several videos that were created from film, one film frame to one video frame, so it plays too fast (29.97 fps). i have tried: ffmpeg -i input.avi -r 24 output.avi But that re-encodes the video and the result is horribly pixelated. It seems all i really want to do is change the flag that says what the fps is to playback, and leave all of the video frames as is. While searching for a solution it appears that both the container and the codec have a frame rate, is there some way to change both of them to 24 without changing anything else? Thanks! From cehoyos at ag.or.at Sat Jul 6 18:57:21 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 6 Jul 2013 16:57:21 +0000 (UTC) Subject: [FFmpeg-user] Is it possible to just change the fps flags? References: Message-ID: J. Scott Edwards gmail.com> writes: > i have several videos that were created from film, one film > frame to one video frame, so it plays too fast (29.97 fps). Could you elaborate / command line and complete, uncut console output missing. (This may be a serious bug but I need more information to be able to reproduce.) > ffmpeg -i input.avi -r 24 output.avi $ ffmpeg -i input.avi -vf fps=24000/1001 -qscale 2 out.avi Carl Eugen From lost.alternative at gmail.com Sat Jul 6 19:52:14 2013 From: lost.alternative at gmail.com (J. Scott Edwards) Date: Sat, 6 Jul 2013 11:52:14 -0600 Subject: [FFmpeg-user] Is it possible to just change the fps flags? In-Reply-To: References: Message-ID: Hi Carl, i don't know that it is a bug at all... well, maybe that the output is so terribly pixelated. i assume that this command: ffmpeg -i input.avi -r 24 output.avi is trying to resample the frames so that there are 24 of them in every second instead of 29.97, but the video is still playing at the same speed. I.E. the input file is 10:27 and the output file is 10:27. But that is not what I want. I want it to leave the frames exactly the way they are now but only play 24 of them every second so that the video runs slower. I.E. instead of being 10:27 long the video is 13:02. The command line output is below. Thanks, -scott $ time ffmpeg -i drag_races.avi -r 24 drag_races-24fps.avi ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers built on Apr 2 2013 17:00:59 with gcc 4.6.3 *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. [mpeg4 @ 0x8d75940] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, from 'drag_races.avi': Metadata: encoder : MEncoder 2:1.0~rc1-0ubuntu13.2 Duration: 00:10:27.59, start: 0.000000, bitrate: 6615 kb/s Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 720x480 [PAR 1:1 DAR 3:2], PAR 8:9 DAR 4:3, 29.97 tbr, 29.97 tbn, 29.97 tbc [buffer @ 0x8d74f60] w:720 h:480 pixfmt:yuv420p Output #0, avi, to 'drag_races-24fps.avi': Metadata: ISFT : Lavf53.21.1 Stream #0.0: Video: mpeg4, yuv420p, 720x480 [PAR 8:9 DAR 4:3], q=2-31, 200 kb/s, 24 tbn, 24 tbc Stream mapping: Stream #0.0 -> #0.0 Press ctrl-c to stop encoding [mpeg4 @ 0x8d75940] Invalid and inefficient vfw-avi packed B frames detected frame=15062 fps=223 q=31.0 Lsize= 72816kB time=627.62 bitrate= 950.4kbits/s dup=0 drop=3747 video:72450kB audio:0kB global headers:0kB muxing overhead 0.505254% real 1m8.118s user 1m0.412s sys 0m5.992s On Sat, Jul 6, 2013 at 10:57 AM, Carl Eugen Hoyos wrote: > J. Scott Edwards gmail.com> writes: > >> i have several videos that were created from film, one film >> frame to one video frame, so it plays too fast (29.97 fps). > > Could you elaborate / command line and complete, uncut > console output missing. > (This may be a serious bug but I need more information to be > able to reproduce.) > >> ffmpeg -i input.avi -r 24 output.avi > > $ ffmpeg -i input.avi -vf fps=24000/1001 -qscale 2 out.avi > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sat Jul 6 23:01:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 6 Jul 2013 21:01:57 +0000 (UTC) Subject: [FFmpeg-user] Is it possible to just change the fps flags? References: Message-ID: J. Scott Edwards gmail.com> writes: > i don't know that it is a bug at all... well, maybe > that the output is so terribly pixelated. > > i assume that this command: > > ffmpeg -i input.avi -r 24 output.avi Honestly: Did you read my mail? [...] > I want it to leave the frames exactly the way they are > now but only play 24 of them every second so that the > video runs slower. I.E. instead of being 10:27 long > the video is 13:02. The setpts filter supports this, it needs reencoding though. > ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1 This is not FFmpeg but an intentionally broken version that contains several hundred bugs not present in FFmpeg, including some security relevant issues, please understand that we cannot support it here. See http://ffmpeg.org/download.html for supported versions. Please do not top-post here, Carl Eugen From Stephen_Hamer_UK at yahoo.co.uk Sun Jul 7 00:22:39 2013 From: Stephen_Hamer_UK at yahoo.co.uk (Yahoo! mail) Date: Sat, 06 Jul 2013 23:22:39 +0100 Subject: [FFmpeg-user] FFmpeg fails to install with opus enabled in Ubuntu 12.04 Message-ID: <51D898AF.9010608@yahoo.co.uk> Hi, A noob running Ubuntu 12.04 on a samsung N110 netbook. Tried to install ffmeg using the instructions here: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide Although I actually began with: |sudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | as suggested here: http://askubuntu.com/questions/265371/please-give-me-an-ffmpeg-tutorial-that-works-on-ubuntu-12-04 Query: should I have removed my existing ffmpeg? I then moved on to the instructions in the ffmpeg wiki, above,. The installs of Yasm, x264, fdk-aac, libmp3lame, libopus and libvpx all completed without a hitch [actually that's not quite correct: the final command in each command-block tended not to run; it was left dangling in the terminal, and I had to execute it with "Enter". The opus-install was left with ". ~/.profile" dangling, which I also treated as a command] But the final install of ffmpeg broke down. Here is the terminal o/p: |azed at azed-N110:~/ffmpeg_sources$ cd ffmpeg | |azed at azed-N110:~/ffmpeg_sources/ffmpeg$ PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" | |azed at azed-N110:~/ffmpeg_sources/ffmpeg$ ./configure --prefix="$HOME/ffmpeg_build" \ | |> --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" \ | |> --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac \ | |> --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx \ | |> --enable-libx264 --enable-nonfree --enable-x11grab | |ERROR: opus not found | || |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 | |solving the problem. | |azed at azed-N110:~/ffmpeg_sources/ffmpeg$ make | |Makefile:2: config.mak: No such file or directory | |Makefile:48: /common.mak: No such file or directory | |Makefile:91: /libavutil/Makefile: No such file or directory | |Makefile:91: /library.mak: No such file or directory | |Makefile:168: /doc/Makefile: No such file or directory | |Makefile:169: /tests/Makefile: No such file or directory | |make: *** No rule to make target `/tests/Makefile'. Stop. | |azed at azed-N110:~/ffmpeg_sources/ffmpeg$ make install | |Makefile:2: config.mak: No such file or directory | |Makefile:48: /common.mak: No such file or directory | |Makefile:91: /libavutil/Makefile: No such file or directory | |Makefile:91: /library.mak: No such file or directory | |Makefile:168: /doc/Makefile: No such file or directory | |Makefile:169: /tests/Makefile: No such file or directory | |make: *** No rule to make target `/tests/Makefile'. Stop. | |azed at azed-N110:~/ffmpeg_sources/ffmpeg$ make distclean | |Makefile:2: config.mak: No such file or directory | |Makefile:48: /common.mak: No such file or directory | |Makefile:91: /libavutil/Makefile: No such file or directory | |Makefile:91: /library.mak: No such file or directory | |Makefile:168: /doc/Makefile: No such file or directory | |Makefile:169: /tests/Makefile: No such file or directory | |make: *** No rule to make target `/tests/Makefile'. Stop. | |azed at azed-N110:~/ffmpeg_sources/ffmpeg$ hash -r | Back to me. I noticed that the first 3 commands in the install-ffmpeg command-block had run ok, and that I was still in the ~/ffmpeg folder, so I ran the fourth command, removing "|--enable-libopus|". This ran ok; so I then ran the remaining commands as a block, and these also ran ok. So I did, finally, get my ffmpeg install, albeit without opus. azed at azed-N110:~$ ffmpeg 2>&1 | head -n1 ffmpeg version git-2013-07-06-7f25050 Copyright (c) 2000-2013 the FFmpeg developers Or did I? This is what I really want to know. Have I simply installed ffmpeg without opus? And, if so, how do I get rid of the opus software I have installed (I wasn't planning to use opus, and don't know why I tried to install it). There seems to be a problem compiling (is that the word?) ffmpeg with opus in Ubuntu 12.04. I am really writing this e-mail to bring this to the attention of the ffmpeg developers - hope it doesn't sound like carping Regards Stephen Hamer PS: sorry, I forgot to make a copy of the config.log of the failed ffmpeg install, and it got overwritten (I think) in the course of the successful install. From joe at livetechkeynotes.com Sun Jul 7 04:55:57 2013 From: joe at livetechkeynotes.com (Joe de Max) Date: Sun, 7 Jul 2013 03:55:57 +0100 Subject: [FFmpeg-user] RTMP streaming dropped frames stuttering audio Message-ID: <003BCC8D-0B1B-465D-99DD-B6DE91905E0F@livetechkeynotes.com> Hey all, I'm using FFmpeg on my Mac to stream the output of my TriCaster 8000 (essentially transcoding the 100Mb/s network output the TriCaster can provide and transcoding it to x264 for RTMP streaming). I am doing 2 outputs using the syntax below. All seems to work well until I do something like pan a camera or use a transition on the TriCaster (Alien Hand!) at which point the stream will pause, drop a bunch of frames and eventually pick back up and play the past few seconds really quickly. I have tested outputting to 2 FLV files instead of the 2 RTMP streams and those files end up fine with no stuttering or dropped frames so it is not the TriCaster that is dropping frames or the speed of the network between the TriCaster and the Mac. I have 12 megabits up and I am only attempting to use about 2.5Mbps between the 2 streams so I'm really not sure where the problem lies... Thanks! Joe ffmpeg -i http://192.168.1.112:49480/NewTekNetworkSend.mpg -s 1280x720 -r 50 -c:v libx264 -preset veryfast -profile:v high -b:v 700k -strict -2 -c:a aac -b:a 192k -f flv - | ffmpeg -f flv -i - -c copy -f flv rtmp://server1 -c copy -f flv rtmp://server2 From lou at lrcd.com Sun Jul 7 09:24:19 2013 From: lou at lrcd.com (Lou) Date: Sat, 06 Jul 2013 23:24:19 -0800 Subject: [FFmpeg-user] FFmpeg fails to install with opus enabled in Ubuntu 12.04 In-Reply-To: <51D898AF.9010608@yahoo.co.uk> References: <51D898AF.9010608@yahoo.co.uk> Message-ID: <1373181859.29162.140661252724525.347E2ABC@webmail.messagingengine.com> On Sat, Jul 6, 2013, at 02:22 PM, Yahoo! mail wrote: > Query: should I have removed my existing ffmpeg? You didn't need remove anything since the guide on ffmpeg.org does not perform a system installation, so it can co-exist with any repository packages. If nothing depended on the "ffmpeg" package then it doesn't really matter, and if anything did you can simply just reinstall them with your favorite package manager. Side note: the so-called "ffmpeg" package in the repository is not actually from the FFmpeg project: http://stackoverflow.com/q/9477115/1109017 > So I did, finally, get my ffmpeg install, albeit without opus. > > azed at azed-N110:~$ ffmpeg 2>&1 | head -n1 > ffmpeg version git-2013-07-06-7f25050 Copyright (c) 2000-2013 the FFmpeg > developers > > Or did I? This is what I really want to know. Yes. > Have I simply installed ffmpeg without opus? Unknown since you did not include the line that shows all of the configure options. Alternatively you could run "ffmpeg -encoders | grep opus". > And, if so, how do I get rid of the opus software I have installed (I > wasn't planning to use opus, and don't know why I tried to install it). Although you ran "make install", and assuming opus compilation was successful, it didn't install anything to your system (it "installed" to ~/ffmpeg_build) so it won't do anything if you leave it. If you want to get rid of all traces of just the opus stuff one method is: $ cd ~/ffmpeg_sources/opus $ make uninstall $ rm -rf ~/ffmpeg_sources/opus > There seems to be a problem compiling (is that the word?) ffmpeg with > opus in Ubuntu 12.04. I am really writing this e-mail to bring this to > the attention of the ffmpeg developers - hope it doesn't sound like > carping Thanks. It's certainly possible that something is incorrect or incomplete, and I admit that I may not have tested all releases that the guide claims to support. From bbutscheidt at yahoo.de Sun Jul 7 10:22:14 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sun, 7 Jul 2013 09:22:14 +0100 (BST) Subject: [FFmpeg-user] Is it possible to just change the fps flags? In-Reply-To: References: Message-ID: <1373185334.85170.YahooMailNeo@web133205.mail.ir2.yahoo.com> ----- Original Message ----- > From: Carl Eugen Hoyos > >> I want it to leave the frames exactly the way they are >> now but only play 24 of them every second so that the >> video runs slower.? I.E. instead of being 10:27 long >> the video is 13:02. > > The setpts filter supports this, it needs reencoding though. There was an effort to supply a patched version of ffmpeg doing this trick without reencoding (if the video format used supports this at all ...) http://forum.doom9.org/showthread.php?t=152419 But what I see it is not maintained anymore. Still, there is a windows binary you can try. From svnpenn at gmail.com Sun Jul 7 09:59:30 2013 From: svnpenn at gmail.com (svnpenn) Date: Sun, 7 Jul 2013 00:59:30 -0700 (PDT) Subject: [FFmpeg-user] Remux to a "brand mp42" MP4 file In-Reply-To: References: <66567361A4EC46149E5014E23C83D4CE@vasonote> Message-ID: <1373183970642-4659859.post@n4.nabble.com> > Could you explain your use-case, so we would > know what to test? > (Why is mp41 not godd enough?) Carl, I believe my issue is also caused by bad "atoms" being written by FFmpeg http://superuser.com/q/616484/ffmpeg-corrupts-itunes-files GOOD compatible_brands: M4A mp42isom BAD compatible_brands: isomiso2 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Remux-to-a-brand-mp42-MP4-file-tp4657305p4659859.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From fragabr at gmail.com Sun Jul 7 10:56:33 2013 From: fragabr at gmail.com (=?UTF-8?B?RMOibmllbA==?= Fraga) Date: Sun, 7 Jul 2013 05:56:33 -0300 Subject: [FFmpeg-user] Trivial: ffmpeg configure doesn't detect libva path Message-ID: I have libva installed in /usr/xorg/lib and when I configure ffmpeg it doesn't detect libva. The solution is to move libva to /usr/local/lib. The problem is that if I do that "vainfo" doesn't work anymore. Is there a way to force ffmpeg's configure to use libva from /usr/xorg/lib ? I searched for some configure options, but I couldn't found a specific one. Thanks. -- Linux 3.10.0: Unicycling Gorilla http://www.youtube.com/DanielFragaBR http://www.libertarios.org.br From fragabr at gmail.com Sun Jul 7 11:00:38 2013 From: fragabr at gmail.com (=?UTF-8?B?RMOibmllbA==?= Fraga) Date: Sun, 7 Jul 2013 06:00:38 -0300 Subject: [FFmpeg-user] Trivial: ffmpeg configure doesn't detect libva path (SOLVED) References: Message-ID: On Sun, 7 Jul 2013 05:56:33 -0300 D?niel Fraga wrote: > Is there a way to force ffmpeg's configure to use libva > from /usr/xorg/lib ? Nevermind! The following solved the issue. It wouldn't search for va.h inside /usr/xorg/include: CPPFLAGS=-I/usr/xorg/include -- Linux 3.10.0: Unicycling Gorilla http://www.youtube.com/DanielFragaBR http://www.libertarios.org.br From cehoyos at ag.or.at Sun Jul 7 13:23:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 7 Jul 2013 11:23:20 +0000 (UTC) Subject: [FFmpeg-user] Trivial: ffmpeg configure doesn't detect libva path References: Message-ID: D?niel Fraga gmail.com> writes: > Is there a way to force ffmpeg's configure to use libva > from /usr/xorg/lib ? Did you try --extra-cflags=-I/usr/xorg/include ? This is supported, other solutions may brake without notice or may brake compilation. Carl Eugen From cehoyos at ag.or.at Sun Jul 7 13:28:17 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 7 Jul 2013 11:28:17 +0000 (UTC) Subject: [FFmpeg-user] Is it possible to just change the fps flags? References: <1373185334.85170.YahooMailNeo@web133205.mail.ir2.yahoo.com> Message-ID: Bernd Butscheidt yahoo.de> writes: > >> I want it to leave the frames exactly the way they are > >> now but only play 24 of them every second so that the > >> video runs slower.? I.E. instead of being 10:27 long > >> the video is 13:02. > > > > The setpts filter supports this, it needs reencoding though. > > There was an effort to supply a patched version of ffmpeg > doing this trick without reencoding I have a suspicion it actually works with current FFmpeg as well, I just never tested it (and I am unsure if this feature isn't actually a bug). Carl Eugen From cehoyos at ag.or.at Sun Jul 7 13:32:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 7 Jul 2013 11:32:50 +0000 (UTC) Subject: [FFmpeg-user] Remux to a "brand mp42" MP4 file References: <66567361A4EC46149E5014E23C83D4CE@vasonote> <1373183970642-4659859.post@n4.nabble.com> Message-ID: svnpenn gmail.com> writes: > > Could you explain your use-case, so we would > > know what to test? > > (Why is mp41 not godd enough?) > > Carl, I believe my issue is also caused by bad > "atoms" being written by FFmpeg Command line and complete, uncut console output missing. Please test -f ipod Carl Eugen From cehoyos at ag.or.at Sun Jul 7 13:26:15 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 7 Jul 2013 11:26:15 +0000 (UTC) Subject: [FFmpeg-user] RTMP streaming dropped frames stuttering audio References: <003BCC8D-0B1B-465D-99DD-B6DE91905E0F@livetechkeynotes.com> Message-ID: Joe de Max livetechkeynotes.com> writes: > ffmpeg -i http://192.168.1.112:49480/NewTekNetworkSend.mpg > -s 1280x720 -r 50 -c:v libx264 -preset veryfast (You may want to test ultrafast.) > -profile:v high -b:v 700k -strict -2 -c:a aac > -b:a 192k -f flv - | ffmpeg -f flv -i - -c copy > -f flv rtmp://server1 -c copy -f flv rtmp://server2 (Complete, uncut console output missing.) Sorry if I miss something but don't you agree that using two ffmpeg instances must produce an overhead? I didn't test but I would expect that using only one instance saves a few cycles (which may or may not be enough to fix your problem). Carl Eugen From nixscripter at gmail.com Sun Jul 7 20:47:00 2013 From: nixscripter at gmail.com (Dan Harrison) Date: Sun, 7 Jul 2013 13:47:00 -0500 Subject: [FFmpeg-user] RTMP stream URL truncation Message-ID: Hello, list. I'm trying to use FFmpeg to save an RTMP stream from the internet (i.e. a server I don't control). It claims it cannot find the stream. When I look at verbose output, however, the problem is clear: $ ffmpeg -loglevel verbose -i "rtmp://foo.net/cfx/st/mp4:BAR_BAZ/file.mp4" out.mp4 ... HandleInvoke, received result for method call SendPlay, seekTime=0, stopTime=0, sending play: mp4:file Invoking play ... Notice that "file.mp4" got its suffix dropped, even though it was part of the stream's name. As a result, the server replies it cannot find the stream: ... (object begin) Property: Property: Property: Property: Property: (object end) ... I'm guessing that FFmpeg used the librtmp library the same way rtmpdump does, because it does the same thing (verbose output not shown is identical to the above): $ rtmpdump -r "rtmp://foo.net/cfx/st/mp4:BAR_BAZ/file.mp4" -o out.mp4 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL Connecting ... INFO: Connected... ... ERROR: Closing connection: NetStream.Play.StreamNotFound And yet, when I use mplayer or mencoder -- which also uses librtmp -- it decides not to drop the suffix, and works correctly: $ mplayer -msglevel all=6 "rtmp://foo.net/cfx/st/mp4:BAR_BAZ/file.mp4" ... [rtmp @ 0x7f33ea814060]Handshaking... [rtmp @ 0x7f33ea814060]Type answer 3 [rtmp @ 0x7f33ea814060]Server version 3.5.7.1 [rtmp @ 0x7f33ea814060]Proto = rtmp, path = /cfx/st/mp4:BAR_BAZ/file.mp4, app = cfx/st, fname = mp4:BAR_BAZ/file.mp4 [rtmp @ 0x7f33ea814060]Server bandwidth = 1310720 [rtmp @ 0x7f33ea814060]Client bandwidth = 2500000 [rtmp @ 0x7f33ea814060]Creating stream... [rtmp @ 0x7f33ea814060]Sending play command for 'mp4:BAR_BAZ/file.mp4' [rtmp @ 0x7f33ea814060]New incoming chunk size = 4096 STREAM: [ffmpeg] rtmp://foo.net/cfx/st/mp4:BAR_BAZ/file.mp4 ... In fact, as you can see, mplayer uses libavcodec to decode the stream! So I know the code all works once this little problem gets solved. How do I get FFmpeg to tack my suffix back on? -- Dan Harrison From fragabr at gmail.com Mon Jul 8 03:49:44 2013 From: fragabr at gmail.com (=?UTF-8?B?RMOibmllbA==?= Fraga) Date: Sun, 7 Jul 2013 22:49:44 -0300 Subject: [FFmpeg-user] Trivial: ffmpeg configure doesn't detect libva path References: Message-ID: On Sun, 7 Jul 2013 11:23:20 +0000 (UTC) Carl Eugen Hoyos wrote: > Did you try --extra-cflags=-I/usr/xorg/include ? > This is supported, other solutions may brake without notice > or may brake compilation. That works! Thanks Carl! -- Linux 3.10.0: Unicycling Gorilla http://www.youtube.com/DanielFragaBR http://www.libertarios.org.br From me at robpitt.me.uk Mon Jul 8 07:43:53 2013 From: me at robpitt.me.uk (me at robpitt.me.uk) Date: Mon, 8 Jul 2013 06:43:53 +0100 Subject: [FFmpeg-user] Record microphone on android Message-ID: <847d645e-537e-46ba-b16e-e829f437930b.maildroid@localhost> Hello, I can record the screen as video with ffmpeg -f fbdev -r 25 -i /dev/graphics/fb0 -y -vcodec mpeg4 -b 2000k -s 480x853 new.mp4 I would like to record the microphone as the audio track, how do I accomplish this? Sent from my android device. From salmjuh at hotmail.com Mon Jul 8 09:36:41 2013 From: salmjuh at hotmail.com (Jii) Date: Mon, 8 Jul 2013 00:36:41 -0700 (PDT) Subject: [FFmpeg-user] rawvideo -> libx264 In-Reply-To: <20130705125013.69b017fc@lrcd.com> References: <20130705125013.69b017fc@lrcd.com> Message-ID: <1373269001066-4659870.post@n4.nabble.com> Hi And thanks fo this, it worked nice. One more problem capturing this SDI-signal. There is also embedded audio in the SDI but ffmpeg can't handle this. So do I need codec or is there something else to do with this one? br, juha -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/rawvideo-libx264-tp4659842p4659870.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From salmjuh at hotmail.com Mon Jul 8 11:56:05 2013 From: salmjuh at hotmail.com (juha s.) Date: Mon, 8 Jul 2013 12:56:05 +0300 Subject: [FFmpeg-user] Capturin SDI / No audio support Message-ID: Hi I'm succesfully now can capture video from Blackmagic's Duo card. SD- and HD-SDI bouth working great. But it seems that ffmpeg doesn't support embedded PCM audio: ------------------- SNIP ---------------------------- bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut -f pipe:1 | ffmpeg -re -i - -copyts -r 50 -s 640x360 -aspect 16:9 -vcodec libx264 -vprofile main -preset medium -crf 20 -b:v 1100k -maxrate 1300k -bufsize 1500k -pix_fmt yuv420p -y /tmp/test.mp4ffmpeg version git-2012-10-02-c785b6d Copyright (c) 2000-2012 the FFmpeg developers built on Jul 5 2013 13:28:23 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 62.100 / 54. 62.100 libavformat 54. 29.105 / 54. 29.105 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 19.100 / 3. 19.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 16.100 / 0. 16.100 libpostproc 52. 1.100 / 52. 1.100[nut @ 0x2273280] Unknown codec tag '0x10445350' for stream number 1[nut @ 0x2273280] Could not find codec parameters for stream 1 (Audio: none (PSD[16] / 0x10445350), 48000 Hz, 2 channels): unknown codecConsider increasing the value for the 'analyzeduration' and 'probesize' options[nut @ 0x2273280] Estimating duration from bitrate, this may be inaccurateGuessed Channel Layout for Input Stream #0.1 : stereoInput #0, nut, from 'pipe:': Metadata: encoder : Lavf54.20.3 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: none (PSD[16] / 0x10445350), 48000 Hz, stereo[graph 1 input from stream 0:1 @ 0x22eeca0] Invalid sample format '(null)'Error opening filters! ------------------- SNIP ---------------------------- So please, every help would be highly appreciate. Br,Jii From barsnick at gmx.net Mon Jul 8 19:49:23 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Mon, 8 Jul 2013 19:49:23 +0200 Subject: [FFmpeg-user] Capturin SDI / No audio support In-Reply-To: References: Message-ID: <20130708174923.GA14280@sunshine.barsnick.net> (Wow, I actually had to insert manual line breaks to read this.) On Mon, Jul 08, 2013 at 12:56:05 +0300, juha s. wrote: > bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut -f pipe:1 | ffmpeg -re -i - -copyts -r 50 -s 640x360 -aspect 16:9 -vcodec libx264 -vprofile main -preset medium -crf 20 -b:v 1100k -maxrate 1300k -bufsize 1500k -pix_fmt yuv420p -y /tmp/test.mp4 > ffmpeg version git-2012-10-02-c785b6d Copyright (c) 2000-2012 the FFmpeg developers This is quite old. Could you try a recent version, i.e. latest snapshot or git? > [nut @ 0x2273280] Unknown codec tag '0x10445350' for stream number 1 > [nut @ 0x2273280] Could not find codec parameters for stream 1 (Audio: none (PSD[16] / 0x10445350), 48000 Hz, 2 channels): unknown codec I have seen indications on the net that this should be detected as "pcm_s16le" instead of "none", if I'm not totally mistaken. You might want to try forcing that. But first, get a newer version of ffmpeg and try that. :-) Moritz From cehoyos at ag.or.at Mon Jul 8 23:17:04 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 8 Jul 2013 21:17:04 +0000 (UTC) Subject: [FFmpeg-user] [FFmpeg user] Frame drops with file in ffplay References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > Massimo Battistel gmail.com> writes: > > > http://www.sendspace.com/file/xq8q4v > > > > there is a frame drop problem in ffplay. > > I opened ticket #2574 for the regression. Should be fixed, thank you for the report! Carl Eugen From bobm-ffmpeg at burner.com Mon Jul 8 23:16:53 2013 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Mon, 08 Jul 2013 15:16:53 -0600 Subject: [FFmpeg-user] A change in -timecode ? Message-ID: <51DB2C45.8040004@burner.com> Updated to a more recent Windows build of ffmpeg and have been getting something new when using the -timecode switch making Quicktimes: Codec AVOption gop_timecode (MPEG GOP Timecode in hh:mm:ss[:;.]ff format) specified for output file #0 (D:\13HD2002H_ProRes.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. but I'm sort of not deciphering the meaning, and further confused by the fact that it all seems to work anyway -- I get the desired timecode in my output movie as before. Is there some other method I should be using, and/or what is this warning (?) really trying to tell me? Complete console: ffmpeg.exe -i "D:\13HD2000H.mov" -timecode 01:00:00:00 -top 1 -flags +ildct -codec:v prores_ks -profile:v hq -pix_fmt yuv422p10le -vf colormatrix=bt601:bt709 -threads 8 -codec:a pcm_s16le -filter_complex asetnsamples=n=16384:p=0 "D:\13HD2000H_ProRes.mov" ffmpeg version N-54277-gff130d7 Copyright (c) 2000-2013 the FFmpeg developers built on Jun 30 2013 01:25:12 with gcc 4.7.3 (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-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 17.100 / 55. 17.100 libavformat 55. 10.100 / 55. 10.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003ce240] Stream #1: not enough frames to estimate rate; consider increasing probesize [mov,mp4,m4a,3gp,3g2,mj2 @ 00000000003ce240] Stream #2: not enough frames to estimate rate; consider increasing probesize Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\13HD2000H.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-07-08 19:30:37 Duration: 00:00:30.03, start: 0.000000, bitrate: 993856 kb/s Stream #0:0(eng): Video: qtrle (rle / 0x20656C72), rgb24, 1920x1080, 991547 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc Metadata: creation_time : 2013-07-08 19:30:37 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s Metadata: creation_time : 2013-07-08 19:30:37 handler_name : Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s Metadata: creation_time : 2013-07-08 19:31:33 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 Codec AVOption gop_timecode (MPEG GOP Timecode in hh:mm:ss[:;.]ff format) specified for output file #0 (D:\13HD2000H_ProRes.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. Output #0, mov, to 'D:\13HD2000H_ProRes.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 01:00:00:00 encoder : Lavf55.10.100 Stream #0:0: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Stream #0:1(eng): Video: prores (prores_ks) (apch / 0x68637061), yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31,200 kb/s, 30k tbn, 29.97 tbc Metadata: creation_time : 2013-07-08 19:30:37 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 Stream mapping: Stream #0:1 (pcm_s24le) -> asetnsamples (graph 0) asetnsamples (graph 0) -> Stream #0:0 (pcm_s16le) Stream #0:0 -> #0:1 (qtrle -> prores_ks) Press [q] to stop, [?] for help frame= 56 fps=6.6 q=0.0 size= 38900kB time=00:00:01.86 bitrate=170546.9kbits/s From cehoyos at ag.or.at Mon Jul 8 23:20:22 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 8 Jul 2013 21:20:22 +0000 (UTC) Subject: [FFmpeg-user] Capturin SDI / No audio support References: Message-ID: juha s. hotmail.com> writes: > it seems that ffmpeg doesn't support embedded PCM audio: > ------------------- SNIP ---------------------------- > bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut Is the problem reproducible if you save this stream to a file? If yes, please provide a sample. Carl Eugen From cehoyos at ag.or.at Mon Jul 8 23:25:45 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 8 Jul 2013 21:25:45 +0000 (UTC) Subject: [FFmpeg-user] A change in -timecode ? References: <51DB2C45.8040004@burner.com> Message-ID: Bob Maple burner.com> writes: > timecode : 01:00:00:00 Do I understand correctly that the output file is correct (as far as timecode is concerned) and that the message is the only bad thing? (My problem is that I simply fail to understand what a "timecode" could be, so I typically don't understand the numerous reports connected to it.) Iiuc, the message appears because ffmpeg (the executable) translates "-timecode" to "-gop_timecode" but neither encoder nor muxer react on the later option (but they apparently react to another setting from ffmpeg). Carl Eugen From bobm-ffmpeg at burner.com Mon Jul 8 23:47:35 2013 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Mon, 08 Jul 2013 15:47:35 -0600 Subject: [FFmpeg-user] A change in -timecode ? In-Reply-To: References: <51DB2C45.8040004@burner.com> Message-ID: <51DB3377.8060003@burner.com> On 7/8/2013 3:25 PM, Carl Eugen Hoyos wrote: > Do I understand correctly that the output file > is correct (as far as timecode is concerned) > and that the message is the only bad thing? Correct. > Iiuc, the message appears because ffmpeg (the > executable) translates "-timecode" to "-gop_timecode" > but neither encoder nor muxer react on the later > option (but they apparently react to another > setting from ffmpeg). Hmmm. I guess I'll just ignore it for now, until it stops working :) It's just a warning that I've never seen before in prior versions and I wondered what had changed. From cehoyos at ag.or.at Tue Jul 9 02:14:53 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 9 Jul 2013 00:14:53 +0000 (UTC) Subject: [FFmpeg-user] A change in -timecode ? References: <51DB2C45.8040004@burner.com> Message-ID: Bob Maple burner.com> writes: > Updated to a more recent Windows build of ffmpeg > and have been getting something new when using > the -timecode switch making Quicktimes: > > Codec AVOption gop_timecode (MPEG GOP Timecode > in hh:mm:ss[:;.]ff format) specified for > output file #0 (D:\13HD2002H_ProRes.mov) has > not been used for any stream. I opened ticket #2762, thank you for the report! Carl Eugen From jam at tigger.ws Tue Jul 9 04:26:01 2013 From: jam at tigger.ws (James Linder) Date: Tue, 9 Jul 2013 10:26:01 +0800 Subject: [FFmpeg-user] Comments about audio sync invited In-Reply-To: References: <51DB2C45.8040004@burner.com> Message-ID: Some years ago I setup a record-v4l-camera-from-interface with audio on line in using transcode. Perfect, but at kernel 2.6.32 I modernized the recording system only to find transcode still uses VIDIOC_S_PARM ioctls that were removed from kernel cica 2.6.33 I use ffmpeg now. All good except the audio is not synced. I apply -itsoffset and all is good for an hour or two then the recording hesitates every 5 or so seconds for say 100mS. I've looked at top, vmstat, iostat even gnome-system-monitor and can see nothing that would be causing it. ffmpeg -f pulse -itsoffset 0.2 -i default -f v4l2 -i /dev/video0 -vtag divx -s svga -r pal -q:v 5 file.avi -s svga -f rawvideo - | ffplay -f rawvideo -i - -s svga There is not any swap or obvious unusual disk activity. Any ideas welcome James PS I tried avconv instead of ffmpeg and the stuttering ceased (joy, rapture) but I cannot sync audio (sad) avplay stutters where ffplay does not From thefatalaccidents at gmail.com Mon Jul 8 22:02:03 2013 From: thefatalaccidents at gmail.com (fatalaccidents) Date: Mon, 8 Jul 2013 13:02:03 -0700 (PDT) Subject: [FFmpeg-user] Problem with white-washed images Message-ID: <1373313723432-4659873.post@n4.nabble.com> ????????????Hey guys, I have been having a problem with converting multiple jpegs into an mp4. The problem seems to be with the colorspaces, or at least in the way that most video players play back certain mp4s with certain colorspaces. I have posted on this without being able to resolve it, but I thought giving more information might help me come to a working conclusion. The images I start with are grey, and an identify -verbose of one looks like: [code] Image: GA1_264000_b3.jpg Format: JPEG (Joint Photographic Experts Group JFIF format) Class: PseudoClass Geometry: 1800x1800+0+0 Resolution: 72x72 Print size: 25x25 Units: PixelsPerInch Type: Grayscale Endianess: Undefined Colorspace: Gray Depth: 8-bit Channel depth: gray: 8-bit Channel statistics: Gray: min: 0 (0) max: 255 (1) mean: 211.31 (0.828667) standard deviation: 92.5697 (0.363019) kurtosis: 1.30688 skewness: -1.79377 Colors: 256 Histogram: Colormap: Rendering intent: Undefined Gamma: 1 Background color: gray(255) Border color: gray(223) Matte color: gray(189) Transparent color: gray(0) Interlace: None Intensity: Undefined Compose: Over Page geometry: 1800x1800+0+0 Dispose: Undefined Iterations: 0 Compression: JPEG Quality: 100 Orientation: Undefined Properties: date:create: 2013-07-02T10:27:12-05:00 date:modify: 2013-05-26T11:16:54-05:00 jpeg:colorspace: 1 jpeg:sampling-factor: 1x1 signature: abeb35b2067e33de189df94bb0f1b973aa8c9ce47a70ebdd3da71661abd4c6fc Artifacts: filename: GA1_264000_b3.jpg verbose: true Tainted: True Filesize: 285KB Number pixels: 3.24M Pixels per second: 29.45MB [/code] I took the Histogram and Colormap out for space, but the colors go from 0 to 255. I think somewhere along the lines it is being compressed into a smaller scale, and white washing the resulting video. FFplay will play the video with the correct colors, but every other player messes it up. Has anyone encountered this problem before? I've been trying to fix it for quite some time now. The command: ffmpeg -f image2 -r 10 -pattern_type glob -i '*.jpg' -c:v libx264 out.mp4 gives this output: [code] ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on May 29 2013 17:51:44 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/gcc-4.2 --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --arch=x86_64 --enable-yasm libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, image2, from '*.jpg': Duration: 00:00:12.10, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, gray, 1800x1800 [SAR 72:72 DAR 1:1], 10 fps, 10 tbr, 10 tbn, 10 tbc [libx264 @ 0x102009e00] using SAR=1/1 [libx264 @ 0x102009e00] using cpu capabilities: none! [libx264 @ 0x102009e00] profile High, level 5.0 [libx264 @ 0x102009e00] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'out.mp4': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1800x1800 [SAR 1:1 DAR 1:1], q=-1--1, 10240 tbn, 10 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Press [q] to stop, [?] for help frame= 121 fps=3.0 q=-1.0 Lsize= 1955kB time=00:00:11.90 bitrate=1345.7kbits/s video:1953kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.107075% [libx264 @ 0x102009e00] frame I:2 Avg QP:15.70 size:108097 [libx264 @ 0x102009e00] frame P:51 Avg QP:19.14 size: 30949 [libx264 @ 0x102009e00] frame B:68 Avg QP:20.66 size: 3003 [libx264 @ 0x102009e00] consecutive B-frames: 23.1% 3.3% 7.4% 66.1% [libx264 @ 0x102009e00] mb I I16..4: 66.7% 19.1% 14.2% [libx264 @ 0x102009e00] mb P I16..4: 13.6% 8.7% 2.3% P16..4: 7.1% 0.7% 0.7% 0.0% 0.0% skip:66.8% [libx264 @ 0x102009e00] mb B I16..4: 0.1% 0.2% 0.1% B16..8: 3.0% 0.2% 0.1% direct: 1.6% skip:94.7% L0:37.0% L1:58.6% BI: 4.4% [libx264 @ 0x102009e00] 8x8 transform intra:33.5% inter:65.0% [libx264 @ 0x102009e00] coded y,uvDC,uvAC intra: 29.2% 0.0% 0.0% inter: 4.4% 0.0% 0.0% [libx264 @ 0x102009e00] i16 v,h,dc,p: 94% 3% 1% 2% [libx264 @ 0x102009e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 23% 25% 6% 8% 5% 11% 4% 9% [libx264 @ 0x102009e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 26% 23% 6% 8% 5% 10% 3% 6% [libx264 @ 0x102009e00] i8c dc,h,v,p: 100% 0% 0% 0% [libx264 @ 0x102009e00] Weighted P-Frames: Y:47.1% UV:0.0% [libx264 @ 0x102009e00] ref P L0: 48.0% 33.3% 10.3% 3.3% 5.1% [libx264 @ 0x102009e00] ref B L0: 78.2% 17.5% 4.3% [libx264 @ 0x102009e00] ref B L1: 94.6% 5.4% [libx264 @ 0x102009e00] kb/s:1321.53 [/code] When played with mplayer, I'm getting this output: [code] MPlayer 1.1-4.2.1 (C) 2000-2012 MPlayer Team 192 audio & 400 video codecs Playing out.mp4. libavformat version 54.6.101 (internal) libavformat file format detected. [lavf] stream 0: video (h264), -vid 0 VIDEO: [H264] 1800x1800 24bpp 10.000 fps 1322.0 kbps (161.4 kbyte/s) Clip info: major_brand: isom minor_version: 512 compatible_brands: isomiso2avc1mp41 encoder: Lavf54.63.104 Load subtitles in ./ ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.23.100 (internal) Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) ========================================================================== Audio: no sound Starting playback... Unsupported PixelFormat 61 Unsupported PixelFormat 53 Unsupported PixelFormat 81 Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] Movie-Aspect is 1.00:1 - prescaling to correct movie aspect. [swscaler @ 0x100b41620]BICUBIC scaler, from yuv420p to yuyv422 using MMX2 VO: [corevideo] 1800x1800 => 1800x1800 Packed YUY2 [/code] If I capture the first image from the video and identify it, it is much different in terms of its histogram than the first jpeg. Any help would be greatly, greatly appreciated. Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Problem-with-white-washed-images-tp4659873.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Tue Jul 9 09:44:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 9 Jul 2013 07:44:57 +0000 (UTC) Subject: [FFmpeg-user] Comments about audio sync invited References: <51DB2C45.8040004@burner.com> Message-ID: James Linder tigger.ws> writes: > ffmpeg -f pulse -itsoffset 0.2 -i default -f v4l2 > -i /dev/video0 -vtag divx -s svga -r pal -q:v 5 > file.avi -s svga -f rawvideo - | > ffplay -f rawvideo -i - -s svga Complete, uncut console output missing. Do I understand correctly that the output file out.avi shows problems or did you only see problems in the ffplay output? If this is about the output file, is the problem also reproducible with ffmpeg alone (without the pipe to ffplay)? I never tested pulse but it was suggested repeatedly not to use it, try alsa instead. Please understand that thread-hijacking is considered rude here (as is top-posting), Carl Eugen From cehoyos at ag.or.at Tue Jul 9 09:48:32 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 9 Jul 2013 07:48:32 +0000 (UTC) Subject: [FFmpeg-user] Problem with white-washed images References: <1373313723432-4659873.post@n4.nabble.com> Message-ID: fatalaccidents gmail.com> writes: > I have been having a problem with converting > multiple jpegs into an mp4. > The images I start with are grey Please test current git head, I believe this bug was fixed yesterday. If you can confirm the bug is fixed, consider posting on ffmpeg-devel, some developers claim that the old behaviour is expected and desirable and don't want this fixed in 1.2.2 Carl Eugen From nichot20 at yahoo.com Tue Jul 9 10:35:52 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Tue, 09 Jul 2013 09:35:52 +0100 Subject: [FFmpeg-user] A change in -timecode ? In-Reply-To: <51DB2C45.8040004@burner.com> References: <51DB2C45.8040004@burner.com> Message-ID: <51DBCB68.1050801@yahoo.com> On 08/07/13 22:16, Bob Maple wrote: > Updated to a more recent Windows build of ffmpeg and have been getting > something new when using the -timecode switch making Quicktimes: > > Codec AVOption gop_timecode (MPEG GOP Timecode in hh:mm:ss[:;.]ff > format) specified for output file #0 (D:\13HD2002H_ProRes.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. > > but I'm sort of not deciphering the meaning, and further confused by the > fact that it all seems to work anyway -- I get the desired timecode in > my output movie as before. > > Is there some other method I should be using, and/or what is this > warning (?) really trying to tell me? This is a recent and somewhat confusing message. The problem seems to be that the '-timecode' option is used for adding both .mov timecode streams that can be used in any mov with any codec, and also for setting an mpeg stream timecode in a variety of muxers. The warning is happening because you are coding to a non mpeg stream, but have asked for timecode and so the MPEG GOP timecode side of the code is telling you there is no valid stream to add the timecode too. However since you are trying to add a mov wrapper timecode this is not an issue. IMHO this is a bug, as the warning is incorrect in this situation. -- Tim From jam at tigger.ws Tue Jul 9 13:41:43 2013 From: jam at tigger.ws (James Linder) Date: Tue, 9 Jul 2013 19:41:43 +0800 Subject: [FFmpeg-user] Comments about audio sync invited In-Reply-To: References: <51DB2C45.8040004@burner.com> Message-ID: <70EF77B2-4254-417D-8D2B-4849B793A5D9@tigger.ws> On 09/07/2013, at 3:44 PM, Carl Eugen Hoyos wrote: > James Linder tigger.ws> writes: > >> ffmpeg -f pulse -itsoffset 0.2 -i default -f v4l2 >> -i /dev/video0 -vtag divx -s svga -r pal -q:v 5 >> file.avi -s svga -f rawvideo - | >> ffplay -f rawvideo -i - -s svga > > Complete, uncut console output missing. dvr at dvr:~> ffmpeg -f pulse -i default -f video4linux2 -i /dev/video0 -vtag divx -s svga -q:v 5 /home/dvr/Tue.avi ffmpeg version 1.0.6 Copyright (c) 2000-2013 the FFmpeg developers built on Apr 11 2013 18:03:32 with gcc 4.7 (SUSE Linux) configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [pulse @ 0xc352a0] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, pulse, from 'default': Duration: N/A, start: 0.636342, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [video4linux2,v4l2 @ 0xc32520] Estimating duration from bitrate, this may be inaccurate Input #1, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1373359581.412447, bitrate: 23040 kb/s Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240, 23040 kb/s, 25 tbr, 1000k tbn, 25 tbc Output #0, avi, to '/home/dvr/Tue.avi': Metadata: ISFT : Lavf54.29.104 Stream #0:0: Video: mpeg4 (divx / 0x78766964), yuv420p, 800x600, q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16 Stream mapping: Stream #1:0 -> #0:0 (rawvideo -> mpeg4) Stream #0:0 -> #0:1 (pcm_s16le -> libmp3lame) Press [q] to stop, [?] for help frame= 7 fps=0.0 q=5.0 size= 769kB time=00:00:01.17 bitrate=5354.8kbits/s frame= 14 fps= 14 q=5.0 size= 1264kB time=00:00:01.17 bitrate=8805.9kbits/s frame= 20 fps= 13 q=5.0 size= 1412kB time=00:00:02.16 bitrate=5354.8kbits/s frame= 27 fps= 13 q=5.0 size= 1572kB time=00:00:02.16 bitrate=5963.2kbits/s frame= 35 fps= 14 q=5.0 size= 2147kB time=00:00:03.12 bitrate=5637.6kbits/s frame= 42 fps= 14 q=5.0 size= 2578kB time=00:00:03.16 bitrate=6683.8kbits/s frame= 49 fps= 14 q=5.0 size= 2993kB time=00:00:03.93 bitrate=6228.6kbits/s frame= 56 fps= 14 q=5.0 size= 3151kB time=00:00:04.16 bitrate=6204.8kbits/s frame= 63 fps= 14 q=5.0 size= 3412kB time=00:00:04.94 [snip] [avi @ 0x6ae480] st:0 PTS: 352982 DTS: 352982 < 353004 invalid, clipping [avi @ 0x6ae480] st:0 PTS: 352983 DTS: 352983 < 353005 invalid, clipping frame=210999 fps= 25 q=5.0 size= 1650925kB time=02:21:12.14 bitrate=1596.3kbits/st:0 PTS: 352984 DTS: 352984 < 353006 invalid, clipping [avi @ 0x6ae480] st:0 PTS: 352985 DTS: 352985 < 353007 invalid, clipping [avi @ 0x6ae480] st:0 PTS: 352986 DTS: 352986 < 353008 invalid, clipping [avi @ 0x6ae480] st:0 PTS: 352987 DTS: 352987 < 353009 invalid, clipping frame=210999 fps= 25 q=5.0 Lsize= 1652659kB time=02:21:12.24 bitrate=1598.0kbits/s video:1505976kB audio:132379kB subtitle:0 global headers:0kB muxing overhead 0.873043% Received signal 2: terminating > Do I understand correctly that the output file out.avi > shows problems or did you only see problems in the > ffplay output? Both live ffplay display and the file show the same pauses > If this is about the output file, is the problem also > reproducible with ffmpeg alone (without the pipe to > ffplay)? Hmmm without the ffplay display all looks good. Only tried for 2 hours but usually the problem has occurred by now. Will do an overnight test. But I do need a live stream for my users. I'll try (again, the first was a diaster) to build the git-head to get tee and try that with ffplay or even mplayer. I watch cpu usage at 50% odd. > I never tested pulse but it was suggested repeatedly > not to use it, try alsa instead. I did try with alsa but exactly same as with pulse. Except for all the bad things about pulse, it is very nice. In particular I want an audio level meter for my users, pulse does that nicely alsa does not do so. > Please understand that thread-hijacking is considered > rude here (as is top-posting), Carl Eugen All my list mail is by digest, except ffmpeg-users so even though I thought the headers were clean, it was my flight-deck-finger-trouble. I'm sorry. James From cehoyos at ag.or.at Tue Jul 9 14:00:45 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 9 Jul 2013 12:00:45 +0000 (UTC) Subject: [FFmpeg-user] Comments about audio sync invited References: <51DB2C45.8040004@burner.com> <70EF77B2-4254-417D-8D2B-4849B793A5D9@tigger.ws> Message-ID: James Linder tigger.ws> writes: > ffmpeg version 1.0.6 This is old, please update to current git head. > Input #0, pulse, from 'default': > Duration: N/A, start: 0.636342, bitrate: 1536 kb/s > Input #1, video4linux2,v4l2, from '/dev/video0': > Duration: N/A, start: 1373359581.412447, bitrate: 23040 kb/s > [avi at 0x6ae480] st:0 PTS: 352982 DTS: > 352982 < 353004 invalid, clipping These are the culprits (note the different start times apart from the warning). Please try -use_wallclock_as_timestamps (it is possible that this only works with alsa). [...] > > is the problem also reproducible with ffmpeg > > alone (without the pipe to ffplay)? > > Hmmm without the ffplay display all looks good. Maybe somebody who knows more about pipes can comment. > I watch cpu usage at 50% odd. What happens if you significantly reduce the load by using a much smaller resolution? Carl Eugen From cehoyos at ag.or.at Tue Jul 9 14:01:58 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 9 Jul 2013 12:01:58 +0000 (UTC) Subject: [FFmpeg-user] A change in -timecode ? References: <51DB2C45.8040004@burner.com> Message-ID: Bob Maple burner.com> writes: > Updated to a more recent Windows build of ffmpeg > and have been getting something new when using > the -timecode switch making Quicktimes: > > Codec AVOption gop_timecode (MPEG GOP Timecode > in hh:mm:ss[:;.]ff format) specified for > output file #0 (D:\13HD2002H_ProRes.mov) has > not been used for any stream. Should be fixed, thank you for the report! Carl Eugen From soho123.2012 at gmail.com Tue Jul 9 15:07:27 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 9 Jul 2013 21:07:27 +0800 Subject: [FFmpeg-user] HELP :ffplay CANOT play h264 video + pcm_S16LE audio rtp stream Message-ID: Hi all, I got the big trouble about : ffplay can not play play h264 video + pcm_S16LE audio rtp stream. originally, ffplay can play video stream if no audio. after add audio part , then ffplay can not play Does anyone have ideas? the configuration of ffserver.conf: ====================================================== Port 8090 RTSPPort 5554 File /tmp/feed1.ffm FileMaxSize 5M ACL allow 127.0.0.1 Feed feed1.ffm Format rtp AVOptionVideo flags +global_header VideoSize 1280x720 VideoFrameRate 30 VideoCodec libx264 AVOptionAudio flags +global_header AudioCodec pcm_s16le AudioChannels 2 AudioSampleRate 48000 ====================================================== the detail log : ====================================================== ffserver version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 9 2013 15:51:03 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx2 64 --extra-cflags=-I/ShareLib_Install/bin/../include --extra-libs='-L/ShareLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps ,framestep,resample' --disable-encoders --enable-encoder='mjpeg,h264, libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Tue Jul 9 20:57:52 2013 FFserver started. ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 9 2013 15:51:03 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=sdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-mips32r2 --dis able-ffplay --disable-postproc --disable-runtime-cpudetect --disable-swscale-alpha --disable-mipsdspr1 --d isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl --enable-libx2 64 --extra-cflags=-I/ShareLib_Install/bin/../include --extra-libs='-L/ShareLib_Install/bin/../lib -lx264' --enable-filter='aformat,aresample,copy,format,fps ,framestep,resample' --disable-encoders --enable-encoder='mjpeg,h264, libavutil 52. 18.100 / 52. 18. 100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Splitting the commandline. Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument 'debu g'. Reading option '-f' ... matched as option 'f' (force format) with argument 'video4linux2'. Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with a rgument '30'. Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1280x7 20'. Reading option '-input_format' ... matched as AVOption 'input_format' with argument 'h264'. Reading option '-i' ... matched as input file with argument '/dev/video1'. Reading option '-f' ... matched as option 'f' (force format) with argument 'alsa'. Reading option '-i' ... matched as input file with argument 'hw:0'. 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 '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with a rgument 'copy'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with a rgument 'copy'. Reading option 'http://localhost:8090/feed1.ffm' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set libav* logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file /dev/video1. Applying option f (force format) with argument video4linux2. Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30. Applying option s (set frame size (WxH or abbreviation)) with argument 1280x720. Successfully parsed a group of options. Opening an input file: /dev/video1. [video4linux2,v4l2 @ 0x69e240] fd:3 capabilities:4000001 [video4linux2,v4l2 @ 0x69e240] Selecting input_channel: 0 [video4linux2,v4l2 @ 0x69e240] input_channel: 0, input_name: Camera 1 [video4linux2,v4l2 @ 0x69e240] Setting time per frame to 1/30 [h264 @ 0x69ede0] Using externally provided dimensions [h264 @ 0x69ede0] Frame num gap 18 16 [h264 @ 0x69ede0] Frame num gap 21 19 [h264 @ 0x69ede0] Frame num gap 27 25 [video4linux2,v4l2 @ 0x69e240] All info found [video4linux2,v4l2 @ 0x69e240] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video1': Duration: N/A, start: 24.690000, bitrate: N/A Stream #0:0, 8, 1/1000000: Video: h264, yuv420p, 1280x720, 1/2000000, -5 kb/s, 30 fps, 30 tbr, 1000k t bn, 2000k tbc Successfully opened the file. Parsing a group of options: input file hw:0. Applying option f (force format) with argument alsa. Successfully parsed a group of options. Opening an input file: hw:0. [alsa @ 0x837ba0] codec_id ==NONE [alsa @ 0x837ba0] All info found [alsa @ 0x837ba0] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, alsa, from 'hw:0': Duration: N/A, start: 1373403477.887958, bitrate: 1536 kb/s Stream #1:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Successfully opened the file. Parsing a group of options: output file http://localhost:8090/feed1.ffm. Applying option ar (set audio sampling rate (in Hz)) with argument 48000. Applying option ac (set number of audio channels) with argument 2. Applying option acodec (force audio codec ('copy' to copy stream)) with argument copy. Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy. Successfully parsed a group of options. Opening an output file: http://localhost:8090/feed1.ffm. [ffm @ 0x842e40] Format ffm probed with size=2048 and score=101 [AVIOContext @ 0x842700] Statistics: 4096 bytes read, 0 seeks Tue Jul 9 20:57:57 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175 Successfully opened the file. Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now encoder : Lavf54.63.104 Stream #0:0, 0, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s Stream #0:1, 0, 1/1000000: Video: h264, yuv420p, 1280x720, 1/1000000, q=2-31, -5 kb/s, 30 fps, 1000k t bn, 1000k tbc Stream mapping: Stream #1:0 -> #0:0 (copy) Stream #0:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 23 fps=0.0 q=-1.0 size= 136kB time=00:00:02.37 bitrate= 470.1kbits/s frame= 38 fps= 37 q=-1.0 size= 272kB time=00:00:02.87 bitrate= 776.4kbits/s frame= 53 fps= 35 q=-1.0 size= 388kB time=00:00:03.37 bitrate= 943.2kbits/s frame= 68 fps= 34 q=-1.0 size= 532kB time=00:00:03.87 bitrate=1126.1kbits/s frame= 83 fps= 33 q=-1.0 size= 740kB time=00:00:04.37 bitrate=1387.2kbits/s frame= 98 fps= 32 q=-1.0 size= 972kB time=00:00:04.87 bitrate=1635.0kbits/s frame= 113 fps= 32 q=-1.0 size= 1192kB time=00:00:05.37 bitrate=1818.4kbits/s frame= 128 fps= 32 q=-1.0 size= 1416kB time=00:00:05.87 bitrate=1976.1kbits/s frame= 143 fps= 32 q=-1.0 size= 1632kB time=00:00:06.37 bitrate=2098.8kbits/s frame= 158 fps= 31 q=-1.0 size= 1864kB time=00:00:06.87 bitrate=2222.7kbits/s frame= 173 fps= 31 q=-1.0 size= 2068kB time=00:00:07.37 bitrate=2298.7kbits/s frame= 188 fps= 31 q=-1.0 size= 2276kB time=00:00:07.87 bitrate=2369.1kbits/s frame= 203 fps= 31 q=-1.0 size= 2484kB time=00:00:08.37 bitrate=2431.2kbits/s frame= 218 fps= 31 q=-1.0 size= 2692kB time=00:00:08.87 bitrate=2486.2kbits/s frame= 233 fps= 31 q=-1.0 size= 2904kB time=00:00:09.37 bitrate=2538.9kbits/s frame= 248 fps= 31 q=-1.0 size= 3116kB time=00:00:09.87 bitrate=2586.2kbits/s frame= 263 fps= 31 q=-1.0 size= 3328kB time=00:00:10.37 bitrate=2629.0kbits/s frame= 278 fps= 31 q=-1.0 size= 3544kB time=00:00:10.87 bitrate=2670.9kbits/s frame= 293 fps= 31 q=-1.0 size= 3756kB time=00:00:11.37 bitrate=2706.2kbits/s frame= 308 fps= 31 q=-1.0 size= 3968kB time=00:00:11.87 bitrate=2738.5kbits/s frame= 323 fps= 31 q=-1.0 size= 4180kB time=00:00:12.37 bitrate=2768.2kbits/s Tue Jul 9 20:58:08 2013 192.168.1.3:34550 - - "PLAY test1-rtsp.mpg/streamid=0 RTP/UDP" Tue Jul 9 20:58:08 2013 192.168.1.3:34552 - - "PLAY test1-rtsp.mpg/streamid=1 RTP/UDP" frame= 338 fps= 31 q=-1.0 size= 4308kB time=00:00:12.87 bitrate=2742.1kbits/s frame= 353 fps= 31 q=-1.0 size= 4424kB time=00:00:13.37 bitrate=2710.7kbits/s frame= 368 fps= 31 q=-1.0 size= 4536kB time=00:00:13.87 bitrate=2679.1kbits/s frame= 383 fps= 31 q=-1.0 size= 4652kB time=00:00:14.37 bitrate=2652.0kbits/s frame= 398 fps= 31 q=-1.0 size= 4764kB time=00:00:14.87 bitrate=2624.5kbits/s frame= 413 fps= 31 q=-1.0 size= 4876kB time=00:00:15.37 bitrate=2598.8kbits/s ALSA buffer xrun. Tue Jul 9 20:58:11 2013 [ffm @ 0x679a80]resyncing Tue Jul 9 20:58:11 2013 [ffm @ 0x679a80]cannot find FFM syncword Tue Jul 9 20:58:11 2013 [ffm @ 0x679a80]resyncing frame= 428 fps= 31 q=-1.0 size= 5280kB time=00:00:15.87 bitrate=2725.5kbits/s frame= 443 fps= 30 q=-1.0 size= 5396kB time=00:00:16.37 bitrate=2700.3kbits/s frame= 458 fps= 30 q=-1.0 size= 5512kB time=00:00:16.87 bitrate=2676.6kbits/s frame= 473 fps= 30 q=-1.0 size= 5624kB time=00:00:17.37 bitrate=2652.4kbits/s find Key frame= 488 fps= 30 q=-1.0 size= 5748kB time=00:00:17.87 bitrate=2635.0kbits/s ALSA buffer xrun. frame= 503 fps= 30 q=-1.0 size= 6196kB time=00:00:18.37 bitrate=2763.1kbits/s ALSA buffer xrun. frame= 509 fps= 26 q=-1.0 size= 6224kB time=00:00:18.57 bitrate=2745.7kbits/s frame= 520 fps= 23 q=-1.0 size= 6776kB time=00:00:21.37 bitrate=2597.5kbits/s ALSA buffer xrun. frame= 537 fps= 22 q=-1.0 size= 6856kB time=00:00:24.47 bitrate=2295.2kbits/s ALSA buffer xrun. frame= 561 fps= 22 q=-1.0 size= 7040kB time=00:00:27.30 bitrate=2112.5kbits/s frame= 576 fps= 22 q=-1.0 size= 7092kB time=00:00:27.80 bitrate=2089.8kbits/s frame= 591 fps= 22 q=-1.0 size= 7144kB time=00:00:28.30 bitrate=2068.0kbits/s frame= 606 fps= 22 q=-1.0 size= 7200kB time=00:00:28.80 bitrate=2048.0kbits/s frame= 621 fps= 23 q=-1.0 size= 7252kB time=00:00:29.30 bitrate=2027.6kbits/s ALSA buffer xrun. frame= 636 fps= 23 q=-1.0 size= 7572kB time=00:00:29.80 bitrate=2081.5kbits/s frame= 652 fps= 23 q=-1.0 size= 7808kB time=00:00:30.34 bitrate=2108.2kbits/s frame= 667 fps= 23 q=-1.0 size= 8020kB time=00:00:30.84 bitrate=2130.3kbits/s frame= 682 fps= 23 q=-1.0 size= 8132kB time=00:00:31.34 bitrate=2125.6kbits/s frame= 697 fps= 23 q=-1.0 size= 8244kB time=00:00:31.84 bitrate=2121.1kbits/s frame= 712 fps= 23 q=-1.0 size= 8360kB time=00:00:32.34 bitrate=2117.7kbits/s frame= 726 fps= 23 q=-1.0 size= 8472kB time=00:00:32.80 bitrate=2115.9kbits/s frame= 741 fps= 24 q=-1.0 size= 8584kB time=00:00:33.30 bitrate=2111.7kbits/s ALSA buffer xrun. frame= 756 fps= 24 q=-1.0 size= 8996kB time=00:00:33.80 bitrate=2180.3kbits/s frame= 771 fps= 24 q=-1.0 size= 9108kB time=00:00:34.30 bitrate=2175.3kbits/s frame= 786 fps= 24 q=-1.0 size= 9220kB time=00:00:34.80 bitrate=2170.4kbits/s frame= 802 fps= 24 q=-1.0 size= 9352kB time=00:00:35.34 bitrate=2167.8kbits/s frame= 816 fps= 24 q=-1.0 size= 9460kB time=00:00:35.80 bitrate=2164.7kbits/s frame= 831 fps= 24 q=-1.0 size= 9576kB time=00:00:36.30 bitrate=2161.1kbits/s ALSA buffer xrun. frame= 846 fps= 24 q=-1.0 size= 10008kB time=00:00:36.80 bitrate=2227.9kbits/s frame= 861 fps= 24 q=-1.0 size= 10120kB time=00:00:37.30 bitrate=2222.6kbits/s frame= 876 fps= 24 q=-1.0 size= 10232kB time=00:00:37.80 bitrate=2217.5kbits/s frame= 891 fps= 24 q=-1.0 size= 10348kB time=00:00:38.30 bitrate=2213.3kbits/s Tue Jul 9 20:58:34 2013 192.168.1.3 - - [PLAY] "rtsp:// 192.168.1.254:5554/test1-rtsp.mpg/ RTSP/1.0" 200 1 030 frame= 907 fps= 25 q=-1.0 size= 10460kB time=00:00:38.84 bitrate=2206.2kbits/s frame= 922 fps= 25 q=-1.0 size= 10572kB time=00:00:39.34 bitrate=2201.5kbits/s ALSA buffer xrun. [ffm @ 0x842940] st:0 PTS: 37891681 DTS: 37891681 < 37892211 invalid, clipping frame= 937 fps= 25 q=-1.0 size= 10984kB time=00:00:39.84 bitrate=2258.6kbits/s frame= 952 fps= 25 q=-1.0 size= 11096kB time=00:00:40.34 bitrate=2253.3kbits/s qframe= 967 fps= 25 q=-1.0 size= 11208kB time=00:00:40.84 bitrate=2248.2kbits/s frame= 982 fps= 25 q=-1.0 size= 11324kB time=00:00:41.34 bitrate=2244.0kbits/s frame= 997 fps= 25 q=-1.0 size= 11444kB time=00:00:41.84 bitrate=2240.7kbits/s frame= 1012 fps= 25 q=-1.0 size= 11560kB time=00:00:42.34 bitrate=2236.6kbits/s ALSA buffer xrun. frame= 1027 fps= 25 q=-1.0 size= 11988kB time=00:00:42.84 bitrate=2292.4kbits/s ALSA buffer xrun. frame= 1029 fps= 23 q=-1.0 size= 12004kB time=00:00:42.90 bitrate=2292.2kbits/s frame= 1052 fps= 23 q=-1.0 size= 12572kB time=00:00:46.90 bitrate=2195.9kbits/s frame= 1067 fps= 23 q=-1.0 size= 12624kB time=00:00:47.40 bitrate=2181.8kbits/s ============================================================================= ffplay log: ffplay -loglevel debug rtsp://192.168.1.254:5554/test1-rtsp.mpg ffplay version N-54362-ge0be3cb Copyright (c) 2003-2013 the FFmpeg developers built on Jul 2 2013 22:15:59 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo- amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.100 / 55. 18.100 libavformat 55. 11.100 / 55. 11.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 SDP:nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Title c=IN IP4 0.0.0.0 t=0 0 a=tool:libavformat 54.63.104 m=audio 0 RTP/AVP 96 b=AS:1536 a=control:streamid=0 m=video 0 RTP/AVP 97 b=AS:-5 a=rtpmap:97 H264/90000 a=fmtp:97 packetization-mode=1; sprop-parameter-sets=Z0JAH5ZUAoAtyA==,aM44gA==; profile-level-id=42401F a=control:streamid=1 [rtsp @ 02a64500] video codec set to: h264 [NULL @ 02a679e0] RTP Packetization Mode: 1 [NULL @ 02a679e0] Extradata set to 02a67ea0 (size: 22)! [NULL @ 02a679e0] RTP Profile IDC: 42 Profile IOP: 40 Level: 1f hello state=0 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 From soho123.2012 at gmail.com Tue Jul 9 15:12:22 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 9 Jul 2013 21:12:22 +0800 Subject: [FFmpeg-user] HELP :ffplay CANOT play h264 video + pcm_S16LE audio rtp stream In-Reply-To: References: Message-ID: Hi All, the command line of ffmpeg I used: ffmpeg -loglevel debug -f video4linux2 -r 30 -s 1280x720 -input_format h264 -i /dev/video1 -f alsa -i hw:0 -ar 48000 -ac 2 -acodec copy -vcodec copy http://localhost:8090/feed1.ffm It is very appreciated for any input!! 2013/7/9 Soho Soho123 > Hi all, > > I got the big trouble about : > ffplay can not play play h264 video + pcm_S16LE audio rtp stream. > originally, ffplay can play video stream if no audio. > after add audio part , then ffplay can not play > Does anyone have ideas? > the configuration of ffserver.conf: > ====================================================== > Port 8090 > RTSPPort 5554 > > File /tmp/feed1.ffm FileMaxSize 5M > ACL allow 127.0.0.1 > > > Feed feed1.ffm > Format rtp > AVOptionVideo flags +global_header > VideoSize 1280x720 > VideoFrameRate 30 > VideoCodec libx264 > AVOptionAudio flags +global_header > AudioCodec pcm_s16le > AudioChannels 2 > AudioSampleRate 48000 > > ====================================================== > the detail log : > ====================================================== > ffserver version 1.2 Copyright (c) 2000-2013 the FFmpeg developers > built on Jul 9 2013 15:51:03 with gcc 4.4.5-1.5.5p4 (GCC) > configuration: --enable-cross-compile --cross-prefix=sdk-linux- > --arch=mips --target-os=linux --disable > -doc --disable-htmlpages --disable-manpages --disable-podpages > --disable-txtpages --disable-mips32r2 --dis > able-ffplay --disable-postproc --disable-runtime-cpudetect > --disable-swscale-alpha --disable-mipsdspr1 --d > isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs > --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl > --enable-libx2 > 64 --extra-cflags=-I/ShareLib_Install/bin/../include > --extra-libs='-L/ShareLib_Install/bin/../lib -lx264' > --enable-filter='aformat,aresample,copy,format,fps > ,framestep,resample' --disable-encoders --enable-encoder='mjpeg,h264, > libavutil 52. 18.100 / 52. 18. > 100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > Tue Jul 9 20:57:52 2013 FFserver started. > ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers > built on Jul 9 2013 15:51:03 with gcc 4.4.5-1.5.5p4 (GCC) > configuration: --enable-cross-compile --cross-prefix=sdk-linux- > --arch=mips --target-os=linux --disable > -doc --disable-htmlpages --disable-manpages --disable-podpages > --disable-txtpages --disable-mips32r2 --dis > able-ffplay --disable-postproc --disable-runtime-cpudetect > --disable-swscale-alpha --disable-mipsdspr1 --d > isable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg/romfs > --bindir=/ffmpeg/romfs --disable-bsfs --disable-filters --enable-gpl > --enable-libx2 > 64 --extra-cflags=-I/ShareLib_Install/bin/../include > --extra-libs='-L/ShareLib_Install/bin/../lib -lx264' > --enable-filter='aformat,aresample,copy,format,fps > ,framestep,resample' --disable-encoders --enable-encoder='mjpeg,h264, > libavutil 52. 18.100 / 52. 18. > 100 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.104 / 54. 63.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 42.103 / 3. 42.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > Splitting the commandline. > Reading option '-loglevel' ... matched as option 'loglevel' (set libav* > logging level) with argument 'debu > g'. > Reading option '-f' ... matched as option 'f' (force format) with argument > 'video4linux2'. > Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, > fraction or abbreviation)) with a > rgument '30'. > Reading option '-s' ... matched as option 's' (set frame size (WxH or > abbreviation)) with argument '1280x7 > 20'. > Reading option '-input_format' ... matched as AVOption 'input_format' with > argument 'h264'. > Reading option '-i' ... matched as input file with argument '/dev/video1'. > Reading option '-f' ... matched as option 'f' (force format) with argument > 'alsa'. > Reading option '-i' ... matched as input file with argument 'hw:0'. > 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 '-acodec' ... matched as option 'acodec' (force audio codec > ('copy' to copy stream)) with a > rgument 'copy'. > Reading option '-vcodec' ... matched as option 'vcodec' (force video codec > ('copy' to copy stream)) with a > rgument 'copy'. > Reading option 'http://localhost:8090/feed1.ffm' ... matched as output > file. > Finished splitting the commandline. > Parsing a group of options: global . > Applying option loglevel (set libav* logging level) with argument debug. > Successfully parsed a group of options. > Parsing a group of options: input file /dev/video1. > Applying option f (force format) with argument video4linux2. > Applying option r (set frame rate (Hz value, fraction or abbreviation)) > with argument 30. > Applying option s (set frame size (WxH or abbreviation)) with argument > 1280x720. > Successfully parsed a group of options. > Opening an input file: /dev/video1. > [video4linux2,v4l2 @ 0x69e240] fd:3 capabilities:4000001 > [video4linux2,v4l2 @ 0x69e240] Selecting input_channel: 0 > [video4linux2,v4l2 @ 0x69e240] input_channel: 0, input_name: Camera 1 > [video4linux2,v4l2 @ 0x69e240] Setting time per frame to 1/30 > [h264 @ 0x69ede0] Using externally provided dimensions > [h264 @ 0x69ede0] Frame num gap 18 16 > [h264 @ 0x69ede0] Frame num gap 21 19 > [h264 @ 0x69ede0] Frame num gap 27 25 > [video4linux2,v4l2 @ 0x69e240] All info found > [video4linux2,v4l2 @ 0x69e240] Estimating duration from bitrate, this may > be inaccurate > Input #0, video4linux2,v4l2, from '/dev/video1': > Duration: N/A, start: 24.690000, bitrate: N/A > Stream #0:0, 8, 1/1000000: Video: h264, yuv420p, 1280x720, 1/2000000, > -5 kb/s, 30 fps, 30 tbr, 1000k t > bn, 2000k tbc > Successfully opened the file. > Parsing a group of options: input file hw:0. > Applying option f (force format) with argument alsa. > Successfully parsed a group of options. > Opening an input file: hw:0. > [alsa @ 0x837ba0] codec_id ==NONE > [alsa @ 0x837ba0] All info found > [alsa @ 0x837ba0] Estimating duration from bitrate, this may be inaccurate > Guessed Channel Layout for Input Stream #1.0 : stereo > Input #1, alsa, from 'hw:0': > Duration: N/A, start: 1373403477.887958, bitrate: 1536 kb/s > Stream #1:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, s16, > 1536 kb/s > Successfully opened the file. > Parsing a group of options: output file http://localhost:8090/feed1.ffm. > Applying option ar (set audio sampling rate (in Hz)) with argument 48000. > Applying option ac (set number of audio channels) with argument 2. > Applying option acodec (force audio codec ('copy' to copy stream)) with > argument copy. > Applying option vcodec (force video codec ('copy' to copy stream)) with > argument copy. > Successfully parsed a group of options. > Opening an output file: http://localhost:8090/feed1.ffm. > [ffm @ 0x842e40] Format ffm probed with size=2048 and score=101 > [AVIOContext @ 0x842700] Statistics: 4096 bytes read, 0 seeks > Tue Jul 9 20:57:57 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 > 4175 > Successfully opened the file. > Output #0, ffm, to 'http://localhost:8090/feed1.ffm': > Metadata: > creation_time : now > encoder : Lavf54.63.104 > Stream #0:0, 0, 1/1000000: Audio: pcm_s16le, 48000 Hz, stereo, 1536 > kb/s > Stream #0:1, 0, 1/1000000: Video: h264, yuv420p, 1280x720, 1/1000000, > q=2-31, -5 kb/s, 30 fps, 1000k t > bn, 1000k tbc > Stream mapping: > Stream #1:0 -> #0:0 (copy) > Stream #0:0 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 23 fps=0.0 q=-1.0 size= 136kB time=00:00:02.37 bitrate= > 470.1kbits/s > frame= 38 fps= 37 q=-1.0 size= 272kB time=00:00:02.87 bitrate= > 776.4kbits/s > frame= 53 fps= 35 q=-1.0 size= 388kB time=00:00:03.37 bitrate= > 943.2kbits/s > frame= 68 fps= 34 q=-1.0 size= 532kB time=00:00:03.87 > bitrate=1126.1kbits/s > frame= 83 fps= 33 q=-1.0 size= 740kB time=00:00:04.37 > bitrate=1387.2kbits/s > frame= 98 fps= 32 q=-1.0 size= 972kB time=00:00:04.87 > bitrate=1635.0kbits/s > frame= 113 fps= 32 q=-1.0 size= 1192kB time=00:00:05.37 > bitrate=1818.4kbits/s > frame= 128 fps= 32 q=-1.0 size= 1416kB time=00:00:05.87 > bitrate=1976.1kbits/s > frame= 143 fps= 32 q=-1.0 size= 1632kB time=00:00:06.37 > bitrate=2098.8kbits/s > frame= 158 fps= 31 q=-1.0 size= 1864kB time=00:00:06.87 > bitrate=2222.7kbits/s > frame= 173 fps= 31 q=-1.0 size= 2068kB time=00:00:07.37 > bitrate=2298.7kbits/s > frame= 188 fps= 31 q=-1.0 size= 2276kB time=00:00:07.87 > bitrate=2369.1kbits/s > frame= 203 fps= 31 q=-1.0 size= 2484kB time=00:00:08.37 > bitrate=2431.2kbits/s > frame= 218 fps= 31 q=-1.0 size= 2692kB time=00:00:08.87 > bitrate=2486.2kbits/s > frame= 233 fps= 31 q=-1.0 size= 2904kB time=00:00:09.37 > bitrate=2538.9kbits/s > frame= 248 fps= 31 q=-1.0 size= 3116kB time=00:00:09.87 > bitrate=2586.2kbits/s > frame= 263 fps= 31 q=-1.0 size= 3328kB time=00:00:10.37 > bitrate=2629.0kbits/s > frame= 278 fps= 31 q=-1.0 size= 3544kB time=00:00:10.87 > bitrate=2670.9kbits/s > frame= 293 fps= 31 q=-1.0 size= 3756kB time=00:00:11.37 > bitrate=2706.2kbits/s > frame= 308 fps= 31 q=-1.0 size= 3968kB time=00:00:11.87 > bitrate=2738.5kbits/s > frame= 323 fps= 31 q=-1.0 size= 4180kB time=00:00:12.37 > bitrate=2768.2kbits/s > Tue Jul 9 20:58:08 2013 192.168.1.3:34550 - - "PLAY > test1-rtsp.mpg/streamid=0 RTP/UDP" > Tue Jul 9 20:58:08 2013 192.168.1.3:34552 - - "PLAY > test1-rtsp.mpg/streamid=1 RTP/UDP" > frame= 338 fps= 31 q=-1.0 size= 4308kB time=00:00:12.87 > bitrate=2742.1kbits/s > frame= 353 fps= 31 q=-1.0 size= 4424kB time=00:00:13.37 > bitrate=2710.7kbits/s > frame= 368 fps= 31 q=-1.0 size= 4536kB time=00:00:13.87 > bitrate=2679.1kbits/s > frame= 383 fps= 31 q=-1.0 size= 4652kB time=00:00:14.37 > bitrate=2652.0kbits/s > frame= 398 fps= 31 q=-1.0 size= 4764kB time=00:00:14.87 > bitrate=2624.5kbits/s > frame= 413 fps= 31 q=-1.0 size= 4876kB time=00:00:15.37 > bitrate=2598.8kbits/s > ALSA buffer xrun. > Tue Jul 9 20:58:11 2013 [ffm @ 0x679a80]resyncing > Tue Jul 9 20:58:11 2013 [ffm @ 0x679a80]cannot find FFM syncword > Tue Jul 9 20:58:11 2013 [ffm @ 0x679a80]resyncing > frame= 428 fps= 31 q=-1.0 size= 5280kB time=00:00:15.87 > bitrate=2725.5kbits/s > frame= 443 fps= 30 q=-1.0 size= 5396kB time=00:00:16.37 > bitrate=2700.3kbits/s > frame= 458 fps= 30 q=-1.0 size= 5512kB time=00:00:16.87 > bitrate=2676.6kbits/s > frame= 473 fps= 30 q=-1.0 size= 5624kB time=00:00:17.37 > bitrate=2652.4kbits/s > find Key > frame= 488 fps= 30 q=-1.0 size= 5748kB time=00:00:17.87 > bitrate=2635.0kbits/s > ALSA buffer xrun. > frame= 503 fps= 30 q=-1.0 size= 6196kB time=00:00:18.37 > bitrate=2763.1kbits/s > ALSA buffer xrun. > frame= 509 fps= 26 q=-1.0 size= 6224kB time=00:00:18.57 > bitrate=2745.7kbits/s > frame= 520 fps= 23 q=-1.0 size= 6776kB time=00:00:21.37 > bitrate=2597.5kbits/s > ALSA buffer xrun. > frame= 537 fps= 22 q=-1.0 size= 6856kB time=00:00:24.47 > bitrate=2295.2kbits/s > ALSA buffer xrun. > frame= 561 fps= 22 q=-1.0 size= 7040kB time=00:00:27.30 > bitrate=2112.5kbits/s > frame= 576 fps= 22 q=-1.0 size= 7092kB time=00:00:27.80 > bitrate=2089.8kbits/s > frame= 591 fps= 22 q=-1.0 size= 7144kB time=00:00:28.30 > bitrate=2068.0kbits/s > frame= 606 fps= 22 q=-1.0 size= 7200kB time=00:00:28.80 > bitrate=2048.0kbits/s > frame= 621 fps= 23 q=-1.0 size= 7252kB time=00:00:29.30 > bitrate=2027.6kbits/s > ALSA buffer xrun. > frame= 636 fps= 23 q=-1.0 size= 7572kB time=00:00:29.80 > bitrate=2081.5kbits/s > frame= 652 fps= 23 q=-1.0 size= 7808kB time=00:00:30.34 > bitrate=2108.2kbits/s > frame= 667 fps= 23 q=-1.0 size= 8020kB time=00:00:30.84 > bitrate=2130.3kbits/s > frame= 682 fps= 23 q=-1.0 size= 8132kB time=00:00:31.34 > bitrate=2125.6kbits/s > frame= 697 fps= 23 q=-1.0 size= 8244kB time=00:00:31.84 > bitrate=2121.1kbits/s > frame= 712 fps= 23 q=-1.0 size= 8360kB time=00:00:32.34 > bitrate=2117.7kbits/s > frame= 726 fps= 23 q=-1.0 size= 8472kB time=00:00:32.80 > bitrate=2115.9kbits/s > frame= 741 fps= 24 q=-1.0 size= 8584kB time=00:00:33.30 > bitrate=2111.7kbits/s > ALSA buffer xrun. > frame= 756 fps= 24 q=-1.0 size= 8996kB time=00:00:33.80 > bitrate=2180.3kbits/s > frame= 771 fps= 24 q=-1.0 size= 9108kB time=00:00:34.30 > bitrate=2175.3kbits/s > frame= 786 fps= 24 q=-1.0 size= 9220kB time=00:00:34.80 > bitrate=2170.4kbits/s > frame= 802 fps= 24 q=-1.0 size= 9352kB time=00:00:35.34 > bitrate=2167.8kbits/s > frame= 816 fps= 24 q=-1.0 size= 9460kB time=00:00:35.80 > bitrate=2164.7kbits/s > frame= 831 fps= 24 q=-1.0 size= 9576kB time=00:00:36.30 > bitrate=2161.1kbits/s > ALSA buffer xrun. > frame= 846 fps= 24 q=-1.0 size= 10008kB time=00:00:36.80 > bitrate=2227.9kbits/s > frame= 861 fps= 24 q=-1.0 size= 10120kB time=00:00:37.30 > bitrate=2222.6kbits/s > frame= 876 fps= 24 q=-1.0 size= 10232kB time=00:00:37.80 > bitrate=2217.5kbits/s > frame= 891 fps= 24 q=-1.0 size= 10348kB time=00:00:38.30 > bitrate=2213.3kbits/s > Tue Jul 9 20:58:34 2013 192.168.1.3 - - [PLAY] "rtsp:// > 192.168.1.254:5554/test1-rtsp.mpg/ RTSP/1.0" 200 1 > 030 > frame= 907 fps= 25 q=-1.0 size= 10460kB time=00:00:38.84 > bitrate=2206.2kbits/s > frame= 922 fps= 25 q=-1.0 size= 10572kB time=00:00:39.34 > bitrate=2201.5kbits/s > ALSA buffer xrun. > [ffm @ 0x842940] st:0 PTS: 37891681 DTS: 37891681 < 37892211 invalid, > clipping > frame= 937 fps= 25 q=-1.0 size= 10984kB time=00:00:39.84 > bitrate=2258.6kbits/s > frame= 952 fps= 25 q=-1.0 size= 11096kB time=00:00:40.34 > bitrate=2253.3kbits/s > qframe= 967 fps= 25 q=-1.0 size= 11208kB time=00:00:40.84 > bitrate=2248.2kbits/s > frame= 982 fps= 25 q=-1.0 size= 11324kB time=00:00:41.34 > bitrate=2244.0kbits/s > frame= 997 fps= 25 q=-1.0 size= 11444kB time=00:00:41.84 > bitrate=2240.7kbits/s > frame= 1012 fps= 25 q=-1.0 size= 11560kB time=00:00:42.34 > bitrate=2236.6kbits/s > ALSA buffer xrun. > frame= 1027 fps= 25 q=-1.0 size= 11988kB time=00:00:42.84 > bitrate=2292.4kbits/s > ALSA buffer xrun. > frame= 1029 fps= 23 q=-1.0 size= 12004kB time=00:00:42.90 > bitrate=2292.2kbits/s > frame= 1052 fps= 23 q=-1.0 size= 12572kB time=00:00:46.90 > bitrate=2195.9kbits/s > frame= 1067 fps= 23 q=-1.0 size= 12624kB time=00:00:47.40 > bitrate=2181.8kbits/s > > ============================================================================= > ffplay log: > ffplay -loglevel debug rtsp://192.168.1.254:5554/test1-rtsp.mpg > ffplay version N-54362-ge0be3cb Copyright (c) 2003-2013 the FFmpeg > developers > built on Jul 2 2013 22:15:59 with gcc 4.7.3 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads > --enable-av > isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls > --enab > le-iconv --enable-libass --enable-libbluray --enable-libcaca > --enable-libfreetyp > e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame > --ena > ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg > --enable-l > ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr > --enable-libsp > eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc > --enable-libvo- > amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-libxavs -- > enable-libxvid --enable-zlib > libavutil 52. 38.100 / 52. 38.100 > libavcodec 55. 18.100 / 55. 18.100 > libavformat 55. 11.100 / 55. 11.100 > libavdevice 55. 2.100 / 55. 2.100 > libavfilter 3. 77.101 / 3. 77.101 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > SDP:nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 > v=0 > o=- 0 0 IN IP4 127.0.0.1 > s=No Title > c=IN IP4 0.0.0.0 > t=0 0 > a=tool:libavformat 54.63.104 > m=audio 0 RTP/AVP 96 > b=AS:1536 > a=control:streamid=0 > m=video 0 RTP/AVP 97 > b=AS:-5 > a=rtpmap:97 H264/90000 > a=fmtp:97 packetization-mode=1; > sprop-parameter-sets=Z0JAH5ZUAoAtyA==,aM44gA==; > profile-level-id=42401F > a=control:streamid=1 > > [rtsp @ 02a64500] video codec set to: h264 > [NULL @ 02a679e0] RTP Packetization Mode: 1 > [NULL @ 02a679e0] Extradata set to 02a67ea0 (size: 22)! > [NULL @ 02a679e0] RTP Profile IDC: 42 Profile IOP: 40 Level: 1f > hello state=0 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 > nan : 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 > > > > > > > From salmjuh at hotmail.com Tue Jul 9 13:06:53 2013 From: salmjuh at hotmail.com (Jii) Date: Tue, 9 Jul 2013 04:06:53 -0700 (PDT) Subject: [FFmpeg-user] Capturin SDI / No audio support In-Reply-To: <1373356151053-4659882.post@n4.nabble.com> References: <20130708174923.GA14280@sunshine.barsnick.net> <1373356151053-4659882.post@n4.nabble.com> Message-ID: <1373368013785-4659885.post@n4.nabble.com> Ok, so now I have workin capture. But somehow every time I starting recording, this decklink's card gives me color bars for few frames. So is there a way how to tell ffmpeg that skip first 10 frames and after that start record the stream. Now I use this command: bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut -f pipe:1 |ffmpeg -re -i - -copyts -r 25 -aspect 16:9 -copyts -vcodec libx264 -vprofile main -preset medium -crf 17 -s 640x360 -b:a 196k -ar 44100 -b:v 1100k -maxrate 1300k -bufsize 1500k -pix_fmt yuv420p -y /tmp/testfile.mp4 Thanks for your help advanced. Ans if you have ideas how to make better quolity I'm pleased to hear any advices. Br, Jii -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Capturin-SDI-No-audio-support-tp4659871p4659885.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From salmjuh at hotmail.com Tue Jul 9 09:49:11 2013 From: salmjuh at hotmail.com (Jii) Date: Tue, 9 Jul 2013 00:49:11 -0700 (PDT) Subject: [FFmpeg-user] Capturin SDI / No audio support In-Reply-To: <20130708174923.GA14280@sunshine.barsnick.net> References: <20130708174923.GA14280@sunshine.barsnick.net> Message-ID: <1373356151053-4659882.post@n4.nabble.com> Hi Moritz and thanks for the hint. New version did the trick and thanks for you help :-) Br, jii -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Capturin-SDI-No-audio-support-tp4659871p4659882.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From thefatalaccidents at gmail.com Tue Jul 9 17:53:36 2013 From: thefatalaccidents at gmail.com (fatalaccidents) Date: Tue, 9 Jul 2013 08:53:36 -0700 (PDT) Subject: [FFmpeg-user] Problem with white-washed images In-Reply-To: References: <1373313723432-4659873.post@n4.nabble.com> Message-ID: <1373385216360-4659891.post@n4.nabble.com> This indeed fix my problem. I can play the movies properly in vlc player and quicktime. Although mplayer still has the line "[swscaler @ 0x100b41620]BICUBIC scaler, from yuv420p to yuyv422 using MMX2 " which I think it is making it reproduce this white-washed video. I don't need to run them with mplayer though, so it is a trivial matter for me. Thanks for your help. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Problem-with-white-washed-images-tp4659873p4659891.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bobm-ffmpeg at burner.com Tue Jul 9 21:50:24 2013 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Tue, 09 Jul 2013 13:50:24 -0600 Subject: [FFmpeg-user] A change in -timecode ? In-Reply-To: References: <51DB2C45.8040004@burner.com> Message-ID: <51DC6980.6070101@burner.com> On 7/9/2013 6:01 AM, Carl Eugen Hoyos wrote: > Should be fixed, thank you for the report! Cool, thanks! From lambda.clozure at gmail.com Wed Jul 10 13:31:44 2013 From: lambda.clozure at gmail.com (Bieber Butzeman) Date: Wed, 10 Jul 2013 13:31:44 +0200 Subject: [FFmpeg-user] Correct usage of the GNU Public licence and using mjpeg in mp4 container. Message-ID: Hi folks, i developed a small tool for a german university in java for windows, mac and linux that convert an animated gif into a movie. Now i having some questing regarding to release it under the GNU Public license: 1. As i am not sure if i use only Lesser GNU Public stuff is it ok if i just go for GNU Public license, because it is the more "restricted" one and don't have to worry about licensing concerns? 2. Is it sufficent to state in the License file that this Program (Gif2Video) is using the GNU Public license (2+) plus a copy of that license in a file nearby. And also mention that it uses ffmpeg (with a link) that use different licenses, most of it is in the Lesser GNU Public license (also place a copy of that License file). Or must i include the hole source with a binary release (doubt it, links should be sufficend, aren't they?) The other thing is that i having problems of using motion jpeg in a mp4 container, at least when it comes down to watch them in Quicktime or Windows Media Player. VLC works fine, maybe because both use libavcodec? Here is an example code that would my programm use in windows for making a mjpeg mp4 video out of jpeg images with i extract before form the gifs: ./lib/ffmpeg.exe -f image2 -r 15 -i C:\temp\CrocFAIL\CrocFAIL%d.jpeg -r 25 -vcodec mjpeg -pix_fmt yuv420p C:\temp\CrocFAIL.mp4 more readable -> ffmpeg -f image2 -r 15 -i test%d.jpeg -r 25 -vcodec mjpeg -pix_fmt yuv420p test.mp4 thanks for any help in advance and sorry for my broken english, trying to improve it, but i am no native speaker. Sven Gleitsmann btw if anyone need that tool, just send me an mail and i send you a download link. will release i most likely this month on sourceforge but for now it should be fine so. From cehoyos at ag.or.at Wed Jul 10 13:40:54 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 10 Jul 2013 11:40:54 +0000 (UTC) Subject: [FFmpeg-user] Correct usage of the GNU Public licence and using mjpeg in mp4 container. References: Message-ID: Bieber Butzeman gmail.com> writes: > Or must i include the hole source with a binary release No, a link to the *exact* sources that you used to compile FFmpeg are sufficient. ("... accompany ...") Please understand that usually, this link points to a website controlled by you and not to "ffmpeg.org". > ffmpeg -f image2 -r 15 -i test%d.jpeg -r 25 > -vcodec mjpeg -pix_fmt yuv420p test.mp4 I wanted to write: "Why do you think isom support mjpeg?" but it actually is supported. Do you have a mjpeg-in-isom file that is played by QuickTime? Carl Eugen IANAL, please read the GPL and the LGPL to know the exact requirements for binary distribution. From dflett at bigpond.net.au Wed Jul 10 13:50:43 2013 From: dflett at bigpond.net.au (Dan Flett) Date: Wed, 10 Jul 2013 21:50:43 +1000 Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers In-Reply-To: <20120827155600.GC21473@arborea> References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> Message-ID: <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Stefano Sabatini > Sent: Tuesday, 28 August 2012 01:56 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb > drivers > > On date Monday 2012-08-27 19:14:58 +0000, Xeslaro encoded: ..snip > > however, when i wanna grab something using ffmpeg -f fbdev -i > > /dev/fb0, ffmpeg just complains that the pixel format couldn't be > > recognized. > > > > i used the exactly the ffmpeg binary running on anther computer > > with intel 945gm integrated graphics card, and ffmpeg -f fbdev -i > > /dev/fb0 just worked fine. > > > are there some limitations in ffmpeg with framebuffer device? > > anyway to solve that problem? thanks. > > I implemented only the formats which I could test. Can you debug the device > and test the information passed to get_pixfmt_from_fb_varinfo()? It should > be rather easy to add an entry to the rgb_pixfmt_map array in fbdev.c. > Hi , I'm trying to use the fbdev format on the Raspberry Pi (Raspbian). When I try to to a screen grab or screencast I too get told "pixel format not supported". pi at raspberrypi ~/videos/test $ /usr/local/bin/ffmpeg -f fbdev -frames:v 1 -r 1 -i /dev/fb0 screenshot.jpeg ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 9 2013 14:47:41 with gcc 4.6 (Debian 4.6.3-14+rpi1) configuration: libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [fbdev @ 0xeae430] Framebuffer pixel format not supported. /dev/fb0: Invalid argument But I've discovered that this does work: pi at raspberrypi ~/videos/test $ /usr/local/bin/ffmpeg -f rawvideo -codec:v rawvideo -s 1680x1050 -pix_fmt rgb565le -frames:v 1 -r 1 -i /dev/fb0 screenshot-ff01.bmp ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 9 2013 14:47:41 with gcc 4.6 (Debian 4.6.3-14+rpi1) configuration: libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [rawvideo @ 0x2a835d0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from '/dev/fb0': Duration: N/A, start: 0.000000, bitrate: 28224 kb/s Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 1680x1050, 28224 kb/s, 1 tbr, 1 tbn, 1 tbc Output #0, image2, to 'screenshot-ff01.bmp': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: bmp, rgb565le, 1680x1050, q=2-31, 200 kb/s, 90k tbn, 1 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> bmp) Press [q] to stop, [?] for help [rawvideo @ 0x2a8c3a0] Invalid buffer size, packet size 20160 < expected length 3528000 Error while decoding stream #0:0: Invalid argument frame= 1 fps=0.4 q=0.0 Lsize=N/A time=00:00:01.00 bitrate=N/A video:3445kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000624% So it looks like the Raspberry Pi uses pixel format rgb565le. But I can't use this to create a video stream (I want to pipe it into gstreamer and use the omxh264enc encoder). Can I help fix this? If so, you'll have to take me through the debug steps as I'm not much of a c coder at all. :) Cheers, Dan From cehoyos at ag.or.at Wed Jul 10 14:06:13 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 10 Jul 2013 12:06:13 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> Message-ID: Dan Flett bigpond.net.au> writes: > But I've discovered that this does work: > > $ /usr/local/bin/ffmpeg -f rawvideo -codec:v rawvideo > -s 1680x1050 -pix_fmt rgb565le -frames:v 1 -r 1 > -i /dev/fb0 screenshot-ff01.bmp > [rawvideo 0x2a8c3a0] Invalid buffer size, > packet size 20160 < expected length 3528000 This line indicates that it does not work. Please add some printf's to get_pixfmt_from_fb_varinfo() in libavdevice/fbdev.c to show the contents of varinfo. (Although I fear a compressed format is used.) Carl Eugen From lucielemonnier at hotmail.fr Wed Jul 10 15:43:57 2013 From: lucielemonnier at hotmail.fr (lucie Lemonnier) Date: Wed, 10 Jul 2013 15:43:57 +0200 Subject: [FFmpeg-user] try to change complex filters on runtime Message-ID: Hello, I want to change complex filters on runtime by changing the code of ffmpeg.c to change between different overlays or to change the value of x in crop parameters. Before, i tried to change the overlays and crop with the use of simple filter.To try this, I call a fuction "filter_change" in the function transcode_step : void filter_change(char* newfilter){ ost->avfilter = av_strdup(newfilter); if (configure_filtergraph(ost->filter->graph)) { av_log(NULL, AV_LOG_FATAL, "Error opening filters!\n"); exit(1); } } I call for example : filter_change("movie = objets.png [mv1];[in][mv1] overlay=0:0 [out];[out] crop=1920:1080:0:0"); or filter_change("movie = transp.mov [mv1];[in][mv1] overlay=0:0 [out];[out] crop=1920:1080:0:0"); I use rtp to output. But when I add a video overlay for example, the output video (rtp) freeze and the output with overlay reappears after 5 to 10 seconds. It's too long. I need a real-time change or almost. That's why I test with complex filters. I create a function reinit_filters_complex that I call in transcode_step : void reinit_filters_complex(const char *arg){ int i,j; for (i = 0; i < nb_filtergraphs; i++) { avfilter_graph_free(&filtergraphs[i]->graph); for (j = 0; j < filtergraphs[i]->nb_inputs; j++) { av_freep(&filtergraphs[i]->inputs[j]->name); av_freep(&filtergraphs[i]->inputs[j]); } av_freep(&filtergraphs[i]->inputs); for (j = 0; j < filtergraphs[i]->nb_outputs; j++) { av_freep(&filtergraphs[i]->outputs[j]->name); av_freep(&filtergraphs[i]->outputs[j]); } av_freep(&filtergraphs[i]->outputs); av_freep(&filtergraphs[i]); } av_freep(&filtergraphs); nb_filtergraphs = 0; GROW_ARRAY(filtergraphs, nb_filtergraphs); if (!(filtergraphs[nb_filtergraphs - 1] = av_mallocz(sizeof(*filtergraphs[0])))) return AVERROR(ENOMEM); filtergraphs[nb_filtergraphs - 1]->index = nb_filtergraphs - 1; filtergraphs[nb_filtergraphs - 1]->graph_desc = arg; configure_complex_filters(); } For example , I call reinit_filters_complex("[0:0] crop=960:1080:0:0 [tin];[2:0] crop=960:1080:0:0 [tmv]);[tin][tmv]overlay=0:0"). I passed in parameters of ffmpeg -i videoSource.mp4 -i transp.mov -i objets.png -filter_complex "[0:0] crop=960:1080:0:0 [tin];[1:0] crop=960:1080:0:0 [tmv]". But It crash on this change. I think it's because I free all in filtergraphs. But I don't know what is missing for it to work. Can you help me, please? Thanks. From jam at tigger.ws Wed Jul 10 15:59:20 2013 From: jam at tigger.ws (James Linder) Date: Wed, 10 Jul 2013 21:59:20 +0800 Subject: [FFmpeg-user] Comments about audio sync invited In-Reply-To: References: <51DB2C45.8040004@burner.com> <70EF77B2-4254-417D-8D2B-4849B793A5D9@tigger.ws> Message-ID: <3424D80A-6E67-4AC2-9359-0DEE7F47E4F4@tigger.ws> On 09/07/2013, at 8:00 PM, Carl Eugen Hoyos wrote: > James Linder tigger.ws> writes: > >> ffmpeg version 1.0.6 > > This is old, please update to current git head. > >> Input #0, pulse, from 'default': >> Duration: N/A, start: 0.636342, bitrate: 1536 kb/s > >> Input #1, video4linux2,v4l2, from '/dev/video0': >> Duration: N/A, start: 1373359581.412447, bitrate: 23040 kb/s > >> [avi at 0x6ae480] st:0 PTS: 352982 DTS: >> 352982 < 353004 invalid, clipping > > These are the culprits (note the different start > times apart from the warning). > > Please try -use_wallclock_as_timestamps (it is > possible that this only works with alsa). > > [...] > >>> is the problem also reproducible with ffmpeg >>> alone (without the pipe to ffplay)? >> >> Hmmm without the ffplay display all looks good. > > Maybe somebody who knows more about pipes can comment. > >> I watch cpu usage at 50% odd. > > What happens if you significantly reduce the load by > using a much smaller resolution? If any kind soul can tell me why I'm being an idiot I would appreciate it so: Just to recap: I want to get audio and video synced I want to display what is being recorded Pulse lets them set the audio level visually I want to NOT start jerk-display after an hour or so I built git-head I followed http://ffmpeg.org/trac/ffmpeg/wiki/Creating%20multiple%20outputs and http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20use%20-map%20option [dvr] /home/dvr [132]% ./ffmpeg -f pulse -i default -f v4l2 -i /dev/video0 -vtag divx -s 384x288 -r pal -q:v 5 -f tee -map 0:a -map 1:v Wed.avi | cat >Wed1.avi ffmpeg version N-54580-g694550f Copyright (c) 2000-2013 the FFmpeg developers built on Jul 10 2013 11:43:58 with gcc 4.7 (SUSE Linux) configuration: --enable-libv4l2 --enable-libpulse libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 11.101 / 55. 11.101 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 79.100 / 3. 79.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, pulse, from 'default': Duration: N/A, start: 0.005521, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Input #1, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1373462222.886516, bitrate: 92160 kb/s Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480, 92160 kb/s, 25 fps, 25 tbr, 1000k tbn, 1000k tbc Output #0, tee, to 'Wed.avi': Stream #0:0: Audio: none, 0 channels, 128 kb/s Stream #0:1: Video: none (divx / 0x78766964), 384x288, q=2-31, 128 kb/s, 90k tbn Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> ?) Stream #1:0 -> #0:1 (rawvideo -> ?) Encoder (codec none) not found for output stream #0:0 Step #1 is to get 2 streams that are the same (I assume | cat will not cause performance issues) Thanks James From cehoyos at ag.or.at Wed Jul 10 16:06:16 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 10 Jul 2013 14:06:16 +0000 (UTC) Subject: [FFmpeg-user] Comments about audio sync invited References: <51DB2C45.8040004@burner.com> <70EF77B2-4254-417D-8D2B-4849B793A5D9@tigger.ws> <3424D80A-6E67-4AC2-9359-0DEE7F47E4F4@tigger.ws> Message-ID: James Linder tigger.ws> writes: > Output #0, tee, to 'Wed.avi': > Stream #0:0: Audio: none, 0 channels, 128 kb/s > Stream #0:1: Video: none (divx / 0x78766964), 384x288 The tee muxer has no default codecs, so you have to specify them with -acodec and -vcodec. Carl Eugen From nicolas.george at normalesup.org Wed Jul 10 16:19:45 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 10 Jul 2013 16:19:45 +0200 Subject: [FFmpeg-user] Comments about audio sync invited In-Reply-To: <3424D80A-6E67-4AC2-9359-0DEE7F47E4F4@tigger.ws> References: <51DB2C45.8040004@burner.com> <70EF77B2-4254-417D-8D2B-4849B793A5D9@tigger.ws> <3424D80A-6E67-4AC2-9359-0DEE7F47E4F4@tigger.ws> Message-ID: <20130710141944.GA8186@phare.normalesup.org> Le duodi 22 messidor, an CCXXI, James Linder a ?crit?: > [dvr] /home/dvr [132]% ./ffmpeg -f pulse -i default -f v4l2 -i /dev/video0 -vtag divx -s 384x288 -r pal -q:v 5 -f tee -map 0:a -map 1:v Wed.avi | cat >Wed1.avi The tee muxer in this command line does not make any sense. The cat is completely useless too. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From solarmobiletrailers at gmail.com Wed Jul 10 14:33:39 2013 From: solarmobiletrailers at gmail.com (Kesten Broughton) Date: Wed, 10 Jul 2013 07:33:39 -0500 Subject: [FFmpeg-user] Fwd: .configure can't locate x264.h In-Reply-To: References: Message-ID: Hi, Thanks for the quick response. I was following the instructions in the error message from running ./configure which asked to attach config.log and send it to this email. The config.log was around 108k. Is that an unusually large config.log or perhaps the message should be modified? Here is the message again without the log. I'm running ubuntu 12.04. kesten ---------- Forwarded message ---------- From: Kesten Broughton Date: Tue, Jul 9, 2013 at 8:42 PM Subject: .configure can't locate x264.h To: ffmpeg-user at mplayerhq.hu I just pulled fresh from trunk. I'm trying to build with all options to enable gource dependencies. last lines from config.log: gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -std=c99 -fomit-frame-pointer -pthread -E -o /tmp/ffconf.2RxuVyAx.o /tmp/ffconf.gaVjnbSu.c /tmp/ffconf.gaVjnbSu.c:1:18: fatal error: x264.h: No such file or directory compilation terminated. ERROR: libx264 not found However, i did get and build it, and it's in a standard place. kesten at kesten-K42Jr:/opt/lib/gource-0.40/ffmpeg$ locate x264.h /usr/include/x264.h how can i find where configure is looking for it? thanks, kesten -- Kesten Broughton President and Technology Director, Solar Mobile Trailers kesten at solarmobiletrailers.com www.sunfarmkitchens.ca 512 701 4209 -- From compuvision.sr at gmail.com Wed Jul 10 20:56:55 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 10 Jul 2013 15:56:55 -0300 Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file Message-ID: Hi there, I'm trying to produce MPEG2 files with hardcoded subs using ffmpeg under Windows. I'm following the instructions here: http://trac.ffmpeg.org/wiki/How%20to%20burn%20subtitles%20into%20the%20video I get perfect MPEG2 files with the default template in winff. ffmpeg.exe -y -i "E:\src.mkv" -f dvd -target ntsc-dvd -r 29.97 -vf scale=720:480 -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1 -flags +mv0 -cmp 0 -subcmp 2 "E:\dest.mpg" When I enter the option -vf subtitles=src.srt, like this ffmpeg.exe -y -i "E:\src.mkv" -vf subtitles=src.srt -f dvd -target ntsc-dvd -r 29.97 -vf scale=720:480 -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1 -flags +mv0 -cmp 0 -subcmp 2 "E:\dest.mpg" I get still the same mpeg file, without any subs.... When I type ffmpeg.exe I see it's compiled with libass ffmpeg version N-51433-g551f683 Copyright (c) 2000-2013 the FFmpeg developers built on Mar 28 2013 21:58:26 with gcc 4.8.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxa vs --enable-libxvid --enable-zlib libavutil 52. 22.101 / 52. 22.101 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 48.105 / 3. 48.105 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 What is the problem, what am I doing wrong? The output is this: ffmpeg version N-51433-g551f683 Copyright (c) 2000-2013 the FFmpeg developers built on Mar 28 2013 21:58:26 with gcc 4.8.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --ena ble-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-lib twolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxa vs --enable-libxvid --enable-zlib libavutil 52. 22.101 / 52. 22.101 libavcodec 55. 2.100 / 55. 2.100 libavformat 55. 0.100 / 55. 0.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 48.105 / 3. 48.105 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, matroska,webm, from src.mkv': Metadata: creation_time : 2013-04-11 22:04:12 Duration: 01:26:25.18, start: 0.000000, bitrate: 6955 kb/s Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x688 [SAR 1:1 DAR 80:43], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) Output #0, dvd, to 'E:\testmpg.mpg': Metadata: encoder : Lavf55.0.100 Stream #0:0(eng): Video: mpeg2video (hq), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 8000 kb/s, 90k tbn, 29.97 t bc (default) Stream #0:1: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (dca -> ac3) Press [q] to stop, [?] for help From cehoyos at ag.or.at Wed Jul 10 22:02:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 10 Jul 2013 20:02:20 +0000 (UTC) Subject: [FFmpeg-user] Fwd: .configure can't locate x264.h References: Message-ID: Kesten Broughton gmail.com> writes: > last lines from config.log: (The last lines is actually what is needed.) > gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 > -D_LARGEFILE_SOURCE -std=c99 -fomit-frame-pointer -pthread -E -o > /tmp/ffconf.2RxuVyAx.o /tmp/ffconf.gaVjnbSu.c > /tmp/ffconf.gaVjnbSu.c:1:18: fatal error: x264.h: No such file or directory > compilation terminated. > ERROR: libx264 not found > > However, i did get and build it, and it's in a standard place. > kesten kesten-K42Jr:/opt/lib/gource-0.40/ffmpeg$ locate x264.h > /usr/include/x264.h What is your configure line? Does gcc -v show anything unusual? Carl Eugen From cehoyos at ag.or.at Wed Jul 10 22:03:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 10 Jul 2013 20:03:40 +0000 (UTC) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file References: Message-ID: Albert Scholtalbers gmail.com> writes: > ffmpeg.exe -y -i "E:\src.mkv" -vf subtitles=src.srt > -f dvd -target ntsc-dvd -r 29.97 -vf scale=720:480 > -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1 > -flags +mv0 -cmp 0 -subcmp 2 "E:\dest.mpg" I didn't test but I suspect specifying two "-vf" options for one output file is either undefined behaviour or forces only the second option. Carl Eugen From compuvision.sr at gmail.com Wed Jul 10 22:21:26 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 10 Jul 2013 17:21:26 -0300 Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: References: Message-ID: >I didn't test but I suspect specifying two"-vf" options for one output file is either > undefined behaviour or forces only the > second option. >Carl Eugen I found a working command under Linux: /usr/local/bin/ffmpeg -y -i src.mkv -f dvd -target ntsc-dvd -r 29.97 -vf scale=720:480 -vf subtitles=filename=src.srt -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1 -flags +mv0 -cmp 0 -subcmp 2 dest.mpg That "seems"to be easier. But I haven't found any option to set font/size/color in document or Google yet. From bostjan.strojan at gmail.com Wed Jul 10 22:37:39 2013 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Wed, 10 Jul 2013 22:37:39 +0200 Subject: [FFmpeg-user] Fwd: .configure can't locate x264.h In-Reply-To: References: Message-ID: On Wed, Jul 10, 2013 at 2:33 PM, Kesten Broughton wrote: > ERROR: libx264 not found you may need to add --extra-ldflags="-ldl" to the ffmpeg ./configure part (This is due to the new way x264 is dynamically loading opencl stuff.) b. From cehoyos at ag.or.at Wed Jul 10 22:42:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 10 Jul 2013 20:42:09 +0000 (UTC) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file References: Message-ID: Albert Scholtalbers gmail.com> writes: > I found a working command under Linux: > -vf subtitles=filename=src.srt > But I haven't found any option to set > font/size/color in document or Google yet. I am really no srt expert, but I would have expected that the srt file contains all definitions for font/size/color. Carl Eugen From compuvision.sr at gmail.com Wed Jul 10 23:08:47 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 10 Jul 2013 18:08:47 -0300 Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: References: Message-ID: Thx for your honesty. It seems besides libass, you also need to enable fontconfig so --enable-libass --enable-fontconfig I think otherwise you only have one basic font. .srt files only contain txt and starttime code and stoptime code so very easy and straight forward. >> I found a working command under Linux: >> -vf subtitles=filename=src.srt >> But I haven't found any option to set >> font/size/color in document or Google yet. >I am really no srt expert, but I would have >expected that the srt file contains all >definitions for font/size/color. From cehoyos at ag.or.at Wed Jul 10 23:13:48 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 10 Jul 2013 21:13:48 +0000 (UTC) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file References: Message-ID: Albert Scholtalbers gmail.com> writes: > .srt files only contain txt and starttime code > and stoptime code This is at least not true for the one srt file that FFmpeg uses for regression tests. Please avoid top-posting here, Carl Eugen From compuvision.sr at gmail.com Wed Jul 10 23:35:04 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 10 Jul 2013 18:35:04 -0300 Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: References: Message-ID: > Please avoid top-posting here, Carl Eugen I don't know what you mean by that. Why I discovered is that there is a gui for the mailinglists now. So it will be easier to reply and format than in Gmail :) From barsnick at gmx.net Wed Jul 10 23:52:35 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 10 Jul 2013 23:52:35 +0200 Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: References: Message-ID: <20130710215235.GA20341@sunshine.barsnick.net> On Wed, Jul 10, 2013 at 18:35:04 -0300, Albert Scholtalbers wrote: > > Please avoid top-posting here, Carl Eugen > I don't know what you mean by that. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? M. From compuvision.sr at gmail.com Wed Jul 10 23:38:22 2013 From: compuvision.sr at gmail.com (gepebril) Date: Wed, 10 Jul 2013 14:38:22 -0700 (PDT) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: References: Message-ID: <1373492302767-4659911.post@n4.nabble.com> Aha, Via the Gui now :) Is there a libass .srt specialist withing the FFMpeg community It seems there is hardly any info on this matter on the Linux platform -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/make-mpeg2-file-with-hardcoded-subs-from-srt-file-tp4659902p4659911.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From compuvision.sr at gmail.com Wed Jul 10 23:59:10 2013 From: compuvision.sr at gmail.com (gepebril) Date: Wed, 10 Jul 2013 14:59:10 -0700 (PDT) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: <20130710215235.GA20341@sunshine.barsnick.net> References: <20130710215235.GA20341@sunshine.barsnick.net> Message-ID: <1373493550748-4659913.post@n4.nabble.com> @Moritz Thx for the reply. If somebody writes that they don't know what somebody means. You are not helping them by explaining why it's bad or good. Just an example what top posting textually is..... -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/make-mpeg2-file-with-hardcoded-subs-from-srt-file-tp4659902p4659913.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dflett at bigpond.net.au Thu Jul 11 01:39:28 2013 From: dflett at bigpond.net.au (Dan Flett) Date: Thu, 11 Jul 2013 09:39:28 +1000 Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers In-Reply-To: References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> Message-ID: <000a01ce7dc6$b82d5ba0$288812e0$@bigpond.net.au> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: Wednesday, 10 July 2013 22:06 > > But I've discovered that this does work: > > > > $ /usr/local/bin/ffmpeg -f rawvideo -codec:v rawvideo -s 1680x1050 > > -pix_fmt rgb565le -frames:v 1 -r 1 -i /dev/fb0 screenshot-ff01.bmp > > > [rawvideo 0x2a8c3a0] Invalid buffer size, packet size 20160 < > > expected length 3528000 > > This line indicates that it does not work. > Please add some printf's to get_pixfmt_from_fb_varinfo() in > libavdevice/fbdev.c to show the contents of varinfo. > (Although I fear a compressed format is used.) Yes obviously there's some issue there too, but despite the error message, ffmpeg does work in that I do get an output (a BMP screenshot in this case). I will do as you suggest and report back. Dan From jam at tigger.ws Thu Jul 11 03:29:01 2013 From: jam at tigger.ws (James Linder) Date: Thu, 11 Jul 2013 09:29:01 +0800 Subject: [FFmpeg-user] Comments about audio sync invited In-Reply-To: <20130710141944.GA8186@phare.normalesup.org> References: <51DB2C45.8040004@burner.com> <70EF77B2-4254-417D-8D2B-4849B793A5D9@tigger.ws> <3424D80A-6E67-4AC2-9359-0DEE7F47E4F4@tigger.ws> <20130710141944.GA8186@phare.normalesup.org> Message-ID: <502E99C1-2AC6-4ED9-B290-261A4BFCA3DE@tigger.ws> On 10/07/2013, at 10:19 PM, Nicolas George wrote: > Le duodi 22 messidor, an CCXXI, James Linder a ?crit : >> [dvr] /home/dvr [132]% ./ffmpeg -f pulse -i default -f v4l2 -i /dev/video0 -vtag divx -s 384x288 -r pal -q:v 5 -f tee -map 0:a -map 1:v Wed.avi | cat >Wed1.avi > > The tee muxer in this command line does not make any sense. The cat is > completely useless too. Hi Nicolas Please explain a little more. I want to output the pipe to ffplay or mplayer but after a while my display and my recorded file show pauses every 5 seconds or so of 100mS or so. The cat command would isolate the display process from the mix. vmstat, top, iostat and gnome-system-monitor do not give any clues to the reason for jerky display - they look the same when steady and jerky recording is taking place. Cat also gives two files that I may inspect to confirm they are identical before proceeding with record-and-display. Why is my cat completely useless? snip from 1st post: (well the whole post :-) ----------------------------------------------------------------------------- Some years ago I setup a record-v4l-camera-from-interface with audio on line in using transcode. Perfect, but at kernel 2.6.32 I modernized the recording system only to find transcode still uses VIDIOC_S_PARM ioctls that were removed from kernel cica 2.6.33 I use ffmpeg now. All good except the audio is not synced. I apply -itsoffset and all is good for an hour or two then the recording hesitates every 5 or so seconds for say 100mS. I've looked at top, vmstat, iostat even gnome-system-monitor and can see nothing that would be causing it. ffmpeg -f pulse -itsoffset 0.2 -i default -f v4l2 -i /dev/video0 -vtag divx -s svga -r pal -q:v 5 file.avi -s svga -f rawvideo - | ffplay -f rawvideo -i - -s svga There is not any swap or obvious unusual disk activity. Any ideas welcome James PS I tried avconv instead of ffmpeg and the stuttering ceased (joy, rapture) but I cannot sync audio (sad) avplay stutters where ffplay does not -------------------------------------------------------------------------------------------------------------------------------------- James From soho123.2012 at gmail.com Thu Jul 11 05:12:26 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 11 Jul 2013 11:12:26 +0800 Subject: [FFmpeg-user] how to use presets files Message-ID: Hi All, I see the files about "presets" in the folder "/ffmpeg/presets". for example: libvpx-1080p.ffpreset it seems some parameter settings. Does someone have idea about the purpose of presets? How to use the presets for reduce latency when the video codec is libx264? Thanks! From zoleexfz at tanoda.suli.hu Thu Jul 11 07:15:28 2013 From: zoleexfz at tanoda.suli.hu (=?ISO-8859-2?Q?F=FCves_Zolt=E1n?=) Date: Thu, 11 Jul 2013 07:15:28 +0200 Subject: [FFmpeg-user] strange preset file parse error on gentoo from on 10.0.7 and above in june Message-ID: <51DE3F70.3050302@tanoda.suli.hu> Hi all, I use ffmpeg (and fffserver) for streaming the tv to my laptop since a few months without any error, but a few days ago I got a parse error when I used preset file some flags2 option didn't work anymore (+fastpskip+mbtree) and with some other sets too with this error: Undefined constant or missing '(' in 'fastpskip' Unable to parse option value "fastpskip+mbtree" .ffmpeg/libx264-lossless_ultrafast.ffpreset: Invalid option or argument: 'flags2=+fastpskip+mbtree', parsed as 'flags2' = '+fastpskip+mbtree' :O I checked (double checked) gentoo forums but I didn't have any relevant comment about this, so at this point I don't know what to do ( and I used stable branch of the potage mostly so nothing magic stuff I prefer 'it's just work operation' ) When I use these option (-fast-pskip 1 -mbtree 1 ) with ffmpeg command it looks good and working but why and why not from the preset Thanks for your time and help keep the good work Z. From cehoyos at ag.or.at Thu Jul 11 08:42:26 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 11 Jul 2013 06:42:26 +0000 (UTC) Subject: [FFmpeg-user] strange preset file parse error on gentoo from on 10.0.7 and above in june References: <51DE3F70.3050302@tanoda.suli.hu> Message-ID: F?ves Zolt?n tanoda.suli.hu> writes: > with this error: > Undefined constant or missing '(' in 'fastpskip' Command line and complete, uncut console output missing. Carl Eugen From oliver at fromme.com Thu Jul 11 08:49:41 2013 From: oliver at fromme.com (Oliver Fromme) Date: Thu, 11 Jul 2013 08:49:41 +0200 (CEST) Subject: [FFmpeg-user] Comments about audio sync invited In-Reply-To: <502E99C1-2AC6-4ED9-B290-261A4BFCA3DE@tigger.ws> Message-ID: <201307110649.r6B6nflk025866@haluter.fromme.com> James Linder wrote: > > On 10/07/2013, at 10:19 PM, Nicolas George wrote: > > > Le duodi 22 messidor, an CCXXI, James Linder a ?crit : > > > [dvr] /home/dvr [132]% ./ffmpeg -f pulse -i default -f v4l2 -i /dev/video0 -vtag divx -s 384x288 -r pal -q:v 5 -f tee -map 0:a -map 1:v Wed.avi | cat >Wed1.avi > > > > The tee muxer in this command line does not make any sense. The cat is > > completely useless too. > [...] > Why is my cat completely useless? Because the following two commands produce the same result: $ ffmpeg ... | cat > foo.avi $ ffmpeg ... > foo.avi The difference is that the first has an additional overhead of one execve() (probably insignificant in this case) and of one pipe and one process that have to handle the output data. The latter might be significant because it usually involves at least two in-memory copy operations, depending on the implementations of pipes and cat in your operating system. The above is a typical "useless use of cat". It should be avoided. If everybody checked his/her shell scripts for useless uses of cat and removed them, we could probably save a few megawatts of electrical power per day that would otherwise be wasted. ;-) Best regards Oliver -- ``We are all but compressed light'' (Albert Einstein) From zoleexfz at tanoda.suli.hu Thu Jul 11 09:24:24 2013 From: zoleexfz at tanoda.suli.hu (=?UTF-8?B?RsO8dmVzIFpvbHTDoW4=?=) Date: Thu, 11 Jul 2013 09:24:24 +0200 Subject: [FFmpeg-user] strange preset file parse error on gentoo from on 10.0.7 and above in june In-Reply-To: References: <51DE3F70.3050302@tanoda.suli.hu> Message-ID: <51DE5DA8.7060207@tanoda.suli.hu> Hi, thanks for your reply and than here is the command line and the console output but what i said before these setting worked for me many times until that strange and sunny summer day :) ffmpeg -f video4linux2 -i /dev/video0 -f alsa -i pulse -async 1 http://*.*.*.1:8090/feed1.ffm the preset file : cat .ffmpeg/libx264-lossless_ultrafast.ffpreset coder=0 flags=+loop cmp=+chroma partitions=-parti8x8-parti4x4-partp8x8-partp4x4-partb8x8 me_method=dia subq=0 me_range=16 g=250 keyint_min=25 sc_threshold=40 i_qfactor=0.71 b_strategy=1 qcomp=0.6 qmin=10 qmax=51 qdiff=4 directpred=1 flags2=+fastpskip+mbtree cqp=0 ffserver stream sets: # Output stream URL definition Feed feed1.ffm # Feed from which to receive video Format flv # Audio settings AudioCodec aac Strict -2 AudioBitRate 64 AudioChannels 1 AudioSampleRate 44100 # Video settings VideoCodec libx264 VideoSize 720x576 VideoFrameRate 25 AVOptionVideo flags +global_header AVPresetVideo lossless_ultrafast AVOptionAudio flags +global_header StartSendOnKey VideoBitRate 700 # Video bitrate and the ffserver output: ffserver -f /*notpublic/FfserverTV ffserver version 1.0.7 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 11 2013 09:15:01 with gcc 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7) configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-shared --cc=i686-pc-linux-gnu-gcc --cxx=i686-pc-linux-gnu-g++ --ar=i686-pc-linux-gnu-ar --optflags='-march=native -Os -pipe' --extra-cflags='-march=native -Os -pipe' --extra-cxxflags='-march=native -Os -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --disable-debug --disable-doc --disable-vdpau --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --disable-indev=oss --disable-indev=jack --enable-x11grab --enable-libpulse --disable-outdev=oss --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libopenjpeg --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-ssse3 --disable-vis --disable-neon --cpu=host --enable-hardcoded-tables libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [NULL @ 0xbf89c58c] [Eval @ 0xbf89aa98] Undefined constant or missing '(' in 'fastpskip' [NULL @ 0xbf89c58c] Unable to parse option value "fastpskip+mbtree" /*notpublic/.ffmpeg/libx264-lossless_ultrafast.ffpreset: Invalid option or argument: 'flags2=+fastpskip+mbtree', parsed as 'flags2' = '+fastpskip+mbtree' /*notpublic/FfserverTV:52: AVPreset error: lossless_ultrafast Incorrect config file - exiting. same results from the git repo: ffserver version N-54624-g2e6338b Copyright (c) 2000-2013 the FFmpeg developers built on Jul 10 2013 16:51:26 with gcc 4.5.4 (Gentoo 4.5.4 p1.0, pie-0.4.7) configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-shared --cc=i686-pc-linux-gnu-gcc --cxx=i686-pc-linux-gnu-g++ --ar=i686-pc-linux-gnu-ar --optflags='-march=native -Os -pipe' --extra-cflags='-march=native -Os -pipe' --extra-cxxflags='-march=native -Os -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --enable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --enable-network --disable-openssl --enable-ffplay --enable-vaapi --disable-vdpau --enable-zlib --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-libfdk-aac --disable-libaacplus --enable-libfaac --disable-libtheora --disable-libtwolame --disable-libwavpack --enable-libx264 --enable-libxvid --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca libavutil 52. 39.100 / 52. 39.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.100 / 55. 12.100 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 80.100 / 3. 80.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [NULL @ 0xbfa66cf4] [Eval @ 0xbfa65208] Undefined constant or missing '(' in 'fastpskip' [NULL @ 0xbfa66cf4] Unable to parse option value "fastpskip+mbtree" /*notpublic/.ffmpeg/libx264-lossless_ultrafast.ffpreset: Invalid option or argument: 'flags2=+fastpskip+mbtree', parsed as 'flags2' = '+fastpskip+mbtree' /*notpublic/FfserverTV:52: AVPreset error: lossless_ultrafast Incorrect config file - exiting. Thanks again for your time and help Have a nice day Z. 2013.07.11. 8:42 keltez?ssel, Carl Eugen Hoyos ?rta: > F?ves Zolt?n tanoda.suli.hu> writes: > >> with this error: >> Undefined constant or missing '(' in 'fastpskip' > Command line and complete, uncut console output > missing. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From andrey.aleksandrovich at googlemail.com Thu Jul 11 11:08:07 2013 From: andrey.aleksandrovich at googlemail.com (Andrey Aleksandrovich) Date: Thu, 11 Jul 2013 12:08:07 +0300 Subject: [FFmpeg-user] how to use presets files In-Reply-To: References: Message-ID: http://ffmpeg.org/ffmpeg.html#Preset-files-1 On 7/11/13, Soho Soho123 wrote: > Hi All, > > I see the files about "presets" in the folder "/ffmpeg/presets". > for example: > libvpx-1080p.ffpreset > > it seems some parameter settings. > Does someone have idea about the purpose of presets? > How to use the presets for reduce latency when the video codec is libx264? > > Thanks! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From krueger at lesspain.de Thu Jul 11 11:15:45 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 11 Jul 2013 11:15:45 +0200 Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: <1373493550748-4659913.post@n4.nabble.com> References: <20130710215235.GA20341@sunshine.barsnick.net> <1373493550748-4659913.post@n4.nabble.com> Message-ID: On Wed, Jul 10, 2013 at 11:59 PM, gepebril wrote: > @Moritz > > Thx for the reply. > If somebody writes that they don't know what somebody means. > You are not helping them by explaining why it's bad or good. Just an example He actually did. Please read the mail again and if you don't understand the implicit explanation, try googling "top-posting". From phil_rhodes at rocketmail.com Thu Jul 11 13:01:49 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Thu, 11 Jul 2013 04:01:49 -0700 (PDT) Subject: [FFmpeg-user] how to use presets files In-Reply-To: References: Message-ID: <1373540509.88508.YahooMailNeo@web121103.mail.ne1.yahoo.com> I'm sure I was told at one point that presets are no longer files, is this still true? P ________________________________ From: Andrey Aleksandrovich To: FFmpeg user questions Sent: Thursday, 11 July 2013, 10:08 Subject: Re: [FFmpeg-user] how to use presets files http://ffmpeg.org/ffmpeg.html#Preset-files-1 On 7/11/13, Soho Soho123 wrote: > Hi All, > > I see the files about "presets" in? the folder "/ffmpeg/presets". > for example: > libvpx-1080p.ffpreset > > it seems some parameter settings. > Does someone have idea about the purpose of presets? > How to use the presets for reduce latency when the video codec is libx264? > > Thanks! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From doenerbudenchef at yahoo.de Thu Jul 11 13:33:53 2013 From: doenerbudenchef at yahoo.de (Alex) Date: Thu, 11 Jul 2013 04:33:53 -0700 (PDT) Subject: [FFmpeg-user] Increase volume while using amerge Message-ID: <1373542433407-4659924.post@n4.nabble.com> Hi all, I've tried to increase the volume of my output file. But when I use the amerge parameter to merge my mono audio streams the volume filter does not work. Output: C:\>ffmpeg -i different.mxf -s 640x360 -aspect 16:9 -y -vb 1500k -bt 1500k -vcodec libx264 -r 25 -vf yadif -pix_fmt yuv420p -f flv -filter_complex amerge -af volume=15.8dB -strict experimental -acodec aac -ab 128k -ar 44100 -ss 0 -pass 1 -fastfirstpass 1 different.flv && ffmpeg -i different.mxf -s 640x360 -aspect 16:9 -y -vb 1500k -bt 1500k -vcodec libx264 -r 25 -vf yadif -pix_fmt yuv420p -f flv -filter_complex amerge -af volume=15.8dB -strict experimental -acodec aac -ab 128k -ar 44100 -ss 0 -pass 2 -fastfirstpass 0 different.flv ffmpeg version N-54207-ge59fb3f Copyright (c) 2000-2013 the FFmpeg developers built on Jun 25 2013 21:55:00 with gcc 4.7.3 (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 --ena ble-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-lib vpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 17.100 / 55. 17.100 libavformat 55. 10.100 / 55. 10.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 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 Guessed Channel Layout for Input Stream #0.7 : mono Guessed Channel Layout for Input Stream #0.8 : mono Input #0, mxf, from 'different.mxf': Metadata: uid : 90798c31-2fe4-11e2-b193-00e081d26969 generation_uid : 90798c32-2fe4-11e2-9f65-00e081d26969 company_name : Adobe Systems Incorporated product_name : Adobe Premiere Pro product_version : 5.0.0 application_platform: win32 product_uid : 10ab07a9-e89e-7510-a923-ea9220524153 modification_date: 2012-11-16 11:55:49 timecode : 00:00:00:00 Duration: 00:05:00.48, start: 0.000000, bitrate: 59264 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s [Parsed_amerge_0 @ 00000000024ad500] No channel layout for input 1 [Parsed_amerge_0 @ 00000000024ad500] Input channel layouts overlap: output layout will be determined by the number of distinct input channels [libx264 @ 0000000002523900] using SAR=1/1 [libx264 @ 0000000002523900] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0000000002523900] profile Main, level 3.0 [libx264 @ 0000000002523900] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone =21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=2 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=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, flv, to 'different.flv': Metadata: uid : 90798c31-2fe4-11e2-b193-00e081d26969 generation_uid : 90798c32-2fe4-11e2-9f65-00e081d26969 company_name : Adobe Systems Incorporated product_name : Adobe Premiere Pro product_version : 5.0.0 application_platform: win32 product_uid : 10ab07a9-e89e-7510-a923-ea9220524153 modification_date: 2012-11-16 11:55:49 timecode : 00:00:00:00 encoder : Lavf55.10.100 Stream #0:0: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s Stream #0:1: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, pass 1, 1500 kb/s, 1k tbn, 25 tbc Stream mapping: Stream #0:1 (pcm_s24le) -> amerge:in0 (graph 0) Stream #0:2 (pcm_s24le) -> amerge:in1 (graph 0) amerge (graph 0) -> Stream #0:0 (aac) Stream #0:0 -> #0:1 (mpeg2video -> libx264) Press [q] to stop, [?] for help [mpeg2video @ 00000000024ac8a0] warning: first frame is no keyframe Last message repeated 1 times frame= 7512 fps= 67 q=-1.0 Lsize= 59746kB time=00:05:00.49 bitrate=1628.8kbits/s video:54679kB audio:4704kB subtitle:0 global headers:0kB muxing overhead 0.610088% [libx264 @ 0000000002523900] frame I:117 Avg QP:11.66 size: 30327 [libx264 @ 0000000002523900] frame P:4401 Avg QP:15.46 size: 9736 [libx264 @ 0000000002523900] frame B:2994 Avg QP:17.18 size: 3205 [libx264 @ 0000000002523900] consecutive B-frames: 32.3% 38.9% 14.4% 14.4% [libx264 @ 0000000002523900] mb I I16..4: 36.9% 0.0% 63.1% [libx264 @ 0000000002523900] mb P I16..4: 28.9% 0.0% 0.0% P16..4: 60.4% 0.0% 0.0% 0.0% 0.0% skip:10.7% [libx264 @ 0000000002523900] mb B I16..4: 3.6% 0.0% 0.0% B16..8: 36.8% 0.0% 0.0% direct:22.1% skip:37.5% L0:27.8% L1:38.1% BI:34.2% [libx264 @ 0000000002523900] final ratefactor: 14.89 [libx264 @ 0000000002523900] coded y,uvDC,uvAC intra: 52.5% 38.9% 22.6% inter: 34.7% 19.5% 2.3% [libx264 @ 0000000002523900] i16 v,h,dc,p: 48% 15% 27% 10% [libx264 @ 0000000002523900] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 17% 13% 7% 8% 8% 7% 8% 7% [libx264 @ 0000000002523900] i8c dc,h,v,p: 67% 12% 17% 4% [libx264 @ 0000000002523900] Weighted P-Frames: Y:9.5% UV:1.6% [libx264 @ 0000000002523900] kb/s:1490.71 ffmpeg version N-54207-ge59fb3f Copyright (c) 2000-2013 the FFmpeg developers built on Jun 25 2013 21:55:00 with gcc 4.7.3 (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 --ena ble-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-lib vpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 37.101 / 52. 37.101 libavcodec 55. 17.100 / 55. 17.100 libavformat 55. 10.100 / 55. 10.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 77.101 / 3. 77.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 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 Guessed Channel Layout for Input Stream #0.7 : mono Guessed Channel Layout for Input Stream #0.8 : mono Input #0, mxf, from 'different.mxf': Metadata: uid : 90798c31-2fe4-11e2-b193-00e081d26969 generation_uid : 90798c32-2fe4-11e2-9f65-00e081d26969 company_name : Adobe Systems Incorporated product_name : Adobe Premiere Pro product_version : 5.0.0 application_platform: win32 product_uid : 10ab07a9-e89e-7510-a923-ea9220524153 modification_date: 2012-11-16 11:55:49 timecode : 00:00:00:00 Duration: 00:05:00.48, start: 0.000000, bitrate: 59264 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:5: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:6: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:7: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:8: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s [Parsed_amerge_0 @ 00000000024d4aa0] No channel layout for input 1 [Parsed_amerge_0 @ 00000000024d4aa0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels [libx264 @ 00000000047753a0] using SAR=1/1 [libx264 @ 00000000047753a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 00000000047753a0] profile High, level 3.0 [libx264 @ 00000000047753a0] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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 dead zone=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_lookahe ad=40 rc=2pass mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 aq=1:1.00 Output #0, flv, to 'different.flv': Metadata: uid : 90798c31-2fe4-11e2-b193-00e081d26969 generation_uid : 90798c32-2fe4-11e2-9f65-00e081d26969 company_name : Adobe Systems Incorporated product_name : Adobe Premiere Pro product_version : 5.0.0 application_platform: win32 product_uid : 10ab07a9-e89e-7510-a923-ea9220524153 modification_date: 2012-11-16 11:55:49 timecode : 00:00:00:00 encoder : Lavf55.10.100 Stream #0:0: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s Stream #0:1: Video: h264 (libx264) ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, pass 2, 1500 kb/s, 1k tbn, 25 tbc Stream mapping: Stream #0:1 (pcm_s24le) -> amerge:in0 (graph 0) Stream #0:2 (pcm_s24le) -> amerge:in1 (graph 0) amerge (graph 0) -> Stream #0:0 (aac) Stream #0:0 -> #0:1 (mpeg2video -> libx264) Press [q] to stop, [?] for help [mpeg2video @ 00000000024abaa0] warning: first frame is no keyframe Last message repeated 1 times frame= 7512 fps= 60 q=-1.0 Lsize= 60088kB time=00:05:00.49 bitrate=1638.1kbits/s video:55022kB audio:4704kB subtitle:0 global headers:0kB muxing overhead 0.606587% [libx264 @ 00000000047753a0] frame I:117 Avg QP:13.20 size: 27204 [libx264 @ 00000000047753a0] frame P:4401 Avg QP:15.57 size: 9706 [libx264 @ 00000000047753a0] frame B:2994 Avg QP:17.51 size: 3488 [libx264 @ 00000000047753a0] consecutive B-frames: 32.3% 38.9% 14.4% 14.4% [libx264 @ 00000000047753a0] mb I I16..4: 13.5% 69.2% 17.3% [libx264 @ 00000000047753a0] mb P I16..4: 1.0% 7.0% 1.2% P16..4: 37.3% 30.2% 15.1% 0.0% 0.0% skip: 8.2% [libx264 @ 00000000047753a0] mb B I16..4: 0.0% 0.7% 0.1% B16..8: 45.6% 12.2% 2.9% direct: 4.1% skip:34.4% L0:40.2% L1:45.2% BI:14.6% [libx264 @ 00000000047753a0] 8x8 transform intra:75.0% inter:66.6% [libx264 @ 00000000047753a0] coded y,uvDC,uvAC intra: 81.7% 64.3% 45.8% inter: 38.6% 23.9% 3.7% [libx264 @ 00000000047753a0] i16 v,h,dc,p: 47% 18% 6% 29% [libx264 @ 00000000047753a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 10% 27% 5% 7% 9% 6% 8% 6% [libx264 @ 00000000047753a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 14% 14% 6% 9% 10% 8% 7% 5% [libx264 @ 00000000047753a0] i8c dc,h,v,p: 58% 14% 19% 8% [libx264 @ 00000000047753a0] Weighted P-Frames: Y:9.5% UV:1.6% [libx264 @ 00000000047753a0] ref P L0: 60.0% 11.9% 18.7% 9.0% 0.5% [libx264 @ 00000000047753a0] ref B L0: 78.2% 19.4% 2.5% [libx264 @ 00000000047753a0] ref B L1: 94.8% 5.2% [libx264 @ 00000000047753a0] kb/s:1500.05 Thanks, Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Increase-volume-while-using-amerge-tp4659924.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Thu Jul 11 14:09:16 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 11 Jul 2013 12:09:16 +0000 (UTC) Subject: [FFmpeg-user] Increase volume while using amerge References: <1373542433407-4659924.post@n4.nabble.com> Message-ID: Alex yahoo.de> writes: > C:\>ffmpeg -i different.mxf -s 640x360 -aspect 16:9 > -y -vb 1500k -bt 1500k -vcodec libx264 -r 25 -vf yadif > -pix_fmt yuv420p -f flv -filter_complex amerge > -af volume=15.8dB -strict experimental -acodec aac > -ab 128k -ar 44100 -ss 0 -pass 1 -fastfirstpass 1 > different.flv -filter_complex amerge,volume=15.8dB (untested) Generally: Please try to shorten your command line as long as you can still reproduce your issue, it makes helping you significantly easier. Carl Eugen From doenerbudenchef at yahoo.de Thu Jul 11 14:31:11 2013 From: doenerbudenchef at yahoo.de (Alex) Date: Thu, 11 Jul 2013 05:31:11 -0700 (PDT) Subject: [FFmpeg-user] Increase volume while using amerge In-Reply-To: References: <1373542433407-4659924.post@n4.nabble.com> Message-ID: <1373545871656-4659926.post@n4.nabble.com> Hi Carl Eugen, thanks, it works. But I don't want to shorten the command, because we are using a special script which include some parameters dynamically. Thanks in advance Alex -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Increase-volume-while-using-amerge-tp4659924p4659926.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dflett at bigpond.net.au Thu Jul 11 15:13:14 2013 From: dflett at bigpond.net.au (Dan Flett) Date: Thu, 11 Jul 2013 23:13:14 +1000 Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers In-Reply-To: <000a01ce7dc6$b82d5ba0$288812e0$@bigpond.net.au> References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> <000a01ce7dc6$b82d5ba0$288812e0$@bigpond.net.au> Message-ID: <000e01ce7e38$682b9c80$3882d580$@bigpond.net.au> > -----Original Message----- > Sent: Thursday, 11 July 2013 09:39 > To: 'FFmpeg user questions' > Subject: Re: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb > drivers > > Please add some printf's to get_pixfmt_from_fb_varinfo() in > > libavdevice/fbdev.c to show the contents of varinfo. > > (Although I fear a compressed format is used.) > > Yes obviously there's some issue there too, but despite the error message, > ffmpeg does work in that I do get an output (a BMP screenshot in this case). > > I will do as you suggest and report back. OK, sorry, doing the printf's was a bit over my head I'm afraid. What I did do is look at the output of "fbset" on my raspberry pi: pi at raspberrypi ~ $ fbset -i mode "1680x1050" geometry 1680 1050 1680 1050 16 timings 0 0 0 0 0 0 0 rgba 5/11,6/5,5/0,0/16 endmode Frame buffer device information: Name : BCM2708 FB Address : 0x50006000 Size : 3528000 Type : PACKED PIXELS Visual : TRUECOLOR XPanStep : 0 YPanStep : 0 YWrapStep : 0 LineLength : 3360 Accelerator : No >From this I worked out the RGBA offsets and produced this patch for fbdev.c: pi at raspberrypi ~/ffmpeg-dmo-1.2.1/libavdevice $ diff -u fbdev_orig.c fbdev.c --- fbdev_orig.c 2013-07-11 12:28:28.554753775 +0000 +++ fbdev.c 2013-07-11 12:27:01.559807736 +0000 @@ -59,6 +59,7 @@ { 32, 3, 2, 8, 0, AV_PIX_FMT_ABGR }, { 24, 0, 8, 16, 0, AV_PIX_FMT_RGB24 }, { 24, 16, 8, 0, 0, AV_PIX_FMT_BGR24 }, + { 16, 11, 5, 0, 16, AV_PIX_FMT_RGB565 }, // raspi }; static enum AVPixelFormat get_pixfmt_from_fb_varinfo(struct fb_var_screeninfo *varinfo) This seems to work without error now: pi at raspberrypi ~ $ /usr/local/bin/ffmpeg -y -f fbdev -r 30 -i /dev/fb0 -codec:v copy -frames 1000 -f rawvideo /dev/null ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 9 2013 14:47:41 with gcc 4.6 (Debian 4.6.3-14+rpi1) configuration: libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [fbdev @ 0x20a9440] w:1024 h:576 bpp:16 pixfmt:rgb565le fps:30/1 bit_rate:283115520 [fbdev @ 0x20a9440] Estimating duration from bitrate, this may be inaccurate Input #0, fbdev, from '/dev/fb0': Duration: N/A, start: 1373547949.464476, bitrate: 283115 kb/s Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 1024x576, 283115 kb/s, 30 tbr, 1000k tbn, 30 tbc Output #0, rawvideo, to '/dev/null': Metadata: encoder : Lavf54.63.104 Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 1024x576, q=2-31, 283115 kb/s, 90k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 1000 fps= 30 q=-1.0 Lsize= 1152000kB time=00:00:33.34 bitrate=283045.8kbits/s video:1152000kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000% With the framebuffer at 1680x1050 I was getting a capture rate of about 4.6fps to /dev/null on the Raspberry Pi. Lowering the resolution to 1024x576 and capturing at 30fps works in real-time, with ffmpeg getting about 85% CPU usage on the Raspberry Pi. I'm hoping to pipe this into gstreamer with their omxh264enc hardware encoding module, but at the moment I don't think gstreamer handles rgb565le raw video very well. Cheers, Dan From cehoyos at ag.or.at Thu Jul 11 15:20:11 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 11 Jul 2013 13:20:11 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> <000a01ce7dc6$b82d5ba0$288812e0$@bigpond.net.au> <000e01ce7e38$682b9c80$3882d580$@bigpond.net.au> Message-ID: Dan Flett bigpond.net.au> writes: > What I did do is look at the output of "fbset" on my raspberry pi: > > pi raspberrypi ~ $ fbset -i > > mode "1680x1050" > geometry 1680 1050 1680 1050 16 > timings 0 0 0 0 0 0 0 > rgba 5/11,6/5,5/0,0/16 > endmode Thank you for this hint! I wonder what the output here is trying to tell me: rgba 8/0,8/0,8/0,0/0 > + { 16, 11, 5, 0, 16, > AV_PIX_FMT_RGB565 }, // raspi Could you confirm that "AV_PIX_FMT_RGB565LE" works but "AV_PIX_FMT_RGB565BE" shows incorrect colours? Thank you, Carl Eugen From cehoyos at ag.or.at Thu Jul 11 15:22:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 11 Jul 2013 13:22:20 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> <000a01ce7dc6$b82d5ba0$288812e0$@bigpond.net.au> <000e01ce7e38$682b9c80$3882d580$@bigpond.net.au> Message-ID: Carl Eugen Hoyos ag.or.at> writes: > > + { 16, 11, 5, 0, 16, > > AV_PIX_FMT_RGB565 }, // raspi > > Could you confirm that "AV_PIX_FMT_RGB565LE" works > but "AV_PIX_FMT_RGB565BE" shows incorrect colours? Never mind, this is not the necessary test. I will commit to my repo and ask Michael to merge. Thank you! Carl Eugen From rob.ludwig at lyricallabs.com Thu Jul 11 17:57:02 2013 From: rob.ludwig at lyricallabs.com (Robert Ludwig) Date: Thu, 11 Jul 2013 10:57:02 -0500 Subject: [FFmpeg-user] MSVC or Intel Compiler Versions Message-ID: <51DED5CE.7080806@lyricallabs.com> Hi- I'm trying to compile a ffmpeg for Windows, and I see in the FATE results listed at fate.ffmpeg.org that there are test results for a win32 binary compiled with the Intel C++ Compiler and the Microsoft Compiler. Is there any way to get the source code that was used for those compilations specifically? Neither of those compilers will compile ffmpeg directly from the git head, because of C99 compatibility issues, among other things, so if someone has a working version that would help a lot. Thanks, -Rob From andrey.aleksandrovich at googlemail.com Thu Jul 11 18:19:21 2013 From: andrey.aleksandrovich at googlemail.com (Andrey Aleksandrovich) Date: Thu, 11 Jul 2013 19:19:21 +0300 Subject: [FFmpeg-user] how to use presets files In-Reply-To: <1373540509.88508.YahooMailNeo@web121103.mail.ne1.yahoo.com> References: <1373540509.88508.YahooMailNeo@web121103.mail.ne1.yahoo.com> Message-ID: AFAIK, the presets are internal part of codecs now i.e. any codec has (or not) his own preset, which is like specific flags. To learn how to use them you have to look at codec manuals, not at ffmpeg. In your case - 'libvpx' manual. On 7/11/13, Phil Rhodes wrote: > I'm sure I was told at one point that presets are no longer files, is this > still true? > > P > > > ________________________________ > From: Andrey Aleksandrovich > To: FFmpeg user questions > Sent: Thursday, 11 July 2013, 10:08 > Subject: Re: [FFmpeg-user] how to use presets files > > > http://ffmpeg.org/ffmpeg.html#Preset-files-1 > > On 7/11/13, Soho Soho123 wrote: >> Hi All, >> >> I see the files about "presets" in? the folder "/ffmpeg/presets". >> for example: >> libvpx-1080p.ffpreset >> >> it seems some parameter settings. >> Does someone have idea about the purpose of presets? >> How to use the presets for reduce latency when the video codec is >> libx264? >> >> Thanks! >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tevans.uk at googlemail.com Thu Jul 11 18:41:08 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Thu, 11 Jul 2013 17:41:08 +0100 Subject: [FFmpeg-user] how to use presets files In-Reply-To: <1373540509.88508.YahooMailNeo@web121103.mail.ne1.yahoo.com> References: <1373540509.88508.YahooMailNeo@web121103.mail.ne1.yahoo.com> Message-ID: On Thu, Jul 11, 2013 at 12:01 PM, Phil Rhodes wrote: > I'm sure I was told at one point that presets are no longer files, is this still true? > > P ISTR that preset files still exist, but they only contain ffmpeg specific options. Encoding profiles used to be specified for things like h264, and you would do that with -pre or -vpre. This was then changed to just pass these values through to the encoding library itself, so with x264 for instance you can pass through a profile, a preset and a tuning, with -profile:v -preset:v and -tune:v. Ie, you can still use -pre, but if you want to specify x264, profile "main", preset "fast", then it is not "-vcodec x264 -vpre x264-main-fast", it is "-c:v x264 -profile:v main -preset:v fast". You can get the arguments for profile/preset/tune from the x264 binary with --fullhelp. Cheers Tom From cehoyos at ag.or.at Thu Jul 11 18:42:59 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 11 Jul 2013 16:42:59 +0000 (UTC) Subject: [FFmpeg-user] MSVC or Intel Compiler Versions References: <51DED5CE.7080806@lyricallabs.com> Message-ID: Robert Ludwig lyricallabs.com> writes: > I'm trying to compile a ffmpeg for Windows, and I > see in the FATE results listed at fate.ffmpeg.org > that there are test results for a win32 binary > compiled with the Intel C++ Compiler and the > Microsoft Compiler. Is there any way to get the > source code that was used for those compilations > specifically? Definitely, please see http://ffmpeg.org/download.html I will spare you the link to our platform documentation that explains how to compile FFmpeg with MSVC (and icl) because I am sure you read it before posting here, but ... > Neither of those compilers will compile > ffmpeg directly from the git head ... what is unfortunately missing is the configure line you used, and the complete, uncut output of "make V=1" after you ran "make" several times and saw identical errors. (Please do never post the complete, uncut output of the first failing make call.) Carl Eugen PS: http://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows From compuvision.sr at gmail.com Thu Jul 11 19:04:18 2013 From: compuvision.sr at gmail.com (gepebril) Date: Thu, 11 Jul 2013 10:04:18 -0700 (PDT) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: References: <20130710215235.GA20341@sunshine.barsnick.net> <1373493550748-4659913.post@n4.nabble.com> Message-ID: <1373562258940-4659934.post@n4.nabble.com> Ok, Still not clear though. I see that the gui removes all previous text from the former mail. So that is probably not-top posting. Anyway, after some hours of testing and wandering around the Net. I managed to get it working on Windows with ffmpeg. Although it seems possible to generate all kinds of different fonts using .srt, there is no actual working sample off it on the Net, which I found. That left me to a working solution, thanks to this this webpage. Basically the trick is: 1) convert your .srt to .ass file (with ffmpeg) 2) Use Windows 3) Follow the instruction on the website 4) Render. In commands it looks like this (create .ass file from .srt): ffmpeg.exe -i subtitle_file.srt -y -scodec ass subtitle_file.ass Make sure you have the local variables set right set FC_CONFIG_DIR=E:\temp\Subtitles set FONTCONFIG_FILE=fonts.xml set FONTCONFIG_PATH=E:\temp\Subtitles And use the related example of fonts.xml C:\WINDOWS\Fonts mono monospace sans-serif serif monospace sans-serif Times Times New Roman serif Helvetica Arial sans Courier Courier New monospace serif Times New Roman sans Arial monospace Andale Mono Courier New monospace Courier monospace Create your video file with burned in subs ffmpeg.exe -y -i "src.mkv" -f dvd -target ntsc-dvd -r 29.97 -vf scale=720:480 -vf "ass=subtitle_file.ass" -aspect 16:9 -b:v 8000k -g 12 -mbd rd -trellis 1 -flags +mv0 -cmp 0 -subcmp 2 e:\dst.mpg Note: make sure that the .ass file is in the same path as where are, as I haven't managed to get a path reference working with ass -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/make-mpeg2-file-with-hardcoded-subs-from-srt-file-tp4659902p4659934.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From thilo.borgmann at googlemail.com Thu Jul 11 21:05:56 2013 From: thilo.borgmann at googlemail.com (Thilo Borgmann) Date: Thu, 11 Jul 2013 21:05:56 +0200 Subject: [FFmpeg-user] Reading EXIF from mjpeg Message-ID: <51DF0214.3010502@googlemail.com> Hi, can we read EXIF metadata from motion jpeg streams? Any hint is welcome, using another lib is almost not ;) Cheers, Thilo From onemda at gmail.com Thu Jul 11 21:10:35 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 11 Jul 2013 19:10:35 +0000 Subject: [FFmpeg-user] Reading EXIF from mjpeg In-Reply-To: <51DF0214.3010502@googlemail.com> References: <51DF0214.3010502@googlemail.com> Message-ID: On 7/11/13, Thilo Borgmann wrote: > Hi, > > can we read EXIF metadata from motion jpeg streams? > > Any hint is welcome, using another lib is almost not ;) Not at all, There is open bug report. > > Cheers, > Thilo > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Thu Jul 11 22:13:47 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 11 Jul 2013 20:13:47 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> <000a01ce7dc6$b82d5ba0$288812e0$@bigpond.net.au> <000e01ce7e38$682b9c80$3882d580$@bigpond.net.au> Message-ID: Dan Flett bigpond.net.au> writes: > + { 16, 11, 5, 0, 16, > AV_PIX_FMT_RGB565 }, // raspi Your patch was merged, thank you for working on this! Carl Eugen From johncrossman at berkeley.edu Fri Jul 12 00:07:30 2013 From: johncrossman at berkeley.edu (John Crossman) Date: Thu, 11 Jul 2013 15:07:30 -0700 Subject: [FFmpeg-user] Stream specifier ':v' in filtergraph ... matches no streams. (Seeking help on parsing output) Message-ID: Can you help me understand the problem? (Thanks) *The command:* /usr/bin/ffmpeg -i audio.mp2 -i screen.mp4 -filter_complex [1:v]pad=iw*2:ih[bg];[bg][0:v]overlay=W/2+((W/2-w)/2):(H-h)/2 -qscale:v 2 -strict -2 output.mp4 *The output:* ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on May 10 2013 15:14:14 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mp3 @ 0x141dbe0] max_analyze_duration 5000000 reached at 5015510 microseconds [mp3 @ 0x141dbe0] Estimating duration from bitrate, this may be inaccurate Input #0, mp3, from '/export/mh_data/opencast/shared/workspace/mediapackage/ 3d4024ec-6f38-4a46-9505-7c11dffdff8a/aeda9898-4f20- 4eec-a654-a8b18baf106a/audio.mp2': Duration: 00:04:59.46, start: 0.000000, bitrate: 192 kb/s Stream #0:0: Audio: mp2, 44100 Hz, stereo, s16p, 192 kb/s Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/export/mh_data/opencast/ shared/workspace/mediapackage/3d4024ec-6f38-4a46-9505- 7c11dffdff8a/8638cca9-f829-4edf-8020-4443f07c6e72/screen.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.104 Duration: 00:04:59.00, start: 0.000000, bitrate: 168 kb/s Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1024x768 [SAR 1:1 DAR 4:3], 28 kb/s, 100 fps, 100 tbr, 12800 tbn, 200 tbc Metadata: handler_name : VideoHandler Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 123 kb/s Metadata: handler_name : SoundHandler Stream specifier ':v' in filtergraph description [1:v]pad=iw*2:ih[bg];[bg][0:v]overlay=W/2+((W/2-w)/2):(H-h)/2 matches no streams. From rob.ludwig at lyricallabs.com Fri Jul 12 00:36:10 2013 From: rob.ludwig at lyricallabs.com (Robert Ludwig) Date: Thu, 11 Jul 2013 17:36:10 -0500 Subject: [FFmpeg-user] MSVC or Intel Compiler Versions In-Reply-To: References: <51DED5CE.7080806@lyricallabs.com> Message-ID: <51DF335A.3040903@lyricallabs.com> On 7/11/2013 11:42 AM, Carl Eugen Hoyos wrote: > Robert Ludwig lyricallabs.com> writes: > >> I'm trying to compile a ffmpeg for Windows, and I >> see in the FATE results listed at fate.ffmpeg.org >> that there are test results for a win32 binary >> compiled with the Intel C++ Compiler and the >> Microsoft Compiler. Is there any way to get the >> source code that was used for those compilations >> specifically? > Definitely, please see http://ffmpeg.org/download.html > > I will spare you the link to our platform > documentation that explains how to compile > FFmpeg with MSVC (and icl) because I am > sure you read it before posting here, but ... > >> Neither of those compilers will compile >> ffmpeg directly from the git head > ... what is unfortunately missing is the > configure line you used, and the complete, > uncut output of "make V=1" after you ran > "make" several times and saw identical > errors. > (Please do never post the complete, uncut > output of the first failing make call.) > > Carl Eugen > > PS: > http://ffmpeg.org/platform.html#Microsoft-Visual-C_002b_002b-or-Intel-C_002b_002b-Compiler-for-Windows > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thanks for your help! I had seen the instructions for the C99to89 builds that also required MSYS, etc. to execute. I was hoping that the FATE tests were referring to a native Visual Studio version, e.g. one that could be executed within Visual Studio using cmd.exe and would allow access to Visual Studio debugging tools. If such is not the case, I am probably out of luck. Thanks again, -Rob From lou at lrcd.com Fri Jul 12 01:10:38 2013 From: lou at lrcd.com (Lou) Date: Thu, 11 Jul 2013 15:10:38 -0800 Subject: [FFmpeg-user] Stream specifier ':v' in filtergraph ... matches no streams. (Seeking help on parsing output) In-Reply-To: References: Message-ID: <20130711151038.3e19223f@lrcd.com> On Thu, 11 Jul 2013 15:07:30 -0700 John Crossman wrote: > Can you help me understand the problem? (Thanks) > > *The command:* > > /usr/bin/ffmpeg -i audio.mp2 -i screen.mp4 -filter_complex > [1:v]pad=iw*2:ih[bg];[bg][0:v]overlay=W/2+((W/2-w)/2):(H-h)/2 -qscale:v 2 > -strict -2 output.mp4 [0:v] does not refer to any stream. Your first input is audio only. I assume you probably meant to use [1:v]. Note that, in your case, libx264 will be used for mp4 output, but this encoder ignores "-qscale:v", so the default of "-crf 23" will be used instead: FFmpeg and x264 Encoding Guide https://trac.ffmpeg.org/wiki/x264EncodingGuide From dflett at bigpond.net.au Fri Jul 12 05:38:11 2013 From: dflett at bigpond.net.au (Dan Flett) Date: Fri, 12 Jul 2013 13:38:11 +1000 Subject: [FFmpeg-user] ffmpeg -f fbdev doesn't work with some fb drivers In-Reply-To: References: <20120827191454.GA23763@Xeslaro> <20120827155600.GC21473@arborea> <000301ce7d63$b57633e0$20629ba0$@bigpond.net.au> <000a01ce7dc6$b82d5ba0$288812e0$@bigpond.net.au> <000e01ce7e38$682b9c80$3882d580$@bigpond.net.au> Message-ID: <001201ce7eb1$3d8b17c0$b8a14740$@bigpond.net.au> > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: Friday, 12 July 2013 06:14 > Dan Flett bigpond.net.au> writes: > > > + { 16, 11, 5, 0, 16, > > AV_PIX_FMT_RGB565 }, // raspi > > Your patch was merged, thank you for > working on this! My pleasure! From lamia at jeack.com.au Fri Jul 12 06:49:44 2013 From: lamia at jeack.com.au (Bazza) Date: Fri, 12 Jul 2013 14:49:44 +1000 Subject: [FFmpeg-user] This strea is something else ? Message-ID: I'm seeing this quite a bit. Especially if I use a -target command. Of itself, I don't mind that there's a 'dvd_nav_packet' stream but it does seem to intefere with other subsequent conversions. The example output text below is from a vob file generated by the Sony Vegas editor. FFMPEG will also generate the *0x1bf' as I mention above but does it really need to 'classify' the nav_packet as being stream #0 ? If it does, where can I find the reasoning behind this? (Using Zaranoe Windows version) C:\Users\Admin>ffprobe -i z:\video_ts\vts_01_1.vob ffprobe version N-53033-g56ba331 Copyright (c) 2007-2013 the FFmpeg developers built on May 13 2013 22:23:31 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-font config --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable- libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-am rwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enabl e-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 31.100 / 52. 31.100 libavcodec 55. 9.100 / 55. 9.100 libavformat 55. 7.100 / 55. 7.100 libavdevice 55. 0.100 / 55. 0.100 libavfilter 3. 65.100 / 3. 65.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mpeg @ 000000000033e760] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpeg, from 'z:\video_ts\vts_01_1.vob': Duration: 00:09:10.19, start: 0.228544, bitrate: 5743 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet <***************** Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:2[0xa0]: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s Unsupported codec with id 1145979222 for input stream 0 <*********** From cehoyos at ag.or.at Fri Jul 12 08:25:53 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 12 Jul 2013 06:25:53 +0000 (UTC) Subject: [FFmpeg-user] MSVC or Intel Compiler Versions References: <51DED5CE.7080806@lyricallabs.com> <51DF335A.3040903@lyricallabs.com> Message-ID: Robert Ludwig lyricallabs.com> writes: > I was hoping that the FATE tests were referring to a > native Visual Studio version, e.g. one that could be > executed within Visual Studio using cmd.exe and > would allow access to Visual Studio debugging tools. Of course builds made with msvc or icl are native Visual Studio versions that allow debugging with Visual Studio. Carl Eugen From cehoyos at ag.or.at Fri Jul 12 09:04:46 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 12 Jul 2013 07:04:46 +0000 (UTC) Subject: [FFmpeg-user] This strea is something else ? References: Message-ID: Bazza jeack.com.au> writes: > Of itself, I don't mind that there's a 'dvd_nav_packet' > stream but it does seem to intefere with other > subsequent conversions. Please post an example for such an "interference". Carl Eugen From jam at tigger.ws Fri Jul 12 09:42:14 2013 From: jam at tigger.ws (James Linder) Date: Fri, 12 Jul 2013 15:42:14 +0800 Subject: [FFmpeg-user] Comments about audio sync invited In-Reply-To: <201307110649.r6B6nflk025866@haluter.fromme.com> References: <201307110649.r6B6nflk025866@haluter.fromme.com> Message-ID: On 11/07/2013, at 2:49 PM, Oliver Fromme wrote: > James Linder wrote: >> >> On 10/07/2013, at 10:19 PM, Nicolas George wrote: >> >>> Le duodi 22 messidor, an CCXXI, James Linder a ?crit : >>>> [dvr] /home/dvr [132]% ./ffmpeg -f pulse -i default -f v4l2 -i /dev/video0 -vtag divx -s 384x288 -r pal -q:v 5 -f tee -map 0:a -map 1:v Wed.avi | cat >Wed1.avi >>> >>> The tee muxer in this command line does not make any sense. The cat is >>> completely useless too. >> [...] >> Why is my cat completely useless? > > Because the following two commands produce the same result: > > $ ffmpeg ... | cat > foo.avi > $ ffmpeg ... > foo.avi > > The difference is that the first has an additional overhead > of one execve() (probably insignificant in this case) and > of one pipe and one process that have to handle the output > data. The latter might be significant because it usually > involves at least two in-memory copy operations, depending > on the implementations of pipes and cat in your operating > system. > > The above is a typical "useless use of cat". It should be > avoided. Methinks that you do not understand what cat was being used for (to determine if system load was an issue using a |pipe|) What is clear after building git head Stuttering is no longer an issue Audio sync is manageable (I will look at hacking the code to force same-sort timestamps) but this is really a case of using the latest. Many thanks to Carl: the questions and comments were very helpful. James From stefasab at gmail.com Fri Jul 12 09:53:49 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 12 Jul 2013 09:53:49 +0200 Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: <1373562258940-4659934.post@n4.nabble.com> References: <20130710215235.GA20341@sunshine.barsnick.net> <1373493550748-4659913.post@n4.nabble.com> <1373562258940-4659934.post@n4.nabble.com> Message-ID: <20130712075349.GN4978@barisone> On date Thursday 2013-07-11 10:04:18 -0700, gepebril wrote: > Ok, [...] > Create your video file with burned in subs > ffmpeg.exe -y -i "src.mkv" -f dvd -target ntsc-dvd -r 29.97 -vf > scale=720:480 -vf "ass=subtitle_file.ass" -aspect 16:9 -b:v 8000k -g 12 -mbd > rd -trellis 1 -flags +mv0 -cmp 0 -subcmp 2 e:\dst.mpg This is still wrong, -vf foo -vf bar has the same effects as -vf bar, what you want instead: -vf scale=720:480,ass=subtitle_file.ass Also why do you need to convert to ass? > Note: make sure that the .ass file is in the same path as where are, as I > haven't managed to get a path reference working with ass You need to specify an absolute path (and be aware of escaping problems). [...] From soho123.2012 at gmail.com Fri Jul 12 10:23:34 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 12 Jul 2013 16:23:34 +0800 Subject: [FFmpeg-user] how to mux h264 video and pcm_s16le by ffserver Message-ID: hi all, I try to output a rtp stream that include both video and audio. the config I use: Feed feed1.ffm Format rtp AVOptionVideo flags +global_header VideoSize 1280x720 VideoFrameRate 30 VideoCodec libx264 AVOptionAudio flags +global_header AudioCodec pcm_s16le AudioChannels 2 AudioSampleRate 48000 I can NOT play by ffplay and VLC. Does anyone have idea how to mux h264 video and pcm_s16le audio? From soho123.2012 at gmail.com Fri Jul 12 11:19:20 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 12 Jul 2013 17:19:20 +0800 Subject: [FFmpeg-user] output asf stream fail since asf enc fail Message-ID: Hi all, I try to output asf stream that include video and audio config file of ffserver : Feed feed1.ffm Format asf AVOptionVideo flags +global_header VideoSize 1280x720 VideoFrameRate 30 VideoCodec libx264 AVOptionAudio flags +global_header AudioCodec pcm_s16le AudioChannels 2 AudioSampleRate 48000 I got the error : ffserver: libavformat/asfenc.c: 642: flush_packet: Assertion `asf->packet_timestamp_end >= asf->packet_tim estamp_start' failed. Does anyone have ideas? From thilo.borgmann at googlemail.com Fri Jul 12 13:39:34 2013 From: thilo.borgmann at googlemail.com (Thilo Borgmann) Date: Fri, 12 Jul 2013 13:39:34 +0200 Subject: [FFmpeg-user] Reading EXIF from mjpeg In-Reply-To: References: <51DF0214.3010502@googlemail.com> Message-ID: <51DFEAF6.6020308@googlemail.com> Am 11.07.13 21:10, schrieb Paul B Mahol: > On 7/11/13, Thilo Borgmann wrote: >> Hi, >> >> can we read EXIF metadata from motion jpeg streams? >> >> Any hint is welcome, using another lib is almost not ;) > > Not at all, There is open bug report. I can see Ticket #1926 if that's what you're referring to, thanks. I don't know about such things but is this the official specification? http://www.exif.org/Exif2-2.PDF Is there any newer specification? Thanks, Thilo From macdroid53 at gmail.com Fri Jul 12 13:48:13 2013 From: macdroid53 at gmail.com (Mac) Date: Fri, 12 Jul 2013 07:48:13 -0400 Subject: [FFmpeg-user] Reading EXIF from mjpeg In-Reply-To: <51DFEAF6.6020308@googlemail.com> References: <51DF0214.3010502@googlemail.com> <51DFEAF6.6020308@googlemail.com> Message-ID: I use this command to turn a directory of images into a movie. ffmpeg -f image2 -r 1/5 -i img%03d.png -c:v libx264 -r 30 out.mp4 What do need to add to add the file name (well actually all I need is the number of the file) as a subtitle? Regards, Mac From onemda at gmail.com Fri Jul 12 13:50:49 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 12 Jul 2013 11:50:49 +0000 Subject: [FFmpeg-user] Reading EXIF from mjpeg In-Reply-To: References: <51DF0214.3010502@googlemail.com> <51DFEAF6.6020308@googlemail.com> Message-ID: On 7/12/13, Mac wrote: > I use this command to turn a directory of images into a movie. > ffmpeg -f image2 -r 1/5 -i img%03d.png -c:v libx264 -r 30 out.mp4 > > What do need to add to add the file name (well actually all I need is > the number of the file) as a subtitle? Why are you hijacking threads? From compuvision.sr at gmail.com Fri Jul 12 13:50:52 2013 From: compuvision.sr at gmail.com (gepebril) Date: Fri, 12 Jul 2013 04:50:52 -0700 (PDT) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: <20130712075349.GN4978@barisone> References: <20130710215235.GA20341@sunshine.barsnick.net> <1373493550748-4659913.post@n4.nabble.com> <1373562258940-4659934.post@n4.nabble.com> <20130712075349.GN4978@barisone> Message-ID: <1373629852904-4659951.post@n4.nabble.com> @ Stefano, >This is still wrong, -vf foo -vf bar has the same effects as -vf bar, Maybe in theory. I will try your suggestion today. I didn't say that you have to convert to .ass to get burned in subtitles. It's just that FFMpeg takes the layout of subs from the .ass file, it's not present in .srt files. Maybe there is a way to do it with .srt files (change fonts etc), but from the let's say 50 examples of how to place hardcoded subs with ffmpeg, 48 are done with .ass and of all .srt files examples none of the discusses lay-out/positioning/fonts/size. So I assume it's not possible/not yet implemented. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/make-mpeg2-file-with-hardcoded-subs-from-srt-file-tp4659902p4659951.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefasab at gmail.com Fri Jul 12 15:16:32 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 12 Jul 2013 15:16:32 +0200 Subject: [FFmpeg-user] try to change complex filters on runtime In-Reply-To: References: Message-ID: <20130712131632.GO4978@barisone> On date Wednesday 2013-07-10 15:43:57 +0200, lucie Lemonnier wrote: [...] > For > example , I call reinit_filters_complex("[0:0] crop=960:1080:0:0 > [tin];[2:0] crop=960:1080:0:0 [tmv]);[tin][tmv]overlay=0:0"). > I > passed in parameters of ffmpeg -i videoSource.mp4 -i transp.mov -i > objets.png -filter_complex "[0:0] crop=960:1080:0:0 [tin];[1:0] > crop=960:1080:0:0 [tmv]". > But It crash on this change. > I think it's because I free all in filtergraphs. > But I don't know what is missing for it to work. > Can you help me, please? > Thanks. You could achieve the same by extending libavfilter and using commands to send interactive commands to filters. For example check my patch on ffmpeg-devel to change crop parameters, as for what regards changing overlay you could connect two movie sources and disable/enable the active overlay (check timeline), or maybe implement a switcher controlled by a command. Dynamically changing movie input is not currently supported. From compuvision.sr at gmail.com Fri Jul 12 15:17:30 2013 From: compuvision.sr at gmail.com (gepebril) Date: Fri, 12 Jul 2013 06:17:30 -0700 (PDT) Subject: [FFmpeg-user] make mpeg2 file with hardcoded subs from .srt file In-Reply-To: <1373629852904-4659951.post@n4.nabble.com> References: <20130710215235.GA20341@sunshine.barsnick.net> <1373493550748-4659913.post@n4.nabble.com> <1373562258940-4659934.post@n4.nabble.com> <20130712075349.GN4978@barisone> <1373629852904-4659951.post@n4.nabble.com> Message-ID: <1373635050495-4659953.post@n4.nabble.com> @ Stefano, I tested your command, and it works. That command makes more sense, so -vf