From stefano.sabatini-lala at poste.it Fri Jul 1 01:53:55 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Fri, 1 Jul 2011 01:53:55 +0200 Subject: [FFmpeg-user] libavfilters filters RPM In-Reply-To: References: Message-ID: <20110630235355.GA31647@geppetto> On date Thursday 2011-06-30 15:26:33 -0400, Corey Zamara encoded: > does anyone know if there is an RPM available that will enable > libavfilter filters in ffmpeg, as you can see below I do have libavfilter > enabled in ffmped but no filters are installed, or is there is a quick way > to install filters without recompiling ffmpeg directly? > > FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers > built on Jun 28 2011 03:51:21 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) > configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 > --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth > --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' > --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac > --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 > --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads > --enable-shared --enable-swscale --enable-vdpau --enable-version3 > --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libtheora > libavutil 50.15. 1 / 50.15. 1 > libavcodec 52.72. 2 / 52.72. 2 > libavformat 52.64. 2 / 52.64. 2 > libavdevice 52. 2. 0 / 52. 2. 0 > libavfilter 1.19. 0 / 1.19. 0 > libswscale 0.11. 0 / 0.11. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > Filters: > zamarax at xxx.com [~]# > I'm primarily looking to enable scale, movie, pad. Hi, filtering was not integrated into FFmpeg 0.6, you may want to use the latest 0.7/0.8 releases or git HEAD. -- ffmpeg-user random tip #4 ffmpeg -i FILE prints information about the container format and the streams in a file. From soroush124 at yahoo.com Fri Jul 1 06:58:21 2011 From: soroush124 at yahoo.com (Soroush Hassani) Date: Thu, 30 Jun 2011 21:58:21 -0700 (PDT) Subject: [FFmpeg-user] How can i Compress animated gif In-Reply-To: <4E0CE844.1020604@gmail.com> References: <8C73411FCF52A748A87C623599BC2BDA0A0DEBA4@MAIL3.persistent.co.in> <4E0CE844.1020604@gmail.com> Message-ID: <1309496301.12301.YahooMailRC@web112419.mail.gq1.yahoo.com> GIF is already compressed but the animation could be optimized further by other means, this tool may help http://www.lcdf.org/gifsicle/. ________________________________ From: Andrew Berg To: FFmpeg user questions and RTFMs Sent: Fri, July 1, 2011 1:49:00 AM Subject: Re: [FFmpeg-user] How can i Compress animated gif On 2011.06.30 04:48 AM, Paramjeet Singh Bawa wrote: > ffmpeg -i video_origine.avi gif_anime.gif > > But the size of gif file is high as per my size limit. How can I compress the >gif file in this case ? Other than being limited to 256 colors (and 1-bit transparency), GIF is lossless. You could try scaling the images down and/or running that GIF through an optimizer (can't think of any off the top of my head since I rarely deal with GIF). _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rowntreerob at gmail.com Fri Jul 1 11:46:24 2011 From: rowntreerob at gmail.com (Robert Rowntree) Date: Fri, 1 Jul 2011 02:46:24 -0700 Subject: [FFmpeg-user] output truncation - 1/2 length of soundtrack's length Message-ID: ffmpeg use case to merge slides(jpg) and a sound track (3gpp) from a phone with the output suitable for Youtube uploads (mp4 or wmv) ffmpeg pattern from how to's : ffmpeg -loop_input -vframes -i - Make a Video File from a Single Frame my CLI for wmv output format - * ./ffmpeg -loop_input -f image2 -i Optimized-DSC01459.JPG -i rec_1459.3gpp -acodec wmav2 -vcodec wmv2 myoutfile.wmv* * * sound track info: Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'rec_1459.3gpp': *Duration: 00:02:33.62*, start: 0.000000, bitrate: 5 kb/s output ( note the time belo of 1:17 instead of 2:33 that would properly reflect the input track for audio ): Stream #0.0: Video: wmv2, yuv420p, 1200x798 [PAR 96:96 DAR 200:133], q=2-31, 200 kb/s, 1k tbn, 25 tbc Stream #0.1(eng): Audio: wmav2, 8000 Hz, 1 channels, s16, 64 kb/s frame= 1926 fps= 48 q=31.0 Lsize= 11714kB* time=00:01:17.04*bitrate=1245.6kbits/s Discussion: prior to using 'ffmpeg' i used the Picasa client tools for making movies from slides and mp3 files and got the identical result ( 50% truncation of the audio track ). What i want : to get the full 2:33 of the audio included in the output. Using -vframes as in the pattern at the top does not help in fmt=wmv scenarios. I tried many iterations using fmt=mp4 and libx264 for encoding and none of those attempts produced good output with both good audio and good video. What i get: good video audio merge for 1/2 the necessary length. Truncation occurs at the 50% segment of the audio INPUT file. I dont know how to get the encoding to proceed thru the end of the input audio. full stdout below: $ ./ffmpeg -y -loop_input -f image2 -i Optimized-DSC01459.JPG -i rec_1459.3gpp -acodec wmav2 -vcodec wmv2 e:/movies/dev/r2_640x480_vid_only_1459.wmv ffmpeg version N-30956-g81ef892, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 22 2011 17:37:00 with gcc 4.5.3 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, image2, from 'Optimized-DSC01459.JPG': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0.0: Video: mjpeg, yuvj420p, 1200x798 [PAR 96:96 DAR 200:133], 25 fps, 25 tbr, 25 tbn, 25 tbc Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'rec_1459.3gpp': Metadata: major_brand : 3gp4 minor_version : 0 compatible_brands: isom3gp4 Duration: 00:02:33.62, start: 0.000000, bitrate: 5 kb/s Stream #1.0(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 5 kb/s Incompatible sample format 'flt' for codec 'wmav2', auto-selecting format 's16' Incompatible pixel format 'yuvj420p' for codec 'wmv2', auto-selecting format 'yuv420p' [buffer @ 000000000034EAA0] w:1200 h:798 pixfmt:yuvj420p tb:1/1000000 sar:96/96 sws_param: [buffersink @ 0000000004165F00] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 00000000041A6EA0] w:1200 h:798 fmt:yuvj420p -> w:1200 h:798 fmt:yuv420p flags:0x4 Output #0, asf, to 'e:/movies/dev/r2_640x480_vid_only_1459.wmv': Metadata: WM/EncodingSettings: Lavf53.4.0 Stream #0.0: Video: wmv2, yuv420p, 1200x798 [PAR 96:96 DAR 200:133], q=2-31, 200 kb/s, 1k tbn, 25 tbc Stream #0.1(eng): Audio: wmav2, 8000 Hz, 1 channels, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1 Press [q] to stop, [?] for help frame= 1926 fps= 48 q=31.0 Lsize= 11714kB time=00:01:17.04 bitrate=1245.6kbits/s video:10918kB audio:603kB global headers:0kB muxing overhead 1.675240% * * * * From tim.nicholson at bbc.co.uk Fri Jul 1 11:49:16 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 01 Jul 2011 10:49:16 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <4E0CA522.7000601@bbc.co.uk> References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> <20110630154340.GP21173@epicure.lazyet.homelinux.net> <4E0CA522.7000601@bbc.co.uk> Message-ID: <4E0D981C.6000800@bbc.co.uk> On 30/06/11 17:32, Tim Nicholson wrote: > ...and one final thought. > > Should one use - pass n in ffmpeg or pass=n in x264opts....or both? > > Well either work, and both produce identical .log files, *but* the resultant files are not the same, size is different and behaviour in fflpay is different...... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From sweetthdevil at gmail.com Fri Jul 1 12:22:13 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Fri, 01 Jul 2011 11:22:13 +0100 Subject: [FFmpeg-user] adding microphone input? In-Reply-To: <4E0C4D9F.3020104@gmail.com> References: <4E0C4D9F.3020104@gmail.com> Message-ID: <4E0D9FD5.2020703@gmail.com> On 06/30/2011 11:19 AM, Sw at g wrote: > Hi all, > > I am recording my logitech webcam, but would like to add microphone > input, but I am not sure on how to find the proper input line. > > I am running archlinux with gnome shell and therefore pulseaudio. > > this is the command line I use, thank to user of the mailinglist. > > ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -vcodec libx264 > -preset medium -crf 26 -threads 0 output.mkv > > Looking forward for your reply, > > Regards, Hi all, After further internet searching I have found out how to record the webcam and the microphone together (see command line below) however the sound isn't great (a lot of white noise) so how can I tweak the command line to get a sharper sound? ffmpeg -f alsa -i pulse -ac 2 -acodec pcm_s16le -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -vcodec libx264 -preset medium -crf 26 -threads 0 output.mkv Looking forward for your reply, Regards, From xutom2006 at gmail.com Fri Jul 1 16:56:27 2011 From: xutom2006 at gmail.com (xutm) Date: Fri, 1 Jul 2011 22:56:27 +0800 Subject: [FFmpeg-user] using ffmpeg in android Message-ID: Hi all, I want to play realtime H264 video stream in android. And until now i have compile ffmpeg using NDK, and i got the .so files. I know i have to use JNI to call the methods in the so files. Can somebody show me how to do this? By the way, can somebody show me how to optimize the source code of ffmpeg for android platform? Thanks in advances! xutm From nicolas.george at normalesup.org Fri Jul 1 17:23:03 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Fri, 1 Jul 2011 17:23:03 +0200 Subject: [FFmpeg-user] using ffmpeg in android In-Reply-To: References: Message-ID: <20110701152303.GA26453@phare.normalesup.org> Le tridi 13 messidor, an CCXIX, xutm a ?crit?: > I want to play realtime H264 video stream in android. And until now i > have compile ffmpeg using NDK, and i got the .so files. I know i have to use > JNI to call the methods in the so files. Can somebody show me how to do > this? I am working on an example for that, but it is not ready yet, there is still work to do on it. I'll post it on the -devel mailing-list when it'll start to be ready. 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 rowntreerob at gmail.com Fri Jul 1 18:15:51 2011 From: rowntreerob at gmail.com (rob rowntree) Date: Fri, 1 Jul 2011 09:15:51 -0700 (PDT) Subject: [FFmpeg-user] output truncation - 1/2 length of soundtrack's length In-Reply-To: References: Message-ID: <1309536951386-3638639.post@n4.nabble.com> changing to the following solved the truncation issue on the audio track $ ./ffmpeg -y -loop_input -f image2 -shortest -r 1/2 -i Optimized-DSC01459.JPG -i rec_1459.3gpp -s 640x480 -b 100k -bt 240k -vcodec msmpeg4 -acodec libmp 3lame -ab 64k -ar 22050 output.wmv -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/output-truncation-1-2-length-of-soundtrack-s-length-tp3637842p3638639.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From corey.zamara at gmail.com Fri Jul 1 19:32:30 2011 From: corey.zamara at gmail.com (Corey Zamara) Date: Fri, 1 Jul 2011 13:32:30 -0400 Subject: [FFmpeg-user] libavfilters filters RPM In-Reply-To: <20110630235355.GA31647@geppetto> References: <20110630235355.GA31647@geppetto> Message-ID: so you are saying if I had a 0.7 rpm of ffmpeg it should work fine? __ Regards, Corey Zamara Network Administrator A+ ? Network+ ? Security+ ? MCSE2K3 ? MOUS ? BSD Guru @ ? On Thu, Jun 30, 2011 at 7:53 PM, Stefano Sabatini < stefano.sabatini-lala at poste.it> wrote: > On date Thursday 2011-06-30 15:26:33 -0400, Corey Zamara encoded: > > does anyone know if there is an RPM available that will enable > > libavfilter filters in ffmpeg, as you can see below I do have libavfilter > > enabled in ffmped but no filters are installed, or is there is a quick > way > > to install filters without recompiling ffmpeg directly? > > > > FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers > > built on Jun 28 2011 03:51:21 with gcc 4.1.2 20080704 (Red Hat > 4.1.2-50) > > configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 > > --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth > > --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > > -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' > > --enable-avfilter --enable-avfilter-lavf --enable-libdirac > --enable-libfaac > > --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame > > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 > > --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads > > --enable-shared --enable-swscale --enable-vdpau --enable-version3 > > --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libtheora > > libavutil 50.15. 1 / 50.15. 1 > > libavcodec 52.72. 2 / 52.72. 2 > > libavformat 52.64. 2 / 52.64. 2 > > libavdevice 52. 2. 0 / 52. 2. 0 > > libavfilter 1.19. 0 / 1.19. 0 > > libswscale 0.11. 0 / 0.11. 0 > > libpostproc 51. 2. 0 / 51. 2. 0 > > Filters: > > zamarax at xxx.com [~]# > > I'm primarily looking to enable scale, movie, pad. > > Hi, filtering was not integrated into FFmpeg 0.6, you may want to use > the latest 0.7/0.8 releases or git HEAD. > -- > ffmpeg-user random tip #4 > ffmpeg -i FILE > prints information about the container format and the streams in a file. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tmcine1973 at yahoo.it Fri Jul 1 16:59:58 2011 From: tmcine1973 at yahoo.it (tito muserra) Date: Fri, 1 Jul 2011 15:59:58 +0100 (BST) Subject: [FFmpeg-user] notes Message-ID: <1309532398.87727.YahooMailRC@web26705.mail.ukl.yahoo.com> prejudice I need this information, ffmpeg and 'capable of transforming an image, tiff, png etc ----- InJPEG2000? and also 'possible to transform the RGB color gamut example ----xyz Geraz many muserra tito From pgoldweic at northwestern.edu Fri Jul 1 20:07:13 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Fri, 1 Jul 2011 11:07:13 -0700 (PDT) Subject: [FFmpeg-user] how to (programmatically) determine video frames to take image snapshots Message-ID: <1309543633643-3638950.post@n4.nabble.com> As a newbie here, I apologize if this happens to be a question with a trivial answer. I am wondering whether there is any way that I can have ffmpeg automatically determine which video frames represent frames with enough content variation that they are 'worth' taking a snapshot of. The goal here is to generate *only informative* images from a video sequence. Any information/help will be appreciated. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-programmatically-determine-video-frames-to-take-image-snapshots-tp3638950p3638950.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From jeff at jungletech.com Fri Jul 1 20:13:34 2011 From: jeff at jungletech.com (Jeff Stagg) Date: Fri, 1 Jul 2011 11:13:34 -0700 Subject: [FFmpeg-user] how to (programmatically) determine video frames to take image snapshots In-Reply-To: <1309543633643-3638950.post@n4.nabble.com> References: <1309543633643-3638950.post@n4.nabble.com> Message-ID: <7EF8F939DF75C54684BEF7516D623BE7887A2D83E9@EXVMBX018-11.exch018.msoutlookonline.net> -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of pgoldweic Sent: Friday, July 01, 2011 1:07 PM To: ffmpeg-user at mplayerhq.hu Subject: [FFmpeg-user] how to (programmatically) determine video frames to take image snapshots As a newbie here, I apologize if this happens to be a question with a trivial answer. I am wondering whether there is any way that I can have ffmpeg automatically determine which video frames represent frames with enough content variation that they are 'worth' taking a snapshot of. The goal here is to generate *only informative* images from a video sequence. Any information/help will be appreciated. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-programmatically-determine-video-frames-to-take-image-snapshots-tp3638950p3638950.html Sent from the FFmpeg-users mailing list archive at Nabble.com. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user One approach which could be taken is to take each frame save one as a 'to test against' and another as the 'subject to test', do color comparisons (run some sort of heuristics to generate a color histogram) and if the change in colors is above some 'defined' threshold for difference save the frame out as 'worth' taking a snapshot of. There is no way to do this automagically with FFMPEG (to my knowledge) My 2'cents. ---Jeff From pgoldweic at northwestern.edu Fri Jul 1 20:32:42 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Fri, 1 Jul 2011 11:32:42 -0700 (PDT) Subject: [FFmpeg-user] how to (programmatically) determine video frames to take image snapshots In-Reply-To: <7EF8F939DF75C54684BEF7516D623BE7887A2D83E9@EXVMBX018-11.exch018.msoutlookonline.net> References: <1309543633643-3638950.post@n4.nabble.com> <7EF8F939DF75C54684BEF7516D623BE7887A2D83E9@EXVMBX018-11.exch018.msoutlookonline.net> Message-ID: <1309545162838-3639006.post@n4.nabble.com> Thanks for your response Jeff (unfortunately I was looking for a simpler way :-(). As I was searching further for tips, I came across an apparently new capability in ffmpeg to extract keyframes (http://avcodec.org/trac/ffmpeg/ticket/92). Do you know if this could also be used to accomplish my goal? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-programmatically-determine-video-frames-to-take-image-snapshots-tp3638950p3639006.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From corey.zamara at gmail.com Fri Jul 1 23:58:36 2011 From: corey.zamara at gmail.com (Corey Zamara) Date: Fri, 1 Jul 2011 17:58:36 -0400 Subject: [FFmpeg-user] 0.7.1 supports vhook and vf? Message-ID: Does anyone know if version 0.7.1 supports both vhook and vf? I see that it states it supports 0.6 ABI and API fully. > -- > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/how-to-programmatically-determine-video-frames-to-take-image-snapshots-tp3638950p3639006.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rickcorteza at gmail.com Sat Jul 2 01:43:52 2011 From: rickcorteza at gmail.com (Rick C.) Date: Sat, 2 Jul 2011 07:43:52 +0800 Subject: [FFmpeg-user] troubleshooting out of sync video Message-ID: Hi, Can anyone see what might be causing the audio to be slightly out of sync with the video here? And what else could I do about it? Thanks! ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 25 2011 14:41:44 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --enable-runtime-cpudetect libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 60000.00 (60000/1) -> 29.97 (30000/1001) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mahalko/Desktop/original video.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-06-29 17:05:08 Duration: 00:00:58.99, start: 0.132500, bitrate: 21812 kb/s Stream #0.0(eng): Video: h264 (Constrained Baseline), yuvj420p, 1280x720, 20279 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc Metadata: creation_time : 2011-06-29 17:05:08 Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2011-06-29 17:05:08 Incompatible pixel format 'yuvj420p' for codec 'mpeg4', auto-selecting format 'yuv420p' [buffer @ 0x101300ea0] w:1280 h:720 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x1013034c0] w:1280 h:720 fmt:yuvj420p -> w:640 h:360 fmt:yuv420p flags:0x4 Output #0, ipod, to '/Users/mahalko/Desktop/original video.m4v': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-06-29 17:05:08 encoder : Lavf53.4.0 Stream #0.0(eng): Video: mpeg4 (hq), yuv420p, 640x360, q=2-31, 1500 kb/s, 30k tbn, 29.97 tbc Metadata: creation_time : 2011-06-29 17:05:08 Stream #0.1(eng): Audio: aac, 48000 Hz, 2 channels, s16, 192 kb/s Metadata: creation_time : 2011-06-29 17:05:08 Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame= 29 fps= 0 q=2.2 size= 232kB time=00:00:00.96 bitrate=1965.2kbits/s frame= 58 fps= 58 q=3.5 size= 486kB time=00:00:01.93 bitrate=2056.0kbits/s frame= 85 fps= 56 q=2.7 size= 692kB time=00:00:02.83 bitrate=1998.9kbits/s frame= 110 fps= 55 q=3.5 size= 863kB time=00:00:03.67 bitrate=1926.4kbits/s frame= 137 fps= 54 q=3.5 size= 1053kB time=00:00:04.57 bitrate=1887.8kbits/s frame= 162 fps= 54 q=4.3 size= 1245kB time=00:00:05.40 bitrate=1886.3kbits/s frame= 191 fps= 54 q=3.3 size= 1418kB time=00:00:06.37 bitrate=1822.6kbits/s frame= 221 fps= 55 q=2.9 size= 1609kB time=00:00:07.37 bitrate=1787.1kbits/s frame= 250 fps= 55 q=3.4 size= 1805kB time=00:00:08.34 bitrate=1772.2kbits/s frame= 279 fps= 55 q=2.9 size= 1996kB time=00:00:09.30 bitrate=1756.7kbits/s frame= 308 fps= 55 q=2.6 size= 2175kB time=00:00:10.27 bitrate=1733.5kbits/s frame= 337 fps= 55 q=1.8 size= 2381kB time=00:00:11.24 bitrate=1734.7kbits/s frame= 366 fps= 55 q=2.4 size= 2575kB time=00:00:12.21 bitrate=1727.2kbits/s frame= 395 fps= 56 q=2.4 size= 2770kB time=00:00:13.17 bitrate=1721.5kbits/s frame= 425 fps= 56 q=2.6 size= 2976kB time=00:00:14.18 bitrate=1719.0kbits/s frame= 455 fps= 56 q=2.4 size= 3177kB time=00:00:15.18 bitrate=1714.2kbits/s frame= 475 fps= 55 q=2.4 size= 3304kB time=00:00:15.84 bitrate=1707.6kbits/s frame= 502 fps= 55 q=2.5 size= 3487kB time=00:00:16.75 bitrate=1705.6kbits/s frame= 530 fps= 55 q=2.5 size= 3691kB time=00:00:17.68 bitrate=1709.7kbits/s frame= 559 fps= 55 q=2.8 size= 3890kB time=00:00:18.65 bitrate=1708.3kbits/s frame= 587 fps= 55 q=2.9 size= 4091kB time=00:00:19.58 bitrate=1710.9kbits/s frame= 615 fps= 55 q=2.5 size= 4298kB time=00:00:20.52 bitrate=1716.0kbits/s frame= 643 fps= 55 q=2.7 size= 4492kB time=00:00:21.45 bitrate=1715.1kbits/s frame= 671 fps= 55 q=2.7 size= 4687kB time=00:00:22.38 bitrate=1714.9kbits/s frame= 700 fps= 55 q=2.9 size= 4904kB time=00:00:23.35 bitrate=1720.2kbits/s frame= 727 fps= 55 q=2.6 size= 5082kB time=00:00:24.25 bitrate=1716.1kbits/s frame= 754 fps= 55 q=2.5 size= 5254kB time=00:00:25.15 bitrate=1710.9kbits/s frame= 775 fps= 54 q=2.3 size= 5397kB time=00:00:25.85 bitrate=1709.7kbits/s frame= 803 fps= 54 q=2.6 size= 5592kB time=00:00:26.79 bitrate=1709.6kbits/s frame= 831 fps= 54 q=3.3 size= 5813kB time=00:00:27.72 bitrate=1717.4kbits/s frame= 859 fps= 54 q=2.9 size= 5993kB time=00:00:28.66 bitrate=1713.0kbits/s frame= 888 fps= 55 q=3.9 size= 6203kB time=00:00:29.62 bitrate=1715.1kbits/s frame= 918 fps= 55 q=3.5 size= 6406kB time=00:00:30.63 bitrate=1713.4kbits/s frame= 944 fps= 55 q=3.9 size= 6624kB time=00:00:31.49 bitrate=1722.7kbits/s frame= 973 fps= 55 q=2.4 size= 6809kB time=00:00:32.46 bitrate=1718.1kbits/s frame= 1003 fps= 55 q=2.8 size= 6991kB time=00:00:33.46 bitrate=1711.3kbits/s frame= 1033 fps= 55 q=2.0 size= 7194kB time=00:00:34.46 bitrate=1709.9kbits/s frame= 1063 fps= 55 q=2.5 size= 7374kB time=00:00:35.46 bitrate=1703.2kbits/s frame= 1091 fps= 55 q=2.3 size= 7553kB time=00:00:36.40 bitrate=1699.8kbits/s frame= 1120 fps= 55 q=2.5 size= 7762kB time=00:00:37.37 bitrate=1701.6kbits/s frame= 1149 fps= 55 q=2.5 size= 7954kB time=00:00:38.33 bitrate=1699.6kbits/s frame= 1177 fps= 55 q=1.9 size= 8156kB time=00:00:39.27 bitrate=1701.3kbits/s frame= 1205 fps= 55 q=2.4 size= 8338kB time=00:00:40.20 bitrate=1698.8kbits/s frame= 1233 fps= 55 q=2.5 size= 8528kB time=00:00:41.14 bitrate=1698.1kbits/s frame= 1262 fps= 55 q=2.5 size= 8736kB time=00:00:42.10 bitrate=1699.5kbits/s frame= 1291 fps= 55 q=2.4 size= 8926kB time=00:00:43.07 bitrate=1697.4kbits/s frame= 1320 fps= 55 q=2.2 size= 9114kB time=00:00:44.04 bitrate=1695.1kbits/s frame= 1349 fps= 55 q=2.4 size= 9319kB time=00:00:45.01 bitrate=1696.0kbits/s frame= 1377 fps= 55 q=2.5 size= 9509kB time=00:00:45.94 bitrate=1695.3kbits/s frame= 1405 fps= 55 q=1.7 size= 9718kB time=00:00:46.88 bitrate=1698.2kbits/s frame= 1434 fps= 55 q=3.6 size= 9931kB time=00:00:47.84 bitrate=1700.4kbits/s frame= 1463 fps= 55 q=2.7 size= 10127kB time=00:00:48.81 bitrate=1699.4kbits/s frame= 1492 fps= 55 q=2.4 size= 10327kB time=00:00:49.78 bitrate=1699.4kbits/s frame= 1521 fps= 55 q=2.5 size= 10519kB time=00:00:50.75 bitrate=1697.9kbits/s frame= 1550 fps= 55 q=2.7 size= 10722kB time=00:00:51.71 bitrate=1698.3kbits/s frame= 1578 fps= 55 q=2.8 size= 10914kB time=00:00:52.65 bitrate=1698.1kbits/s frame= 1608 fps= 56 q=2.5 size= 11113kB time=00:00:53.65 bitrate=1696.7kbits/s frame= 1638 fps= 56 q=2.3 size= 11315kB time=00:00:54.65 bitrate=1696.0kbits/s frame= 1663 fps= 55 q=2.4 size= 11484kB time=00:00:55.48 bitrate=1695.4kbits/s frame= 1693 fps= 55 q=2.1 size= 11694kB time=00:00:56.48 bitrate=1695.9kbits/s frame= 1723 fps= 55 q=2.3 size= 11896kB time=00:00:57.49 bitrate=1695.1kbits/s frame= 1753 fps= 55 q=1.8 size= 12114kB time=00:00:58.49 bitrate=1696.6kbits/s frame= 1768 fps= 55 q=2.5 Lsize= 12240kB time=00:00:58.83 bitrate=1704.1kbits/s video:10891kB audio:1311kB global headers:0kB muxing overhead 0.304151% From aurium at gmail.com Sat Jul 2 04:57:19 2011 From: aurium at gmail.com (=?ISO-8859-1?Q?Aur=E9lio_A=2E_Heckert?=) Date: Fri, 1 Jul 2011 23:57:19 -0300 Subject: [FFmpeg-user] Where is the Stream's Bitrate on some formats? Message-ID: Hi all, I need to convert videos to the web in OGV, respecting the original bitrate (quality) and may writing lightweight versions with minor dimension and lower bitrate (for video and audio). Well with "ffmpeg -i file" i can get some important information, the video dimension, the frame rate, but not the bitrate for all formats. Only the global file bitrate is always shown. There is some examples: $ ffmpeg -i firebus.3gp Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'firebus.3gp': Duration: 00:02:29.80, start: 0.000000, bitrate: 279 kb/s Stream #0.0(eng): Video: mpeg4, yuv420p, 128x96 [PAR 1:1 DAR 4:3], 265 kb/s, 15.01 fps, 15 tbr, 15 tbn, 15 tbc Stream #0.1(eng): Audio: amrnb, 8000 Hz, 1 channels, flt, 12 kb/s $ ffmpeg -i atropelamento.ogv Input #0, ogg, from 'atropelamento.ogv': Duration: 00:00:05.00, start: 0.000000, bitrate: 334 kb/s Stream #0.0: Video: theora, yuv420p, 208x130 [PAR 1:1 DAR 8:5], 24 fps, 24 tbr, 24 tbn, 24 tbc Stream #0.1: Audio: flac, 44100 Hz, 2 channels, s16 $ ffmpeg -i Animals.AVI Input #0, avi, from 'Animals.AVI': Duration: 01:27:51.00, start: 0.000000, bitrate: 924 kb/s Stream #0.0: Video: mpeg4, yuv420p, 608x352 [PAR 1:1 DAR 19:11], 25 tbr, 25 tbn, 25 tbc Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s I'm using FFmpeg version 0.6.2 from this package: http://packages.debian.org/wheezy/ffmpeg I also try to use the FFruby, based on the libav, but this also fails to response the bitrate for the "atropelamento.ogv" streams and for the "Animals.AVI" video stream. That is a FFmpeg bug or there is some way to get the stream bitrate always? Bonus question: I also have no FPS for the Animals.AVI's video stream. Reading this http://forums.creativecow.net/thread/291/140 i believe i can trust my life to the TBR, but that is true? If yes, FFmpeg does not asume the admit the TBR value to the FPS and stop the confusion? Thanks, Aurium -- Aur?lio A. Heckert? http://SoftwareLivre.org/aurium Coop. de Tecnologias Livres: http://Colivre.coop.br ? ?? - - - - - - - - - - - - - - - - - - - - - - - - - GNU/Linux User #312507? http://counter.li.org Ilustra??o Vetorial Livre: http://InkscapeBrasil.org ? ?? - - - - - - - - - - - - - - - - - - - - - - - - - ? "Windows 7: a new era of restrictions." ?? http://windows7sins.org ?? Antes de imprimir esta mensagem reflita ?? sobre a sua responsabilidade com a ?? preserva??o do Meio Ambiente. From stefano.sabatini-lala at poste.it Sat Jul 2 10:54:35 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Sat, 2 Jul 2011 10:54:35 +0200 Subject: [FFmpeg-user] libavfilters filters RPM In-Reply-To: References: <20110630235355.GA31647@geppetto> Message-ID: <20110702085435.GA12987@geppetto> On date Friday 2011-07-01 13:32:30 -0400, Corey Zamara encoded: > so you are saying if I had a 0.7 rpm of ffmpeg it should work fine? Yes. From stefano.sabatini-lala at poste.it Sat Jul 2 10:56:09 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Sat, 2 Jul 2011 10:56:09 +0200 Subject: [FFmpeg-user] 0.7.1 supports vhook and vf? In-Reply-To: References: Message-ID: <20110702085609.GB12987@geppetto> On date Friday 2011-07-01 17:58:36 -0400, Corey Zamara encoded: > Does anyone know if version 0.7.1 supports both vhook and vf? I see that it > states it supports 0.6 ABI and API fully. VHOOK was removed just after the 0.5 release, filters are fully supported in 0.7/0.8. From stefano.sabatini-lala at poste.it Sat Jul 2 11:06:49 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Sat, 2 Jul 2011 11:06:49 +0200 Subject: [FFmpeg-user] how to (programmatically) determine video frames to take image snapshots In-Reply-To: <1309545162838-3639006.post@n4.nabble.com> References: <1309543633643-3638950.post@n4.nabble.com> <7EF8F939DF75C54684BEF7516D623BE7887A2D83E9@EXVMBX018-11.exch018.msoutlookonline.net> <1309545162838-3639006.post@n4.nabble.com> Message-ID: <20110702090649.GC12987@geppetto> On date Friday 2011-07-01 11:32:42 -0700, pgoldweic encoded: > Thanks for your response Jeff (unfortunately I was looking for a simpler way > :-(). As I was searching further for tips, I came across an apparently new > capability in ffmpeg to extract keyframes > (http://avcodec.org/trac/ffmpeg/ticket/92). Do you know if this could also > be used to accomplish my goal? I originally wrote the select filter for a similar purpose: http://ffmpeg.org/pipermail/ffmpeg-devel/2009-May/076085.html The "snapshot" sink was never integrated though. Also you may have a look at some scenechange detection algorithms, you should be able to find several implementations, porting them to FFmpeg/libavfilter would be great. From corey.zamara at gmail.com Sat Jul 2 18:14:36 2011 From: corey.zamara at gmail.com (Corey Zamara) Date: Sat, 2 Jul 2011 12:14:36 -0400 Subject: [FFmpeg-user] 0.7.1 supports vhook and vf? In-Reply-To: <20110702085609.GB12987@geppetto> References: <20110702085609.GB12987@geppetto> Message-ID: awesome, then I guess the next question is, why version 0.6? which doesn't support vhook and doesn't support filters. __ Regards, Corey Zamara Network Administrator A+ ? Network+ ? Security+ ? MCSE2K3 ? MOUS ? BSD Guru @ ? On Sat, Jul 2, 2011 at 4:56 AM, Stefano Sabatini < stefano.sabatini-lala at poste.it> wrote: > On date Friday 2011-07-01 17:58:36 -0400, Corey Zamara encoded: > > Does anyone know if version 0.7.1 supports both vhook and vf? I see that > it > > states it supports 0.6 ABI and API fully. > > VHOOK was removed just after the 0.5 release, filters are fully > supported in 0.7/0.8. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stefano.sabatini-lala at poste.it Sat Jul 2 18:31:46 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Sat, 2 Jul 2011 18:31:46 +0200 Subject: [FFmpeg-user] 0.7.1 supports vhook and vf? In-Reply-To: References: <20110702085609.GB12987@geppetto> Message-ID: <20110702163145.GC20698@geppetto> On date Saturday 2011-07-02 12:14:36 -0400, Corey Zamara encoded: > awesome, then I guess the next question is, why version 0.6? which doesn't > support vhook and doesn't support filters. 0.5 is the last release with VHOOK support, which was removed just after. 0.6 contains only embryonal libavfilter support, as it was still immature at the time of release. -- ffmpeg-user random tip #18 Gmane ffmpeg-user archive: http://dir.gmane.org/gmane.comp.video.ffmpeg.user From corey.zamara at gmail.com Sat Jul 2 18:43:18 2011 From: corey.zamara at gmail.com (Corey Zamara) Date: Sat, 2 Jul 2011 12:43:18 -0400 Subject: [FFmpeg-user] 0.7.1 supports vhook and vf? In-Reply-To: <20110702163145.GC20698@geppetto> References: <20110702085609.GB12987@geppetto> <20110702163145.GC20698@geppetto> Message-ID: makes sense, thanks Stefano. __ Regards, Corey Zamara Network Administrator A+ ? Network+ ? Security+ ? MCSE2K3 ? MOUS ? BSD Guru @ ? On Sat, Jul 2, 2011 at 12:31 PM, Stefano Sabatini < stefano.sabatini-lala at poste.it> wrote: > On date Saturday 2011-07-02 12:14:36 -0400, Corey Zamara encoded: > > awesome, then I guess the next question is, why version 0.6? which > doesn't > > support vhook and doesn't support filters. > > 0.5 is the last release with VHOOK support, which was removed just > after. 0.6 contains only embryonal libavfilter support, as it was > still immature at the time of release. > -- > ffmpeg-user random tip #18 > Gmane ffmpeg-user archive: > http://dir.gmane.org/gmane.comp.video.ffmpeg.user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From itnarayanan at gmail.com Sat Jul 2 11:17:57 2011 From: itnarayanan at gmail.com (itnarayanan at gmail.com) Date: Sat, 2 Jul 2011 02:17:57 -0700 (PDT) Subject: [FFmpeg-user] How to Access Sony HDV camera using FFMPEG Source Message-ID: <1309598277198-3640242.post@n4.nabble.com> Hi friends Any one say how to Access Sony HDV camera using FFMPEG Source Regards Narayanasamy.S -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-Access-Sony-HDV-camera-using-FFMPEG-Source-tp3640242p3640242.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Sat Jul 2 21:13:23 2011 From: lou at lrcd.com (Lou) Date: Sat, 2 Jul 2011 11:13:23 -0800 Subject: [FFmpeg-user] How to Access Sony HDV camera using FFMPEG Source In-Reply-To: <1309598277198-3640242.post@n4.nabble.com> References: <1309598277198-3640242.post@n4.nabble.com> Message-ID: <20110702111323.7d5104ea@lrcd.com> On Sat, 2 Jul 2011 02:17:57 -0700 (PDT) "itnarayanan at gmail.com" wrote: > Hi friends > > Any one say how to Access Sony HDV camera using FFMPEG Source > > Regards > > Narayanasamy.S One method is to use dvgrab to capture from the HDV camera. You can either capture the video to a file and then process it with FFmpeg, or perhaps you can pipe from dvgrab directly to FFmpeg and avoid the intermediate file. Untested, overly simplistic example: dvgrab -f hdv -size 0 - | ffmpeg ... From itnarayanan at gmail.com Sun Jul 3 07:05:30 2011 From: itnarayanan at gmail.com (Narayanasamy.S) Date: Sun, 3 Jul 2011 10:35:30 +0530 Subject: [FFmpeg-user] How to Access Sony HDV camera using FFMPEG Source In-Reply-To: <20110702111323.7d5104ea@lrcd.com> References: <1309598277198-3640242.post@n4.nabble.com> <20110702111323.7d5104ea@lrcd.com> Message-ID: Thank u Lou... On Sun, Jul 3, 2011 at 12:43 AM, Lou wrote: > On Sat, 2 Jul 2011 02:17:57 -0700 (PDT) > "itnarayanan at gmail.com" wrote: > > > Hi friends > > > > Any one say how to Access Sony HDV camera using FFMPEG Source > > > > Regards > > > > Narayanasamy.S > > One method is to use dvgrab to capture from the HDV camera. You can > either capture the video to a file and then process it with FFmpeg, or > perhaps you can pipe from dvgrab directly to FFmpeg and avoid the > intermediate file. Untested, overly simplistic example: > > dvgrab -f hdv -size 0 - | ffmpeg ... > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- *Thanks & Regards * *Narayanasamy S* *Research Assistant * *Amrita E-Learning Research Lab* *E-Mail: narayanasamys at amritapuri.amrita.edu* * * From kshawkeye at gmail.com Sun Jul 3 13:57:08 2011 From: kshawkeye at gmail.com (Kyle) Date: Sun, 03 Jul 2011 07:57:08 -0400 Subject: [FFmpeg-user] Library Specific Options Message-ID: <4E105914.4040806@gmail.com> To my knowledge FFmpeg does not support passing specific options to the library being used. I believe this would be a handy feature, and not impossibly difficult to implement. An example of this would be with the package LAME, FFmpeg obviously supports encoding with the LAME library package, but to my knowledge does not support specific features that LAME supplies. This is a example of how the features I'm describing could possibly work: ffmpeg -i "infile.mpg" -vcodec copy -acodec libmp3lame -alib_options="--noreplaygain" -ab 192k "outfile.mp4" Then FFmpeg would simply pass all "-alib_options" to the audio codec library, allowing for all features that the library being used has to offer. This is just a possible "feature request" and I apologize if this feature already exists. If this feature does not exists I could really see some useful functions for it if it was to be implemented. Best regards Kyle Schwarz From pgoldweic at northwestern.edu Sun Jul 3 15:49:09 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Sun, 3 Jul 2011 06:49:09 -0700 (PDT) Subject: [FFmpeg-user] trouble with version 0.8: aac-related error messages Message-ID: <1309700949194-3641938.post@n4.nabble.com> I recenty recompiled ffmpeg to use the 0.8 release source code. When I type in the following command: - ffmpeg -i video.mp4 -sameq -video.mpg ffmpeg seems to work at first, then spits out the following error message lots of times: -------------------------------------------------- Error while decoding stream #0.1 [aac @ 0x1cd2e580] SSR not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [aac @ 0x1cd2e580] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. --------------------------------------------------- The apparently continues, and eventually completes with the following output: ------------------------------------------------------------------------------ ... Error while decoding stream #0.1 [aac @ 0x1cd2e580] SSR not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [aac @ 0x1cd2e580] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/MPlayer/incoming/ and contact the ffmpeg-devel mailing list. Error while decoding stream #0.1 [mpeg1video @ 0x1cd28e00] warning, clipping 1 dct coefficients to -255..255its/s Last message repeated 29 times44990kB time=00:02:55.56 bitrate=2099.2kbits/s frame= 5341 fps=235 q=0.0 Lsize= 45242kB time=00:02:55.62 bitrate=2110.4kbits/s video:43599kB audio:1372kB global headers:0kB muxing overhead 0.601750% ------------------------------------------------------------------------------- When I run the (ffmpeg -i ) command to get information about the input stream, I get the following: --------------------------------------------------------------- ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 27 2011 17:30:33 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --enable-libvpx --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads --enable-libfreetype --arch=x86_64 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: mp41 creation_time : 2010-05-07 15:50:18 Duration: 00:02:58.21, start: 0.000000, bitrate: 1312 kb/s Stream #0.0(und): Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 1199 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc Metadata: creation_time : 2010-05-07 15:51:20 Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 108 kb/s Metadata: creation_time : 2010-05-07 15:51:20 At least one output file must be specified --------------------------------------------------------------- Can you tell what is wrong with my ffmpeg install? How do I resolve it? (I was not getting these type of errors before recompiling the ffmpeg source a week ago. ) Thanks in advance for any help you can provide. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/trouble-with-version-0-8-aac-related-error-messages-tp3641938p3641938.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefano.sabatini-lala at poste.it Sun Jul 3 17:24:45 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Sun, 3 Jul 2011 17:24:45 +0200 Subject: [FFmpeg-user] Library Specific Options In-Reply-To: <4E105914.4040806@gmail.com> References: <4E105914.4040806@gmail.com> Message-ID: <20110703152445.GA11201@geppetto> On date Sunday 2011-07-03 07:57:08 -0400, Kyle encoded: > To my knowledge FFmpeg does not support passing specific options to > the library being used. > > I believe this would be a handy feature, and not impossibly > difficult to implement. > > An example of this would be with the package LAME, FFmpeg obviously > supports encoding with the LAME library package, but to my knowledge > does not support specific features that LAME supplies. > > This is a example of how the features I'm describing could possibly work: > ffmpeg -i "infile.mpg" -vcodec copy -acodec libmp3lame > -alib_options="--noreplaygain" -ab 192k "outfile.mp4" Since a few months FFmpeg supports private options, that is options which are specific of the codec/format selected. For example now libx264 has an -x264opts which allows to specify options processed directly by libx264. > Then FFmpeg would simply pass all "-alib_options" to the audio codec > library, allowing for all features that the library being used has > to offer. > > This is just a possible "feature request" and I apologize if this > feature already exists. > > If this feature does not exists I could really see some useful > functions for it if it was to be implemented. Which options do you want to see implemented? -- ffmpeg-user random tip #10 One minute of audio noise with ffmpeg: ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/urandom \ -ab 64K -f mp2 -acodec mp2 -y noise.mp2 From kshawkeye at gmail.com Sun Jul 3 17:39:22 2011 From: kshawkeye at gmail.com (Kyle) Date: Sun, 03 Jul 2011 11:39:22 -0400 Subject: [FFmpeg-user] Library Specific Options In-Reply-To: <20110703152445.GA11201@geppetto> References: <4E105914.4040806@gmail.com> <20110703152445.GA11201@geppetto> Message-ID: <4E108D2A.6010405@gmail.com> On 7/3/2011 11:24 AM, Stefano Sabatini wrote: > Since a few months FFmpeg supports private options, that is options > which are specific of the codec/format selected. For example now > libx264 has an -x264opts which allows to specify options processed > directly by libx264. Thank you, I was unaware of that. > Which options do you want to see implemented? I think it would be helpful to be able to pass any option directly to the encoding library, allowing for all functions of that library to be taken advantage of. If it is already implemented in FFmpeg for x264 perhaps it wouldn't be very difficult to allow commands to be passed to any library? Best regards Kyle Schwarz From dave.f.kleinschmidt at gmail.com Sun Jul 3 19:29:10 2011 From: dave.f.kleinschmidt at gmail.com (Dave Kleinschmidt) Date: Sun, 3 Jul 2011 13:29:10 -0400 Subject: [FFmpeg-user] Encoding FLV: video plays back slow relative to audio, etc. Message-ID: Hi all, I'm having a bit of trouble with encoding .avi files as .flv for flowplayer. I know this is a bit of a black art, and I've done quite a bit of looking around, but haven't seen much of anything. The symptoms: the audio plays back fine, but the video plays back at a slightly slower rate. In addition, the onFinish() events fires really late, a second or two after the video has finished. I suspect that this is a problem with how I encoded my .flv file, since the Flowplayer sample .flv plays fine, with no lag, and the onFinish() event fires essentially immediately after the last frame. Any suggestions would be very much appreciated. Unfortunately, I don't have a test site to link to, but here is a link to the original .avi file: http://db.tt/fpLLGSP and here is the .flv: http://db.tt/CnjPIrI Here is the ffmpeg call and its output for the actual conversion: dkleinschmidt$ ffmpeg -y -i videos/VbA1.avi -ab 128000 -vcodec flv -r 25 videos/VbA1.flv ffmpeg version N-31022-g721719d, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 27 2011 17:21:27 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libvorbis --enable-libtheora --enable-gpl --enable-shared --enable-nonfree --enable-libvpx libavutil 51. 10. 0 / 51. 10. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 24. 0 / 2. 24. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, avi, from 'videos/VbA1.avi': Duration: 00:00:02.49, start: 0.000000, bitrate: 2882 kb/s Stream #0.0: Video: indeo3, yuv410p, 352x288, 30 tbr, 30 tbn, 30 tbc Stream #0.1: Audio: pcm_s16le, 22050 Hz, 1 channels, s16, 352 kb/s Incompatible pixel format 'yuv410p' for codec 'flv', auto-selecting format 'yuv420p' [buffer @ 0x1014007c0] w:352 h:288 pixfmt:yuv410p tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x1014020a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x101402380] w:352 h:288 fmt:yuv410p -> w:352 h:288 fmt:yuv420p flags:0x4 Output #0, flv, to 'videos/VbA1.flv': Metadata: encoder : Lavf53.4.0 Stream #0.0: Video: flv, yuv420p, 352x288, q=2-31, 200 kb/s, 1k tbn, 25 tbc Stream #0.1: Audio: libmp3lame, 22050 Hz, 1 channels, s16, 128 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame= 63 fps= 0 q=12.5 Lsize= 184kB time=00:00:02.52 bitrate= 597.7kbits/s dup=0 drop=12 video:141kB audio:40kB global headers:0kB muxing overhead 1.561042% Finally, this is the output of ffmpeg -i from each of the files: $ ffmpeg -i videos/VbA1.avi ffmpeg version N-31022-g721719d, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 27 2011 17:21:27 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libvorbis --enable-libtheora --enable-gpl --enable-shared --enable-nonfree --enable-libvpx libavutil 51. 10. 0 / 51. 10. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 24. 0 / 2. 24. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, avi, from 'videos/VbA1.avi': Duration: 00:00:02.49, start: 0.000000, bitrate: 2882 kb/s Stream #0.0: Video: indeo3, yuv410p, 352x288, 30 tbr, 30 tbn, 30 tbc Stream #0.1: Audio: pcm_s16le, 22050 Hz, 1 channels, s16, 352 kb/s dkleinschmidt$ ffmpeg -i videos/VbA1.flv ffmpeg version N-31022-g721719d, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 27 2011 17:21:27 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libvorbis --enable-libtheora --enable-gpl --enable-shared --enable-nonfree --enable-libvpx libavutil 51. 10. 0 / 51. 10. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 24. 0 / 2. 24. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [flv @ 0x101807c00] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1) Input #0, flv, from 'videos/VbA1.flv': Metadata: duration : 3 width : 352 height : 288 videodatarate : 195 framerate : 25 videocodecid : 2 audiodatarate : 125 audiosamplerate : 22050 audiosamplesize : 16 stereo : false audiocodecid : 2 encoder : Lavf53.4.0 filesize : 188283 Duration: 00:00:02.56, start: 0.000000, bitrate: 328 kb/s Stream #0.0: Video: flv, yuv420p, 352x288, 200 kb/s, 25 tbr, 1k tbn, 1k tbc Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 128 kb/s At least one output file must be specified From nicolas.george at normalesup.org Sun Jul 3 18:23:27 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 3 Jul 2011 18:23:27 +0200 Subject: [FFmpeg-user] Library Specific Options In-Reply-To: <4E108D2A.6010405@gmail.com> References: <4E105914.4040806@gmail.com> <20110703152445.GA11201@geppetto> <4E108D2A.6010405@gmail.com> Message-ID: <20110703162327.GA5152@phare.normalesup.org> Le quintidi 15 messidor, an CCXIX, Kyle a ?crit?: > I think it would be helpful to be able to pass any option directly > to the encoding library, allowing for all functions of that library > to be taken advantage of. > > If it is already implemented in FFmpeg for x264 perhaps it wouldn't > be very difficult to allow commands to be passed to any library? That is not simple as that: libraries have a tendency to use very varied ways of taking options: some will parse a single string, some will take a set of key-value strings pairs, some will use preprocessor constants and typed values, some will use field in a structure, etc. Therefore, it is not possible to just write a few lines of code to get it working for all libraries at once. Furthermore, if the library does not use strings (but rather constants or fields), new options must be added in the wrapper when the library gets them. That does not mean it is not possible, that means it requires work. Patch welcome. 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 matthkim at gmail.com Sun Jul 3 20:40:24 2011 From: matthkim at gmail.com (Matt Kim) Date: Sun, 3 Jul 2011 11:40:24 -0700 Subject: [FFmpeg-user] What is the fastest way to run cropdetect on specific frames in the video? Message-ID: Hello, I am trying to run the cropdetect function from the libavfilter library in the fastest way possible. And so I am trying to only take a collection of video frames throughout the video and run it through the cropdetect filter. So far I have tried two methods: 1. Run FFmpeg 4 different times in parallel at 4 different seektimes using the -ss option. - Unfortunately for me--the -ss option does not seem to work quickly, and so attempts to run through every frame before reaching the correct time. This causes the -ss option to be the bottleneck. This maybe be an issue with file itself and not FFmpeg. 2. Apply the "select" filter before "cropdetect". - This method is even slower than the previous one. I'm assuming that applying the select filter on each frame takes much time. *I have heard that moving the -ss option around may speed up the process--but unfortunately on all of the encoded files I am dealing with--this method does not seem to help. Does anyone have any advice on how I may be able to run cropdetect faster? Right now my analysis (using the parallel method) takes about 1 sec per 1 minute. This can cause problems though--as a 3hour long video will take about 3 minutes to analyze. Here is an example of how I am running my cropdetect filter: ffmpeg -i [input video] -vf "select='isnan(prev_selected_t)+gte(t-prev_selected_t,1)',cropdetect=24:2:0" -ss 600 -t 100 -an -y null.mp4 Any help would be greatly appreciated. Thanks, Matt Kim From d.maddau at tiscali.it Sun Jul 3 21:34:26 2011 From: d.maddau at tiscali.it (Gavino L. Maddau) Date: Sun, 3 Jul 2011 21:34:26 +0200 Subject: [FFmpeg-user] Suggestions for a PSNR-oriented coding Message-ID: Hi everyone. I have to make a comparison between these codecs: MPEG-1, MPEG-2, x264, vp8 applied to some of these video sequences (CIF format): http://trace.eas.asu.edu/yuv/ I'm going to use ffmpeg for the MPEG-1 and MPEG-2 coding, while for x264 and vp8 i'm going to use their own codecs. The metric i'm going to use is PSNR, even if it's not as image quality correlated as other metrics (i.e. SSIM). I looked for over the internet and i've found a good configuration for the x264 codec: x264 --tune psnr --keyint 500 --preset placebo, two pass I've to choose three different quality settings, which in the x264 case means switching the preset in three different ways, i.e. fast, slow and placebo. The only thing i've to care is obtain a PSNR value higher than 30 dB (i'm going to use the MSU VQM Tool for the measurements). I thought to translate the x264 configuration to a ffmpeg one and to use it for MPEG-1 and MPEG-2, but it doesn't seem a good idea, they are different codecs. Then i'd like if you could suggest me a good configuration for the MPEG-1 and MPEG-2 coding through ffmpeg, and a way to switch between the three quality level. For the vp8 configuration i'll obviously ask to the vp8 group, if you want to help me for that codec too i'd be very glad, but i don't want to annoy you with those extra deals. Thank you in advance. From sebastian.wieseler at hft-leipzig.de Mon Jul 4 01:40:44 2011 From: sebastian.wieseler at hft-leipzig.de (Sebastian Wieseler) Date: Mon, 04 Jul 2011 07:40:44 +0800 Subject: [FFmpeg-user] PGM to JPEG-LS identify error In-Reply-To: <20110629093703.wjnd6gr0sz2888c0@webmail.FH-Telekom-Leipzig.DE> References: <20110629093703.wjnd6gr0sz2888c0@webmail.FH-Telekom-Leipzig.DE> Message-ID: <4E10FDFC.3000806@hft-leipzig.de> Hello list, Is my question just too stupid or doesn't know anybody the answer of converting PGM to JPEG-LS? O.o Sebastian Wieseler From joolzg at btinternet.com Mon Jul 4 08:10:18 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Mon, 4 Jul 2011 07:10:18 +0100 (BST) Subject: [FFmpeg-user] Audio/Video sync issues Message-ID: <1309759818.50410.YahooMailNeo@web86406.mail.ird.yahoo.com> Been seeing a few problems with live screen transcoding based on a git pull from 28/06/2010 Anybody else see this, what we are seeing on differing channels list audio/video deviations and only way to fix is to restart the stream. joolz From Michael.Feurstein at wu.ac.at Mon Jul 4 09:02:42 2011 From: Michael.Feurstein at wu.ac.at (Feurstein, Michael) Date: Mon, 4 Jul 2011 09:02:42 +0200 Subject: [FFmpeg-user] dynamically sync audio and video Message-ID: Hi, I'm using ffmpeg 0.6.3 ("works with HTML5" as stated on ffmpeg.org) to merge a live video stream with a live audio stream and feed that stream to Apple's mediastreamsegmenter in order to do HTTP Live Streaming with HTML5. The merging works, the streaming works as well. Only thing I can't get a hold of is the audio and video synchronization. Sometimes it's in sync, then again it's off 3 to 7 seconds. In an earlier attempt I thought I managed to conquer the sync problem by measuring the time until the video stream was analyzed and shown on command line. This solution works but seems unreliable based on the running system. Is there a way to get the first presentation time stamps (pts) of video and audio? Based on that info I could resync the video. Any input appreciated Thanks -Michael From james.darnley at gmail.com Mon Jul 4 11:04:20 2011 From: james.darnley at gmail.com (James Darnley) Date: Mon, 4 Jul 2011 11:04:20 +0200 Subject: [FFmpeg-user] PGM to JPEG-LS identify error In-Reply-To: <20110629093703.wjnd6gr0sz2888c0@webmail.FH-Telekom-Leipzig.DE> References: <20110629093703.wjnd6gr0sz2888c0@webmail.FH-Telekom-Leipzig.DE> Message-ID: On 29/06/2011, Sebastian Wieseler wrote: > Hello dear mailinglist, > I've got a problem with the convertion from PGM to JPEG-LS. > > $ file barbara-pgm.pgm > barbara-pgm.pgm: Netpbm PGM "rawbits" image data > $ identify barbara-pgm.pgm > barbara-pgm.pgm PNM 720x576 720x576+0+0 8-bit Grayscale DirectClass 405KiB > 0.000u 0:00.000 > > $ ffmpeg -f image2 -vcodec pgm -pix_fmt gray16be -i barbara-pgm.pgm -f > image2 > -vcodec jpegls -pix_fmt gray16le barbara-ffmpeg-tojpegls.jls What does ffmpeg say when you do this? > $ file barbara-ffmpeg-tojpegls.jls > barbara-ffmpeg-tojpegls.jls: JPEG image data > $ identify barbara-ffmpeg-tojpegls.jls > identify: Unsupported marker type 0xf7 `barbara-ffmpeg-tojpegls.jls' @ > jpeg.c/EmitMessage/232. > > But it should look like (it's also JPEG-LS but not created with ffmpeg): > $ identify barbara-compressed.pgm > identify: Improper image header `barbara-compressed.pgm' @ > pnm.c/ReadPNMImage/297. > $ file barbara-compressed.pgm > barbara-compressed.pgm: data Isn't this another pgm? > I also played around with "gray16be" and "gray16le" but this doesn't work > out. Why are you using this at all when your other programs said it was 8 bit? > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Have you tried a newer version? From tte at cs.fau.de Mon Jul 4 16:43:18 2011 From: tte at cs.fau.de (tte at cs.fau.de) Date: Mon, 4 Jul 2011 16:43:18 +0200 Subject: [FFmpeg-user] auto aspect in ffmpeg encoding ? Message-ID: <20110704144318.GD1941@faui40p.informatik.uni-erlangen.de> I am trying to convert MPEG2 program stream files with ffmpeg. These often chance pixel aspect ratio (PAR) mid-stream between 4:3 and 16:9 (for example on change of programming or ads). With mpeg2 program streams all players (ffplay, mplayer, vlc) can automatically handle this just fine, eg: they automatically rescale according to current PAR. The problem is that i can not get ffmpeg to encode such files into mpeg4 or h264 and maintain autoamtically the right aspect ratio. Instead, it always seems to use the aspect ratio with which the mpeg2 file starts up. I have tried with mpeg4 and avi containers. I hae tried 0.7.1 and latest builds of ffmpeg, and all three players (ffplay, mplayer, vlc). Anybody knows how to get this to work ? Thanks Toerless From tim.nicholson at bbc.co.uk Mon Jul 4 16:44:25 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 04 Jul 2011 15:44:25 +0100 Subject: [FFmpeg-user] Use of "-color_range" Message-ID: <4E11D1C9.80706@bbc.co.uk> I am struggling to find any documentation on the use of this and searching the source was not very revealing, to my eye at least. Apart from the fact that it expects an I am none the wiser. I since it is a DEV function I was hoping I could use it to force ffmpeg to handle source material of a non standard range. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From rhkramer at gmail.com Mon Jul 4 17:46:09 2011 From: rhkramer at gmail.com (Randy Kramer) Date: Mon, 4 Jul 2011 11:46:09 -0400 Subject: [FFmpeg-user] A good place to ask a question about recording with multiple cameras? Message-ID: <201107041146.09699.rhkramer@gmail.com> I've been a subscriber here for awhile, but not an active reader lately. I have a subject I'd like to ask about--if this is not a good list to ask the question, maybe you can point me to a better list or suggest some keywords to use in a google search. I want to do something to record local presentations / meetings with multiple cameras and microphones during the presentation, then "edit" that down by choosing the feed from the various cameras into one final video. For example, I might have (unmanned) cameras aimed at the presenter, the projection screen where he might present visual aids, and maybe one or more locations in the audience where someone could stand and ask a question into a microphone. (Another microphone would be in front of the presenter.) I'd like all of those streams (video and audio) to go into one computer for recording (as separate streams), and, ideally, have that same computer let me edit those streams into one output stream, by selecting different camera views and audio feeds at different times (sort of like I imagine the director of a TV show selects different feeds at different times). Ideally, I'd like an easy means to go back if I flub a selection. As far as the final resolution, something like the quality of NTSC or PAL video would be adequate. I don't that I'd want to aim for anything higher, at least for the present, both because of the extra bandwidth / storage and because of the potential cost of cameras. I envision acquiring some typical VHS or digital camcorders with direct video and audio outputs at things like yardsales as my initial cameras. I'd like means to keep all the feeds in sync--maybe by doing something like having all the cameras on, and then click on something to start recording the feed from all cameras and microphones at once. (I guess there are sort of sync signals or frame counts available somehow that might help with that.) I'm looking for a really low budget operation--Linux based free or open source software, garage sale cameras, microphones, and lights, etc. Comments? Suggestions on software, or better lists to ask on? Thanks! Randy Kramer From stefan at konink.de Mon Jul 4 18:24:01 2011 From: stefan at konink.de (Stefan de Konink) Date: Mon, 04 Jul 2011 18:24:01 +0200 Subject: [FFmpeg-user] A good place to ask a question about recording with multiple cameras? In-Reply-To: <201107041146.09699.rhkramer@gmail.com> References: <201107041146.09699.rhkramer@gmail.com> Message-ID: <4E11E921.9040604@konink.de> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Op 04-07-11 17:46, Randy Kramer schreef: > I'm looking for a really low budget operation--Linux based free or open > source software, garage sale cameras, microphones, and lights, etc. > > Comments? Suggestions on software, or better lists to ask on? Stefan -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEAREKAAYFAk4R6SEACgkQYH1+F2Rqwn2M+ACdHMGp3lbIHHHnW92mrWK314yO FqsAoI1Gz7yndsL2d2Q7czOJ7lLAXWDC =xcOP -----END PGP SIGNATURE----- From dev at rarevision.com Mon Jul 4 19:13:10 2011 From: dev at rarevision.com (Thomas Worth) Date: Mon, 4 Jul 2011 10:13:10 -0700 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E11D1C9.80706@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> Message-ID: On Mon, Jul 4, 2011 at 7:44 AM, Tim Nicholson wrote: > I am struggling to find any documentation on the use of this and searching > the source was not very revealing, to my eye at least. > > Apart from the fact that it expects an I am none the wiser. > > I since it is a DEV function I was hoping I could use it to force ffmpeg to > handle source material of a non standard range. Regarding this and x264 encoding: I had some full range 4:2:2 material I was trying to encode with x264 a while back and found that if I forced the "yuvj420p" pix format, FFmpeg would pass full range values to x264. This was using x264 in pipe mode, but I don't see why it wouldn't work with libx264. I would get very different results when changing yuv420p to yuvj420p. From rhkramer at gmail.com Mon Jul 4 20:39:55 2011 From: rhkramer at gmail.com (Randy Kramer) Date: Mon, 4 Jul 2011 14:39:55 -0400 Subject: [FFmpeg-user] =?iso-8859-1?q?A_good_place_to_ask_a_question_about?= =?iso-8859-1?q?_recording_with=09multiple_cameras=3F?= In-Reply-To: <4E11E921.9040604@konink.de> References: <201107041146.09699.rhkramer@gmail.com> <4E11E921.9040604@konink.de> Message-ID: <201107041439.55644.rhkramer@gmail.com> Stefan, Thanks! I'm digging into it--I'll join the mail list, also. It looks like almost exactly what the doctor ordered (well, except for recording in advance and then editing, but worst case, I can record separate streams even to tape and edit later. Randy Kramer On Monday 04 July 2011 12:24:01 pm Stefan de Konink wrote: > From mark at mdsh.com Mon Jul 4 23:01:34 2011 From: mark at mdsh.com (Mark Himsley) Date: Mon, 04 Jul 2011 22:01:34 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E11D1C9.80706@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> Message-ID: <4E122A2E.5040009@mdsh.com> On 04/07/2011 15:44, Tim Nicholson wrote: > I am struggling to find any documentation on the use of this and > searching the source was not very revealing, to my eye at least. > > Apart from the fact that it expects an I am none the wiser. > > I since it is a DEV function I was hoping I could use it to force ffmpeg > to handle source material of a non standard range. Hi Tim, The source says: 0 == unspecified 1 == "MPEG" range 2 == "JPEG" range Therefore, I'd expect 1 to be "broadcast" 16-235, and 2 to be "full" 0-255. I haven't tested this, just grepped through the source. My flip camera records 0-255 videos but flags the h.264 as 16-235 (or, perhaps I could word that better as the camera omits to flag the h.264 as using the 0-255 range). It would be really nice if this option in ffmpeg could allow correct that - an even better if ffmpeg could then scale my 0-255 media to 16-235 for direct import into "broadcast" infrastructure. -- Mark (from home) From igor.shprukh at neo.co.il Mon Jul 4 08:30:21 2011 From: igor.shprukh at neo.co.il (Igor Shprukh) Date: Mon, 4 Jul 2011 06:30:21 +0000 Subject: [FFmpeg-user] Hello, I have a question regarding global headers Message-ID: <0D9F715A03A5884784DC7517C15EA1B9B886@DC1.neo.local> When I try to stream to rtsp from a network camera with audio and video I get this error "Could not write header for output file #0 (incorrect codec parameters ?)" This is the ffmpeg command: ffmpeg -i rtsp://xxx:xxx@ 192.168.253.139:80/live.sdp?http -vcodec copy -acodec copy -f rtp rtp://127.0.0.1:40000 When the video codec is mpeg4 and audio codec is aac. Also, this works when trying to record to file from this network camera. Thanks for any help ! From lou at lrcd.com Tue Jul 5 00:02:16 2011 From: lou at lrcd.com (Lou) Date: Mon, 4 Jul 2011 14:02:16 -0800 Subject: [FFmpeg-user] Encoding FLV: video plays back slow relative to audio, etc. In-Reply-To: References: Message-ID: <20110704140216.4174db79@lrcd.com> On Sun, 3 Jul 2011 13:29:10 -0400 Dave Kleinschmidt wrote: > Hi all, I'm having a bit of trouble with encoding .avi files as .flv > for flowplayer. I know this is a bit of a black art, and I've done > quite a bit of looking around, but haven't seen much of anything. > The symptoms: the audio plays back fine, but the video plays back at > a slightly slower rate. In addition, the onFinish() events fires > really late, a second or two after the video has finished. > > I suspect that this is a problem with how I encoded my .flv file, > since the Flowplayer sample .flv plays fine, with no lag, and the > onFinish() event fires essentially immediately after the last frame. > > Any suggestions would be very much appreciated. Unfortunately, I > don't have a test site to link to, but here is a link to the > original .avi file: http://db.tt/fpLLGSP > > and here is the .flv: http://db.tt/CnjPIrI > > Here is the ffmpeg call and its output for the actual conversion: > > dkleinschmidt$ ffmpeg -y -i videos/VbA1.avi -ab 128000 -vcodec flv -r > 25 videos/VbA1.flv Is there a reason why you're changing the frame rate? Secondly, the encoder called "flv" in FFmpeg is very poor compared to x264, and since H.264 can work in the flv container just fine, and you already have it enabled apparently, I don't see any reason not to use x264 instead: ffmpeg -i input -vcodec libx264 -preset medium -crf 26 -threads 0 \ -acodec libmp3lame -aq 5 output.flv You may then have to run this output through flvtool++, flvtool2, flvmeta, or any other similar tool. I'm not sure if this step is necessary for flowplayer these days, but it's something to keep in mind if it has trouble with the output from FFmpeg (such as incorrectly displaying the duration for example). From coniophora at gmail.com Tue Jul 5 01:29:58 2011 From: coniophora at gmail.com (Jim Worrall) Date: Mon, 4 Jul 2011 17:29:58 -0600 Subject: [FFmpeg-user] -fs and -b Message-ID: <8F41A09C-B69F-4B59-B192-DFEC60498BE8@gmail.com> If you set both -fs to limit file size and -b to limit bitrate, does one take precedence over the other, or does the one that leads to the smallest file and lowest bitrate get applied? I'm using libx264. Jim From etienne.buira.lists at free.fr Tue Jul 5 01:36:01 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Tue, 5 Jul 2011 01:36:01 +0200 Subject: [FFmpeg-user] -fs and -b In-Reply-To: <8F41A09C-B69F-4B59-B192-DFEC60498BE8@gmail.com> References: <8F41A09C-B69F-4B59-B192-DFEC60498BE8@gmail.com> Message-ID: <20110704233601.GG16936@epicure.lazyet.homelinux.net> On Mon, Jul 04, 2011 at 05:29:58PM -0600, Jim Worrall wrote: > If you set both -fs to limit file size and -b to limit bitrate, does one take precedence over the other, or does the one that leads to the smallest file and lowest bitrate get applied? I'm using libx264. > Jim Hi. -fs is not intented to be a target file size. If you specify both -fs and -b, it will encode at bitrate b, and stop when destination file haves the -fs size (then, truncating if this condition happens). PS: please cut your lines. From coniophora at gmail.com Tue Jul 5 03:20:22 2011 From: coniophora at gmail.com (Jim Worrall) Date: Mon, 4 Jul 2011 19:20:22 -0600 Subject: [FFmpeg-user] -fs and -b In-Reply-To: <20110704233601.GG16936@epicure.lazyet.homelinux.net> References: <8F41A09C-B69F-4B59-B192-DFEC60498BE8@gmail.com> <20110704233601.GG16936@epicure.lazyet.homelinux.net> Message-ID: <6193D666-79C8-477C-BAAC-F10BE1C73A55@gmail.com> On Jul 4, 2011, at 5:36 PM, Etienne Buira wrote: On Mon, Jul 04, 2011 at 05:29:58PM -0600, Jim Worrall wrote: > If you set both -fs to limit file size and -b to limit bitrate, does one take precedence over the other, or does the one that leads to the smallest file and lowest bitrate get applied? I'm using libx264. > Jim Hi. -fs is not intented to be a target file size. If you specify both -fs and -b, it will encode at bitrate b, and stop when destination file haves the -fs size (then, truncating if this condition happens). PS: please cut your lines. Oh, I had not understood that. Good to know. Thank you. From Sebastian.Wieseler at hft-leipzig.de Tue Jul 5 03:38:35 2011 From: Sebastian.Wieseler at hft-leipzig.de (Sebastian Wieseler) Date: Tue, 5 Jul 2011 03:38:35 +0200 Subject: [FFmpeg-user] PGM to JPEG-LS identify error In-Reply-To: References: <20110629093703.wjnd6gr0sz2888c0@webmail.FH-Telekom-Leipzig.DE> Message-ID: <20110705033835.7gte5mcrme0cokok@webmail.FH-Telekom-Leipzig.DE> Hello! Quoting James Darnley : > On 29/06/2011, Sebastian Wieseler wrote: >> $ ffmpeg -f image2 -vcodec pgm -pix_fmt gray16be -i barbara-pgm.pgm -f >> image2 >> -vcodec jpegls -pix_fmt gray16le barbara-ffmpeg-tojpegls.jls > > What does ffmpeg say when you do this? Okay. Yesterday I tried something with the latest git-HEAD: sebastian at sebastian-desktop:~/Documents$ ffmpeg -f image2 -vcodec pgm -i barbara-pgm.pgm -f image2 -pix_fmt gray16le -vcodec jpegls barbara-from_pgm_to_jls.jls ffmpeg version 0.7, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 4 2011 10:40:30 with gcc 4.4.3 configuration: libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 24. 1 / 2. 24. 1 libswscale 2. 0. 0 / 2. 0. 0 Input #0, image2, from 'barbara-pgm.pgm': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0.0: Video: pgm, gray, 720x576, 25 tbr, 25 tbn, 25 tbc [buffer @ 0x984c4a0] w:720 h:576 pixfmt:gray tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x984bde0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x984d0c0] w:720 h:576 fmt:gray -> w:720 h:576 fmt:gray16le flags:0x4 Output #0, image2, to 'barbara-from_pgm_to_jls.jls': Metadata: encoder : Lavf53.5.0 Stream #0.0: Video: jpegls, gray16le, 720x576, q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, ? for help frame= 1 fps= 0 q=0.0 Lsize= -0kB time=00:00:00.04 bitrate= -4.4kbits/s video:660kB audio:0kB global headers:0kB muxing overhead -100.003254% >> $ file barbara-compressed.pgm >> barbara-compressed.pgm: data > > Isn't this another pgm? No sorry. It is another JPEG-LS file - "compressed". Sorry, the extension isn't clear enough - it's JEPG-LS. >> I also played around with "gray16be" and "gray16le" but this doesn't work >> out. > > Why are you using this at all when your other programs said it was 8 bit? So should I use gray8a instead? Incompatible pixel format 'gray8a' for codec 'jpegls', auto-selecting format 'bgr24' And this does not work either! > >> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 > > Have you tried a newer version? Yesterday, git-HEAD, yes. Do be more verbose: I have an university project with a JPEG-LS implementation (en/decrypt) which is only able to work with gray (pgm) images currently. So I tried to interchange with ffmpeg, but it seems incompatible at all. Encode a pgm to jpeg-ls with ffmpeg and tried to decode it back with my source code from university, it failed all the time. So my current tasks was actually, to implement color images (ppm), but I do not know how. ;( So is this actually a ffmpeg bug, or simply the "they do not work together" note? :/ The output from my university project: sebastian at sebastian-desktop:~/Documents$ JPEG-LS2fast/d_locom -i barbara-from_pgm_to_jls.jls -o barbara-from_jls_to_pgm.pgm Decoding, image decoder JPEG-LS v05/2001 Input (d_JPEG-LS): barbara-from_pgm_to_jls.jls Output (d_JPEG-LS): barbara-from_jls_to_pgm.pgm **Not a JPEG-LSm-Stream!** T1=127, T2=224, T3=776 LIMIT=31511691 RESET=1040 Dauer 0.000 Sekunden ready. From tim.nicholson at bbc.co.uk Tue Jul 5 08:33:53 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 05 Jul 2011 07:33:53 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: References: <4E11D1C9.80706@bbc.co.uk> Message-ID: <4E12B051.7010909@bbc.co.uk> On 04/07/11 18:13, Thomas Worth wrote: > On Mon, Jul 4, 2011 at 7:44 AM, Tim Nicholson wrote: >> I am struggling to find any documentation on the use of this and searching >> the source was not very revealing, to my eye at least. >> >> Apart from the fact that it expects an I am none the wiser. >> >> I since it is a DEV function I was hoping I could use it to force ffmpeg to >> handle source material of a non standard range. > > Regarding this and x264 encoding: I had some full range 4:2:2 material > I was trying to encode with x264 a while back and found that if I > forced the "yuvj420p" pix format, FFmpeg would pass full range values > to x264. This was using x264 in pipe mode, but I don't see why it > wouldn't work with libx264. I would get very different results when > changing yuv420p to yuvj420p. Quite! Except that if you look at pixfmt.h it says (line 74) "PIX_FMT_YUVJ420P, ///< planar YUV 4:2:0, 12bpp, full scale (JPEG), deprecated in favor of PIX_FMT_YUV420P and setting color_range" Which begs the original question. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From tim.nicholson at bbc.co.uk Tue Jul 5 08:43:01 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 05 Jul 2011 07:43:01 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E122A2E.5040009@mdsh.com> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> Message-ID: <4E12B275.2050603@bbc.co.uk> On 04/07/11 22:01, Mark Himsley wrote: > On 04/07/2011 15:44, Tim Nicholson wrote: >> I am struggling to find any documentation on the use of this and >> searching the source was not very revealing, to my eye at least. >> >> Apart from the fact that it expects an I am none the wiser. >> >> I since it is a DEV function I was hoping I could use it to force ffmpeg >> to handle source material of a non standard range. > > Hi Tim, > > The source says: > > 0 == unspecified > 1 == "MPEG" range > 2 == "JPEG" range > > Therefore, I'd expect 1 to be "broadcast" 16-235, and 2 to be "full" > 0-255. I haven't tested this, just grepped through the source. > Bother! Missed that in my "find", which file was that in? I presume that you are presuming MPEG => yuv=> 16-235 and JPEG => RGB =>0-255, which is a bit woolly for such an important parameter. > My flip camera records 0-255 videos but flags the h.264 as 16-235 (or, > perhaps I could word that better as the camera omits to flag the h.264 > as using the 0-255 range). It would be really nice if this option in > ffmpeg could allow correct that - an even better if ffmpeg could then > scale my 0-255 media to 16-235 for direct import into "broadcast" > infrastructure. > Quite. But presumably setting the flag one way for the incoming and the other way for the output would sort that.... Mind you there is a lot of "broadcast" kit making things to the wrong spec. I know of one major application that outputs V210 YUV quicktimes in full range, and another that outputs RGB dpx's to reduced range...... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From dev at rarevision.com Tue Jul 5 08:49:15 2011 From: dev at rarevision.com (Thomas Worth) Date: Mon, 4 Jul 2011 23:49:15 -0700 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E12B275.2050603@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> Message-ID: > Mind you there is a lot of "broadcast" kit making things to the wrong spec. > I know of one major application that outputs V210 YUV quicktimes in full > range, and another that outputs RGB dpx's to reduced range...... Blackmagic Design's DPX handling is a complete mess, if that's what you're referring to. It's something that can't be fixed, either. Their codecs ONLY handle broadcast range. That means DPX is always scaled from broadcast to full range. If you attempt to capture full range using a BM card, BM's software will clip to broadcast range, then scale to full range for DPX output. As I said, complete mess. The only way around it is to write your own capture app using their SDK. From tim.nicholson at bbc.co.uk Tue Jul 5 09:00:24 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 05 Jul 2011 08:00:24 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> Message-ID: <4E12B688.40002@bbc.co.uk> On 05/07/11 07:49, Thomas Worth wrote: >> Mind you there is a lot of "broadcast" kit making things to the wrong spec. >> I know of one major application that outputs V210 YUV quicktimes in full >> range, and another that outputs RGB dpx's to reduced range...... > > Blackmagic Design's DPX handling is a complete mess, if that's what > you're referring to. It's something that can't be fixed, either. Their > codecs ONLY handle broadcast range. That means DPX is always scaled > from broadcast to full range. If you attempt to capture full range > using a BM card, BM's software will clip to broadcast range, then > scale to full range for DPX output. As I said, complete mess. The only > way around it is to write your own capture app using their SDK. Not directly, although if that is the hardware they are using it may help account for it. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From dev at rarevision.com Tue Jul 5 09:11:47 2011 From: dev at rarevision.com (Thomas Worth) Date: Tue, 5 Jul 2011 00:11:47 -0700 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E12B688.40002@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E12B688.40002@bbc.co.uk> Message-ID: On Tue, Jul 5, 2011 at 12:00 AM, Tim Nicholson wrote: > On 05/07/11 07:49, Thomas Worth wrote: >>> >>> Mind you there is a lot of "broadcast" kit making things to the wrong >>> spec. >>> I know of one major application that outputs V210 YUV quicktimes in full >>> range, and another that outputs RGB dpx's to reduced range...... >> >> Blackmagic Design's DPX handling is a complete mess, if that's what >> you're referring to. It's something that can't be fixed, either. Their >> codecs ONLY handle broadcast range. That means DPX is always scaled >> from broadcast to full range. If you attempt to capture full range >> using a BM card, BM's software will clip to broadcast range, then >> scale to full range for DPX output. As I said, complete mess. The only >> way around it is to write your own capture app using their SDK. > > Not directly, although if that is the hardware they are using it may help > account for it. What is listed in the "creator" field of one of the DPX files? From dev at rarevision.com Tue Jul 5 09:30:50 2011 From: dev at rarevision.com (Thomas Worth) Date: Tue, 5 Jul 2011 00:30:50 -0700 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E12B051.7010909@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> <4E12B051.7010909@bbc.co.uk> Message-ID: On Mon, Jul 4, 2011 at 11:33 PM, Tim Nicholson wrote: > On 04/07/11 18:13, Thomas Worth wrote: >> >> On Mon, Jul 4, 2011 at 7:44 AM, Tim Nicholson >> ?wrote: >>> >>> I am struggling to find any documentation on the use of this and >>> searching >>> the source was not very revealing, to my eye at least. >>> >>> Apart from the fact that it expects an ?I am none the wiser. >>> >>> I since it is a DEV function I was hoping I could use it to force ffmpeg >>> to >>> handle source material of a non standard range. >> >> Regarding this and x264 encoding: I had some full range 4:2:2 material >> I was trying to encode with x264 a while back and found that if I >> forced the "yuvj420p" pix format, FFmpeg would pass full range values >> to x264. This was using x264 in pipe mode, but I don't see why it >> wouldn't work with libx264. I would get very different results when >> changing yuv420p to yuvj420p. > > Quite! Except that if you look at pixfmt.h it says (line 74) > > "PIX_FMT_YUVJ420P, ?///< planar YUV 4:2:0, 12bpp, full scale (JPEG), > deprecated in favor of PIX_FMT_YUV420P and setting color_range" > > Which begs the original question. Does this help? From libavcodec/h264.c: switch (h->sps.bit_depth_luma) { case 9 : s->avctx->pix_fmt = CHROMA444 ? PIX_FMT_YUV444P9 : PIX_FMT_YUV420P9; break; case 10 : s->avctx->pix_fmt = CHROMA444 ? PIX_FMT_YUV444P10 : PIX_FMT_YUV420P10; break; default: if (CHROMA444){ s->avctx->pix_fmt = s->avctx->color_range == AVCOL_RANGE_JPEG ? PIX_FMT_YUVJ444P : PIX_FMT_YUV444P; }else{ s->avctx->pix_fmt = s->avctx->get_format(s->avctx, s->avctx->codec->pix_fmts ? s->avctx->codec->pix_fmts : s->avctx->color_range == AVCOL_RANGE_JPEG ? hwaccel_pixfmt_list_h264_jpeg_420 : ff_hwaccel_pixfmt_list_420); } } From tim.nicholson at bbc.co.uk Tue Jul 5 09:47:57 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 05 Jul 2011 08:47:57 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E12B688.40002@bbc.co.uk> Message-ID: <4E12C1AD.1090000@bbc.co.uk> On 05/07/11 08:11, Thomas Worth wrote: > On Tue, Jul 5, 2011 at 12:00 AM, Tim Nicholson wrote: >> On 05/07/11 07:49, Thomas Worth wrote: >>>> >>>> Mind you there is a lot of "broadcast" kit making things to the wrong >>>> spec. >>>> I know of one major application that outputs V210 YUV quicktimes in full >>>> range, and another that outputs RGB dpx's to reduced range...... > [...] > What is listed in the "creator" field of one of the DPX files? dpx:file.creator: nucoda and it claims "Format: DPX (SMPTE 268M-2003 (DPX 2.0))" -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From tim.nicholson at bbc.co.uk Tue Jul 5 09:50:05 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 05 Jul 2011 08:50:05 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: References: <4E11D1C9.80706@bbc.co.uk> <4E12B051.7010909@bbc.co.uk> Message-ID: <4E12C22D.3050307@bbc.co.uk> On 05/07/11 08:30, Thomas Worth wrote: > On Mon, Jul 4, 2011 at 11:33 PM, Tim Nicholson wrote: >> On 04/07/11 18:13, Thomas Worth wrote: >>> >>> On Mon, Jul 4, 2011 at 7:44 AM, Tim Nicholson >>> wrote: >>>> >>>> I am struggling to find any documentation on the use of this and >>>> searching >>>> the source was not very revealing, to my eye at least. >>>> >>>> Apart from the fact that it expects an I am none the wiser. >>>> >>>> I since it is a DEV function I was hoping I could use it to force ffmpeg >>>> to >>>> handle source material of a non standard range. >>> >>> Regarding this and x264 encoding: I had some full range 4:2:2 material >>> I was trying to encode with x264 a while back and found that if I >>> forced the "yuvj420p" pix format, FFmpeg would pass full range values >>> to x264. This was using x264 in pipe mode, but I don't see why it >>> wouldn't work with libx264. I would get very different results when >>> changing yuv420p to yuvj420p. >> >> Quite! Except that if you look at pixfmt.h it says (line 74) >> >> "PIX_FMT_YUVJ420P, ///< planar YUV 4:2:0, 12bpp, full scale (JPEG), >> deprecated in favor of PIX_FMT_YUV420P and setting color_range" >> >> Which begs the original question. > > Does this help? From libavcodec/h264.c: > [...] I think Marks extract was a little more straightforward..... :) -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From dev at rarevision.com Tue Jul 5 10:01:23 2011 From: dev at rarevision.com (Thomas Worth) Date: Tue, 5 Jul 2011 01:01:23 -0700 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E12C22D.3050307@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> <4E12B051.7010909@bbc.co.uk> <4E12C22D.3050307@bbc.co.uk> Message-ID: On Tue, Jul 5, 2011 at 12:50 AM, Tim Nicholson wrote: > On 05/07/11 08:30, Thomas Worth wrote: >> >> On Mon, Jul 4, 2011 at 11:33 PM, Tim Nicholson >> ?wrote: >>> >>> On 04/07/11 18:13, Thomas Worth wrote: >>>> >>>> On Mon, Jul 4, 2011 at 7:44 AM, Tim Nicholson >>>> ?wrote: >>>>> >>>>> I am struggling to find any documentation on the use of this and >>>>> searching >>>>> the source was not very revealing, to my eye at least. >>>>> >>>>> Apart from the fact that it expects an ? ?I am none the wiser. >>>>> >>>>> I since it is a DEV function I was hoping I could use it to force >>>>> ffmpeg >>>>> to >>>>> handle source material of a non standard range. >>>> >>>> Regarding this and x264 encoding: I had some full range 4:2:2 material >>>> I was trying to encode with x264 a while back and found that if I >>>> forced the "yuvj420p" pix format, FFmpeg would pass full range values >>>> to x264. This was using x264 in pipe mode, but I don't see why it >>>> wouldn't work with libx264. I would get very different results when >>>> changing yuv420p to yuvj420p. >>> >>> Quite! Except that if you look at pixfmt.h it says (line 74) >>> >>> "PIX_FMT_YUVJ420P, ?///< ?planar YUV 4:2:0, 12bpp, full scale (JPEG), >>> deprecated in favor of PIX_FMT_YUV420P and setting color_range" >>> >>> Which begs the original question. >> >> Does this help? From libavcodec/h264.c: >> [...] > > I think Marks extract was a little more straightforward..... :) Quite. ;-) From pssturges at gmail.com Tue Jul 5 12:54:00 2011 From: pssturges at gmail.com (pssturges) Date: Tue, 5 Jul 2011 03:54:00 -0700 (PDT) Subject: [FFmpeg-user] Interlaced avi h264 to mp4 Message-ID: <1309863240275-3645627.post@n4.nabble.com> Hi, I have many avi's that are mostly encoded from pal dvd's. They were encoded using ffmpeg, although I don't recall the precise command I used as it was some time ago. I don't think they were de-interlaced during encoding. The video is encoded as h264 with the original ac3 soundtrack. I have been playing them very effectively through xbmc on my HDTV for some time. I would now like to make them iOS compatible by putting them in mp4 containers and adding an aac audio track as the first audio track. I'm trying to avoid having to re-encode so that it can be done quickly and without loss of video quality. So far I've come up with the following ffmpeg command: ffmpeg -i video.avi -vcodec copy -acodec libfaac -ac 2 -ab 160k video.m4v -acodec copy -newaudio This produces a valid mp4 file, however when watched on an ipad, the video shakes and wobbles when there is movement. When watched on xbmc, the effect is far less severe. When xbmc de-interlacing is set to auto, movement somehow looks 'harsh'. When I set it to bob, it looks great. I have tried demuxing and remuxing with mp4box and the video plays perfectly on both the ipad and xbmc, but the audio is always out of sync. Firstly, is there a way to confirm if the videos are in fact, interlaced? 'My Theory' My thought at the moment is that there should be some sort of flag in the MP4 container or the video stream specifying that the video is interlaced so that the player knows to handle it correctly. I suspect at the moment this flag isn't being set correctly. Does this sound like it could be the issue? If this is the problem, can it be corrected during the conversion or after by modifying the mp4? Or even by rectifying the original avi? Perhaps the problem is totally different? Any help much appreciated, Phil -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4-tp3645627p3645627.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bahamutzero8825 at gmail.com Tue Jul 5 13:25:51 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Tue, 05 Jul 2011 06:25:51 -0500 Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <1309863240275-3645627.post@n4.nabble.com> References: <1309863240275-3645627.post@n4.nabble.com> Message-ID: <4E12F4BF.6050900@gmail.com> On 2011.07.05 05:54 AM, pssturges wrote: > I have tried > demuxing and remuxing with mp4box and the video plays perfectly on both the > ipad and xbmc, but the audio is always out of sync. Are you sure you set the right fps value? MP4Box assumes 25fps if you don't specify (you might need 50fps). MP4Box doesn't typically give me issues, but then again, I don't think I've ever tried to mux an interlaced stream with it. > Firstly, is there a way to confirm if the videos are in fact, interlaced? MediaInfo. > 'My Theory' > My thought at the moment is that there should be some sort of flag in the > MP4 container or the video stream specifying that the video is interlaced so > that the player knows to handle it correctly. I suspect at the moment this > flag isn't being set correctly. Does this sound like it could be the issue? There isn't much reason for a container to hold this information. The video stream itself has this flag. > If this is the problem, can it be corrected during the conversion or after > by modifying the mp4? It just sounds like the video is interlaced. Hardware players (like the iPad) can act really weird when they get something they don't expect. Could be the people who wrote the iPad's video player decided interlaced AVC was too uncommon and decided not to implement deinterlacing for AVC. Sounds odd, but you'd be surprised how many hardware players support certain compression standards and certain containers, but only certain combinations. From pssturges at gmail.com Tue Jul 5 14:26:22 2011 From: pssturges at gmail.com (pssturges) Date: Tue, 5 Jul 2011 05:26:22 -0700 (PDT) Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <4E12F4BF.6050900@gmail.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> Message-ID: <1309868782027-3645804.post@n4.nabble.com> My original encoding of these avi's definitely has some issues. As I said they play fine, but it's definately causing problems for me now. Every tool I use, says they are 29.97 fps. XBMC plays them @ 25 fps and the audio stays in sync. If I remux them at 25fps sync varies anything up to a few seconds. If I mux them at 29.97 sync is WAY out. After demuxing the streams, closer examination shows that the duration of the streams can be anything up to 6 seconds different. I tried doing calculations based on the total number of frames of the video and also the duration of the audio to come up with a new framerate figure and muxed using that. Audio would be in sync for parts but not others. I have also tried adding delay. All of this done with mp4box. And always the audio would not sync, but the video always played correctly on the ipad. If the flag is held in the stream not the container, then it seems mp4box is setting it and ffmpeg is not (at least with the command as I have it). I have read, but not confirmed that ipad does not handle interlacing. It's handling my mp4boxed video so I'm still not 100% certain that interlacing is the problem. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4-tp3645627p3645804.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bahamutzero8825 at gmail.com Tue Jul 5 15:01:27 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Tue, 05 Jul 2011 08:01:27 -0500 Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <1309868782027-3645804.post@n4.nabble.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> Message-ID: <4E130B27.2080808@gmail.com> On 2011.07.05 07:26 AM, pssturges wrote: > My original encoding of these avi's definitely has some issues. As I said > they play fine, but it's definately causing problems for me now. Every tool > I use, says they are 29.97 fps. XBMC plays them @ 25 fps and the audio stays > in sync. If I remux them at 25fps sync varies anything up to a few seconds. > If I mux them at 29.97 sync is WAY out. After demuxing the streams, closer > examination shows that the duration of the streams can be anything up to 6 > seconds different. I tried doing calculations based on the total number of > frames of the video and also the duration of the audio to come up with a new > framerate figure and muxed using that. Audio would be in sync for parts but > not others. Sounds like they're 25fps and there are glitches that throw sync off. Demux it with tsMuxeR (or load the raw video stream with it), making sure "Add picture timing info" and "Continually insert SPS/PPS" are checked (I'm not sure where you can get tsMuxeR if you don't already have it, though; the official website has no links to it anymore). I always run my newly encoded video streams through it just in case there were glitches in the source since it has fixed sync issues on several occasions. > If the flag is held in the stream not the container, then it seems mp4box is > setting it and ffmpeg is not (at least with the command as I have it). AFAIK, MP4Box does not alter the video stream in any way (and it certainly does not touch this flag). From mark at mdsh.com Tue Jul 5 15:59:17 2011 From: mark at mdsh.com (Mark Himsley) Date: Tue, 05 Jul 2011 14:59:17 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E12B275.2050603@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> Message-ID: <4E1318B5.3020500@mdsh.com> On 05/07/11 07:43, Tim Nicholson wrote: > On 04/07/11 22:01, Mark Himsley wrote: >> On 04/07/2011 15:44, Tim Nicholson wrote: >>> I am struggling to find any documentation on the use of this and >>> searching the source was not very revealing, to my eye at least. >>> >>> Apart from the fact that it expects an I am none the wiser. >>> >>> I since it is a DEV function I was hoping I could use it to force ffmpeg >>> to handle source material of a non standard range. >> >> Hi Tim, >> >> The source says: >> >> 0 == unspecified >> 1 == "MPEG" range >> 2 == "JPEG" range >> > > Therefore, I'd expect 1 to be "broadcast" 16-235, and 2 to be "full" >> 0-255. I haven't tested this, just grepped through the source. >> > > > Bother! Missed that in my "find", which file was that in? ./libavcodec/avcodec.h line 502 enum AVColorRange{ AVCOL_RANGE_UNSPECIFIED=0, AVCOL_RANGE_MPEG =1, ///< the normal 219*2^(n-8) "MPEG" YUV ranges AVCOL_RANGE_JPEG =2, ///< the normal 2^n-1 "JPEG" YUV ranges AVCOL_RANGE_NB , ///< Not part of ABI }; > I presume that you are presuming MPEG => yuv=> 16-235 and JPEG => RGB > =>0-255, which is a bit woolly for such an important parameter. No. JPEG does not mandate RGB. >> My flip camera records 0-255 videos but flags the h.264 as 16-235 (or, >> perhaps I could word that better as the camera omits to flag the h.264 >> as using the 0-255 range). It would be really nice if this option in >> ffmpeg could allow correct that - an even better if ffmpeg could then >> scale my 0-255 media to 16-235 for direct import into "broadcast" >> infrastructure. >> > > Quite. But presumably setting the flag one way for the incoming and the > other way for the output would sort that.... > > Mind you there is a lot of "broadcast" kit making things to the wrong > spec. I know of one major application that outputs V210 YUV quicktimes > in full range, and another that outputs RGB dpx's to reduced range...... D'oh! I'll have a play with -color_range and let you know my thoughts. -- Mark From tim.nicholson at bbc.co.uk Tue Jul 5 16:19:20 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 05 Jul 2011 15:19:20 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E1318B5.3020500@mdsh.com> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E1318B5.3020500@mdsh.com> Message-ID: <4E131D68.7070407@bbc.co.uk> On 05/07/11 14:59, Mark Himsley wrote: > On 05/07/11 07:43, Tim Nicholson wrote: >> On 04/07/11 22:01, Mark Himsley wrote: [...] >>> Hi Tim, >>> >>> The source says: >>> >>> 0 == unspecified >>> 1 == "MPEG" range >>> 2 == "JPEG" range >>> >> > Therefore, I'd expect 1 to be "broadcast" 16-235, and 2 to be "full" >>> 0-255. I haven't tested this, just grepped through the source. >>> >> >> >> Bother! Missed that in my "find", which file was that in? > > ./libavcodec/avcodec.h line 502 > > enum AVColorRange{ > AVCOL_RANGE_UNSPECIFIED=0, > AVCOL_RANGE_MPEG =1, ///< the normal 219*2^(n-8) "MPEG" YUV ranges > AVCOL_RANGE_JPEG =2, ///< the normal 2^n-1 "JPEG" YUV ranges > AVCOL_RANGE_NB , ///< Not part of ABI > }; > Ahh, you see color_range transmogrifying into ColorRange threw me off the scent... > >> I presume that you are presuming MPEG => yuv=> 16-235 and JPEG => RGB >> =>0-255, which is a bit woolly for such an important parameter. > > No. JPEG does not mandate RGB. > That's what I mean by woolley, its presumed in this case when it would be far better to use a more rigorous definition. :( -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From n5xwb at comcast.net Tue Jul 5 18:21:53 2011 From: n5xwb at comcast.net (Donn Washburn) Date: Tue, 05 Jul 2011 11:21:53 -0500 Subject: [FFmpeg-user] several git version of ffmpeg Message-ID: <4E133A21.4070009@comcast.net> Hello Group; I have been trying to complie a version of OpenSceneGraph for Flightgear. The cmake app, and ccmake app show it found ffmpeg so I was going with it because I remember from past years "old version of ffmpeg" coming from ffmpeg. I think a header file is the problem. Included is the OSG output from 98 percent to Error. Is this problem a ffmpeg or osg problem -- 73 de Donn Washburn 307 Savoy Street Email:" n5xwb at comcast.net " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb at arrl.net " VoIP via Skype:n5xwbg BMWMOA #:4146 Ambassador " http://counter.li.org " #279316 -------------- next part -------------- [ 96%] Built target osgdb_txp [ 96%] Built target osgdb_xine [ 96%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o In file included from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:12:0, from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10, from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9, from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.hpp:5, from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:2: /usr/include/libavcodec/avcodec.h:528:27: warning: attribute ignored in declaration of ?enum AVLPCType? [enabled by default] /usr/include/libavcodec/avcodec.h:528:27: warning: attribute for ?enum AVLPCType? must follow the ?enum? keyword [enabled by default] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?bool osgFFmpeg::FFmpegDecoder::open(const string&, osgFFmpeg::FFmpegParameters*)?: /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:57:26: warning: ?AVFormatParameters::channel? is deprecated (declared at /usr/include/libavformat/avformat.h:251) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:57:26: warning: ?AVFormatParameters::channel? is deprecated (declared at /usr/include/libavformat/avformat.h:251) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:58:26: warning: ?AVFormatParameters::standard? is deprecated (declared at /usr/include/libavformat/avformat.h:252) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:58:26: warning: ?AVFormatParameters::standard? is deprecated (declared at /usr/include/libavformat/avformat.h:252) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:60:26: warning: ?AVFormatParameters::width? is deprecated (declared at /usr/include/libavformat/avformat.h:248) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:60:26: warning: ?AVFormatParameters::width? is deprecated (declared at /usr/include/libavformat/avformat.h:248) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:61:26: warning: ?AVFormatParameters::height? is deprecated (declared at /usr/include/libavformat/avformat.h:249) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:61:26: warning: ?AVFormatParameters::height? is deprecated (declared at /usr/include/libavformat/avformat.h:249) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:66:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:66:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:67:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:67:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:81:25: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:81:106: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:94:17: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:94:96: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:111:9: warning: ?void dump_format(AVFormatContext*, int, const char*, int)? is deprecated (declared at /usr/include/libavformat/avformat.h:1554) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:111:65: warning: ?void dump_format(AVFormatContext*, int, const char*, int)? is deprecated (declared at /usr/include/libavformat/avformat.h:1554) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?void osgFFmpeg::FFmpegDecoder::findAudioStream()?: /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:211:64: error: ?CODEC_TYPE_AUDIO? was not declared in this scope /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?void osgFFmpeg::FFmpegDecoder::findVideoStream()?: /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:229:64: error: ?CODEC_TYPE_VIDEO? was not declared in this scope /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?bool osgFFmpeg::FFmpegDecoder::readNextPacketNormal()?: /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:269:17: warning: ?int url_ferror(AVIOContext*)? is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:269:48: warning: ?int url_ferror(AVIOContext*)? is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o] Error 1 make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2 make: *** [all] Error 2 From stefano.sabatini-lala at poste.it Tue Jul 5 18:29:13 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Tue, 5 Jul 2011 18:29:13 +0200 Subject: [FFmpeg-user] several git version of ffmpeg In-Reply-To: <4E133A21.4070009@comcast.net> References: <4E133A21.4070009@comcast.net> Message-ID: <20110705162913.GB10840@geppetto> On date Tuesday 2011-07-05 11:21:53 -0500, Donn Washburn encoded: > Hello Group; > > I have been trying to complie a version of OpenSceneGraph for Flightgear. > The cmake app, and ccmake app show it found ffmpeg so I was going > with it because I remember from past years "old version of ffmpeg" > coming from ffmpeg. I think a header file is the problem. Included > is the OSG output from 98 percent to Error. > > Is this problem a ffmpeg or osg problem > -- > 73 de Donn Washburn > 307 Savoy Street Email:" n5xwb at comcast.net " > Sugar Land, TX 77478 LL# 1.281.242.3256 > Ham Callsign N5XWB HAMs : " n5xwb at arrl.net " > VoIP via Skype:n5xwbg BMWMOA #:4146 Ambassador > " http://counter.li.org " #279316 > [ 96%] Built target osgdb_txp > [ 96%] Built target osgdb_xine > [ 96%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegDecoder.o > In file included from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:12:0, > from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10, > from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoderAudio.hpp:9, > from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.hpp:5, > from /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:2: > /usr/include/libavcodec/avcodec.h:528:27: warning: attribute ignored in declaration of ?enum AVLPCType? [enabled by default] > /usr/include/libavcodec/avcodec.h:528:27: warning: attribute for ?enum AVLPCType? must follow the ?enum? keyword [enabled by default] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?bool osgFFmpeg::FFmpegDecoder::open(const string&, osgFFmpeg::FFmpegParameters*)?: > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:57:26: warning: ?AVFormatParameters::channel? is deprecated (declared at /usr/include/libavformat/avformat.h:251) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:57:26: warning: ?AVFormatParameters::channel? is deprecated (declared at /usr/include/libavformat/avformat.h:251) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:58:26: warning: ?AVFormatParameters::standard? is deprecated (declared at /usr/include/libavformat/avformat.h:252) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:58:26: warning: ?AVFormatParameters::standard? is deprecated (declared at /usr/include/libavformat/avformat.h:252) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:60:26: warning: ?AVFormatParameters::width? is deprecated (declared at /usr/include/libavformat/avformat.h:248) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:60:26: warning: ?AVFormatParameters::width? is deprecated (declared at /usr/include/libavformat/avformat.h:248) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:61:26: warning: ?AVFormatParameters::height? is deprecated (declared at /usr/include/libavformat/avformat.h:249) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:61:26: warning: ?AVFormatParameters::height? is deprecated (declared at /usr/include/libavformat/avformat.h:249) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:66:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:66:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:67:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:67:26: warning: ?AVFormatParameters::time_base? is deprecated (declared at /usr/include/libavformat/avformat.h:245) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:81:25: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:81:106: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:94:17: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:94:96: warning: ?int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)? is deprecated (declared at /usr/include/libavformat/avformat.h:1094) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:111:9: warning: ?void dump_format(AVFormatContext*, int, const char*, int)? is deprecated (declared at /usr/include/libavformat/avformat.h:1554) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:111:65: warning: ?void dump_format(AVFormatContext*, int, const char*, int)? is deprecated (declared at /usr/include/libavformat/avformat.h:1554) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?void osgFFmpeg::FFmpegDecoder::findAudioStream()?: > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:211:64: error: ?CODEC_TYPE_AUDIO? was not declared in this scope > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?void osgFFmpeg::FFmpegDecoder::findVideoStream()?: > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:229:64: error: ?CODEC_TYPE_VIDEO? was not declared in this scope > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp: In member function ?bool osgFFmpeg::FFmpegDecoder::readNextPacketNormal()?: > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:269:17: warning: ?int url_ferror(AVIOContext*)? is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:269:48: warning: ?int url_ferror(AVIOContext*)? is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] You need to update the OSG code, it is using an old define which was deprecated and removed since the last major bump (CODEC_TYPE_* => AVMEDIA_TYPE_*). Or you can simply add some evil define for re-introducing the old symbols. -- ffmpeg-user random tip #8 Multimedia related stuff web site promo: http://wiki.multimedia.cx/ From n5xwb at comcast.net Tue Jul 5 19:00:55 2011 From: n5xwb at comcast.net (Donn Washburn) Date: Tue, 05 Jul 2011 12:00:55 -0500 Subject: [FFmpeg-user] Fwd: Re: several git version of ffmpeg In-Reply-To: <20110705162913.GB10840@geppetto> References: <20110705162913.GB10840@geppetto> Message-ID: <4E134347.4050804@comcast.net> Information from ffmpeg about the problem. Unfortunately, I am not a code person (other than HAM Morse code and Electronic color code person). If I knew how, I would attempt to fix it. -------- Original Message -------- Subject: Re: [FFmpeg-user] several git version of ffmpeg Date: Tue, 5 Jul 2011 18:29:13 +0200 From: Stefano Sabatini Reply-To: FFmpeg user questions and RTFMs To: FFmpeg user questions and RTFMs On date Tuesday 2011-07-05 11:21:53 -0500, Donn Washburn encoded: > Hello Group; > > I have been trying to complie a version of OpenSceneGraph for Flightgear. > The cmake app, and ccmake app show it found ffmpeg so I was going > with it because I remember from past years "old version of ffmpeg" > coming from ffmpeg. I think a header file is the problem. Included > is the OSG output from 98 percent to Error. > > Is this problem a ffmpeg or osg problem > -- > 73 de Donn Washburn > 307 Savoy Street Email:" n5xwb at comcast.net " > Sugar Land, TX 77478 LL# 1.281.242.3256 > Ham Callsign N5XWB HAMs : " n5xwb at arrl.net " > VoIP via Skype:n5xwbg BMWMOA #:4146 Ambassador > " http://counter.li.org " #279316 > [ 96%] Built target osgdb_txp > [ 96%] Built target osgdb_xine > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:269:17: warning: ?int url_ferror(AVIOContext*)? is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] > /mnt/sda7/fgfs/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegDecoder.cpp:269:48: warning: ?int url_ferror(AVIOContext*)? is deprecated (declared at /usr/include/libavformat/avio.h:298) [-Wdeprecated-declarations] You need to update the OSG code, it is using an old define which was deprecated and removed since the last major bump (CODEC_TYPE_* => AVMEDIA_TYPE_*). Or you can simply add some evil define for re-introducing the old symbols. -- ffmpeg-user random tip #8 Multimedia related stuff web site promo: http://wiki.multimedia.cx/ _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- 73 de Donn Washburn 307 Savoy Street Email:" n5xwb at comcast.net " Sugar Land, TX 77478 LL# 1.281.242.3256 Ham Callsign N5XWB HAMs : " n5xwb at arrl.net " VoIP via Skype:n5xwbg BMWMOA #:4146 Ambassador " http://counter.li.org " #279316 From wb4701 at yahoo.com.cn Tue Jul 5 10:41:31 2011 From: wb4701 at yahoo.com.cn (wb4701) Date: Tue, 5 Jul 2011 01:41:31 -0700 (PDT) Subject: [FFmpeg-user] [help]libx264 and mp3 Message-ID: <1309855291199-3645427.post@n4.nabble.com> Hi, everyone. I'm a new user of FFMPEG. It's a so strong program. When I use it, I meet an problem. I want to create a file with H264(video encoder) and MP3(audio encoder) using C language. I made use of part of code in out_example, but it didn't work. The file created only had video iformation without audio information. I think there must be some problem here. AVOutputFormat *fmt=guess_format ("h264", NULL, NULL); fmt->audio_codec=CODEC_ID_MP3; AVFormatContext pFormatCtx=av_alloc_format_contex(); pFormatCtx-> oformat = fmt; Could anybody help me solve this problem? Thanks a lot! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/help-libx264-and-mp3-tp3645427p3645427.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From andrew at vermillion.ca Tue Jul 5 16:42:41 2011 From: andrew at vermillion.ca (andrew at vermillion.ca) Date: Tue, 5 Jul 2011 07:42:41 -0700 Subject: [FFmpeg-user] iPhone Matrix Rotation Info In-Reply-To: Message-ID: <31283A86D379460189C9477C147EA443@MoonUnit> How does one detect the video orientation? I am running FFmpeg from a php sript. From pssturges at gmail.com Wed Jul 6 01:12:43 2011 From: pssturges at gmail.com (pssturges) Date: Tue, 5 Jul 2011 16:12:43 -0700 (PDT) Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <4E130B27.2080808@gmail.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> <4E130B27.2080808@gmail.com> Message-ID: <1309907563897-3647334.post@n4.nabble.com> Andrew Berg wrote: > > Sounds like they're 25fps and there are glitches that throw sync off. > Demux it with tsMuxeR (or load the raw video stream with it), making > sure "Add picture timing info" and "Continually insert SPS/PPS" are > checked (I'm not sure where you can get tsMuxeR if you don't already > have it, though; the official website has no links to it anymore). I > always run my newly encoded video streams through it just in case there > were glitches in the source since it has fixed sync issues on several > occasions. > ______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > I think that something like that is definately happening. I tried your suggestion using tsmuxer and it made no significant difference. Comparing the mediainfo output on the files produced by ffmpeg to those produced by mp4box showed one significant difference. The ffmpeg files were constant framerate and the mp4box files were variable framerate. A bit more research on the gpac website showed that mp4box sometimes creates variable frame rate videos if the source was avi. Using the nodrop option forces constant framerate. Audio was still out of sync using this option. When I use the nodrop option with my calculated framerate, sync is very close but still not quite right. The calculated frame rates are in the order of 24.996fps. So at this point both methods (ffmpeg and mp4box) are very close. Ffmpeg has motion issues but audio sync is good. Mp4box has good motion but audio sync is still not quite right. My preference is to use ffmpeg because it is one simple command. Using mp4box requires several steps including making some calculations. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4-tp3645627p3647334.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From scostantini at direte.it Wed Jul 6 10:04:08 2011 From: scostantini at direte.it (Stefano Costantini) Date: Wed, 6 Jul 2011 10:04:08 +0200 Subject: [FFmpeg-user] FLV generated from rtsp not seekable Message-ID: Hi all, i have a problem with encoding a stream. Stream is coming from an Axis cam, and it's h.263 Till some days ago i had generated an mp4 capturing with vlc and then converted to flv by ffmpeg (ffmpeg -i '' -s 4cif -r 10 -b 512 -deinterlace -ab 64 -ar 22050 -ac 1 '') now i've replaced -i inputfile with -i rtsp streaming captured directly from the camera. File is generated, it works, but ... it's not seekable (i have a flash streaming server: RED5). If i try to seek, or pause, it always stop and restart at all But if i 1st use vlc and then ffmpeg ... it perfectly works! what to do? p.s.: my vlc before had this parameters: transcode{acodec=mp3,ab=64,channels=1}:duplicate{dst=std{access=file,mux=ts,dst=\"\ tks! From matteo.marchesi71 at gmail.com Wed Jul 6 10:14:48 2011 From: matteo.marchesi71 at gmail.com (matteo marchesi) Date: Wed, 6 Jul 2011 10:14:48 +0200 Subject: [FFmpeg-user] unrecognized option -vf and bad colors Message-ID: hello, I'm new with FFMPEG, it seems to be a powerful tool but it requires a bit of study. I'm using FFMPEG to join pictures into a movie. I need to crop the pictures and to add some fadein/out effects. Both the two (crop and fadein/out) seems to be feasible with "-vf" option. Let's say that I use this command: ffmpeg ?i '%05d.jpg' ?vf ?fade=in:0:30? ?r 25 ?s hd720 ?vcodec mpeg4 ?qscale 1 ?y video.mp4 but I get "FFMPEG: unrecognized '-vf' option" error message. If I omit the ?fade=in:0:30? I get a "missing parameter" error. I do not unerstant: is -vf accepted by my FFMPEG but the effect I want to use is not in my libavfilter? I'm using livabfilter 0.4. Second question. With the above command (but without the -vf) I get the video with "strange" colors on some frames, it seems that the yellow is "not aligned" with the other colors. This happens only on some frames, but there is no difference between the frames if I open them with and image viewer. Any hint? ciao matteo matteo marchesi, matteo.marchesi71 at gmail.com From stefano.sabatini-lala at poste.it Wed Jul 6 11:05:04 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Wed, 6 Jul 2011 11:05:04 +0200 Subject: [FFmpeg-user] unrecognized option -vf and bad colors In-Reply-To: References: Message-ID: <20110706090503.GA18507@geppetto> On date Wednesday 2011-07-06 10:14:48 +0200, matteo marchesi encoded: > hello, > I'm new with FFMPEG, it seems to be a powerful tool but it requires a > bit of study. > > I'm using FFMPEG to join pictures into a movie. > I need to crop the pictures and to add some fadein/out effects. > Both the two (crop and fadein/out) seems to be feasible with "-vf" option. > > Let's say that I use this command: > > ffmpeg ?i '%05d.jpg' ?vf ?fade=in:0:30? ?r 25 ?s hd720 ?vcodec mpeg4 ?qscale > 1 ?y video.mp4 > but I get "FFMPEG: unrecognized '-vf' option" error message. > > If I omit the ?fade=in:0:30? I get a "missing parameter" error. > > I do not unerstant: is -vf accepted by my FFMPEG but the effect I want to > use is not in my libavfilter? > I'm using livabfilter 0.4. You need to update your FFmpeg, either 0.7/0.8 or git master will do. -- ffmpeg-user random tip #14 Smart questions (un)official document: http://www.catb.org/~esr/faqs/smart-questions.html From lists at glidos.net Wed Jul 6 11:20:31 2011 From: lists at glidos.net (Paul Gardiner) Date: Wed, 06 Jul 2011 10:20:31 +0100 Subject: [FFmpeg-user] Stereo - sidebyside to anaglyph Message-ID: <4E1428DF.1000404@glidos.net> Is there a filter that will convert side-by-side stereo to anaglyph? Or failing that, where would be the best place to add one, so that ffmpeg can use it? Cheers, Paul. From blacktrash at gmx.net Wed Jul 6 11:23:02 2011 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 6 Jul 2011 10:23:02 +0100 Subject: [FFmpeg-user] Encoding FLV: video plays back slow relative to audio, etc. In-Reply-To: <20110704140216.4174db79@lrcd.com> References: <20110704140216.4174db79@lrcd.com> Message-ID: <20110706092302.GM1336@krille.blacktrash.org> * Lou on Monday, July 04, 2011 at 14:02:16 -0800 > On Sun, 3 Jul 2011 13:29:10 -0400 > Dave Kleinschmidt wrote: >> Hi all, I'm having a bit of trouble with encoding .avi files as .flv >> for flowplayer. I know this is a bit of a black art, and I've done >> quite a bit of looking around, but haven't seen much of anything. >> The symptoms: the audio plays back fine, but the video plays back at >> a slightly slower rate. In addition, the onFinish() events fires >> really late, a second or two after the video has finished. >> >> I suspect that this is a problem with how I encoded my .flv file, >> since the Flowplayer sample .flv plays fine, with no lag, and the >> onFinish() event fires essentially immediately after the last frame. >> >> Any suggestions would be very much appreciated. Unfortunately, I >> don't have a test site to link to, but here is a link to the >> original .avi file: http://db.tt/fpLLGSP >> >> and here is the .flv: http://db.tt/CnjPIrI I tried your sample and for me it's too short to detect any anomalies. The shortness might also be responsible for the perceived delay of the onFinish event. >> Here is the ffmpeg call and its output for the actual conversion: >> >> dkleinschmidt$ ffmpeg -y -i videos/VbA1.avi -ab 128000 -vcodec flv -r >> 25 videos/VbA1.flv I ran the same command with the same result on the avi. The only thing which looks slightly suspicious is the audio being 1 frame (0.04 secs) longer than the video. But I get this for all my flv files, the difference does not increase progressively with the size of the video. Of course I might just be too blind and deaf to notice the difference ;-) > Is there a reason why you're changing the frame rate? Secondly, the > encoder called "flv" in FFmpeg is very poor compared to x264, and since > H.264 can work in the flv container just fine, and you already have it > enabled apparently, I don't see any reason not to use x264 instead: Dave might want to cater for old Flash versions < 9.0.115. Also x264 takes more decoding cpu than flv. > ffmpeg -i input -vcodec libx264 -preset medium -crf 26 -threads 0 \ > -acodec libmp3lame -aq 5 output.flv > > You may then have to run this output through flvtool++, flvtool2, > flvmeta, or any other similar tool. I'm not sure if this step is > necessary for flowplayer these days, but it's something to keep in mind > if it has trouble with the output from FFmpeg (such as incorrectly > displaying the duration for example). Injecting metadata should only be needed for pseudostreaming flv. I also compared Dave's result after injection, and it doesn't make any difference. c -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From stefano.sabatini-lala at poste.it Wed Jul 6 11:40:24 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Wed, 6 Jul 2011 11:40:24 +0200 Subject: [FFmpeg-user] Stereo - sidebyside to anaglyph In-Reply-To: <4E1428DF.1000404@glidos.net> References: <4E1428DF.1000404@glidos.net> Message-ID: <20110706094024.GA18686@geppetto> On date Wednesday 2011-07-06 10:20:31 +0100, Paul Gardiner encoded: > Is there a filter that will convert side-by-side stereo to anaglyph? No. > Or failing that, where would be the best place to add one, so that > ffmpeg can use it? In libavfilter, I guess. Maybe you can get some ideas from the MPlayer stereo3d filter, porting it should not be hard. -- ffmpeg-user random tip #3 Some few multimedia formats (mpeg-1, mpeg-2:PS, DV) support physical merge consistency, which means you can merge two files with cat. E.g.: cat input1.mpeg input2.mpeg > output.mpeg See: http://www.ffmpeg.org/faq.html#SEC25 From lists at glidos.net Wed Jul 6 11:54:32 2011 From: lists at glidos.net (Paul Gardiner) Date: Wed, 06 Jul 2011 10:54:32 +0100 Subject: [FFmpeg-user] Stereo - sidebyside to anaglyph In-Reply-To: <20110706094024.GA18686@geppetto> References: <4E1428DF.1000404@glidos.net> <20110706094024.GA18686@geppetto> Message-ID: <4E1430D8.5050907@glidos.net> On 06/07/2011 10:40, Stefano Sabatini wrote: > On date Wednesday 2011-07-06 10:20:31 +0100, Paul Gardiner encoded: >> Is there a filter that will convert side-by-side stereo to anaglyph? > > No. > >> Or failing that, where would be the best place to add one, so that >> ffmpeg can use it? > > In libavfilter, I guess. Maybe you can get some ideas from the MPlayer > stereo3d filter, porting it should not be hard. Thanks. I will have a look when I get a chance. Cheers, Paul. From mahakcay at gmail.com Wed Jul 6 19:02:25 2011 From: mahakcay at gmail.com (Mahmut Akcay) Date: Wed, 6 Jul 2011 18:02:25 +0100 Subject: [FFmpeg-user] Seeking issue with megavideo files Message-ID: I've a particular problem with files that I download from megavideo.comwebsite. Here is a sample: http://www.walnutsoft.com/test/Megavideo.com_test.flv When I play it locally with ffplay, seeking doesn't work (starting with offset or using keybaord). It basically is a flv file with h264 and aac streams which used to work with ffmpeg svn version 21884. It looks like something has been broken since then. Do you have any idea what the problem is? Thanks in advance, mahmut From huangxq at certusnet.com.cn Wed Jul 6 09:17:18 2011 From: huangxq at certusnet.com.cn (huangxq) Date: Wed, 6 Jul 2011 15:17:18 +0800 Subject: [FFmpeg-user] problem report Message-ID: <201107061517177650960@certusnet.com.cn> 2011-07-06 hello: after installing both msys+mingw,in the process of configuring ffmpeg,I met the problem: ./configure --enable-shared --disable-static --enable-memalign-hack ./configure:line 264: pr: command not found gcc is unable to create an executable file. if gcc is a cross-compile,use the --enable-cross-compile option. only do this if you know what cross compiling means. C compiler test failed. what should i do? thankyou! From nishant_hack at yahoo.co.in Wed Jul 6 11:39:26 2011 From: nishant_hack at yahoo.co.in (NISHAnT) Date: Wed, 6 Jul 2011 15:09:26 +0530 (IST) Subject: [FFmpeg-user] problem compiling ffmpeg with libfaac 1.28 Message-ID: <1309945166.27666.YahooMailClassic@web95406.mail.in2.yahoo.com> Hi, I am Trying to cross compile ffmpeg0.8 on linux ubuntu 11. i have also cross compiled libfaac for ARM. i m trying to use aac codecs for encoding but it running out wih some errors like ... /home/admin1/Desktop/android/workspace/.../obj/local/armeabi/libavcodec.a(libfaac.o): In function Faac_encode_close': /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:145: undefined reference tofaacEncClose' /home/admin1/Desktop/android/workspace/.../obj/local/armeabi/libavcodec.a(libfaac.o): In function Faac_encode_frame': /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:129: undefined reference tofaacEncEncode' /home/admin1/Desktop/android/workspace/.../obj/local/armeabi/libavcodec.a(libfaac.o): In function Faac_encode_init': /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:47: undefined reference tofaacEncOpen' /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:52: undefined reference to faacEncGetCurrentConfiguration' /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:55: undefined reference tofaacEncClose' /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:76: undefined reference to faacEncClose' /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:103: undefined reference tofaacEncGetDecoderSpecificInfo' /home/admin1/Desktop/android/workspace/.../jni/ffmpeg/libavcodec/libfaac.c:115: undefined reference to `faacEncSetConfiguration' collect2: ld returned 1 exit status make: * [/home/admin1/Desktop/android/workspace/.../obj/local/armeabi/libxyz.so] Error 1 i have libfaac-1.28... Any help would be appreciated... From kdj.tikka at gmail.com Wed Jul 6 14:10:27 2011 From: kdj.tikka at gmail.com (kaustubh) Date: Wed, 6 Jul 2011 05:10:27 -0700 (PDT) Subject: [FFmpeg-user] h263 streaming failed using ffserver and ffplay Message-ID: <1309954227302-3648579.post@n4.nabble.com> Hi, I am using latest ffmpeg 0.7.0 and 0.6.x. I have used default configurations for building ffserver and ffplay. I am able to stream .mp4, containing video in .h264 and .mpeg4 codec and audio in .aac codec. But i am not able to steam .mp4 containing video in .h263 and audio in .aac. On client side i am getting error as: *"rtsp @0x2e8e9a0 method SETUP failed: 461 Unsupported transport"* Is there any fix available for it ? Br, kaustubh -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/h263-streaming-failed-using-ffserver-and-ffplay-tp3648579p3648579.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mylaneza at yahoo.com.mx Wed Jul 6 20:07:41 2011 From: mylaneza at yahoo.com.mx (mylaneza) Date: Wed, 6 Jul 2011 11:07:41 -0700 (PDT) Subject: [FFmpeg-user] RTP streaming test error no sdp file Message-ID: <1309975661154-3649529.post@n4.nabble.com> Hi all! I'm new using ffmpeg. I'm trying to send an audio file using rtp. I use ffmpeg to send the stream and ffplay to receive. This is what i do: 1. ffplay rtp://10.168.123.202?localrtpport=8100 ffplay version git-N-30698-g39dbe9b, Copyright (c) 2003-2011 the FFmpeg developers built on Jun 10 2011 22:10:00 with gcc 4.5.3 configuration: ... libavutil 51. 8. 0 / 51. 8. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 3. 0 / 53. 3. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 15. 0 / 2. 15. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 2. ffmpeg -i J:\Nacho\grabaciones\twoOld.wav -f rtp rtp://10.168.123.202:8100 ffmpeg version git-N-30698-g39dbe9b, Copyright (c) 2000-2011 the FFmpeg develope rs built on Jun 10 2011 22:10:00 with gcc 4.5.3 configuration: ... libavutil 51. 8. 0 / 51. 8. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 3. 0 / 53. 3. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 15. 0 / 2. 15. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, wav, from 'J:\Nacho\grabaciones\twoOld.wav': Duration: 00:00:04.50, bitrate: 64 kb/s Stream #0.0: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Output #0, rtp, to 'rtp://10.168.123.202:8100': Metadata: encoder : Lavf53.3.0 Stream #0.0: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 SDP: v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Name c=IN IP4 10.168.123.202 t=0 0 a=tool:libavformat 53.3.0 m=audio 8100 RTP/AVP 0 b=AS:64 Press [q] to stop, [?] for help size= 36kB time=00:00:04.50 bitrate= 64.6kbits/s video:0kB audio:35kB global headers:0kB muxing overhead 0.975826% 3. ffplay then: *[rtp @ 003DD660] Unable to receive RTP payload type 72 without an SDP file describing it* [rtp @ 003DD660] Estimating duration from bitrate, this may be inaccurate Input #0, rtp, from 'rtp://10.168.123.202?localrtpport=8100': Duration: N/A, bitrate: N/A rtp://10.168.123.202?localrtpport=8100: could not open codecs 1309974291.63 A-V: 0.000 s:0.0 aq= 0KB vq= 0KB sq= 0B f=0/0 So nothing happens. Can anybody help me? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/RTP-streaming-test-error-no-sdp-file-tp3649529p3649529.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Thu Jul 7 01:02:21 2011 From: lou at lrcd.com (Lou) Date: Wed, 6 Jul 2011 15:02:21 -0800 Subject: [FFmpeg-user] Encoding FLV: video plays back slow relative to audio, etc. In-Reply-To: <20110706092302.GM1336@krille.blacktrash.org> References: <20110704140216.4174db79@lrcd.com> <20110706092302.GM1336@krille.blacktrash.org> Message-ID: <20110706150221.37444467@lrcd.com> On Wed, 6 Jul 2011 10:23:02 +0100 Christian Ebert wrote: > * Lou on Monday, July 04, 2011 at 14:02:16 -0800 > > On Sun, 3 Jul 2011 13:29:10 -0400 > > Dave Kleinschmidt wrote: > >> Hi all, I'm having a bit of trouble with encoding .avi files > >> as .flv for flowplayer. I know this is a bit of a black art, and > >> I've done quite a bit of looking around, but haven't seen much of > >> anything. The symptoms: the audio plays back fine, but the video > >> plays back at a slightly slower rate. In addition, the onFinish() > >> events fires really late, a second or two after the video has > >> finished. > >> > >> I suspect that this is a problem with how I encoded my .flv file, > >> since the Flowplayer sample .flv plays fine, with no lag, and the > >> onFinish() event fires essentially immediately after the last > >> frame. > >> > >> Any suggestions would be very much appreciated. Unfortunately, I > >> don't have a test site to link to, but here is a link to the > >> original .avi file: http://db.tt/fpLLGSP > >> > >> and here is the .flv: http://db.tt/CnjPIrI > > I tried your sample and for me it's too short to detect any > anomalies. The shortness might also be responsible for the > perceived delay of the onFinish event. > > >> Here is the ffmpeg call and its output for the actual conversion: > >> > >> dkleinschmidt$ ffmpeg -y -i videos/VbA1.avi -ab 128000 -vcodec flv > >> -r 25 videos/VbA1.flv > > I ran the same command with the same result on the avi. The only > thing which looks slightly suspicious is the audio being 1 frame > (0.04 secs) longer than the video. But I get this for all my flv > files, the difference does not increase progressively with the > size of the video. > > Of course I might just be too blind and deaf to notice the > difference ;-) > > > Is there a reason why you're changing the frame rate? Secondly, the > > encoder called "flv" in FFmpeg is very poor compared to x264, and > > since H.264 can work in the flv container just fine, and you > > already have it enabled apparently, I don't see any reason not to > > use x264 instead: > > Dave might want to cater for old Flash versions < 9.0.115. Also > x264 takes more decoding cpu than flv. Using that logic you could also promote RealMedia formats, and Cinepak works wonders for desktop playback. > > ffmpeg -i input -vcodec libx264 -preset medium -crf 26 -threads 0 \ > > -acodec libmp3lame -aq 5 output.flv > > > > You may then have to run this output through flvtool++, flvtool2, > > flvmeta, or any other similar tool. I'm not sure if this step is > > necessary for flowplayer these days, but it's something to keep in > > mind if it has trouble with the output from FFmpeg (such as > > incorrectly displaying the duration for example). > > Injecting metadata should only be needed for pseudostreaming flv. This is not true according to my experiences. IIRC, I've encountered several flash players that would not correctly display the duration, elapsed time, or progress bar without passing the output through one of those tools, but this was some time ago. > I also compared Dave's result after injection, and it doesn't > make any difference. > > c From lucky.narang123 at gmail.com Thu Jul 7 16:18:25 2011 From: lucky.narang123 at gmail.com (Lucky Narang) Date: Thu, 7 Jul 2011 19:48:25 +0530 Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! Message-ID: Hi all, 1) I am a newbie to ffmpeg framework,like to understand the framework. 2)What approach you would like to suggest to understand the framework ? 3) If somebody can suggest some very small assignments on ffmpeg framework,which involves some coding,so that i can have understanding of fmpeg framework part by part. Thanks and Best Regards, Lucky Narang. From lucky.narang123 at gmail.com Thu Jul 7 16:27:24 2011 From: lucky.narang123 at gmail.com (Lucky Narang) Date: Thu, 7 Jul 2011 19:57:24 +0530 Subject: [FFmpeg-user] Live Streaming Issue Message-ID: Hi, Since i am a newbie i have some queries 1) We are working on beagleboard + angstrom,and trying to make live streaming possible on two beagleboards using components like ffserver,ffmpeg,ffplay ? Need inputs to how to proceed with. 2) Which is the latest and stable copy of ffmpeg framework on ffmpeg.org ?[The reason why i am asking this is i have tried ffmpeg 0.8(Love) version and a very old version from svn for live streaming on beagle board,among the two the old version is working fine for streaming mpg and h264 files,but the newest version is giving poor performance,it is not streaming well] Thans and Best Regards, Lucky Narang From stas.oskin at gmail.com Thu Jul 7 19:52:16 2011 From: stas.oskin at gmail.com (Stas Oskin) Date: Thu, 7 Jul 2011 20:52:16 +0300 Subject: [FFmpeg-user] Error when opening RTSP with AAC Message-ID: Hi. I'm trying to open a stream from camera, and getting following error: ffmpeg -i rtsp://192.168.1.1 -vcodec copy -acodec copy -f rtsp rtsp:// 127.0.0.1/streamer.sdp [rtsp @ 0x1ae0a0a0] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 10.10 (1000/99) Input #0, rtsp, from 'rtsp://192.168.1.1': Metadata: title : RTSP server Duration: N/A, start: 0.000000, bitrate: N/A Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 10.10 tbr, 30k tbn, 1k tbc Stream #0.1: Audio: aac, 8000 Hz, stereo, s16 [rtsp @ 0x1ae08640] method SETUP failed: 412 Precondition Failed Output #0, rtsp, to 'rtsp://127.0.0.1/streamer.sdp': Metadata: title : RTSP server encoder : Lavf52.109.0 Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 90k tbn, 1k tbc Stream #0.1: Audio: libfaac, 8000 Hz, stereo Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Could not write header for output file #0 (incorrect codec parameters ?) Once the audio disabled all working fine. Any idea why this happens? Thanks. From stas.oskin at gmail.com Thu Jul 7 19:52:16 2011 From: stas.oskin at gmail.com (Stas Oskin) Date: Thu, 7 Jul 2011 20:52:16 +0300 Subject: [FFmpeg-user] Error when opening RTSP with AAC Message-ID: Hi. I'm trying to open a stream from camera, and getting following error: ffmpeg -i rtsp://192.168.1.1 -vcodec copy -acodec copy -f rtsp rtsp:// 127.0.0.1/streamer.sdp [rtsp @ 0x1ae0a0a0] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 10.10 (1000/99) Input #0, rtsp, from 'rtsp://192.168.1.1': Metadata: title : RTSP server Duration: N/A, start: 0.000000, bitrate: N/A Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 10.10 tbr, 30k tbn, 1k tbc Stream #0.1: Audio: aac, 8000 Hz, stereo, s16 [rtsp @ 0x1ae08640] method SETUP failed: 412 Precondition Failed Output #0, rtsp, to 'rtsp://127.0.0.1/streamer.sdp': Metadata: title : RTSP server encoder : Lavf52.109.0 Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 90k tbn, 1k tbc Stream #0.1: Audio: libfaac, 8000 Hz, stereo Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Could not write header for output file #0 (incorrect codec parameters ?) Once the audio disabled all working fine. Any idea why this happens? Thanks. From stefano.sabatini-lala at poste.it Thu Jul 7 23:27:02 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Thu, 7 Jul 2011 23:27:02 +0200 Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! In-Reply-To: References: Message-ID: <20110707212702.GA10237@geppetto> On date Thursday 2011-07-07 19:48:25 +0530, Lucky Narang encoded: > Hi all, > > 1) I am a newbie to ffmpeg framework,like to understand the framework. > > 2)What approach you would like to suggest to understand the framework ? Fix some bugs or add some features, this way you're sure that you'll get the attention/help of the developers. ;-). Check doc/examples for simple examples about how to use the API (as a first task you may try to cleanup those files, update the API/simplify or add more examples). > 3) If somebody can suggest some very small assignments on ffmpeg > framework,which involves some coding,so that i can have understanding > of fmpeg framework part by part. It depends, working on the code is effective if you're interested in what you're doing, so that much depends on what you want to do/find interesting/you already know. Some ideas: http://wiki.multimedia.cx/index.php?title=Interesting_Patches From rickcorteza at gmail.com Fri Jul 8 02:23:33 2011 From: rickcorteza at gmail.com (Rick C.) Date: Fri, 8 Jul 2011 08:23:33 +0800 Subject: [FFmpeg-user] how to fix audio/video sync issues Message-ID: <4E127D1D-DF83-4ADC-957C-4B006CF1A86C@gmail.com> Hi again, I wasn't able to figure out why I was having sync issues here (see below) but my question is what can we do to fix sync issues? Is using -async the right way? Any input would be great as I'm not sure what can be done when sync issue arise... rc ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 25 2011 14:41:44 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --enable-runtime-cpudetect libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 60000.00 (60000/1) -> 29.97 (30000/1001) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mahalko/Desktop/original video.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-06-29 17:05:08 Duration: 00:00:58.99, start: 0.132500, bitrate: 21812 kb/s Stream #0.0(eng): Video: h264 (Constrained Baseline), yuvj420p, 1280x720, 20279 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc Metadata: creation_time : 2011-06-29 17:05:08 Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2011-06-29 17:05:08 Incompatible pixel format 'yuvj420p' for codec 'mpeg4', auto-selecting format 'yuv420p' [buffer @ 0x101300ea0] w:1280 h:720 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x1013034c0] w:1280 h:720 fmt:yuvj420p -> w:640 h:360 fmt:yuv420p flags:0x4 Output #0, ipod, to '/Users/mahalko/Desktop/original video.m4v': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-06-29 17:05:08 encoder : Lavf53.4.0 Stream #0.0(eng): Video: mpeg4 (hq), yuv420p, 640x360, q=2-31, 1500 kb/s, 30k tbn, 29.97 tbc Metadata: creation_time : 2011-06-29 17:05:08 Stream #0.1(eng): Audio: aac, 48000 Hz, 2 channels, s16, 192 kb/s Metadata: creation_time : 2011-06-29 17:05:08 Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame= 29 fps= 0 q=2.2 size= 232kB time=00:00:00.96 bitrate=1965.2kbits/s frame= 58 fps= 58 q=3.5 size= 486kB time=00:00:01.93 bitrate=2056.0kbits/s frame= 85 fps= 56 q=2.7 size= 692kB time=00:00:02.83 bitrate=1998.9kbits/s frame= 110 fps= 55 q=3.5 size= 863kB time=00:00:03.67 bitrate=1926.4kbits/s frame= 137 fps= 54 q=3.5 size= 1053kB time=00:00:04.57 bitrate=1887.8kbits/s frame= 162 fps= 54 q=4.3 size= 1245kB time=00:00:05.40 bitrate=1886.3kbits/s frame= 191 fps= 54 q=3.3 size= 1418kB time=00:00:06.37 bitrate=1822.6kbits/s frame= 221 fps= 55 q=2.9 size= 1609kB time=00:00:07.37 bitrate=1787.1kbits/s frame= 250 fps= 55 q=3.4 size= 1805kB time=00:00:08.34 bitrate=1772.2kbits/s frame= 279 fps= 55 q=2.9 size= 1996kB time=00:00:09.30 bitrate=1756.7kbits/s frame= 308 fps= 55 q=2.6 size= 2175kB time=00:00:10.27 bitrate=1733.5kbits/s frame= 337 fps= 55 q=1.8 size= 2381kB time=00:00:11.24 bitrate=1734.7kbits/s frame= 366 fps= 55 q=2.4 size= 2575kB time=00:00:12.21 bitrate=1727.2kbits/s frame= 395 fps= 56 q=2.4 size= 2770kB time=00:00:13.17 bitrate=1721.5kbits/s frame= 425 fps= 56 q=2.6 size= 2976kB time=00:00:14.18 bitrate=1719.0kbits/s frame= 455 fps= 56 q=2.4 size= 3177kB time=00:00:15.18 bitrate=1714.2kbits/s frame= 475 fps= 55 q=2.4 size= 3304kB time=00:00:15.84 bitrate=1707.6kbits/s frame= 502 fps= 55 q=2.5 size= 3487kB time=00:00:16.75 bitrate=1705.6kbits/s frame= 530 fps= 55 q=2.5 size= 3691kB time=00:00:17.68 bitrate=1709.7kbits/s frame= 559 fps= 55 q=2.8 size= 3890kB time=00:00:18.65 bitrate=1708.3kbits/s frame= 587 fps= 55 q=2.9 size= 4091kB time=00:00:19.58 bitrate=1710.9kbits/s frame= 615 fps= 55 q=2.5 size= 4298kB time=00:00:20.52 bitrate=1716.0kbits/s frame= 643 fps= 55 q=2.7 size= 4492kB time=00:00:21.45 bitrate=1715.1kbits/s frame= 671 fps= 55 q=2.7 size= 4687kB time=00:00:22.38 bitrate=1714.9kbits/s frame= 700 fps= 55 q=2.9 size= 4904kB time=00:00:23.35 bitrate=1720.2kbits/s frame= 727 fps= 55 q=2.6 size= 5082kB time=00:00:24.25 bitrate=1716.1kbits/s frame= 754 fps= 55 q=2.5 size= 5254kB time=00:00:25.15 bitrate=1710.9kbits/s frame= 775 fps= 54 q=2.3 size= 5397kB time=00:00:25.85 bitrate=1709.7kbits/s frame= 803 fps= 54 q=2.6 size= 5592kB time=00:00:26.79 bitrate=1709.6kbits/s frame= 831 fps= 54 q=3.3 size= 5813kB time=00:00:27.72 bitrate=1717.4kbits/s frame= 859 fps= 54 q=2.9 size= 5993kB time=00:00:28.66 bitrate=1713.0kbits/s frame= 888 fps= 55 q=3.9 size= 6203kB time=00:00:29.62 bitrate=1715.1kbits/s frame= 918 fps= 55 q=3.5 size= 6406kB time=00:00:30.63 bitrate=1713.4kbits/s frame= 944 fps= 55 q=3.9 size= 6624kB time=00:00:31.49 bitrate=1722.7kbits/s frame= 973 fps= 55 q=2.4 size= 6809kB time=00:00:32.46 bitrate=1718.1kbits/s frame= 1003 fps= 55 q=2.8 size= 6991kB time=00:00:33.46 bitrate=1711.3kbits/s frame= 1033 fps= 55 q=2.0 size= 7194kB time=00:00:34.46 bitrate=1709.9kbits/s frame= 1063 fps= 55 q=2.5 size= 7374kB time=00:00:35.46 bitrate=1703.2kbits/s frame= 1091 fps= 55 q=2.3 size= 7553kB time=00:00:36.40 bitrate=1699.8kbits/s frame= 1120 fps= 55 q=2.5 size= 7762kB time=00:00:37.37 bitrate=1701.6kbits/s frame= 1149 fps= 55 q=2.5 size= 7954kB time=00:00:38.33 bitrate=1699.6kbits/s frame= 1177 fps= 55 q=1.9 size= 8156kB time=00:00:39.27 bitrate=1701.3kbits/s frame= 1205 fps= 55 q=2.4 size= 8338kB time=00:00:40.20 bitrate=1698.8kbits/s frame= 1233 fps= 55 q=2.5 size= 8528kB time=00:00:41.14 bitrate=1698.1kbits/s frame= 1262 fps= 55 q=2.5 size= 8736kB time=00:00:42.10 bitrate=1699.5kbits/s frame= 1291 fps= 55 q=2.4 size= 8926kB time=00:00:43.07 bitrate=1697.4kbits/s frame= 1320 fps= 55 q=2.2 size= 9114kB time=00:00:44.04 bitrate=1695.1kbits/s frame= 1349 fps= 55 q=2.4 size= 9319kB time=00:00:45.01 bitrate=1696.0kbits/s frame= 1377 fps= 55 q=2.5 size= 9509kB time=00:00:45.94 bitrate=1695.3kbits/s frame= 1405 fps= 55 q=1.7 size= 9718kB time=00:00:46.88 bitrate=1698.2kbits/s frame= 1434 fps= 55 q=3.6 size= 9931kB time=00:00:47.84 bitrate=1700.4kbits/s frame= 1463 fps= 55 q=2.7 size= 10127kB time=00:00:48.81 bitrate=1699.4kbits/s frame= 1492 fps= 55 q=2.4 size= 10327kB time=00:00:49.78 bitrate=1699.4kbits/s frame= 1521 fps= 55 q=2.5 size= 10519kB time=00:00:50.75 bitrate=1697.9kbits/s frame= 1550 fps= 55 q=2.7 size= 10722kB time=00:00:51.71 bitrate=1698.3kbits/s frame= 1578 fps= 55 q=2.8 size= 10914kB time=00:00:52.65 bitrate=1698.1kbits/s frame= 1608 fps= 56 q=2.5 size= 11113kB time=00:00:53.65 bitrate=1696.7kbits/s frame= 1638 fps= 56 q=2.3 size= 11315kB time=00:00:54.65 bitrate=1696.0kbits/s frame= 1663 fps= 55 q=2.4 size= 11484kB time=00:00:55.48 bitrate=1695.4kbits/s frame= 1693 fps= 55 q=2.1 size= 11694kB time=00:00:56.48 bitrate=1695.9kbits/s frame= 1723 fps= 55 q=2.3 size= 11896kB time=00:00:57.49 bitrate=1695.1kbits/s frame= 1753 fps= 55 q=1.8 size= 12114kB time=00:00:58.49 bitrate=1696.6kbits/s frame= 1768 fps= 55 q=2.5 Lsize= 12240kB time=00:00:58.83 bitrate=1704.1kbits/s video:10891kB audio:1311kB global headers:0kB muxing overhead 0.304151% From samuel.potencier at sprint-racing.com Fri Jul 8 12:47:28 2011 From: samuel.potencier at sprint-racing.com (Samuel POTENCIER) Date: Fri, 8 Jul 2011 12:47:28 +0200 Subject: [FFmpeg-user] Movie filter seek_point option Message-ID: Hi, I'm using vfilters for overlaying 2 video (in fact 2 streams of the same video file). Everythink is ok. I now want to delay the start to make a "thumbnail" of 20s at 180s from the start. I add -ss 180 to the command line and ":seek_point=180" option to movie filter: ./ffmpeg -i /media/video.avi -map 0.0 -map 0.2 -ss 180 -t 20 -y -deinterlace -s 720x576 -vf "movie=/media/video.avi:stream_index=1:seek_point=180, scale=240:192 [vueint];[in][vueint] overlay=440:352 [out]" -target pal-dvd -b 4194304 out.mpg ffmpeg doesn't complain, but in the final output, the main stream is ok but the overlay stream still start at 0. I've tried changing the movie filter options order without success. I've just downloaded the last version (0.8). No changes. Any idea ? Thanks Samuel From pcuser.mails at gmail.com Fri Jul 8 14:19:46 2011 From: pcuser.mails at gmail.com (pcuser p) Date: Fri, 8 Jul 2011 17:49:46 +0530 Subject: [FFmpeg-user] Need help in h.264/avc parsing Message-ID: Hi, Is there any open source h.264 video parser ,which identifies all header info from the bitstream (atleast for commonly used profiles), I heard people using Vega from interra systems,But is there any open source parser(not necessarily a GUI based). Can FFmpeg dump h.264 header info to a file,Is there any option to do it. Regards, RJ From lucky.narang123 at gmail.com Fri Jul 8 14:46:18 2011 From: lucky.narang123 at gmail.com (Lucky Narang) Date: Fri, 8 Jul 2011 08:46:18 -0400 Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! In-Reply-To: <20110707212702.GA10237@geppetto> References: <20110707212702.GA10237@geppetto> Message-ID: On Thu, Jul 7, 2011 at 5:27 PM, Stefano Sabatini wrote: > On date Thursday 2011-07-07 19:48:25 +0530, Lucky Narang encoded: >> Hi all, >> >> 1) I am a newbie to ffmpeg framework,like to understand the framework. >> >> 2)What approach you would like to suggest to understand the framework ? > > Fix some bugs or add some features, this way you're sure that you'll > get the attention/help of the developers. ;-). > >a)Can you suggest some small bugs,which we can start hunting from ffmpeg bug report,or any feature you would like to suggest. > Check doc/examples for simple examples about how to use the API (as a > first task you may try to cleanup those files, update the API/simplify > or add more examples). > >a)Which doc/examples you are talking about,the one which are present on the ffmpeg.org documentation or any other ? > >> 3) If somebody can suggest some very small assignments on ffmpeg >> framework,which involves some coding,so that i can have understanding >> of fmpeg framework part by part. > > It depends, working on the code is effective if you're interested in > what you're doing, so that much depends on what you want to do/find > interesting/you already know. > > Some ideas: > http://wiki.multimedia.cx/index.php?title=Interesting_Patches > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From LuckyNarang123 at gmail.com Fri Jul 8 08:23:49 2011 From: LuckyNarang123 at gmail.com (Lucky) Date: Fri, 8 Jul 2011 06:23:49 +0000 (UTC) Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! References: <20110707212702.GA10237@geppetto> Message-ID: Stefano Sabatini poste.it> writes: > > On date Thursday 2011-07-07 19:48:25 +0530, Lucky Narang encoded: > > Hi all, > > > > 1) I am a newbie to ffmpeg framework,like to understand the framework. > > > > 2)What approach you would like to suggest to understand the framework ? > > Fix some bugs or add some features, this way you're sure that you'll > get the attention/help of the developers. . > > Check doc/examples for simple examples about how to use the API (as a > first task you may try to cleanup those files, update the API/simplify > or add more examples). > > > 3) If somebody can suggest some very small assignments on ffmpeg > > framework,which involves some coding,so that i can have understanding > > of fmpeg framework part by part. > > It depends, working on the code is effective if you're interested in > what you're doing, so that much depends on what you want to do/find > interesting/you already know. > > Some ideas: > http://wiki.multimedia.cx/index.php?title=Interesting_Patches > Hi, Thanks for your reply, 1)From where i can find the current bugs in the application,one source i see is ffmpeg bug reporting,is there any source from where we can find the bugs,first i would like to start from some simple bugs. 2) Which examples you are talking about ? The examples mentioned in the documentation on ffmpeg.org or any other source you are talking about. Thanks and Best Regards, Lucky Narang. From ben at cardinalpeak.com Fri Jul 8 16:48:09 2011 From: ben at cardinalpeak.com (Ben Mesander) Date: Fri, 8 Jul 2011 07:48:09 -0700 (PDT) Subject: [FFmpeg-user] Need help in h.264/avc parsing In-Reply-To: References: Message-ID: <1310136489.4424.YahooMailRC@web161320.mail.bf1.yahoo.com> Hi RJ, h264bitstream can do this: http://sourceforge.net/projects/h264bitstream/ And yes, you can extract the raw H.264 info (all of it, not just the header) from a container with ffmpeg: http://www.cardinalpeak.com/blog/?p=878 Regards, Ben Ben Mesander (303) 570-1606 | Email | vCard | Web | Company Blog | LinkedIn ________________________________ From: pcuser p To: FFmpeg user questions and RTFMs Cc: vlc-devel at videolan.org; x264-devel Sent: Fri, July 8, 2011 6:19:46 AM Subject: [FFmpeg-user] Need help in h.264/avc parsing Hi, Is there any open source h.264 video parser ,which identifies all header info from the bitstream (atleast for commonly used profiles), I heard people using Vega from interra systems,But is there any open source parser(not necessarily a GUI based). Can FFmpeg dump h.264 header info to a file,Is there any option to do it. Regards, RJ _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user cs From stefano.sabatini-lala at poste.it Fri Jul 8 18:34:03 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Fri, 8 Jul 2011 18:34:03 +0200 Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! In-Reply-To: References: <20110707212702.GA10237@geppetto> Message-ID: <20110708163403.GA30053@geppetto> On date Friday 2011-07-08 06:23:49 +0000, Lucky encoded: > Stefano Sabatini poste.it> writes: [...] > Hi, > Thanks for your reply, > > 1)From where i can find the current bugs in the application,one source i see is > ffmpeg bug reporting,is there any source from where we can find the bugs,first i > would like to start from some simple bugs. Issue tracker: https://ffmpeg.org/trac/ffmpeg/report/1 You can also ask on irc or on ffmpeg-devel (how a bug is "simple" to fix depends on your interests/knowledge). > 2) Which examples you are talking about ? The examples mentioned in the > documentation on ffmpeg.org or any other source you are talking about. I meant doc/examples in the source dir. -- ffmpeg-user random tip #13 Have you ever *seen* ffmpeg? find ~/src/ffmpeg/ -type f | xargs cat | ffmpeg -s qcif \ -f rawvideo -i - -y ff.mpeg From sleicht at aventuratechnologies.com Fri Jul 8 18:39:55 2011 From: sleicht at aventuratechnologies.com (Stephen Leicht) Date: Fri, 8 Jul 2011 12:39:55 -0400 Subject: [FFmpeg-user] Building ffmpeg for iPhone error. Message-ID: <1002CFB244ACDC489529FD187D1FB102012C58C4@ati2008.mail.aventura247.com> I'm having this same issue. Were you ever able to fix it? -Stephen Leicht From hwanikani at hotmail.com Sun Jul 10 04:47:59 2011 From: hwanikani at hotmail.com (HongSuk Hwan) Date: Sat, 9 Jul 2011 22:47:59 -0400 Subject: [FFmpeg-user] ffplay won't play yuv file (yuv420p). Message-ID: I am trying to play yuv file using ffplay. However, ffplay cannot play yuv file right now. Even if I give all the parameters required to yuv file, it just won't play saying (two lines of) "Picture size 0x0 is invalid", and "could not find codec parameters." I will tell you what exact command and parameters I used and full error messages below: Here is the steps I used: 1. go to ftp://ftp.tnt.uni-hannover.de/pub/svc/testsequences/ and download FOREMAN_352x288_30_orig_01_yuv.zip (and unzip it to get yuv) 2. Command: ffplay -f rawvideo -pix_fmt yuv420p -s 352x288 -i FOREMAN_352x288_30_orig_01.yuv Then I get this error message: C:\Users\SHH\Desktop>ffplay -f rawvideo -pix_fmt yuv420p -s 352x288 -i FOREMAN_352x288_30_orig_01.yuv ffplay version N-31247-g5d4fd1d, Copyright (c) 2003-2011 the FFmpeg developers built on Jul 4 2011 21:40:51 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect -- enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --en able-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 24. 3 / 2. 24. 3 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [IMGUTILS @ 039BF9D4] Picture size 0x0 is invalid [IMGUTILS @ 039BF8F4] Picture size 0x0 is invalid [rawvideo @ 002CF300] Could not find codec parameters (Video: rawvideo, yuv420p) [rawvideo @ 002CF300] Estimating duration from bitrate, this may be inaccurate FOREMAN_352x288_30_orig_01.yuv: could not find codec parameters I tried BOTH windows and linux builds, and both of them have same problems. Can anyone help me with this problem? From dev at rarevision.com Sun Jul 10 12:10:33 2011 From: dev at rarevision.com (Thomas Worth) Date: Sun, 10 Jul 2011 03:10:33 -0700 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E131D68.7070407@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E1318B5.3020500@mdsh.com> <4E131D68.7070407@bbc.co.uk> Message-ID: On Tue, Jul 5, 2011 at 7:19 AM, Tim Nicholson wrote: > On 05/07/11 14:59, Mark Himsley wrote: >> >> On 05/07/11 07:43, Tim Nicholson wrote: >>> >>> On 04/07/11 22:01, Mark Himsley wrote: > > [...] >>>> >>>> Hi Tim, >>>> >>>> The source says: >>>> >>>> 0 == unspecified >>>> 1 == "MPEG" range >>>> 2 == "JPEG" range >>>> >>> > Therefore, I'd expect 1 to be "broadcast" 16-235, and 2 to be "full" >>>> >>>> 0-255. I haven't tested this, just grepped through the source. >>>> >>> >>> >>> Bother! Missed that in my "find", which file was that in? >> >> ./libavcodec/avcodec.h line 502 >> >> enum AVColorRange{ >> AVCOL_RANGE_UNSPECIFIED=0, >> AVCOL_RANGE_MPEG =1, ///< the normal 219*2^(n-8) "MPEG" YUV ranges >> AVCOL_RANGE_JPEG =2, ///< the normal 2^n-1 "JPEG" YUV ranges >> AVCOL_RANGE_NB , ///< Not part of ABI >> }; >> > > Ahh, you see color_range transmogrifying into ColorRange threw me off the > scent... > >> >>> I presume that you are presuming MPEG => yuv=> 16-235 and JPEG => RGB >>> =>0-255, which is a bit woolly for such an important parameter. >> >> No. JPEG does not mandate RGB. >> > > That's what I mean by woolley, its presumed in this case when it would be > far better to use a more rigorous definition. :( Tim, did you ever get this to work properly? I tried transcoding some v210 footage to mjpeg, but since mjpeg requires "yuvj" pixel format variants, my range is always wrong because the v210 I am working with is broadcast range. The mjpeg encoder apparently takes the full range as input, so it looks at 0-1023 instead of 64-940. What would be great is if I could force ffmpeg / swscale to consider only 64-940 as input instead of 0-1023. For most intents and purposes, only 64-940 is a valid range with v210. From stefano.sabatini-lala at poste.it Sun Jul 10 17:23:40 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Sun, 10 Jul 2011 17:23:40 +0200 Subject: [FFmpeg-user] ffplay won't play yuv file (yuv420p). In-Reply-To: References: Message-ID: <20110710152340.GB3755@geppetto> On date Saturday 2011-07-09 22:47:59 -0400, HongSuk Hwan encoded: > > I am trying to play yuv file using ffplay. > > However, ffplay cannot play yuv file right now. > > Even if I give all the parameters required to yuv file, it just won't play saying (two lines of) "Picture size 0x0 is invalid", and "could not find codec parameters." > > I will tell you what exact command and parameters I used and full error messages below: > > > Here is the steps I used: > > 1. go to ftp://ftp.tnt.uni-hannover.de/pub/svc/testsequences/ and download FOREMAN_352x288_30_orig_01_yuv.zip (and unzip it to get yuv) > > 2. Command: ffplay -f rawvideo -pix_fmt yuv420p -s 352x288 -i FOREMAN_352x288_30_orig_01.yuv > > > Then I get this error message: > > C:\Users\SHH\Desktop>ffplay -f rawvideo -pix_fmt yuv420p -s 352x288 -i FOREMAN_352x288_30_orig_01.yuv Some things changed in the interface, now -s SIZE is ignored, you should use -video_size instead (yes you can consider it a bug and we still have to update the docs). -- ffmpeg-user random tip #18 Gmane ffmpeg-user archive: http://dir.gmane.org/gmane.comp.video.ffmpeg.user From u.adriano at gmail.com Sun Jul 10 19:23:42 2011 From: u.adriano at gmail.com (Ursachi Adrian) Date: Sun, 10 Jul 2011 20:23:42 +0300 Subject: [FFmpeg-user] Constant MP3 bitrate issue Message-ID: <07FA6F85365A4628931C06E37E1E4683@AdrianPC> Hi! My name is Adrian, i like FFMPEG, but with the latest versions i can't convert audio files to mp3 constant bitrate! I need constant bitrate to use in AVI files (compatible with DivX standalone players). How can i do that? Thanks. From tim.nicholson at bbc.co.uk Mon Jul 11 09:07:53 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 11 Jul 2011 08:07:53 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E1318B5.3020500@mdsh.com> <4E131D68.7070407@bbc.co.uk> Message-ID: <4E1AA149.8070202@bbc.co.uk> On 10/07/11 11:10, Thomas Worth wrote: > Tim, did you ever get this to work properly? I tried transcoding some > v210 footage to mjpeg, but since mjpeg requires "yuvj" pixel format > variants, my range is always wrong because the v210 I am working with > is broadcast range. The mjpeg encoder apparently takes the full range > as input, so it looks at 0-1023 instead of 64-940. > well what I did was take two input png's of colour bars, one full range one 601 range and output an uncompressed 8 bit mov using the code below:- ======================================= for range in 0 1 2 do out_file=$(basename $1).${range}.mov ffmpeg -f image2 -loop_input -i $1 -t 5 -vcodec rawvideo -pix_fmt \ uyvy422 -color_range $range -vtag 2vuy -an -y "$out_file" out_file=${range}.$(basename $1).mov ffmpeg -f image2 -loop_input -color_range $range -i $1 -t 5 -vcodec \ rawvideo -pix_fmt uyvy422 -vtag 2vuy -an -y "$out_file" done ======================================= As you can see one variation changed the parameter for output, and the other version changed it for input. I then viewed all 6 files in Lightworks (public beta) so I could use the scope function. For any given input file all 6 outputs were identical no matter what the setting of -color_range and whether applied to input or output. However the differences between the input files was reflected on the outputs. This would suggest that color_range is having no effect. *However* I don't know if the "image2" format for input overrides the color_range setting, so I want to run some more passes using my generated mov's as source. > What would be great is if I could force ffmpeg / swscale to consider > only 64-940 as input instead of 0-1023. For most intents and purposes, > only 64-940 is a valid range with v210. Absolutely! -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From pcuser.mails at gmail.com Mon Jul 11 10:20:01 2011 From: pcuser.mails at gmail.com (pcuser p) Date: Mon, 11 Jul 2011 13:50:01 +0530 Subject: [FFmpeg-user] Need help in h.264/avc parsing In-Reply-To: <1310136489.4424.YahooMailRC@web161320.mail.bf1.yahoo.com> References: <1310136489.4424.YahooMailRC@web161320.mail.bf1.yahoo.com> Message-ID: Thanks for reply On 7/8/11, Ben Mesander wrote: > Hi RJ, > > h264bitstream can do this: http://sourceforge.net/projects/h264bitstream/ > > And yes, you can extract the raw H.264 info (all of it, not just the > header) > from a container with ffmpeg: http://www.cardinalpeak.com/blog/?p=878 > > Regards, > Ben > > Ben Mesander > (303) 570-1606 | Email | vCard | Web | Company Blog | LinkedIn > > > > > > > > ________________________________ > From: pcuser p > To: FFmpeg user questions and RTFMs > Cc: vlc-devel at videolan.org; x264-devel > Sent: Fri, July 8, 2011 6:19:46 AM > Subject: [FFmpeg-user] Need help in h.264/avc parsing > > Hi, > Is there any open source h.264 video parser ,which identifies all > header info from the bitstream (atleast for commonly used profiles), > > I heard people using Vega from interra systems,But is there any open > source parser(not necessarily a GUI based). > > > Can FFmpeg dump h.264 header info to a file,Is there any option to do it. > > > Regards, > RJ > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > cs > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tim.nicholson at bbc.co.uk Mon Jul 11 15:16:40 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 11 Jul 2011 14:16:40 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <4E1AA149.8070202@bbc.co.uk> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E1318B5.3020500@mdsh.com> <4E131D68.7070407@bbc.co.uk> <4E1AA149.8070202@bbc.co.uk> Message-ID: <4E1AF7B8.9040006@bbc.co.uk> On 11/07/11 08:07, Tim Nicholson wrote: > On 10/07/11 11:10, Thomas Worth wrote: > >> Tim, did you ever get this to work properly? I tried transcoding some >> v210 footage to mjpeg, but since mjpeg requires "yuvj" pixel format >> variants, my range is always wrong because the v210 I am working with >> is broadcast range. The mjpeg encoder apparently takes the full range >> as input, so it looks at 0-1023 instead of 64-940. >> > > well what I did was take two input png's of colour bars, one full range > one 601 range and output an uncompressed 8 bit mov using the code below:- Just tried making AVI's instead and viewing them in Avid MC. Same result,, color_range shows no effect. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From bouke at editb.nl Mon Jul 11 16:52:21 2011 From: bouke at editb.nl (bouke) Date: Mon, 11 Jul 2011 16:52:21 +0200 Subject: [FFmpeg-user] Use of "-color_range" References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E1318B5.3020500@mdsh.com> <4E131D68.7070407@bbc.co.uk> <4E1AA149.8070202@bbc.co.uk> <4E1AF7B8.9040006@bbc.co.uk> Message-ID: <012a01cc3fda$27023be0$4301a8c0@hpkantoor> ----- Original Message ----- From: "Tim Nicholson" To: "FFmpeg user questions and RTFMs" Sent: Monday, July 11, 2011 3:16 PM Subject: Re: [FFmpeg-user] Use of "-color_range" > On 11/07/11 08:07, Tim Nicholson wrote: >> On 10/07/11 11:10, Thomas Worth wrote: >> >>> Tim, did you ever get this to work properly? I tried transcoding some >>> v210 footage to mjpeg, but since mjpeg requires "yuvj" pixel format >>> variants, my range is always wrong because the v210 I am working with >>> is broadcast range. The mjpeg encoder apparently takes the full range >>> as input, so it looks at 0-1023 instead of 64-940. >>> >> >> well what I did was take two input png's of colour bars, one full range >> one 601 range and output an uncompressed 8 bit mov using the code below:- > > Just tried making AVI's instead and viewing them in Avid MC. Same result,, > color_range shows no effect. Eeer, not following this thread, and no idea bout all the stuff that is going on, but nevertheless: Avi and Avid? One letter difference, but i never heard that in the same sentence... How are you importing them into Avid? Do note that Avid makes totally different levels for standard import and AMA transcode. (In my limited tests the latter seems fastest and best) Or, since you're BBC, do you use WriteAvidMXF? Bouke VideoToolShed van Oldenbarneveltstraat 33 6512 AS NIJMEGEN The Netherlands +31 24 3553311 www.videotoolshed.com For large files: http://dropbox.yousendit.com/BoukeVahl998172 > -- > Tim > > http://www.bbc.co.uk/ > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in > reliance on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From gkinsey at ad-holdings.co.uk Tue Jul 12 09:06:51 2011 From: gkinsey at ad-holdings.co.uk (Gavin Kinsey) Date: Tue, 12 Jul 2011 08:06:51 +0100 Subject: [FFmpeg-user] Building ffmpeg for iPhone error. In-Reply-To: <1002CFB244ACDC489529FD187D1FB102012C58C4@ati2008.mail.aventura247.com> References: <1002CFB244ACDC489529FD187D1FB102012C58C4@ati2008.mail.aventura247.com> Message-ID: <201107120806.51471.gkinsey@ad-holdings.co.uk> On Friday 08 July 2011 17:39:55 Stephen Leicht wrote: > I'm having this same issue. Were you ever able to fix it? Revert commit e897a633cded0a8f283114e22766790f48ae8fa7 and it should build. -- Gavin Kinsey AD Holdings Plc Closed IPTV, the new safe and secure deterministic IP Video solution from Dedicated Micros, is now shipping through selected distributors. - Come and see this award winning plug and play, IP Video innovation at one of our Roadshows around the UK visit: https://www.dedicatedmicros.com/europe/ClosedIPTVRoadshow2011 - Contact our Customer Services Team for more information regarding how to enter the world of safe and secure hybrid IP and analogue video surveillance systems. From pgabor1212 at freemail.hu Tue Jul 12 09:37:58 2011 From: pgabor1212 at freemail.hu (P Gabor) Date: Tue, 12 Jul 2011 09:37:58 +0200 (CEST) Subject: [FFmpeg-user] Mpeg4 transcoding problem Message-ID: I'm using ffmpeg to encode a live mpeg4 stream to a lower resolution mjpeg stream with lower frame rate. I'm feeding the ffmpeg with depacketized RTP packets via UDP. The RTP packets come frome AXIS network cameras. In the version 4.9 it worked fine. But starting with the ffmpeg 5.0 the buffering of the input stream has changed. I've noticed, that according to the vop_time_increment_resolution field in the mpeg4 stream ffmpeg buffers more or less. Before the version 5.0 the transcoding started immediately. But with the version 5.0 ffmpeg started to buffer according to the vop_time_increment_resolution value. For some cameras this value is 100, for some cameras this value is 1000. In case of vop_time_increment_resolution=100 ffmpeg starts transcoding after 10-20 seconds, but in case of vop_time_increment_resolution=1000 it seems like it buffers till the end of times. For a live streaming system this is unacceptable. My system needs lower latency, than 0.5 seconds. I've tried to use the -re switch also, but it's useless. Is it a bug? Am i using wrong swithes in the command line? (ffmpeg -f m4v -i "udp://127.0.01?localport=30000" -r 10 -s 240x180 -sameq -j mpjpeg -vbsf mjpegadump -) Thanks for any advice! Gabor From tim.nicholson at bbc.co.uk Tue Jul 12 12:10:27 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 12 Jul 2011 11:10:27 +0100 Subject: [FFmpeg-user] Use of "-color_range" In-Reply-To: <012a01cc3fda$27023be0$4301a8c0@hpkantoor> References: <4E11D1C9.80706@bbc.co.uk> <4E122A2E.5040009@mdsh.com> <4E12B275.2050603@bbc.co.uk> <4E1318B5.3020500@mdsh.com> <4E131D68.7070407@bbc.co.uk> <4E1AA149.8070202@bbc.co.uk> <4E1AF7B8.9040006@bbc.co.uk> <012a01cc3fda$27023be0$4301a8c0@hpkantoor> Message-ID: <4E1C1D93.2000003@bbc.co.uk> On 11/07/11 15:52, bouke wrote: > > > ----- Original Message ----- > From: "Tim Nicholson" > To: "FFmpeg user questions and RTFMs" > Sent: Monday, July 11, 2011 3:16 PM > Subject: Re: [FFmpeg-user] Use of "-color_range" > > >> On 11/07/11 08:07, Tim Nicholson wrote: [...] > > Eeer, not following this thread, and no idea bout all the stuff that is > going on, but nevertheless: > Avi and Avid? One letter difference, but i never heard that in the same > sentence... First time for everything.... > How are you importing them into Avid? file->import... > Do note that Avid makes totally different levels for standard import and AMA > transcode. Depends on your default settings afaik... As it happens I am now using kdenlive's waveform monitors to check both AVI and MOV, it very usefully has a 6021/709 switch and I trust it more than quicktime to not "autorange" a file. > (In my limited tests the latter seems fastest and best) AMA varies enormously between builds.... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From idan_kahlon at hotmail.com Tue Jul 12 14:38:08 2011 From: idan_kahlon at hotmail.com (Idan) Date: Tue, 12 Jul 2011 12:38:08 +0000 (UTC) Subject: [FFmpeg-user] Help with mpeg2video encoder Message-ID: Hi all I am looking for someone who is familiar enough with ffenc_mpeg2video gstreamer element. I am having some problems with this element(it dosent output at CBR and sometimes it peeks). Is there anyone who is familiar enough with this element's source code and can help me resolve this issue. Thanks Idan From lucky.narang123 at gmail.com Tue Jul 12 16:23:51 2011 From: lucky.narang123 at gmail.com (Lucky Narang) Date: Tue, 12 Jul 2011 10:23:51 -0400 Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! In-Reply-To: <20110708163403.GA30053@geppetto> References: <20110707212702.GA10237@geppetto> <20110708163403.GA30053@geppetto> Message-ID: Thanks for your reply...with this precious inputs i will get initiated to start with the framework,i am thinking of adding a capture image option to ffplay app while video is playing,how this idea seems to you to start up with the framework.....please give your input....and any suggestions you like to give.please do so.... On Fri, Jul 8, 2011 at 12:34 PM, Stefano Sabatini wrote: > On date Friday 2011-07-08 06:23:49 +0000, Lucky encoded: >> Stefano Sabatini poste.it> writes: > [...] >> Hi, >> Thanks for your reply, >> >> 1)From where i can find the current bugs in the application,one source i see is >> ffmpeg bug reporting,is there any source from where we can find the bugs,first i >> would like to start from some simple bugs. > > Issue tracker: > https://ffmpeg.org/trac/ffmpeg/report/1 > > You can also ask on irc or on ffmpeg-devel (how a bug is "simple" to > fix depends on your interests/knowledge). > >> 2) Which examples you are talking about ? The examples mentioned in the >> documentation on ffmpeg.org or any other source you are talking about. > > I meant doc/examples in the source dir. > -- > ffmpeg-user random tip #13 > Have you ever *seen* ffmpeg? > find ~/src/ffmpeg/ -type f | xargs cat | ffmpeg -s qcif \ > ? ?-f rawvideo -i - -y ff.mpeg > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From gaoqg at net-east.com Tue Jul 12 11:24:43 2011 From: gaoqg at net-east.com (=?gb2312?B?uN/H7LnZ?=) Date: Tue, 12 Jul 2011 17:24:43 +0800 Subject: [FFmpeg-user] Dear, I need your help when using ffmpeg Message-ID: <005401cc4075$890a32c0$9b1e9840$@com> Dear all? I have some troubles in ffmpeg. I want to translate rmvb, avi, mkv, flv, f4v etc. to mp4 with ffmpeg. When translating, I find the efficiency is very low. Some time, one 100M video may need more than 20 minutes. I try to modify the parameters of ffmpeg to Improve the efficiency, finally, I failed. The CPU is following: 2X4cores 2.40GHZ, it also supports ht. When translating, I open the flag of threads as following: time ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 I check the threads of ffmpeg, details is following: [root at CRMC2 tools]# ps -Lf 17193 UID PID PPID LWP C NLWP STIME TTY STAT TIME CMD root 17193 20500 17193 97 17 16:29 pts/1 Rl+ 0:22 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17194 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17195 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17196 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17197 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17198 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17199 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17200 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17201 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17202 1 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17203 1 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17204 1 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17205 1 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17206 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17207 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17208 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 root 17193 20500 17209 0 17 16:29 pts/1 Sl+ 0:00 ./ffmpeg -threads 4 -i b7_00110.avi -s 640*480 -y test.mp4 I find that the threads do not work. What?s wrong? Need other parameters? Thanks! From cmjury at gmail.com Tue Jul 12 17:54:03 2011 From: cmjury at gmail.com (cmjury at gmail.com) Date: Tue, 12 Jul 2011 12:54:03 -0300 Subject: [FFmpeg-user] ffmpeg In-Reply-To: References: Message-ID: Hello I tried one of your tricks splitting my "zi6 quicktime mov" hd videos, i have 250 clips of around 10 or 15 seconds each, from lot of places, locationes around the globe and want to combine them in a single big clip. I can merge them very good with "mkvmerge". The problem is that the first frames of all videos in the collection (splitted with ffmpeg), are gray or with artifacts at beggining, I do not know how to explain, maybe wrong ffmpeg commands, I'm doing this (whit batch command line, which is great / fast for me): =======begin of batch file ffmpeg -i jockey_club_fpv.mov -ss 00:00:17 -t 00:00:24 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3a.mov ffmpeg -i jockey_club_fpv.mov -ss 00:04:40 -t 00:00:20 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3b.mov ffmpeg -i jockey_club_fpv.mov -ss 00:05:35 -t 00:01:00 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3c.mov ffmpeg -i jockey_club_fpv.mov -ss 00:07:11 -t 00:00:10 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3d.mov ffmpeg -i jockey_club_fpv.mov -ss 00:07:45 -t 00:00:21 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3e.mov ffmpeg -i jockey_club_fpv.mov -ss 00:08:47 -t 00:00:05 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3f.mov ffmpeg -i jockey_club_fpv.mov -ss 00:09:18 -t 00:00:10 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3g.mov ffmpeg -i jockey_club_fpv.mov -ss 00:09:35 -t 00:00:09 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3h.mov ffmpeg -i jockey_club_fpv.mov -ss 00:10:07 -t 00:00:16 -g 1 -sameq -vcodec copy -vf fade=in:0:30 partes3i.mov mkvmerge -o join4.mov partes3a.mov + partes3b.mov + partes3c.mov + partes3d.mov + partes3e.mov + partes3f.mov + partes3g.mov + partes3h.mov + partes3i.mov =======end of batch file Thanks a lot for any answer!! From westland at ll.mit.edu Tue Jul 12 22:27:26 2011 From: westland at ll.mit.edu (Natasha Westland) Date: Tue, 12 Jul 2011 16:27:26 -0400 Subject: [FFmpeg-user] Compatibility between ffmpeg 0.4.9 and 0.6.1 Message-ID: <4E1CAE2E.3000402@ll.mit.edu> Hello, In a nutshell, my question is: can video which is encoded using ffmpeg 0.4.9-pre1 (built and installed from source) be decoded by an application using ffmpeg 0.6.1 (installed from an rpm)? (ffmpeg 0.4.9-pre1 includes: avcodec, avutil, avfomat all versions 0.4.9-pre1; ffmpeg 0.6.1 includes: avcodec v52.72.2, avformat v52.64.2, avutil v50.15.1, swscale v0.11.0). More details follow: I am having problems decoding the first frame only (decode_chunks) for the streaming video (all subsequent frames seem to decode properly). In the first frame, mpeg_decode_postinit() fails (mpeg.c:1269) because my width and height in the MpegEncContext is 0. Since this did not happen prior to the upgrade and I am having mysterious X crashes in my application (RenderBadImage), I am curious as to whether the ffmpegs don't play nicely together. I noticed that the enumerated types PIXEL_FORMAT and OutputFormat have changed between releases and I wouldn't imagine them to be backwards compatible based on the insertions of new types, BUT other than problems decoding the first frame and the random crashing of my application, I wonder if perhaps there is some flag/code I need to set in order for the cross version encoding/decoding to work. The encoding is taking place in a 32 bit Fedora Core 3 box running ffmpeg -0.4.9-pre1 and the decoding is taking place on a 64 bit RHEL 5.6 using ffmpeg 0.6.1. Any pointers would be greatly appreciated. Thanks! Natasha From mcole at neptec.com Tue Jul 12 22:42:03 2011 From: mcole at neptec.com (Mcole) Date: Tue, 12 Jul 2011 13:42:03 -0700 (PDT) Subject: [FFmpeg-user] Play Camera RTSP H264 Stream Message-ID: <1310503323225-3663473.post@n4.nabble.com> I'm trying to view a H264 stream from an Avigilon camera which has the option to create a RTSP stream. I can view the stream succesfully n VLC so it seems as though the stream is correct? However, when I try to view it in ffplay or transcode it in ffmpeg I repeatedly get the PPS errors below followed by a conversion error and no video. Anyone know what the issue is or have a suggestion? Thanks, Matt ffplay rtsp://admin:admin at 169.254.229.10/defaultPrimary?streamType=u [h264 @ 0x1de8d40] no frame! [h264 @ 0x1de8d40] non-existing PPS referenced [h264 @ 0x1de8d40] non-existing PPS 0 referenced [h264 @ 0x1de8d40] decode_slice_header error [h264 @ 0x1de8d40] no frame! .... Repeated hundreds of time ..... [rtsp @ 0x1df2360] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://admin:admin at 169.254.229.10/defaultPrimary?streamType=u': Metadata: title : Live Duration: N/A, start: 0.024289, bitrate: N/A Stream #0.0: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Stream #0.1: Video: h264, 90k tbr, 90k tbn, 180k tbc Stream #0.2: Data: [0][0][0][0] / 0x0000 [buffersink @ 0x1fe9780] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' Impossible to convert between the formats supported by the filter 'src' and the filter 'auto-inserted scaler 0' [h264 @ 0x1de8d40] non-existing PPS referenced ^C Last message repeated 906 times 0KB vq=13209KB sq= 0B f=0/0 Last message repeated 906 times -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Play-Camera-RTSP-H264-Stream-tp3663473p3663473.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefano.sabatini-lala at poste.it Wed Jul 13 11:56:24 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Wed, 13 Jul 2011 11:56:24 +0200 Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! In-Reply-To: References: <20110707212702.GA10237@geppetto> <20110708163403.GA30053@geppetto> Message-ID: <20110713095624.GA7860@geppetto> On date Tuesday 2011-07-12 10:23:51 -0400, Lucky Narang encoded: > Thanks for your reply...with this precious inputs i will get initiated > to start with the framework,i am thinking of adding a capture image > option to ffplay app while video is playing,how this idea seems to you > to start up with the framework.....please give your input....and any > suggestions you like to give.please do so.... Capture support is already supported through input devices. In which multimedia area are you interested, which feature would you like to implement? From lucky.narang123 at gmail.com Wed Jul 13 16:07:05 2011 From: lucky.narang123 at gmail.com (Lucky Narang) Date: Wed, 13 Jul 2011 10:07:05 -0400 Subject: [FFmpeg-user] NewBie To FFMpeg Framework!!! In-Reply-To: <20110713095624.GA7860@geppetto> References: <20110707212702.GA10237@geppetto> <20110708163403.GA30053@geppetto> <20110713095624.GA7860@geppetto> Message-ID: I am talking about while ffplay is playing video at that time with some shortcut say [ctrl s], it will capture a image and save that image file to a particular standard location,i am basically interested in developing applications on framework.....and learning the basics of codecs like h264...the overall purpose is to learn multimedia basics....we are also thinking to add support for a new codec like aac+ or so, what all multimedia area you are talking about...also the other approach we are taking is trying to solve bugs..to learn the framework architecture and working......inputs please.... On Wed, Jul 13, 2011 at 5:56 AM, Stefano Sabatini wrote: > On date Tuesday 2011-07-12 10:23:51 -0400, Lucky Narang encoded: >> Thanks for your reply...with this precious inputs i will get initiated >> to start with the framework,i am thinking of adding a capture image >> option to ffplay app while video is playing,how this idea seems to you >> to start up with the framework.....please give your input....and any >> suggestions you like to give.please do so.... > > Capture support is already supported through input devices. In which > multimedia area are you interested, which feature would you like to > implement? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From kyle at templatedigital.com Wed Jul 13 03:27:17 2011 From: kyle at templatedigital.com (Kyle Clarke) Date: Wed, 13 Jul 2011 13:27:17 +1200 Subject: [FFmpeg-user] Compiling ffmpeg latest clone on MacOSX Snow Leopard In-Reply-To: References: Message-ID: Added the --enable-shared option to my x264 ./configure and all is well - sorry for the time wasting. Kyle On 13 July 2011 13:15, Kyle Clarke wrote: > I have the latest libx264 so can't see why there is a compile error. > > $ which x264 > /usr/local/bin/x264 > > $ /usr/local/bin/x264 --version > x264 0.116.2019 9cc407d > built on Jul 13 2011, gcc: 4.2.1 (Apple Inc. build 5664) > configuration: --bit-depth=8 > x264 license: GPL version 2 or later > > > If I can be of any additional assistance, please let me know. > Thanks > Kyle > > > -- > *Template Digital** **| **The Visual Graphics Experts** > > * > > *Kyle Clarke** **|** **P +64 7 577 1667 **| **www.templatedigital.com* > * * > > *PO Box 13 156, Tauranga** **|** **New Zealand* > > * > * > > *Follow us on Twitter: **www.twitter.com/templatedigital* > ** > > *or * > > *Read our Blog: http://blog.templatedigital.com* > > -- *Template Digital** **| **The Visual Graphics Experts** * *Kyle Clarke** **|** **P +64 7 577 1667 **| **www.templatedigital.com* * * *PO Box 13 156, Tauranga** **|** **New Zealand* * * *Follow us on Twitter: **www.twitter.com/templatedigital* ** *or * *Read our Blog: http://blog.templatedigital.com* From m.quantum at gmail.com Wed Jul 13 14:54:13 2011 From: m.quantum at gmail.com (quantum) Date: Wed, 13 Jul 2011 05:54:13 -0700 (PDT) Subject: [FFmpeg-user] undefined reference to 'ff_find_pix_fmt' In-Reply-To: References: Message-ID: <1310561653370-3664943.post@n4.nabble.com> this helped to me --enable-decoder=rawvideo -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/undefined-reference-to-ff-find-pix-fmt-tp3432249p3664943.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Wed Jul 13 20:47:34 2011 From: lou at lrcd.com (Lou) Date: Wed, 13 Jul 2011 10:47:34 -0800 Subject: [FFmpeg-user] ffmpeg In-Reply-To: References: Message-ID: <20110713104734.7340b2a5@lrcd.com> On Tue, 12 Jul 2011 12:54:03 -0300 "cmjury at gmail.com" wrote: > Hello I tried one of your tricks splitting my "zi6 quicktime mov" hd > videos, i have 250 clips of around 10 or 15 seconds each, from lot of > places, locationes around the globe and want to combine them in a > single big clip. Are all of your inputs the same frame rate, format, etc? > I can merge them very good with "mkvmerge". > The problem is that the first frames of all videos in the collection > (splitted with ffmpeg), are gray or with artifacts at beggining With what player? Does it play as expected with ffplay? > I do not know how to explain, maybe wrong ffmpeg commands, I'm > doing this (whit batch command line, which is great / fast for me): > > =======begin of batch file > ffmpeg -i jockey_club_fpv.mov -ss 00:00:17 -t 00:00:24 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3a.mov -g 1, -sameq, and -vf fade=in:0:30 options are not compatible with -vcodec copy. If you want to apply a fade in you will need to re-encode. I'm guessing that FFmpeg is using -vcodec copy and ignoring the other options. > ffmpeg -i jockey_club_fpv.mov -ss 00:04:40 -t 00:00:20 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3b.mov > ffmpeg -i jockey_club_fpv.mov -ss 00:05:35 -t 00:01:00 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3c.mov > ffmpeg -i jockey_club_fpv.mov -ss 00:07:11 -t 00:00:10 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3d.mov > ffmpeg -i jockey_club_fpv.mov -ss 00:07:45 -t 00:00:21 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3e.mov > ffmpeg -i jockey_club_fpv.mov -ss 00:08:47 -t 00:00:05 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3f.mov > ffmpeg -i jockey_club_fpv.mov -ss 00:09:18 -t 00:00:10 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3g.mov > ffmpeg -i jockey_club_fpv.mov -ss 00:09:35 -t 00:00:09 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3h.mov > ffmpeg -i jockey_club_fpv.mov -ss 00:10:07 -t 00:00:16 -g 1 -sameq > -vcodec copy -vf fade=in:0:30 partes3i.mov > mkvmerge -o join4.mov partes3a.mov + partes3b.mov + partes3c.mov + > partes3d.mov + partes3e.mov + partes3f.mov + partes3g.mov + > partes3h.mov + partes3i.mov > =======end of batch file > > Thanks a lot for any answer!! From stefano.sabatini-lala at poste.it Thu Jul 14 00:15:02 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Thu, 14 Jul 2011 00:15:02 +0200 Subject: [FFmpeg-user] ffmpeg In-Reply-To: <20110713104734.7340b2a5@lrcd.com> References: <20110713104734.7340b2a5@lrcd.com> Message-ID: <20110713221502.GI26999@geppetto> On date Wednesday 2011-07-13 10:47:34 -0800, Lou encoded: > On Tue, 12 Jul 2011 12:54:03 -0300 > "cmjury at gmail.com" wrote: > > > Hello I tried one of your tricks splitting my "zi6 quicktime mov" hd > > videos, i have 250 clips of around 10 or 15 seconds each, from lot of > > places, locationes around the globe and want to combine them in a > > single big clip. > > Are all of your inputs the same frame rate, format, etc? > > > I can merge them very good with "mkvmerge". > > The problem is that the first frames of all videos in the collection > > (splitted with ffmpeg), are gray or with artifacts at beggining > > With what player? Does it play as expected with ffplay? > > > I do not know how to explain, maybe wrong ffmpeg commands, I'm > > doing this (whit batch command line, which is great / fast for me): > > > > =======begin of batch file > > ffmpeg -i jockey_club_fpv.mov -ss 00:00:17 -t 00:00:24 -g 1 -sameq > > -vcodec copy -vf fade=in:0:30 partes3a.mov > > -g 1, -sameq, and -vf fade=in:0:30 options are not compatible with > -vcodec copy. If you want to apply a fade in you will need to > re-encode. I'm guessing that FFmpeg is using -vcodec copy and ignoring > the other options. I confirm (todo: issue a warning and/or exit since this it tricking many people). -- ffmpeg-user random tip #3 Some few multimedia formats (mpeg-1, mpeg-2:PS, DV) support physical merge consistency, which means you can merge two files with cat. E.g.: cat input1.mpeg input2.mpeg > output.mpeg See: http://www.ffmpeg.org/faq.html#SEC25 From tfoucu at gmail.com Thu Jul 14 00:58:00 2011 From: tfoucu at gmail.com (Thierry Foucu) Date: Wed, 13 Jul 2011 15:58:00 -0700 Subject: [FFmpeg-user] Status of audio filter framework Message-ID: Hi, I was wondering what is the status of the audio filter framework, and what is missing to it to have it push to head? I went to the wiki page http://wiki.multimedia.cx/index.php?title=FFmpeg_audio_API but it does not state the status What can we do to make this happen? Thanks From b_willkie at yahoo.com Thu Jul 14 03:34:21 2011 From: b_willkie at yahoo.com (Brian Willkie) Date: Wed, 13 Jul 2011 18:34:21 -0700 (PDT) Subject: [FFmpeg-user] looking for suggested reading Message-ID: <1310607261.89205.YahooMailClassic@web32505.mail.mud.yahoo.com> Hi, Can anyone suggest a good introductory book for working with digital image/video? Thanks, Brian From bouke at editb.nl Thu Jul 14 03:43:59 2011 From: bouke at editb.nl (bouke) Date: Thu, 14 Jul 2011 03:43:59 +0200 Subject: [FFmpeg-user] looking for suggested reading References: <1310607261.89205.YahooMailClassic@web32505.mail.mud.yahoo.com> Message-ID: <01d301cc41c7$83c8bd10$4301a8c0@hpkantoor> That depends... If you want to make a living out of your profession, i suggest you start with 'plumbing for dummies' (No kidding, and, do not try this at home, i'm a trained professional.) Bouke VideoToolShed van Oldenbarneveltstraat 33 6512 AS NIJMEGEN The Netherlands +31 24 3553311 www.videotoolshed.com For large files: http://dropbox.yousendit.com/BoukeVahl998172 ----- Original Message ----- From: "Brian Willkie" To: Sent: Thursday, July 14, 2011 3:34 AM Subject: [FFmpeg-user] looking for suggested reading > Hi, > > Can anyone suggest a good introductory book for working with digital > image/video? > > Thanks, > Brian > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From luissuzuki at live.com Thu Jul 14 09:46:59 2011 From: luissuzuki at live.com (Luis Suzuki) Date: Thu, 14 Jul 2011 08:46:59 +0100 Subject: [FFmpeg-user] Difficulties to compile with x264 on custom non-standard location. Message-ID: ffmpeg 0.8 needs a recent x264 version to compile,I have Ubuntu 10.04 which does not qualify,and it would be a dependency nightmare updating the necessary packages.So,I compiled the most recent x264 but I need to pass to ffmpeg configure script the customized location,eventually other parameters,and need it to ignore the system's x264 libraries.Is there anybody who knows how to do that?Anybody who has done something equivalent?ffmpeg configure script does not seem tho show any options to do that. From stefano.sabatini-lala at poste.it Thu Jul 14 13:04:27 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Thu, 14 Jul 2011 13:04:27 +0200 Subject: [FFmpeg-user] looking for suggested reading In-Reply-To: <1310607261.89205.YahooMailClassic@web32505.mail.mud.yahoo.com> References: <1310607261.89205.YahooMailClassic@web32505.mail.mud.yahoo.com> Message-ID: <20110714110427.GD13858@geppetto> On date Wednesday 2011-07-13 18:34:21 -0700, Brian Willkie encoded: > Hi, > > Can anyone suggest a good introductory book for working with digital image/video? Some good introductory books: * Video Demystified, a handbook for the digital engineer - Jack Keith - Elsevier 2004 * Digital Video Compression - Peter Symes - Mc Graw Hills 2003 * Digital Image Processing - Gonzalez, Woods - Pearson 2008 From stefano.sabatini-lala at poste.it Thu Jul 14 13:13:15 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Thu, 14 Jul 2011 13:13:15 +0200 Subject: [FFmpeg-user] Status of audio filter framework In-Reply-To: References: Message-ID: <20110714111315.GE13858@geppetto> On date Wednesday 2011-07-13 15:58:00 -0700, Thierry Foucu encoded: > Hi, > > I was wondering what is the status of the audio filter framework, and what > is missing to it to have it push to head? > > I went to the wiki page > http://wiki.multimedia.cx/index.php?title=FFmpeg_audio_API > > but it does not state the status Hi, this is the student's git clone: https://github.com/mnzaki/FFmpeg > What can we do to make this happen? My goal is to reach integration in the main repo before the end of August. You can help with patches, discussions, by encouraging the developers by sending them postcards from the beautiful places you'll visit this summer ;-), and with donations (but we still lack a functional donation mechanism). Best. -- ffmpeg-user random tip #18 Gmane ffmpeg-user archive: http://dir.gmane.org/gmane.comp.video.ffmpeg.user From wl2776 at gmail.com Thu Jul 14 13:31:55 2011 From: wl2776 at gmail.com (wl2776) Date: Thu, 14 Jul 2011 04:31:55 -0700 (PDT) Subject: [FFmpeg-user] How to transmux RTSP (mpeg-4, pcmu) to mov? Message-ID: <1310643115215-3667271.post@n4.nabble.com> Hi all. I have a video server (Moxa VPort 351), streaming video and sound over RTSP. How can I transmux its output to mov container? I tried ffmpeg -i rtsp://192.168.24.64/udpStream -acodec copy -vcodec copy -f mov rec.mov but audio and video are terribly out of sync. Here is the uncut output from ffmpeg: $ ./ffmpeg_g -y -i rtsp://192.168.24.64/udpStream -acodec copy -vcodec copy -f mov rec.mov ffmpeg version N-31407-g21a351c, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 14 2011 12:35:31 with gcc 4.4.3 configuration: --disable-optimizations --disable-postproc --enable-debug=3 --enable-static --disable-shared --cpu=i686 --disable-ffserver --enable-gpl --enable-version3 --prefix=/usr/local libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 24. 4 / 2. 24. 4 libswscale 2. 0. 0 / 2. 0. 0 [rtsp @ 0xaa78380] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://192.168.24.64/udpStream': Metadata: title : CH1 Unicast Stream comment : /dev/at2042 Duration: N/A, start: 0.768000, bitrate: N/A Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], 25 fps, 25 tbr, 90k tbn, 25 tbc Stream #0.1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Output #0, mov, to 'rec.mov': Metadata: title : CH1 Unicast Stream comment : /dev/at2042 encoder : Lavf53.5.0 Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 12:11 DAR 15:11], q=2-31, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_mulaw, 8000 Hz, 1 channels, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame= 52 fps= 6 q=-1.0 Lsize= 757kB time=00:00:09.76 bitrate= 635.1kbits/s video:704kB audio:50kB global headers:0kB muxing overhead 0.335662% Switches -vcodec copy and -acodec copy are mandatory for me, because I'm developing an application, using libav, and this app must just remux stream, not re-encode. I need therefore some hints on which switches I should specify. So, I want to have a good result with ffmpeg, and then mimic its behavior in my app. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-transmux-RTSP-mpeg-4-pcmu-to-mov-tp3667271p3667271.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From joolzg at btinternet.com Thu Jul 14 13:40:06 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 14 Jul 2011 12:40:06 +0100 (BST) Subject: [FFmpeg-user] segmenter Message-ID: <1310643606.79592.YahooMailNeo@web86408.mail.ird.yahoo.com> im trying to get a hls segmenter working but have a problem, i have downloaded a program called live-segmenter (http://www.ioncannon.net/) and modified it to build with the latest versions of ffmpeg but i have run into a problem. every time the program decides to chop the stream it calls in order ????? put_flush_packet(output_context->pb); ????? url_fclose(output_context->pb); ????? // change filename to next one ????? url_fopen(&output_context->pb, output_filename, URL_WRONLY); ????? av_write_header(output_context); But after 40 segments we get a "***stack smashing detected **** crash Also every new segment adds a program into the PAT and adds a new PMT into the stream. Now i am new to using ffmpeg as libraries so any help on fixing this would be good, i will be looking to add HLS as native once i have this working. joolz DVB Subtitles and HARD Subtitles (burnt in) are in test and looking good, patches coming soon. -------------- next part -------------- A non-text attachment was scrubbed... Name: live_segmenter.c Type: text/x-csrc Size: 12751 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile Type: application/octet-stream Size: 156 bytes Desc: not available URL: From marek.strejczek at amg.net.pl Thu Jul 14 15:31:58 2011 From: marek.strejczek at amg.net.pl (Marek Strejczek) Date: Thu, 14 Jul 2011 15:31:58 +0200 Subject: [FFmpeg-user] H263 support - looking for clarification Message-ID: <4E1EEFCE.2040406@amg.net.pl> Hi, is H263 (RFC2190) encoding/decoding supported by FFmpeg when used with RTP? I know that RFC2190 has historical status and RFC4629 should be used for carrying H263 over RTP, but my app happens to communicate with a 3rd party system that still uses RFC2190. If I understand properly: H.263 (RFC2190) has corresponding RTP payload type 34 and H.263 (RFC4629) doesn't have static payload type assigned and can use one from dynamic range 96-127. In rtp.c file I can see that even when using CODEC_ID_H263 the payload type 34 is never used, although AVRtpPayloadTypes associates PT 34 with CODEC_ID_H263. Also rtpdec_h263.c and rtpenc_h263.c files contain hints that only RFC4629 is supported. That would indicate that RFC2190 is not supported in any way, am I correct? Another question - can someone explain which H.263 RTP payloadings are handled by CODEC_ID_H263 and which by CODEC_ID_H263P? There are 6 H.263-over-RTP combinations that I'm aware of: H263 (RFC2190) H263 (RFC4629) H263+ (RFC2429) H263+ (RFC4629) H263++ (RFC2429) H263++ (RFC4629) I spent couple of hours googling for answers and analysing sources but got rather stuck, so I'll appreciate any clarification. Best regards Marek Strejczek From gkinsey at ad-holdings.co.uk Thu Jul 14 15:44:58 2011 From: gkinsey at ad-holdings.co.uk (Gavin Kinsey) Date: Thu, 14 Jul 2011 14:44:58 +0100 Subject: [FFmpeg-user] Building ffmpeg for iPhone error. In-Reply-To: <201107120806.51471.gkinsey@ad-holdings.co.uk> References: <1002CFB244ACDC489529FD187D1FB102012C58C4@ati2008.mail.aventura247.com> <201107120806.51471.gkinsey@ad-holdings.co.uk> Message-ID: <201107141444.58156.gkinsey@ad-holdings.co.uk> On Tuesday 12 July 2011 08:06:51 Gavin Kinsey wrote: > On Friday 08 July 2011 17:39:55 Stephen Leicht wrote: > > I'm having this same issue. Were you ever able to fix it? > > Revert commit e897a633cded0a8f283114e22766790f48ae8fa7 and it should > build. and 5c46ad1da049f16e670d2549161c244c6ddd68ec I don't use that codec so missed that one. -- Gavin Kinsey AD Holdings Plc Closed IPTV, the new safe and secure deterministic IP Video solution from Dedicated Micros, is now shipping through selected distributors. - Come and see this award winning plug and play, IP Video innovation at one of our Roadshows around the UK visit: https://www.dedicatedmicros.com/europe/ClosedIPTVRoadshow2011 - Contact our Customer Services Team for more information regarding how to enter the world of safe and secure hybrid IP and analogue video surveillance systems. From bouke at editb.nl Thu Jul 14 16:46:37 2011 From: bouke at editb.nl (bouke) Date: Thu, 14 Jul 2011 16:46:37 +0200 Subject: [FFmpeg-user] looking for suggested reading References: <1310607261.89205.YahooMailClassic@web32505.mail.mud.yahoo.com> <01d301cc41c7$83c8bd10$4301a8c0@hpkantoor> Message-ID: <00d901cc4234$d8bdc5f0$4301a8c0@hpkantoor> ----- Original Message ----- From: "bouke" To: "FFmpeg user questions and RTFMs" Sent: Thursday, July 14, 2011 3:43 AM Subject: Re: [FFmpeg-user] looking for suggested reading > That depends... > If you want to make a living out of your profession, i suggest you start > with 'plumbing for dummies' > (No kidding, and, do not try this at home, i'm a trained professional.) > On re-reading, this was not the best remark, since this is the FF list... (i'm subscribed to lots of content creation related lists, hence my sarcasm...) my apologies. Bouke VideoToolShed van Oldenbarneveltstraat 33 6512 AS NIJMEGEN The Netherlands +31 24 3553311 www.videotoolshed.com For large files: http://dropbox.yousendit.com/BoukeVahl998172 > > ----- Original Message ----- > From: "Brian Willkie" > To: > Sent: Thursday, July 14, 2011 3:34 AM > Subject: [FFmpeg-user] looking for suggested reading > > >> Hi, >> >> Can anyone suggest a good introductory book for working with digital >> image/video? >> >> Thanks, >> Brian >> _______________________________________________ >> 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 hwanikani at hotmail.com Thu Jul 14 19:10:35 2011 From: hwanikani at hotmail.com (HongSuk Hwan) Date: Thu, 14 Jul 2011 13:10:35 -0400 Subject: [FFmpeg-user] ffplay won't play yuv file (yuv420p). In-Reply-To: References: Message-ID: I am trying to play yuv file using ffplay. However, ffplay cannot play yuv file right now. Even if I give all the parameters required to yuv file, it just won't play saying (two lines of) "Picture size 0x0 is invalid", and "could not find codec parameters." I will tell you what exact command and parameters I used and full error messages below: Here is the steps I used: 1. go to ftp://ftp.tnt.uni-hannover.de/pub/svc/testsequences/ and download FOREMAN_352x288_30_orig_01_yuv.zip (and unzip it to get yuv) 2. Command: ffplay -f rawvideo -pix_fmt yuv420p -s 352x288 -i FOREMAN_352x288_30_orig_01.yuv Then I get this error message: C:\Users\SHH\Desktop>ffplay -f rawvideo -pix_fmt yuv420p -s 352x288 -i FOREMAN_352x288_30_orig_01.yuv ffplay version N-31247-g5d4fd1d, Copyright (c) 2003-2011 the FFmpeg developers built on Jul 4 2011 21:40:51 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect -- enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --en able-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 24. 3 / 2. 24. 3 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [IMGUTILS @ 039BF9D4] Picture size 0x0 is invalid [IMGUTILS @ 039BF8F4] Picture size 0x0 is invalid [rawvideo @ 002CF300] Could not find codec parameters (Video: rawvideo, yuv420p) [rawvideo @ 002CF300] Estimating duration from bitrate, this may be inaccurate FOREMAN_352x288_30_orig_01.yuv: could not find codec parameters I tried BOTH windows and linux builds, and both of them have same problems. Can anyone help me with this problem? From victorpaesa at googlemail.com Thu Jul 14 19:40:10 2011 From: victorpaesa at googlemail.com (=?UTF-8?Q?V=C3=ADctor_Paesa?=) Date: Thu, 14 Jul 2011 19:40:10 +0200 Subject: [FFmpeg-user] Difficulties to compile with x264 on custom non-standard location. In-Reply-To: References: Message-ID: Hi, On Thu, Jul 14, 2011 at 09:46, Luis Suzuki wrote: > > ffmpeg 0.8 needs a recent x264 version to compile,I have Ubuntu 10.04 which does not qualify,and it would be a dependency nightmare updating the necessary packages.So,I compiled the most recent x264 but I need to pass to ffmpeg configure script the customized location,eventually other parameters,and need it to ignore the system's x264 libraries.Is there anybody who knows how to do that?Anybody who has done something equivalent?ffmpeg configure script does not seem tho show any options to do that. Ahem, configure does have those options. Try using something like this: --extra-ldflags=-L/usr/local/lib --extra-cflags=-I/usr/local/include Regards, V?ctor From marc at hallmarcwebsites.com Fri Jul 15 00:25:33 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Thu, 14 Jul 2011 18:25:33 -0400 Subject: [FFmpeg-user] mp4 settings Message-ID: Hello list, first time on this list. I am writing a PHP script using ffmpeg to transcode uploaded video files to mp4. the line currently looks like this: ffmpeg -i INPUT_FILE -f mp4 -vcodec libx264 -r 25 -b 864k -acodec libfaac -s 480x320 -aspect 3:2 -qscale 1 -ac 2 -ar 44100 -ab 96k -async 1 OUTPUT_FILE.mp4 These are the target settings I used with a Windows app called SUPERC: 1) Select output container = mp4 2) Select the output video codec = h/264/avc 3) Select the output audio codec = AAC LC 4) Video size = 480:320 5) Aspect = 3:2 6) Frame/Sec = 25 7) Bitrate kbps = 864 8) Options = Hi Quality, 48K Audio 9) Sample Freq = 44100 10) Channels = 2 11) Bitrate kbps = 96 Make sure it is set for streaming When I use SUPER the file it outputs is playable on everything I have thrown at it and I'm not getting the same result with my ffmpeg settings. What am I doing wrong? Thanks Marc Hall From lou at lrcd.com Fri Jul 15 01:05:25 2011 From: lou at lrcd.com (Lou) Date: Thu, 14 Jul 2011 15:05:25 -0800 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: <20110714230525.GA13241@lrcd.com> On Thu, Jul 14, 2011 at 06:25:33PM -0400, HallMarc Websites wrote: > Hello list, first time on this list. > > I am writing a PHP script using ffmpeg to transcode uploaded video files to > mp4. > > the line currently looks like this: > > ffmpeg -i INPUT_FILE -f mp4 -vcodec libx264 -r 25 -b 864k -acodec libfaac -s > 480x320 -aspect 3:2 -qscale 1 -ac 2 -ar 44100 -ab 96k -async 1 > OUTPUT_FILE.mp4 I would give you several recommendadtions for this command, but I'm not totally sure what you're trying to do. I assume you want to take a variety of inputs and resize them all to be 480 pixels wide while keeping the aspect ratio, and then playing these outputs on your web site with a Flash player such as JW Player or Flowplayer. What distro/OS/system are you using? Can you show the output of "ffmpeg"? > These are the target settings I used with a Windows app called SUPERC: > > > > 1) Select output container = mp4 > > 2) Select the output video codec = h/264/avc > > 3) Select the output audio codec = AAC LC > > 4) Video size = 480:320 > > 5) Aspect = 3:2 > > 6) Frame/Sec = 25 > > 7) Bitrate kbps = 864 > > 8) Options = Hi Quality, 48K Audio > > 9) Sample Freq = 44100 > > 10) Channels = 2 > > 11) Bitrate kbps = 96 > > > > Make sure it is set for streaming > > When I use SUPER the file it outputs is playable on everything I have thrown > at it and I'm not getting the same result with my ffmpeg settings. What am I > doing wrong? What is "everything"? Can you be more specific than "not getting the same result"? > Thanks > > Marc Hall From marc at hallmarcwebsites.com Fri Jul 15 01:46:08 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Thu, 14 Jul 2011 19:46:08 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: <20110714230525.GA13241@lrcd.com> References: <20110714230525.GA13241@lrcd.com> Message-ID: > > ffmpeg -i INPUT_FILE -f mp4 -vcodec libx264 -r 25 -b 864k -acodec > > libfaac -s > > 480x320 -aspect 3:2 -qscale 1 -ac 2 -ar 44100 -ab 96k -async 1 > > OUTPUT_FILE.mp4 > > I would give you several recommendadtions for this command, but I'm not > totally sure what you're trying to do. I assume you want to take a variety of > inputs and resize them all to be 480 pixels wide while keeping the aspect > ratio, and then playing these outputs on your web site with a Flash player > such as JW Player or Flowplayer. > > What distro/OS/system are you using? Can you show the output of > "ffmpeg"? CentOS LAMP I could put something together... I guess I was kind of expecting someone to be able to look what I had written for ffmpeg and compare it to what I was using as settings for another program.. > > > These are the target settings I used with a Windows app called SUPERC: > > > > > > > > 1) Select output container = mp4 > > > > 2) Select the output video codec = h/264/avc > > > > 3) Select the output audio codec = AAC LC > > > > 4) Video size = 480:320 > > > > 5) Aspect = 3:2 > > > > 6) Frame/Sec = 25 > > > > 7) Bitrate kbps = 864 > > > > 8) Options = Hi Quality, 48K Audio > > > > 9) Sample Freq = 44100 > > > > 10) Channels = 2 > > > > 11) Bitrate kbps = 96 > > > > > > > > Make sure it is set for streaming > > > > When I use SUPER the file it outputs is playable on everything I have > > thrown at it and I'm not getting the same result with my ffmpeg > > settings. What am I doing wrong? > > What is "everything"? Can you be more specific than "not getting the same > result"? Desktop - Windows - Chrome, IE (Back to 7), Safari, Opera, Firefox Mac OSX - Safari, Chrome, Firefox Mobile devices - Andriod 2.1u1, 2.2.2, assuming 3x , webkit browser, Iphone 3 and 4, iPad 1 and 2 > > > Thanks > > > > Marc Hall > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From dev at rarevision.com Fri Jul 15 11:42:20 2011 From: dev at rarevision.com (Thomas Worth) Date: Fri, 15 Jul 2011 02:42:20 -0700 Subject: [FFmpeg-user] Does avformat_free_context free automatically free associated codec contexts? In-Reply-To: References: Message-ID: avformat.h says this: ?* avformat_free_context() can be used to free the context and ?* everything allocated by the framework within it. Does that mean that associated codec contexts are freed as well? I am calling av_free() on the output codec contexts separately, but sometimes the program crashes at avformat_free_context() when I free my output format context. If I take out the av_free() calls to the codec contexts and just call avformat_free_context(), everything seems to work fine. Do I need to free the output codec contexts separately or can I rely on avformat_free_context() to do this for me? From marc at hallmarcwebsites.com Fri Jul 15 16:51:14 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Fri, 15 Jul 2011 10:51:14 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: <20110714230525.GA13241@lrcd.com> Message-ID: UPDATE: As it turns out, SUPER transcoder also makes use of ffmpeg (DirectShow for dec). Unfortunately it doesn't work for Linux. Maybe I need to ask them how I translate my settings in their GUI to ffmpeg CLI. From h.reindl at thelounge.net Fri Jul 15 17:04:15 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 15 Jul 2011 17:04:15 +0200 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: <20110714230525.GA13241@lrcd.com> Message-ID: <4E2056EF.7070902@thelounge.net> Am 15.07.2011 16:51, schrieb HallMarc Websites: > UPDATE: As it turns out, SUPER transcoder also makes use of ffmpeg > (DirectShow for dec). Unfortunately it doesn't work for Linux. Maybe I need > to ask them how I translate my settings in their GUI to ffmpeg CLI. my windows times are long ago but is there no way to find out the whole command line of a running app - if they really use the cli as wrapper instead of "ffmpeg-libs" or the dll-uquivalent -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From marc at hallmarcwebsites.com Fri Jul 15 17:10:44 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Fri, 15 Jul 2011 11:10:44 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: <4E2056EF.7070902@thelounge.net> References: <20110714230525.GA13241@lrcd.com> <4E2056EF.7070902@thelounge.net> Message-ID: I opened the profile page that saves my settings for SUPER and just shows them as list of variables and values; not much help there. Being really new to ffmpeg usage, I'm just learning what's what. Frustrating being so close to a solution. From h.reindl at thelounge.net Fri Jul 15 17:15:17 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 15 Jul 2011 17:15:17 +0200 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: <20110714230525.GA13241@lrcd.com> <4E2056EF.7070902@thelounge.net> Message-ID: <4E205985.3070200@thelounge.net> Am 15.07.2011 17:10, schrieb HallMarc Websites: > I opened the profile page that saves my settings for SUPER and just shows > them as list of variables and values; not much help there. Being really new > to ffmpeg usage, I'm just learning what's what. Frustrating being so close > to a solution hm what about post them maybe this are simply ffmpeg params or somebody can translate -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From dave.bevan at bbc.co.uk Fri Jul 15 17:13:35 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Fri, 15 Jul 2011 16:13:35 +0100 Subject: [FFmpeg-user] mp4 settings References: <20110714230525.GA13241@lrcd.com> <4E2056EF.7070902@thelounge.net> Message-ID: >I opened the profile page that saves my settings for SUPER and just shows >them as list of variables and values; not much help there. Being really new >to ffmpeg usage, I'm just learning what's what. Frustrating being so close >to a solution. Email the results to the list and I'm sure some will be able to make an educated guess. -- Dave. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3415 bytes Desc: not available URL: From pssturges at gmail.com Fri Jul 15 17:30:03 2011 From: pssturges at gmail.com (pssturges) Date: Fri, 15 Jul 2011 08:30:03 -0700 (PDT) Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <1309907563897-3647334.post@n4.nabble.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> <4E130B27.2080808@gmail.com> <1309907563897-3647334.post@n4.nabble.com> Message-ID: <1310743803453-3670232.post@n4.nabble.com> Hi everyone. Still no closer to working this out. Anyone got any more thoughts? I'd love to get this working. Phil -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4-tp3645627p3670232.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From marc at hallmarcwebsites.com Fri Jul 15 17:29:58 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Fri, 15 Jul 2011 11:29:58 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: <4E205985.3070200@thelounge.net> References: <20110714230525.GA13241@lrcd.com> <4E2056EF.7070902@thelounge.net> <4E205985.3070200@thelounge.net> Message-ID: Go back to my original message to see the info I already sent to the list Marc Hall HallMarc Websites www.HallMarcWebsites.com 610-446-3346 > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Reindl Harald > Sent: Friday, July 15, 2011 11:15 AM > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] mp4 settings > > > > Am 15.07.2011 17:10, schrieb HallMarc Websites: > > I opened the profile page that saves my settings for SUPER and just > > shows them as list of variables and values; not much help there. Being > > really new to ffmpeg usage, I'm just learning what's what. Frustrating > > being so close to a solution > > hm what about post them > maybe this are simply ffmpeg params or somebody can translate > From marc at hallmarcwebsites.com Fri Jul 15 17:44:13 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Fri, 15 Jul 2011 11:44:13 -0400 Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <1310743803453-3670232.post@n4.nabble.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> <4E130B27.2080808@gmail.com> <1309907563897-3647334.post@n4.nabble.com> <1310743803453-3670232.post@n4.nabble.com> Message-ID: Try using SUPER on the original avi and see what you get as output. I went through this frustration of trying to get a single file that would play on most devices and SUPER (Starting to feel like a salesman for them even though it is freeware!) was the only one I tested that succeeded in producing a quality file that met my client's needs. It is windows based and I can throw up the settings I used if needed. Marc Hall HallMarc Websites www.HallMarcWebsites.com 610-446-3346 > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of pssturges > Sent: Friday, July 15, 2011 11:30 AM > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Interlaced avi h264 to mp4 > > Hi everyone. Still no closer to working this out. Anyone got any more > thoughts? I'd love to get this working. > > Phil > > -- > View this message in context: http://ffmpeg- > users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4- > tp3645627p3670232.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From pssturges at gmail.com Fri Jul 15 17:53:36 2011 From: pssturges at gmail.com (pssturges) Date: Fri, 15 Jul 2011 08:53:36 -0700 (PDT) Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> <4E130B27.2080808@gmail.com> <1309907563897-3647334.post@n4.nabble.com> <1310743803453-3670232.post@n4.nabble.com> Message-ID: <1310745216301-3670285.post@n4.nabble.com> HallMarc Websites wrote: > > Try using SUPER on the original avi and see what you get as output. I went > through this frustration of trying to get a single file that would play on > most devices and SUPER (Starting to feel like a salesman for them even > though it is freeware!) was the only one I tested that succeeded in > producing a quality file that met my client's needs. It is windows based > and I can throw up the settings I used if needed. > > Marc Hall > HallMarc Websites > www.HallMarcWebsites.com > 610-446-3346 > > >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of pssturges >> Sent: Friday, July 15, 2011 11:30 AM >> To: ffmpeg-user at ffmpeg.org >> Subject: Re: [FFmpeg-user] Interlaced avi h264 to mp4 >> >> Hi everyone. Still no closer to working this out. Anyone got any more >> thoughts? I'd love to get this working. >> >> Phil >> >> -- >> View this message in context: http://ffmpeg- >> users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4- >> tp3645627p3670232.html >> Sent from the FFmpeg-users mailing list archive at Nabble.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 > I've never heard of SUPER. Is it a muxer? Could you provide a link to their website and the settings also. Thanks Phil -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4-tp3645627p3670285.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From marc at hallmarcwebsites.com Fri Jul 15 18:13:38 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Fri, 15 Jul 2011 12:13:38 -0400 Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <1310745216301-3670285.post@n4.nabble.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> <4E130B27.2080808@gmail.com> <1309907563897-3647334.post@n4.nabble.com> <1310743803453-3670232.post@n4.nabble.com> <1310745216301-3670285.post@n4.nabble.com> Message-ID: NOTE: The settings you see below are the same settings I am attempting translate for use with ffmpeg on my server. This is my current command line: ffmpeg -i INPUT_FILE -f mp4 -vcodec libx264 -r 25 -b 864k -acodec libfaac -s 480x320 -aspect 3:2 -qscale 1 -ac 2 -ar 44100 -ab 96k -async 1 OUTPUT_FILE.mp4 http://www.erightsoft.com/SUPER.html Follow these steps to encode video for all platforms (as of 10/2010) and a lot of the settings are your choice and depend the input file and what you are trying to reach. These settings were used to put out small, yet hi quality videos and they worked for desktop browsers and the main mobile devices, Android 1.5 - 2.1u1, iPhone 3 & 4, iPad 1 & 2. I don't have access to other BB, Symbian, pre-smartphone or Windows Mobile devices to check if they accept my videos or not. 1) Select output container = mp4 2) Select the output video codec = h/264/avc 3) Select the output audio codec = AAC LC VIDEO SETTINGS SECTION: 4) Video size = 480:320 5) Aspect = 3:2 6) Frame/Sec = 25 7) Bitrate kbps = 864 8) Options = Hi Quality, 48K Audio AUDIO SETTINGS SECTION: 9) Sample Freq = 44100 10) Channels = 2 11) Bitrate kbps = 96 Make sure it is set for streaming Marc Hall HallMarc Websites www.HallMarcWebsites.com 610-446-3346 > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of pssturges > Sent: Friday, July 15, 2011 11:54 AM > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Interlaced avi h264 to mp4 > > > HallMarc Websites wrote: > > > > Try using SUPER on the original avi and see what you get as output. I > > went through this frustration of trying to get a single file that > > would play on most devices and SUPER (Starting to feel like a salesman > > for them even though it is freeware!) was the only one I tested that > > succeeded in producing a quality file that met my client's needs. It > > is windows based and I can throw up the settings I used if needed. > > > > Marc Hall > > HallMarc Websites > > www.HallMarcWebsites.com > > 610-446-3346 > > > > > >> -----Original Message----- > >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > >> bounces at ffmpeg.org] On Behalf Of pssturges > >> Sent: Friday, July 15, 2011 11:30 AM > >> To: ffmpeg-user at ffmpeg.org > >> Subject: Re: [FFmpeg-user] Interlaced avi h264 to mp4 > >> > >> Hi everyone. Still no closer to working this out. Anyone got any more > >> thoughts? I'd love to get this working. > >> > >> Phil > >> > >> -- > >> View this message in context: http://ffmpeg- > >> users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4- > >> tp3645627p3670232.html > >> Sent from the FFmpeg-users mailing list archive at Nabble.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 > > > > I've never heard of SUPER. Is it a muxer? Could you provide a link to their > website and the settings also. > Thanks > Phil > > -- > View this message in context: http://ffmpeg- > users.933282.n4.nabble.com/Interlaced-avi-h264-to-mp4- > tp3645627p3670285.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From andycivil at gmail.com Fri Jul 15 18:29:02 2011 From: andycivil at gmail.com (Andy Civil) Date: Fri, 15 Jul 2011 12:29:02 -0400 Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <1310745216301-3670285.post@n4.nabble.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> <4E130B27.2080808@gmail.com> <1309907563897-3647334.post@n4.nabble.com> <1310743803453-3670232.post@n4.nabble.com> <1310745216301-3670285.post@n4.nabble.com> Message-ID: <4E206ACE.8060503@gmail.com> On 2011-07-15 11:53 AM, pssturges wrote: > > I've never heard of SUPER. Is it a muxer? Could you provide a link to their > website and the settings also. > Thanks > Phil You'll find it on the eRightSoft website (that's a domain) but you should know that they're 'persona non grata', because they ignore the licence terms. They incorporate FFmpeg into their software, but what they provide is anything but open. You cannot disable the check for a new version, and they have a particularly annoying exit procedure requiring several clicks, and if you try to bypass it by killing the process, it crashes your computer. -- Andy From sexymotherfakir at americanscum.net Fri Jul 15 18:36:53 2011 From: sexymotherfakir at americanscum.net (Marco) Date: Fri, 15 Jul 2011 16:36:53 +0000 (UTC) Subject: [FFmpeg-user] Make FFMPEG ignore 0 kb frames Message-ID: I've been recording some flv streams using RTMPDump and one of the problems I've encountered is that with live streams it tends to start the timestamp of the next instance of a stream right after the previous one. So for instance if the first instance of a stream went from 0 to 30 minutes the next instance of the stream's video would start at 30:01. So I'm trying to convert the files in FFMPEG and the problem I'm encountering is that if I just convert the files as is it takes forever and I end up with a video that has all the blank time before the video starts. Now I can tell FFMPEG to simply start at the point where the video starts but that would mean that for every video I convert I would have to figure that out. What I'm hoping is that there would be someway for me to tell FFMPEG to simply skip any frames that have 0 kb of video which would hopefully in turn cut out the blank parts of the video. If anyone could point me in the right direction of doing something like this or has some other suggestions as to a way to rectify my problem I would appreciate it. From marc at hallmarcwebsites.com Fri Jul 15 18:45:37 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Fri, 15 Jul 2011 12:45:37 -0400 Subject: [FFmpeg-user] Interlaced avi h264 to mp4 In-Reply-To: <4E206ACE.8060503@gmail.com> References: <1309863240275-3645627.post@n4.nabble.com> <4E12F4BF.6050900@gmail.com> <1309868782027-3645804.post@n4.nabble.com> <4E130B27.2080808@gmail.com> <1309907563897-3647334.post@n4.nabble.com> <1310743803453-3670232.post@n4.nabble.com> <1310745216301-3670285.post@n4.nabble.com> <4E206ACE.8060503@gmail.com> Message-ID: > You'll find it on the eRightSoft website (that's a domain) but you should know > that they're 'persona non grata', because they ignore the licence terms. They > incorporate FFmpeg into their software, but what they provide is anything > but open. You cannot disable the check for a new version, and they have a > particularly annoying exit procedure requiring several clicks, and if you try to > bypass it by killing the process, it crashes your computer. You can block it with your firewall if you feel you must and you can turn off the credit screen in the settings window. As far as licensing issues; Really not trying to start a heated discussion about MPEG, MPEG LA, or any other licensing pool. Over the past three days I have read arguments from both sides of this argument and the newer argument over webm(PV8) and it just makes me feel like nobody knows how to act like an adult anymore. Between the major IT corporations and our US congress; YEESH! And now back to our regularly scheduled program.... > > -- > Andy > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From amalgamatedclyde at gmail.com Fri Jul 15 18:56:35 2011 From: amalgamatedclyde at gmail.com (Clyde Tressler) Date: Fri, 15 Jul 2011 09:56:35 -0700 (PDT) Subject: [FFmpeg-user] Force first frame to be full, non blurred I frame In-Reply-To: References: Message-ID: <1310748995306-3670447.post@n4.nabble.com> i found the patch at http://m1.archiveorange.com/m/att/yR2T4/ArchiveOrange_Dherq4xBIdZc883qEg8FnrkcGiYa.patch can you give me advice on how to apply it? thanks! clyde -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Force-first-frame-to-be-full-non-blurred-I-frame-tp3497003p3670447.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ultrajoe at spamcop.net Sat Jul 16 04:22:53 2011 From: ultrajoe at spamcop.net (Joe Sewell) Date: Fri, 15 Jul 2011 22:22:53 -0400 Subject: [FFmpeg-user] Patch for building ffmpeg on OS X Tiger Message-ID: <20110715222253.hibu2bv1hwocww04-hygenwbr@webmail.spamcop.net> I'm a lowly MacPorts user, running on an "ancient" (by today's standards) PowerMac G4. I discovered that the current ffmpeg build available via MacPorts (version 0.7.1) doesn't build under Tiger. The MacPorts team informed me that the -dylib-compatibility-version switch needs to have a non-zero value under Tiger. I'm attaching a patch file (not created with git ... sorry, but I don't build ffmpeg using git) created using diff -u. If you UNIX geeks can't handle that, then I apologize in advance; somebody else who knows what they're doing should've fixed it first. :) -------------- next part -------------- --- configure.orig 2011-06-21 15:29:25.000000000 -0400 +++ configure 2011-07-14 19:36:45.000000000 -0400 @@ -2435,7 +2435,12 @@ enable malloc_aligned gas="gas-preprocessor.pl $cc" enabled ppc && add_asflags -force_cpusubtype_ALL - SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)' + build_os_ver=$(uname -r) + if test ${build_os_ver:0:1} = 8; then + SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION)' + else + SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)' + fi enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress strip="${strip} -x" add_ldflags -Wl,-dynamic,-search_paths_first From lou at lrcd.com Sat Jul 16 04:38:10 2011 From: lou at lrcd.com (Lou) Date: Fri, 15 Jul 2011 18:38:10 -0800 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: <20110714230525.GA13241@lrcd.com> Message-ID: <20110715183810.1a225b94@lrcd.com> On Thu, 14 Jul 2011 19:46:08 -0400 "HallMarc Websites" wrote: > > > ffmpeg -i INPUT_FILE -f mp4 -vcodec libx264 -r 25 -b 864k -acodec > > > libfaac -s > > > 480x320 -aspect 3:2 -qscale 1 -ac 2 -ar 44100 -ab 96k -async 1 > > > OUTPUT_FILE.mp4 > > > > I would give you several recommendadtions for this command, but I'm > > not totally sure what you're trying to do. I assume you want to > > take a variety > of > > inputs and resize them all to be 480 pixels wide while keeping the > > aspect ratio, and then playing these outputs on your web site with > > a Flash player such as JW Player or Flowplayer. Is my assumption correct? You didn't answer. > > What distro/OS/system are you using? Can you show the output of > > "ffmpeg"? > CentOS LAMP > I could put something together... > I guess I was kind of expecting someone to be able to look what I had > written for ffmpeg and compare it to what I was using as settings for > another program.. The other program doesn't matter. You need describe in detail what you are trying to do, and then I, or someone else on the list, can give you an example or recommendation based on your needs or requirements. To answer the question, yes, it appears that you are basically copying the settings that the other program is claiming to be using in addition to several options you added (never use qscale with libx264 by the way). However, this is irrelevant because the other program could be doing something completely different, and blindly copying "settings" from one program to another probably won't give you the results you want as it appears you've encountered. > > > When I use SUPER the file it outputs is playable on everything I > > > have thrown at it and I'm not getting the same result with my > > > ffmpeg settings. What am I doing wrong? > > > > What is "everything"? Can you be more specific than "not getting > > the same result"? > Desktop - Windows - Chrome, IE (Back to 7), Safari, Opera, Firefox > Mac OSX - Safari, Chrome, Firefox > Mobile devices - Andriod 2.1u1, 2.2.2, assuming 3x , webkit browser, > Iphone 3 and 4, iPad 1 and 2 You listed a number of browsers and devices, but you didn't describe how you're providing the video to these browsers and devices. You also did not elaborate what you meant by "same result". From thomas at pixelpartner.de Sat Jul 16 17:53:23 2011 From: thomas at pixelpartner.de (PixelPartner) Date: Sat, 16 Jul 2011 17:53:23 +0200 (CEST) Subject: [FFmpeg-user] There is maybe still a bug with the videofilter "split" Message-ID: <921105892.4496.1310831603919.JavaMail.open-xchange@oxgw09.schlund.de> I want to process both halves of a 3D-movie seperately and then recombine them in another layout. The video filter option seems perfect for this, except that since 7 months the split filter does not work as documented. When I call ...? ffmpeg ??? -i "Tangled_3D_Trailer.wmv" \ ??? -vf "[in] split [a][b];[a] crop=960:1080:0:0,scale=768:432,pad=768:1024:0:40 [L]; \ ???????? [b] crop=960:1080:0:0,scale=768:432 [R]; [L][R] overlay=0:552 [out]" \ ??? -b 8500K -y out.mp4 I get the message, that the split buffer is not accessible for the given frame number "request_frame() called with no available frame!" Here comes the full listing :? ? ffmpeg -i "Tangled_3D_Trailer.wmv" -vf "[in] select=1,split [a][b];[a] crop=960:1080:960:0,scale=768:432,pad=768:1024:0:552 [L];[b] crop=960:1080:0:0,scale=768:432 [R]; [L][R] overlay=0:40 [out]" -b 8500K -y out.mp4 ffmpeg version N-31461-g371888c, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jul 14 2011 15:01:44 with gcc 4.6.1 ? configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enable- bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-lib mp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbi s --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib ? libavutil??? 51. 11. 0 / 51. 11. 0 ? libavcodec?? 53.? 7. 0 / 53.? 7. 0 ? libavformat? 53.? 5. 0 / 53.? 5. 0 ? libavdevice? 53.? 2. 0 / 53.? 2. 0 ? libavfilter?? 2. 25. 0 /? 2. 25. 0 ? libswscale??? 2.? 0. 0 /? 2.? 0. 0 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1) Input #0, asf, from 'Tangled_3D_Trailer.wmv': ? Duration: 00:02:15.40, start: 0.000000, bitrate: 11414 kb/s ??? Stream #0.0: Video: wmv2, yuv420p, 1920x1080, 25 tbr, 1k tbn, 1k tbc ??? Stream #0.1: Audio: wmav2, 48000 Hz, 2 channels, s16, 160 kb/s [buffer @ 039FA040] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [crop @ 01D3E4E0] w:1920 h:1080 -> w:960 h:1080 [scale @ 01D3E280] w:960 h:1080 fmt:yuv420p -> w:768 h:432 fmt:yuv420p flags:0x4 [pad @ 01D3EF80] w:768 h:432 -> w:768 h:1024 x:0 y:552 color:0x108080FF[yuva] [crop @ 01D3F6C0] w:1920 h:1080 -> w:960 h:1080 [scale @ 01D3FD00] w:960 h:1080 fmt:yuv420p -> w:768 h:432 fmt:yuva420p flags:0x4 [overlay @ 01D3FEC0] main w:768 h:1024 fmt:yuv420p overlay x:0 y:40 w:768 h:432 fmt:yuva420p [overlay @ 01D3FEC0] main_tb:1/1000000 overlay_tb:1/1000000 -> tb:1/1000000 exact:1 Output #0, mp4, to 'out.mp4': ? Metadata: ??? encoder???????? : Lavf53.5.0 ??? Stream #0.0: Video: mpeg4, yuv420p, 768x1024, q=2-31, 8500 kb/s, 25 tbn, 25 tbc ??? Stream #0.1: Audio: aac, 48000 Hz, 2 channels, s16, 64 kb/s Stream mapping: ? Stream #0.0 -> #0.0 ? Stream #0.1 -> #0.1 Press [q] to stop, [?] for help [buffer @ 039FA040] request_frame() called with no available frame! ??? Last message repeated 621 times7933kB time=00:00:24.68 bitrate=2633.1kbits/s request_frame() called with no available frame! frame=? 623 fps= 17 q=2.0 Lsize=??? 8010kB time=00:00:24.91 bitrate=2633.3kbits/s video:7797kB audio:197kB global headers:0kB muxing overhead 0.192338% Received signal 2: terminating. ? ^^^^^ Aborted with Ctrl.C ^^^^^^? ? Does anyone have a hint what to do else, or is it a bug (planned, but not yet implemented feature) as I suspect.? ? best wishes to the team and community? ? Thomas Kumlehn From chieff7 at gmail.com Sat Jul 16 19:29:54 2011 From: chieff7 at gmail.com (Ron Tsoref) Date: Sat, 16 Jul 2011 20:29:54 +0300 Subject: [FFmpeg-user] Live encoding to MPEG-4 and streaming Message-ID: Is FFmpeg capable of live encoding a video feed from a Blackmagic card to MPEG-4 feed and then live stream it through http or rtmp? If so, can anybody guide me where should I start from? Thanks. From 8libra at gmail.com Sat Jul 16 20:12:02 2011 From: 8libra at gmail.com (Alan Tu) Date: Sat, 16 Jul 2011 14:12:02 -0400 Subject: [FFmpeg-user] "Application provided invalid, non monotonically increasing dts to muxer"; Comcast/Ceton/Windows Media Center/.WTV Message-ID: Hi, I want to use ffmpeg to convert MPEG-2 streams captured using my Ceton cable card. However I'm getting the dreaded not monotonically increasing error. I've done some research and tried various things, none of which has worked. I'd like to know (1) what is causing this problem, and/or (2) how to fix it? I'm going to error on the side of providing more information about my setup as I don't know what is causing the problem. I have Comcast digital cable service. The coax connects the cable outlet in the wall to an Motorola BDA-S2 amplified splitter. The splitter outputs to a cable modem and the PC. The signal to noise ratio is 34-37 db, and with the amplifier the signal level is 0-14 dbmv depending on channel. (With a non-amplified standard splitter the signal level is -15 to -3 dbmv.) The Windows 7 home premium 64-bit PC has a Ceton InfiniTV card, which accepts a cable card from Comcast. The cable card is successfully activated. I can successfully watch live and recorded TV in Windows Media Center. The channels in question are set to "copy free". I have a binary build of a recent snapshot of ffmpeg. I want to convert the WTV files generated by Windows Media Center into smaller formats for portable and storage applications. But despite trying various HDTV and standard definition channels, videos of any significant length crap out with this error. Let's take a typical example: Command:ffmpeg -i burn_notice.wtv Output: ffmpeg version N-31461-g371888c, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 14 2011 15:05:53 with gcc 4.6.1 ... Duration: 01:01:57.48, start: 1.998251, bitrate: 13518 kb/s Stream #0.0[0x16](eng): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s Stream #0.1[0x17]: Video: mpeg2video (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 20000 kb/s, 839.16 fps, 29.97 tbr, 10000k tbn, 59.94 tbc Stream #0.2[0x18]: Subtitle: [0][0][0][0] / 0x0000 This is to get an idea of the video file I'm working with. Command:ffmpeg -i burn_notice.wtv -an -vcodec copy out.mp4 Output: ffmpeg version N-31461-g371888c, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 14 2011 15:05:53 with gcc 4.6.1 ... [wtv @ 00000000004BD7C0] unsupported chunk:f71002b9ee7ced4ebd7f0540358618a1 [mpeg2video @ 000000000059F100] mpeg_decode_postinit() failure Last message repeated 28 times ... frame=58442 fps=1700 q=-1.0 size= 3124676kB time=00:32:31.40 bitrate=13117.4kbits/s [mpeg @ 00000000004E76C0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 176284380 >= 176284380 av_interleaved_write_frame(): Invalid argument I'm simply trying to copy the video stream (no transcoding, no audio) into an MPEG container. I have tried converting from a .DVR-MS file. I have tried converting to a .mp4 container. I have tried standard definition files instead of high definition files. I have tried files from different channels. I have not gotten any files of any useful lengths to convert. I have successfully copied out the audio streams, though I have seen errors doing that too. Usually the two DTS values that are causing the error are equal. If it was a transmission error from Comcast (bit flipping), one would think the DTS values causing ffmpeg to crap out would not be equal almost every time. Thoughts? Thanks in advance for taking a look at this issue. Alan From tommiyau at gmail.com Sun Jul 17 01:29:58 2011 From: tommiyau at gmail.com (tommiy) Date: Sat, 16 Jul 2011 16:29:58 -0700 (PDT) Subject: [FFmpeg-user] TS to MP4 Audio Sync issues Message-ID: <1310858998909-3672620.post@n4.nabble.com> I'm trying to take a ts stream to a mp4 but for some reason the end mp4 is always out of sync. It doesn;t sem to suffer drift its just off from start to finish. I get the error message below when encoding but can not determine if this is the reason for the audio sync issues or is unrelated. Can some on tell me the right direction to proceed in to try and get my encoding to work. On the off chance that the ts stream had incorrcet indices I also passed it through megrepair but the end result was the same. Thanks. ffmpeg version N-31329-g58257ea, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 8 2011 22:30:39 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable- runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 24. 3 / 2. 24. 3 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mp3 @ 00000000019424E0] Header missing [mpegts @ 000000000031EC40] *max_analyze_duration 5000000 reached at 5016000* [NULL @ 000000000031FA00] *start time is not set in av_estimate_timings_from_pts* Input #0, mpegts, from 'test 6_Fixed.ts': Duration: 00:31:38.36, start: 2.771000, bitrate: 2875 kb/s Program 1 Stream #0.0[0x11]: Video: mpeg2video (Main), yuv420p, 704x576 [PAR 16:11 DAR 16:9], 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x14]: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s I've also tried -maxanlyze being the entire length of the ts file but that didn;t help. Suggestions please? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/TS-to-MP4-Audio-Sync-issues-tp3672620p3672620.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stanci10 at hotmail.com Mon Jul 18 04:49:50 2011 From: stanci10 at hotmail.com (Stani S.) Date: Sun, 17 Jul 2011 19:49:50 -0700 (PDT) Subject: [FFmpeg-user] PSNR per frame Message-ID: <1310957390227-3674366.post@n4.nabble.com> Hi, I was wondering if is there a way to obtain the PSNR for each frame encoded with x264. The --psnr option in ffmpeg should write psnr for each frame in vstat file, but instead I'm getting INF value for each frame's psnr. How at the end of encoding the ffmpeg calculates the average psnr? Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/PSNR-per-frame-tp3674366p3674366.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tim.nicholson at bbc.co.uk Mon Jul 18 10:09:58 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 18 Jul 2011 09:09:58 +0100 Subject: [FFmpeg-user] Building with openjpeg support Message-ID: <4E23EA56.6040602@bbc.co.uk> I have just tried adding in jpeg2000 support to my usual build by adding in the "--enable-libopenjpeg" directive to my configure script and ensuring I have libopenjpeg-devel etc installed, but configure fails with a "ERROR: libopenjpeg not found" Poking around I find:- ldconfig -p | grep openjpeg libopenjpeg.so.2 (libc6,x86-64) => /usr/lib64/libopenjpeg.so.2 libopenjpeg.so (libc6,x86-64) => /usr/lib64/libopenjpeg.so and I have:- /usr/include/openjpeg/openjpeg.h Other ffmpeg dependencies such as /usr/include/lame/lame.h are all found fine, its only openjpeg that seems to be at issue. Can somebody with a bit more experience of the intricacies of linking point me in the right direction please? -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From nicolas.george at normalesup.org Mon Jul 18 10:14:13 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 18 Jul 2011 10:14:13 +0200 Subject: [FFmpeg-user] Building with openjpeg support In-Reply-To: <4E23EA56.6040602@bbc.co.uk> References: <4E23EA56.6040602@bbc.co.uk> Message-ID: <20110718081413.GA4448@phare.normalesup.org> Le decadi 30 messidor, an CCXIX, Tim Nicholson a ?crit?: > I have just tried adding in jpeg2000 support to my usual build by > adding in the "--enable-libopenjpeg" directive to my configure > script and ensuring I have libopenjpeg-devel etc installed, but > configure fails with a "ERROR: libopenjpeg not found" Look at the end of config.log for the complete error log. 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 tim.nicholson at bbc.co.uk Mon Jul 18 10:41:27 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 18 Jul 2011 09:41:27 +0100 Subject: [FFmpeg-user] Building with openjpeg support In-Reply-To: <20110718081413.GA4448@phare.normalesup.org> References: <4E23EA56.6040602@bbc.co.uk> <20110718081413.GA4448@phare.normalesup.org> Message-ID: <4E23F1B7.10808@bbc.co.uk> On 18/07/11 09:14, Nicolas George wrote: > Le decadi 30 messidor, an CCXIX, Tim Nicholson a ?crit : >> I have just tried adding in jpeg2000 support to my usual build by >> adding in the "--enable-libopenjpeg" directive to my configure >> script and ensuring I have libopenjpeg-devel etc installed, but >> configure fails with a "ERROR: libopenjpeg not found" > > Look at the end of config.log for the complete error log. cc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 -fomit-frame-pointer -pthread -I/usr/include/dirac -I/usr/include/freetype2 -E -o /tmp/ffconf.i2yuxBPg.o /tmp/ffconf.Pdmsc3R3.c /tmp/ffconf.Pdmsc3R3.c:1:22: fatal error: openjpeg.h: No such file or directory compilation terminated. ERROR: libopenjpeg not found ...is not much more revealing.... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From nicolas.george at normalesup.org Mon Jul 18 11:17:08 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 18 Jul 2011 11:17:08 +0200 Subject: [FFmpeg-user] Building with openjpeg support In-Reply-To: <4E23F1B7.10808@bbc.co.uk> References: <4E23EA56.6040602@bbc.co.uk> <20110718081413.GA4448@phare.normalesup.org> <4E23F1B7.10808@bbc.co.uk> Message-ID: <20110718091707.GA15268@phare.normalesup.org> Le decadi 30 messidor, an CCXIX, Tim Nicholson a ?crit?: > cc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 > -fomit-frame-pointer -pthread -I/usr/include/dirac > -I/usr/include/freetype2 -E -o /tmp/ffconf.i2yuxBPg.o > /tmp/ffconf.Pdmsc3R3.c > /tmp/ffconf.Pdmsc3R3.c:1:22: fatal error: openjpeg.h: No such file > or directory > compilation terminated. > ERROR: libopenjpeg not found > > ...is not much more revealing.... It is, since you said you had /usr/include/openjpeg/openjpeg.h instead of the expected /usr/include/openjpeg.h. Apparently, your package manager thought it was a funny thing to do to move the header file from its standard, expected place. You can try giving --extra-cflags="-I/usr/incalude/openjpeg" to configure and see if it works. 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 cholet at logilune.com Mon Jul 18 11:34:30 2011 From: cholet at logilune.com (=?iso-8859-1?Q?=C9ric_Cholet?=) Date: Mon, 18 Jul 2011 11:34:30 +0200 Subject: [FFmpeg-user] broken libx264 -profile Message-ID: <36FD0836-BB14-4F9B-B96F-C1A6ABD2FABB@logilune.com> This used to work with ffmpeg pulled from git on July 1st (version N-31126-g46edd3a): ffmpeg -i foo.dv -f mp4 -vcodec libx264 -preset medium -profile baseline foo.mp4 With ffmpeg pulled this morning (version N-31548-g78accb8) I get this error: [NULL @ 0x80240df00] [Eval @ 0x7fffffffd120] Undefined constant or missing '(' in 'baseline' [NULL @ 0x80240df00] Unable to parse option value "baseline" [NULL @ 0x80240df00] Error setting option profile to value baseline. -- ?ric Cholet From tim.nicholson at bbc.co.uk Mon Jul 18 11:39:11 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 18 Jul 2011 10:39:11 +0100 Subject: [FFmpeg-user] Building with openjpeg support In-Reply-To: <20110718091707.GA15268@phare.normalesup.org> References: <4E23EA56.6040602@bbc.co.uk> <20110718081413.GA4448@phare.normalesup.org> <4E23F1B7.10808@bbc.co.uk> <20110718091707.GA15268@phare.normalesup.org> Message-ID: <4E23FF3F.1050901@bbc.co.uk> On 18/07/11 10:17, Nicolas George wrote: > Le decadi 30 messidor, an CCXIX, Tim Nicholson a ?crit : >> cc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE >> -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -std=c99 >> -fomit-frame-pointer -pthread -I/usr/include/dirac >> -I/usr/include/freetype2 -E -o /tmp/ffconf.i2yuxBPg.o >> /tmp/ffconf.Pdmsc3R3.c >> /tmp/ffconf.Pdmsc3R3.c:1:22: fatal error: openjpeg.h: No such file >> or directory >> compilation terminated. >> ERROR: libopenjpeg not found >> >> ...is not much more revealing.... > > It is, since you said you had /usr/include/openjpeg/openjpeg.h instead of > the expected /usr/include/openjpeg.h. Apparently, your package manager > thought it was a funny thing to do to move the header file from its > standard, expected place. > I wondered that, but I noticed that libraries like lame and opencore-amrnb are similarly subfoldered so the "expected place" seems to be "/usr/include" and its subdirs. So Just what is the standard? > You can try giving --extra-cflags="-I/usr/incalude/openjpeg" to configure > and see if it works. Or maybe symlink the headers back to the "proper" place... Thanks for confirming for me. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From tim.nicholson at bbc.co.uk Mon Jul 18 11:50:08 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 18 Jul 2011 10:50:08 +0100 Subject: [FFmpeg-user] Building with openjpeg support In-Reply-To: <4E23FF3F.1050901@bbc.co.uk> References: <4E23EA56.6040602@bbc.co.uk> <20110718081413.GA4448@phare.normalesup.org> <4E23F1B7.10808@bbc.co.uk> <20110718091707.GA15268@phare.normalesup.org> <4E23FF3F.1050901@bbc.co.uk> Message-ID: <4E2401D0.40209@bbc.co.uk> On 18/07/11 10:39, Tim Nicholson wrote: > On 18/07/11 10:17, Nicolas George wrote: >>[..] Apparently, your package manager >> thought it was a funny thing to do to move the header file from its >> standard, expected place. >> >> You can try giving --extra-cflags="-I/usr/incalude/openjpeg" to configure >> and see if it works. > > Or maybe symlink the headers back to the "proper" place... > Unfortunately it still fails.... /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libopenjpeg.so: undefined reference to `floor' and other similar references so it looks like a version problem as well... > > Thanks for confirming for me. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From nicolas.george at normalesup.org Mon Jul 18 11:51:15 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 18 Jul 2011 11:51:15 +0200 Subject: [FFmpeg-user] Building with openjpeg support In-Reply-To: <4E23FF3F.1050901@bbc.co.uk> References: <4E23EA56.6040602@bbc.co.uk> <20110718081413.GA4448@phare.normalesup.org> <4E23F1B7.10808@bbc.co.uk> <20110718091707.GA15268@phare.normalesup.org> <4E23FF3F.1050901@bbc.co.uk> Message-ID: <20110718095115.GA21673@phare.normalesup.org> Le decadi 30 messidor, an CCXIX, Tim Nicholson a ?crit?: > I wondered that, but I noticed that libraries like lame and > opencore-amrnb are similarly subfoldered so the "expected place" > seems to be "/usr/include" and its subdirs. So Just what is the > standard? Each library author choses how its headers are installed, there is no universal standard. The choice would mostly depend on whether there is a single header file or a whole bunch of them. > Or maybe symlink the headers back to the "proper" place... Doing things in the directories controlled by your package system is usually a bad practice: if somehow in two years' time an upgrade brings you a package with the header at its proper place, it will cause an error, and you will have forgotten everything about that discussion. Filing a bug to your distro, on the other hand, would possibly be a good idea. If your distro is common enough, you can also try to convince the maintainer of libopenjpeg in ffmpeg to add a check for it. 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 nicolas.george at normalesup.org Mon Jul 18 12:28:17 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Mon, 18 Jul 2011 12:28:17 +0200 Subject: [FFmpeg-user] Building with openjpeg support In-Reply-To: <4E2401D0.40209@bbc.co.uk> References: <4E23EA56.6040602@bbc.co.uk> <20110718081413.GA4448@phare.normalesup.org> <4E23F1B7.10808@bbc.co.uk> <20110718091707.GA15268@phare.normalesup.org> <4E23FF3F.1050901@bbc.co.uk> <4E2401D0.40209@bbc.co.uk> Message-ID: <20110718102817.GA30662@phare.normalesup.org> Le decadi 30 messidor, an CCXIX, Tim Nicholson a ?crit?: > Unfortunately it still fails.... > > /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../lib64/libopenjpeg.so: > undefined reference to `floor' > > and other similar references so it looks like a version problem as well... --extra-libs=-lm or something similar. should fix that. You may want to run "pkg-config --cflags --libs openjpeg" to see the options it suggests. 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 batguano999 at hotmail.com Mon Jul 18 17:45:15 2011 From: batguano999 at hotmail.com (bat guano) Date: Mon, 18 Jul 2011 15:45:15 +0000 Subject: [FFmpeg-user] I can't mux pcm into mka with FFmpeg. Message-ID: Hi I have a problem when muxing pcm audio in mka. If I record system sound it's OK with these commands:- ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio1.wav ffmpeg -y -f alsa -ac 2 -i pulse -acodec flac audio2.mka But if I try to put pcm into mka it gives "non monotonically increasing dts" errors:- ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio3.mka This also causes problems when muxing pcm with x264 in mkv for screencasts- ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 15 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast video.mkv I must use acodec flac instead of pcm_s16le. I'm using Ubuntu 10.04. Is there something wrong with FFmpeg, or is it a problem with my system? ******************************************************************** Bad result using mka:- ron at ubuntu:~$ ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio3.mka ffmpeg version N-31556-g3c3daf4, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jul 18 2011 16:18:44 with gcc 4.4.3 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --disable-encoder=vorbis --enable-libvo-amrwbenc --enable-libvo-aacenc ? libavutil??? 51. 11. 0 / 51. 11. 0 ? libavcodec?? 53.? 8. 0 / 53.? 8. 0 ? libavformat? 53.? 6. 0 / 53.? 6. 0 ? libavdevice? 53.? 2. 0 / 53.? 2. 0 ? libavfilter?? 2. 27. 0 /? 2. 27. 0 ? libswscale??? 2.? 0. 0 /? 2.? 0. 0 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 [alsa @ 0xa03b380] Estimating duration from bitrate, this may be inaccurate Input #0, alsa, from 'pulse': ? Duration: N/A, start: 1311002693.496999, bitrate: N/A ??? Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Output #0, matroska, to 'audio3.mka': ? Metadata: ??? encoder???????? : Lavf53.6.0 ??? Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream mapping: ? Stream #0.0 -> #0.0 Press [q] to stop, [?] for help [matroska @ 0xa04fd20] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 1 >= 1 av_interleaved_write_frame(): Invalid argument ******************************************************************** Good result using wav:- ron at ubuntu:~$ ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio1.wav ffmpeg version N-31556-g3c3daf4, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jul 18 2011 16:18:44 with gcc 4.4.3 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --disable-encoder=vorbis --enable-libvo-amrwbenc --enable-libvo-aacenc ? libavutil??? 51. 11. 0 / 51. 11. 0 ? libavcodec?? 53.? 8. 0 / 53.? 8. 0 ? libavformat? 53.? 6. 0 / 53.? 6. 0 ? libavdevice? 53.? 2. 0 / 53.? 2. 0 ? libavfilter?? 2. 27. 0 /? 2. 27. 0 ? libswscale??? 2.? 0. 0 /? 2.? 0. 0 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 [alsa @ 0xa667380] Estimating duration from bitrate, this may be inaccurate Input #0, alsa, from 'pulse': ? Duration: N/A, start: 1311002922.604172, bitrate: N/A ??? Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Output #0, wav, to 'audio1.wav': ? Metadata: ??? encoder???????? : Lavf53.6.0 ??? Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream mapping: ? Stream #0.0 -> #0.0 Press [q] to stop, [?] for help size=??? 3402kB time=00:00:18.14 bitrate=1536.0kbits/s??? video:0kB audio:3402kB global headers:0kB muxing overhead 0.001263% Received signal 2: terminating. From austin.murphy at gmail.com Mon Jul 18 17:52:56 2011 From: austin.murphy at gmail.com (Austin Murphy) Date: Mon, 18 Jul 2011 11:52:56 -0400 Subject: [FFmpeg-user] I can't mux pcm into mka with FFmpeg. In-Reply-To: References: Message-ID: Try explicitly setting the format type with " -f matroska " right before the output file name. Austin On Mon, Jul 18, 2011 at 11:45 AM, bat guano wrote: > > Hi > I have a problem when muxing pcm audio in mka. > > If I record system sound it's OK with these commands:- > > ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio1.wav > ffmpeg -y -f alsa -ac 2 -i pulse -acodec flac audio2.mka > > But if I try to put pcm into mka it gives "non monotonically increasing dts" errors:- > ffmpeg -y -f alsa -ac 2 -i pulse -acodec pcm_s16le audio3.mka > > This also causes problems when muxing pcm with x264 in mkv for screencasts- > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 15 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast video.mkv > From marc at hallmarcwebsites.com Mon Jul 18 18:13:30 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Mon, 18 Jul 2011 12:13:30 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: <20110714230525.GA13241@lrcd.com> References: <20110714230525.GA13241@lrcd.com> Message-ID: Can some please tell me why the flurry of seemingly unrelated questions are being thrown at me when all I asked was simple and straight-forward. There were no lines to be read between. I just wanted someone that knows ffmpeg; hence, why I came to this list, to take a look at the command line I wrote to send to an instance of ffmpeg installed on my dedicated LAMP box and the settings I was expecting and see if I: 1) wrote something wrong - syntax error 2) if I missed anything. That's it. Nothing more. So why the inquisition? > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Lou > Sent: Thursday, July 14, 2011 7:05 PM > To: FFmpeg user questions and RTFMs > Subject: Re: [FFmpeg-user] mp4 settings > > On Thu, Jul 14, 2011 at 06:25:33PM -0400, HallMarc Websites wrote: > > Hello list, first time on this list. > > > > I am writing a PHP script using ffmpeg to transcode uploaded video > > files to mp4. > > > > the line currently looks like this: > > > > ffmpeg -i INPUT_FILE -f mp4 -vcodec libx264 -r 25 -b 864k -acodec > > libfaac -s > > 480x320 -aspect 3:2 -qscale 1 -ac 2 -ar 44100 -ab 96k -async 1 > > OUTPUT_FILE.mp4 > > I would give you several recommendadtions for this command, but I'm not > totally sure what you're trying to do. I assume you want to take a variety of > inputs and resize them all to be 480 pixels wide while keeping the aspect > ratio, and then playing these outputs on your web site with a Flash player > such as JW Player or Flowplayer. > > What distro/OS/system are you using? Can you show the output of > "ffmpeg"? > > > These are the target settings I used with a Windows app called SUPERC: > > > > > > > > 1) Select output container = mp4 > > > > 2) Select the output video codec = h/264/avc > > > > 3) Select the output audio codec = AAC LC > > > > 4) Video size = 480:320 > > > > 5) Aspect = 3:2 > > > > 6) Frame/Sec = 25 > > > > 7) Bitrate kbps = 864 > > > > 8) Options = Hi Quality, 48K Audio > > > > 9) Sample Freq = 44100 > > > > 10) Channels = 2 > > > > 11) Bitrate kbps = 96 > > > > > > > > Make sure it is set for streaming > > > > When I use SUPER the file it outputs is playable on everything I have > > thrown at it and I'm not getting the same result with my ffmpeg > > settings. What am I doing wrong? > > What is "everything"? Can you be more specific than "not getting the same > result"? > > > Thanks > > > > Marc Hall > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From austin.murphy at gmail.com Mon Jul 18 19:04:23 2011 From: austin.murphy at gmail.com (Austin Murphy) Date: Mon, 18 Jul 2011 13:04:23 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: On Thu, Jul 14, 2011 at 6:25 PM, HallMarc Websites wrote: ... > I am writing a PHP script using ffmpeg to transcode uploaded video files to > mp4. ... > ffmpeg -i INPUT_FILE -f mp4 -vcodec libx264 -r 25 -b 864k -acodec libfaac -s > 480x320 -aspect 3:2 -qscale 1 -ac 2 -ar 44100 -ab 96k -async 1 > OUTPUT_FILE.mp4 ... > Make sure it is set for streaming > > When I use SUPER the file it outputs is playable on everything I have thrown > at it and I'm not getting the same result with my ffmpeg settings. What am I > doing wrong? An MP4 file is not really streamable until you run qt-faststart on it. There is some component of the file that is written at the end of the file when the encoding is completed. To stream, that component needs to be moved to the front of the file. That is all qt-faststart does. Austin From diego.cdomingos2010 at gmail.com Mon Jul 18 22:04:24 2011 From: diego.cdomingos2010 at gmail.com (Diego Carvalho) Date: Mon, 18 Jul 2011 17:04:24 -0300 Subject: [FFmpeg-user] VP7 support Message-ID: Does ffmpeg support or intend to support decoding the VP7 codec? I saw it supports VP8 through libvpx. What about VP7? Is it possible to decode it? I'm asking because I know it is a proprietary codec. Thanks in advance. From gavr.mail at gmail.com Tue Jul 19 06:32:04 2011 From: gavr.mail at gmail.com (Kirill Gavrilov) Date: Tue, 19 Jul 2011 08:32:04 +0400 Subject: [FFmpeg-user] VP7 support In-Reply-To: References: Message-ID: Hi, On Tue, Jul 19, 2011 at 12:04 AM, Diego Carvalho < diego.cdomingos2010 at gmail.com> wrote: > Does ffmpeg support or intend to support decoding the VP7 codec? > ffmpeg -codecs: > D VSD vp3 On2 VP3 > D V D vp5 On2 VP5 > D V D vp6 On2 VP6 > D V D vp6a On2 VP6 (Flash version, with alpha channel) > D V D vp6f On2 VP6 (Flash version) > D V D vp8 On2 VP8 > so there are no vp7 in the list. I saw it supports VP8 through libvpx > FFmpeg supports *encoding *using libvpx. Decoding code is included to FFmpeg sources and doesn't require libvpx library. Notice also that while vpX family has common algorithmic parts these codecs still *different*. And libvpx was opened only for vp8 version (and probably later versions). So in general, I think this is not yet possible to decode vp7 stream using FFmpeg (the simplest way - just to try this!). Notice also that vp6 decoding was originally supported by FFmpeg more early than libvpx was published and is limited to progressive video (video encoded with interlaced flag will not be decoded using FFmpeg). On Tue, Jul 19, 2011 at 12:04 AM, Diego Carvalho < diego.cdomingos2010 at gmail.com> wrote: > Does ffmpeg support or intend to support decoding the VP7 codec? I saw > it supports VP8 through libvpx. What about VP7? Is it possible to > decode it? I'm asking because I know it is a proprietary codec. Thanks > in advance. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > ----------------------------------------------- Kirill Gavrilov, Software designer. From linh.pham at orientsoftware.net Tue Jul 19 04:54:53 2011 From: linh.pham at orientsoftware.net (Linh Pham Ngoc) Date: Tue, 19 Jul 2011 09:54:53 +0700 Subject: [FFmpeg-user] ffmpeg Message-ID: <000b01cc45bf$3be3b2b0$b3ab1810$@pham@orientsoftware.net> Hi Mr/Mss. I'm Linh, I have some questions on ffmpeg, 1. How to convert video (any format type to flv type) ? 2. How to insert the first frame of video into the video to show present content (the first picture of video). 3. Flixengine and ffmpeg, which is different ? and which is stronger? Thanks Pham Ngoc Linh Skype: phngoclinh Yahoo: phngoclinh at yahoo.com.vn From Michael.Feurstein at wu.ac.at Tue Jul 19 10:51:55 2011 From: Michael.Feurstein at wu.ac.at (Feurstein, Michael) Date: Tue, 19 Jul 2011 10:51:55 +0200 Subject: [FFmpeg-user] Play Camera RTSP H264 Stream In-Reply-To: <1310503323225-3663473.post@n4.nabble.com> References: <1310503323225-3663473.post@n4.nabble.com> Message-ID: We have a Sanyo HD network cam producing the same kind of feedback, however only in the beginning. I can successfully transcode / passthrough the stream. What is your ffmpeg command to transcode? I'm using sth like ffmpeg -i rtsp://admin:admin at 192.168.1.9/VideoInput/1/h264/1 -vcodec copy -acodec copy -f mpegts udp://224.0.0.1:1234 Also, what is the feedback you get from ffmpeg transcoding (I'm guessing the same as in ffplay)? What confuses me is this Stream #0.2: Data: what's that? Maybe mapping the file manually could help, therefore ignoring the Data stream e.g. -map 0.0:1.0 -map 0.1:1.1 -Michael -----Urspr?ngliche Nachricht----- Von: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] Im Auftrag von Mcole Gesendet: Dienstag, 12. Juli 2011 22:42 An: ffmpeg-user at mplayerhq.hu Betreff: [FFmpeg-user] Play Camera RTSP H264 Stream I'm trying to view a H264 stream from an Avigilon camera which has the option to create a RTSP stream. I can view the stream succesfully n VLC so it seems as though the stream is correct? However, when I try to view it in ffplay or transcode it in ffmpeg I repeatedly get the PPS errors below followed by a conversion error and no video. Anyone know what the issue is or have a suggestion? Thanks, Matt ffplay rtsp://admin:admin at 169.254.229.10/defaultPrimary?streamType=u [h264 @ 0x1de8d40] no frame! [h264 @ 0x1de8d40] non-existing PPS referenced [h264 @ 0x1de8d40] non-existing PPS 0 referenced [h264 @ 0x1de8d40] decode_slice_header error [h264 @ 0x1de8d40] no frame! .... Repeated hundreds of time ..... [rtsp @ 0x1df2360] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://admin:admin at 169.254.229.10/defaultPrimary?streamType=u': Metadata: title : Live Duration: N/A, start: 0.024289, bitrate: N/A Stream #0.0: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Stream #0.1: Video: h264, 90k tbr, 90k tbn, 180k tbc Stream #0.2: Data: [0][0][0][0] / 0x0000 [buffersink @ 0x1fe9780] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' Impossible to convert between the formats supported by the filter 'src' and the filter 'auto-inserted scaler 0' [h264 @ 0x1de8d40] non-existing PPS referenced ^C Last message repeated 906 times 0KB vq=13209KB sq= 0B f=0/0 Last message repeated 906 times -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Play-Camera-RTSP-H264-Stream-tp3663473p3663473.html Sent from the FFmpeg-users mailing list archive at Nabble.com. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mcole at neptec.com Tue Jul 19 14:06:12 2011 From: mcole at neptec.com (Mcole) Date: Tue, 19 Jul 2011 05:06:12 -0700 (PDT) Subject: [FFmpeg-user] Play Camera RTSP H264 Stream In-Reply-To: References: <1310503323225-3663473.post@n4.nabble.com> Message-ID: <1311077172458-3677983.post@n4.nabble.com> Thanks Micheal. The Stream #0.2 turned out to be metadata which was sent along with the rtsp stream. I was able to remove both it and audio we can now play the streams using VLC and Gstreamer but still not with ffplay (same errors as ffmpeg output). The new output is: [h264 @ 00000000019FF020] non-existing PPS referenced [h264 @ 00000000019FF020] non-existing PPS 0 referenced [h264 @ 00000000019FF020] decode_slice_header error [h264 @ 00000000019FF020] no frame! [rtsp @ 0000000001AFF920] Estimating duration from bitrate, this may be inaccura te Input #0, rtsp, from 'rtsp://admin:admin at 169.254.229.12/NoMetadata?streamType=u' : Metadata: title : Live Duration: N/A, start: 47721.544100, bitrate: N/A Stream #0.0: Video: h264, 90k tbr, 90k tbn, 180k tbc [ffsink @ 0000000004E00880] auto-inserting filter 'auto-inserted scaler 0' betwe en the filter 'src' and the filter 'out' Impossible to convert between the formats supported by the filter 'src' and the filter 'auto-inserted scaler 0' 1311076450.42 A-V: 0.000 s:0.0 aq= 0KB vq= 151KB sq= 0B f=0/0 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Play-Camera-RTSP-H264-Stream-tp3663473p3677983.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rhodri at kynesim.co.uk Tue Jul 19 17:00:12 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 19 Jul 2011 16:00:12 +0100 Subject: [FFmpeg-user] Specifying input and output formats with pipes Message-ID: Hi folks, I have a mildly convoluted transcoding requirement that I'm having difficulty translating into command-line parameters to ffmpeg. I'm using ffmpeg as part of a Unix pipe chain, so the input is coming on stdin and the output must go via stdout. My input stream is MPEG-4/2 wrapped in an H.222 transport stream. For a first step I wanted MPEG-4/10 output, so I hauled out libx264: > ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log That appeared to work, as far as I can tell, though ffmpeg was very sniffy about the headers. My test clip is too short to show anything much (thanks everso, dear customer), but something is getting through the experience. So far, so tentatively good. Now, for obscure and hopefully temporary reasons, I need to wrap that H.264 output in MP4. How on earth do I do that? All I can glean from the docs is that I should give my output file a ".mp4" suffix and all will be well, but of course my "output file" is a pipe. There doesn't seem to be any option to tell ffmpeg I want both H.264 transcode and MP4 wrapping. Help? -- Rhodri James Kynesim Ltd From belcampo at zonnet.nl Tue Jul 19 17:42:44 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 19 Jul 2011 17:42:44 +0200 Subject: [FFmpeg-user] Specifying input and output formats with pipes In-Reply-To: References: Message-ID: <4E25A5F4.5020602@zonnet.nl> On 07/19/11 17:00, Rhodri James wrote: > Hi folks, > > I have a mildly convoluted transcoding requirement that I'm having > difficulty translating into command-line parameters to ffmpeg. > > I'm using ffmpeg as part of a Unix pipe chain, so the input is coming on > stdin and the output must go via stdout. My input stream is MPEG-4/2 > wrapped in an H.222 transport stream. For a first step I wanted > MPEG-4/10 output, so I hauled out libx264: > >> ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log > > That appeared to work, as far as I can tell, though ffmpeg was very > sniffy about the headers. My test clip is too short to show anything > much (thanks everso, dear customer), but something is getting through > the experience. So far, so tentatively good. > > Now, for obscure and hopefully temporary reasons, I need to wrap that > H.264 output in MP4. How on earth do I do that? All I can glean from the > docs is that I should give my output file a ".mp4" suffix and all will > be well, but of course my "output file" is a pipe. There doesn't seem to > be any option to tell ffmpeg I want both H.264 transcode and MP4 wrapping. The docs should also have told that -f mp4 makes this work, the extension-thing is 'guessing'. With mp4 it's not that difficult but a .mpg extension could mean ps or ts, for program or transport-stream. > > Help? > From rhodri at kynesim.co.uk Tue Jul 19 18:08:03 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 19 Jul 2011 17:08:03 +0100 Subject: [FFmpeg-user] Specifying input and output formats with pipes In-Reply-To: <4E25A5F4.5020602@zonnet.nl> References: <4E25A5F4.5020602@zonnet.nl> Message-ID: On Tue, 19 Jul 2011 16:42:44 +0100, belcampo wrote: > On 07/19/11 17:00, Rhodri James wrote: >> Hi folks, >> >> I have a mildly convoluted transcoding requirement that I'm having >> difficulty translating into command-line parameters to ffmpeg. >> >> I'm using ffmpeg as part of a Unix pipe chain, so the input is coming on >> stdin and the output must go via stdout. My input stream is MPEG-4/2 >> wrapped in an H.222 transport stream. For a first step I wanted >> MPEG-4/10 output, so I hauled out libx264: OK, so I completely confused myself describing this: what I have is PES-wrapped MPEG-4/2, and what I initially wanted was MPEG-4/10 in a transport stream. That should make my command line make a whole lot more sense. >> >>> ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log >> >> That appeared to work, as far as I can tell, though ffmpeg was very >> sniffy about the headers. My test clip is too short to show anything >> much (thanks everso, dear customer), but something is getting through >> the experience. So far, so tentatively good. >> >> Now, for obscure and hopefully temporary reasons, I need to wrap that >> H.264 output in MP4. How on earth do I do that? All I can glean from the >> docs is that I should give my output file a ".mp4" suffix and all will >> be well, but of course my "output file" is a pipe. There doesn't seem to >> be any option to tell ffmpeg I want both H.264 transcode and MP4 >> wrapping. > The docs should also have told that -f mp4 makes this work, the > extension-thing is 'guessing'. With mp4 it's not that difficult but a > .mpg extension could mean ps or ts, for program or transport-stream. The docs keep leaving me thinking "-f" is forcing _input_ format, but that's a separate matter. Unfortunately replacing "-f mpegts" with "-f mp4" fails for me. Here's the (trimmed) log: ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 6 2011 19:37:39 with gcc 4.5.2 configuration: --enable-gpl --enable-libx264 libavutil 50. 40. 1 / 50. 40. 1 libavcodec 52.120. 0 / 52.120. 0 libavformat 52.108. 0 / 52.108. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 77. 0 / 1. 77. 0 libswscale 0. 13. 0 / 0. 13. 0 [*snip whinging about incomplete headers*] Input #0, mpeg, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0.0[0x1e0]: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 30k tbr, 90k tbn, 30k tbc [buffer @ 0x211f0e0] w:320 h:240 pixfmt:yuv420p [libx264 @ 0x211ec20] Default settings detected, using medium profile [libx264 @ 0x211ec20] using SAR=1/1 [libx264 @ 0x211ec20] MB rate (9000000) > level limit (983040) [libx264 @ 0x211ec20] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x211ec20] profile High, level 5.1 [libx264 @ 0x211ec20] 264 - core 106 Ubuntu_2:0.106.1741-3 - H.264/MPEG-4 AVC codec - Copyleft 2003-2010 - 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=1 sliced_threads=0 nr=0 decimate=1 interlaced=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=200 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mp4 @ 0x211dbe0] muxer does not support non seekable output Output #0, mp4, to 'pipe:': Metadata: encoder : Lavf52.108.0 Stream #0.0: Video: libx264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 30k tbc Stream mapping: Stream #0.0 -> #0.0 Could not write header for output file #0 (incorrect codec parameters ?) -- Rhodri James Kynesim Ltd From belcampo at zonnet.nl Tue Jul 19 18:15:57 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 19 Jul 2011 18:15:57 +0200 Subject: [FFmpeg-user] Specifying input and output formats with pipes In-Reply-To: References: <4E25A5F4.5020602@zonnet.nl> Message-ID: <4E25ADBD.8040307@zonnet.nl> On 07/19/11 18:08, Rhodri James wrote: > On Tue, 19 Jul 2011 16:42:44 +0100, belcampo wrote: > >> On 07/19/11 17:00, Rhodri James wrote: >>> Hi folks, >>> >>> I have a mildly convoluted transcoding requirement that I'm having >>> difficulty translating into command-line parameters to ffmpeg. >>> >>> I'm using ffmpeg as part of a Unix pipe chain, so the input is coming on >>> stdin and the output must go via stdout. My input stream is MPEG-4/2 >>> wrapped in an H.222 transport stream. For a first step I wanted >>> MPEG-4/10 output, so I hauled out libx264: > > OK, so I completely confused myself describing this: what I have is > PES-wrapped MPEG-4/2, and what I initially wanted was MPEG-4/10 in a > transport stream. That should make my command line make a whole lot > more sense. > >>> >>>> ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log >>> >>> That appeared to work, as far as I can tell, though ffmpeg was very >>> sniffy about the headers. My test clip is too short to show anything >>> much (thanks everso, dear customer), but something is getting through >>> the experience. So far, so tentatively good. >>> >>> Now, for obscure and hopefully temporary reasons, I need to wrap that >>> H.264 output in MP4. How on earth do I do that? All I can glean from the >>> docs is that I should give my output file a ".mp4" suffix and all will >>> be well, but of course my "output file" is a pipe. There doesn't seem to >>> be any option to tell ffmpeg I want both H.264 transcode and MP4 >>> wrapping. > >> The docs should also have told that -f mp4 makes this work, the >> extension-thing is 'guessing'. With mp4 it's not that difficult but a >> .mpg extension could mean ps or ts, for program or transport-stream. > > The docs keep leaving me thinking "-f" is forcing _input_ format, > but that's a separate matter. Unfortunately replacing "-f mpegts" with > "-f mp4" fails for me. Here's the (trimmed) log: > > > ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers > built on Jul 6 2011 19:37:39 with gcc 4.5.2 > configuration: --enable-gpl --enable-libx264 > libavutil 50. 40. 1 / 50. 40. 1 > libavcodec 52.120. 0 / 52.120. 0 > libavformat 52.108. 0 / 52.108. 0 > libavdevice 52. 4. 0 / 52. 4. 0 > libavfilter 1. 77. 0 / 1. 77. 0 > libswscale 0. 13. 0 / 0. 13. 0 > [*snip whinging about incomplete headers*] > Input #0, mpeg, from 'pipe:': > Duration: N/A, bitrate: N/A > Stream #0.0[0x1e0]: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], > 30k tbr, 90k tbn, 30k tbc > [buffer @ 0x211f0e0] w:320 h:240 pixfmt:yuv420p > [libx264 @ 0x211ec20] Default settings detected, using medium profile > [libx264 @ 0x211ec20] using SAR=1/1 > [libx264 @ 0x211ec20] MB rate (9000000) > level limit (983040) > [libx264 @ 0x211ec20] using cpu capabilities: MMX2 SSE2Fast SSSE3 > FastShuffle SSE4.2 > [libx264 @ 0x211ec20] profile High, level 5.1 > [libx264 @ 0x211ec20] 264 - core 106 Ubuntu_2:0.106.1741-3 - > H.264/MPEG-4 AVC codec - Copyleft 2003-2010 - > 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=1 sliced_threads=0 nr=0 > decimate=1 interlaced=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=200 ratetol=1.0 qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 > ip_ratio=1.40 aq=1:1.00 > [mp4 @ 0x211dbe0] muxer does not support non seekable output > Output #0, mp4, to 'pipe:': > Metadata: > encoder : Lavf52.108.0 > Stream #0.0: Video: libx264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, > 200 kb/s, 90k tbn, 30k tbc > Stream mapping: > Stream #0.0 -> #0.0 > Could not write header for output file #0 (incorrect codec parameters ?) > Please don't trim your actual command-line, I have to guess what you did. ffmpeg -i source.whatever -vcodec whatyouwant wuthwhatever options -f mpegts resultingformat This is the simplified standard form of a command-line. From rhodri at kynesim.co.uk Tue Jul 19 18:26:02 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 19 Jul 2011 17:26:02 +0100 Subject: [FFmpeg-user] Specifying input and output formats with pipes In-Reply-To: <4E25ADBD.8040307@zonnet.nl> References: <4E25A5F4.5020602@zonnet.nl> <4E25ADBD.8040307@zonnet.nl> Message-ID: On Tue, 19 Jul 2011 17:15:57 +0100, belcampo wrote: > Please don't trim your actual command-line, I have to guess what you did. I thought I was pretty clear, but if you insist: getclip | ffmpeg -i pipe: -f mp4 -vcodec libx264 pipe: 2>ffmpeg.log | dosomething That's what grouches about not being able to write the header. getclip | ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log | dosomething That produces output. "getclip" and "dosomething" are in reality chunks of C code on the other ends of pipes, but for these purposes "cat" would do just as well. Does mp4 require more command-line options that nothing has seen fit to tell me about? -- Rhodri James Kynesim Ltd From stefano.sabatini-lala at poste.it Tue Jul 19 18:53:33 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Tue, 19 Jul 2011 18:53:33 +0200 Subject: [FFmpeg-user] [ANNOUNCE] SOCIS - Request for students Message-ID: <20110719165333.GA4589@geppetto> We're glad to announce that FFmpeg/Libav application to SOCIS (Summer Of Code In Space) has been accepted and we've been allocated a slot for a student: http://sophia.estec.esa.int/socis2011/ The selected student will be sponsored to work on one of the tasks listed at this page: http://wiki.multimedia.cx/index.php?title=FFmpeg_/_Libav_Summer_Of_Code_In_Space_2011 but the student is allowed to propose a different task in case he/she has a different proposal (but we can't guarantee the task qualification only in case we'll be able to couple him/her with a mentor). Students' application timeline is on July 27: http://sophia.estec.esa.int/socis2011/?q=timeline If you are a student and you want to partecipate to the program, you're invited to check more information from the SOCIS web site, in particular to read the pages: http://sophia.estec.esa.int/socis2011/?q=student_agreement http://sophia.estec.esa.int/socis2011/?q=tos and get in touch as soon as possible with the administrator (Stefano Sabatini) and/or with one of the mentors. Good luck! From Scott.Goemans at kantarmedia.com Tue Jul 19 19:02:49 2011 From: Scott.Goemans at kantarmedia.com (Goemans, Scott (KMWCR)) Date: Tue, 19 Jul 2011 13:02:49 -0400 Subject: [FFmpeg-user] ffmpeg -streamid switch Message-ID: <5F46FE315D2A1949860A9143D6BFAAD502BACD2C@EXCHANGESTORE.TNSMI-EX1.Local> I'm wondering where or why the streamid switch was removed from more recent versions of ffmpeg? Was the functionality moved somewhere else or just dropped altogether? Any information would be appreciated as I have an application that was taking advantage of that feature but I need to migrate to the latest version of ffmpeg. thanks From marc at hallmarcwebsites.com Tue Jul 19 19:09:30 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Tue, 19 Jul 2011 13:09:30 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: OK so here is what I am attempting to do: Take any video (major codecs/wrappers) and have ffmpeg convert them into an H.264/mp4 file that will play on the major smart phones; mainly, iPhone 3, iPhone 4, Android 2.1u1 on up, etc. I have been able to produce a file from SUPER (by eRightSoft) which also uses ffmpeg to convert the files (I think it may also be making use of DirectShow for decoding) into an mp4/H.264/AAC LC video file that plays as mentioned above. For desktop viewing the file is sent with mime type video/quicktime which seems to satisfy that end. Now, eventually I will want to run my script to output 2 files from each input video; one for mobile devices smaller file size and then for desktop a larger file size based on definition/quality. May need more than 2 in the final version. What questions have ye? From rhodri at kynesim.co.uk Tue Jul 19 19:38:15 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Tue, 19 Jul 2011 18:38:15 +0100 Subject: [FFmpeg-user] Specifying input and output formats with pipes In-Reply-To: References: <4E25A5F4.5020602@zonnet.nl> Message-ID: On Tue, 19 Jul 2011 17:08:03 +0100, Rhodri James wrote: [snip] > The docs keep leaving me thinking "-f" is forcing _input_ format, > but that's a separate matter. Unfortunately replacing "-f mpegts" with > "-f mp4" fails for me. Here's the (trimmed) log: > > > ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers [snip] > Could not write header for output file #0 (incorrect codec parameters ?) To answer my own quesiton: Ah. Would this be the mp4 writer not liking piped output because it wants to be able to seek? IIRC mp4 has header fields that can't be filled in until you've done most of the work. -- Rhodri James Kynesim Ltd From bcardarella at gmail.com Tue Jul 19 23:16:08 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Tue, 19 Jul 2011 17:16:08 -0400 Subject: [FFmpeg-user] Empty audio track to video created from image Message-ID: I have a video from an image that I've created. The video goes for about 60 frames. Then I append the content video after it using cat. The problem is the audio from the 2nd video starts playing when the video starts, during the first video instead of when the 2nd video starts. I'm guessing this is because the first video does not have an audio track. So the audio track from the first is told to start on frame 1. All this to ask: is there a way to add an empty audio stream when creating the 1st video to prevent this? Or am I going about this backwards? - Brian From belcampo at zonnet.nl Tue Jul 19 23:26:34 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 19 Jul 2011 23:26:34 +0200 Subject: [FFmpeg-user] Specifying input and output formats with pipes In-Reply-To: References: <4E25A5F4.5020602@zonnet.nl> <4E25ADBD.8040307@zonnet.nl> Message-ID: <4E25F68A.9010601@zonnet.nl> On 07/19/11 18:26, Rhodri James wrote: > On Tue, 19 Jul 2011 17:15:57 +0100, belcampo wrote: > >> Please don't trim your actual command-line, I have to guess what you did. > > I thought I was pretty clear, but if you insist: > > getclip | ffmpeg -i pipe: -f mp4 -vcodec libx264 pipe: 2>ffmpeg.log | > dosomething > > That's what grouches about not being able to write the header. > > getclip | ffmpeg -i pipe: -f mpegts -vcodec libx264 pipe: 2>ffmpeg.log | > dosomething > > That produces output. > > "getclip" and "dosomething" are in reality chunks of C code on the other > ends of pipes, but for these purposes "cat" would do just as well. > > Does mp4 require more command-line options that nothing has seen fit to > tell me about? > I'm not sure if it matters, see my example, but the order in which instructions are given do matter. In my example -f mpegts is at the end, right before the destination. From etienne.buira.lists at free.fr Tue Jul 19 23:51:40 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Tue, 19 Jul 2011 23:51:40 +0200 Subject: [FFmpeg-user] Empty audio track to video created from image In-Reply-To: References: Message-ID: <20110719215140.GJ16936@epicure.lazyet.homelinux.net> Hi On Tue, Jul 19, 2011 at 05:16:08PM -0400, Brian Cardarella wrote: > I have a video from an image that I've created. The video goes for > about 60 frames. Then I append the content video after it using cat. > > The problem is the audio from the 2nd video starts playing when the > video starts, during the first video instead of when the 2nd video > starts. > > I'm guessing this is because the first video does not have an audio > track. So the audio track from the first is told to start on frame 1. > > All this to ask: is there a way to add an empty audio stream when > creating the 1st video to prevent this? Or am I going about this > backwards? > > - Brian Quoting Stefano Sabatini: > ffmpeg-user random tip #9 > One minute of audio silence with ffmpeg: > ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/zero \ > -ab 64K -f mp2 -acodec mp2 -y silence.mp2 From bcardarella at gmail.com Wed Jul 20 00:08:31 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Tue, 19 Jul 2011 18:08:31 -0400 Subject: [FFmpeg-user] Empty audio track to video created from image In-Reply-To: <20110719215140.GJ16936@epicure.lazyet.homelinux.net> References: <20110719215140.GJ16936@epicure.lazyet.homelinux.net> Message-ID: <59BF6F65-2625-4349-9B81-630A26EEAE93@gmail.com> Awesome thank you! - Brian On Jul 19, 2011, at 5:51 PM, Etienne Buira wrote: > Hi > > On Tue, Jul 19, 2011 at 05:16:08PM -0400, Brian Cardarella wrote: >> I have a video from an image that I've created. The video goes for >> about 60 frames. Then I append the content video after it using cat. >> >> The problem is the audio from the 2nd video starts playing when the >> video starts, during the first video instead of when the 2nd video >> starts. >> >> I'm guessing this is because the first video does not have an audio >> track. So the audio track from the first is told to start on frame 1. >> >> All this to ask: is there a way to add an empty audio stream when >> creating the 1st video to prevent this? Or am I going about this >> backwards? >> >> - Brian > > Quoting Stefano Sabatini: >> ffmpeg-user random tip #9 >> One minute of audio silence with ffmpeg: >> ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/zero \ >> -ab 64K -f mp2 -acodec mp2 -y silence.mp2 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From bcardarella at gmail.com Wed Jul 20 00:46:10 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Tue, 19 Jul 2011 18:46:10 -0400 Subject: [FFmpeg-user] Empty audio track to video created from image In-Reply-To: <59BF6F65-2625-4349-9B81-630A26EEAE93@gmail.com> References: <20110719215140.GJ16936@epicure.lazyet.homelinux.net> <59BF6F65-2625-4349-9B81-630A26EEAE93@gmail.com> Message-ID: Actually, sorry again. I'm still confused. Do I do this to generate the needed length of audio then use that as the audio stream for the video or can I use these commands along with the commands to generate the video? For example, I am doing this to generate the video: ffmpeg -loop 1 -vframes 30 -r 29.97 -i title.png -qscale 5 title.mpeg - Brian On Tue, Jul 19, 2011 at 6:08 PM, Brian Cardarella wrote: > Awesome thank you! > > - Brian > > On Jul 19, 2011, at 5:51 PM, Etienne Buira > wrote: > >> Hi >> >> On Tue, Jul 19, 2011 at 05:16:08PM -0400, Brian Cardarella wrote: >>> >>> I have a video from an image that I've created. The video goes for >>> about 60 frames. Then I append the content video after it using cat. >>> >>> The problem is the audio from the 2nd video starts playing when the >>> video starts, during the first video instead of when the 2nd video >>> starts. >>> >>> I'm guessing this is because the first video does not have an audio >>> track. So the audio track from the first is told to start on frame 1. >>> >>> All this to ask: is there a way to add an empty audio stream when >>> creating the 1st video to prevent this? Or am I going about this >>> backwards? >>> >>> - Brian >> >> Quoting Stefano Sabatini: >>> >>> ffmpeg-user random tip #9 >>> One minute of audio silence with ffmpeg: >>> ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/zero ?\ >>> ? -ab 64K -f mp2 -acodec mp2 -y silence.mp2 >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tomek at at-net.com.pl Wed Jul 20 06:52:49 2011 From: tomek at at-net.com.pl (=?ISO-8859-1?Q?Tomasz_G=F3ral?=) Date: Wed, 20 Jul 2011 06:52:49 +0200 Subject: [FFmpeg-user] Empty audio track to video created from image In-Reply-To: References: <20110719215140.GJ16936@epicure.lazyet.homelinux.net> <59BF6F65-2625-4349-9B81-630A26EEAE93@gmail.com> Message-ID: <4E265F21.9070300@at-net.com.pl> W dniu 2011-07-20 00:46, Brian Cardarella pisze: ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/zero \ -ab 64K -f mp2 -acodec mp2 -y silence.mp2 ffmpeg -loop 1 -vframes 30 -r 29.97 -t 60 -i title.png -qscale 5 -an title_noaudio.mpeg ffmpeg -i title_noaudio.mpeg -i silence.mp2 -sameq title_withaudio.mpeg -- Tomasz G?ral AT-net http://www.at-net.com.pl Tel. +48 509 288 840 From bcardarella at gmail.com Wed Jul 20 22:25:24 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Wed, 20 Jul 2011 16:25:24 -0400 Subject: [FFmpeg-user] Troubleshooting cat'ing mpeg videos Message-ID: I have two mpg videos that I've transcoded from mp4s. Each are 10 seconds long. When I play the transcoded mpg files individually they run through just fine. But when I cat them into a combined mpg the first one plays and when I get to the 10 second mark the 2nd one plays for about 2 seconds, wish playback that seems to be skipping frames and the audio is off. Then the video ends. The combined playing time should be 20 seconds as each file individually is 10 seconds. But the combined file only plays for 13 seconds. If it is of any help I have pastied the output from the transocdings and an ffprobe of the combined mpg: http://pastie.org/2244749 Any help is greatly appreciated! :) - Brian From belcampo at zonnet.nl Wed Jul 20 22:47:36 2011 From: belcampo at zonnet.nl (belcampo) Date: Wed, 20 Jul 2011 22:47:36 +0200 Subject: [FFmpeg-user] Troubleshooting cat'ing mpeg videos In-Reply-To: References: Message-ID: <4E273EE8.7020908@zonnet.nl> On 07/20/11 22:25, Brian Cardarella wrote: > I have two mpg videos that I've transcoded from mp4s. Each are 10 > seconds long. When I play the transcoded mpg files individually they > run through just fine. But when I cat them into a combined mpg the > first one plays and when I get to the 10 second mark the 2nd one plays > for about 2 seconds, wish playback that seems to be skipping frames > and the audio is off. Then the video ends. > > The combined playing time should be 20 seconds as each file > individually is 10 seconds. But the combined file only plays for 13 > seconds. AFAIK it's not possible to cat individual mpeg-files to 1, and expect them to play well. Each individual file has time-stamps, each individual file probably has different audio-offsets. The 'catted' file starts at 0.00 sec and after 10 secs it's reset to again 0.00. If in the first part audio is 1 sec behind video, which will play fine, because the player knows how to handle this, and the in the second part audio is 1 sec before video, not very common but possible, the player gets really confused about what video-frame belongs to what audio. Demuxing video and audio of both files, then cat these elementary streams to 1 video and 1 audio stream, transcode and mux them together again. Hope that sync will be correct. > > If it is of any help I have pastied the output from the transocdings > and an ffprobe of the combined mpg: > > http://pastie.org/2244749 > > Any help is greatly appreciated! :) > > - Brian > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From james.lu at ll.mit.edu Wed Jul 20 22:48:35 2011 From: james.lu at ll.mit.edu (Lu, James - 0442 - MITLL) Date: Wed, 20 Jul 2011 16:48:35 -0400 Subject: [FFmpeg-user] Troubleshooting cat'ing mpeg videos In-Reply-To: References: Message-ID: Hey Brian, I'm no expert on ffmpeg but I recall reading somewhere that cat messes up timestamps, and a reencode will degrade video quality but will fix the timestamps. Hope that helps. ~James -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Brian Cardarella Sent: Wednesday, July 20, 2011 4:25 PM To: FFmpeg user questions and RTFMs Subject: [FFmpeg-user] Troubleshooting cat'ing mpeg videos I have two mpg videos that I've transcoded from mp4s. Each are 10 seconds long. When I play the transcoded mpg files individually they run through just fine. But when I cat them into a combined mpg the first one plays and when I get to the 10 second mark the 2nd one plays for about 2 seconds, wish playback that seems to be skipping frames and the audio is off. Then the video ends. The combined playing time should be 20 seconds as each file individually is 10 seconds. But the combined file only plays for 13 seconds. If it is of any help I have pastied the output from the transocdings and an ffprobe of the combined mpg: http://pastie.org/2244749 Any help is greatly appreciated! :) - Brian _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From bcardarella at gmail.com Wed Jul 20 22:57:36 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Wed, 20 Jul 2011 16:57:36 -0400 Subject: [FFmpeg-user] Troubleshooting cat'ing mpeg videos In-Reply-To: <20110720204845.9AD86EF046@avserver.banki.hu> References: <20110720204845.9AD86EF046@avserver.banki.hu> Message-ID: Yes! transcoding the file did the trick. Thank-you! The quality really did not suffer so this is perfect. :) - Brian On Wed, Jul 20, 2011 at 4:48 PM, Lu, James - 0442 - MITLL wrote: > Hey Brian, I'm no expert on ffmpeg but I recall reading somewhere that cat messes up timestamps, and a reencode will degrade video quality but will fix the timestamps. Hope that helps. > > ~James > > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Brian Cardarella > Sent: Wednesday, July 20, 2011 4:25 PM > To: FFmpeg user questions and RTFMs > Subject: [FFmpeg-user] Troubleshooting cat'ing mpeg videos > > I have two mpg videos that I've transcoded from mp4s. Each are 10 > seconds long. When I play the transcoded mpg files individually they > run through just fine. But when I cat them into a combined mpg the > first one plays and when I get to the 10 second mark the 2nd one plays > for about 2 seconds, wish playback that seems to be skipping frames > and the audio is off. Then the video ends. > > The combined playing time should be 20 seconds as each file > individually is 10 seconds. But the combined file only plays for 13 > seconds. > > If it is of any help I have pastied the output from the transocdings > and an ffprobe of the combined mpg: > > http://pastie.org/2244749 > > Any help is greatly appreciated! :) > > - Brian > _______________________________________________ > 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 marc at hallmarcwebsites.com Thu Jul 21 14:26:20 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Thu, 21 Jul 2011 08:26:20 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: See this: ************************************************************* OK so here is what I am attempting to do: Take any video (major codecs/wrappers) and have ffmpeg convert them into an H.264/mp4 file that will play on the major smart phones; mainly, iPhone 3, iPhone 4, Android 2.1u1 on up, etc. I have been able to produce a file from SUPER (by eRightSoft) which also uses ffmpeg to convert the files (I think it may also be making use of DirectShow for decoding) into an mp4/H.264/AAC LC video file that plays as mentioned above. For desktop viewing the file is sent with mime type video/quicktime which seems to satisfy that end. Now, eventually I will want to run my script to output 2 files from each input video; one for mobile devices smaller file size and then for desktop a larger file size based on definition/quality. May need more than 2 in the final version. What questions have ye? ***************************************************************** And not one response from this list. Why? Am I just wasting my time here? From rhodri at kynesim.co.uk Thu Jul 21 14:35:25 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Thu, 21 Jul 2011 13:35:25 +0100 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: On Thu, 21 Jul 2011 13:26:20 +0100, HallMarc Websites wrote: [snip] > What questions have ye? > ***************************************************************** > And not one response from this list. Why? Am I just wasting my time here? To be fair to the list, the only question you asked was whether anyone else had a question. I'd take the lack of response to mean that they don't. Did you have a specific question that got lost somewhere along the line? -- Rhodri James Kynesim Ltd From kct.venkat at gmail.com Thu Jul 21 17:53:20 2011 From: kct.venkat at gmail.com (Venkatasubramaniam R) Date: Thu, 21 Jul 2011 17:53:20 +0200 Subject: [FFmpeg-user] Regarding -pix_fmt yuvj422p for the output yuv file. Message-ID: Hi, First of all, I would like to thank the FFmpeg authors for the software. It has been a great help for my work. I am currently using ffmpeg (version SVN-r23401) for my video encoding and decoding process. I have some mp4 files which I decode to yuvj422 format for using the output yuv files for quality processing. I am writing a c++ code to automate the processing of the yuv files, but I am completely not sure about the format in which the yuv pixels are stored.. Please let me know what would be the actual format structure of the yuv file byte stream when I use the '-pix_fmt yuvj422p' tag for decode the mp4 to yuv422 file. Whether it is YUV422 (progressive/interlaced, packed/planar). This would be of great help. Thanks, and all the best. -Venkat. From pgoldweic at northwestern.edu Thu Jul 21 18:02:33 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Thu, 21 Jul 2011 09:02:33 -0700 (PDT) Subject: [FFmpeg-user] getting 'av_interleaved_write_frame(): Operation not permitted with mp4 files Message-ID: <1311264153812-3684114.post@n4.nabble.com> Hi, I've done research on this problem but saw no obvious solutions being offered (plus, it is not clear whether this is an ffmpeg bug or not). I need to automate the run of ffmpeg to convert uploaded user files (mp4 which are about an hour long) to an ipod-compatible format. I keep getting this error message either at the beginning of the encoding, or close to the beginning (in one ocassion, running under 'root', I was able to get ffmpeg to process the file for a while, perhaps a few minutes, before it gave out the same error message). Here is the complete transcript of one of these runs (BTW, there are other error messages from ffmpeg as I'm still trying to get the parameters right here :-(, but I don't think these have anything to do with the one I am mentioning). Would definitely appreciate any help with this. Thanks in advance! sudo ffmpeg -i ~/sampleVideo/collection_0_Sepsis/video.mp4 -acodec libfaac -ab 128 -s 480x320 -vcodec libx264 -vpre lossless_slow -crf 30 -vpre ipod320 -threads 0 -f ipod ~/sampleVideo/collection_0_Sepsis/encoded-ipod-mh-instance-presenter.m4v ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 27 2011 17:30:33 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --enable-libvpx --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads --enable-libfreetype --arch=x86_64 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 1 codec frame rate differs from container frame rate: 6000.00 (6000/1) -> 30.00 (30/1) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/pgo586/sampleVideo/collection_0_Sepsis/video.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-03-01 17:42:51 Duration: 00:54:40.81, start: 0.000000, bitrate: 950 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 88 kb/s Metadata: creation_time : 2010-03-01 17:42:51 Stream #0.1(eng): Video: h264 (Main), yuv420p, 480x360, 858 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc Metadata: creation_time : 2010-03-01 17:42:51 WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s [buffer @ 0x101e6f80] w:480 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x101e7520] w:480 h:360 fmt:yuv420p -> w:480 h:320 fmt:yuv420p flags:0x4 [libx264 @ 0x101efb20] frame MB size (30x20) > level limit (396) [libx264 @ 0x101efb20] VBV buffer (3000) > level limit (2000) [libx264 @ 0x101efb20] MB rate (18000) > level limit (11880) [libx264 @ 0x101efb20] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x101efb20] profile Constrained Baseline, level 1.3 [libx264 @ 0x101efb20] 264 - core 115 r1995 c1e60b9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x31 me=umh subme=6 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=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=768 vbv_bufsize=3000 crf_max=0.0 nal_hrd=none ip_ratio=1.41 aq=1:1.00 Output #0, ipod, to '/home/pgo586/sampleVideo/collection_0_Sepsis/encoded-ipod-mh-instance-presenter.m4v': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-03-01 17:42:51 encoder : Lavf53.4.0 Stream #0.0(eng): Video: libx264, yuv420p, 480x320, q=0-69, 200 kb/s, 30 tbn, 30 tbc Metadata: creation_time : 2010-03-01 17:42:51 Stream #0.1(eng): Audio: libfaac, 44100 Hz, stereo, s16, 0 kb/s Metadata: creation_time : 2010-03-01 17:42:51 Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop, [?] for help av_interleaved_write_frame(): Operation not permitted:03.03 bitrate= 248.6kbits/s -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/getting-av-interleaved-write-frame-Operation-not-permitted-with-mp4-files-tp3684114p3684114.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dave.bevan at bbc.co.uk Thu Jul 21 18:17:35 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Thu, 21 Jul 2011 17:17:35 +0100 Subject: [FFmpeg-user] Regarding -pix_fmt yuvj422p for the output yuv file. In-Reply-To: References: Message-ID: >Hi, >First of all, I would like to thank the FFmpeg authors for the software. It has been a great help for my work. >I am currently using ffmpeg (version SVN-r23401) for my video encoding and decoding process. I have some mp4 files which I decode to yuvj422 format for using the output yuv files for quality processing. >I am writing a c++ code to automate the processing of the yuv files, but I am completely not sure about the format in which the yuv pixels are stored.. >Please let me know what would be the actual format structure of the yuv file byte stream when I use the '-pix_fmt yuvj422p' tag for decode the mp4 to yuv422 file. Whether it is YUV422 (progressive/interlaced, packed/planar). This would be of great help. Personally, I'd suggest using "-pix_fmt uyvy422" - it's documented at http://www.fourcc.org/yuv.php, and http://www.fourcc.org/yuv.php#UYVY in particular. --D. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From kct.venkat at gmail.com Thu Jul 21 18:35:41 2011 From: kct.venkat at gmail.com (Venkatasubramaniam R) Date: Thu, 21 Jul 2011 18:35:41 +0200 Subject: [FFmpeg-user] Regarding -pix_fmt yuvj422p for the output yuv file. In-Reply-To: References: Message-ID: Hi Dave, Thanks for the idea, and surely uyvy format is documented in a more detailed manner. Thanks for the links, they are really helpful. I chose yuvj422p because I have an original yuv video in the same format and so I will be able to compare the original yuv with the modified yuv easily. I will try with this uyvy format suggestion. If I come across any useful ideas, I will post it in this mail chain. Thanks again, -Venkat. On Thu, Jul 21, 2011 at 6:17 PM, Dave Bevan wrote: > > >Hi, > > >First of all, I would like to thank the FFmpeg authors for the > software. It has been a great help for my work. > > >I am currently using ffmpeg (version SVN-r23401) for my video encoding > and decoding process. I have some mp4 files which I decode to yuvj422 > format for using the output yuv files for quality processing. > > >I am writing a c++ code to automate the processing of the yuv files, > but I am completely not sure about the format in which the yuv pixels > are stored.. > > >Please let me know what would be the actual format structure of the yuv > file byte stream when I use the '-pix_fmt yuvj422p' tag for decode the > mp4 to yuv422 file. Whether it is YUV422 (progressive/interlaced, > packed/planar). > This would be of great help. > > > > > Personally, I'd suggest using "-pix_fmt uyvy422" - it's documented at > http://www.fourcc.org/yuv.php, and http://www.fourcc.org/yuv.php#UYVY in > particular. > > --D. > > http://www.bbc.co.uk/ > This e-mail (and any attachments) is confidential and may contain personal > views which are not the views of the BBC unless specifically stated. > If you have received it in error, please delete it from your system. > Do not use, copy or disclose the information in any way nor act in reliance > on it and notify the sender immediately. > Please note that the BBC monitors e-mails sent or received. > Further communication will signify your consent to this. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Regards, Venkatasubramaniam Ramshankar, Graduate Student - M.Sc Communication Engg TU M?nchen. (00.49.176.624.11480) LinkedIn : http://www.linkedin.com/pub/venkatasubramaniam-ramshankar/5/b7b/ab7 From bcardarella at gmail.com Thu Jul 21 19:19:37 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Thu, 21 Jul 2011 13:19:37 -0400 Subject: [FFmpeg-user] Multi-core transcoding (performance tuning) Message-ID: Does FFMPEG support any way to distribute the transcoding across multiple cores? I notice that on my Intel Core i7 one of the cores is maxed at 100% and the rest are idle. In addition, the process itself seems to only be 20MBs. Would FFMPEG benefit from putting the entire video in memory? I'm very interested in any performance tuning suggestions. I don't want to reduce the quality of the video but currently it is transcoding at about 75fps. I feel like there is room to grow here. - Brian From bcardarella at gmail.com Thu Jul 21 19:21:41 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Thu, 21 Jul 2011 13:21:41 -0400 Subject: [FFmpeg-user] Multi-core transcoding (performance tuning) In-Reply-To: References: Message-ID: NM, I found the -threads option. - Brian On Thu, Jul 21, 2011 at 1:19 PM, Brian Cardarella wrote: > Does FFMPEG support any way to distribute the transcoding across > multiple cores? I notice that on my Intel Core i7 one of the cores is > maxed at 100% and the rest are idle. In addition, the process itself > seems to only be 20MBs. Would FFMPEG benefit from putting the entire > video in memory? > > I'm very interested in any performance tuning suggestions. I don't > want to reduce the quality of the video but currently it is > transcoding at about 75fps. I feel like there is room to grow here. > > - Brian > From bcardarella at gmail.com Thu Jul 21 19:24:00 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Thu, 21 Jul 2011 13:24:00 -0400 Subject: [FFmpeg-user] Multi-core transcoding (performance tuning) In-Reply-To: References: Message-ID: So, -threads will distribute the load some but now the transcoding is topped out at 85fps. I am distributing across all 7 cores and the CPU usage has only gone up 30 - 50%. It seems there is some other bottleneck that is happening here. Any thoughts? - Brian On Thu, Jul 21, 2011 at 1:21 PM, Brian Cardarella wrote: > NM, I found the -threads option. > > - Brian > > On Thu, Jul 21, 2011 at 1:19 PM, Brian Cardarella wrote: >> Does FFMPEG support any way to distribute the transcoding across >> multiple cores? I notice that on my Intel Core i7 one of the cores is >> maxed at 100% and the rest are idle. In addition, the process itself >> seems to only be 20MBs. Would FFMPEG benefit from putting the entire >> video in memory? >> >> I'm very interested in any performance tuning suggestions. I don't >> want to reduce the quality of the video but currently it is >> transcoding at about 75fps. I feel like there is room to grow here. >> >> - Brian >> > From jeisom at gmail.com Thu Jul 21 19:31:28 2011 From: jeisom at gmail.com (Jonathan Isom) Date: Thu, 21 Jul 2011 12:31:28 -0500 Subject: [FFmpeg-user] Multi-core transcoding (performance tuning) In-Reply-To: References: Message-ID: On Thu, Jul 21, 2011 at 12:24 PM, Brian Cardarella wrote: > So, -threads will distribute the load some but now the transcoding is > topped out at 85fps. I am distributing across all 7 cores and the CPU > usage has only gone up 30 - 50%. It seems there is some other > bottleneck that is happening here. Any thoughts? It would be useful for what you command line is. > - Brian > > On Thu, Jul 21, 2011 at 1:21 PM, Brian Cardarella wrote: >> NM, I found the -threads option. >> >> - Brian >> >> On Thu, Jul 21, 2011 at 1:19 PM, Brian Cardarella wrote: >>> Does FFMPEG support any way to distribute the transcoding across >>> multiple cores? I notice that on my Intel Core i7 one of the cores is >>> maxed at 100% and the rest are idle. In addition, the process itself >>> seems to only be 20MBs. Would FFMPEG benefit from putting the entire >>> video in memory? >>> >>> I'm very interested in any performance tuning suggestions. I don't >>> want to reduce the quality of the video but currently it is >>> transcoding at about 75fps. I feel like there is room to grow here. >>> >>> - Brian >>> >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From bcardarella at gmail.com Thu Jul 21 19:34:44 2011 From: bcardarella at gmail.com (Brian Cardarella) Date: Thu, 21 Jul 2011 13:34:44 -0400 Subject: [FFmpeg-user] Multi-core transcoding (performance tuning) In-Reply-To: References: Message-ID: Sure, ffmpeg -i 58518579.mp4 -ss 00:00:16.5 -qscale 5 -strict experimental -threads 10 -y out.mp4 - Brian On Thu, Jul 21, 2011 at 1:31 PM, Jonathan Isom wrote: > On Thu, Jul 21, 2011 at 12:24 PM, Brian Cardarella > wrote: >> So, -threads will distribute the load some but now the transcoding is >> topped out at 85fps. I am distributing across all 7 cores and the CPU >> usage has only gone up 30 - 50%. It seems there is some other >> bottleneck that is happening here. Any thoughts? > > It would be useful for what you command line is. > >> - Brian >> >> On Thu, Jul 21, 2011 at 1:21 PM, Brian Cardarella wrote: >>> NM, I found the -threads option. >>> >>> - Brian >>> >>> On Thu, Jul 21, 2011 at 1:19 PM, Brian Cardarella wrote: >>>> Does FFMPEG support any way to distribute the transcoding across >>>> multiple cores? I notice that on my Intel Core i7 one of the cores is >>>> maxed at 100% and the rest are idle. In addition, the process itself >>>> seems to only be 20MBs. Would FFMPEG benefit from putting the entire >>>> video in memory? >>>> >>>> I'm very interested in any performance tuning suggestions. I don't >>>> want to reduce the quality of the video but currently it is >>>> transcoding at about 75fps. I feel like there is room to grow here. >>>> >>>> - Brian >>>> >>> >> _______________________________________________ >> 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 pgoldweic at northwestern.edu Thu Jul 21 19:39:56 2011 From: pgoldweic at northwestern.edu (Patricia N Goldweic) Date: Thu, 21 Jul 2011 17:39:56 +0000 Subject: [FFmpeg-user] getting 'av_interleaved_write_frame(): Operation not permitted with mp4 files In-Reply-To: <1311264153812-3684114.post@n4.nabble.com> References: <1311264153812-3684114.post@n4.nabble.com> Message-ID: <316ABB7EE42BC448BDBDE73B4323B09B1DFE6E8C@evcspmbx4.ads.northwestern.edu> After some more experimentation, it appears that lack of disk space was causing these problems!... Would be great if ffmpeg could be made to present informative error messages when appropriate. For example, I've already gone through 2 distinct cases (both due to lack of disk space): 1- Error: IO Error 2 - 'av_interleaved_write_frame(): Operation not permitted' This would save ffmpeg users (especially inexperienced ones, like myself) tons of time (which would otherwise be wasted trying to figure out what on earth the error messages actually mean). If this feature hasn't been requested yet, and there is a way to request it you can point me to, please let me know. Thanks, -Patricia -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Patricia N Goldweic Sent: Thursday, July 21, 2011 11:03 AM To: ffmpeg-user at ffmpeg.org Subject: [FFmpeg-user] getting 'av_interleaved_write_frame(): Operation not permitted with mp4 files Hi, I've done research on this problem but saw no obvious solutions being offered (plus, it is not clear whether this is an ffmpeg bug or not). I need to automate the run of ffmpeg to convert uploaded user files (mp4 which are about an hour long) to an ipod-compatible format. I keep getting this error message either at the beginning of the encoding, or close to the beginning (in one ocassion, running under 'root', I was able to get ffmpeg to process the file for a while, perhaps a few minutes, before it gave out the same error message). Here is the complete transcript of one of these runs (BTW, there are other error messages from ffmpeg as I'm still trying to get the parameters right here :-(, but I don't think these have anything to do with the one I am mentioning). Would definitely appreciate any help with this. Thanks in advance! sudo ffmpeg -i ~/sampleVideo/collection_0_Sepsis/video.mp4 -acodec libfaac -ab 128 -s 480x320 -vcodec libx264 -vpre lossless_slow -crf 30 -vpre ipod320 -threads 0 -f ipod ~/sampleVideo/collection_0_Sepsis/encoded-ipod-mh-instance-presenter.m4v ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 27 2011 17:30:33 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --enable-libvpx --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads --enable-libfreetype --arch=x86_64 libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 1 codec frame rate differs from container frame rate: 6000.00 (6000/1) -> 30.00 (30/1) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/pgo586/sampleVideo/collection_0_Sepsis/video.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-03-01 17:42:51 Duration: 00:54:40.81, start: 0.000000, bitrate: 950 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 88 kb/s Metadata: creation_time : 2010-03-01 17:42:51 Stream #0.1(eng): Video: h264 (Main), yuv420p, 480x360, 858 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc Metadata: creation_time : 2010-03-01 17:42:51 WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s [buffer @ 0x101e6f80] w:480 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0x101e7520] w:480 h:360 fmt:yuv420p -> w:480 h:320 fmt:yuv420p flags:0x4 [libx264 @ 0x101efb20] frame MB size (30x20) > level limit (396) [libx264 @ 0x101efb20] VBV buffer (3000) > level limit (2000) [libx264 @ 0x101efb20] MB rate (18000) > level limit (11880) [libx264 @ 0x101efb20] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x101efb20] profile Constrained Baseline, level 1.3 [libx264 @ 0x101efb20] 264 - core 115 r1995 c1e60b9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=1:0:0 analyse=0x1:0x31 me=umh subme=6 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=-2 threads=6 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=30.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=768 vbv_bufsize=3000 crf_max=0.0 nal_hrd=none ip_ratio=1.41 aq=1:1.00 Output #0, ipod, to '/home/pgo586/sampleVideo/collection_0_Sepsis/encoded-ipod-mh-instance-presenter.m4v': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-03-01 17:42:51 encoder : Lavf53.4.0 Stream #0.0(eng): Video: libx264, yuv420p, 480x320, q=0-69, 200 kb/s, 30 tbn, 30 tbc Metadata: creation_time : 2010-03-01 17:42:51 Stream #0.1(eng): Audio: libfaac, 44100 Hz, stereo, s16, 0 kb/s Metadata: creation_time : 2010-03-01 17:42:51 Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop, [?] for help av_interleaved_write_frame(): Operation not permitted:03.03 bitrate= 248.6kbits/s -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/getting-av-interleaved-write-frame-Operation-not-permitted-with-mp4-files-tp3684114p3684114.html Sent from the FFmpeg-users mailing list archive at Nabble.com. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sheen.andy at googlemail.com Thu Jul 21 19:55:39 2011 From: sheen.andy at googlemail.com (Andy Sheen) Date: Thu, 21 Jul 2011 18:55:39 +0100 Subject: [FFmpeg-user] Multi-core transcoding (performance tuning) In-Reply-To: References: Message-ID: <4E28681B.4080309@googlemail.com> Brian Cardarella wrote on Thu 21 Jul at 18:34 UK time > Sure, > > ffmpeg -i 58518579.mp4 -ss 00:00:16.5 -qscale 5 -strict experimental > -threads 10 -y out.mp4 > You actually need to tell it to recode. Add a -vcodec libx264 and (presumably -acodec copy). I'm not up on the latest presets, but it's probably maxing out the read/write rate of your disk. > - Brian > Andy > On Thu, Jul 21, 2011 at 1:31 PM, Jonathan Isom wrote: >> On Thu, Jul 21, 2011 at 12:24 PM, Brian Cardarella >> wrote: >>> So, -threads will distribute the load some but now the transcoding is >>> topped out at 85fps. I am distributing across all 7 cores and the CPU >>> usage has only gone up 30 - 50%. It seems there is some other >>> bottleneck that is happening here. Any thoughts? >> >> It would be useful for what you command line is. >> >>> - Brian >>> >>> On Thu, Jul 21, 2011 at 1:21 PM, Brian Cardarella wrote: >>>> NM, I found the -threads option. >>>> >>>> - Brian >>>> >>>> On Thu, Jul 21, 2011 at 1:19 PM, Brian Cardarella wrote: >>>>> Does FFMPEG support any way to distribute the transcoding across >>>>> multiple cores? I notice that on my Intel Core i7 one of the cores is >>>>> maxed at 100% and the rest are idle. In addition, the process itself >>>>> seems to only be 20MBs. Would FFMPEG benefit from putting the entire >>>>> video in memory? >>>>> >>>>> I'm very interested in any performance tuning suggestions. I don't >>>>> want to reduce the quality of the video but currently it is >>>>> transcoding at about 75fps. I feel like there is room to grow here. >>>>> >>>>> - Brian >>>>> >>>> >>> _______________________________________________ >>> 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 marc at hallmarcwebsites.com Fri Jul 22 17:50:48 2011 From: marc at hallmarcwebsites.com (HallMarc Websites) Date: Fri, 22 Jul 2011 11:50:48 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: > To be fair to the list, the only question you asked was whether anyone else > had a question. I'd take the lack of response to mean that they don't. Did > you have a specific question that got lost somewhere along the line? > > -- > Rhodri James > Kynesim Ltd > _______________________________________________ Mr. James; fairness to the list is a commendable idea, however, it wasn't my only question! Let me straight here, I am a web developer with 9 years under my belt, my weakness is with video. When I posted my initial question to this list I was met with only one reply that was nothing but a series of questions. Now, please do not take me wrongly here, I understand full well that there are times when questions need to be answered in order to give an answer. However, my question was straight forward and very simple, does this match this; that's it, and I answered as many of the questions as I felt were even remotely related to my question only to be left sitting and waiting. I have posted questions to this list and watched a zero response condition develop. [>] BTW you mentioned that I only asked if anyone else had a question? Means you gave the email only a cursory glance before popping off what must've seemed to be a clever quip. Sooooo.... am I missing something? Have I made myself an unwelcome visitor? From james.lu at ll.mit.edu Fri Jul 22 18:22:13 2011 From: james.lu at ll.mit.edu (Lu, James - 0442 - MITLL) Date: Fri, 22 Jul 2011 12:22:13 -0400 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: Marc, Here is your original email. Which seems to have gotten lost in this thread now: -----QUOTE----- OK so here is what I am attempting to do: Take any video (major codecs/wrappers) and have ffmpeg convert them into an H.264/mp4 file that will play on the major smart phones; mainly, iPhone 3, iPhone 4, Android 2.1u1 on up, etc. I have been able to produce a file from SUPER (by eRightSoft) which also uses ffmpeg to convert the files (I think it may also be making use of DirectShow for decoding) into an mp4/H.264/AAC LC video file that plays as mentioned above. For desktop viewing the file is sent with mime type video/quicktime which seems to satisfy that end. Now, eventually I will want to run my script to output 2 files from each input video; one for mobile devices smaller file size and then for desktop a larger file size based on definition/quality. May need more than 2 in the final version. What questions have ye? -----QUOTE----- Actually, it seems that your actual questions were lost in this thread long ago, keep in mind most of us are working off of the mailing list, not the actual forum where you are most likely posting, so not being able to see quoted text is a huge inconvenience to us. So to be fair to the list, always quote text. http://ffmpeg-users.933282.n4.nabble.com/mp4-settings-td3668807.html Your input looks identical to your SUPER settings, except as mentioned above, "An MP4 file is not really streamable until you run qt-faststart on it." Also you do not need the -qscale option in your line. I also dug this thread out regarding multiple outputs for you http://ffmpeg-users.933282.n4.nabble.com/Multiple-output-files-td2076623.html; it seems as though this is a future direction you are going in. Hope this helps. ~James -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of HallMarc Websites Sent: Friday, July 22, 2011 11:51 AM To: 'FFmpeg user questions and RTFMs' Subject: Re: [FFmpeg-user] mp4 settings > To be fair to the list, the only question you asked was whether anyone else > had a question. I'd take the lack of response to mean that they don't. Did > you have a specific question that got lost somewhere along the line? > > -- > Rhodri James > Kynesim Ltd > _______________________________________________ Mr. James; fairness to the list is a commendable idea, however, it wasn't my only question! Let me straight here, I am a web developer with 9 years under my belt, my weakness is with video. When I posted my initial question to this list I was met with only one reply that was nothing but a series of questions. Now, please do not take me wrongly here, I understand full well that there are times when questions need to be answered in order to give an answer. However, my question was straight forward and very simple, does this match this; that's it, and I answered as many of the questions as I felt were even remotely related to my question only to be left sitting and waiting. I have posted questions to this list and watched a zero response condition develop. [>] BTW you mentioned that I only asked if anyone else had a question? Means you gave the email only a cursory glance before popping off what must've seemed to be a clever quip. Sooooo.... am I missing something? Have I made myself an unwelcome visitor? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rhodri at kynesim.co.uk Fri Jul 22 18:27:28 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Fri, 22 Jul 2011 17:27:28 +0100 Subject: [FFmpeg-user] mp4 settings In-Reply-To: References: Message-ID: On Fri, 22 Jul 2011 16:50:48 +0100, HallMarc Websites wrote: >> To be fair to the list, the only question you asked was whether anyone >> else had a question. I'd take the lack of response to mean that they >> don't. Did you have a specific question that got lost somewhere along >> the line? >> > Mr. James; fairness to the list is a commendable idea, however, it > wasn't my only question! [snip] I'm afraid I only joined the mailing list in time to read the email that I responded to, and I stand by my comments on that. With no previous context, "What questions have ye?" is the only question I can see. For my benefit, could you possibly supply the context? > When I posted my initial question to > this list I was met with only one reply that was nothing but a series of > questions. Now, please do not take me wrongly here, I understand full > well > that there are times when questions need to be answered in order to give > an > answer. However, my question was straight forward and very simple, does > this > match this; that's it, and I answered as many of the questions as I felt > were even remotely related to my question only to be left sitting and > waiting. I have posted questions to this list and watched a zero response > condition develop. For a specialist membership list where everyone is going to have their particular sub-specialism, this is perfectly normal. I would just observe that "does this match this" is very often not a simple question at all. > BTW you mentioned that I only asked if anyone else had a question? Means > you gave the email only a cursory glance before popping off what must've > seemed to be a clever quip. It seems you didn't read your email at all. Also, as ways to make friends and influence people go, this doesn't. -- Rhodri James Kynesim Ltd From bfyviolin at gmail.com Sun Jul 24 10:50:53 2011 From: bfyviolin at gmail.com (chao sun) Date: Sun, 24 Jul 2011 16:50:53 +0800 Subject: [FFmpeg-user] how can i capture video and audio simutaneously? Message-ID: i have a webcam with mic, i can successfully capture video or audio independently. But when i want to capture and mix video and audio into one file, it goes that my video and audio does not synchronizing. i use the following cmd line: ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -f alsa -ac 1 -i hw:1,0 -acodec libmp3lame -ab 96k camera.mp4 The result file, in which the video has very slow start( may be due to encoding i guess), and then goes normally, the whole audio goes smoothly as normal. So it results in video-audio mis-sync. How can i solve this ? From eye.of.the.8eholder at gmail.com Mon Jul 25 00:31:16 2011 From: eye.of.the.8eholder at gmail.com (Khelben Blackstaff) Date: Mon, 25 Jul 2011 01:31:16 +0300 Subject: [FFmpeg-user] ffmpeg segmentation fault when reading vob files Message-ID: <20110725013116.26cf28cb@asgard.info> Hello. For some time now, ffmpeg crashes when i try to transcode a dvd. I am now using ffmpeg at commit 4095fa903830f (July 22) and it continues to have this behavior. Because ffmpeg can't read the dvd directly as mencoder did, i use mplayer -dvd-device VIDEO_TS dvd://X -dumpstream to produce a vob and use that with ffmpeg. The complete command i used this time is "ffmpeg -i stream.dump -y -t 6594 -b 2000k -r 25 -vcodec libx264 -preset slow -pass 1 -acodec copy -alang en -vf crop=720:432:0:72 -threads 2 movie.avi" The same crash happens without crop and even if i use another vcodec such as mpeg4. On a dvd the crash might happen at frame 1652 on another at frame 146 etc. Generally it occurs not far from the start. A workaround i use is to have -i video.mpg -i audio.ac3 (both files produced again using mplayer but with -dumpaudio and -dumpvideo instead of -dumpstream). This way it works fine, that is why i supposed the problem exists when reading vob files. I compiled ffmpeg with debugging symbols enabled and gdb says: #0 0x000000000040b16b in transcode (nb_output_files=1, input_files=0x61b010, nb_input_files=1, stream_maps=0x0, nb_stream_maps=, output_files=0x619d80) at ffmpeg.c:2770 #1 0x000000000041054f in main (argc=, argv=) at ffmpeg.c:4565 (disass $pc-32,$pc+32 doesn't work) while valgrind says: Invalid read of size 4 at 0x40B14B: transcode.clone.11 (ffmpeg.c:2766) by 0x41054E: main (ffmpeg.c:4565) Address 0x9c03600 is not stack'd, malloc'd or (recently) free'd Invalid read of size 8 at 0x40B162: transcode.clone.11 (ffmpeg.c:2770) by 0x41054E: main (ffmpeg.c:4565) Address 0x9c035f8 is 8 bytes after a block of size 352 alloc'd Invalid read of size 8 at 0x40B16B: transcode.clone.11 (ffmpeg.c:2770) by 0x41054E: main (ffmpeg.c:4565) Address 0x40 is not stack'd, malloc'd or (recently) free'd Process terminating with default action of signal 11 (SIGSEGV) Access not within mapped region at address 0x40 at 0x40B16B: transcode.clone.11 (ffmpeg.c:2770) by 0x41054E: main (ffmpeg.c:4565) I don't know if it is a bug or i did something wrong, but i post it in case it is a bug. Thank your for your time. From gkinsey at ad-holdings.co.uk Mon Jul 25 11:11:54 2011 From: gkinsey at ad-holdings.co.uk (Gavin Kinsey) Date: Mon, 25 Jul 2011 10:11:54 +0100 Subject: [FFmpeg-user] Building ffmpeg for iPhone error. In-Reply-To: <201107141444.58156.gkinsey@ad-holdings.co.uk> References: <1002CFB244ACDC489529FD187D1FB102012C58C4@ati2008.mail.aventura247.com> <201107120806.51471.gkinsey@ad-holdings.co.uk> <201107141444.58156.gkinsey@ad-holdings.co.uk> Message-ID: <201107251011.54505.gkinsey@ad-holdings.co.uk> On Thursday 14 July 2011 14:44:58 Gavin Kinsey wrote: > On Tuesday 12 July 2011 08:06:51 Gavin Kinsey wrote: > > On Friday 08 July 2011 17:39:55 Stephen Leicht wrote: > > > I'm having this same issue. Were you ever able to fix it? > > > > Revert commit e897a633cded0a8f283114e22766790f48ae8fa7 and it should > > build. > > and 5c46ad1da049f16e670d2549161c244c6ddd68ec > I don't use that codec so missed that one. Use the gas-preprocessor,pl from https://github.com/hollylee/gas- preprocessor and the master branch builds fine now. -- Gavin Kinsey AD Holdings Plc Closed IPTV, the new safe and secure deterministic IP Video solution from Dedicated Micros, is now shipping through selected distributors. - Come and see this award winning plug and play, IP Video innovation at one of our Roadshows around the UK visit: https://www.dedicatedmicros.com/europe/ClosedIPTVRoadshow2011 - Contact our Customer Services Team for more information regarding how to enter the world of safe and secure hybrid IP and analogue video surveillance systems. From kct.venkat at gmail.com Mon Jul 25 11:34:18 2011 From: kct.venkat at gmail.com (Venkatasubramaniam R) Date: Mon, 25 Jul 2011 11:34:18 +0200 Subject: [FFmpeg-user] Regarding -pix_fmt yuvj422p for the output yuv file. In-Reply-To: References: Message-ID: Hi, The '-pix_fmt uyvy422' idea worked out well. Now I am able to properly process the YUV files. Thanks a lot for reply. (If anyone is interested in a code example to process uyvy422 format, checkout the example C code in this link : http://www.wotsit.org/list.asp?al=Y , authored by Scott Scriven). Thanks, -Venkat. On Thu, Jul 21, 2011 at 6:35 PM, Venkatasubramaniam R wrote: > Hi Dave, > > Thanks for the idea, and surely uyvy format is documented in a more > detailed manner. Thanks for the links, they are really helpful. > > I chose yuvj422p because I have an original yuv video in the same format > and so I will be able to compare the original yuv with the modified yuv > easily. > > I will try with this uyvy format suggestion. If I come across any useful > ideas, I will post it in this mail chain. > > Thanks again, > -Venkat. > > > On Thu, Jul 21, 2011 at 6:17 PM, Dave Bevan wrote: > >> >> >Hi, >> >> >First of all, I would like to thank the FFmpeg authors for the >> software. It has been a great help for my work. >> >> >I am currently using ffmpeg (version SVN-r23401) for my video encoding >> and decoding process. I have some mp4 files which I decode to yuvj422 >> format for using the output yuv files for quality processing. >> >> >I am writing a c++ code to automate the processing of the yuv files, >> but I am completely not sure about the format in which the yuv pixels >> are stored.. >> >> >Please let me know what would be the actual format structure of the yuv >> file byte stream when I use the '-pix_fmt yuvj422p' tag for decode the >> mp4 to yuv422 file. Whether it is YUV422 (progressive/interlaced, >> packed/planar). >> This would be of great help. >> >> >> >> >> Personally, I'd suggest using "-pix_fmt uyvy422" - it's documented at >> http://www.fourcc.org/yuv.php, and http://www.fourcc.org/yuv.php#UYVY in >> particular. >> >> --D. >> >> http://www.bbc.co.uk/ >> This e-mail (and any attachments) is confidential and may contain personal >> views which are not the views of the BBC unless specifically stated. >> If you have received it in error, please delete it from your system. >> Do not use, copy or disclose the information in any way nor act in >> reliance on it and notify the sender immediately. >> Please note that the BBC monitors e-mails sent or received. >> Further communication will signify your consent to this. >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > > > -- > Regards, > > Venkatasubramaniam Ramshankar, > Graduate Student - M.Sc Communication Engg > TU M?nchen. > (00.49.176.624.11480) > LinkedIn : > http://www.linkedin.com/pub/venkatasubramaniam-ramshankar/5/b7b/ab7 > From victor.petrescu13 at gmail.com Mon Jul 25 11:50:13 2011 From: victor.petrescu13 at gmail.com (Victor Petrescu) Date: Mon, 25 Jul 2011 12:50:13 +0300 Subject: [FFmpeg-user] how can i capture video and audio simutaneously? In-Reply-To: References: Message-ID: I solved this by adding a -async 1. So your command should look like: ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -f alsa -ac 1 -i hw:1,0 -acodec libmp3lame -ab 96k -async 1 camera.mp4 Can't guarantee it will work... but it did it for me. 2011/7/24 chao sun > i have a webcam with mic, i can successfully capture video or audio > independently. But when i want to capture and mix video and audio into > one file, it goes that my video and audio does not synchronizing. > i use the following cmd line: > > ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -f alsa -ac 1 -i > hw:1,0 -acodec libmp3lame -ab 96k camera.mp4 > > The result file, in which the video has very slow start( may be due to > encoding i guess), and then goes normally, the whole audio goes > smoothly as normal. So it results in video-audio mis-sync. > How can i solve this ? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stefano.sabatini-lala at poste.it Mon Jul 25 12:05:35 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Mon, 25 Jul 2011 12:05:35 +0200 Subject: [FFmpeg-user] [ANNOUNCE] SOCIS - Request for students In-Reply-To: <20110719165333.GA4589@geppetto> References: <20110719165333.GA4589@geppetto> Message-ID: <20110725100535.GC9534@geppetto> On date Tuesday 2011-07-19 18:53:33 +0200, Stefano Sabatini encoded: > We're glad to announce that FFmpeg/Libav application to SOCIS (Summer > Of Code In Space) has been accepted and we've been allocated a slot > for a student: > http://sophia.estec.esa.int/socis2011/ > > The selected student will be sponsored to work on one of the tasks > listed at this page: > http://wiki.multimedia.cx/index.php?title=FFmpeg_/_Libav_Summer_Of_Code_In_Space_2011 > > but the student is allowed to propose a different task in case he/she > has a different proposal (but we can guarantee the task qualification > only in case we'll be able to couple him/her with a mentor). > > Students' application timeline is on July 27: > http://sophia.estec.esa.int/socis2011/?q=timeline > > If you are a student and you want to partecipate to the program, > you're invited to check more information from the SOCIS web site, in > particular to read the pages: > http://sophia.estec.esa.int/socis2011/?q=student_agreement > http://sophia.estec.esa.int/socis2011/?q=tos > > and get in touch as soon as possible with the administrator (Stefano > Sabatini) and/or with one of the mentors. > > Good luck! REMINDER Just want to remember to the potential candidate students that the application deadline is approaching (it will be on the next Wednesday, 27 July). If you're interested and are eligible for the task, don't miss this opportunity and get in touch with us as soon as possible! From sandipshete at gmail.com Tue Jul 26 05:43:44 2011 From: sandipshete at gmail.com (charvak) Date: Mon, 25 Jul 2011 20:43:44 -0700 (PDT) Subject: [FFmpeg-user] Lossless coding using ffmpeg with libschroedinger Message-ID: <1311651824219-3694810.post@n4.nabble.com> Hi, I recently downloaded the latest version of Schroedinger codec, which comes with a improved lossless coding support. However, I am unable to figure out exactly how to use it. This is what I am trying: * ffmpeg -s 704x576 -r 60 -i input.yuv -f mp4 -vcodec libschroedinger -qscale 0.0001 -y schro_lossless.mp4* When I try to reproduce the original yuv file by decoding schro_lossless.mp4, I don't get the original file(I check it by using diff). This is how i decode the file: * ffmpeg -i schro_lossless.mp4 schro_decoded.yuv* After this, *diff schro_decoded.yuv input.yuv * generates output, which means files are not equal. It is interesting that for snow codec, qscale=0.0001 works perfectly for lossless compression. Can anyone please tell what I am missing here? Thanks, charvak -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Lossless-coding-using-ffmpeg-with-libschroedinger-tp3694810p3694810.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dflett at bigpond.net.au Tue Jul 26 06:51:39 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Tue, 26 Jul 2011 14:51:39 +1000 Subject: [FFmpeg-user] Automatic Aspect Ratio Conversion Message-ID: <1C19E88B8ADF4E66A356A9AFFC9844A1@gtv.local> Hi all, For a while I'd been wondering if ffmpeg could correctly aspect ratio convert (ARC) a video to a specified width/height/Display Aspect Ratio(DAR), without needing to know the width/height/Display Aspect Ratio of the source file. I wanted to have the choice of padding (pillar or letterboxing) or cropping (centre cut). After reading the libavfilter documentation closely I found the answer under my nose. http://ffmpeg.org/libavfilter.html There is an example under the "pad" section: # pad the input to get a final w/h ratio of 16:9 pad="ih*16/9:ih:(ow-iw)/2:(oh-ih)/2" This example assumes that the input is thinner/taller than 16:9 - if the input video is wider/shorter than 16:9 it will fail with error - because the input width will be wider than ih*16/9 and pad doesn't allow an output width thinner than the input video. Another example is: # pad the input to get a squared output with size equal to the maximum # value between the input width and height, and put the input video at # the center of the padded area pad="max(iw\,ih):ow:(ow-iw)/2:(oh-ih)/2" This gives an output that is always padded square, regardless of the input video dimensions. To get the best of both examples (output 16:9 but works with any input dimensions) I did this: "pad=max(iw\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-ih)/2" -aspect 16:9 This example selects the maximum of either the input width as-is, or the input height * 16/9. The output height is the output width * 16/9. This gives an output that is always 16:9, padding either the sides or top/bottom, as appropriate. The video is always centred. However I found that if the input video is anamorphic (i.e. non-square pixel), the output is also anamorphic, and the DAR / SAR information is lost. To fix this, I did this: "scale=iw*sar:ih , pad=max(iw\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-ih)/2" -aspect 16:9 This scales the input width to make the pixels square. This means that subsequent padding/cropping/scaling operations are done on square-pixel video frames. To crop the input video to 16:9 instead of padding, I do this: "scale=iw*sar:ih , crop=min(iw\,ih*(16/9)):ow/(16/9)" -aspect 16:9 This chops off the sides or top/bottom, as appropriate to get a 16/9 output. Dan From ivica.vugrinec at gmail.com Tue Jul 26 08:19:19 2011 From: ivica.vugrinec at gmail.com (Ivica Vugrinec) Date: Tue, 26 Jul 2011 08:19:19 +0200 Subject: [FFmpeg-user] ffmpeg and dv1394 documentation Message-ID: Respected ffmpeg developers, Can anyone please direct me to some documentation how to use ffmpeg with my digital DV camera connected to firewire cable on laptop. Here is some info: SuSe11:/radni/ffmpeg # uname -a Linux SuSe11.domain.local 2.6.37.6-0.5-desktop #1 SMP PREEMPT 2011-04-25 21:48:33 +0200 x86_64 x86_64 x86_64 GNU/Linux When i connect my DV camcorder new device is created on /dev/fw1.?I can use/capture video in Gnome with Kino ?(video and audio) just fine. I would like to capture video from my camcorder by ffmpeg in command line. I have configured and compiled ffmpeg just fine and it is converting videos from files OK. I have also included the compile configuration in attachment. It shows dv1394 there. Enabled indevs: alsa?????????????????????????????????????? jack ?????????????? v4l dv1394???????????????????????????????? libdc1394??????????????????????????? v4l2 fbdev?????????????????????????????????? oss ??????????? x11_grab_device I have searched the web and i was not able to find working command line. This also works: dvgrab -format dv1 - | ffmpeg -deinterlace -i - -vcodec libx264 -s 320x200 -aspect 16:9 -an -f flv rtmp://server/feed1 but i would rather avoid piping from dvgrab if possible. Can anyone please point me in right direction? Thanks, Ivica -------------- next part -------------- Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... install prefix /usr source path . C compiler gcc ARCH x86 (generic) big-endian no runtime cpu detection no yasm yes MMX enabled yes MMX2 enabled yes 3DNow! enabled yes 3DNow! extended enabled yes SSE enabled yes SSSE3 enabled yes AVX enabled yes CMOV enabled yes CMOV is fast yes EBX available yes EBP available yes debug symbols yes strip symbols no optimize for size no optimizations yes static no shared yes postprocessing support yes new filter support yes network support yes threading support pthreads SDL support yes Sun medialib support no libdxva2 enabled no libva enabled yes libvdpau enabled yes AVISynth enabled no libcelt enabled no frei0r enabled no libdc1394 support yes libdirac enabled no libfaac enabled yes libgsm enabled yes libmp3lame enabled yes libnut enabled no libopencore-amrnb support yes libopencore-amrwb support yes libopencv support no libopenjpeg enabled no librtmp enabled yes libschroedinger enabled yes libspeex enabled yes libtheora enabled yes libvo-aacenc support no libvo-amrwbenc support no libvorbis enabled yes libvpx enabled yes libx264 enabled yes libxavs enabled no libxvid enabled yes openal enabled no zlib enabled yes bzlib enabled no Enabled decoders: aac dpx mmvideo aac_latm dsicinaudio motionpixels aasc dsicinvideo mp1 ac3 dvbsub mp1float adpcm_4xm dvdsub mp2 adpcm_adx dvvideo mp2float adpcm_ct dxa mp3 adpcm_ea eac3 mp3adu adpcm_ea_maxis_xa eacmv mp3adufloat adpcm_ea_r1 eamad mp3float adpcm_ea_r2 eatgq mp3on4 adpcm_ea_r3 eatgv mp3on4float adpcm_ea_xas eatqi mpc7 adpcm_g722 eightbps mpc8 adpcm_g726 eightsvx_exp mpeg1_vdpau adpcm_ima_amv eightsvx_fib mpeg1video adpcm_ima_dk3 eightsvx_raw mpeg2video adpcm_ima_dk4 escape124 mpeg4 adpcm_ima_ea_eacs ffv1 mpeg4_vdpau adpcm_ima_ea_sead ffvhuff mpeg_vdpau adpcm_ima_iss flac mpeg_xvmc adpcm_ima_qt flashsv mpegvideo adpcm_ima_smjpeg flic msmpeg4v1 adpcm_ima_wav flv msmpeg4v2 adpcm_ima_ws fourxm msmpeg4v3 adpcm_ms fraps msrle adpcm_sbpro_2 frwu msvideo1 adpcm_sbpro_3 gif mszh adpcm_sbpro_4 gsm mxpeg adpcm_swf gsm_ms nellymoser adpcm_thp h261 nuv adpcm_xa h263 pam adpcm_yamaha h263i pbm alac h264 pcm_alaw als h264_vdpau pcm_bluray amrnb huffyuv pcm_dvd amrwb idcin pcm_f32be amv iff_byterun1 pcm_f32le anm iff_ilbm pcm_f64be ansi imc pcm_f64le ape indeo2 pcm_lxf ass indeo3 pcm_mulaw asv1 indeo5 pcm_s16be asv2 interplay_dpcm pcm_s16le atrac1 interplay_video pcm_s16le_planar atrac3 jpeg2000 pcm_s24be aura jpegls pcm_s24daud aura2 jv pcm_s24le avs kgv1 pcm_s32be bethsoftvid kmvc pcm_s32le bfi lagarith pcm_s8 bink libgsm pcm_u16be binkaudio_dct libgsm_ms pcm_u16le binkaudio_rdft libopencore_amrnb pcm_u24be bmp libopencore_amrwb pcm_u24le c93 libschroedinger pcm_u32be cavs libspeex pcm_u32le cdgraphics libvpx pcm_u8 cinepak loco pcm_zork cljr mace3 pcx cook mace6 pgm cscd mdec pgmyuv cyuv mimic pgssub dca mjpeg pictor dfa mjpegb png dnxhd mlp ppm ptx sp5x vmnc qcelp srt vorbis qdm2 sunrast vp3 qdraw svq1 vp5 qpeg svq3 vp6 qtrle targa vp6a r10k theora vp6f r210 thp vp8 ra_144 tiertexseqvideo vqa ra_288 tiff wavpack rawvideo tmv wmapro rl2 truehd wmav1 roq truemotion1 wmav2 roq_dpcm truemotion2 wmavoice rpza truespeech wmv1 rv10 tscc wmv2 rv20 tta wmv3 rv30 twinvq wmv3_vdpau rv40 txd wnv1 s302m ulti ws_snd1 sgi v210 xan_dpcm shorten v210x xan_wc3 sipr vb xan_wc4 smackaud vc1 xl smacker vc1_vdpau xsub smc vcr1 yop snow vmdaudio zlib sol_dpcm vmdvideo zmbv sonic Enabled encoders: a64multi libfaac pcm_u16be a64multi5 libgsm pcm_u16le aac libgsm_ms pcm_u24be ac3 libmp3lame pcm_u24le ac3_fixed libopencore_amrnb pcm_u32be ac3_float libschroedinger pcm_u32le adpcm_adx libtheora pcm_u8 adpcm_g722 libvorbis pcm_zork adpcm_g726 libvpx pcx adpcm_ima_qt libx264 pgm adpcm_ima_wav libxvid pgmyuv adpcm_ms ljpeg png adpcm_swf mjpeg ppm adpcm_yamaha mp2 qtrle alac mpeg1video ra_144 ass mpeg2video rawvideo asv1 mpeg4 roq asv2 msmpeg4v2 roq_dpcm bmp msmpeg4v3 rv10 dca msvideo1 rv20 dnxhd nellymoser sgi dpx pam snow dvbsub pbm sonic dvdsub pcm_alaw sonic_ls dvvideo pcm_f32be srt eac3 pcm_f32le svq1 ffv1 pcm_f64be targa ffvhuff pcm_f64le tiff flac pcm_mulaw v210 flashsv pcm_s16be vorbis flashsv2 pcm_s16le wmav1 flv pcm_s24be wmav2 gif pcm_s24daud wmv1 h261 pcm_s24le wmv2 h263 pcm_s32be xsub h263p pcm_s32le zlib huffyuv pcm_s8 zmbv jpegls Enabled hwaccels: h263_vaapi mpeg2_vaapi vc1_vaapi h264_vaapi mpeg2_vdpau wmv3_vaapi mpeg1_vdpau mpeg4_vaapi Enabled parsers: aac dvdsub mpeg4video aac_latm flac mpegaudio ac3 h261 mpegvideo cavsvideo h263 pnm dca h264 vc1 dirac mjpeg vp3 dnxhd mlp vp8 dvbsub Enabled demuxers: aac ipmovie pcm_u32be ac3 iss pcm_u32le aea iv8 pcm_u8 aiff ivf pmp amr jv pva anm lmlm4 qcp apc lxf r3d ape m4v rawvideo applehttp matroska rl2 asf microdvd rm ass mjpeg roq au mlp rpl avi mm rso avs mmf rtp bethsoftvid mov rtsp bfi mp3 sap bink mpc sdp c93 mpc8 segafilm caf mpegps shorten cavsvideo mpegts siff cdg mpegtsraw smacker daud mpegvideo sol dfa msnwc_tcp sox dirac mtv spdif dnxhd mvi srt dsicin mxf str dts mxg swf dv nc thp dxa nsv tiertexseq ea nut tmv ea_cdata nuv truehd eac3 ogg tta ffm oma tty ffmetadata pcm_alaw txd filmstrip pcm_f32be vc1 flac pcm_f32le vc1t flic pcm_f64be vmd flv pcm_f64le voc fourxm pcm_mulaw vqf g722 pcm_s16be w64 gsm pcm_s16le wav gxf pcm_s24be wc3 h261 pcm_s24le wsaud h263 pcm_s32be wsvqa h264 pcm_s32le wtv idcin pcm_s8 wv iff pcm_u16be xa image2 pcm_u16le xwma image2pipe pcm_u24be yop ingenient pcm_u24le yuv4mpegpipe Enabled muxers: a64 ipod pcm_s16be ac3 ivf pcm_s16le adts m4v pcm_s24be aiff matroska pcm_s24le amr matroska_audio pcm_s32be asf md5 pcm_s32le asf_stream microdvd pcm_s8 ass mjpeg pcm_u16be au mlp pcm_u16le avi mmf pcm_u24be avm2 mov pcm_u24le caf mp2 pcm_u32be cavsvideo mp3 pcm_u32le crc mp4 pcm_u8 daud mpeg1system psp dirac mpeg1vcd rawvideo dnxhd mpeg1video rm dts mpeg2dvd roq dv mpeg2svcd rso eac3 mpeg2video rtp ffm mpeg2vob rtsp ffmetadata mpegts sap filmstrip mpjpeg sox flac mxf spdif flv mxf_d10 srt framecrc null swf framemd5 nut tg2 g722 ogg tgp gif pcm_alaw truehd gxf pcm_f32be vc1t h261 pcm_f32le voc h263 pcm_f64be wav h264 pcm_f64le webm image2 pcm_mulaw yuv4mpegpipe image2pipe Enabled protocols: applehttp md5 rtmps concat mmsh rtmpt crypto mmst rtmpte file pipe rtp gopher rtmp tcp http rtmpe udp Enabled filters: anull gradfun rgbtestsrc anullsink hflip scale anullsrc hqdn3d select blackframe lut setdar boxblur lutrgb setpts buffer lutyuv setsar buffersink movie settb color mp showinfo copy negate slicify crop noformat split cropdetect null testsrc drawbox nullsink transpose fade nullsrc unsharp fieldorder overlay vflip fifo pad yadif format pixdesctest Enabled bsfs: aac_adtstoasc mjpeg2jpeg mp3_header_decompress chomp mjpega_dump_header noise dump_extradata mov2textsub remove_extradata h264_mp4toannexb mp3_header_compress text2movsub imx_dump_header Enabled indevs: alsa jack v4l dv1394 libdc1394 v4l2 fbdev oss x11_grab_device Enabled outdevs: alsa oss sdl License: nonfree and unredistributable Creating config.mak and config.h... config.h is unchanged config.asm is unchanged libavutil/avconfig.h is unchanged From br at bitberry.com Tue Jul 26 11:38:37 2011 From: br at bitberry.com (Brian Rasmusson) Date: Tue, 26 Jul 2011 11:38:37 +0200 Subject: [FFmpeg-user] List of command lines to convert to various devices Message-ID: <4E2E8B1D.2090009@bitberry.com> Hi, I was wondering if somebody is maintaining a list of FFmpeg command lines to convert audio and video files to various devices? For example, http://www.xmedia-recode.de uses FFmpeg to convert to various mobile phones, consoles, TVs etc. They have a proprietary profile format, and unfortunately they don't release the source code of their product even though they should (uses the GPL version of FFmpeg). Does anybody maintain a list like that for use with the FFmpeg (not the .dll/.so version, the standalone executable)? Best, Brian From alex at ewadev.com Tue Jul 26 12:59:52 2011 From: alex at ewadev.com (Alex Z) Date: Tue, 26 Jul 2011 12:59:52 +0200 Subject: [FFmpeg-user] Crop from bottom only Message-ID: Hi, I have a movie 640x480 and I need to cut 20px from bottom. It was easily done with previous ffmpeg versions with "-cropbottom 20", but with -vf "crop=x:y:x:y" I am puzzled. Can someone help me out? Thanks From stefano.sabatini-lala at poste.it Tue Jul 26 13:45:25 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Tue, 26 Jul 2011 13:45:25 +0200 Subject: [FFmpeg-user] Crop from bottom only In-Reply-To: References: Message-ID: <20110726114525.GA3792@geppetto> On date Tuesday 2011-07-26 12:59:52 +0200, Alex Z encoded: > Hi, I have a movie 640x480 and I need to cut 20px from bottom. It was > easily done with previous ffmpeg versions with "-cropbottom 20", but > with -vf "crop=x:y:x:y" I am puzzled. > > Can someone help me out? Crop syntax is: crop=width:height:x:y so you simply need to specify crop=in_w:in_h-10:0:0 Read the manual for more details. -- ffmpeg-user random tip #17 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? From ffmpeg2 at engene.se Tue Jul 26 13:55:01 2011 From: ffmpeg2 at engene.se (Marcus Engene) Date: Tue, 26 Jul 2011 13:55:01 +0200 Subject: [FFmpeg-user] x264 settings for web Message-ID: <4E2EAB15.7060008@engene.se> Hi, Is there any useful guide for encoding H.264 videos in "youtube sizes" for web (desktop, not iOS) using the new ffmpeg syntax (embedded x264 settings string)? Robert Swains generally linked to website seems down. Thanks, Marcus From stefano.sabatini-lala at poste.it Tue Jul 26 13:50:03 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Tue, 26 Jul 2011 13:50:03 +0200 Subject: [FFmpeg-user] Automatic Aspect Ratio Conversion In-Reply-To: <1C19E88B8ADF4E66A356A9AFFC9844A1@gtv.local> References: <1C19E88B8ADF4E66A356A9AFFC9844A1@gtv.local> Message-ID: <20110726115003.GB3792@geppetto> On date Tuesday 2011-07-26 14:51:39 +1000, Dan Flett encoded: > Hi all, > > For a while I'd been wondering if ffmpeg could correctly aspect ratio > convert (ARC) a video to a specified width/height/Display Aspect Ratio(DAR), > without needing to know the width/height/Display Aspect Ratio of the source > file. > > I wanted to have the choice of padding (pillar or letterboxing) or cropping > (centre cut). After reading the libavfilter documentation closely I found > the answer under my nose. > > http://ffmpeg.org/libavfilter.html > > There is an example under the "pad" section: > > # pad the input to get a final w/h ratio of 16:9 > pad="ih*16/9:ih:(ow-iw)/2:(oh-ih)/2" > > This example assumes that the input is thinner/taller than 16:9 - if the > input video is wider/shorter than 16:9 it will fail with error - because the > input width will be wider than ih*16/9 and pad doesn't allow an output width > thinner than the input video. > > Another example is: > > # pad the input to get a squared output with size equal to the maximum > # value between the input width and height, and put the input video at > # the center of the padded area > pad="max(iw\,ih):ow:(ow-iw)/2:(oh-ih)/2" > > This gives an output that is always padded square, regardless of the input > video dimensions. > > To get the best of both examples (output 16:9 but works with any input > dimensions) I did this: > "pad=max(iw\,ih*(16/9)):ow/(16/9):(ow-iw)/2:(oh-ih)/2" -aspect 16:9 > > This example selects the maximum of either the input width as-is, or the > input height * 16/9. The output height is the output width * 16/9. > > This gives an output that is always 16:9, padding either the sides or > top/bottom, as appropriate. The video is always centred. > > However I found that if the input video is anamorphic (i.e. non-square > pixel), the output is also anamorphic, and the DAR / SAR information is > lost. Yes this is a bug which needs to be fixed. Currently a=in_w/in_h, which is not what the docs say. Possible solutions: 1. keep the current semantics for a, and fix the docs 2. change semantics for a to match the docs I can't say which of 1. or 2. is better, they both have problems, what do you suggest to do? And of course we'll have to add the sar/dar variables. -- ffmpeg-user random tip #13 Have you ever *seen* ffmpeg? find ~/src/ffmpeg/ -type f | xargs cat | ffmpeg -s qcif \ -f rawvideo -i - -y ff.mpeg From dflett at bigpond.net.au Tue Jul 26 14:56:21 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Tue, 26 Jul 2011 22:56:21 +1000 Subject: [FFmpeg-user] Automatic Aspect Ratio Conversion In-Reply-To: <20110726115003.GB3792@geppetto> References: <1C19E88B8ADF4E66A356A9AFFC9844A1@gtv.local> <20110726115003.GB3792@geppetto> Message-ID: <8405DEB8BD294EDC89A39B13D63E00E9@gtv.local> -----Original Message----- Behalf Of Stefano Sabatini Subject: Re: [FFmpeg-user] Automatic Aspect Ratio Conversion On date Tuesday 2011-07-26 14:51:39 +1000, Dan Flett encoded: > However I found that if the input video is anamorphic (i.e. non-square > pixel), the output is also anamorphic, and the DAR / SAR information > is lost. Yes this is a bug which needs to be fixed. Currently a=in_w/in_h, which is not what the docs say. Possible solutions: 1. keep the current semantics for a, and fix the docs 2. change semantics for a to match the docs I can't say which of 1. or 2. is better, they both have problems, what do you suggest to do? And of course we'll have to add the sar/dar variables. ---------------------------------------- Under the "Pad" heading, it does list: `dar, a' input display aspect ratio, same as iw / ih Did someone just change this? :) Perhaps, to be consistent with the ffmpeg/ffprobe output, sar should be par (or par and sar be the same). I've noticed that when using "scale", using -1 for width or height maintains the display aspect ratio, but throws away the sar, leading to possibly anamorphic output. I find that in general, I like to start with the "scale=iw*sar:ih" to get everything as square pixels, then do my transformations as square pixels, then scale it to anamorphic at the end if I need to (and if it's IMX-D10, pad 32 lines to the top after that). I also can't find much in the way of documentation for the functions such as "max()" - max() itself is fairly obvious, but I'd like to know what other functions I can use, and how they work. I checked out the libavfilter code and couldn't find them there either. From fcassia at gmail.com Tue Jul 26 20:32:04 2011 From: fcassia at gmail.com (Fernando Cassia) Date: Tue, 26 Jul 2011 15:32:04 -0300 Subject: [FFmpeg-user] Human-readable size... Message-ID: While encoding, FFMPEG shows something like frame=19474 fps= 76 q=2.6 size= 57370kB 57379kB is very difficult to read at first glance specially as the number gets higher. Wouldn?t it be easier to show it in more human-readable format like size= 57,370 KB (notice the space between the number and "KB", and also the thousands separator) Ideally, it should also change to "MB" and "GB" FC From mglind at utah.com Tue Jul 19 18:50:08 2011 From: mglind at utah.com (Mark G. Lind) Date: Tue, 19 Jul 2011 10:50:08 -0600 Subject: [FFmpeg-user] ffmpeg console output Message-ID: <007b01cc4633$ee972120$cbc56360$@com> Is there a way to suppress the console output from ffmpeg run from the command line. I tried using -loglevel quiet and -loglevel 0, but still get console output. Console output looks like this: 6418050617# ffmpeg -loglevel 0 -i zion-springdale-ad.flv FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Mar 18 2011 13:44:13 with gcc 4.2.1 20070719 [FreeBSD] configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-memalign-hack --cc=cc --extra-cflags=-msse -I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-pthread --disable-debug --disable-indev=alsa --disable-outdev=alsa --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --disable-libdirac --enable-libfaac --enable-nonfree --enable-libfaad --enable-libfaadbin --disable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12) At least one output file must be specified Whenever ffmpeg is called this is the minimal output and it fills up much web server logs. Also, when I try to run an ffmpeg command in a shell script and try to put it in the background it doesn't run. When it gets put in the background the job is just suspended and output a line like this. [1] + Suspended (tty output) ./ffmpeg-mbr somefile.flv somedirectory ffmpeg-mbr just runs multiple ffmpeg commands to output files at multiple bit rates. I have two problems I need to resolve. 1. ffmpeg filling up web server logs 2. ffmpeg not running in the background on a linux server Thanks for your help. Mark From tomas.znamenacek at gmail.com Thu Jul 21 10:24:42 2011 From: tomas.znamenacek at gmail.com (=?utf-8?Q?Tom=C3=A1=C5=A1_Znamen=C3=A1=C4=8Dek?=) Date: Thu, 21 Jul 2011 10:24:42 +0200 Subject: [FFmpeg-user] Specify frame types when encoding video Message-ID: <94C57B33-EB37-4522-A295-157D35108624@gmail.com> Hello! I have a video that I play on a mobile device. I have to be able to seek very quickly in the video stream. As the seeking was too slow in a regular video stream, I added the ?intra flag when encoding the stream with ffmpeg. This forces all frames to be intra frames and makes seeking much faster on the mobile device. Unfortunately it also blows the file size, as all frames are stored as individual images. As I only seek to several precise points in the video, I figured I could make just these ?target? frames intra and let the rest of the stream to be compressed as usual, with interframe compression. The stream would then look like this: frame 000, intra, can be jumped to frame 001, inter, cannot be jumped to frame 002, inter, cannot be jumped to frame 003, inter, cannot be jumped to ? frame 100, intra, can be jumped to Is it possible to specify the individual frame types (inter/intra) like this when compressing with ffmpeg? Thank you, T. -- Use what talents you possess: the woods would be very silent if no birds sang there except those that sang best. ?Henry Van Dyke From benmesander at yahoo.com Thu Jul 21 20:26:12 2011 From: benmesander at yahoo.com (Ben Mesander) Date: Thu, 21 Jul 2011 11:26:12 -0700 (PDT) Subject: [FFmpeg-user] getting 'av_interleaved_write_frame(): Operation not permitted with mp4 files In-Reply-To: <316ABB7EE42BC448BDBDE73B4323B09B1DFE6E8C@evcspmbx4.ads.northwestern.edu> References: <1311264153812-3684114.post@n4.nabble.com> <316ABB7EE42BC448BDBDE73B4323B09B1DFE6E8C@evcspmbx4.ads.northwestern.edu> Message-ID: <1311272772.63433.YahooMailRC@web161318.mail.bf1.yahoo.com> Hi Patricia, > This would save ffmpeg users (especially inexperienced ones, like myself) tons >of time (which would otherwise > be wasted trying to figure out what on earth the error messages actually mean). >If this feature hasn't been > requested yet, and there is a way to request it you can point me to, please let >me know. Thanks, ffmpeg gets an error code back from the operating system that it is running on, and that is what is being displayed. It doesn't know if it's writing to a local filesystem, a network filesystem, a pipe, a fifo, or even what OS might be implementing the POSIX API that it is using. In this regard, ffmpeg is no different than any other application for developed against the POSIX API. Unfortunately this is confusing at times, if you are running on linux, you may want to look at /var/log/messages or similar when you get unexpected behavior from an application. Regards, Ben From dan_coffey at harvard.edu Tue Jul 26 19:16:52 2011 From: dan_coffey at harvard.edu (dcoffey3296) Date: Tue, 26 Jul 2011 10:16:52 -0700 (PDT) Subject: [FFmpeg-user] Summing 2 stereo channels to mono (2 channels) Message-ID: <1311700612075-3696413.post@n4.nabble.com> Hello, I have searched all over the internet to find an answer to this question, but no definitive answer- just a lot of "i don't think so". I am hoping that someone will read this and tell me it's simple!! I have a .mov (XDCAM EX) with 2 channels of audio - separated left and right. My goal is to have the resulting h.264 (.mp4) output with a mono mix of both channels in both ears (left and right are the same). Please let me know if this is possible, I am trying to build an automated workflow. I know this is possible in sox or mencoder but i would prefer to keep this to as few commands as possible. Thank you for your help! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Summing-2-stereo-channels-to-mono-2-channels-tp3696413p3696413.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From pgoldweic at northwestern.edu Tue Jul 26 21:39:40 2011 From: pgoldweic at northwestern.edu (Patricia N Goldweic) Date: Tue, 26 Jul 2011 19:39:40 +0000 Subject: [FFmpeg-user] getting 'av_interleaved_write_frame(): Operation not permitted with mp4 files In-Reply-To: <1311272772.63433.YahooMailRC@web161318.mail.bf1.yahoo.com> References: <1311264153812-3684114.post@n4.nabble.com> <316ABB7EE42BC448BDBDE73B4323B09B1DFE6E8C@evcspmbx4.ads.northwestern.edu> <1311272772.63433.YahooMailRC@web161318.mail.bf1.yahoo.com> Message-ID: <316ABB7EE42BC448BDBDE73B4323B09B1DFEE10E@evcspmbx4.ads.northwestern.edu> Ok, thanks for getting back to me. -Patricia -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Ben Mesander Sent: Thursday, July 21, 2011 1:26 PM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] getting 'av_interleaved_write_frame(): Operation not permitted with mp4 files Hi Patricia, > This would save ffmpeg users (especially inexperienced ones, like >myself) tons of time (which would otherwise be wasted trying to >figure out what on earth the error messages actually mean). >If this feature hasn't been > requested yet, and there is a way to request it you can point me to, >please let me know. Thanks, ffmpeg gets an error code back from the operating system that it is running on, and that is what is being displayed. It doesn't know if it's writing to a local filesystem, a network filesystem, a pipe, a fifo, or even what OS might be implementing the POSIX API that it is using. In this regard, ffmpeg is no different than any other application for developed against the POSIX API. Unfortunately this is confusing at times, if you are running on linux, you may want to look at /var/log/messages or similar when you get unexpected behavior from an application. Regards, Ben _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From luj125 at gmail.com Tue Jul 26 21:48:02 2011 From: luj125 at gmail.com (James Lu) Date: Tue, 26 Jul 2011 15:48:02 -0400 Subject: [FFmpeg-user] Specify frame types when encoding video In-Reply-To: <94C57B33-EB37-4522-A295-157D35108624@gmail.com> References: <94C57B33-EB37-4522-A295-157D35108624@gmail.com> Message-ID: Hi Tomas, The option you are looking for is -g, from the documentation: `-g gop_size' Set the group of pictures size. The "group of pictures" is 1 series of pictures, containing only 1 intra frame (at the beginning) and then the rest are B or P frames. In your example, you'd use the option '-g 100' I'd suggest you place a keyframe at intervals between 1-5 seconds for a usable, highly compressed video. Hope this helps, ~James 2011/7/21 Tom?? Znamen??ek > Hello! > > I have a video that I play on a mobile device. I have to be able to seek > very quickly in the video stream. As the seeking was too slow in a regular > video stream, I added the ?intra flag when encoding the stream with ffmpeg. > This forces all frames to be intra frames and makes seeking much faster on > the mobile device. Unfortunately it also blows the file size, as all frames > are stored as individual images. > > As I only seek to several precise points in the video, I figured I could > make just these ?target? frames intra and let the rest of the stream to be > compressed as usual, with interframe compression. The stream would then look > like this: > > frame 000, intra, can be jumped to > frame 001, inter, cannot be jumped to > frame 002, inter, cannot be jumped to > frame 003, inter, cannot be jumped to > ? > frame 100, intra, can be jumped to > > Is it possible to specify the individual frame types (inter/intra) like > this when compressing with ffmpeg? > > Thank you, > > T. > > -- > Use what talents you possess: the woods would be very silent > if no birds sang there except those that sang best. ?Henry Van Dyke > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From br at bitberry.com Tue Jul 26 22:48:39 2011 From: br at bitberry.com (Brian Rasmusson) Date: Tue, 26 Jul 2011 22:48:39 +0200 Subject: [FFmpeg-user] Difference between ffmpeg command line and shared object? Message-ID: <4E2F2827.5040506@bitberry.com> I'm researching a project where I need to use a command line version of FFmpeg instead of the shared libraries directly. I have a programmer lined up to do it, but he says that the options you can set using the shared library directly cannot all be set using command line parameters to the ffmpeg executable. Is this really so, or is there a way to build up a long command string and have ffmpeg.exe parse it, if not all options are available as separate command line parameters? Thanks, Brian From mouk.naj at gmail.com Tue Jul 26 22:53:46 2011 From: mouk.naj at gmail.com (mouk naj) Date: Tue, 26 Jul 2011 13:53:46 -0700 Subject: [FFmpeg-user] Invalid pixel aspect ratio 65536/65536, limit is 255/255 Message-ID: hi there, i am getting an "Invalid pixel aspect ratio 65536/65536, limit is 255/255" error message when using ffmpeg 0.8 i am able to work around this issue if i simply remove CODEC_ID_MPEG4 check from libavcodec/mpegvideo_enc.c:MPV_encode_init() where this error is generated, but that obviously isn't right way to solve it. when we used 0.6 version of ffmpeg, this problem didn't exist. here is the command line: /usr/local/bin/ffmpeg -y -timelimit 60 -i /d4/26/10/1/9/19058ef0b381265b7bf7ff9eefe8c402.3gp -r 30 -ab 12288 -vcodec mpeg4 -acodec libfaac -b 2097152 -sample_fmt s16 /d4/26/10/1/9/iphone.19058ef0b381265b7bf7ff9eefe8c402.mp4 here is full output of the command: ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 25 2011 14:48:34 with gcc 4.2.2 20070831 prerelease [FreeBSD] configuration: --extra-cflags='-DBROKEN_RELOCATIONS=1' --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-everything --disable-libxvid --disable-gray --disable-small --disable-libdc1394 --disable-libnut --enable-filters --disable-avdevice --disable-network --disable-protocols --enable-protocol=file --disable-indevs --disable-outdevs --disable-bsfs --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libx264 --enable-libmp3lame --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-encoder=aac --enable-encoder=mpeg4 --enable-encoder=libx264 --enable-encoder=libfaac --enable-encoder=libmp3lame --enable-encoder=libopencore_amrnb --enable-encoder=libopencore_amrwb --enable-decoder=aac --enable-decoder=h264 --enable-decoder=h263 --enable-decoder=mpeg4 --enable-decoder=adpcm_ima_qt --enable-decoder=libopencore_amrnb --enable-decoder=libopencore_amrwb --enable-demuxer=caf --enable-demuxer=mp3 --enable-demuxer=amr --enable-demuxer=mov --enable-demuxer=h263 --enable-demuxer=h264 --enable-muxer=caf --enable-muxer=mp3 --enable-muxer=amr --enable-muxer=mov --enable-muxer=mp4 --enable-muxer=h263 --enable-muxer=h264 --enable-muxer=tgp --enable-parser=aac --enable-parser=h263 --enable-parser=h264 --enable-parser=mpegvideo --enable-parser=mpegaudio --enable-parser=mpeg4video libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x801a18c00] multiple edit list entries, a/v desync might occur, patch welcome Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/d4/26/10/1/9/19058ef0b381265b7bf7ff9eefe8c402.3gp': Metadata: major_brand : 3gp4 minor_version : 0 compatible_brands: isom3gp4 creation_time : 1945-07-25 17:36:57 Duration: 00:00:08.80, start: 0.000000, bitrate: 2384 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, mono, s16, 63 kb/s Metadata: creation_time : 1945-07-25 17:36:57 Stream #0.1(eng): Video: mpeg4, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 1610 kb/s, 18.82 fps, 30 tbr, 90k tbn, 30 tbc Metadata: creation_time : 1945-07-25 17:36:57 [buffer @ 0x801a0b240] w:640 h:480 pixfmt:yuv420p tb:1/1000000 sar:65536/65536 sws_param: [mpeg4 @ 0x801a0ef00] Invalid pixel aspect ratio 65536/65536, limit is 255/255 Output #0, mp4, to '/d4/26/10/1/9/iphone.19058ef0b381265b7bf7ff9eefe8c402.mp4': Stream #0.0(eng): Video: mpeg4, yuv420p, 640x480 [PAR 65536:65536 DAR 4:3], q=2-31, 2097 kb/s, 90k tbn, 30 tbc Metadata: creation_time : 1945-07-25 17:36:57 Stream #0.1(eng): Audio: libfaac, 44100 Hz, mono, s16, 12 kb/s Metadata: creation_time : 1945-07-25 17:36:57 Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height (i tried ftp uploading sample video to upload.ffmpeg.org as instructed in the "reporting bug reports" section, but server seems to be down) From joolzg at btinternet.com Wed Jul 27 01:21:24 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Wed, 27 Jul 2011 00:21:24 +0100 (BST) Subject: [FFmpeg-user] multi encoding Message-ID: <1311722484.47031.YahooMailNeo@web86407.mail.ird.yahoo.com> OK i have a problem with live encoding to 2 bitrates at the same time. Im trying to get HLS working and have a seperate program that does the segmenting of the stream into the HLS streams. So i have my ffmpeg taking in a live stream and encoding to h264 and aac and creating 2 streams, these are streamed over udp and on another machine i take in the 2 streams and chop them up into segments, the reason for this is I need the PTSs to be the same for each segment, and also i need the 2 seperate streams for another reason. Now the problem is that when i run my segmenter, which runs the segmented code in 2 seperate pthread tasks i get a crash which ALWAYS says [mpegts @ xxxxx] aac bitstream not in adts format and extradata missing Now ive added in the av_lock_manager so as stop the errors on av_open, but i dont see anymore lock calls once the stream has been opened.. Now ive checked the segmenter and there are no global variables used within it, all of the tables, structures are either local or in a big structure, so this is not the cause. So has anybody run into this, or even validated that ffmpeg can output 2 streams at once. joolz From butting.mp at gmail.com Wed Jul 27 06:10:54 2011 From: butting.mp at gmail.com (Bryce Utting) Date: Wed, 27 Jul 2011 16:10:54 +1200 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: References: Message-ID: <4E2F8FCE.7090108@gmail.com> Fernando Cassia wrote: > While encoding, FFMPEG shows something like > > frame=19474 fps= 76 q=2.6 size= 57370kB > 57379kB is very difficult to read at first glance specially as the > number gets higher. > > Wouldn?t it be easier to show it in more human-readable format like > > size= 57,370 KB > > (notice the space between the number and "KB", and also the thousands separator) Well, for one thing it's not usually humans who are reading that output. I have code that monitors the frame count, which would do doubtless unexpected things if the way it's presented changed; there's bound to be others who parse the size. And then there's those who'd quite validly read "," as a decimal separator, not a thousands one. > Ideally, it should also change to "MB" and "GB" Also not necessarily useful, especially if they're rounded to integers. Code that's watching for changes in size to report on progress has something to do when "57370kB" becomes "57380kB". When "56 MB" becomes, well, "56 MB", there's no way of telling that anything's changed. butting From fcassia at gmail.com Wed Jul 27 06:24:21 2011 From: fcassia at gmail.com (Fernando Cassia) Date: Wed, 27 Jul 2011 01:24:21 -0300 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: <4E2F8FCE.7090108@gmail.com> References: <4E2F8FCE.7090108@gmail.com> Message-ID: On Wed, Jul 27, 2011 at 01:10, Bryce Utting wrote: > Well, for one thing it's not usually humans who are reading that output. Oh really? How about people who download WinFF to convert videos which spawns ffmpeg to a command line window?. At least, an extra switch for human-readable size values should be offered as an option, that way it wouldn?t break current programs that parse ffmpeg?s output, but users of ffmpeg front-ends like WinFF could add the extra switch to the passed parameters and enjoy human-readable values... FC From Jonas.Kuepper at cinepostproduction.de Wed Jul 27 09:32:42 2011 From: Jonas.Kuepper at cinepostproduction.de (Jonas Kuepper) Date: Wed, 27 Jul 2011 07:32:42 +0000 Subject: [FFmpeg-user] ffmpeg console output In-Reply-To: <007b01cc4633$ee972120$cbc56360$@com> References: <007b01cc4633$ee972120$cbc56360$@com> Message-ID: Hey Mark, i am not really sure about this, but i think the output you see is the error stream. You may try to route this to a file or /dev/null with ffmpeg -loglevel 0 -i zion-springdale-ad.flv 2>ffmpeg_logfile.txt or the like. This output can also be blamed for not executing ffmpeg in the background because the process has no output stream to write this messages to. But again, i didn't try this and I'm not sure. Regards Jonas ________________________________________ Von: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org]" im Auftrag von "Mark G. Lind [mglind at utah.com] Gesendet: Dienstag, 19. Juli 2011 18:50 An: ffmpeg-user at ffmpeg.org Betreff: [FFmpeg-user] ffmpeg console output Is there a way to suppress the console output from ffmpeg run from the command line. I tried using -loglevel quiet and -loglevel 0, but still get console output. Console output looks like this: 6418050617# ffmpeg -loglevel 0 -i zion-springdale-ad.flv FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Mar 18 2011 13:44:13 with gcc 4.2.1 20070719 [FreeBSD] configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-memalign-hack --cc=cc --extra-cflags=-msse -I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-pthread --disable-debug --disable-indev=alsa --disable-outdev=alsa --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --disable-libdirac --enable-libfaac --enable-nonfree --enable-libfaad --enable-libfaadbin --disable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.92 (359/12) At least one output file must be specified Whenever ffmpeg is called this is the minimal output and it fills up much web server logs. Also, when I try to run an ffmpeg command in a shell script and try to put it in the background it doesn't run. When it gets put in the background the job is just suspended and output a line like this. [1] + Suspended (tty output) ./ffmpeg-mbr somefile.flv somedirectory ffmpeg-mbr just runs multiple ffmpeg commands to output files at multiple bit rates. I have two problems I need to resolve. 1. ffmpeg filling up web server logs 2. ffmpeg not running in the background on a linux server Thanks for your help. Mark _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From stefano.sabatini-lala at poste.it Wed Jul 27 10:42:08 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Wed, 27 Jul 2011 10:42:08 +0200 Subject: [FFmpeg-user] Automatic Aspect Ratio Conversion In-Reply-To: <8405DEB8BD294EDC89A39B13D63E00E9@gtv.local> References: <1C19E88B8ADF4E66A356A9AFFC9844A1@gtv.local> <20110726115003.GB3792@geppetto> <8405DEB8BD294EDC89A39B13D63E00E9@gtv.local> Message-ID: <20110727084208.GA3365@geppetto> On date Tuesday 2011-07-26 22:56:21 +1000, Dan Flett encoded: > > > -----Original Message----- > Behalf Of Stefano Sabatini > Subject: Re: [FFmpeg-user] Automatic Aspect Ratio Conversion > > On date Tuesday 2011-07-26 14:51:39 +1000, Dan Flett encoded: > > However I found that if the input video is anamorphic (i.e. non-square > > pixel), the output is also anamorphic, and the DAR / SAR information > > is lost. > > Yes this is a bug which needs to be fixed. > Currently a=in_w/in_h, which is not what the docs say. > > Possible solutions: > 1. keep the current semantics for a, and fix the docs 2. change semantics > for a to match the docs > > I can't say which of 1. or 2. is better, they both have problems, what do > you suggest to do? > > And of course we'll have to add the sar/dar variables. > ---------------------------------------- > > Under the "Pad" heading, it does list: > `dar, a' > input display aspect ratio, same as iw / ih > Did someone just change this? :) It was me, and I realized soon it was half-broken, as "dar" is not simply iw/ih. > Perhaps, to be consistent with the ffmpeg/ffprobe output, sar should be par > (or par and sar be the same). Noted. > I've noticed that when using "scale", using -1 for width or height maintains > the display aspect ratio, but throws away the sar, leading to possibly > anamorphic output. > > I find that in general, I like to start with the "scale=iw*sar:ih" to get > everything as square pixels, then do my transformations as square pixels, > then scale it to anamorphic at the end if I need to (and if it's IMX-D10, > pad 32 lines to the top after that). The problem of this approach is that it requires a completely unnecessary scaling, a possibly CPU-intensive operation. > I also can't find much in the way of documentation for the functions such as > "max()" - max() itself is fairly obvious, but I'd like to know what other > functions I can use, and how they work. I checked out the libavfilter code > and couldn't find them there either. Check the "EXPRESSION EVALUATION" section in the manual (incomplete, patches are welcome). From joolzg at btinternet.com Wed Jul 27 12:17:57 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Wed, 27 Jul 2011 11:17:57 +0100 (BST) Subject: [FFmpeg-user] multi encode PROBLEMS Message-ID: <1311761877.535.YahooMailNeo@web86405.mail.ird.yahoo.com> Ok i have narrowed down my problem and it seems to be something to do with libfaac. If i encoder my streams as x264/aac i get the error i mentioned before, but if i encode the streams as x264/aac and x264/mp2 i dont see the error any ideas? joolz From butting.mp at gmail.com Wed Jul 27 12:21:24 2011 From: butting.mp at gmail.com (Bryce Utting) Date: Wed, 27 Jul 2011 22:21:24 +1200 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: References: <4E2F8FCE.7090108@gmail.com> Message-ID: <4E2FE6A4.1070504@gmail.com> Fernando Cassia wrote: > On Wed, Jul 27, 2011 at 01:10, Bryce Utting wrote: >> Well, for one thing it's not usually humans who are reading that output. > > Oh really? How about people who download WinFF to convert videos which > spawns ffmpeg to a command line window?. > > At least, an extra switch for human-readable size values should be > offered as an option, that way it wouldn?t break current programs that > parse ffmpeg?s output, but users of ffmpeg front-ends like WinFF could > add the extra switch to the passed parameters and enjoy human-readable > values... Sounds like an excellent idea for the front-end application to implement: after all, it's responsible for presenting data (as it sees fit) to the end user. Messing about with that formatting at a deeper level (ie., within ffmpeg) is simply asking to break every other front-end application, which isn't a win for anyone. butting From fcassia at gmail.com Wed Jul 27 12:30:19 2011 From: fcassia at gmail.com (Fernando Cassia) Date: Wed, 27 Jul 2011 07:30:19 -0300 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: <4E2FE6A4.1070504@gmail.com> References: <4E2F8FCE.7090108@gmail.com> <4E2FE6A4.1070504@gmail.com> Message-ID: On Wed, Jul 27, 2011 at 07:21, Bryce Utting wrote: > Messing about with that formatting at a deeper level (ie., within ffmpeg) is > simply asking to break every other front-end application, which isn't a win > for anyone. Just like OSs eventually implemented human-readable file sizes (ie ls -h in *x), I did NOT suggest breaking the current behaviour of ffmpeg but rather suggested implementing an EXTRA parameter that, when passed, causes the expected (improved) behaviour _without_ breaking backwards compatibility. Like http://www.unix.com/unix-dummies-questions-answers/21845-human-readable-format-file-size-when-doing-ls-l.html --- -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) --- Please let me know if I?ve made my point clearer now... Thanks, FC From rhodri at kynesim.co.uk Wed Jul 27 12:31:42 2011 From: rhodri at kynesim.co.uk (Rhodri James) Date: Wed, 27 Jul 2011 11:31:42 +0100 Subject: [FFmpeg-user] ffmpeg console output In-Reply-To: References: <007b01cc4633$ee972120$cbc56360$@com> Message-ID: On Wed, 27 Jul 2011 08:32:42 +0100, Jonas Kuepper wrote: > i am not really sure about this, but i think the output you see is the > error stream. You may try to route this to a file or /dev/null with > ffmpeg -loglevel 0 -i zion-springdale-ad.flv 2>ffmpeg_logfile.txt > or the like. > > This output can also be blamed for not executing ffmpeg in the > background because the process has no output stream to write this > messages to. > > But again, i didn't try this and I'm not sure. I have tried this, and you are completely right. The output is the error stream, and just redirecting it in the normal manner works. -- Rhodri James Kynesim Ltd From butting.mp at gmail.com Wed Jul 27 13:10:39 2011 From: butting.mp at gmail.com (Bryce Utting) Date: Wed, 27 Jul 2011 23:10:39 +1200 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: References: <4E2F8FCE.7090108@gmail.com> <4E2FE6A4.1070504@gmail.com> Message-ID: <4E2FF22F.9070709@gmail.com> Fernando Cassia wrote: > On Wed, Jul 27, 2011 at 07:21, Bryce Utting wrote: >> Messing about with that formatting at a deeper level (ie., within ffmpeg) is >> simply asking to break every other front-end application, which isn't a win >> for anyone. > > Just like OSs eventually implemented human-readable file sizes > (ie ls -h in *x), I did NOT suggest breaking the current behaviour of > ffmpeg but rather suggested implementing an EXTRA parameter that, when > passed, causes the expected (improved) behaviour _without_ breaking > backwards compatibility. [ 100 lines: I must not post while eyebrow-deep in work! sorry about the misread. ] Quite right, though I have to admit I'm kinda baffled by the notion of front-ends that think the output of stderr is suitable for presenting to users. If they're not prepared to do any parsing, I wouldn't be entirely confident that they'd take up extra options; but that said it'd be a change that should be easier to champion with them. (if it ever gets that far: good luck, but I think you'll be settling for something less than what the application could offer.) cheers, butting From dashing.meng at gmail.com Wed Jul 27 17:05:44 2011 From: dashing.meng at gmail.com (littlebat) Date: Wed, 27 Jul 2011 23:05:44 +0800 Subject: [FFmpeg-user] ffmpeg console output In-Reply-To: <007b01cc4633$ee972120$cbc56360$@com> References: <007b01cc4633$ee972120$cbc56360$@com> Message-ID: <20110727230544.bd18b297.dashing.meng@gmail.com> On Tue, 19 Jul 2011 10:50:08 -0600 "Mark G. Lind" wrote: > 2. ffmpeg not running in the background on a linux server Try: ffmpeg ... References: <4E2F8FCE.7090108@gmail.com> <4E2FE6A4.1070504@gmail.com> <4E2FF22F.9070709@gmail.com> Message-ID: On Wed, Jul 27, 2011 at 08:10, Bryce Utting wrote: > If they're not prepared to do any parsing, I wouldn't be entirely confident > that they'd take up extra options Take a look, it does accept extra parameters to be passed to ffmpeg. www.winff.org It?s available for Linux, Windows, and Mac OS-X. It does the job and does the job fine. Parsing ffmpeg?s output would risk causing errors if ffmpeg inadvertedly changes its output format from one version to another. If spawning ffmpeg to a command line window works fine, why complicate it?. In other words, it follows the "KISS" principle (keep it simple, st**id). ;) FC From dave.bevan at bbc.co.uk Wed Jul 27 20:28:00 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Wed, 27 Jul 2011 19:28:00 +0100 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: References: <4E2F8FCE.7090108@gmail.com><4E2FE6A4.1070504@gmail.com><4E2FF22F.9070709@gmail.com> Message-ID: >>On Wed, Jul 27, 2011 at 08:10, Bryce Utting wrote: >> If they're not prepared to do any parsing, I wouldn't be entirely >> confident that they'd take up extra options > > Take a look, it does accept extra parameters to be passed to ffmpeg. > > www.winff.org > > It?s available for Linux, Windows, and Mac OS-X. It does the job and does the job fine. Parsing ffmpeg?s output would risk causing errors if ffmpeg inadvertedly changes its output format from one version to another. If spawning ffmpeg to a command line window works fine, why complicate it?. > > In other words, it follows the "KISS" principle (keep it simple, st**id). ;) FC > I believe your KISS statement probably now means any form of co-operation with you and development of your idea will most-likely be halted. I agree with others that re-presentation of stderr messages should solely be the responsibility of any 3rd party app that decides it wants to wrap ffmpeg in warm and cluddly clothing. On the other hand, you could of course get the source from GIT and submit a patch for review, or just run your own patched version to give you what you want - it's a free world of course. --D. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From fcassia at gmail.com Wed Jul 27 20:32:45 2011 From: fcassia at gmail.com (Fernando Cassia) Date: Wed, 27 Jul 2011 15:32:45 -0300 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: References: <4E2F8FCE.7090108@gmail.com> <4E2FE6A4.1070504@gmail.com> <4E2FF22F.9070709@gmail.com> Message-ID: On Wed, Jul 27, 2011 at 15:28, Dave Bevan wrote: > I believe your KISS statement probably now means any form of co-operation with you and development of your idea will most-likely be halted. "Keep it simple, stupid" is a common statement, it doesn?t mean to imply that the "stupid" is intended to anyone in particular. A subtler way to express it is "keep it simple, s...eriously". FC From hvidal at tesseract-tech.com Wed Jul 27 20:41:58 2011 From: hvidal at tesseract-tech.com (hvidal) Date: Wed, 27 Jul 2011 14:41:58 -0400 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: References: <4E2F8FCE.7090108@gmail.com> <4E2FE6A4.1070504@gmail.com> <4E2FF22F.9070709@gmail.com> Message-ID: <4E305BF6.9080001@tesseract-tech.com> On 07/27/2011 02:32 PM, Fernando Cassia wrote: > On Wed, Jul 27, 2011 at 15:28, Dave Bevan wrote: >> I believe your KISS statement probably now means any form of co-operation with you and development of your idea will most-likely be halted. > > "Keep it simple, stupid" is a common statement, it doesn?t mean to > imply that the "stupid" is intended to anyone in particular. > > A subtler way to express it is "keep it simple, s...eriously". > All seasoned engineers I have dealt with, over a period of over 30 years, commonly use the expression KISS, and will address it 'to you' without implying that one is stupid. It's a philosophical observation on the nature of engineering, hubris, and design...... Just like foobar. So never take this expression personally, In fact, if it has never been shared with you, welcome it as a kind of welcome mat to the seasoned engineers' world. hv From phil_rhodes at rocketmail.com Wed Jul 27 22:11:07 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 27 Jul 2011 21:11:07 +0100 Subject: [FFmpeg-user] Human-readable size... In-Reply-To: References: <4E2F8FCE.7090108@gmail.com> <4E2FE6A4.1070504@gmail.com> <4E2FF22F.9070709@gmail.com> Message-ID: > On the other hand, you could of course get the source from GIT and > submit a patch for review, or just run your own patched version to give > you what you want - it's a free world of course. Yes Dave And you could learn my job overnight too! P From dflett at bigpond.net.au Thu Jul 28 04:00:36 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Thu, 28 Jul 2011 12:00:36 +1000 Subject: [FFmpeg-user] "Extracting" Alpha Channel Message-ID: In television graphics or vision mixing, it's often necessary to "extract" the alpha channel from a graphics file and turn it into a separate "Key" or "Matte" clip. The Key video is a grayscale representation of the alpha channel - black is fully transparent and white is fully opaque. It is possible to do this the using "lut" filter (I use lutrgb): -vf "[in] format=rgba, split [T1], fifo, lutrgb=r=minval:g=minval:b=minval, [T2] overlay [out]; [T1] fifo, lutrgb=r=maxval:g=maxval:b=maxval [T2]" This filter first converts the input video to the rgba colorspace. It then splits the input video into 2 streams (as per the turorial in the libavilfter docs). The "background" stream is set to a fully black frame by setting the r,g,b values to "minval". The foreground stream is set to a fully white frame by setting the r,g,b values to "maxval". In both streams the alpha channel is untouched. At the end of the first stream, the "overlay" filter overlays the white stream over the black one, using the untouched alpha channel as the mask. The result is a grayscale representation of the alpha channel - the actual rgb video content is thrown away. Dan From xomeboy at gmail.com Thu Jul 28 09:13:04 2011 From: xomeboy at gmail.com (Gonzalo Gasca) Date: Thu, 28 Jul 2011 00:13:04 -0700 Subject: [FFmpeg-user] Convert packet capture to Video Message-ID: Hi team, Im trying to convert a packet capture from an IP video codec (Cisco/Tandberg) so I can reproduce and diagnose Video quality problems, Im not able to play the file via ffmpeg. It works with other Endpoints. Call from Cisco CTS (1.7.4 interop) to BJN. I convert the packet capture to H264 using videosnarf. This is what i get: [root at maradona video]# ffmpeg -i H264-media-1.264 -v 9 -loglevel 99 video1.avi FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Jul 27 2011 22:58:44 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [h264 @ 0xa62f5f0]missing picture in access unit [h264 @ 0xa62e420]Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, h264, from 'H264-media-1.264': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 90k tbr, 1200k tbn, 180k tbc File 'video1.avi' already exists. Overwrite ? [y/N] y [mpeg4 @ 0xa6328f0]removing common factors from framerate [mpeg4 @ 0xa6328f0]timebase not supported by mpeg 4 standard Output #0, avi, to 'video1.avi': Stream #0.0, 0, 1/90000: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 1/90000, q=2-31, 200 kb/s, 90k tbn, 90k tbc Stream mapping: Stream #0.0 -> #0.0 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height I tried -r 15,29 or 30 and generates a 16K file which is empty. Thanks! From stefano.sabatini-lala at poste.it Thu Jul 28 11:12:48 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Thu, 28 Jul 2011 11:12:48 +0200 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: References: Message-ID: <20110728091248.GG27254@geppetto> On date Thursday 2011-07-28 12:00:36 +1000, Dan Flett encoded: > In television graphics or vision mixing, it's often necessary to "extract" > the alpha channel from a graphics file and turn it into a separate "Key" or > "Matte" clip. > > The Key video is a grayscale representation of the alpha channel - black is > fully transparent and white is fully opaque. > > It is possible to do this the using "lut" filter (I use lutrgb): > > -vf "[in] format=rgba, split [T1], fifo, lutrgb=r=minval:g=minval:b=minval, > [T2] overlay [out]; [T1] fifo, lutrgb=r=maxval:g=maxval:b=maxval [T2]" > > This filter first converts the input video to the rgba colorspace. > > It then splits the input video into 2 streams (as per the turorial in the > libavilfter docs). The "background" stream is set to a fully black frame by > setting the r,g,b values to "minval". The foreground stream is set to a > fully white frame by setting the r,g,b values to "maxval". In both streams > the alpha channel is untouched. > > At the end of the first stream, the "overlay" filter overlays the white > stream over the black one, using the untouched alpha channel as the mask. > The result is a grayscale representation of the alpha channel - the actual > rgb video content is thrown away. Another interesting possibility (simpler, faster) would be to implement a decomposer and a composer filter, for splitting RGBA channels into separate gray video streams and re-composing them. From phil_rhodes at rocketmail.com Thu Jul 28 13:31:16 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Thu, 28 Jul 2011 12:31:16 +0100 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: <20110728091248.GG27254@geppetto> References: <20110728091248.GG27254@geppetto> Message-ID: > Another interesting possibility (simpler, faster) would be to > implement a decomposer and a composer filter Hang on. You're saying that implementing a video filter in low level code is simpler and faster than using an existing commandline tool?! P From dflett at bigpond.net.au Thu Jul 28 13:42:01 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Thu, 28 Jul 2011 21:42:01 +1000 Subject: [FFmpeg-user] What is the fastest way to run cropdetect on specificframes in the video? In-Reply-To: References: Message-ID: <63515AED7C8C490A8BB20CFA44DF281D@gtv.local> -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Matt Kim Sent: Monday, 4 July 2011 04:40 To: ffmpeg-user at ffmpeg.org Subject: [FFmpeg-user] What is the fastest way to run cropdetect on specificframes in the video? Hello, I am trying to run the cropdetect function from the libavfilter library in the fastest way possible. And so I am trying to only take a collection of video frames throughout the video and run it through the cropdetect filter. So far I have tried two methods: 1. Run FFmpeg 4 different times in parallel at 4 different seektimes using the -ss option. - Unfortunately for me--the -ss option does not seem to work quickly, and so attempts to run through every frame before reaching the correct time. This causes the -ss option to be the bottleneck. This maybe be an issue with file itself and not FFmpeg. 2. Apply the "select" filter before "cropdetect". - This method is even slower than the previous one. I'm assuming that applying the select filter on each frame takes much time. *I have heard that moving the -ss option around may speed up the process--but unfortunately on all of the encoded files I am dealing with--this method does not seem to help. Does anyone have any advice on how I may be able to run cropdetect faster? Right now my analysis (using the parallel method) takes about 1 sec per 1 minute. This can cause problems though--as a 3hour long video will take about 3 minutes to analyze. Here is an example of how I am running my cropdetect filter: ffmpeg -i [input video] -vf "select='isnan(prev_selected_t)+gte(t-prev_selected_t,1)',cropdetect=24:2:0" -ss 600 -t 100 -an -y null.mp4 Any help would be greatly appreciated. Thanks, Matt Kim _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi Matt The only suggestion I have is putting -ss and -t before -i in your command line. Dan From dflett at bigpond.net.au Thu Jul 28 13:47:59 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Thu, 28 Jul 2011 21:47:59 +1000 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: <20110728091248.GG27254@geppetto> References: <20110728091248.GG27254@geppetto> Message-ID: <34F1964FA1E7400B9B1E1B461160A971@gtv.local> -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Stefano Sabatini Sent: Thursday, 28 July 2011 19:13 To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] "Extracting" Alpha Channel On date Thursday 2011-07-28 12:00:36 +1000, Dan Flett encoded: > In television graphics or vision mixing, it's often necessary to "extract" > the alpha channel from a graphics file and turn it into a separate > "Key" or "Matte" clip. > > The Key video is a grayscale representation of the alpha channel - > black is fully transparent and white is fully opaque. > > It is possible to do this the using "lut" filter (I use lutrgb): > > -vf "[in] format=rgba, split [T1], fifo, > lutrgb=r=minval:g=minval:b=minval, > [T2] overlay [out]; [T1] fifo, lutrgb=r=maxval:g=maxval:b=maxval [T2]" > > This filter first converts the input video to the rgba colorspace. > > It then splits the input video into 2 streams (as per the turorial in > the libavilfter docs). The "background" stream is set to a fully > black frame by setting the r,g,b values to "minval". The foreground > stream is set to a fully white frame by setting the r,g,b values to > "maxval". In both streams the alpha channel is untouched. > > At the end of the first stream, the "overlay" filter overlays the > white stream over the black one, using the untouched alpha channel as the mask. > The result is a grayscale representation of the alpha channel - the > actual rgb video content is thrown away. Another interesting possibility (simpler, faster) would be to implement a decomposer and a composer filter, for splitting RGBA channels into separate gray video streams and re-composing them. ------------------------ How about being able to do something like this? format=yuva, lutyuv=y=a:u=minval:v=minval Basically, being able to specify that the y (luma) channel output is equal to the a (alpha) channel of the input? Being able to swap color channels around would be good: format=rgb, lutrgb=r=b:g=r:b=g From dflett at bigpond.net.au Thu Jul 28 13:50:18 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Thu, 28 Jul 2011 21:50:18 +1000 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: References: <20110728091248.GG27254@geppetto> Message-ID: <512DFDECFBC04210BFD2BA01392E7364@gtv.local> -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Phil Rhodes Sent: Thursday, 28 July 2011 21:31 To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] "Extracting" Alpha Channel > Another interesting possibility (simpler, faster) would be to > implement a decomposer and a composer filter Hang on. You're saying that implementing a video filter in low level code is simpler and faster than using an existing commandline tool?! P _______________________________________________ Hehe, yeah. I'm more of a user than a coder. :) I like to tell people what's possible with ffmpeg as it is. If a coder sees an easier way, then great! From wernam at hotmail.com Thu Jul 28 14:15:26 2011 From: wernam at hotmail.com (Wernam Wer) Date: Thu, 28 Jul 2011 14:15:26 +0200 Subject: [FFmpeg-user] Different timestamp on RTP In-Reply-To: <512DFDECFBC04210BFD2BA01392E7364@gtv.local> References: <20110728091248.GG27254@geppetto>, , <512DFDECFBC04210BFD2BA01392E7364@gtv.local> Message-ID: Hi all, I'm using FFMPEG to enconding and send via RTP a livestream video, I use the last version of FFMPEG with this command:./ffmpeg -vcodec copy -i pipe -an -f rtp rtp://224.52.52.22:7004 -sameq -v 0 < /dev/null &But I'm having problem into the client to reproduce it, FFMPEG work fine, but when I scan the packets with Wireshark I see a big difference between the timestamp of the RTCP packets and RTP packets, the RTP packets have a bad timestamp, because if I calculate the time between two packets and then how should increase the timestamp it never give a good value (RTCP have a correct value). I'm using ffmpeg into an ARM with Linux 2.4 To solve it I have change a this line into the code:libavformat/rtpenc.c393s->cur_timestamp = av_rescale_q(ff_ntp_time() - s->first_rtcp_ntp_time, (AVRational){1, 1000000},s1->streams[0]->time_base) + s->base_timestamp; But I'm not sure why it's happening , any idea? Thanks for the helpWernam From phil_rhodes at rocketmail.com Thu Jul 28 14:55:18 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Thu, 28 Jul 2011 13:55:18 +0100 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: <512DFDECFBC04210BFD2BA01392E7364@gtv.local> References: <20110728091248.GG27254@geppetto> <512DFDECFBC04210BFD2BA01392E7364@gtv.local> Message-ID: > If a coder sees an easier way, then great! Well, yes. Easier if you are already an experienced software engineer with an advanced knowledge of the internals of ffmpeg. Yes. Then. :) Still, you can always look at - er - FFDN, the ffmpeg developer's network, an MSDN-style compendium of all you need to know to write new code for ffmpeg! Oh no, wait... P From joolzg at btinternet.com Thu Jul 28 18:03:42 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 28 Jul 2011 17:03:42 +0100 (BST) Subject: [FFmpeg-user] HLS Segmenter Message-ID: <1311869022.26635.YahooMailNeo@web86402.mail.ird.yahoo.com> My segmenter is working ok except for the fact that even though im splitting the packets on an I frame, (AV_PKT_FLAG_KEY) when i play the segmented packets in VLC some of them seem to be missing the SPS/PPS. Am i? doing something wrong or am i cutting the stream in the wrong place? What i do is read a packet and then check the AV_PKT_FLAG_KEY and if the packets pts time is greater than my cut time i close the last segment and open a new one, with this packet as its first one. Also as im using tge MPEGTS muxer and i noticed that the Service Name and Service Provider have reverted back to the default, so how do i call correctly the mpegts so i can set these parameters back to what the were on the incoming stream. joolz From stanci10 at hotmail.com Thu Jul 28 20:09:54 2011 From: stanci10 at hotmail.com (Stani S.) Date: Thu, 28 Jul 2011 11:09:54 -0700 (PDT) Subject: [FFmpeg-user] PSNR per frame In-Reply-To: <1310957390227-3674366.post@n4.nabble.com> References: <1310957390227-3674366.post@n4.nabble.com> Message-ID: <1311876594961-3702040.post@n4.nabble.com> OK, I'm confused with the follwing output when video encoded with x.264: Press [q] to stop encoding frame= 11 fps= 0 q=-1.0 PSNR=Y:inf U:inf V:inf *:inf size= 6kB time=100 frame= 20 fps= 18 q=-1.0 PSNR=Y:inf U:inf V:inf *:inf size= 6kB time=100 frame= 29 fps= 18 q=-1.0 PSNR=Y:inf U:inf V:inf *:inf size= 6kB time=100 frame= 35 fps= 16 q=-1.0 PSNR=Y:inf U:inf V:inf *:inf size= 6kB time=100 frame= 41 fps= 15 q=-1.0 PSNR=Y:inf U:inf V:inf *:inf size= 6kB time=100 frame= 46 fps= 14 q=51.0 PSNR=Y:inf U:inf V:inf *:inf size= 7kB time=0.4 ... What does *PSNR=Y:inf U:inf V:inf *:inf *mean? I need PSNR per frame, so psnr per Y,U,V would be good. Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/PSNR-per-frame-tp3674366p3702040.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From charlesdavidyoung at gmail.com Wed Jul 27 20:47:11 2011 From: charlesdavidyoung at gmail.com (C. David Young) Date: Wed, 27 Jul 2011 13:47:11 -0500 Subject: [FFmpeg-user] Trouble building ffmpeg Message-ID: I found the gcc.exe that it is evidently complaining about in the following folder. C:\Android\android-ndk\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows\arm-linux-androideabi\bin Other things of interest in my environment: NDK='C:\Android\android-ndk' is in my environment variables. PATH='C:\Android\android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/*-x86/bin... sysroot='C:\Android\android-ndk/platforms/android-3/arch-arm' I could comment out the line 263 problem but I can't make it find the gcc. $ ./build.sh ./configure: line 263: pr: command not found arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-user at mplayerhq.hu 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 59790 bytes Desc: not available URL: From redbird at pobladores.com Thu Jul 28 06:52:39 2011 From: redbird at pobladores.com (redbird) Date: Wed, 27 Jul 2011 21:52:39 -0700 (PDT) Subject: [FFmpeg-user] ffmpeg -map guru required In-Reply-To: References: <4D5339A4.7040209@davidfavor.com> Message-ID: <1311828759513-3700410.post@n4.nabble.com> Great job. Works the same way for audio. ffmpeg .... such a great tool.... such poor documentation.... -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-map-guru-required-tp3298437p3700410.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefano.sabatini-lala at poste.it Fri Jul 29 00:05:21 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Fri, 29 Jul 2011 00:05:21 +0200 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: References: <20110728091248.GG27254@geppetto> Message-ID: <20110728220521.GA17096@geppetto> On date Thursday 2011-07-28 12:31:16 +0100, Phil Rhodes encoded: > > >Another interesting possibility (simpler, faster) would be to > >implement a decomposer and a composer filter > > Hang on. You're saying that implementing a video filter in low level > code is simpler and faster than using an existing commandline tool?! Correction: simpler and faster - once the filter is implemented, just casting some random ideas in the case someone != me wants to try it (which is unlikely - I have to admit). From stefano.sabatini-lala at poste.it Fri Jul 29 01:25:24 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Fri, 29 Jul 2011 01:25:24 +0200 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: <34F1964FA1E7400B9B1E1B461160A971@gtv.local> References: <20110728091248.GG27254@geppetto> <34F1964FA1E7400B9B1E1B461160A971@gtv.local> Message-ID: <20110728232524.GF17096@geppetto> On date Thursday 2011-07-28 21:47:59 +1000, Dan Flett encoded: [...] > How about being able to do something like this? > > format=yuva, lutyuv=y=a:u=minval:v=minval > > Basically, being able to specify that the y (luma) channel output is equal > to the a (alpha) channel of the input? > > Being able to swap color channels around would be good: > > format=rgb, lutrgb=r=b:g=r:b=g Basically this won't be anymore a lut filter (for each input value, lookup a pre-computed value in a table) but an eval filter (for each input value, evaluate an expression depending on the current video state). mp=geq allows to do something similiar, but only works with yuv formats, and I wrote an eval filter which was never applied, maybe I'll find the time/inspiration to work on this... -- ffmpeg-user random tip #5 FFmpeg documentation: http://www.ffmpeg.org/documentation.html From dflett at bigpond.net.au Fri Jul 29 02:34:20 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Fri, 29 Jul 2011 10:34:20 +1000 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: References: <20110728091248.GG27254@geppetto><512DFDECFBC04210BFD2BA01392E7364@gtv.local> Message-ID: -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Phil Rhodes Sent: Thursday, 28 July 2011 22:55 To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] "Extracting" Alpha Channel > If a coder sees an easier way, then great! Well, yes. Easier if you are already an experienced software engineer with an advanced knowledge of the internals of ffmpeg. Yes. Then. :) Still, you can always look at - er - FFDN, the ffmpeg developer's network, an MSDN-style compendium of all you need to know to write new code for ffmpeg! Oh no, wait... P _______________________________________________ Don't get me wrong, I think it's cool that Stefano would see things we write and suggest improvements to the ffmpeg code. I would never disparage a keen ffmpeg developer. But yes, comparing command-line solutions to ffmpeg code solutions is the proverbial situation concerning apples and oranges. I've got plenty of suggested improvements to ffmpeg, as do most people on this list I'm sure. Most of us know the FOSS way is to not post our wish lists and say "do this now"! But perhaps the roundabout way of doing that is to post command-line solutions to problems and let developers come up with simpler, faster modifications to ffmpeg. :) The ffmpeg docs, especially now with libavfilter, could do with a bit more of a "cookbook" of command-line solutions - with explanations as to how they work. There are some good examples in the libavfilter docs but libavfilter is still pretty new so I guess it takes time for more sophisticated, real-world examples to appear. Something along the lines of a wiki could help here, allowing the greater user community to contribute. From dflett at bigpond.net.au Fri Jul 29 02:47:29 2011 From: dflett at bigpond.net.au (Dan Flett) Date: Fri, 29 Jul 2011 10:47:29 +1000 Subject: [FFmpeg-user] What is the fastest way to run cropdetect onspecificframes in the video? In-Reply-To: <63515AED7C8C490A8BB20CFA44DF281D@gtv.local> References: <63515AED7C8C490A8BB20CFA44DF281D@gtv.local> Message-ID: <18C77468AEB64D8A9FFCC62EF4C6B308@gtv.local> -----Original Message----- Of Dan Flett Sent: Thursday, 28 July 2011 21:42 Subject: Re: [FFmpeg-user] What is the fastest way to run cropdetect onspecificframes in the video? -----Original Message----- On Behalf Of Matt Kim Sent: Monday, 4 July 2011 04:40 Subject: [FFmpeg-user] What is the fastest way to run cropdetect on specificframes in the video? I am trying to run the cropdetect function from the libavfilter library in the fastest way possible. And so I am trying to only take a collection of video frames throughout the video and run it through the cropdetect filter. So far I have tried two methods: 1. Run FFmpeg 4 different times in parallel at 4 different seektimes using the -ss option. - Unfortunately for me--the -ss option does not seem to work quickly, and so attempts to run through every frame before reaching the correct time. This causes the -ss option to be the bottleneck. This maybe be an issue with file itself and not FFmpeg. 2. Apply the "select" filter before "cropdetect". - This method is even slower than the previous one. I'm assuming that applying the select filter on each frame takes much time. *I have heard that moving the -ss option around may speed up the process--but unfortunately on all of the encoded files I am dealing with--this method does not seem to help. Does anyone have any advice on how I may be able to run cropdetect faster? Right now my analysis (using the parallel method) takes about 1 sec per 1 minute. This can cause problems though--as a 3hour long video will take about 3 minutes to analyze. Here is an example of how I am running my cropdetect filter: ffmpeg -i [input video] -vf "select='isnan(prev_selected_t)+gte(t-prev_selected_t,1)',cropdetect=24:2:0" -ss 600 -t 100 -an -y null.mp4 Matt Kim _______________________________________________ Hi Matt The only suggestion I have is putting -ss and -t before -i in your command line. Dan _______________________________________________ Replying to myself, and to Matt: I've been playing with cropdetect a bit more. Putting -ss and -t before -i definitely speeds up seek times. But perhaps ffmpeg doesn't allow this with certain file types. I notice that if you use the "select" filter, or if you put -ss after -i, ffmpeg seems to seek linearly through the file from the beginning to the seek point - which is slow. If you put -ss before -i, it instantly jumps to the seek point. To do this you need to run a separate instance of ffmpeg for every seek you do. Two improvements could be made to the code :) : Set up the "select" filter so each time it seeks to a new part of the file, it behaves as if -ss was specified before -i. I.e. instant jumping to the next point. The cropdetect filter could keep tabs on the most commonly occurring crop recommendations for the file it is analysing. Currently, if you run cropdetect you get a crop recommendation for each frame it analyses. It would be good if cropdetect could then do a simple statistical analysis and tell you the best overall crop recommendation. From rajkrishnanp at gmail.com Fri Jul 29 03:52:50 2011 From: rajkrishnanp at gmail.com (Raj Parameswaran) Date: Thu, 28 Jul 2011 18:52:50 -0700 Subject: [FFmpeg-user] Applying IEC 61937 packetization on AC3/EAC3 streams. Message-ID: Hello, I am trying to use the ffmpeg executable to apply IEC 61937 packetization (generate SPDIF compatible compressed output) on AC3 and E-AC3 input streams. Please let me know what options I need to use for this. Thanks Raj From dielsonsales at gmail.com Fri Jul 29 08:02:08 2011 From: dielsonsales at gmail.com (Dielson Sales de Carvalho) Date: Fri, 29 Jul 2011 03:02:08 -0300 Subject: [FFmpeg-user] Summing 2 stereo channels to mono (2 channels) In-Reply-To: <1311700612075-3696413.post@n4.nabble.com> References: <1311700612075-3696413.post@n4.nabble.com> Message-ID: I'm almost sure you can do that using "-ac 1" (1 audio channel) as a parameter. The result will be a mix of both channels. Dielson Sales de Carvalho Linux User #525558 Curriculo Lattes 2011/7/26 dcoffey3296 > Hello, > > I have searched all over the internet to find an answer to this question, > but no definitive answer- just a lot of "i don't think so". I am hoping > that someone will read this and tell me it's simple!! > > I have a .mov (XDCAM EX) with 2 channels of audio - separated left and > right. My goal is to have the resulting h.264 (.mp4) output with a mono > mix > of both channels in both ears (left and right are the same). > > Please let me know if this is possible, I am trying to build an automated > workflow. I know this is possible in sox or mencoder but i would prefer to > keep this to as few commands as possible. > > Thank you for your help! > > -- > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/Summing-2-stereo-channels-to-mono-2-channels-tp3696413p3696413.html > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From gkinsey at ad-holdings.co.uk Fri Jul 29 16:56:04 2011 From: gkinsey at ad-holdings.co.uk (Gavin Kinsey) Date: Fri, 29 Jul 2011 15:56:04 +0100 Subject: [FFmpeg-user] "Extracting" Alpha Channel In-Reply-To: <34F1964FA1E7400B9B1E1B461160A971@gtv.local> References: <20110728091248.GG27254@geppetto> <34F1964FA1E7400B9B1E1B461160A971@gtv.local> Message-ID: <201107291556.04127.gkinsey@ad-holdings.co.uk> On Thursday 28 July 2011 12:47:59 Dan Flett wrote: > > How about being able to do something like this? > > format=yuva, lutyuv=y=a:u=minval:v=minval > > Basically, being able to specify that the y (luma) channel output is > equal to the a (alpha) channel of the input? > > Being able to swap color channels around would be good: > > format=rgb, lutrgb=r=b:g=r:b=g I've actually written a filter to do this. I use it to convert a colour plane into the alpha channel. The main limitation is it only works for RGB. I'm planning on submitting it to the -devel list when I have time. Though I expect it will take quite a few revisions before it is acceptable, because I copied and pasted another filter then mauled it until it did what I needed, so there is a lot of rubbish in it. -- Gavin Kinsey AD Holdings Plc Closed IPTV, the new safe and secure deterministic IP Video solution from Dedicated Micros, is now shipping through selected distributors. - Come and see this award winning plug and play, IP Video innovation at one of our Roadshows around the UK visit: https://www.dedicatedmicros.com/europe/ClosedIPTVRoadshow2011 - Contact our Customer Services Team for more information regarding how to enter the world of safe and secure hybrid IP and analogue video surveillance systems. From aval57 at yahoo.com Fri Jul 29 16:58:38 2011 From: aval57 at yahoo.com (bn) Date: Fri, 29 Jul 2011 07:58:38 -0700 (PDT) Subject: [FFmpeg-user] libswscale maximum image size Message-ID: <1311951518.89117.YahooMailClassic@web110804.mail.gq1.yahoo.com> n generating thumbnails I notice that libswscale bails out on some larger images: ----------------------------------------- ffmpeg -i verylarge.jpg -s 160x120 -f image2 thumb.jpg ... [scale @ 0x1d1b8e0] w:2744 h:4472 fmt:gray -> w:160 h:120 fmt:yuvj420p flags:0x4 Error opening filters! ----------------------------------------- browsing git I can see "swscale: remove VOF/VOFW" committed in May but it's not clear from the diff (to me anyway) how size-limits are enforced now and what to patch if I want an increase. thanks From rickcorteza at gmail.com Fri Jul 29 12:13:29 2011 From: rickcorteza at gmail.com (Rick C.) Date: Fri, 29 Jul 2011 18:13:29 +0800 Subject: [FFmpeg-user] subtitle update Message-ID: <9AB93297-4166-41A3-9BDD-A515E76E7291@gmail.com> Hello, I just wanted to see if there was any update to hard-coding subtitles (like .srt) into an encoding? So let's say going from .mkv to .avi I would like to hard-code the subtitles in the .avi. I tried to see if drawtext would do it and while I was able to get text to appear I didn't see any way to actually deal with an entire subtitle file. I've seen some talking recently in the developer list about this that's why I thought I'd ask. If there's something experimental I'd be glad to give it a try. Thanks! rc From joolzg at btinternet.com Sat Jul 30 08:59:14 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Sat, 30 Jul 2011 07:59:14 +0100 (BST) Subject: [FFmpeg-user] subtitle update In-Reply-To: <9AB93297-4166-41A3-9BDD-A515E76E7291@gmail.com> References: <9AB93297-4166-41A3-9BDD-A515E76E7291@gmail.com> Message-ID: <1312009154.8162.YahooMailNeo@web86408.mail.ird.yahoo.com> ----- Original Message ----- > From: Rick C. > To: FFmpeg user questions and RTFMs > Cc: > Sent: Friday, 29 July 2011, 12:13 > Subject: [FFmpeg-user] subtitle update > > Hello, > > I just wanted to see if there was any update to hard-coding subtitles (like > .srt) into an encoding?? So let's say going from .mkv to .avi I would like > to hard-code the subtitles in the .avi.? I tried to see if drawtext would do it > and while I was able to get text to appear I didn't see any way to actually > deal with an entire subtitle file.? I've seen some talking recently in the > developer list about this that's why I thought I'd ask.? If there's > something experimental I'd be glad to give it a try.? Thanks! > > rc > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Iv been testing this for the last month and everything seems to be working fine, but there are some caveats 1, DVB Subtitles - Working 2. DIVX?????????????? - Working, and can be transcoded to either Hard Subs or DVB Subtitles 3. MKV??????????????? - Cant test as i cannot get ASS working 4. AVI/SRT/SUB - Problems are that the SRT/SUB file give the wrong Timestamp so they appear at the wrong place, As an example, the IDX says 2.26.880 but the sub file says it starts earlier. As the index file is not used i would need to add in some offsetting Also a couple of more things ive asked about but not had any answers/ideas is that when transcoding to DVB Subtitles and the screen is not a full 720x576, which is what DVB Subs wants, you get subtitles off screen, so not viewable joolz From rickcorteza at gmail.com Sat Jul 30 10:38:43 2011 From: rickcorteza at gmail.com (Rick C.) Date: Sat, 30 Jul 2011 16:38:43 +0800 Subject: [FFmpeg-user] subtitle update In-Reply-To: <1312009154.8162.YahooMailNeo@web86408.mail.ird.yahoo.com> References: <9AB93297-4166-41A3-9BDD-A515E76E7291@gmail.com> <1312009154.8162.YahooMailNeo@web86408.mail.ird.yahoo.com> Message-ID: <7E7A6FF0-CC0D-46A7-B362-8BD0DE8EB0AE@gmail.com> On Jul 30, 2011, at 2:59 PM, JULIAN GARDNER wrote: > > > > > ----- Original Message ----- >> From: Rick C. >> To: FFmpeg user questions and RTFMs >> Cc: >> Sent: Friday, 29 July 2011, 12:13 >> Subject: [FFmpeg-user] subtitle update >> >> Hello, >> >> I just wanted to see if there was any update to hard-coding subtitles (like >> .srt) into an encoding? So let's say going from .mkv to .avi I would like >> to hard-code the subtitles in the .avi. I tried to see if drawtext would do it >> and while I was able to get text to appear I didn't see any way to actually >> deal with an entire subtitle file. I've seen some talking recently in the >> developer list about this that's why I thought I'd ask. If there's >> something experimental I'd be glad to give it a try. Thanks! >> >> rc >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > Iv been testing this for the last month and everything seems to be working fine, but there are some caveats > > 1, DVB Subtitles - Working > 2. DIVX - Working, and can be transcoded to either Hard Subs or DVB Subtitles > 3. MKV - Cant test as i cannot get ASS working > 4. AVI/SRT/SUB - Problems are that the SRT/SUB file give the wrong Timestamp so they appear at the wrong place, As an example, the IDX says 2.26.880 but the sub file says it starts earlier. As the index file is not used i would need to add in some offsetting > > Also a couple of more things ive asked about but not had any answers/ideas is that when transcoding to DVB Subtitles and the screen is not a full 720x576, which is what DVB Subs wants, you get subtitles off screen, so not viewable > > joolz Thank you for the reply. So at this time it looks like this feature will be included in the future (there's no way to access this now that I know of). That's great and all the best on this project! :-) rc From adam.skinner at gmail.com Fri Jul 29 17:09:29 2011 From: adam.skinner at gmail.com (Adam Skinner) Date: Fri, 29 Jul 2011 11:09:29 -0400 Subject: [FFmpeg-user] Screen capture with rendered subtitles Message-ID: I want to take a screenshot (with rendered subtitles) from a command line tool, using a scripting language, or an application that accepts script files for input. I've been able to partially do this with ffmpeg using the following: Code: ffmpeg -ss 00:10:19 -vframes 1 -i "filename" -y -scodec ass -slang jpn output%d.jpg but this generates 2 files - one image file, and one subtitle file. Is there a way to* use ffmpeg to render the subtitles to the image*, or a method whereby I could mux this in after the fact? From lou at lrcd.com Sat Jul 30 22:33:44 2011 From: lou at lrcd.com (Lou) Date: Sat, 30 Jul 2011 12:33:44 -0800 Subject: [FFmpeg-user] libswscale maximum image size In-Reply-To: <1311951518.89117.YahooMailClassic@web110804.mail.gq1.yahoo.com> References: <1311951518.89117.YahooMailClassic@web110804.mail.gq1.yahoo.com> Message-ID: <20110730123344.4ebed7f7@lrcd.com> On Fri, 29 Jul 2011 07:58:38 -0700 (PDT) bn wrote: > n generating thumbnails I notice that libswscale bails out on some > larger images: > > ----------------------------------------- > ffmpeg -i verylarge.jpg -s 160x120 -f image2 thumb.jpg > ... > [scale @ 0x1d1b8e0] w:2744 h:4472 fmt:gray -> w:160 h:120 > fmt:yuvj420p flags:0x4 Error opening filters! > ----------------------------------------- > > > browsing git I can see "swscale: remove VOF/VOFW" committed in May > but it's not clear from the diff (to me anyway) how size-limits are > enforced now and what to patch if I want an increase. > > thanks Please show your complete terminal output, and provide a sample of verylarge.jpg if possible. Also, you may want to try '-vf scale=160:120' instead of '-s 160x120'. From aval57 at yahoo.com Sun Jul 31 00:33:49 2011 From: aval57 at yahoo.com (bn) Date: Sat, 30 Jul 2011 15:33:49 -0700 (PDT) Subject: [FFmpeg-user] libswscale maximum image size In-Reply-To: <20110730123344.4ebed7f7@lrcd.com> Message-ID: <1312065229.60299.YahooMailClassic@web110814.mail.gq1.yahoo.com> > Please show your complete terminal output, and provide a > sample of > verylarge.jpg if possible. > > Also, you may want to try '-vf scale=160:120' instead of > '-s 160x120'. Thanks for the response, Lou. '-s' and '-vf scale' are synonyms and results are identical either way. I recently thumbnailed 500+ images this way and a tiny fraction failed, the common factor being that they were either very high or very wide. Googling led to previous incarnations of this issue: https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/443264 where maximum width was set by #defining VOFW in swscale_internal.h, but this mechanism was dropped last May after the following commit: http://git.videolan.org/?p=ffmpeg.git;a=commit;h=0f4eb8b04341081591bf401eaa2c07d6bc3ff52e As I mentioned in my previous post the diff is not particularly enlightening as to what the limiting dimensions are now, and my question is simply what are the current limits and where are they in source? Or is there perhaps a way of overriding the limits on the commandline? Below is full console output for both successful and unsuccessful scales of identically produced jpegs, the only difference being their dimensions. ------------------------------------------------ SUCCESS - 3737x1412 jpeg ------------------------------------------------ ffmpeg -i palenque1_24.jpg -vf scale=160:120 -f image2 thumb.jpg ffmpeg version N-31617-g4095fa9, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 22 2011 15:11:47 with gcc 4.5.2 configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-shared libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 8. 0 / 53. 8. 0 libavformat 53. 6. 0 / 53. 6. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 27. 2 / 2. 27. 2 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, image2, from 'palenque1_24.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0.0: Video: mjpeg, yuvj444p, 3737x1412 [PAR 200:200 DAR 3737:1412], 25 tbr, 25 tbn, 25 tbc Incompatible pixel format 'yuvj444p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x18f2b80] w:3737 h:1412 pixfmt:yuvj444p tb:1/1000000 sar:200/200 sws_param: [scale @ 0x18f3360] w:3737 h:1412 fmt:yuvj444p -> w:160 h:120 fmt:yuvj420p flags:0x4 Output #0, image2, to 'thumb.jpg': Metadata: encoder : Lavf53.6.0 Stream #0.0: Video: mjpeg, yuvj420p, 160x120 [PAR 200:200 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help frame= 1 fps= 0 q=3.3 Lsize= -0kB time=00:00:00.04 bitrate= -4.4kbits/s video:7kB audio:0kB global headers:0kB muxing overhead -100.288752% ------------------------------------------------ FAILURE - 6886x1419 ------------------------------------------------ ffmpeg -i palenque2_24.jpg -vf scale=160:120 -f image2 thumb.jpg ffmpeg version N-31617-g4095fa9, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 22 2011 15:11:47 with gcc 4.5.2 configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-shared libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 8. 0 / 53. 8. 0 libavformat 53. 6. 0 / 53. 6. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 27. 2 / 2. 27. 2 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, image2, from 'palenque2_24.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0.0: Video: mjpeg, yuvj444p, 6886x1419 [PAR 200:200 DAR 626:129], 25 tbr, 25 tbn, 25 tbc Incompatible pixel format 'yuvj444p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x115bb80] w:6886 h:1419 pixfmt:yuvj444p tb:1/1000000 sar:200/200 sws_param: [scale @ 0x115c360] w:6886 h:1419 fmt:yuvj444p -> w:160 h:120 fmt:yuvj420p flags:0x4 Error opening filters! ------------------------------------------------ I'm headed off the grid for a week as of tomorrow but will follow this up as soon as I'm back. -Bahman From objectivecgdp at gmail.com Sun Jul 31 02:31:57 2011 From: objectivecgdp at gmail.com (George D Pylant III) Date: Sat, 30 Jul 2011 19:31:57 -0500 Subject: [FFmpeg-user] make error OSX Lion Message-ID: <0D4F2546-8072-48E1-9856-5E88D62C8488@gmail.com> Sorry if this a double post but I have been running into a ffmpeg make error since upgrading from Snow Leopard 10.6.8/XCode 3.2.3 to Lion10.7/XCode4.1: Undefined symbols for architecture x86_64: "_MM_FIX_0_707106781", referenced from: _filter in libavfilter.a(vf_fspp.o) "_MM_FIX_0_541196100", referenced from: _filter in libavfilter.a(vf_fspp.o) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 make: *** Waiting for unfinished jobs.... ffmpeg configure: ./configure --prefix=${TARGET} --enable-nonfree --enable-gpl --enable-version3 --enable-libx264 --enable-pthreads --enable-libfaac --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-libgsm --enable-libopenjpeg --enable-libxvid --enable-libschroedinger --enable-libdirac --enable-libxavs --enable-librtmp --enable-libfreetype --enable-avfilter --enable-filters --enable-postproc --target-os=darwin --arch=x86_64 --enable-runtime-cpudetect Any ideas how to avoid the make error I have been getting? Thanks! From paulranft at hotmail.com Sun Jul 31 02:42:10 2011 From: paulranft at hotmail.com (johnnyquid) Date: Sat, 30 Jul 2011 17:42:10 -0700 (PDT) Subject: [FFmpeg-user] FFMPEG encoded MPEG-2 video causes error in DVDAuthor In-Reply-To: <1296838095693-3260522.post@n4.nabble.com> References: <4CB75B26.7040302@netscape.net> <4CB7CA4E.1050204@gmail.com> <1296838095693-3260522.post@n4.nabble.com> Message-ID: <1312072930921-3707046.post@n4.nabble.com> This issue/bug still exists in the latest window build from http://ffmpeg.zeranoe.com/builds/. See the ffmpeg and dvdauthor output below. E:\Temp\bugfiles>ffmpeg -v 9 -loglevel 99 -i ranft.m2v -itsoffset -00:00:00.775 -i ranft.ac3 -vcodec copy -acodec copy -target ntsc-dvd -y ranft.mpg ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 28 2011 01:57:12 with gcc 4.6.1 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable- runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 11. 0 / 51. 11. 0 libavcodec 53. 9. 0 / 53. 9. 0 libavformat 53. 6. 0 / 53. 6. 0 libavdevice 53. 2. 0 / 53. 2. 0 libavfilter 2. 27. 3 / 2. 27. 3 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mpegvideo @ 01F2B5C0] Format mpegvideo probed with size=32768 and score=51 [mpeg1video @ 02000260] Unsupported bit depth: 0 [mpegvideo @ 01F2B5C0] max_analyze_duration 5000000 reached at 5005000 [mpegvideo @ 01F2B5C0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegvideo, from 'ranft.m2v': Duration: 00:00:08.88, bitrate: 8999 kb/s Stream #0.0, 152, 1/1200000: Video: mpeg2video (Main), yuv420p, 720x480 [PAR 32:27 DAR 16:9], 1001/60000, 9000 kb/s, 29.97 fps, 29.97 tbr, 1200k tbn, 59.94 tbc [ac3 @ 01F2F720] Format ac3 probed with size=8192 and score=51 [ac3 @ 01F297A0] Unsupported bit depth: 0 [ac3 @ 01F2F720] max_analyze_duration 5000000 reached at 5024000 [ac3 @ 01F2F720] Estimating duration from bitrate, this may be inaccurate Input #1, ac3, from 'ranft.ac3': Duration: 00:00:20.83, start: 0.000000, bitrate: 384 kb/s Stream #1.0, 159, 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s Output #0, dvd, to 'ranft.mpg': Metadata: encoder : Lavf53.6.0 Stream #0.0, 0, 1/90000: Video: mpeg2video, yuv420p, 720x480 [PAR 32:27 DAR 16:9], 1001/30000, q=2-31, 9000 kb/s, 90k tbn, 29.97 tbc Stream #0.1, 0, 1/90000: Audio: ac3, 48000 Hz, 5.1, 384 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1 Press [q] to stop, [?] for help frame= 573 fps= 0 q=-1.0 Lsize= 10882kB time=00:00:19.11 bitrate=4662.6kbits /s video:9766kB audio:977kB global headers:0kB muxing overhead 1.301527% E:\Temp\bugfiles>E:\Temp\bugfiles>dvdauthor.exe -o dvdtest -x dvd.xml DVDAuthor::dvdauthor, version 0.6.18. Build options: gnugetopt iconv freetype fribidi Send bugs to <dvdauthor-users at lists.sourceforge.net> INFO: dvdauthor creating VTS STAT: Picking VTS 01 STAT: Processing e:\temp\bugfiles\ranft.mpg... ERR: SCR moves backwards, remultiplex input: 23131 < 8589910134 E:\Temp\bugfiles> -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMPEG-encoded-MPEG-2-video-causes-error-in-DVDAuthor-tp2995983p3707046.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From paulranft at hotmail.com Sun Jul 31 03:14:18 2011 From: paulranft at hotmail.com (johnnyquid) Date: Sat, 30 Jul 2011 18:14:18 -0700 (PDT) Subject: [FFmpeg-user] FFMPEG encoded MPEG-2 video causes error in DVDAuthor In-Reply-To: <1312072930921-3707046.post@n4.nabble.com> References: <4CB75B26.7040302@netscape.net> <4CB7CA4E.1050204@gmail.com> <1296838095693-3260522.post@n4.nabble.com> <1312072930921-3707046.post@n4.nabble.com> Message-ID: <1312074858116-3707066.post@n4.nabble.com> The source code has been changed from what was reported at the beginning of the thread. The old code was (quoted from reply above): This issue appeared with SVN-r25383, when the following two lines were added in libavformat/mpegenc.c: 1163 if(!s->last_scr) 1164 s->last_scr= dts; The new code in mpegenc.c starting at line 1163 is now (but the issue still exists): pts= pkt->pts; dts= pkt->dts; if(pts != AV_NOPTS_VALUE) pts += 2*preload; if(dts != AV_NOPTS_VALUE){ if(!s->last_scr) s->last_scr= dts + preload; dts += 2*preload; } -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMPEG-encoded-MPEG-2-video-causes-error-in-DVDAuthor-tp2995983p3707066.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From matthkim at gmail.com Sun Jul 31 07:22:44 2011 From: matthkim at gmail.com (Matt Kim) Date: Sat, 30 Jul 2011 22:22:44 -0700 Subject: [FFmpeg-user] What is the fastest way to run cropdetect onspecificframes in the video? In-Reply-To: <18C77468AEB64D8A9FFCC62EF4C6B308@gtv.local> References: <63515AED7C8C490A8BB20CFA44DF281D@gtv.local> <18C77468AEB64D8A9FFCC62EF4C6B308@gtv.local> Message-ID: One thing I have noticed is that sometimes placing -ss before -i will not work. And so FFmpeg will not seek to the specified time and instead start running from the beginning of the video file. "Set up the "select" filter so each time it seeks to a new part of the file, it behaves as if -ss was specified before -i. I.e. instant jumping to the next point." How would I set up the "select" filter in order to get this behavior? Or are you saying that FFmpeg should implement this into the select option? "The cropdetect filter could keep tabs on the most commonly occurring crop recommendations for the file it is analysing. Currently, if you run cropdetect you get a crop recommendation for each frame it analyses. It would be good if cropdetect could then do a simple statistical analysis and tell you the best overall crop recommendation." It is not necessarily good to recommend the most commonly occurring dimensions. One use case where this is not viable is where the video content contains alot of black within the content. This would most likely occur in black/white videos, space documentaries, horror films, etc. In this case the cropdetect filter wouldn't be able to give you a correct crop dimension by grabbing the most consistent statistic. Instead the "largest suggested crop dimensions" would most likely be the most correct--given that the limit option is set appropriately and given that crop detect has at least analyzed one frame where black from the content does not bleed into the black borders. I am finding that I have to implement my own statistical inference algorithms in order to pick and asses the integrity of the given crop-dimensions. Maybe this is necessarily complex as the possible use-cases seem too complex to automate. Thanks for your response to my questions. I may try implementing something where I place the -ss before the -i initially, and if i detect that the seek was not successful. I may re-run the command with -ss after -i. On Thu, Jul 28, 2011 at 5:47 PM, Dan Flett wrote: > > > -----Original Message----- > Of Dan Flett > Sent: Thursday, 28 July 2011 21:42 > Subject: Re: [FFmpeg-user] What is the fastest way to run cropdetect > onspecificframes in the video? > > -----Original Message----- > On Behalf Of Matt Kim > Sent: Monday, 4 July 2011 04:40 > Subject: [FFmpeg-user] What is the fastest way to run cropdetect on > specificframes in the video? > > I am trying to run the cropdetect function from the libavfilter library in > the fastest way possible. > > And so I am trying to only take a collection of video frames throughout the > video and run it through the cropdetect filter. > > So far I have tried two methods: > 1. Run FFmpeg 4 different times in parallel at 4 different seektimes using > the -ss option. > - Unfortunately for me--the -ss option does not seem to work quickly, > and so attempts to run through every frame before reaching the correct > time. > This causes the -ss option to be the bottleneck. This maybe be an issue > with file itself and not FFmpeg. > > 2. Apply the "select" filter before "cropdetect". > - This method is even slower than the previous one. I'm assuming that > applying the select filter on each frame takes much time. > > *I have heard that moving the -ss option around may speed up the > process--but unfortunately on all of the encoded files I am dealing > with--this method does not seem to help. > > Does anyone have any advice on how I may be able to run cropdetect faster? > Right now my analysis (using the parallel method) takes about 1 sec per 1 > minute. This can cause problems though--as a 3hour long video will take > about 3 minutes to analyze. > > Here is an example of how I am running my cropdetect filter: > ffmpeg -i [input video] -vf > > "select='isnan(prev_selected_t)+gte(t-prev_selected_t,1)',cropdetect=24:2:0" > -ss 600 -t 100 -an -y null.mp4 > > Matt Kim > _______________________________________________ > > Hi Matt > > The only suggestion I have is putting -ss and -t before -i in your command > line. > > Dan > > _______________________________________________ > > Replying to myself, and to Matt: > > I've been playing with cropdetect a bit more. Putting -ss and -t before -i > definitely speeds up seek times. But perhaps ffmpeg doesn't allow this > with > certain file types. > > I notice that if you use the "select" filter, or if you put -ss after -i, > ffmpeg seems to seek linearly through the file from the beginning to the > seek point - which is slow. If you put -ss before -i, it instantly jumps > to > the seek point. To do this you need to run a separate instance of ffmpeg > for every seek you do. > > Two improvements could be made to the code :) : > Set up the "select" filter so each time it seeks to a new part of the file, > it behaves as if -ss was specified before -i. I.e. instant jumping to the > next point. > > The cropdetect filter could keep tabs on the most commonly occurring crop > recommendations for the file it is analysing. Currently, if you run > cropdetect you get a crop recommendation for each frame it analyses. It > would be good if cropdetect could then do a simple statistical analysis and > tell you the best overall crop recommendation. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Matt Kim From etienne.buira.lists at free.fr Sun Jul 31 09:04:48 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Sun, 31 Jul 2011 09:04:48 +0200 Subject: [FFmpeg-user] What is the fastest way to run cropdetect onspecificframes in the video? In-Reply-To: References: <63515AED7C8C490A8BB20CFA44DF281D@gtv.local> <18C77468AEB64D8A9FFCC62EF4C6B308@gtv.local> Message-ID: <20110731070448.GA4740@epicure.lazyet.homelinux.net> Hi On Sat, Jul 30, 2011 at 10:22:44PM -0700, Matt Kim wrote: > One thing I have noticed is that sometimes placing -ss before -i will not > work. And so FFmpeg will not seek to the specified time and instead start > running from the beginning of the video file. > > "Set up the "select" filter so each time it seeks to a new part of the file, > it behaves as if -ss was specified before -i. I.e. instant jumping to the > next point." Where did you get that from? The best way to have ffmpeg behave as if -ss was specified before -i is to specify -ss before -i. If -ss is broken, then it haves to be fixed. I guess your input is mpegts, with wrapping timestamps. To solve this issue, please try attached patch. It is workable, but sometimes breaks trying to read the whole file and just quit when EOF is reached. Next time, please avoid top-posting and keep user questions on ffmpeg-user. -------------- next part -------------- diff --git a/libavformat/utils.c b/libavformat/utils.c index 81577c9..ec87c89 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1580,6 +1580,8 @@ int64_t av_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, i av_dlog(s, "gen_seek: %d %"PRId64"\n", stream_index, target_ts); + pos = avio_tell(s->pb); + if(ts_min == AV_NOPTS_VALUE){ pos_min = s->data_offset; ts_min = read_timestamp(s, stream_index, &pos_min, INT64_MAX); @@ -1613,7 +1615,17 @@ int64_t av_gen_search(AVFormatContext *s, int stream_index, int64_t target_ts, i } if(ts_min > ts_max){ + if (s->bit_rate && stream_index>=0 && stream_indexnb_streams) { + ts = read_timestamp(s, stream_index, &pos, INT64_MAX); + if (ts == AV_NOPTS_VALUE) + return -1; + pos += av_rescale((target_ts-ts)*s->bit_rate/8, + s->streams[stream_index]->time_base.num, + s->streams[stream_index]->time_base.den); + pos_min = pos_max = pos_limit = pos; + } else { return -1; + } }else if(ts_min == ts_max){ pos_limit= pos_min; } diff --git a/tests/ref/seek/lavf_asf b/tests/ref/seek/lavf_asf index 757fd0e..81f32b2 100644 --- a/tests/ref/seek/lavf_asf +++ b/tests/ref/seek/lavf_asf @@ -7,7 +7,8 @@ ret: 0 st: 0 flags:0 ts: 0.788000 ret: 0 st: 1 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size: 209 ret: 0 st: 0 flags:1 ts:-0.317000 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487 -ret:-1 st: 1 flags:0 ts: 2.577000 +ret: 0 st: 1 flags:0 ts: 2.577000 +ret:-EOF ret:-1 st: 1 flags:1 ts: 1.471000 ret: 0 st:-1 flags:0 ts: 0.365002 ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147775 size: 209 @@ -19,7 +20,8 @@ ret: 0 st: 0 flags:1 ts: 1.048000 ret: 0 st: 1 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size: 209 ret: 0 st: 1 flags:0 ts:-0.058000 ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 29375 size: 208 -ret:-1 st: 1 flags:1 ts: 2.836000 +ret: 0 st: 1 flags:1 ts: 2.836000 +ret:-EOF ret: 0 st:-1 flags:0 ts: 1.730004 ret: 0 st: 1 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size: 209 ret: 0 st:-1 flags:1 ts: 0.624171 @@ -28,7 +30,8 @@ ret: 0 st: 0 flags:0 ts:-0.482000 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487 ret: 0 st: 0 flags:1 ts: 2.413000 ret: 0 st: 1 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size: 209 -ret:-1 st: 1 flags:0 ts: 1.307000 +ret: 0 st: 1 flags:0 ts: 1.307000 +ret:-EOF ret: 0 st: 1 flags:1 ts: 0.201000 ret: 0 st: 1 flags:1 dts: 0.183000 pts: 0.183000 pos: 70975 size: 209 ret: 0 st:-1 flags:0 ts:-0.904994 @@ -39,7 +42,8 @@ ret: 0 st: 0 flags:0 ts: 0.883000 ret: 0 st: 1 flags:1 dts: 0.960000 pts: 0.960000 pos: -1 size: 209 ret: 0 st: 0 flags:1 ts:-0.222000 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 575 size: 28487 -ret:-1 st: 1 flags:0 ts: 2.672000 +ret: 0 st: 1 flags:0 ts: 2.672000 +ret:-EOF ret:-1 st: 1 flags:1 ts: 1.566000 ret: 0 st:-1 flags:0 ts: 0.460008 ret: 0 st: 1 flags:1 dts: 0.444000 pts: 0.444000 pos: 147775 size: 209 diff --git a/tests/ref/seek/lavf_rm b/tests/ref/seek/lavf_rm index 188367b..a7f85ea 100644 --- a/tests/ref/seek/lavf_rm +++ b/tests/ref/seek/lavf_rm @@ -7,7 +7,8 @@ ret: 0 st: 0 flags:0 ts: 0.788000 ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143 ret: 0 st: 0 flags:1 ts:-0.317000 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082 -ret:-1 st: 1 flags:0 ts: 2.577000 +ret: 0 st: 1 flags:0 ts: 2.577000 +ret:-EIO ret:-1 st: 1 flags:1 ts: 1.471000 ret: 0 st:-1 flags:0 ts: 0.365002 ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158515 size: 31134 @@ -19,7 +20,8 @@ ret: 0 st: 0 flags:1 ts: 1.048000 ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143 ret: 0 st: 1 flags:0 ts:-0.058000 ret: 0 st: 1 flags:1 dts: 0.000000 pts: 0.000000 pos: 31483 size: 278 -ret:-1 st: 1 flags:1 ts: 2.836000 +ret: 0 st: 1 flags:1 ts: 2.836000 +ret:-EIO ret: 0 st:-1 flags:0 ts: 1.730004 ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143 ret: 0 st:-1 flags:1 ts: 0.624171 @@ -28,7 +30,8 @@ ret: 0 st: 0 flags:0 ts:-0.482000 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082 ret: 0 st: 0 flags:1 ts: 2.413000 ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143 -ret:-1 st: 1 flags:0 ts: 1.307000 +ret: 0 st: 1 flags:0 ts: 1.307000 +ret:-EIO ret: 0 st: 1 flags:1 ts: 0.201000 ret: 0 st: 1 flags:1 dts: 0.174000 pts: 0.174000 pos: 78969 size: 278 ret: 0 st:-1 flags:0 ts:-0.904994 @@ -39,7 +42,8 @@ ret: 0 st: 0 flags:0 ts: 0.883000 ret: 0 st: 0 flags:1 dts: 0.960000 pts: 0.960000 pos: 314982 size: 31143 ret: 0 st: 0 flags:1 ts:-0.222000 ret: 0 st: 0 flags:1 dts: 0.000000 pts: 0.000000 pos: 398 size: 31082 -ret:-1 st: 1 flags:0 ts: 2.672000 +ret: 0 st: 1 flags:0 ts: 2.672000 +ret:-EIO ret:-1 st: 1 flags:1 ts: 1.566000 ret: 0 st:-1 flags:0 ts: 0.460008 ret: 0 st: 0 flags:1 dts: 0.480000 pts: 0.480000 pos: 158515 size: 31134 From etienne.buira.lists at free.fr Sun Jul 31 09:07:57 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Sun, 31 Jul 2011 09:07:57 +0200 Subject: [FFmpeg-user] What is the fastest way to run cropdetect onspecificframes in the video? In-Reply-To: <20110731070448.GA4740@epicure.lazyet.homelinux.net> References: <63515AED7C8C490A8BB20CFA44DF281D@gtv.local> <18C77468AEB64D8A9FFCC62EF4C6B308@gtv.local> <20110731070448.GA4740@epicure.lazyet.homelinux.net> Message-ID: <20110731070757.GB4740@epicure.lazyet.homelinux.net> On Sun, Jul 31, 2011 at 09:04:48AM +0200, Etienne Buira wrote: > [...] and keep user questions on > ffmpeg-user. Please apologise for this, seems coffe didn't reach my brain yet :) From matthkim at gmail.com Sun Jul 31 21:40:56 2011 From: matthkim at gmail.com (Matt Kim) Date: Sun, 31 Jul 2011 12:40:56 -0700 Subject: [FFmpeg-user] What is the fastest way to run cropdetect onspecificframes in the video? In-Reply-To: <20110731070448.GA4740@epicure.lazyet.homelinux.net> References: <63515AED7C8C490A8BB20CFA44DF281D@gtv.local> <18C77468AEB64D8A9FFCC62EF4C6B308@gtv.local> <20110731070448.GA4740@epicure.lazyet.homelinux.net> Message-ID: Thanks for the reply! I am very new to the video encoding scene, and so I hope it's okay that I have a lot of questions. On Sun, Jul 31, 2011 at 12:04 AM, Etienne Buira wrote: > I guess your input is mpegts, with wrapping timestamps. To solve this > issue, please try attached patch. It is workable, but sometimes breaks > trying to read the whole file and just quit when EOF is reached. Yes, my input is mpegts. I'm not sure if the timestamps are wrapped. How would I know if the timestamps in my source video are wrapped? I will try to run your patch and see how it works and reply by Monday. Another thing I might add is--I've tried running -ss before -i on H.264 encoded videos, and quick seeking doesn't seem to work on these files either. What is the main reason for way -ss fails to seek instantly to a specific time or frame? >From what I understand, there is supposed to be some sort of reference to I-frames at the beginning of the file--and if for some reason these don't exist then FFmpeg will be unable to jump to the passed in seektime. I am not too sure how correct this statement is--and so any advice or suggestion to outside references would be super helpful. Thanks, Matt Kim