From rens at onlinemedia.nl Sun Dec 1 00:57:03 2013 From: rens at onlinemedia.nl (Rens Dijkshoorn) Date: Sun, 1 Dec 2013 00:57:03 +0100 (CET) Subject: [FFmpeg-user] ffmpeg decoding DCP MXF with SMPTE labels In-Reply-To: <20245577.74821385855726102.JavaMail.root@webmail.onlinemedia.nl> Message-ID: <6912244.74841385855823907.JavaMail.root@webmail.onlinemedia.nl> Hi, is decoding of DCP cinema4k jpeg2000.mxf files with SMPTE Labels in the ffmpeg developement pipeline. MXF Interop labels is working. Rens From cehoyos at ag.or.at Sun Dec 1 05:25:35 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 1 Dec 2013 04:25:35 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg decoding DCP MXF with SMPTE labels References: <20245577.74821385855726102.JavaMail.root@webmail.onlinemedia.nl> <6912244.74841385855823907.JavaMail.root@webmail.onlinemedia.nl> Message-ID: Rens Dijkshoorn onlinemedia.nl> writes: > is decoding of DCP cinema4k jpeg2000.mxf files with > SMPTE Labels in the ffmpeg developement pipeline. (Command line and complete, uncut console output missing.) Patch welcome, you may misunderstand how open-source development (or at least how FFmpeg development) works. Carl Eugen From cehoyos at ag.or.at Sun Dec 1 05:26:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 1 Dec 2013 04:26:41 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg tool compilation problem References: <13999.8703533367$1385844579@news.gmane.org> Message-ID: Francis Kumar stesalit-inc.com> writes: > # cd ffmpeg-0.10.1 This is too old, please update to current git head and run ./configure --help to find out about the various relevant options. Carl Eugen From azizgokhannarin at gmail.com Sun Dec 1 18:21:48 2013 From: azizgokhannarin at gmail.com (=?ISO-8859-9?Q?Aziz_G=F6khan_NAR=DDN?=) Date: Sun, 1 Dec 2013 19:21:48 +0200 Subject: [FFmpeg-user] ffserver and muxing Message-ID: Hello folks, I chalange a problem about muxing. When I use muxing code to send frame to ffserver realtime stamp is not writing to ffm file right. However, if I use ffmpeg for the same process, realtime stamp is available to seek ffm file then. I didnot find what the difference is. I suppose, pts property is the keyword of this problem. Could you please to assist me what the solution is? Aziz G?khan Narin From hans.j.albertsson at branneriet.se Sun Dec 1 18:32:54 2013 From: hans.j.albertsson at branneriet.se (Hans J. Albertsson) Date: Sun, 01 Dec 2013 18:32:54 +0100 Subject: [FFmpeg-user] retry from end of last failed download attempt?? Message-ID: <529B72C6.5060808@branneriet.se> Is there any way to make ffmpeg -i (various options) outfile.ext restart from last attempt automatically., after a previous attempt failed for some reason leaving a partially downloaded file?? At least for some types of sources and/or output file types/formats??? Like rtmpdump could/can. From natgeo.operations at gmail.com Sun Dec 1 20:24:13 2013 From: natgeo.operations at gmail.com (Steve C) Date: Sun, 1 Dec 2013 14:24:13 -0500 Subject: [FFmpeg-user] Output 10bit DNxHD in a .MXF container Message-ID: I'm trying to output a 10bit DNxHD.mxf, but FFMPEG is saying I have incorrect parameters: *Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height* The source files are always 10bit ProResHQ.mov. Please see the full command statement and output below. Can someone please help me troubleshoot this problem? ----------------------------------- /ffmpeg -i /Users/me/NTSC_ProResHQ_DF_25sec.mov -an -c:v dnxhd -pix_fmt yuv422p10le -b:v 220000k -r 29.97 -s 1920x1080 -aspect 16:9 -trellis 0 -me_range 16 -i_qfactor 0.71 -qmin 3 -qmax 51 -sc_threshold 40 -sn -f mov -f mxf -threads 8 -y "/Users/me/NTSC_ProResHQ_DF_25sec.mxf" ffmpeg version 2.1-tessus Copyright (c) 2000-2013 the FFmpeg developers built on Oct 28 2013 04:17:07 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-libbluray --enable-filters --enable-runtime-cpudetect libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/me/NTSC_ProResHQ_DF_25sec.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-03-30 15:58:59 Duration: 00:00:25.06, start: 0.000000, bitrate: 208519 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 208485 kb/s, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc (default) Metadata: creation_time : 2013-03-30 15:58:59 handler_name : Apple Alias Data Handler timecode : 09:59:50;00 Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default) Metadata: creation_time : 2013-03-30 15:59:35 handler_name : Apple Alias Data Handler timecode : 09:59:50;00 [dnxhd @ 0x10201c400] video parameters incompatible with DNxHD. Valid DNxHD profiles: [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p10; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 240Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 290Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p10; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 110Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 45Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 60000/1001 Output #0, mxf, to '/Users/me/NTSC_ProResHQ_DF_25sec.mxf': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt Stream #0:0(eng): Video: dnxhd, yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=3-51, 220000 kb/s, 90k tbn, 29.97 tbc (default) Metadata: creation_time : 2013-03-30 15:58:59 handler_name : Apple Alias Data Handler timecode : 09:59:50;00 Stream mapping: Stream #0:0 -> #0:0 (prores -> dnxhd) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height [dnxhd @ 0x10201c400] video parameters incompatible with DNxHD. Valid DNxHD profiles: [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p10; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p10; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p10; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 240Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 290Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 175Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 365Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 440Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p10; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 120Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 145Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 185Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080i; bitrate: 220Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p10; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p10; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p10; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 110Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 180Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 220Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 60Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 120Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1280x720p; bitrate: 145Mbps; pixel format: yuv422p; framerate: 60000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 24000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 36Mbps; pixel format: yuv422p; framerate: 25/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 45Mbps; pixel format: yuv422p; framerate: 30000/1001 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 75Mbps; pixel format: yuv422p; framerate: 50/1 [dnxhd @ 0x10201c400] Frame size: 1920x1080p; bitrate: 90Mbps; pixel format: yuv422p; framerate: 60000/1001 Output #0, mxf, to '/Users/stevencucolo/Dropbox/Public/NTSC_ProResHQ_DF_25sec.mxf': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt Stream #0:0(eng): Video: dnxhd, yuv422p10le, 1920x1080 [SAR 1:1 DAR 16:9], q=3-51, 220000 kb/s, 90k tbn, 29.97 tbc (default) Metadata: creation_time : 2013-03-30 15:58:59 handler_name : Apple Alias Data Handler timecode : 09:59:50;00 Stream mapping: Stream #0:0 -> #0:0 (prores -> dnxhd) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height From cehoyos at ag.or.at Sun Dec 1 23:08:43 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 1 Dec 2013 22:08:43 +0000 (UTC) Subject: [FFmpeg-user] Output 10bit DNxHD in a .MXF container References: Message-ID: Steve C gmail.com> writes: > /ffmpeg -i /Users/me/NTSC_ProResHQ_DF_25sec.mov -an -c:v dnxhd > -pix_fmt yuv422p10le -b:v 220000k -r 29.97 -s 1920x1080 ^^^^^^^ > -aspect 16:9 -trellis 0 -me_range 16 -i_qfactor 0.71 -qmin 3 > -qmax 51 -sc_threshold 40 -sn -f mov -f mxf -threads 8 -y > "/Users/me/NTSC_ProResHQ_DF_25sec.mxf" > > ffmpeg version 2.1-tessus This looks old. > [dnxhd 0x10201c400] Frame size: 1920x1080i; > bitrate: 220Mbps; pixel format: yuv422p10; > framerate: 30000/1001 I don't think 30000/1001 equals 29.97 Carl Eugen From nichot20 at yahoo.com Mon Dec 2 08:58:49 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 02 Dec 2013 07:58:49 +0000 Subject: [FFmpeg-user] Output 10bit DNxHD in a .MXF container In-Reply-To: References: Message-ID: <529C3DB9.9000604@yahoo.com> On 01/12/13 22:08, Carl Eugen Hoyos wrote: > Steve C gmail.com> writes: > >> /ffmpeg -i /Users/me/NTSC_ProResHQ_DF_25sec.mov -an -c:v dnxhd >> -pix_fmt yuv422p10le -b:v 220000k -r 29.97 -s 1920x1080 > ^^^^^^^ > >> -aspect 16:9 -trellis 0 -me_range 16 -i_qfactor 0.71 -qmin 3 >> -qmax 51 -sc_threshold 40 -sn -f mov -f mxf -threads 8 -y >> "/Users/me/NTSC_ProResHQ_DF_25sec.mxf" >> >> ffmpeg version 2.1-tessus > > This looks old. > >> [dnxhd 0x10201c400] Frame size: 1920x1080i; >> bitrate: 220Mbps; pixel format: yuv422p10; > >> framerate: 30000/1001 > > I don't think 30000/1001 equals 29.97 No it equals 29.97002997.... but I thought that was regarded as good enough. > >[..] -- Tim From soho123.2012 at gmail.com Mon Dec 2 10:31:18 2013 From: soho123.2012 at gmail.com (Diaz Soho) Date: Mon, 2 Dec 2013 17:31:18 +0800 Subject: [FFmpeg-user] how to transcode yuv video to h264 by ffmpeg Message-ID: Hi All, If I would like to transcode YUV video data to H.264, then use ffserver output the h.264 video as stream the command below : ffmpeg -sn -f video4linux2 -r 5 -s 1280x720 -input_format yuyv422 -i /dev/video0 -vcodec libx264 http://localhost:8090/feed.ffm is there anything wrong in the command? If I would like to output CBR H.264 stream, how to modify the ffmpeg command line? Any input is very appreciated! Thanks! From cehoyos at ag.or.at Mon Dec 2 11:38:01 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 2 Dec 2013 10:38:01 +0000 (UTC) Subject: [FFmpeg-user] Output 10bit DNxHD in a .MXF container References: <529C3DB9.9000604@yahoo.com> Message-ID: Tim Nicholson yahoo.com> writes: > >> [dnxhd 0x10201c400] Frame size: 1920x1080i; > >> bitrate: 220Mbps; pixel format: yuv422p10; > > > >> framerate: 30000/1001 > > > > I don't think 30000/1001 equals 29.97 > > No it equals 29.97002997.... but I thought that was > regarded as good enough. True, the original command line is missing -flags ildct (To respect the "i" in "1080i") Sorry, Carl Eugen From david at davidfavor.com Mon Dec 2 14:28:49 2013 From: david at davidfavor.com (David Favor) Date: Mon, 02 Dec 2013 07:28:49 -0600 Subject: [FFmpeg-user] How to stream to HDMI on Linux/Ubuntu In-Reply-To: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> References: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> Message-ID: <529C8B11.5040405@davidfavor.com> If someone has a link to a simple tutorial about this, pass it along. Simple application. Using latest Ubuntu-13.10 + ffmpeg-2.1.1 - the best way to stream audio + video directly to an HDMI port connected to a TV. Thanks. -- Love Living Well Doing What You Love? http://DavidFavor.com/books can help! From h.reindl at thelounge.net Mon Dec 2 14:53:02 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 02 Dec 2013 14:53:02 +0100 Subject: [FFmpeg-user] How to stream to HDMI on Linux/Ubuntu In-Reply-To: <529C8B11.5040405@davidfavor.com> References: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> <529C8B11.5040405@davidfavor.com> Message-ID: <529C90BE.6090403@thelounge.net> Am 02.12.2013 14:28, schrieb David Favor: > If someone has a link to a simple tutorial about this, pass it along. > > Simple application. > > Using latest Ubuntu-13.10 + ffmpeg-2.1.1 - the best way to stream > audio + video directly to an HDMI port connected to a TV AGAIN: remove your website from your signature besides it is rude to add advertisments to list-messages it is still blocked with "ZeroHour Intent" which is classified as malware alert and i am tired of the "Your membership in the mailing list ffmpeg-user has been disabled due to excessive bounces The last bounce received from you was dated 02-Dec-2013" messages caused by your emails -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Mon Dec 2 14:56:15 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 2 Dec 2013 13:56:15 +0000 (UTC) Subject: [FFmpeg-user] How to stream to HDMI on Linux/Ubuntu References: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> <529C8B11.5040405@davidfavor.com> Message-ID: David Favor davidfavor.com> writes: > Using latest Ubuntu-13.10 + ffmpeg-2.1.1 - the best way > to stream audio + video directly to an HDMI port > connected to a TV. Apart from "don't highjack mailing threads, this is (also) very rude": Streaming audio via HDMI is completely straight-forward, I am not sure what you mean with streaming video: There is -f sdl and -f xv (and both work fine with HDMI) but ffmpeg is not a media player so I think I don't understand your use-case. Or would "Use MPlayer" be a possible answer? Carl Eugen From david at davidfavor.com Mon Dec 2 15:56:34 2013 From: david at davidfavor.com (David Favor) Date: Mon, 02 Dec 2013 08:56:34 -0600 Subject: [FFmpeg-user] How to stream to HDMI on Linux/Ubuntu In-Reply-To: References: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> <529C8B11.5040405@davidfavor.com> Message-ID: <529C9FA2.7070607@davidfavor.com> Carl Eugen Hoyos wrote: > David Favor davidfavor.com> writes: > >> Using latest Ubuntu-13.10 + ffmpeg-2.1.1 - the best way >> to stream audio + video directly to an HDMI port >> connected to a TV. > > Apart from "don't highjack mailing threads, this is > (also) very rude": > Streaming audio via HDMI is completely straight-forward, > I am not sure what you mean with streaming video: > There is -f sdl and -f xv (and both work fine with HDMI) > but ffmpeg is not a media player so I think I don't > understand your use-case. > > Or would "Use MPlayer" be a possible answer? > > Carl Eugen I'm looking for the simple command, something like... ffmpeg -i foo.mp4 /dev/hdmi Maybe this is so simple, I'm just missing it. So I guess two questions... 1) How do determine the HDMI device on a given machine 2) Syntax to stream a .mp4 file to the device Thanks. From f.fredperie at gmail.com Mon Dec 2 16:03:57 2013 From: f.fredperie at gmail.com (Fred Perie) Date: Mon, 2 Dec 2013 16:03:57 +0100 Subject: [FFmpeg-user] How to stream to HDMI on Linux/Ubuntu In-Reply-To: <529C9FA2.7070607@davidfavor.com> References: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> <529C8B11.5040405@davidfavor.com> <529C9FA2.7070607@davidfavor.com> Message-ID: If your graphic card has a hdmi port, this is considered as a screen, you just need to go to the display menu in the preference menu and activate it. Than any player will do the job on this display. Fred 2013/12/2 David Favor > Carl Eugen Hoyos wrote: > >> David Favor davidfavor.com> writes: >> >> Using latest Ubuntu-13.10 + ffmpeg-2.1.1 - the best way to stream audio >>> + video directly to an HDMI port connected to a TV. >>> >> >> Apart from "don't highjack mailing threads, this is (also) very rude": >> Streaming audio via HDMI is completely straight-forward, I am not sure >> what you mean with streaming video: >> There is -f sdl and -f xv (and both work fine with HDMI) but ffmpeg is >> not a media player so I think I don't understand your use-case. >> >> Or would "Use MPlayer" be a possible answer? >> >> Carl Eugen >> > > I'm looking for the simple command, something like... > > ffmpeg -i foo.mp4 /dev/hdmi > > Maybe this is so simple, I'm just missing it. > > So I guess two questions... > > 1) How do determine the HDMI device on a given machine > > 2) Syntax to stream a .mp4 file to the device > > Thanks. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Mon Dec 2 16:05:51 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 2 Dec 2013 15:05:51 +0000 (UTC) Subject: [FFmpeg-user] How to stream to HDMI on Linux/Ubuntu References: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> <529C8B11.5040405@davidfavor.com> <529C9FA2.7070607@davidfavor.com> Message-ID: David Favor davidfavor.com> writes: > ffmpeg -i foo.mp4 /dev/hdmi > > Maybe this is so simple, I'm just missing it. > > So I guess two questions... > > 1) How do determine the HDMI device on a given machine $ aplay -l > 2) Syntax to stream a .mp4 file to the device $ ffmpeg -i input.mp4 -f alsa hw:1,7 The actual device depends on your hardware. I am sure there are non-alsa alternatives for all commands but I always only tested alsa. Carl Eugen From david at davidfavor.com Mon Dec 2 16:07:26 2013 From: david at davidfavor.com (David Favor) Date: Mon, 02 Dec 2013 09:07:26 -0600 Subject: [FFmpeg-user] How to stream to HDMI on Linux/Ubuntu In-Reply-To: References: <1685336984.220902488.1385635488301.JavaMail.root@spooler3-g27.priv.proxad.net> <529C8B11.5040405@davidfavor.com> <529C9FA2.7070607@davidfavor.com> Message-ID: <529CA22E.2080802@davidfavor.com> Carl Eugen Hoyos wrote: > David Favor davidfavor.com> writes: > >> ffmpeg -i foo.mp4 /dev/hdmi >> >> Maybe this is so simple, I'm just missing it. >> >> So I guess two questions... >> >> 1) How do determine the HDMI device on a given machine > > $ aplay -l > >> 2) Syntax to stream a .mp4 file to the device > > $ ffmpeg -i input.mp4 -f alsa hw:1,7 > > The actual device depends on your hardware. > I am sure there are non-alsa alternatives for all > commands but I always only tested alsa. > > Carl Eugen Perfect! Thanks! From mhogan at timelessveterinary.com Mon Dec 2 16:25:23 2013 From: mhogan at timelessveterinary.com (Mike Hogan) Date: Mon, 2 Dec 2013 11:25:23 -0400 Subject: [FFmpeg-user] H.264 Decoding Issue / Gray Image Message-ID: Sorry if this is hard to follow. I've including the output of 3 different ffmpeg scripts for reference. My problem is occurring at #3 but I'm wondering if there's actually an issue with #1 and/or my install. I have a web-based system where videos can be uploaded and played using JPlayer. I am converting all the videos to H264 using the following: #1. %ffmpeg -i test.avi -y -r 24 -vcodec libx264 outfile.m4v \ffmpeg version 0.11.3 Copyright (c) 2000-2013 the FFmpeg developers built on Jun 25 2013 17:01:59 with gcc 4.2.1 20070719 [FreeBSD] configuration: --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --prefix=/usr/local --enable-shared --enable-bzlib --enable-frei0r --enable-gpl --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-vdpau --enable-x11grab --enable-zlib --enable-libx264 libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, avi, from 'test.avi': Duration: 00:00:01.26, start: 0.000000, bitrate: 5151 kb/s Stream #0:0: Video: cinepak (cvid / 0x64697663), yuv420p, 360x256, 30 tbr, 30 tbn, 30 tbc Metadata: title : E:\My Documents\Z contrast review\Contrast case images\Power Do [buffer @ 0x80520d4c0] w:360 h:256 pixfmt:yuv420p tb:1/30 sar:0/1 sws_param:flags=2 [buffersink @ 0x80520d580] No opaque field provided [libx264 @ 0x805244c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x805244c00] profile High, level 1.3 [libx264 @ 0x805244c00] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, ipod, to 'outfile.m4v': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 360x256, q=-1--1, 24 tbn, 24 tbc Metadata: title : E:\My Documents\Z contrast review\Contrast case images\Power Do Stream mapping: Stream #0:0 -> #0:0 (cinepak -> libx264) Press [q] to stop, [?] for help frame= 33 fps=0.0 q=32766.0 Lsize= 112kB time=00:00:01.29 bitrate= 712.1kbits/s dup=0 drop=5 video:111kB audio:0kB global headers:0kB muxing overhead 0.926950% [libx264 @ 0x805244c00] frame I:1 Avg QP:25.24 size: 9573 [libx264 @ 0x805244c00] frame P:28 Avg QP:27.59 size: 3139 [libx264 @ 0x805244c00] frame B:4 Avg QP:30.24 size: 3933 [libx264 @ 0x805244c00] consecutive B-frames: 75.8% 24.2% 0.0% 0.0% [libx264 @ 0x805244c00] mb I I16..4: 29.3% 48.1% 22.6% [libx264 @ 0x805244c00] mb P I16..4: 1.2% 10.7% 2.4% P16..4: 11.2% 7.6% 6.4% 0.0% 0.0% skip:60.5% [libx264 @ 0x805244c00] mb B I16..4: 1.2% 7.7% 2.5% B16..8: 17.5% 19.2% 9.6% direct: 7.7% skip:34.5% L0:43.1% L1:36.3% BI:20.6% [libx264 @ 0x805244c00] 8x8 transform intra:69.2% inter:47.4% [libx264 @ 0x805244c00] coded y,uvDC,uvAC intra: 83.5% 83.7% 75.4% inter: 23.3% 13.9% 5.8% [libx264 @ 0x805244c00] i16 v,h,dc,p: 76% 16% 7% 1% [libx264 @ 0x805244c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 17% 13% 8% 8% 7% 15% 7% 15% [libx264 @ 0x805244c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 21% 20% 6% 8% 5% 13% 4% 9% [libx264 @ 0x805244c00] i8c dc,h,v,p: 46% 19% 19% 15% [libx264 @ 0x805244c00] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x805244c00] ref P L0: 43.7% 23.1% 12.5% 20.7% [libx264 @ 0x805244c00] ref B L0: 74.3% 25.7% [libx264 @ 0x805244c00] kb/s:658.66 I am also generating a jpg of the first frame using: #2. %ffmpeg -i test.avi -y -ss 0 -vframes 1 outfile.jpg ffmpeg version 0.11.3 Copyright (c) 2000-2013 the FFmpeg developers built on Jun 25 2013 17:01:59 with gcc 4.2.1 20070719 [FreeBSD] configuration: --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --prefix=/usr/local --enable-shared --enable-bzlib --enable-frei0r --enable-gpl --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-vdpau --enable-x11grab --enable-zlib --enable-libx264 libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, avi, from 'test.avi': Duration: 00:00:01.26, start: 0.000000, bitrate: 5151 kb/s Stream #0:0: Video: cinepak (cvid / 0x64697663), yuv420p, 360x256, 30 tbr, 30 tbn, 30 tbc Metadata: title : E:\My Documents\Z contrast review\Contrast case images\Power Do [buffer @ 0x80520d460] w:360 h:256 pixfmt:yuv420p tb:1/30 sar:0/1 sws_param:flags=2 [buffersink @ 0x80520d520] No opaque field provided [format @ 0x80520d5e0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format' [scale @ 0x80520d700] w:360 h:256 fmt:yuv420p sar:0/1 -> w:360 h:256 fmt:yuvj420p sar:0/1 flags:0x4 Output #0, image2, to 'outfile.jpg': Metadata: encoder : Lavf54.6.100 Stream #0:0: Video: mjpeg, yuvj420p, 360x256, q=2-31, 200 kb/s, 90k tbn, 30 tbc Metadata: title : E:\My Documents\Z contrast review\Contrast case images\Power Do Stream mapping: Stream #0:0 -> #0:0 (cinepak -> mjpeg) Press [q] to stop, [?] for help frame= 1 fps=0.0 q=4.8 Lsize= 0kB time=00:00:00.03 bitrate= 0.0kbits/s video:14kB audio:0kB global headers:0kB muxing overhead -100.000000% For the most part this seems to work and the videos play fine in JPlayer. However, I have discovered that if I take the converted video file, and try and convert another still image, I just get a gray image. #3. %ffmpeg -i outfile.m4v -y -ss 0 -vframes 1 outfile.jpg -loglevel debug ffmpeg version 0.11.3 Copyright (c) 2000-2013 the FFmpeg developers built on Jun 25 2013 17:01:59 with gcc 4.2.1 20070719 [FreeBSD] configuration: --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --prefix=/usr/local --enable-shared --enable-bzlib --enable-frei0r --enable-gpl --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-vdpau --enable-x11grab --enable-zlib --enable-libx264 libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x805219600] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x805219600] ISO: File Type Major Brand: M4V [mov,mp4,m4a,3gp,3g2,mj2 @ 0x805219600] File position before avformat_find_stream_info() is 114978 [h264 @ 0x805244200] no picture [h264 @ 0x805244200] top block unavailable for requested intra4x4 mode -1 at 7 0 [h264 @ 0x805244200] error while decoding MB 7 0, bytestream (9509) [h264 @ 0x805244200] concealing 368 DC, 368 AC, 368 MV errors [mov,mp4,m4a,3gp,3g2,mj2 @ 0x805219600] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x805219600] File position after avformat_find_stream_info() is 10293 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'outfile.m4v': Metadata: major_brand : M4V minor_version : 512 compatible_brands: isomiso2avc1 encoder : Lavf54.6.100 Duration: 00:00:01.37, start: 0.000000, bitrate: 668 kb/s Stream #0:0(und), 1, 1/24: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 360x256, 1/48, 662 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc Metadata: handler_name : VideoHandler [buffer @ 0x80520d400] w:360 h:256 pixfmt:yuv420p tb:1/24 sar:0/1 sws_param:flags=2 [buffersink @ 0x80520d4c0] No opaque field provided [format @ 0x80520d580] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'format' [scale @ 0x80520d6a0] w:360 h:256 fmt:yuv420p sar:0/1 -> w:360 h:256 fmt:yuvj420p sar:0/1 flags:0x4 [mjpeg @ 0x805244c00] intra_quant_bias = 96 inter_quant_bias = 0 [h264 @ 0x805244200] detected 4 logical cores Output #0, image2, to 'outfile.jpg': Metadata: major_brand : M4V minor_version : 512 compatible_brands: isomiso2avc1 encoder : Lavf54.6.100 Stream #0:0(und), 0, 1/90000: Video: mjpeg, yuvj420p, 360x256, 1/24, q=2-31, 200 kb/s, 90k tbn, 24 tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> mjpeg) Press [q] to stop, [?] for help [h264 @ 0x805245b00] no picture DTS -1, next:-41666 st:0 invalid dropping [h264 @ 0x805245b00] top block unavailable for requested intra4x4 mode -1 at 7 0 [h264 @ 0x805245b00] error while decoding MB 7 0, bytestream (9509) [h264 @ 0x805245b00] concealing 368 DC, 368 AC, 368 MV errors [h264 @ 0x80533f800] no picture [h264 @ 0x80533f300] Reference 6 >= 3 [h264 @ 0x80533f300] error while decoding MB 7 0, bytestream (6354) [h264 @ 0x80533f300] concealing 368 DC, 368 AC, 368 MV errors [h264 @ 0x80533ee00] Reference 6 >= 4 [h264 @ 0x80533ee00] error while decoding MB 13 0, bytestream (451) [h264 @ 0x80533ee00] concealing 368 DC, 368 AC, 368 MV errors [h264 @ 0x80533e900] Reference 6 >= 4 [h264 @ 0x80533e900] error while decoding MB 6 0, bytestream (5716) [h264 @ 0x80533e900] concealing 368 DC, 368 AC, 368 MV errors [h264 @ 0x805245b00] Reference 6 >= 4 [h264 @ 0x805245b00] error while decoding MB 7 0, bytestream (430) [h264 @ 0x805245b00] concealing 368 DC, 368 AC, 368 MV errors [h264 @ 0x80533f800] Reference 6 >= 4 [h264 @ 0x80533f800] error while decoding MB 7 0, bytestream (5666) [h264 @ 0x80533f800] concealing 368 DC, 368 AC, 368 MV errors frame= 1 fps=0.0 q=1.6 Lsize= 0kB time=00:00:00.04 bitrate= 0.0kbits/s video:2kB audio:0kB global headers:0kB muxing overhead -100.000000% Any thoughts on what's wrong here? From cehoyos at ag.or.at Mon Dec 2 16:54:43 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 2 Dec 2013 15:54:43 +0000 (UTC) Subject: [FFmpeg-user] H.264 Decoding Issue / Gray Image References: Message-ID: Mike Hogan timelessveterinary.com> writes: > ffmpeg version 0.11.3 > Any thoughts on what's wrong here? I suspect you just have to update FFmpeg to current git head. If the problem is reproducible with current git head, please upload sample(s). Carl Eugen From azizgokhannarin at gmail.com Mon Dec 2 17:20:24 2013 From: azizgokhannarin at gmail.com (=?ISO-8859-9?Q?Aziz_G=F6khan_NAR=DDN?=) Date: Mon, 2 Dec 2013 18:20:24 +0200 Subject: [FFmpeg-user] Muxing example and inserting real time stamp Message-ID: Hello, I seeked any corner of the web and have found nothing about this issue. Yes I understood the main idea of the time positioning of pts and dts. Tough I implement any detail of this, realtime seek cannot be realized via ffserver. I found the property start_time_realtime in the format context but yet I didnot find any suggestion to use it. How can I insert AVPacket to realtime stamp. Please give me a hand. I really tired to search. Aziz G?khan NAR?N From nickrobbins at yahoo.com Mon Dec 2 20:01:57 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Mon, 2 Dec 2013 11:01:57 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> Message-ID: <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> On Monday, November 25, 2013 5:35 PM, Carl Eugen Hoyos wrote: L. Lee sbcglobal.net> writes: > >> Is the robbins-recut.tgz available to all of us? > >I will upload the original sample (the one from the >dvd) as soon as I receive it. > >Note that in my tests, similar files work fine >with fieldmatch. > >Carl Eugen > Ok, Inserted DVD, ran: $ /usr/bin/mplayer -dvd-device /dev/sr0 dvd://1 -dumpfile dump-1.vob -dumpstream $ dd if=dump-1.vob of=dd-vob-short.mkv count=400K $ ffmpeg -t 280 -i dd-vob-short.mkv? -map 0 -c copy -c:v libx264 -vf "fps=30000/1001,fieldmatch,yadif=deint=interlaced" -crf 17 -preset veryfast dd-vob-short-fieldmatch-yadif.mkv $ ffmpeg -t 280 -i dd-vob-short.mkv? -map 0 -c copy -c:v libx264 -vf "fps=30000/1001,fieldmatch" -crf 17 -preset veryfast dd-vob-short-fieldmatch.mkv Both ffmpeg commands had output containing: Frame #8158 at 272.205 is still interlaced time=00:04:31.64 bitrate=2622.3kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8159 at 272.239 is still interlaced [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8160 at 272.272 is still interlaced So I focused on those frames.? $ ffmpeg -t 2 -ss 271.205? -i dd-vob-short-fieldmatch-yadif.mkv? dd-vob-short-f-y-%2d.jpg $ ffmpeg -t 2 -ss 271.205? -i dd-vob-short-fieldmatch.mkv? dd-vob-short-f-%2d.jpg By comparing with the original frames, the desired frames are 32, 33, 34. They appear identical, including using gimp's difference filter. I'm uploading dd-vob-short.mkv, dd-vob-short-fieldmatch-yadif.mkv, dd-vob-short-fieldmatch.mkv, and dd-vob-short-f-{,y-}3{2,3,4}.bmp as robbins-from-dvd.tgz to upload.ffmpeg.org/incoming -Nick Robbins Output from first ffmpeg command: ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers ? built on Nov? 6 2013 20:33:17 with gcc 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.3, pie-0.5.5) ? configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux- gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra-cflags='-O2 -pipe -march=native -fomit-frame-pointer' --extra- cxxflags='-O2 -pipe -march=native -fomit-frame-pointer' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping -- enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss - -disable-outdev=sdl --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded-tables --enable-iconv --enable-netw ork --disable-openssl --disable-ffplay --disable-vaapi --disable-vdpau --enable-zlib --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libmp3lame --disable-l ibfdk-aac --disable-libaacplus --enable? libavutil????? 52. 38.100 / 52. 38.100 ? libavcodec???? 55. 18.102 / 55. 18.102 ? libavformat??? 55. 12.100 / 55. 12.100 ? libavdevice??? 55.? 3.100 / 55.? 3.100 ? libavfilter???? 3. 79.101 /? 3. 79.101 ? libavresample?? 1.? 1.? 0 /? 1.? 1.? 0 ? libswscale????? 2.? 3.100 /? 2.? 3.100 ? libswresample?? 0. 17.102 /? 0. 17.102 ? libpostproc??? 52.? 3.100 / 52.? 3.100 [mpeg2video @ 0x7d10c4d270] Warning: not compiled with thread support, using thread emulation [ac3 @ 0x7d10cd9770] Warning: not compiled with thread support, using thread emulation [ac3 @ 0x7d10cfedd0] Warning: not compiled with thread support, using thread emulation Input #0, mpeg, from 'dd-vob-short.mkv': ? Duration: 00:04:54.19, start: 0.280633, bitrate: 5702 kb/s ??? Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc ??? Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s ??? Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s -t is not an input option, keeping it for the next output; consider fixing your command line. [libx264 @ 0x7d10c52340] Warning: not compiled with thread support, using thread emulation [libx264 @ 0x7d10c52340] using SAR=32/27 [libx264 @ 0x7d10c52340] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x7d10c52340] profile High, level 3.0 [libx264 @ 0x7d10c52340] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 ana lyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 thr eads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weig htp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mpeg2video @ 0x7d10c4d270] Warning: not compiled with thread support, using thread emulation Output #0, matroska, to 'dd-vob-short-fieldmatch-yadif.mkv': ? Metadata: ??? encoder???????? : Lavf55.12.100 ??? Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 1k tbn, 29.97 tbc ??? Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s ??? Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (mpeg2video -> libx264) ? Stream #0:1 -> #0:1 (copy) ? Stream #0:2 -> #0:2 (copy) Press [q] to stop, [?] for help New subtitle stream 0:3 at pos:5425166 and DTS:16.2633s4.94 bitrate= 633.6kbits/s Frame #1389 at 46.3463 is still interlaced time=00:00:45.76 bitrate=1593.8kbits/s Frame #3320 at 110.777 is still interlaced time=00:01:50.17 bitrate=2392.7kbits/s Frame #3510 at 117.117 is still interlaced time=00:01:56.92 bitrate=2489.6kbits/s Frame #5657 at 188.755 is still interlaced time=00:03:07.90 bitrate=2464.1kbits/s Frame #5995 at 200.033 is still interlaced time=00:03:19.58 bitrate=2478.9kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #5996 at 200.067 is still interlaced Frame #6106 at 203.737 is still interlaced time=00:03:23.20 bitrate=2477.0kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #6107 at 203.77 is still interlaced Frame #6181 at 206.239 is still interlaced time=00:03:25.79 bitrate=2506.3kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #6182 at 206.273 is still interlaced Frame #6203 at 206.973 is still interlaced time=00:03:26.27 bitrate=2510.6kbits/s Frame #6356 at 212.079 is still interlaced time=00:03:31.87 bitrate=2501.8kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #6357 at 212.112 is still interlaced Frame #7878 at 262.863 is still interlaced time=00:04:22.52 bitrate=2509.7kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #7879 at 262.896 is still interlaced [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #7880 at 262.929 is still interlaced [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #7882 at 262.996 is still interlaced Frame #8020 at 267.601 is still interlaced time=00:04:27.10 bitrate=2588.0kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8021 at 267.634 is still interlaced Frame #8093 at 270.036 is still interlaced time=00:04:29.63 bitrate=2611.7kbits/s Frame #8158 at 272.205 is still interlaced time=00:04:31.64 bitrate=2622.3kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8159 at 272.239 is still interlaced [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8160 at 272.272 is still interlaced Frame #8207 at 273.84 is still interlacedB time=00:04:33.47 bitrate=2630.5kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8208 at 273.874 is still interlaced Frame #8226 at 274.474 is still interlaced time=00:04:34.14 bitrate=2632.3kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8227 at 274.508 is still interlaced Frame #8289 at 276.576 is still interlaced time=00:04:36.00 bitrate=2638.2kbits/s [Parsed_fieldmatch_1 @ 0x7d10c54850] Frame #8290 at 276.61 is still interlaced frame= 8392 fps= 40 q=-1.0 Lsize=?? 90819kB time=00:04:40.00 bitrate=2657.1kbits/s video:77513kB audio:13125kB subtitle:0 global headers:0kB muxing overhead 0.200497% [libx264 @ 0x7d10c52340] frame I:105?? Avg QP:14.62? size: 34068 [libx264 @ 0x7d10c52340] frame P:3719? Avg QP:18.26? size: 14950 [libx264 @ 0x7d10c52340] frame B:4568? Avg QP:20.38? size:? 4421 [libx264 @ 0x7d10c52340] consecutive B-frames: 17.3% 26.5% 11.8% 44.4% [libx264 @ 0x7d10c52340] mb I? I16..4: 16.0% 54.6% 29.4% [libx264 @ 0x7d10c52340] mb P? I16..4:? 6.8% 17.4%? 1.3%? P16..4: 33.5% 17.5% 13.0%? 0.0%? 0.0%??? skip:10.4% [libx264 @ 0x7d10c52340] mb B? I16..4:? 1.1%? 1.9%? 0.2%? B16..8: 24.7%? 8.4%? 1.2%? direct:16.7%? skip:46.0%? L0:32.1% L1:42.0% BI:25.9% [libx264 @ 0x7d10c52340] 8x8 transform intra:66.0% inter:60.5% [libx264 @ 0x7d10c52340] coded y,uvDC,uvAC intra: 73.1% 69.4% 32.9% inter: 28.0% 26.6% 1.9% [libx264 @ 0x7d10c52340] i16 v,h,dc,p: 36% 27% 32%? 6% [libx264 @ 0x7d10c52340] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 17% 44%? 3%? 2%? 3%? 3%? 3%? 4% [libx264 @ 0x7d10c52340] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 41% 12%? 4%? 5%? 5%? 5%? 5%? 5% [libx264 @ 0x7d10c52340] i8c dc,h,v,p: 51% 21% 23%? 5% [libx264 @ 0x7d10c52340] Weighted P-Frames: Y:10.3% UV:3.5% [libx264 @ 0x7d10c52340] kb/s:2267.67 Second one the same build info then:Input #0, mpeg, from 'dd-vob-short.mkv': ? Duration: 00:04:54.19, start: 0.280633, bitrate: 5702 kb/s ??? Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc ??? Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s ??? Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s -t is not an input option, keeping it for the next output; consider fixing your command line. [libx264 @ 0x4b19372d0] Warning: not compiled with thread support, using thread emulation [libx264 @ 0x4b19372d0] using SAR=32/27 [libx264 @ 0x4b19372d0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x4b19372d0] profile High, level 3.0 [libx264 @ 0x4b19372d0] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 anal yse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 thre ads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weigh tp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mpeg2video @ 0x4b1932200] Warning: not compiled with thread support, using thread emulation Output #0, matroska, to 'dd-vob-short-fieldmatch.mkv': ? Metadata: ??? encoder???????? : Lavf55.12.100 ??? Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 1k tbn, 29.97 tbc ??? Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s ??? Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, 192 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (mpeg2video -> libx264) ? Stream #0:1 -> #0:1 (copy) ? Stream #0:2 -> #0:2 (copy) Press [q] to stop, [?] for help New subtitle stream 0:3 at pos:5425166 and DTS:16.2633s5.00 bitrate= 636.4kbits/s Frame #1389 at 46.3463 is still interlaced time=00:00:45.76 bitrate=1595.1kbits/s Frame #3320 at 110.777 is still interlaced time=00:01:50.62 bitrate=2394.5kbits/s Frame #3510 at 117.117 is still interlaced time=00:01:56.83 bitrate=2492.3kbits/s Frame #5657 at 188.755 is still interlaced time=00:03:08.38 bitrate=2463.3kbits/s Frame #5995 at 200.033 is still interlaced time=00:03:19.55 bitrate=2480.3kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #5996 at 200.067 is still interlaced Frame #6106 at 203.737 is still interlaced time=00:03:23.16 bitrate=2478.9kbits/s Frame #6107 at 203.77 is still interlacedB time=00:03:23.61 bitrate=2487.3kbits/s Frame #6181 at 206.239 is still interlaced time=00:03:25.79 bitrate=2509.2kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #6182 at 206.273 is still interlaced Frame #6203 at 206.973 is still interlaced time=00:03:26.27 bitrate=2513.3kbits/s Frame #6356 at 212.079 is still interlaced time=00:03:32.00 bitrate=2503.8kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #6357 at 212.112 is still interlaced Frame #7878 at 262.863 is still interlaced time=00:04:22.24 bitrate=2512.2kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #7879 at 262.896 is still interlaced [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #7880 at 262.929 is still interlaced Frame #7882 at 262.996 is still interlaced time=00:04:22.91 bitrate=2514.6kbits/s Frame #8020 at 267.601 is still interlaced time=00:04:27.36 bitrate=2595.3kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #8021 at 267.634 is still interlaced Frame #8093 at 270.036 is still interlaced time=00:04:29.95 bitrate=2614.5kbits/s Frame #8158 at 272.205 is still interlaced time=00:04:31.48 bitrate=2623.6kbits/s Frame #8159 at 272.239 is still interlaced time=00:04:32.06 bitrate=2626.4kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #8160 at 272.272 is still interlaced Frame #8207 at 273.84 is still interlacedB time=00:04:33.34 bitrate=2631.8kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #8208 at 273.874 is still interlaced Frame #8226 at 274.474 is still interlaced time=00:04:33.98 bitrate=2634.6kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #8227 at 274.508 is still interlaced Frame #8289 at 276.576 is still interlaced time=00:04:36.44 bitrate=2642.1kbits/s [Parsed_fieldmatch_1 @ 0x4b1939720] Frame #8290 at 276.61 is still interlaced frame= 8392 fps= 40 q=-1.0 Lsize=?? 90944kB time=00:04:40.00 bitrate=2660.8kbits/s video:77638kB audio:13125kB subtitle:0 global headers:0kB muxing overhead 0.200206% [libx264 @ 0x4b19372d0] frame I:105?? Avg QP:14.71? size: 34829 [libx264 @ 0x4b19372d0] frame P:3718? Avg QP:18.27? size: 14965 [libx264 @ 0x4b19372d0] frame B:4569? Avg QP:20.38? size:? 4422 [libx264 @ 0x4b19372d0] consecutive B-frames: 17.2% 26.6% 11.8% 44.4% [libx264 @ 0x4b19372d0] mb I? I16..4: 16.2% 55.0% 28.8% [libx264 @ 0x4b19372d0] mb P? I16..4:? 6.9% 17.4%? 1.3%? P16..4: 33.5% 17.5% 13.0%? 0.0%? 0.0%??? skip:10.4% [libx264 @ 0x4b19372d0] mb B? I16..4:? 1.1%? 1.9%? 0.2%? B16..8: 24.7%? 8.4%? 1.2%? direct:16.7%? skip:46.0%? L0:32.0% L1:42.1% BI:25.9% [libx264 @ 0x4b19372d0] 8x8 transform intra:65.9% inter:60.6% [libx264 @ 0x4b19372d0] coded y,uvDC,uvAC intra: 73.1% 69.4% 33.1% inter: 28.0% 26.6% 1.9% [libx264 @ 0x4b19372d0] i16 v,h,dc,p: 36% 27% 32%? 5% [libx264 @ 0x4b19372d0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 17% 44%? 3%? 2%? 3%? 3%? 3%? 4% [libx264 @ 0x4b19372d0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 44% 11%? 4%? 4%? 5%? 4%? 5%? 5% [libx264 @ 0x4b19372d0] i8c dc,h,v,p: 51% 21% 23%? 5% [libx264 @ 0x4b19372d0] Weighted P-Frames: Y:10.2% UV:3.4% [libx264 @ 0x4b19372d0] kb/s:2271.33 third: Input #0, matroska,webm, from 'dd-vob-short-fieldmatch-yadif.mkv': ? Metadata: ??? ENCODER???????? : Lavf55.12.100 ? Duration: 00:04:40.08, start: 0.000000, bitrate: 2656 kb/s ??? Stream #0:0: Video: h264 (High), yuv420p, 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default) ??? Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) ??? Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) -t is not an input option, keeping it for the next output; consider fixing your command line. [bmp @ 0x4969199070] Warning: not compiled with thread support, using thread emulation [h264 @ 0x4969193490] Warning: not compiled with thread support, using thread emulation Output #0, image2, to 'bmps/dd-vob-short-f-y-%2d.bmp': ? Metadata: ??? encoder???????? : Lavf55.12.100 ??? Stream #0:0: Video: bmp, bgr24, 720x480 [SAR 186:157 DAR 279:157], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc (default) Stream mapping: ? Stream #0:0 -> #0:0 (h264 -> bmp) Press [q] to stop, [?] for help frame=?? 60 fps= 49 q=-1.0 Lsize=N/A time=00:00:02.00 bitrate=N/A dup=0 drop=31 video:60753kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000035% fourth: Input #0, matroska,webm, from 'dd-vob-short-fieldmatch.mkv': ? Metadata: ??? ENCODER???????? : Lavf55.12.100 ? Duration: 00:04:40.08, start: 0.000000, bitrate: 2660 kb/s ??? Stream #0:0: Video: h264 (High), yuv420p, 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default) ??? Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) ??? Stream #0:2: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default) -t is not an input option, keeping it for the next output; consider fixing your command line. [bmp @ 0x19d01737c0] Warning: not compiled with thread support, using thread emulation [h264 @ 0x19d016dbe0] Warning: not compiled with thread support, using thread emulation Output #0, image2, to 'bmps/dd-vob-short-f-%2d.bmp': ? Metadata: ??? encoder???????? : Lavf55.12.100 ??? Stream #0:0: Video: bmp, bgr24, 720x480 [SAR 186:157 DAR 279:157], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc (default) Stream mapping: ? Stream #0:0 -> #0:0 (h264 -> bmp) Press [q] to stop, [?] for help frame=?? 60 fps= 54 q=-1.0 Lsize=N/A time=00:00:02.00 bitrate=N/A dup=0 drop=31??? video:60753kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000035% From cehoyos at ag.or.at Tue Dec 3 00:11:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 2 Dec 2013 23:11:19 +0000 (UTC) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> Message-ID: Nicholas Robbins yahoo.com> writes: > $ /usr/bin/mplayer -dvd-device /dev/sr0 dvd://1 > -dumpfile dump-1.vob -dumpstream > I'm uploading dd-vob-short.mkv, dd-vob-short-fieldmatch-yadif.mkv, > dd-vob-short-fieldmatch.mkv, and dd-vob-short-f-{,y-}3{2,3,4}.bmp > as robbins-from-dvd.tgz to upload.ffmpeg.org/incoming Please provide a (part of) dump-1.vob Thank you, Carl Eugen From nickrobbins at yahoo.com Tue Dec 3 00:30:37 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Mon, 2 Dec 2013 15:30:37 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> Message-ID: <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> > On Monday, December 2, 2013 6:12 PM, Carl Eugen Hoyos wrote: > > Nicholas Robbins yahoo.com> writes: > >>? I'm uploading dd-vob-short.mkv, dd-vob-short-fieldmatch-yadif.mkv, >>? dd-vob-short-fieldmatch.mkv, and dd-vob-short-f-{,y-}3{2,3,4}.bmp > >>? as robbins-from-dvd.tgz to upload.ffmpeg.org/incoming > > Please provide a (part of) dump-1.vob > > Thank you, Carl Eugen dd-vob-short.mkv is the output from $ dd if=dump-1.vob of=dd-vob-short.mkv count=400K It is in the tarball which seems to still be uploading. -Nick Robbins From ianmllgn at gmail.com Tue Dec 3 01:26:47 2013 From: ianmllgn at gmail.com (Ian Milligan) Date: Mon, 2 Dec 2013 16:26:47 -0800 Subject: [FFmpeg-user] Issue Overlaying Video from x11grab and video4linux2 Message-ID: When I capture video directly from x11grab at 30 fps it seems to work correctly and the encoder reports getting about 30 fps. Here is what the output looks like: http://pastie.org/8524085. However when I try to capture simultaneously using video4linux2 and overlay the two streams, the encoder reports getting only about 5 fps. Here is some sample output: http://pastie.org/8524055. If I understand correctly, the overlay filter should use the timestamps from the first input stream, so the fps should remain unchanged in the overlayed video. I have noticed that using -r 30 on the x11grab input creates a 30fps output stream, so perhaps this is a problem with the timestamps being returned by x11grab. Any ideas? From jawknee at sonic.net Tue Dec 3 01:58:09 2013 From: jawknee at sonic.net (Johnny Klonaris) Date: Mon, 2 Dec 2013 16:58:09 -0800 Subject: [FFmpeg-user] Issue Overlaying Video from x11grab and video4linux2 In-Reply-To: References: Message-ID: <1B557D2F-2BCD-421A-9A1C-938B9739E572@sonic.net> Newbie alert - I'm new to ffmpeg and very new to the list? On Dec 2, 2013, at 4:26 PM, Ian Milligan wrote: > ... > output looks like: http://pastie.org/8524085. However when I try to capture > simultaneously using video4linux2 and overlay the two streams, the encoder > reports getting only about 5 fps. Here is some sample output: > http://pastie.org/8524055. The links above show text that appears to be cut off with no scroll bar and the output largely appeared on one line, but I eventually figured it out. In each of these, the fps output I see I believe is the rate at which frames are being encoded. In other words - how fast ffmpeg is able do the the encoding as opposed to the ultimate playback rate. Hope that helps. Johnny From ianmllgn at gmail.com Tue Dec 3 02:05:36 2013 From: ianmllgn at gmail.com (Ian Milligan) Date: Mon, 2 Dec 2013 17:05:36 -0800 Subject: [FFmpeg-user] Issue Overlaying Video from x11grab and video4linux2 In-Reply-To: <1B557D2F-2BCD-421A-9A1C-938B9739E572@sonic.net> References: <1B557D2F-2BCD-421A-9A1C-938B9739E572@sonic.net> Message-ID: The video is being encoded in real time so the fps at which it is encoding matching the fps at which it receives video. The resulting video does not playback correctly as well in the overlay example but does in the first example. On Mon, Dec 2, 2013 at 4:58 PM, Johnny Klonaris wrote: > Newbie alert - I'm new to ffmpeg and very new to the list? > > On Dec 2, 2013, at 4:26 PM, Ian Milligan wrote: > > > ... > > output looks like: http://pastie.org/8524085. However when I try to > capture > > simultaneously using video4linux2 and overlay the two streams, the > encoder > > reports getting only about 5 fps. Here is some sample output: > > http://pastie.org/8524055. > > The links above show text that appears to be cut off with no scroll bar and > the output largely appeared on one line, but I eventually figured it out. > > In each of these, the fps output I see I believe is the rate > at which frames are being encoded. In other words - how fast > ffmpeg is able do the the encoding as opposed to the ultimate playback > rate. > > Hope that helps. > > Johnny > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ianmllgn at gmail.com Tue Dec 3 03:13:30 2013 From: ianmllgn at gmail.com (Ian Milligan) Date: Mon, 2 Dec 2013 18:13:30 -0800 Subject: [FFmpeg-user] Issue Overlaying Video from x11grab and video4linux2 In-Reply-To: <1B557D2F-2BCD-421A-9A1C-938B9739E572@sonic.net> References: <1B557D2F-2BCD-421A-9A1C-938B9739E572@sonic.net> Message-ID: I forgot to mention that the output also shows many dropped frames. On Mon, Dec 2, 2013 at 4:58 PM, Johnny Klonaris wrote: > Newbie alert - I'm new to ffmpeg and very new to the list? > > On Dec 2, 2013, at 4:26 PM, Ian Milligan wrote: > > > ... > > output looks like: http://pastie.org/8524085. However when I try to > capture > > simultaneously using video4linux2 and overlay the two streams, the > encoder > > reports getting only about 5 fps. Here is some sample output: > > http://pastie.org/8524055. > > The links above show text that appears to be cut off with no scroll bar and > the output largely appeared on one line, but I eventually figured it out. > > In each of these, the fps output I see I believe is the rate > at which frames are being encoded. In other words - how fast > ffmpeg is able do the the encoding as opposed to the ultimate playback > rate. > > Hope that helps. > > Johnny > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ianmllgn at gmail.com Tue Dec 3 05:49:59 2013 From: ianmllgn at gmail.com (Ian Milligan) Date: Mon, 2 Dec 2013 20:49:59 -0800 Subject: [FFmpeg-user] Issue Overlaying Video from x11grab and video4linux2 In-Reply-To: References: <1B557D2F-2BCD-421A-9A1C-938B9739E572@sonic.net> Message-ID: The issue of dropped frames is more visible if I pass the x11grab stream through showinfo. Here is what this looks like with no overlay using the command ~/git/ffmpeg/ffmpeg \ -f x11grab -video_size 1680x1050 -framerate 30 -i :0.0 \ -vf showinfo -y \ test.mkv http://pastebin.ca/2488878 Notice that the pts values correspond to approximately 30 fps. Now suppose I run the overlay and insert showinfo before the stream is sent to overlay using the command VF=" [0] showinfo [screen]; [1] fifo [webcam]; [screen][webcam] overlay=W-w " ~/git/ffmpeg/ffmpeg \ -f x11grab -video_size 1680x1050 -framerate 30 -i :0.0 \ -f video4linux2 -video_size 320x176 -framerate 30 -ts abs -i /dev/video0 \ -filter_complex "$VF" \ test.mkv http://pastebin.ca/2488911 Notice that in 11.8 seconds I have only 86 frames! So frames are being dropped somehow before they even reach the overlay filter. On Mon, Dec 2, 2013 at 6:13 PM, Ian Milligan wrote: > I forgot to mention that the output also shows many dropped frames. > > > On Mon, Dec 2, 2013 at 4:58 PM, Johnny Klonaris wrote: > >> Newbie alert - I'm new to ffmpeg and very new to the list? >> >> On Dec 2, 2013, at 4:26 PM, Ian Milligan wrote: >> >> > ... >> > output looks like: http://pastie.org/8524085. However when I try to >> capture >> > simultaneously using video4linux2 and overlay the two streams, the >> encoder >> > reports getting only about 5 fps. Here is some sample output: >> > http://pastie.org/8524055. >> >> The links above show text that appears to be cut off with no scroll bar >> and >> the output largely appeared on one line, but I eventually figured it out. >> >> In each of these, the fps output I see I believe is the rate >> at which frames are being encoded. In other words - how fast >> ffmpeg is able do the the encoding as opposed to the ultimate playback >> rate. >> >> Hope that helps. >> >> Johnny >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From jawknee at sonic.net Tue Dec 3 07:05:56 2013 From: jawknee at sonic.net (Johnny Klonaris) Date: Mon, 2 Dec 2013 22:05:56 -0800 Subject: [FFmpeg-user] Issue Overlaying Video from x11grab and video4linux2 In-Reply-To: References: <1B557D2F-2BCD-421A-9A1C-938B9739E572@sonic.net> Message-ID: On Dec 2, 2013, at 6:13 PM, Ian Milligan wrote: > I forgot to mention that the output also shows many dropped frames. My guess would be that maybe you've exceeded your hardware's ability to render in real time? Right now I'm rendering two streams of 4k video (mp4, web) and with 4 of my Mac's 8 cores very busy, I'm rendering at a rate of 0.2 fps. (Yes: 5 seconds per frame - it's just a test.) But that's at or beyond my knowledge of ffmpeg at this point. -Johnny From arty.net2 at gmail.com Tue Dec 3 13:21:52 2013 From: arty.net2 at gmail.com (Arturo Rinaldi) Date: Tue, 03 Dec 2013 13:21:52 +0100 Subject: [FFmpeg-user] building the latest stable release (2.1.1) on windows 8 x64 with cygwin Message-ID: <529DCCE0.9030103@gmail.com> Hi folks, I need your help to figure out the correct steps of building the latest stable release of ffmpeg on windows 8 x64 and CYGWIN. I have written a sh script file with the following configuration : |./configure --enable-static --enable-gpl --enable-version3 --enable-pthreads --enable-avisynth --enable-bzlib \ --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass \ --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc \ --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb \ --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger \ --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc \ --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 \ --enable-libxvid --enable-zlib --disable-shared --disable-doc --enable-nonfree --arch=x86_64 | I installed all the pre-requisites, according to the official documentation, and then the configuring step is smoothly performed. Just after that, I usually run from shell : |make -j5 | to perform parallel build of the source code. After the process is finished, i usually run from shell : |./ffmpeg.exe -version | and i get a null output. By using a windows shell i get a linking libraries error ("cygass-4.dll is not found" and so on), where am i wrong ? Before posting I read a lot of guides on the forum an over the internet by googling around but i can't still figure out which is the real issue. Please help me out. Thank you in advance Regards, Arturo From cehoyos at ag.or.at Tue Dec 3 14:06:06 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 3 Dec 2013 13:06:06 +0000 (UTC) Subject: [FFmpeg-user] building the latest stable release (2.1.1) on windows 8 x64 with cygwin References: <529DCCE0.9030103@gmail.com> Message-ID: Arturo Rinaldi gmail.com> writes: > I need your help to figure out the correct steps > of building the latest stable release of ffmpeg on > windows 8 x64 and CYGWIN. Please understand that there is nothing "stable" about FFmpeg releases (or, more exactly, nothing "unstable" about current git head), releases are simply snapshots for distributors. Is the problem reproducible with "./configure && make ffmpeg"? Does "ffmpeg -f lavfi -i testsrc out.png" produce a file out.png (is only the console output missing)? At least the following options are useless in your configure line (from a quick look): --enable-static --enable-pthreads --enable-bzlib --enable-iconv --enable-zlib --disable-shared --arch=x86_64 Most people agree that the quality of libvo-aac is worse than the native aac encoder. Why do you need --enable-nonfree ? (I may miss something.) Some of the external libraries that you include are very rarely needed. Carl Eugen From nageshblore at gmail.com Tue Dec 3 18:36:36 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Tue, 3 Dec 2013 23:06:36 +0530 Subject: [FFmpeg-user] File sizes after transcoding with ffmpeg. Message-ID: Hi, I am just curious to know, if the following file sizes sound ok after transcoding with ffmpeg. Let me know what other information maybe needed. I have an input video of around 10:11 of video in mp4. Conversion to mpg with ffmpeg is done as follows. ffmpeg -i in.mp4 -vf subtitles=sub.srt -codec:v mpeg2video -codec:a mp3 in.mpg The mpg is then converted to VOB as follows. This is so that dvdauthor can be used to add titles, chapters, etc. ffmpeg -i in.mpg -target ntsc-dvd in.vob After dvdauthor is run on in.vob, I am converting the DVD structure to .iso. So, the file sizes are as follows: in.mp4 - ~20MB in.mpg - ~30MB in.vob - ~109MB dvd.iso - ~219MB Thus, in other words, a 10 minute video is around 200MB in ISO format. I understand, the behaviour of dvdauthor and mkisofs is not in the scope of this forum. But, in your experience, is this 10 fold increase normal ? From avid at finalcuts.net Tue Dec 3 04:37:31 2013 From: avid at finalcuts.net (Charlie Dickey) Date: Mon, 2 Dec 2013 19:37:31 -0800 Subject: [FFmpeg-user] Recording audio to FLAC on Mac OS X Message-ID: <02E69EDB-C0EA-467A-B6F6-7D2FE684431C@finalcuts.net> Hi all, Is there a way to use ffmpeg to record audio and save it as a FLAC file on Mac OS X? I have seen Linux options but none for Mac. I would like to avoid using SoX because I've had some compatibility issues with it. Best, Charlie From jayeshpk1 at yahoo.com Tue Dec 3 04:08:58 2013 From: jayeshpk1 at yahoo.com (Jayesh Parayali) Date: Mon, 2 Dec 2013 19:08:58 -0800 (PST) Subject: [FFmpeg-user] rtsp authentication Message-ID: <1386040138.19865.YahooMailNeo@web160601.mail.bf1.yahoo.com> I am trying to use ffmpeg with an ip camera using the URL rtsp://admin:admin at 192.168.1.168:554/0 However I am getting an error [rtsp @ 0x2b30020] method DESCRIBE failed: 401 Unauthorized How can I pass the user id and password? From cehoyos at ag.or.at Tue Dec 3 19:01:52 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 3 Dec 2013 18:01:52 +0000 (UTC) Subject: [FFmpeg-user] File sizes after transcoding with ffmpeg. References: Message-ID: ?????? ??????????? (Nagesh S gmail.com> writes: > ffmpeg -i in.mp4 -vf subtitles=sub.srt -codec:v mpeg2video > -codec:a mp3 in.mpg > > The mpg is then converted to VOB as follows. This is so > that dvdauthor can be used to add titles, chapters, etc. > > ffmpeg -i in.mpg -target ntsc-dvd in.vob Something is wrong here. To minimize quality loss because of frequent recoding, you should combine both above commands into one. Output file size depends on the bitrate which depends on the quality that you wish for your output DVD. Carl Eugen From cehoyos at ag.or.at Tue Dec 3 19:02:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 3 Dec 2013 18:02:41 +0000 (UTC) Subject: [FFmpeg-user] Recording audio to FLAC on Mac OS X References: <02E69EDB-C0EA-467A-B6F6-7D2FE684431C@finalcuts.net> Message-ID: Charlie Dickey finalcuts.net> writes: > Is there a way to use ffmpeg to record audio and > save it as a FLAC file on Mac OS X? Could you elaborate what you mean with "record"? Carl Eugen From nageshblore at gmail.com Tue Dec 3 19:22:46 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Tue, 3 Dec 2013 23:52:46 +0530 Subject: [FFmpeg-user] File sizes after transcoding with ffmpeg. In-Reply-To: References: Message-ID: Ok. I transcoded mp4 directly to PAL DVD format like so: ffmpeg -i in.mp4 -vf subtitles=sub.srt -target pal-dvd in.vob Now, the file-sizes are: in.mp4 - ~20MB in.vob - ~116MB dvd.iso - ~117MB The iso is now around 6 times the input mp4. From arty.net2 at gmail.com Tue Dec 3 21:54:51 2013 From: arty.net2 at gmail.com (Arturo Rinaldi) Date: Tue, 03 Dec 2013 21:54:51 +0100 Subject: [FFmpeg-user] building the latest stable release (2.1.1) on windows 8 x64 with cygwin In-Reply-To: References: <529DCCE0.9030103@gmail.com> Message-ID: <529E451B.1040701@gmail.com> Nella citazione in data Tue Dec 3 14:06:06 2013, Carl Eugen Hoyos ha scritto: > Arturo Rinaldi gmail.com> writes: > >> I need your help to figure out the correct steps >> of building the latest stable release of ffmpeg on >> windows 8 x64 and CYGWIN. > > Please understand that there is nothing "stable" about > FFmpeg releases (or, more exactly, nothing "unstable" > about current git head), releases are simply snapshots > for distributors. > Is the problem reproducible with "./configure && make ffmpeg"? > Does "ffmpeg -f lavfi -i testsrc out.png" produce a file > out.png (is only the console output missing)? > > At least the following options are useless in your configure > line (from a quick look): > --enable-static > --enable-pthreads > --enable-bzlib > --enable-iconv > --enable-zlib > --disable-shared > --arch=x86_64 > > Most people agree that the quality of libvo-aac is worse > than the native aac encoder. > > Why do you need --enable-nonfree ? > (I may miss something.) > > Some of the external libraries that you include are very > rarely needed. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > The "ffmpeg -f lavfi -i testsrc out.png" result is always a null one. I have just tried to replicate the exact zeranoe build configuration by launching his static x64 build (the ffmpeg.exe) and putting it in my configure section, but i'm still with no results. Any ideas about it ? Regrads, Arturo From cehoyos at ag.or.at Tue Dec 3 22:52:23 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 3 Dec 2013 21:52:23 +0000 (UTC) Subject: [FFmpeg-user] building the latest stable release (2.1.1) on windows 8 x64 with cygwin References: <529DCCE0.9030103@gmail.com> <529E451B.1040701@gmail.com> Message-ID: Arturo Rinaldi gmail.com> writes: > > Does "ffmpeg -f lavfi -i testsrc out.png" produce a file > > out.png (is only the console output missing)? > The "ffmpeg -f lavfi -i testsrc out.png" result is always > a null one. What does that mean? (Afair, your console problem is related to sdl but I would like to rule out another problem.) Carl Eugen From arty.net2 at gmail.com Tue Dec 3 23:34:21 2013 From: arty.net2 at gmail.com (Arturo Rinaldi) Date: Tue, 03 Dec 2013 23:34:21 +0100 Subject: [FFmpeg-user] building the latest stable release (2.1.1) on windows 8 x64 with cygwin In-Reply-To: References: <529DCCE0.9030103@gmail.com> <529E451B.1040701@gmail.com> Message-ID: <529E5C6D.3080507@gmail.com> Il 03/12/13 22:52, Carl Eugen Hoyos ha scritto: > Arturo Rinaldi gmail.com> writes: > >>> Does "ffmpeg -f lavfi -i testsrc out.png" produce a file >>> out.png (is only the console output missing)? >> The "ffmpeg -f lavfi -i testsrc out.png" result is always >> a null one. > What does that mean? > > (Afair, your console problem is related to sdl > but I would like to rule out another problem.) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > I mean that i don't get the test output file as I usuall get on *nix platform as macos and linux. I am attaching the result to this answer. Regards -------------- next part -------------- A non-text attachment was scrubbed... Name: out.png Type: image/png Size: 2687 bytes Desc: not available URL: From elliottbalsley at gmail.com Wed Dec 4 00:49:46 2013 From: elliottbalsley at gmail.com (Elliott Balsley) Date: Tue, 3 Dec 2013 15:49:46 -0800 Subject: [FFmpeg-user] File sizes after transcoding with ffmpeg. In-Reply-To: References: Message-ID: <156458A6-58BB-4099-9EDE-D1A560300914@gmail.com> > Ok. I transcoded mp4 directly to PAL DVD format like so: > > ffmpeg -i in.mp4 -vf subtitles=sub.srt -target pal-dvd in.vob > > Now, the file-sizes are: > in.mp4 - ~20MB > in.vob - ~116MB > dvd.iso - ~117MB > > The iso is now around 6 times the input mp4. That?s normal. DVD?s typically use between 3 and 8 Mbps. MPEG-4 is a much more efficient format than MPEG-2. From admin at network13.net Wed Dec 4 05:25:35 2013 From: admin at network13.net (Michael Davis) Date: Tue, 3 Dec 2013 20:25:35 -0800 Subject: [FFmpeg-user] Add Image to Streaming Audio Message-ID: Hi All, I?m attempting to add a still image to an MP3 audio stream coming from an Icecast server. I am using the following command, which outputs audio only. The image is not looping as I expect. If I can get the image portion added and/or to loop, the next step will be to set the video encoder to h.264 baseline 3.0 at a minimal frame rate. But first things first? ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen -acodec copy -bsf h264_mp4toannexb -c:v copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 -f hls mp3.m3u8 ffmpeg version 2.0-tessus Copyright (c) 2000-2013 the FFmpeg developers built on Jul 11 2013 00:54:32 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.100 / 55. 12.100 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 79.101 / 3. 79.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, image2, from ?still.jpg': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj444p, 449x300 [SAR 72:72 DAR 449:300], 25 fps, 25 tbr, 25 tbn, 25 tbc [mp3 @ 0x103801000] Header missing Input #1, mp3, from 'http://localhost:8002/listen': Duration: N/A, start: 0.000000, bitrate: 128 kb/s Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s Output #0, hls, to 'mp3.m3u8': Metadata: encoder : Lavf55.12.100 Stream #0:0: Video: mjpeg, yuvj444p, 449x300 [SAR 72:72 DAR 449:300], q=2-31, 25 fps, 90k tbn, 25 tbc Stream #0:1: Audio: mp3, 44100 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help [hls @ 0x10200ca00] Non-monotonous DTS in output stream 0:1; previous: 2351, current: 0; changing to 2352. This may result in incorrect timestamps in the output file. frame= 986 fps= 25 q=-1.0 Lsize=N/A time=00:00:47.77 bitrate=N/A video:78667kB audio:747kB subtitle:0 global headers:0kB muxing overhead -100.000027% From donaldd.dreber at yahoo.com Wed Dec 4 05:27:58 2013 From: donaldd.dreber at yahoo.com (Donald D. Dreber) Date: Tue, 3 Dec 2013 20:27:58 -0800 (PST) Subject: [FFmpeg-user] Transcoding MPEG-2 Multicast to MPEG-4 Multicast Message-ID: <1386131278.64728.YahooMailNeo@web163604.mail.gq1.yahoo.com> Hello, in order to transcode an MPEG-2 Multicast Transport Stream with MPEG-1 Layer 2 Audio? to H.264 with AAC audio Multicast TS with a given bitrate, how would the command line look like ? example:? avconv -i udp://@239.100.0.1:1234?multicast=1 ?vcodec libx264 -acodec aac -f mpegts -re "udp://@239.101.101.1:1234?ttl=1&pkt_size=1316" In addition, how do I point to a certain elementary stream, if multiple audio streams are available? (e.g: original language and english, with different PID's ) Thanks in advance for you help Iam really glad when I can start downsizing the multicast. Br, Dirk? From nageshblore at gmail.com Wed Dec 4 06:14:34 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Wed, 4 Dec 2013 10:44:34 +0530 Subject: [FFmpeg-user] File sizes after transcoding with ffmpeg. In-Reply-To: <156458A6-58BB-4099-9EDE-D1A560300914@gmail.com> References: <156458A6-58BB-4099-9EDE-D1A560300914@gmail.com> Message-ID: >>>DVD?s typically use between 3 and 8 Mbps. So, that is the reason for the 'blown up' size. I am new to FFmpeg and transcoding in general. So, thanks for the explanation. >>>MPEG-4 is a much more efficient format than MPEG-2. I am converting MP4 to VOB because I was unable to get dvdauthor to work with mp* formats. From Arne.Lie at sintef.no Wed Dec 4 11:27:47 2013 From: Arne.Lie at sintef.no (Arne Lie) Date: Wed, 4 Dec 2013 10:27:47 +0000 Subject: [FFmpeg-user] mpeg4 encoder using qscale to set open VBR seems broken? Message-ID: Hi! Earlier versions of ffmpeg could manage static Q-scale values to produce pure open loop VBR content, even with the mv4 motion vector estimation enabled. Current version seems to have this option broken, or must be initialized differently? My YUV content is encoded the following way: ffmpeg -s cif -r 29.97 -i video.yuv -vcodec mpeg4 -flags mv4 -flags2 sgop -g 12 -qscale 4 -s 352x288 -r 29.97 -y video_Q4.m4v If I do not use mv4 motion estimation, then, static Q scale is used! But, I want to use mv4! How can I obtain this, or is this a known issue? Best regards Arne Arne Lie SINTEF ICT, Dept. of Communication Systems Post address: PB 4760 Sluppen, NO-7465 Trondheim, NORWAY Visitor address: Strindveien 4, N-7034 Trondheim Dir. phone / mobile: +47 450 20 040 e-mail: arne.lie at sintef.no From george at nsup.org Wed Dec 4 11:54:08 2013 From: george at nsup.org (Nicolas George) Date: Wed, 4 Dec 2013 11:54:08 +0100 Subject: [FFmpeg-user] mpeg4 encoder using qscale to set open VBR seems broken? In-Reply-To: References: Message-ID: <20131204105408.GB17467@phare.normalesup.org> Le quartidi 14 frimaire, an CCXXII, Arne Lie a ?crit?: > ffmpeg -s cif -r 29.97 -i video.yuv -vcodec mpeg4 -flags mv4 -flags2 sgop -g 12 -qscale 4 -s 352x288 -r 29.97 -y video_Q4.m4v This is a wild guess, but does it change something if you write "-flags +mv4" with a plus sign? Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: From hans.j.albertsson at branneriet.se Wed Dec 4 12:05:15 2013 From: hans.j.albertsson at branneriet.se (Hans J. Albertsson) Date: Wed, 04 Dec 2013 12:05:15 +0100 Subject: [FFmpeg-user] Recording audio to FLAC on Mac OS X In-Reply-To: References: <02E69EDB-C0EA-467A-B6F6-7D2FE684431C@finalcuts.net> Message-ID: <529F0C6B.4060902@branneriet.se> Taking the OBVIOUS interpretation as gospel, I'd say Charlie means using audio input to a computer (the microphone input, or some other audio device) and somehow managing to send that as a stream to ffmpeg and have ffmpeg save the data stream as a flac file. Two parts; first send a stream of data from audio input to ffmpeg, and second have ffmpeg save it as flac. I suppose at least the second one could be answered w/o needing to know more. Or else one could possibly dream up a clarification question to assist the writer in getting his thought process in better order, if the original question is partly confusing or unclear. All with a goal of bringing us all forward, towards better knowledge and clearer understanding. Which, I suppose, is the actual reason for the existence of a mailing list such as ffmpeg-user..... Just my 3 bits per 15 minutes watermark.... On 2013-12-03 19:02, Carl Eugen Hoyos wrote: > Charlie Dickey finalcuts.net> writes: > >> Is there a way to use ffmpeg to record audio and >> save it as a FLAC file on Mac OS X? > Could you elaborate what you mean with "record"? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From hans.j.albertsson at branneriet.se Wed Dec 4 12:10:48 2013 From: hans.j.albertsson at branneriet.se (Hans J. Albertsson) Date: Wed, 04 Dec 2013 12:10:48 +0100 Subject: [FFmpeg-user] Recording audio to FLAC on Mac OS X In-Reply-To: <529F0C6B.4060902@branneriet.se> References: <02E69EDB-C0EA-467A-B6F6-7D2FE684431C@finalcuts.net> <529F0C6B.4060902@branneriet.se> Message-ID: <529F0DB8.4090309@branneriet.se> ffmpeg -codecs | grep -i flac returns DEA..S flac FLAC (Free Lossless Audio Codec) so there is a flac encoder, and thus ffmpeg should be able to produce a flac "recording" if the signal can be gotten to ffmpeg in the first place. ffmpeg -i ....... -acodec flac out.flac ??? Getting the audio to fdfmpeg, i e what to give as argument to "-i", I suppose, is better answered by Mr. Hoyos. On 2013-12-04 12:05, Hans J. Albertsson wrote: > Taking the OBVIOUS interpretation as gospel, I'd say Charlie means > using audio input to a computer (the microphone input, or some other > audio device) and somehow managing to send that as a stream to ffmpeg > and have ffmpeg save the data stream as a flac file. > > Two parts; first send a stream of data from audio input to ffmpeg, and > second have ffmpeg save it as flac. > > I suppose at least the second one could be answered w/o needing to > know more. Or else one could possibly dream up a clarification > question to assist the writer in getting his thought process in better > order, if the original question is partly confusing or unclear. > All with a goal of bringing us all forward, towards better knowledge > and clearer understanding. > > Which, I suppose, is the actual reason for the existence of a mailing > list such as ffmpeg-user..... > > > Just my 3 bits per 15 minutes watermark.... > > > On 2013-12-03 19:02, Carl Eugen Hoyos wrote: >> Charlie Dickey finalcuts.net> writes: >> >>> Is there a way to use ffmpeg to record audio and >>> save it as a FLAC file on Mac OS X? >> Could you elaborate what you mean with "record"? >> >> Carl Eugen >> >> _______________________________________________ >> 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 belcampo at zonnet.nl Wed Dec 4 12:18:54 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Wed, 4 Dec 2013 12:18:54 +0100 Subject: [FFmpeg-user] Recording audio to FLAC on Mac OS X In-Reply-To: <529F0DB8.4090309@branneriet.se> References: <02E69EDB-C0EA-467A-B6F6-7D2FE684431C@finalcuts.net> <529F0C6B.4060902@branneriet.se> <529F0DB8.4090309@branneriet.se> Message-ID: On 04 Dec 2013, at 12:10, Hans J. Albertsson wrote: > ffmpeg -codecs | grep -i flac > returns > DEA..S flac FLAC (Free Lossless Audio Codec) > > so there is a flac encoder, and thus ffmpeg should be able to produce a flac "recording" if the signal can be gotten to ffmpeg in the first place. > > ffmpeg -i ....... -acodec flac out.flac > > ??? > > Getting the audio to fdfmpeg, i e what to give as argument to "-i", I suppose, is better answered by Mr. Hoyos. What is the source of the sound, microphone audio-in, then you need to know how these devices are called in OSX > > > On 2013-12-04 12:05, Hans J. Albertsson wrote: >> Taking the OBVIOUS interpretation as gospel, I'd say Charlie means using audio input to a computer (the microphone input, or some other audio device) and somehow managing to send that as a stream to ffmpeg and have ffmpeg save the data stream as a flac file. >> >> Two parts; first send a stream of data from audio input to ffmpeg, and second have ffmpeg save it as flac. >> >> I suppose at least the second one could be answered w/o needing to know more. Or else one could possibly dream up a clarification question to assist the writer in getting his thought process in better order, if the original question is partly confusing or unclear. >> All with a goal of bringing us all forward, towards better knowledge and clearer understanding. >> >> Which, I suppose, is the actual reason for the existence of a mailing list such as ffmpeg-user..... >> >> >> Just my 3 bits per 15 minutes watermark.... >> >> >> On 2013-12-03 19:02, Carl Eugen Hoyos wrote: >>> Charlie Dickey finalcuts.net> writes: >>> >>>> Is there a way to use ffmpeg to record audio and >>>> save it as a FLAC file on Mac OS X? >>> Could you elaborate what you mean with "record"? >>> >>> Carl Eugen >>> >>> _______________________________________________ >>> 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 cehoyos at ag.or.at Wed Dec 4 12:41:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 4 Dec 2013 11:41:30 +0000 (UTC) Subject: [FFmpeg-user] Transcoding MPEG-2 Multicast to MPEG-4 Multicast References: <1386131278.64728.YahooMailNeo@web163604.mail.gq1.yahoo.com> Message-ID: Donald D. Dreber yahoo.com> writes: > avconv -i udp:// 239.100.0.1:1234?multicast=1 ... avconv is known to have several hundred user-reported bugs not present in FFmpeg, please understand that we can only support current versions from http://ffmpeg.org/download.html here. Carl Eugen From Arne.Lie at sintef.no Wed Dec 4 12:45:15 2013 From: Arne.Lie at sintef.no (Arne Lie) Date: Wed, 4 Dec 2013 11:45:15 +0000 Subject: [FFmpeg-user] mpeg4 encoder using qscale to set open VBR seems broken? In-Reply-To: <20131204105408.GB17467@phare.normalesup.org> References: <20131204105408.GB17467@phare.normalesup.org> Message-ID: Nicolas George wrote: > Le quartidi 14 frimaire, an CCXXII, Arne Lie a ?crit?: > > ffmpeg -s cif -r 29.97 -i video.yuv -vcodec mpeg4 -flags mv4 -flags2 sgop -g > 12 -qscale 4 -s 352x288 -r 29.97 -y video_Q4.m4v > > This is a wild guess, but does it change something if you write "-flags > +mv4" with a plus sign? > Nicolas, Thanks, that actually helped: what does the + sign do in general to parameters? Best regards Arne From cehoyos at ag.or.at Wed Dec 4 12:45:04 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 4 Dec 2013 11:45:04 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?mpeg4_encoder_using_qscale_to_set_open_VB?= =?utf-8?q?R_seems=09broken=3F?= References: Message-ID: Arne Lie sintef.no> writes: > Earlier versions of ffmpeg could manage static Q-scale > values to produce pure open loop VBR content, even > with the mv4 motion vector estimation enabled. Current > version seems to have this option broken Please either find the change introducing this regression or (if you want me to find it which I will do) please explain how I can reproduce the regression, ie how do I know that the output is broken? Or does the command simply fail? (Complete, uncut console output missing.) Carl Eugen From george at nsup.org Wed Dec 4 13:24:54 2013 From: george at nsup.org (Nicolas George) Date: Wed, 4 Dec 2013 13:24:54 +0100 Subject: [FFmpeg-user] mpeg4 encoder using qscale to set open VBR seems broken? In-Reply-To: References: <20131204105408.GB17467@phare.normalesup.org> Message-ID: <20131204122454.GA15771@phare.normalesup.org> Le quartidi 14 frimaire, an CCXXII, Arne Lie a ?crit?: > Thanks, that actually helped: what does the + sign do in general to parameters? "-flags mv4" sets the flags to exactly mv4; "-flags +mv4" adds the mv4 flag to the flags already present. Constant quantizer encoding is enabled by the qscale flag, which is automatically set by the -qscale option. Without the + in the "-flags" option, you are clearing that flag afterwards. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: From Arne.Lie at sintef.no Wed Dec 4 13:35:49 2013 From: Arne.Lie at sintef.no (Arne Lie) Date: Wed, 4 Dec 2013 12:35:49 +0000 Subject: [FFmpeg-user] mpeg4 encoder using qscale to set open VBR seems broken? In-Reply-To: <20131204122454.GA15771@phare.normalesup.org> References: <20131204105408.GB17467@phare.normalesup.org> <20131204122454.GA15771@phare.normalesup.org> Message-ID: Nicolas wrote: > "-flags mv4" sets the flags to exactly mv4; "-flags +mv4" adds the mv4 flag to > the flags already present. > > Constant quantizer encoding is enabled by the qscale flag, which is > automatically set by the -qscale option. Without the + in the "-flags" > option, you are clearing that flag afterwards. > This explains everything: I was not aware of this kind of + sign usage. Perhaps this should have been documented in the help output? Best regards Arne Lie From hans.j.albertsson at branneriet.se Wed Dec 4 15:55:47 2013 From: hans.j.albertsson at branneriet.se (Hans J. Albertsson) Date: Wed, 04 Dec 2013 15:55:47 +0100 Subject: [FFmpeg-user] Recording audio to FLAC on Mac OS X In-Reply-To: References: <02E69EDB-C0EA-467A-B6F6-7D2FE684431C@finalcuts.net> <529F0C6B.4060902@branneriet.se> <529F0DB8.4090309@branneriet.se> Message-ID: <529F4273.6000005@branneriet.se> On 2013-12-04 12:18, Henk D. Schoneveld wrote: > On 04 Dec 2013, at 12:10, Hans J. Albertsson wrote: > >> ffmpeg -codecs | grep -i flac >> returns >> DEA..S flac FLAC (Free Lossless Audio Codec) >> >> so there is a flac encoder, and thus ffmpeg should be able to produce a flac "recording" if the signal can be gotten to ffmpeg in the first place. >> >> ffmpeg -i ....... -acodec flac out.flac >> >> ??? >> >> Getting the audio to fdfmpeg, i e what to give as argument to "-i", I suppose, is better answered by Mr. Hoyos. > What is the source of the sound, microphone audio-in, then you need to know how these devices are called in OSX Of course, but OSX is a sort-of unix, so some sort of indication could probably be provided if someone feels absolutely certain that there actually are audio-in devices that can be specified as input for ffmpeg. I have a nasty feeling there might be more to it than just specifying a device name, one should probably add something to tell if it's alsa or jack (under linuxy environs) or what. Or whatever the audio in channel protocols are in Mac OSX. >> >> On 2013-12-04 12:05, Hans J. Albertsson wrote: >>> Taking the OBVIOUS interpretation as gospel, I'd say Charlie means using audio input to a computer (the microphone input, or some other audio device) and somehow managing to send that as a stream to ffmpeg and have ffmpeg save the data stream as a flac file. >>> >>> Two parts; first send a stream of data from audio input to ffmpeg, and second have ffmpeg save it as flac. >>> >>> I suppose at least the second one could be answered w/o needing to know more. Or else one could possibly dream up a clarification question to assist the writer in getting his thought process in better order, if the original question is partly confusing or unclear. >>> All with a goal of bringing us all forward, towards better knowledge and clearer understanding. >>> >>> Which, I suppose, is the actual reason for the existence of a mailing list such as ffmpeg-user..... >>> >>> >>> Just my 3 bits per 15 minutes watermark.... >>> >>> >>> On 2013-12-03 19:02, Carl Eugen Hoyos wrote: >>>> Charlie Dickey finalcuts.net> writes: >>>> >>>>> Is there a way to use ffmpeg to record audio and >>>>> save it as a FLAC file on Mac OS X? >>>> Could you elaborate what you mean with "record"? >>>> >>>> Carl Eugen >>>> >>>> _______________________________________________ >>>> 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 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From Prem.Singh at timesinternet.in Wed Dec 4 13:02:52 2013 From: Prem.Singh at timesinternet.in (Prem Kumar Singh) Date: Wed, 4 Dec 2013 17:32:52 +0530 Subject: [FFmpeg-user] Getting Error "File for preset 'medium_firstpass' not found " Message-ID: <84A4B6DDAD5A624C83CB7D8A8D8AEA6EFD66E74FA6@MUM01EVS01.INDIATIMES.CO.IN> Hi Team, We are trying use ffmpeg as larg scale but we are getting some issues.. Can you please check & suggest.. Quereis :-- ffmpeg -loglevel fatal -y -i 6660_256.mp4 -s 256x144 -r 12 -b 68k -bt 64K -maxrate 72k -bufsize 68k -vb 52K -vcodec libx264 -f mp4 -pass 1 -vpre medium_firstpass -an test1.mp4 && ffmpeg -loglevel fatal -y -i 6660_256.mp4 -s 256x144 -aspect 16:9 -r 12 -b 68k -bt 64K -maxrate 72k -bufsize 68k -vb 52K -vcodec libx264 -pass 2 -vpre slow -acodec libfaac -ac 1 -ar 8000 -ab 16k -f mp4 test1.mp4; Above command is running at different server but when I try to new server then getting erros.. Can you check your end and suggest what is missing from Our end. ---- File for preset 'medium_firstpass' not found Thanks, Prem ________________________________ LIKE the Miss Earth FB Page & Vote For Sobhita! Help India win at Miss Earth 2013 Miss Eco-Beauty - https://www.facebook.com/MissEarthPageant/app_195646697137509 We have changed our mail domain from indiatimes.co.in to timesinternet.in DISCLAIMER AND PRIVILEGE NOTICE: This e-mail message contains confidential, copyright, proprietary and legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient must note and understand that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of BCCL subsidiaries and associated companies, Collectively Times Group. From lou at lrcd.com Wed Dec 4 19:43:15 2013 From: lou at lrcd.com (Lou) Date: Wed, 4 Dec 2013 09:43:15 -0900 Subject: [FFmpeg-user] Getting Error "File for preset 'medium_firstpass' not found " In-Reply-To: <84A4B6DDAD5A624C83CB7D8A8D8AEA6EFD66E74FA6@MUM01EVS01.INDIATIMES.CO.IN> References: <84A4B6DDAD5A624C83CB7D8A8D8AEA6EFD66E74FA6@MUM01EVS01.INDIATIMES.CO.IN> Message-ID: <20131204094315.68e89ba1@lrcd.com> On Wed, 4 Dec 2013 17:32:52 +0530 Prem Kumar Singh wrote: > Hi Team, > > We are trying use ffmpeg as larg scale but we are getting some issues.. > > Can you please check & suggest.. > > Quereis :-- > > ffmpeg -loglevel fatal -y -i 6660_256.mp4 -s 256x144 -r 12 -b 68k -bt 64K -maxrate 72k -bufsize 68k -vb 52K -vcodec libx264 -f mp4 -pass 1 -vpre medium_firstpass -an test1.mp4 && ffmpeg -loglevel fatal -y -i 6660_256.mp4 -s 256x144 -aspect 16:9 -r 12 -b 68k -bt 64K -maxrate 72k -bufsize 68k -vb 52K -vcodec libx264 -pass 2 -vpre slow -acodec libfaac -ac 1 -ar 8000 -ab 16k -f mp4 test1.mp4; Please always include the complete ffmpeg console output for each command. I have several suggestions, but I do not like to make guesses. The console output is very useful. > DISCLAIMER AND PRIVILEGE NOTICE "Boilerplate" notices do not make sense ? especially on a public mailing list (although I know some users have no control over these). From admin at network13.net Thu Dec 5 01:03:18 2013 From: admin at network13.net (Michael Davis) Date: Wed, 4 Dec 2013 16:03:18 -0800 Subject: [FFmpeg-user] Add Image to Streaming Audio In-Reply-To: References: Message-ID: <111E9CF8-889A-46BD-BF37-EC7695133ED0@network13.net> As I?m a new citizen here on the list, I want to make sure I?ve provided a clear question and enough data that those who might be able to help can figure out what I?m asking for. Mike On Dec 3, 2013, at 8:25 PM, Michael Davis wrote: > Hi All, > I?m attempting to add a still image to an MP3 audio stream coming from an Icecast server. I am using the following command, which outputs audio only. The image is not looping as I expect. If I can get the image portion added and/or to loop, the next step will be to set the video encoder to h.264 baseline 3.0 at a minimal frame rate. But first things first? > > ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen -acodec copy -bsf h264_mp4toannexb -c:v copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 -f hls mp3.m3u8 > > > ffmpeg version 2.0-tessus Copyright (c) 2000-2013 the FFmpeg developers > built on Jul 11 2013 00:54:32 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) > configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect > libavutil 52. 38.100 / 52. 38.100 > libavcodec 55. 18.102 / 55. 18.102 > libavformat 55. 12.100 / 55. 12.100 > libavdevice 55. 3.100 / 55. 3.100 > libavfilter 3. 79.101 / 3. 79.101 > libswscale 2. 3.100 / 2. 3.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, image2, from ?still.jpg': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #0:0: Video: mjpeg, yuvj444p, 449x300 [SAR 72:72 DAR 449:300], 25 fps, 25 tbr, 25 tbn, 25 tbc > [mp3 @ 0x103801000] Header missing > Input #1, mp3, from 'http://localhost:8002/listen': > Duration: N/A, start: 0.000000, bitrate: 128 kb/s > Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s > Output #0, hls, to 'mp3.m3u8': > Metadata: > encoder : Lavf55.12.100 > Stream #0:0: Video: mjpeg, yuvj444p, 449x300 [SAR 72:72 DAR 449:300], q=2-31, 25 fps, 90k tbn, 25 tbc > Stream #0:1: Audio: mp3, 44100 Hz, stereo, 128 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #1:0 -> #0:1 (copy) > Press [q] to stop, [?] for help > [hls @ 0x10200ca00] Non-monotonous DTS in output stream 0:1; previous: 2351, current: 0; changing to 2352. This may result in incorrect timestamps in the output file. > frame= 986 fps= 25 q=-1.0 Lsize=N/A time=00:00:47.77 bitrate=N/A > video:78667kB audio:747kB subtitle:0 global headers:0kB muxing overhead -100.000027% > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lou at lrcd.com Thu Dec 5 02:43:32 2013 From: lou at lrcd.com (Lou) Date: Wed, 4 Dec 2013 16:43:32 -0900 Subject: [FFmpeg-user] Add Image to Streaming Audio In-Reply-To: References: Message-ID: <20131204164332.072a750e@lrcd.com> On Tue, 3 Dec 2013 20:25:35 -0800 Michael Davis wrote: > I am using the following command, which outputs audio only. With what player(s)? > The image is not looping as I expect. If I can get the image portion > added and/or to loop, the next step will be to set the video encoder > to h.264 baseline 3.0 at a minimal frame rate. But first things > first? Why not just try what you are wanting? ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen \ -vcodec libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p \ -acodec copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 -f hls \ mp3.m3u8 I may be missing something, but that example may be a good starting point. > ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen -acodec copy \ > -bsf h264_mp4toannexb -c:v copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 \ > -f hls mp3.m3u8 You're trying to stream copy both inputs. I assume MJPEG video is not an acceptable format for HLS. From thetantan at gmail.com Thu Dec 5 08:09:00 2013 From: thetantan at gmail.com (=?UTF-8?B?VGFuLCBCaW55aW5nIOiwreaWjOeRmw==?=) Date: Thu, 5 Dec 2013 15:09:00 +0800 Subject: [FFmpeg-user] how to make and install tools under the /tools folder ffhash for example? Message-ID: Hi, Could someone please tell me how to make and install tools under the /tools folder, ffhash for example? I couldn't find them in "configure". It looks to me they are defined in certain makefiles but I couldn't make them work. Thanks in advance. -- Have a good one! Binying From dashing.meng at gmail.com Thu Dec 5 09:29:59 2013 From: dashing.meng at gmail.com (littlebat) Date: Thu, 5 Dec 2013 16:29:59 +0800 Subject: [FFmpeg-user] how to make and install tools under the /tools folder ffhash for example? In-Reply-To: References: Message-ID: <20131205162959.ef7723d309d49848fd54e31c@gmail.com> On Thu, 5 Dec 2013 15:09:00 +0800 Tan, Binying ??? wrote: > Hi, > > Could someone please tell me how to make and install tools under > the /tools folder, ffhash for example? I couldn't find them in > "configure". It looks to me they are defined in certain makefiles > but I couldn't make them work. Try "make alltools" after "configure", you will see something in "Makefile" after "./configure". From cehoyos at ag.or.at Thu Dec 5 11:38:36 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 5 Dec 2013 10:38:36 +0000 (UTC) Subject: [FFmpeg-user] Add Image to Streaming Audio References: <20131204164332.072a750e@lrcd.com> Message-ID: Lou lrcd.com> writes: > > ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen > > -acodec copy -bsf h264_mp4toannexb -c:v copy -hls_time 10 > > -hls_wrap 10 -hls_list_size 6 -f hls mp3.m3u8 > > You're trying to stream copy both inputs. I assume MJPEG > video is not an acceptable format for HLS. Or more exactly: The mpegts muxer which the hls muxer calls does not support mjpeg. >From FFmpeg perspective, you are responsible for what you try to mux into a container, so while for some combination an error (or warning) will be printed, others will be accepted silently (like random in mpeg-ts) although they cannot work. Note that -bsf h264_mp4toannexb makes no sense in above command line. Carl Eugen From hans.j.albertsson at branneriet.se Thu Dec 5 17:25:12 2013 From: hans.j.albertsson at branneriet.se (Hans J. Albertsson) Date: Thu, 05 Dec 2013 17:25:12 +0100 Subject: [FFmpeg-user] Add Image to Streaming Audio In-Reply-To: References: <20131204164332.072a750e@lrcd.com> Message-ID: <52A0A8E8.7020708@branneriet.se> BTW, is there somewhere a list of what formats for video, audio, images that the various container formats can and cannot support, respectively? On 2013-12-05 11:38, Carl Eugen Hoyos wrote: > Lou lrcd.com> writes: > >>> ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen >>> -acodec copy -bsf h264_mp4toannexb -c:v copy -hls_time 10 >>> -hls_wrap 10 -hls_list_size 6 -f hls mp3.m3u8 >> You're trying to stream copy both inputs. I assume MJPEG >> video is not an acceptable format for HLS. > Or more exactly: The mpegts muxer which the hls muxer calls > does not support mjpeg. > >From FFmpeg perspective, you are responsible for what you try > to mux into a container, so while for some combination an > error (or warning) will be printed, others will be accepted > silently (like random in mpeg-ts) although they cannot work. > > Note that -bsf h264_mp4toannexb makes no sense in above > command line. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From tps at netmaster.dk Thu Dec 5 19:17:45 2013 From: tps at netmaster.dk (Thomas Seilund) Date: Thu, 05 Dec 2013 19:17:45 +0100 Subject: [FFmpeg-user] Best sound codec for editing Message-ID: If I disable sound everything is better! I use ffplay to navigate a video to find a video section to cut out. When I use ffplay hotkeys ie. Pageup to go forward 10 minutes the playback turns into slow motion for a 10 - 20 seconds before the correct playback speed is reestablished. If I add the no audio, -an, option when calling ffplay I do not have slow motion. When I cut out a video section with the -ss option the resulting video has the same problem where the first 10 ? 20 seconds are slow motion. Like wise, if I disable audio I do not have the slow motion. How do I avoid the slow motion and still have sound? Below is the command to cut out a video section ffmpeg -y -ss 1153 -i p20131119190433.ts -c:v copy -c:a copy p20131119190433.2.ts ffmpeg version N-58729-g704cc5e Copyright (c) 2000-2013 the FFmpeg developers built on Dec 3 2013 21:56:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libmp3lame --enable-libvpx --enable- libx264 --enable-version3 --enable-libvorbis --enable-libiec61883 --enable- libfreetype libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 45.100 / 55. 45.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'p20131119190433.ts': Duration: 00:40:22.90, start: 1.376978, bitrate: 3646 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101]: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s Output #0, mpegts, to 'p20131119190433.2.ts': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 25 tbc Stream #0:1: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=31570 fps=18597 q=-1.0 Lsize= 549961kB time=00:21:09.96 bitrate=3547.6kbits/s video:486436kB audio:19846kB subtitle:0 global headers:0kB muxing overhead 8.627473% tps at T420:~/pokalsemifinale$ Thanks Thomas S -- Venlig hilsen Thomas Seilund L?kketoften 46 2625 Vallensb?k From tps at netmaster.dk Thu Dec 5 19:30:26 2013 From: tps at netmaster.dk (Thomas Seilund) Date: Thu, 05 Dec 2013 19:30:26 +0100 Subject: [FFmpeg-user] Best sound codec for editing In-Reply-To: References: Message-ID: Thomas Seilund writes: > If I disable sound everything is better! > > I use ffplay to navigate a video to find a video section to cut out. When I > use ffplay hotkeys ie. Pageup to go forward 10 minutes the playback turns > into slow motion for a 10 - 20 seconds before the correct playback speed is > reestablished. > > If I add the no audio, -an, option when calling ffplay I do not have slow > motion. > > When I cut out a video section with the -ss option the resulting video has > the same problem where the first 10 ? 20 seconds are slow motion. Like > wise, if I disable audio I do not have the slow motion. > > How do I avoid the slow motion and still have sound? > > Below is the command to cut out a video section > > ffmpeg -y -ss 1153 -i p20131119190433.ts -c:v copy -c:a copy > p20131119190433.2.ts > ffmpeg version N-58729-g704cc5e Copyright (c) 2000-2013 the FFmpeg > developers > built on Dec 3 2013 21:56:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libmp3lame --enable-libvpx --enable- > libx264 --enable-version3 --enable-libvorbis --enable-libiec61883 --enable- > libfreetype > libavutil 52. 56.100 / 52. 56.100 > libavcodec 55. 45.100 / 55. 45.100 > libavformat 55. 22.100 / 55. 22.100 > libavdevice 55. 5.102 / 55. 5.102 > libavfilter 3. 91.100 / 3. 91.100 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.104 / 0. 17.104 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, mpegts, from 'p20131119190433.ts': > Duration: 00:40:22.90, start: 1.376978, bitrate: 3646 kb/s > Program 1 > Metadata: > service_name : Service01 > service_provider: FFmpeg > Stream #0:0[0x100]: Video: h264 (Constrained Baseline) ([27][0][0][0] / > 0x001B), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 > tbc > Stream #0:1[0x101]: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, > stereo, s16p, 128 kb/s > Output #0, mpegts, to 'p20131119190433.2.ts': > Metadata: > encoder : Lavf55.22.100 > Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 720x576 > [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 25 tbc > Stream #0:1: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, 128 > kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame=31570 fps=18597 q=-1.0 Lsize= 549961kB time=00:21:09.96 > bitrate=3547.6kbits/s > video:486436kB audio:19846kB subtitle:0 global headers:0kB muxing overhead > 8.627473% > tps at T420:~/pokalsemifinale$ > > Thanks > > Thomas S > > -- > Venlig hilsen > Thomas Seilund > L?kketoften 46 > 2625 Vallensb?k > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Here is info about the video when I include sound and I have the slow motion issue: ffmpeg -i p20131119190433.2.ts ffmpeg version N-58729-g704cc5e Copyright (c) 2000-2013 the FFmpeg developers built on Dec 3 2013 21:56:15 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libmp3lame --enable-libvpx --enable- libx264 --enable-version3 --enable-libvorbis --enable-libiec61883 --enable- libfreetype libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 45.100 / 55. 45.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [NULL @ 0x1869240] start time is not set in estimate_timings_from_pts [mpegts @ 0x1865100] Could not find codec parameters for stream 0 (Video: h264 ([27][0][0][0] / 0x001B)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'p20131119190433.2.ts': Duration: 00:21:10.08, start: 1.400000, bitrate: 3547 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 ([27][0][0][0] / 0x001B), 90k tbr, 90k tbn, 180k tbc Stream #0:1[0x101]: Audio: mp3 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s At least one output file must be specified tps at T420:~/pokalsemifinale$ Thanks Thomas S -- Venlig hilsen Thomas Seilund L?kketoften 46 2625 Vallensb?k From aantonov at neterra.net Thu Dec 5 12:15:14 2013 From: aantonov at neterra.net (Anton Antonov) Date: Thu, 05 Dec 2013 13:15:14 +0200 Subject: [FFmpeg-user] ffmpeg burst traffic problem Message-ID: <52A06042.3060208@neterra.net> Hi ffmpeg team, I am new in ffmpeg and I have a problem that I can't solve. I use ffmpeg for live encoding of SD mpeg2 channels to SD h264. To do that I use the following ffmpeg version and command line: ffmpeg version N-40926-gfa6fa21 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 31 2013 14:36:27 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Hyper fast Audio and Video encoder /root/bin/ffmpeg -i udp://239.10.1.169:30000 -vcodec libx264 -profile high -r 25 -g 150 -vb 1000k -minrate 1000k -maxrate 1000k -bufsize 300k -strict experimental -partitions all -acodec aac -ab 96000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f mpegts -threads 16 -async 48000 -vsync 1 -deinterlace udp://229.9.23.1:39271?pkt_size=1316 The encoded output looks fine. There is a problem with micro bursts in output traffic. As an attachment I sent two pictures of captured traffic from ffmpeg and elecard encoder. On the pictures there is analyzed traffic by wireshark. On elecard picture you can see that traffic is leveled and on equal intervals. On ffmpef picture traffic is on bursts. On command line above I tried to deal with parameter "bufsize" but the result was nearly the same. Could you help me to make ffmpeg output traffic to run without burst? -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg.GIF Type: image/gif Size: 24120 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: elecard.GIF Type: image/gif Size: 27123 bytes Desc: not available URL: From vswapnasr at gmail.com Thu Dec 5 07:21:29 2013 From: vswapnasr at gmail.com (vswapna) Date: Wed, 4 Dec 2013 22:21:29 -0800 (PST) Subject: [FFmpeg-user] Error:While opening encoder for output stream Message-ID: <1386224488579-4662575.post@n4.nabble.com> Hi , I am trying to encode raw video to h.264 fromat using ffmpeg. I gave the following command ./ffmpeg -f rawvideo -r 50 -s 416x240 -vcodec rawvideo -i Basketballpass416x240_50yuv -c:v libx264 -intra -qp 9 out.h264 Its dispalying like " Error while opening the codec" f.png can give any suggestions regarding this.I enclosed f.png for reference check it once -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Error-While-opening-encoder-for-output-stream-tp4662575.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From admin at network13.net Thu Dec 5 21:44:51 2013 From: admin at network13.net (Michael Davis) Date: Thu, 5 Dec 2013 12:44:51 -0800 Subject: [FFmpeg-user] Add Image to Streaming Audio In-Reply-To: <20131204164332.072a750e@lrcd.com> References: <20131204164332.072a750e@lrcd.com> Message-ID: <269CE933-B304-4B0A-A0A9-30743600F31D@network13.net> Thanks Lou! Your example works great as a baseline. Now I need to A) reduce bitrate on the video stream to as low as possible. I?m not sure what the lowest frame rate can be with h.264 in a TS container, but in playing with the -r option, I am only able to get output as low as 8 fps. Anything lower and I get zero byte TS chunks. And B) the still image is actually being written over on disk every few minutes. Is there a way to force ffmpeg to check the file mod time or read from disk at a given interval? As it is, it seams to be reading the file once and caching. Thanks! Mike On Dec 4, 2013, at 5:43 PM, Lou wrote: > On Tue, 3 Dec 2013 20:25:35 -0800 > Michael Davis wrote: > >> I am using the following command, which outputs audio only. > > With what player(s)? > >> The image is not looping as I expect. If I can get the image portion >> added and/or to loop, the next step will be to set the video encoder >> to h.264 baseline 3.0 at a minimal frame rate. But first things >> first? > > Why not just try what you are wanting? > > ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen \ > -vcodec libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p \ > -acodec copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 -f hls \ > mp3.m3u8 > > I may be missing something, but that example may be a good starting > point. > >> ffmpeg -re -loop 1 -i still.jpg -i http://localhost:8002/listen -acodec copy \ >> -bsf h264_mp4toannexb -c:v copy -hls_time 10 -hls_wrap 10 -hls_list_size 6 \ >> -f hls mp3.m3u8 > > You're trying to stream copy both inputs. I assume MJPEG video is not an > acceptable format for HLS. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From andrey.krieger.utkin at gmail.com Thu Dec 5 21:53:14 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Thu, 5 Dec 2013 22:53:14 +0200 Subject: [FFmpeg-user] ffmpeg burst traffic problem In-Reply-To: <52A06042.3060208@neterra.net> References: <52A06042.3060208@neterra.net> Message-ID: ffmpeg lacks UDP output speed smoothing functionality. You can see in libavformat/udp.c in circular_buffer_task() that data is output as soon as it appears. To eliminate bursty output it is needed either to patch ffmpeg or to substitute ffmpeg output facility with another application's one, e.g. you could do ffmpeg (...options...) -f mpegts - | pv -L $BITRATE | socat (...options...) -- Andrey Utkin From lou at lrcd.com Thu Dec 5 22:27:16 2013 From: lou at lrcd.com (Lou) Date: Thu, 5 Dec 2013 12:27:16 -0900 Subject: [FFmpeg-user] Add Image to Streaming Audio In-Reply-To: <52A0A8E8.7020708@branneriet.se> References: <20131204164332.072a750e@lrcd.com> <52A0A8E8.7020708@branneriet.se> Message-ID: <20131205122716.74362f93@lrcd.com> On Thu, 05 Dec 2013 17:25:12 +0100 "Hans J. Albertsson" wrote: > BTW, is there somewhere a list of what formats for video, audio, images > that the various container formats can and cannot support, respectively? You can get some info with: ffmpeg -h decoder=foo ffmpeg -h encoder=foo ffmpeg -h muxer=foo Such as: $ ffmpeg -h muxer=ogg [...] Muxer ogg [Ogg]: Common extensions: ogg,ogv. Mime type: application/ogg. Default video codec: theora. Default audio codec: flac. $ ffmpeg -h encoder=flac [...] Encoder flac [FLAC (Free Lossless Audio Codec)]: Threading capabilities: no Supported sample formats: s16 s32 $ ffmpeg -h decoder=flac [...] Decoder flac [FLAC (Free Lossless Audio Codec)]: Threading capabilities: frame Supported sample formats: s16 s16p s32 s32p * Please do not top post on this mailing list. * Please start a new thread when asking unrelated questions. From amit at sdsc.edu Thu Dec 5 22:42:45 2013 From: amit at sdsc.edu (Chourasia, Amit) Date: Thu, 5 Dec 2013 21:42:45 +0000 Subject: [FFmpeg-user] systematically encoding using x264 In-Reply-To: <20131129121454.241f0f05@archthink> References: <20131129121454.241f0f05@archthink> Message-ID: Frank, Thanks for this info. I am familiar with most of the options you provided. All image sequences are at same resolution and format. So I dont have to worry about rescaling. I am highly interested in identifying common sets of presets to create videos that will play on most devices. Is there any guidance on common resolutions and bitrates for encoding videos playable on most devices? As I understand the resolution and bitrates primarily govern requirements for various hardware profiles for *264 encoder. Are there any processes with which one can achieve higher quality output complying with restrictions imposed by hardware profiles ? lowering frame rate and two pass encoding come to my mind. Thank you -Amit On Nov 29, 2013, at 5:14 AM, Frank Tetzel wrote: >> I am looking for specific guidelines to encode many sequences of >> image to a video using x264 encoder. The image resolution and frame >> rate could be arbitrary (some sequences are 256x256 others could be >> 4kx4k or more), usually with images 1:1 aspect ratio. I would like to >> create multiple resolution/bitrate videos from these sequences which >> could be served on multiple devices as well as downloaded. The >> encoding time is not a very big concern but quality is a huge >> concern, as these sequences have scientific content. >> >> I am seeking some pointers on this and if there is someone out there >> who may be interested in collaborating that will be great. I'll be >> willing to open a set of sequences which could be used for tests, >> benchmarks, quality comparisons etc. > > Hi, > > so you want to create slideshows with different quality settings > including different resolutions? > > This page describes how to create slideshows: > https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images > > more information about the image format: > http://ffmpeg.org/ffmpeg-formats.html#image2-2 > important: > "The size, the pixel format, and the format of each image must be the > same for all the files in the sequence." > If that's not the case you have to convert the images beforehand, e.g. > with imagemagick. > > The scale video filter is described here: > http://ffmpeg.org/ffmpeg-filters.html#scale-1 > > An example could be: > ffmpeg -r 1/5 -i img%03d.png \ > -vf 'scale=256:-1' \ > -c:v libx264 -preset veryslow -tune stillimage -r 30 out.mp4 > > As you want to append sequences with different framerates, you need to > concatenate them. Something like that: > > ffmpeg -r 1/5 -i first/%03d.png -r 1/10 -i second/%03d.png \ > -filter_complex '[0:v] scale=256:-1 [v1]; \ > [1:v] scale=256:-1 [v2]; [v1][v2] concat, fps=30' out.mp4 > > Regards, > Frank. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From james.darnley at gmail.com Thu Dec 5 22:43:22 2013 From: james.darnley at gmail.com (James Darnley) Date: Thu, 05 Dec 2013 22:43:22 +0100 Subject: [FFmpeg-user] Error:While opening encoder for output stream In-Reply-To: <1386224488579-4662575.post@n4.nabble.com> References: <1386224488579-4662575.post@n4.nabble.com> Message-ID: <52A0F37A.2090401@gmail.com> On 2013-12-05 07:21, vswapna wrote: > Its dispalying like " Error while opening the codec" > f.png That doesn't look like the output from ffmpeg. Those "GOING INSIDE" message are not from ffmpeg and libx264 should print at least 1 more line stating the profile and level it is using. Where did you get that ffmpeg from? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From steve at aatw.com Thu Dec 5 22:54:05 2013 From: steve at aatw.com (Steve Kelly) Date: Thu, 5 Dec 2013 21:54:05 +0000 Subject: [FFmpeg-user] Quicktime IMX encode failing on v2.1 In-Reply-To: <528F2AC0.3040201@yahoo.com> References: <2EB2E32C-E430-4817-80BF-466D14ACC727@aatw.com> <528E3869.6090806@yahoo.com> <528F2AC0.3040201@yahoo.com> Message-ID: <4F39CEFE-0E42-46C1-B79F-A38963A9449B@aatw.com> On 22 Nov 2013, at 09:58, Tim Nicholson wrote: > On 21/11/13 20:04, Steve Kelly wrote: >> Thanks for that, had a look another look at the options list and by adjusting, I've go the video to encode by using: >> >> /usr/local/bin/ffmpeg -i "Input.mpg" -vf "scale=720:576:1,pad=720:608:0:32" -vcodec mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+low_delay -dc 10 -intra_vlc 0 -non_linear_quant 0 -qmin 1 -qmax 3 -top 1 -bufsize 2000000 -rc_init_occupancy 2000000 -an -y "Output.m2v" >> >> ie -flags2 was removed. I'm not sure if this is correct, but either way it works. > > Well since you didn't specify any valid flags to go with it, that sounds > about right. Have the flags changed between the builds? I've looked but can't find a change log which would indicate what got deprecated/removed and what it should be replaced with if it has > >> >> The audio is then generated with: >> >> /usr/local/bin/ffmpeg -i "Input.mpg" -vn -ar 48000 -acodec pcm_s16le -y "Output.wav" >> >> However the mux stage generates a file which is no longer a valid IMX file. The MUX command is: >> >> /usr/local/bin/ffmpeg -i "Output.m2v" -i "Output.wav" -c:v copy -c:a copy -vtag mx5p -vbsf imxdump -y "Output_IMX.mov" >> >> Although this command generates an output that can be played, this used to generate a valid IMX D10 Quicktime file and it no longer does. The video codec shows as mpeg2video not mx5p > > > Why not do the audio and video in one go and set the vtag there? Doesn't work either. Using this command: # /usr/local/bin/ffmpeg -i "Input.mpg" -map 0:v -map 0:a -vf "scale=720:576:1,pad=720:608:0:32:black" -c:v mpeg2video -r 25 -aspect 4:3 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+ilme+low_delay -intra_vlc 0 -non_linear_quant 0 -ps 1 -qmin 1 -qmax 3 -top 1 -dc 10 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -c:a pcm_s16le -ar 48000 -tag:v mx5p -vbsf imxdump -y "Output_IMX.mov" Produces this output: # /usr/local/bin/ffmpeg -i "Input.mpg" -map 0:v -map 0:a -vf "scale=720:576:1,pad=720:608:0:32:black" -c:v mpeg2video -r 25 -aspect 4:3 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+ilme+low_delay -intra_vlc 0 -non_linear_quant 0 -ps 1 -qmin 1 -qmax 3 -top 1 -dc 10 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -c:a pcm_s16le -ar 48000 -tag:v mx5p -vbsf imxdump -y "Output_IMX.mov" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [pcm_dvd @ 0x808903b20] block_size has changed [mpeg @ 0x8088e1420] Stream #1: not enough frames to estimate rate; consider increasing probesize Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mpeg, from 'Input.mpg': Duration: 00:05:26.12, start: 0.957178, bitrate: 52933 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s Output #0, mov, to 'Output_IMX.mov': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: mpeg2video (mx5p / 0x7035786D), yuv422p, 720x608 [SAR 152:135 DAR 4:3], q=1-3, 50000 kb/s, 12800 tbn, 25 tbc Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video) Stream #0:1 -> #0:1 (pcm_dvd -> pcm_s16le) Press [q] to stop, [?] for help [pcm_dvd @ 0x808903b20] block_size has changed frame= 8153 fps= 54 q=1.6 Lsize= 2051878kB time=00:05:26.12 bitrate=51542.2kbits/s video:1990479kB audio:61148kB subtitle:0 global headers:0kB muxing overhead 0.012275% Output file mediainfo is: # mediainfo Output_IMX.mov General Complete name : Output_IMX.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 1.96 GiB Duration : 5mn 26s Overall bit rate mode : Constant Overall bit rate : 51.5 Mbps Writing application : Lavf55.19.104 Video ID : 1 Format : m2v1 Codec ID : m2v1 Duration : 5mn 26s Bit rate mode : Constant Bit rate : 50.0 Mbps Width : 720 pixels Height : 608 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 25.000 fps Scan type : Interlaced Scan order : Top Field First Bits/(Pixel*Frame) : 4.569 Stream size : 1.90 GiB (97%) Language : English Audio ID : 2 Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : sowt Duration : 5mn 26s Bit rate mode : Constant Bit rate : 1 536 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 59.7 MiB (3%) Language : English File is not (and rightly so) recognised as an IMX file. Valid IMX file mediainfo output is (this is from a totally different piece of media btw, hence the size differences etc): # mediainfo FFMPEG_07_IMX.mov General Complete name : FFMPEG_07_IMX.mov Format : MPEG-4 Format_Commercial_IfAny : IMX 50 Format profile : QuickTime Codec ID : qt File size : 1.39 GiB Duration : 3mn 51s Overall bit rate mode : Constant Overall bit rate : 51.5 Mbps Writing application : Lavf52.111.0 Video ID : 1 Format : MPEG Video Format_Commercial_IfAny : IMX 50 Format version : Version 2 Format profile : 4:2:2 at Main Format settings, BVOP : No Format settings, Matrix : Default Format settings, GOP : N=1 Muxing mode : MXF Codec ID : mx5p Duration : 3mn 51s Bit rate mode : Constant Bit rate : 50.0 Mbps Width : 720 pixels Height : 576 pixels Original height : 608 pixels Display aspect ratio : 1.184 Frame rate mode : Constant Frame rate : 25.000 fps Standard : PAL Color space : YUV Chroma subsampling : 4:2:2 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Compression mode : Lossy Bits/(Pixel*Frame) : 4.823 Stream size : 1.35 GiB (97%) Language : English Audio ID : 2 Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : sowt Duration : 3mn 51s Bit rate mode : Constant Bit rate : 1 536 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 42.4 MiB (3%) Language : English The MPEG2 encode step does not look like it produces the same format file as previous versions have to start with so I can't even be sure if the mux stage is working or not. Has something fundamentally changed in the mpeg2video codec? Thanks > >> [..] > > > -- > Tim > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From tpoole at mail.com Thu Dec 5 23:03:32 2013 From: tpoole at mail.com (Todd Poole) Date: Thu, 05 Dec 2013 17:03:32 -0500 Subject: [FFmpeg-user] What to do with ts files Message-ID: <52A0F834.5020400@mail.com> Hello all, Have a question about ts files that are generated when I convert a live stream to hls. As the stream plays and is converted by ffmpeg into ts files then brought together in to m3u8 the number of ts files grows. If the live stream plays for several hours would it be wise to have a script of some type check for the oldest (say 3) ts files every so often and delete them or will this screw up the m3u8 file? Thanks for any advice -- Todd Poole From cehoyos at ag.or.at Thu Dec 5 23:38:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 5 Dec 2013 22:38:49 +0000 (UTC) Subject: [FFmpeg-user] Error:While opening encoder for output stream References: <1386224488579-4662575.post@n4.nabble.com> Message-ID: vswapna gmail.com> writes: > ./ffmpeg -f rawvideo -r 50 -s 416x240 -vcodec rawvideo -i > Basketballpass416x240_50yuv -c:v libx264 -intra -qp 9 out.h264 Complete, uncut console output missing. Carl Eugen From cehoyos at ag.or.at Thu Dec 5 23:46:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 5 Dec 2013 22:46:50 +0000 (UTC) Subject: [FFmpeg-user] Quicktime IMX encode failing on v2.1 References: <2EB2E32C-E430-4817-80BF-466D14ACC727@aatw.com> Message-ID: Steve Kelly aatw.com> writes: > The video encode command we used previously is: > > /usr/local/bin/ffmpeg -i "Input.mpg" -threads 1 > -vf "scale=720:576:1,pad=720:608:0:32" -vcodec mpeg2video > -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k > -b:v 50000k -intra -flags +ildct+low_delay -dc 10 > -flags2 +ivlc+non_linear_q If this worked fine and you are using now: > -intra_vlc 0 -non_linear_quant 0 then our option-handling decision was really very bad;-( I suspect that -flags2 +ivlc became -intra_vlc 1 _^_ _^_ Is that really so counter-intuitive? Please test if that helps, if not please try to explain if the problem can be reproduced without mediainfo - we have to find the change introducing the problem. Carl Eugen From joolzg at btinternet.com Thu Dec 5 23:56:17 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 5 Dec 2013 22:56:17 +0000 (GMT) Subject: [FFmpeg-user] Filter complex problem Message-ID: <1386284177.56856.YahooMailNeo@web87804.mail.ir2.yahoo.com> I have this filter -filter_complex '[0:#$dvbsPid] scale=1280:720 [sub],[0:v][sub] overlay' which is taking in a known 1280:720 video, resizing the dvb subtitles to 1280:720 and overlaying the 2. PROBLEM I dont want to have this 1280:720 fixed, what i would like is to be able to use some form of [0:v]:iw:[0:v];ih, but this does not work So is there a way of getting the [0:v] inputs width and height to i can change the filter to be a generic filter joolz From admin at network13.net Fri Dec 6 00:08:51 2013 From: admin at network13.net (Michael Davis) Date: Thu, 5 Dec 2013 15:08:51 -0800 Subject: [FFmpeg-user] What to do with ts files In-Reply-To: <52A0F834.5020400@mail.com> References: <52A0F834.5020400@mail.com> Message-ID: Todd, On a live stream, there are a couple of hls options that will do this clean up for you. I use the following options when doing live hls: -hls_time 10 -hls_wrap 20 -hls_list_size 10 hls_time is the chunk size in seconds. hls_wrap is the total number of ts chunks allowed on disk. The chunks will be written over in a loop. hls_list_size is the number of ts chunks listed in the payload file, which is sometimes referred to as the hls ?window?. As this recycles, the #EXT-X-MEDIA-SEQUENCE tag increments to reflect the window ?sliding? in time. Mike On Dec 5, 2013, at 2:03 PM, Todd Poole wrote: > Hello all, > Have a question about ts files that are generated when I convert a live stream to hls. As the stream plays and is converted by ffmpeg into ts files then brought together in to m3u8 the number of ts files grows. If the live stream plays for several hours would it be wise to have a script of some type check for the oldest (say 3) ts files every so often and delete them or will this screw up the m3u8 file? > > Thanks for any advice > -- > Todd Poole > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From peace at AleksandrSolzhenitsyn.net Fri Dec 6 00:12:36 2013 From: peace at AleksandrSolzhenitsyn.net (AS) Date: Thu, 05 Dec 2013 18:12:36 -0500 Subject: [FFmpeg-user] Speed up Transcode Message-ID: <52A10864.1060608@AleksandrSolzhenitsyn.net> I'm transcoding avchd videos to mpeg dvd format using the following code; ffmpeg -i Input_filename.MTS -deinterlace -target ntsc-dvd Output_Filename.mpeg The transcode works very well but I'd like to speed the process up. I've tried the following; ffmpeg -i Input_filename.MTS -deinterlace -target ntsc-dvd -preset ultrafast Output_Filename.mpeg ...but there's no change in transcoding speed. Is there a way to speed it up without buying a new computer? Thanks, AS -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 555 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Fri Dec 6 00:24:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 5 Dec 2013 23:24:05 +0000 (UTC) Subject: [FFmpeg-user] Speed up Transcode References: <52A10864.1060608@AleksandrSolzhenitsyn.net> Message-ID: AS AleksandrSolzhenitsyn.net> writes: > ffmpeg -i Input_filename.MTS -deinterlace > -target ntsc-dvd Output_Filename.mpeg > > The transcode works very well but I'd like > to speed the process up. Complete, uncut console output missing. (But it is not unlikely that hardware is the limiting factor.) Carl Eugen From tpoole at mail.com Fri Dec 6 01:53:13 2013 From: tpoole at mail.com (Todd Poole) Date: Thu, 05 Dec 2013 19:53:13 -0500 Subject: [FFmpeg-user] What to do with ts files In-Reply-To: References: <52A0F834.5020400@mail.com> Message-ID: <52A11FF9.5010904@mail.com> Thanks Mike, that cleared up a lot for me. Todd Poole On 12/5/2013 6:08 PM, Michael Davis wrote: > Todd, > On a live stream, there are a couple of hls options that will do this clean up for you. I use the following options when doing live hls: > -hls_time 10 -hls_wrap 20 -hls_list_size 10 > hls_time is the chunk size in seconds. > hls_wrap is the total number of ts chunks allowed on disk. The chunks will be written over in a loop. > hls_list_size is the number of ts chunks listed in the payload file, which is sometimes referred to as the hls ?window?. As this recycles, the #EXT-X-MEDIA-SEQUENCE tag increments to reflect the window ?sliding? in time. > > Mike > > On Dec 5, 2013, at 2:03 PM, Todd Poole wrote: > >> Hello all, >> Have a question about ts files that are generated when I convert a live stream to hls. As the stream plays and is converted by ffmpeg into ts files then brought together in to m3u8 the number of ts files grows. If the live stream plays for several hours would it be wise to have a script of some type check for the oldest (say 3) ts files every so often and delete them or will this screw up the m3u8 file? >> >> Thanks for any advice >> -- >> Todd Poole >> _______________________________________________ >> 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 admin at network13.net Fri Dec 6 02:21:48 2013 From: admin at network13.net (Michael Davis) Date: Thu, 5 Dec 2013 17:21:48 -0800 Subject: [FFmpeg-user] segment vs hls and float Message-ID: When using segment to segment out ts files and create an hls playlist, it uses floating point values for the segment lengths in the m3u8 file. When creating hls playlists using hls, it does not use floating point values. Is there a way to force it to do so? Mike From Matthias.Husinsky at fhstp.ac.at Thu Dec 5 22:03:55 2013 From: Matthias.Husinsky at fhstp.ac.at (Husinsky Matthias) Date: Thu, 5 Dec 2013 21:03:55 +0000 Subject: [FFmpeg-user] ffplay with -vf histogram | waveform at full range luma Message-ID: Hello, The histogram video filter behaves odd in waveform mode when using an input file that has full range luma (yuvj420p). Please check with this file (recorded by a Canon 5DmII): http://www.datafilehost.com/d/acd54299 When applying the histogram filter as follows the histogram is fine (luma values streched from 0-255) --- mhusinsky$ ffplay -vf histogram fullrange_y.mp4 ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg developers built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-libfaac libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 21.102 / 55. 21.102 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4':B f=0/0 Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.21.102 Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 tbr, 12k tbn, 24k tbc (default) Metadata: handler_name : VideoHandler [swscaler @ 0x7f8857004e00] deprecated pixel format used, make sure you did set range correctly [swscaler @ 0x7f8857040600] deprecated pixel format used, make sure you did set range correctly 2.45 M-V: -0.028 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 --- When using the waveform mode the values are compressed into broadcast range and waveform output of luma does not reflect the actual content (clearly visible with the regular spikes shown as "lines" at regular intervals in the luma spectrum): --- mhusinsky$ ffplay -color_range 2 -vf histogram=mode=waveform:waveform_mode=column:waveform_mirror=1 fullrange_y.mp4 ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg developers built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-libfaac libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 21.102 / 55. 21.102 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4':B f=0/0 Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.21.102 Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 tbr, 12k tbn, 24k tbc (default) Metadata: handler_name : VideoHandler [swscaler @ 0x7f80fd11f400] deprecated pixel format used, make sure you did set range correctly 1.62 M-V: -0.001 fd= 1 aq= 0KB vq= 163KB sq= 0B f=0/0 --- Trying to force a certain format like this does not improve the situation: ffplay -color_range 2 -vf format=pix_fmts=yuvj420p,histogram=mode=waveform:waveform_mode=column:wavef orm_mirror=1 fullrange_y.mp4 I found that applying the filter in ffmpeg and piping the output to ffplay actually works as intended. --- mhusinsky$ ffmpeg -i fullrange_y.mp4 -vf histogram=mode=waveform:waveform_mode=column:waveform_mirror=1 -c:v rawvideo -f nut - |ffplay - ffmpeg version 2.1.git-65f41b5 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-libfaac libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 21.102 / 55. 21.102 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.21.102 Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 tbr, 12k tbn, 24k tbc (default) Metadata: handler_name : VideoHandler Output #0, nut, to 'pipe:': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.21.102 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuvj420p, 1920x768 [SAR 1:1 DAR 5:2], q=2-31, 200 kb/s, 61440 tbn, 30 tbc (default) Metadata: X-Language : eng handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> rawvideo) Press [q] to stop, [?] for help ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg developers built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-libfaac libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 21.102 / 55. 21.102 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, nut, from 'pipe:':aq= 0KB vq= 0KB sq= 0B f=0/0 Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.21.102 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x768, SAR 1:1 DAR 5:2, 30 fps, 30 tbr, 61440 tbn, 61440 tbc (default) Metadata: handler_name : VideoHandler frame= 60 fps= 33 q=0.0 Lsize= 129602kB time=00:00:02.00 bitrate=530851.7kbits/s video:129600kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.001901% 3.02 M-V: -0.033 fd= 4 aq= 0KB vq= 0KB sq= 0B f=0/0 --- Now is there any possibility to achieve this behaviour in ffplay directly (i.e. by not piping outputs)? I find it confusing that the levels and waveform mode behave differently in ffplay. Am I doing something wrong or is this a bug of ffplay? I?m using the histogram mainly for inspection purposes and would prefer doing it directly in ffplay. Thank you, Matthias From hans.j.albertsson at branneriet.se Fri Dec 6 09:18:57 2013 From: hans.j.albertsson at branneriet.se (Hans J. Albertsson) Date: Fri, 06 Dec 2013 09:18:57 +0100 Subject: [FFmpeg-user] Add Image to Streaming Audio In-Reply-To: <20131205122716.74362f93@lrcd.com> References: <20131204164332.072a750e@lrcd.com> <52A0A8E8.7020708@branneriet.se> <20131205122716.74362f93@lrcd.com> Message-ID: <52A18871.9000703@branneriet.se> On 2013-12-05 22:27, Lou wrote: > On Thu, 05 Dec 2013 17:25:12 +0100 > "Hans J. Albertsson" wrote: > >> BTW, is there somewhere a list of what formats for video, audio, images >> that the various container formats can and cannot support, respectively? > You can get some info with: > > ffmpeg -h decoder=foo > ffmpeg -h encoder=foo > ffmpeg -h muxer=foo > > You get a short description and some defaults, nothing about what won't work, or what combinations can and cannot be handled for a specific container format. Again, has anyone somewhere compiled a catalog of what won't work? From onemda at gmail.com Fri Dec 6 13:03:40 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 6 Dec 2013 13:03:40 +0100 Subject: [FFmpeg-user] Filter complex problem In-Reply-To: <1386284177.56856.YahooMailNeo@web87804.mail.ir2.yahoo.com> References: <1386284177.56856.YahooMailNeo@web87804.mail.ir2.yahoo.com> Message-ID: On 12/5/13, JULIAN GARDNER wrote: > I have this filter > > -filter_complex '[0:#$dvbsPid] scale=1280:720 [sub],[0:v][sub] overlay' > > which is taking in a known 1280:720 video, resizing the dvb subtitles to > 1280:720 and overlaying the 2. > > PROBLEM > I dont want to have this 1280:720 fixed, what i would like is to be able to > use some form of [0:v]:iw:[0:v];ih, but this does not work How? What you tried? > > So is there a way of getting the [0:v] inputs width and height to i can > change the filter to be a generic filter > > joolz > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From onemda at gmail.com Fri Dec 6 13:09:41 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 6 Dec 2013 13:09:41 +0100 Subject: [FFmpeg-user] ffplay with -vf histogram | waveform at full range luma In-Reply-To: References: Message-ID: On 12/5/13, Husinsky Matthias wrote: > Hello, > > The histogram video filter behaves odd in waveform mode when using an > input file that has full range luma (yuvj420p). > Please check with this file (recorded by a Canon 5DmII): > http://www.datafilehost.com/d/acd54299 > > When applying the histogram filter as follows the histogram is fine (luma > values streched from 0-255) > > --- > mhusinsky$ ffplay -vf histogram fullrange_y.mp4 > ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg > developers > built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 > (clang-500.2.79) (based on LLVM 3.3svn) > configuration: --prefix=/opt/local --enable-swscale --enable-avfilter > --enable-avresample --enable-libmp3lame --enable-libvorbis > --enable-libopus --enable-libtheora --enable-libschroedinger > --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex > --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype > --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man > --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 > --enable-yasm --enable-gpl --enable-postproc --enable-libx264 > --enable-libxvid --enable-version3 --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-nonfree --enable-libfaac > libavutil 52. 56.100 / 52. 56.100 > libavcodec 55. 44.100 / 55. 44.100 > libavformat 55. 21.102 / 55. 21.102 > libavdevice 55. 5.102 / 55. 5.102 > libavfilter 3. 91.100 / 3. 91.100 > libavresample 1. 1. 0 / 1. 1. 0 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.104 / 0. 17.104 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4':B f=0/0 > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf55.21.102 > Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s > Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / > 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 > tbr, 12k tbn, 24k tbc (default) > Metadata: > handler_name : VideoHandler > [swscaler @ 0x7f8857004e00] deprecated pixel format used, make sure you > did set range correctly > [swscaler @ 0x7f8857040600] deprecated pixel format used, make sure you > did set range correctly > 2.45 M-V: -0.028 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 > --- > > When using the waveform mode the values are compressed into broadcast > range and waveform output of luma does not reflect the actual content > (clearly visible with the regular spikes shown as "lines" at regular > intervals in the luma spectrum): > > --- > mhusinsky$ ffplay -color_range 2 -vf > histogram=mode=waveform:waveform_mode=column:waveform_mirror=1 > fullrange_y.mp4 > ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg > developers > built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 > (clang-500.2.79) (based on LLVM 3.3svn) > configuration: --prefix=/opt/local --enable-swscale --enable-avfilter > --enable-avresample --enable-libmp3lame --enable-libvorbis > --enable-libopus --enable-libtheora --enable-libschroedinger > --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex > --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype > --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man > --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 > --enable-yasm --enable-gpl --enable-postproc --enable-libx264 > --enable-libxvid --enable-version3 --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-nonfree --enable-libfaac > libavutil 52. 56.100 / 52. 56.100 > libavcodec 55. 44.100 / 55. 44.100 > libavformat 55. 21.102 / 55. 21.102 > libavdevice 55. 5.102 / 55. 5.102 > libavfilter 3. 91.100 / 3. 91.100 > libavresample 1. 1. 0 / 1. 1. 0 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.104 / 0. 17.104 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4':B f=0/0 > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf55.21.102 > Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s > Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / > 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 > tbr, 12k tbn, 24k tbc (default) > Metadata: > handler_name : VideoHandler > [swscaler @ 0x7f80fd11f400] deprecated pixel format used, make sure you > did set range correctly > 1.62 M-V: -0.001 fd= 1 aq= 0KB vq= 163KB sq= 0B f=0/0 > > --- > > > > Trying to force a certain format like this does not improve the situation: > ffplay -color_range 2 -vf > format=pix_fmts=yuvj420p,histogram=mode=waveform:waveform_mode=column:wavef > orm_mirror=1 fullrange_y.mp4 > > > > I found that applying the filter in ffmpeg and piping the output to ffplay > actually works as intended. > > --- > mhusinsky$ ffmpeg -i fullrange_y.mp4 -vf > histogram=mode=waveform:waveform_mode=column:waveform_mirror=1 -c:v > rawvideo -f nut - |ffplay - > ffmpeg version 2.1.git-65f41b5 Copyright (c) 2000-2013 the FFmpeg > developers > built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 > (clang-500.2.79) (based on LLVM 3.3svn) > configuration: --prefix=/opt/local --enable-swscale --enable-avfilter > --enable-avresample --enable-libmp3lame --enable-libvorbis > --enable-libopus --enable-libtheora --enable-libschroedinger > --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex > --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype > --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man > --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 > --enable-yasm --enable-gpl --enable-postproc --enable-libx264 > --enable-libxvid --enable-version3 --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-nonfree --enable-libfaac > libavutil 52. 56.100 / 52. 56.100 > libavcodec 55. 44.100 / 55. 44.100 > libavformat 55. 21.102 / 55. 21.102 > libavdevice 55. 5.102 / 55. 5.102 > libavfilter 3. 91.100 / 3. 91.100 > libavresample 1. 1. 0 / 1. 1. 0 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.104 / 0. 17.104 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf55.21.102 > Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s > Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / > 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 > tbr, 12k tbn, 24k tbc (default) > Metadata: > handler_name : VideoHandler > Output #0, nut, to 'pipe:': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf55.21.102 > Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuvj420p, 1920x768 > [SAR 1:1 DAR 5:2], q=2-31, 200 kb/s, 61440 tbn, 30 tbc (default) > Metadata: > X-Language : eng > handler_name : VideoHandler > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> rawvideo) > Press [q] to stop, [?] for help > ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg > developers > built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 > (clang-500.2.79) (based on LLVM 3.3svn) > configuration: --prefix=/opt/local --enable-swscale --enable-avfilter > --enable-avresample --enable-libmp3lame --enable-libvorbis > --enable-libopus --enable-libtheora --enable-libschroedinger > --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex > --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype > --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man > --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 > --enable-yasm --enable-gpl --enable-postproc --enable-libx264 > --enable-libxvid --enable-version3 --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-nonfree --enable-libfaac > libavutil 52. 56.100 / 52. 56.100 > libavcodec 55. 44.100 / 55. 44.100 > libavformat 55. 21.102 / 55. 21.102 > libavdevice 55. 5.102 / 55. 5.102 > libavfilter 3. 91.100 / 3. 91.100 > libavresample 1. 1. 0 / 1. 1. 0 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.104 / 0. 17.104 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, nut, from 'pipe:':aq= 0KB vq= 0KB sq= 0B f=0/0 > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf55.21.102 > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p, > 1920x768, SAR 1:1 DAR 5:2, 30 fps, 30 tbr, 61440 tbn, 61440 tbc (default) > Metadata: > handler_name : VideoHandler > frame= 60 fps= 33 q=0.0 Lsize= 129602kB time=00:00:02.00 > bitrate=530851.7kbits/s > video:129600kB audio:0kB subtitle:0 global headers:0kB muxing overhead > 0.001901% > 3.02 M-V: -0.033 fd= 4 aq= 0KB vq= 0KB sq= 0B f=0/0 > --- > > > Now is there any possibility to achieve this behaviour in ffplay directly > (i.e. by not piping outputs)? I find it confusing that the levels and > waveform mode behave differently in ffplay. Because ffplay somehow somewhere (in middle of filtergraph) inserts another format filter and output to something unexpected. > Am I doing something wrong or is this a bug of ffplay? I^1m using the > histogram mainly for inspection purposes and would prefer doing it > directly in ffplay. ffplay is a toy. You should use something that can use better graphic output than SDL. > > Thank you, > Matthias > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From joolzg at btinternet.com Fri Dec 6 13:19:49 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Fri, 6 Dec 2013 12:19:49 +0000 (GMT) Subject: [FFmpeg-user] Filter complex problem In-Reply-To: References: <1386284177.56856.YahooMailNeo@web87804.mail.ir2.yahoo.com> Message-ID: <1386332389.95726.YahooMailNeo@web87806.mail.ir2.yahoo.com> >________________________________ > From: Paul B Mahol >To: FFmpeg user questions >Sent: Friday, 6 December 2013, 13:03 >Subject: Re: [FFmpeg-user] Filter complex problem > > >On 12/5/13, JULIAN GARDNER wrote: >> I have this filter >> >> -filter_complex '[0:#$dvbsPid] scale=1280:720 [sub],[0:v][sub] overlay' >> >> which is taking in a known 1280:720 video, resizing the dvb subtitles to >> 1280:720 and overlaying the 2. >> >> PROBLEM >> I dont want to have this 1280:720 fixed, what i would like is to be able to >> use some form of [0:v]:iw:[0:v];ih, but this does not work > >How? What you tried? > [0:v]:iw:[0:v];ih out_w:in_h w:h >> >> So is there a way of getting the [0:v] inputs width and height to i can >> change the filter to be a generic filter >> >> joolz >> >> _______________________________________________ >> 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 > Unless there is a special one i cant dind in the online docs im stuck Any help would be helpful joolz From peace at aleksandrsolzhenitsyn.net Fri Dec 6 13:47:55 2013 From: peace at aleksandrsolzhenitsyn.net (peace at aleksandrsolzhenitsyn.net) Date: Fri, 06 Dec 2013 05:47:55 -0700 Subject: [FFmpeg-user] Speed up Transcode In-Reply-To: References: <52A10864.1060608@AleksandrSolzhenitsyn.net> Message-ID: On 2013-12-05 16:24, Carl Eugen Hoyos wrote: > AS AleksandrSolzhenitsyn.net> writes: > >> ffmpeg -i Input_filename.MTS -deinterlace >> -target ntsc-dvd Output_Filename.mpeg >> >> The transcode works very well but I'd like >> to speed the process up. > > Complete, uncut console output missing. > (But it is not unlikely that hardware is the > limiting factor.) > > Carl Eugen Here it is; Notebooks at Notebook-laptop:~/Videos$ ffmpeg -i Input.MTS -deinterlace -target ntsc-dvd Output.mpeg ffmpeg version N-42139-g7693543 Copyright (c) 2000-2012 the FFmpeg developers built on Nov 8 2012 22:15:12 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab libavutil 52. 5.100 / 52. 5.100 libavcodec 54. 71.100 / 54. 71.100 libavformat 54. 36.100 / 54. 36.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 21.106 / 3. 21.106 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 16.100 / 0. 16.100 libpostproc 52. 1.100 / 52. 1.100 Input #0, mpegts, from 'Input.MTS': Duration: 00:00:05.54, start: 1.000033, bitrate: 22865 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 256 kb/s Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090) -deinterlace is deprecated, use -filter:v yadif instead Output #0, dvd, to 'Output.mpeg': Metadata: encoder : Lavf54.36.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (ac3 -> ac3) Press [q] to stop, [?] for help frame= 5 fps=0.0 q=2.0 size= 6kB time=00:00:00.22 bitrate= 223.4kbits/sframe= 10 fps=9.5 q=2.0 size= 326kB time=00:00:00.38 bitrate=7027.9kbits/sframe= 15 fps=9.3 q=2.6 size= 468kB time=00:00:00.50 bitrate=7547.0kbits/sframe= 21 fps=9.8 q=2.6 size= 524kB time=00:00:00.63 bitrate=6771.0kbits/sframe= 26 fps=9.7 q=2.6 size= 524kB time=00:00:00.80 bitrate=5360.4kbits/sframe= 31 fps=9.7 q=2.5 size= 566kB time=00:00:00.96 bitrate=4791.8kbits/sframe= 36 fps=9.7 q=2.7 size= 700kB time=00:00:01.13 bitrate=5054.7kbits/sframe= 41 fps=9.7 q=2.6 size= 820kB time=00:00:01.30 bitrate=5162.1kbits/sframe= 46 fps=9.7 q=2.4 size= 958kB time=00:00:01.46 bitrate=5345.5kbits/sframe= 51 fps=9.8 q=3.0 size= 1098kB time=00:00:01.63 bitrate=5501.5kbits/sframe= 55 fps=9.6 q=2.7 size= 1200kB time=00:00:01.76 bitrate=5558.8kbits/sframe= 60 fps=9.5 q=2.8 size= 1278kB time=00:00:01.93 bitrate=5409.8kbits/sframe= 65 fps=9.5 q=2.4 size= 1412kB time=00:00:02.10 bitrate=5502.6kbits/sframe= 70 fps=9.5 q=2.9 size= 1546kB time=00:00:02.26 bitrate=5581.8kbits/sframe= 75 fps=9.5 q=2.9 size= 1684kB time=00:00:02.43 bitrate=5663.6kbits/sframe= 80 fps=9.5 q=3.1 size= 1828kB time=00:00:02.60 bitrate=5753.9kbits/sframe= 85 fps=9.5 q=3.4 size= 1928kB time=00:00:02.76 bitrate=5703.0kbits/sframe= 89 fps=9.4 q=3.5 size= 2080kB time=00:00:02.90 bitrate=5869.8kbits/sframe= 94 fps=9.4 q=3.8 size= 2196kB time=00:00:03.06 bitrate=5860.3kbits/sframe= 99 fps=9.4 q=3.4 size= 2356kB time=00:00:03.23 bitrate=5963.2kbits/sframe= 104 fps=9.3 q=3.4 size= 2550kB time=00:00:03.40 bitrate=6137.9kbits/sframe= 106 fps=9.0 q=3.4 size= 2572kB time=00:00:03.47 bitrate=6071.8kbits/sframe= 111 fps=9.1 q=3.6 size= 2660kB time=00:00:03.63 bitrate=5991.5kbits/sframe= 115 fps=9.0 q=3.4 size= 2766kB time=00:00:03.77 bitrate=6009.7kbits/sframe= 119 fps=9.0 q=3.5 size= 2892kB time=00:00:03.90 bitrate=6068.6kbits/sframe= 124 fps=9.0 q=3.5 size= 3024kB time=00:00:04.07 bitrate=6085.5kbits/sframe= 128 fps=8.9 q=2.5 size= 3156kB time=00:00:04.20 bitrate=6149.6kbits/sframe= 133 fps=8.9 q=3.3 size= 3226kB time=00:00:04.37 bitrate=6046.0kbits/sframe= 137 fps=8.9 q=3.3 size= 3360kB time=00:00:04.50 bitrate=6110.6kbits/sframe= 141 fps=8.9 q=3.3 size= 3502kB time=00:00:04.63 bitrate=6185.6kbits/sframe= 146 fps=8.9 q=2.5 size= 3590kB time=00:00:04.80 bitrate=6120.8kbits/sframe= 150 fps=8.8 q=3.3 size= 3756kB time=00:00:04.93 bitrate=6230.8kbits/sframe= 155 fps=8.9 q=3.3 size= 3806kB time=00:00:05.10 bitrate=6107.4kbits/sframe= 160 fps=8.9 q=3.2 size= 3958kB time=00:00:05.27 bitrate=6150.3kbits/sframe= 164 fps=8.9 q=2.6 size= 4422kB time=00:00:05.56 bitrate=6510.6kbits/sframe= 166 fps=8.9 q=3.2 Lsize= 4516kB time=00:00:05.56 bitrate=6649.0kbits/s dup=1 drop=0 video:4129kB audio:303kB subtitle:0 global headers:0kB muxing overhead 1.891243% > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Fri Dec 6 14:02:08 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 6 Dec 2013 13:02:08 +0000 (UTC) Subject: [FFmpeg-user] Speed up Transcode References: <52A10864.1060608@AleksandrSolzhenitsyn.net> Message-ID: aleksandrsolzhenitsyn.net> writes: > Notebooks Notebook-laptop:~/Videos$ ffmpeg -i Input.MTS > -deinterlace -target ntsc-dvd Output.mpeg Afaict, hardware is the limiting factor (I get ten times realtime here). Consider using -vf yadif instead of -deinterlace which I suspect is a deprecated option. > Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), > yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, > 90k tbn, 59.94 tbc Unrelated: Are you sure the stream is interlaced and not telecined? It is a bad idea to use a deinterlacer on a telecined input stream. Carl Eugen From cehoyos at ag.or.at Fri Dec 6 14:31:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 6 Dec 2013 13:31:56 +0000 (UTC) Subject: [FFmpeg-user] Speed up Transcode References: <52A10864.1060608@AleksandrSolzhenitsyn.net> Message-ID: Carl Eugen Hoyos ag.or.at> writes: > Afaict, hardware is the limiting factor > (I get ten times realtime here). Sorry, I tested 25fps SD content, so please ignore this. Carl Eugen From samuel.east at sobytes.com Fri Dec 6 14:58:18 2013 From: samuel.east at sobytes.com (sobytes) Date: Fri, 6 Dec 2013 05:58:18 -0800 (PST) Subject: [FFmpeg-user] AAC, Low Complexity Profile (LC). Message-ID: <1386338298732-4662605.post@n4.nabble.com> Hi All I am relatively new to ffmpeg so i trying to get my head around certain things so apologies if this is in the wrong place, but i have been asked to setup a service and they require the format of all audio to be in AAC, Low Complexity Profile (LC). I have been reading through the docs and i can see this command. ffmpeg -i input.wav -c:a libfdk_aac -b:a 128k output.m4a but i dont have libfdk_aac installed with my ffmpeg system i am a bit nervous about messing with my setup as it took me a while to get it all installed. Here is my ffmpeg setup ffmpeg version N-54790-g1816f55-syslint Copyright (c) 2000-2013 the FFmpeg developers built on Jul 17 2013 21:34:32 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint libavutil 52. 40.100 / 52. 40.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.102 / 55. 12.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 81.101 / 3. 81.101 libswscale 2. 4.100 / 2. 4.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 So i am trying to do the task with a different encoder libfaac which is installed like this. ffmpeg -i BillyGraham_1998.mp3 -c:a libfaac -q:a 330 -cutoff 15000 output.m4a But i get the following errors [buffer @ 0x1e12860] Unable to parse option value "0x0" as image size [buffer @ 0x1e12860] Unable to parse option value "-1" as pixel format [buffer @ 0x1e12860] Unable to parse option value "0x0" as image size [buffer @ 0x1e12860] Error setting option video_size to value 0x0. [graph 0 input from stream 0:1 @ 0x1e12740] Error applying options to the filter. Error opening filters! Any help would be really appreciated thanks -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AAC-Low-Complexity-Profile-LC-tp4662605.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Fri Dec 6 16:01:14 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 6 Dec 2013 15:01:14 +0000 (UTC) Subject: [FFmpeg-user] AAC, Low Complexity Profile (LC). References: <1386338298732-4662605.post@n4.nabble.com> Message-ID: sobytes sobytes.com> writes: > but i dont have libfdk_aac installed with my ffmpeg system > i am a bit nervous about messing with my setup as it took > me a while to get it all installed. Just compile FFmpeg with --enable-libfdk-aac, do not install it but test it from the build directory. If you like it, copy it with a name of your choice into a directory of your choice. --enable-pthreads is useless because it is auto-detected. And please remove --enable-decoder=liba52 - the option does not exist at least for many years. Carl Eugen From frafart at free.fr Fri Dec 6 16:32:03 2013 From: frafart at free.fr (frafart at free.fr) Date: Fri, 6 Dec 2013 16:32:03 +0100 (CET) Subject: [FFmpeg-user] Change output file at specific time In-Reply-To: <1273263823.238538330.1386343480447.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> Hi, I try to generate 5 minutes long TS file's from an udp streams. I can do it with segment (the accuracy is not very high but it works and I don't have really work on all the segment options). My problem is : I want that the file rotate at specific time (at 00:00:00, 00:05:00, 00:05:10, ...). Is there a way with ffmpeg to specify not a duration but, for exemple an test like timestamp % 300 = 0 ? Another question : Can I use an extended pattern for the file name (%H for hours, %M for minute, ...) ? For now, I work with ffmpeg 1.0.8. Regards, Fabrice. From samuel.east at sobytes.com Fri Dec 6 16:37:50 2013 From: samuel.east at sobytes.com (Sam East) Date: Fri, 6 Dec 2013 15:37:50 +0000 Subject: [FFmpeg-user] AAC, Low Complexity Profile (LC). In-Reply-To: References: <1386338298732-4662605.post@n4.nabble.com> Message-ID: Hi Carl Thanks for the feedback So if i run a install from a dir on my server say /usr/local/bin/ Which install would you suggest me running as i have found lots of different ones i am running on Centos? Thanks Sam On Fri, Dec 6, 2013 at 3:01 PM, Carl Eugen Hoyos wrote: > sobytes sobytes.com> writes: > > > but i dont have libfdk_aac installed with my ffmpeg system > > i am a bit nervous about messing with my setup as it took > > me a while to get it all installed. > > Just compile FFmpeg with --enable-libfdk-aac, do not install > it but test it from the build directory. > If you like it, copy it with a name of your choice into a > directory of your choice. > --enable-pthreads is useless because it is auto-detected. > And please remove --enable-decoder=liba52 - the option > does not exist at least for many years. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- *Samuel East* - Director samuel.east at sobytes.com Connect with me on linkedin -- *www.sobytes.com * 07446 276 026 ICE Britannia House, Caerphilly Business Park / Van Rd / Caerphilly / CF83 8GG From andrey.krieger.utkin at gmail.com Fri Dec 6 18:40:50 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Fri, 6 Dec 2013 19:40:50 +0200 Subject: [FFmpeg-user] Change output file at specific time In-Reply-To: <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> References: <1273263823.238538330.1386343480447.JavaMail.root@zimbra74-e12.priv.proxad.net> <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: 2013/12/6 : > Hi, > > I try to generate 5 minutes long TS file's from an udp streams. I can do it with segment (the accuracy is not very high but it works and I don't have really work on all the segment options). > My problem is : I want that the file rotate at specific time (at 00:00:00, 00:05:00, 00:05:10, ...). You could capture the stream with simpler tool, like netcat or socat, killing and restarting it when needed. The loss of data during restart should be merely noticeable. > Is there a way with ffmpeg to specify not a duration but, for exemple an test like timestamp % 300 = 0 ? At command line level - no. You can do anything you want in application using libavformat API. > Another question : Can I use an extended pattern for the file name (%H for hours, %M for minute, ...) ? You can do that by bash, not ffmpeg functionality. -- Andrey Utkin From peace at AleksandrSolzhenitsyn.net Fri Dec 6 19:17:27 2013 From: peace at AleksandrSolzhenitsyn.net (AS) Date: Fri, 06 Dec 2013 13:17:27 -0500 Subject: [FFmpeg-user] Speed up Transcode In-Reply-To: References: <52A10864.1060608@AleksandrSolzhenitsyn.net> Message-ID: <52A214B7.50509@AleksandrSolzhenitsyn.net> On 13-12-06 08:02 AM, Carl Eugen Hoyos wrote: > aleksandrsolzhenitsyn.net> writes: > >> Notebooks Notebook-laptop:~/Videos$ ffmpeg -i Input.MTS >> -deinterlace -target ntsc-dvd Output.mpeg > Afaict, hardware is the limiting factor (I get > ten times realtime here). > Consider using -vf yadif instead of -deinterlace > which I suspect is a deprecated option. I tried the -vf yadif but there was no change in speed. >> Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), >> yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, >> 90k tbn, 59.94 tbc > Unrelated: > Are you sure the stream is interlaced and not telecined? > It is a bad idea to use a deinterlacer on a telecined > input stream. Well, I don't know or would not know how to find out. The video files I'm working with are from a Sony HDR cx220 video camera. It produces the above mentioned avchd .MTS files. The good part is the transcoding to mpeg works perfectly (so it seems) so I can't complain. Thanks, Alek > > Carl Eugen Carl, > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 555 bytes Desc: OpenPGP digital signature URL: From thiles at confex.com Fri Dec 6 19:22:13 2013 From: thiles at confex.com (Tim Hiles) Date: Fri, 6 Dec 2013 10:22:13 -0800 Subject: [FFmpeg-user] Speed up Transcode In-Reply-To: <52A214B7.50509@AleksandrSolzhenitsyn.net> References: <52A10864.1060608@AleksandrSolzhenitsyn.net> <52A214B7.50509@AleksandrSolzhenitsyn.net> Message-ID: Just a reminder to not include signature when communicating to group. Admins will get mad. Tim Hiles - A/V & Multimedia Specialist The Conference Exchange - West Coast 2919 Acresite St Los Angeles, CA 90039 Office: (401) 334-0220 X235 Mobile: (408) 471-8464 The Conference Exchange - Main office 35 Martin St. Floor 2 Cumberland, RI 02864 401-334-0220 On Fri, Dec 6, 2013 at 10:17 AM, AS wrote: > > On 13-12-06 08:02 AM, Carl Eugen Hoyos wrote: > > aleksandrsolzhenitsyn.net> writes: > > > >> Notebooks Notebook-laptop:~/Videos$ ffmpeg -i Input.MTS > >> -deinterlace -target ntsc-dvd Output.mpeg > > Afaict, hardware is the limiting factor (I get > > ten times realtime here). > > Consider using -vf yadif instead of -deinterlace > > which I suspect is a deprecated option. > > I tried the -vf yadif but there was no change in speed. > > >> Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), > >> yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, > >> 90k tbn, 59.94 tbc > > Unrelated: > > Are you sure the stream is interlaced and not telecined? > > It is a bad idea to use a deinterlacer on a telecined > > input stream. > > Well, I don't know or would not know how to find out. The video files > I'm working with are from a Sony HDR cx220 video camera. It produces the > above mentioned avchd .MTS files. > > The good part is the transcoding to mpeg works perfectly (so it seems) > so I can't complain. > > Thanks, > > Alek > > > > > Carl Eugen > > Carl, > > > > > > _______________________________________________ > > 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 thiles at confex.com Fri Dec 6 19:23:08 2013 From: thiles at confex.com (Tim Hiles) Date: Fri, 6 Dec 2013 10:23:08 -0800 Subject: [FFmpeg-user] Speed up Transcode In-Reply-To: References: <52A10864.1060608@AleksandrSolzhenitsyn.net> <52A214B7.50509@AleksandrSolzhenitsyn.net> Message-ID: like I just did. case in point. > On Fri, Dec 6, 2013 at 10:17 AM, AS wrote: > >> >> On 13-12-06 08:02 AM, Carl Eugen Hoyos wrote: >> > aleksandrsolzhenitsyn.net> writes: >> > >> >> Notebooks Notebook-laptop:~/Videos$ ffmpeg -i Input.MTS >> >> -deinterlace -target ntsc-dvd Output.mpeg >> > Afaict, hardware is the limiting factor (I get >> > ten times realtime here). >> > Consider using -vf yadif instead of -deinterlace >> > which I suspect is a deprecated option. >> >> I tried the -vf yadif but there was no change in speed. >> >> >> Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), >> >> yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, >> >> 90k tbn, 59.94 tbc >> > Unrelated: >> > Are you sure the stream is interlaced and not telecined? >> > It is a bad idea to use a deinterlacer on a telecined >> > input stream. >> >> Well, I don't know or would not know how to find out. The video files >> I'm working with are from a Sony HDR cx220 video camera. It produces the >> above mentioned avchd .MTS files. >> >> The good part is the transcoding to mpeg works perfectly (so it seems) >> so I can't complain. >> >> Thanks, >> >> Alek >> >> > >> > Carl Eugen >> >> Carl, >> >> >> >> >> > _______________________________________________ >> > 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 vswapnasr at gmail.com Fri Dec 6 06:00:27 2013 From: vswapnasr at gmail.com (vswapna) Date: Thu, 5 Dec 2013 21:00:27 -0800 (PST) Subject: [FFmpeg-user] Error:While opening encoder for output stream In-Reply-To: <52A0F37A.2090401@gmail.com> References: <1386224488579-4662575.post@n4.nabble.com> <52A0F37A.2090401@gmail.com> Message-ID: <1386306027868-4662599.post@n4.nabble.com> Hi, I have writtten printf("GOING INSIDE.."); statement in /libavcodec/utils.c file..thats why its dispalying..."GOING INSIDE " .... ffmpeg download path :: http://www.ffmpeg.org/download.html I installed x264 encoder in linux by giving the following git clone git://git.videolan.org/x264 Whenevr i am changing(just writing printf("....."); in x264 folder files....its not reflecting correctly... Its not linking the libx264 library properly can you suggest me -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Error-While-opening-encoder-for-output-stream-tp4662575p4662599.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From zaript at gmail.com Fri Dec 6 11:52:51 2013 From: zaript at gmail.com (Timur Zaripov) Date: Fri, 6 Dec 2013 14:52:51 +0400 Subject: [FFmpeg-user] Need help to find "proper" way to get deinterlaced 1080p30 from lossless and 1080p60 sources. Message-ID: Hello everyone! I spent quite a bit of time trying to wrap my head around interlacing/deinterlacing, but can't seem to get any clarity on an issue. Practical problems I am trying to solve are: - encoding lossless lagarith 1080p30 source to x264 1080p30 which guaranteed to have progressed frames (as youtube requires); - re-encoding 1080p60 x264 encoded Nvidia Shadowplay source in the same way. Main issue I have is that I can't tell if original sources are interlaced or not and if they are not, than may be I am just wasting time and resources using -deinterlace option? Command line I am using to encode looks like this: ffmpeg.exe -i %1 -map 0:0 -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -deinterlace -r 30 -map 0:1 -c:a copy %targetVid% Any help will be appreciated. WBR, Timur Zaripov From cus at passwd.hu Fri Dec 6 21:48:43 2013 From: cus at passwd.hu (Marton Balint) Date: Fri, 6 Dec 2013 21:48:43 +0100 (CET) Subject: [FFmpeg-user] ffplay with -vf histogram | waveform at full range luma In-Reply-To: References: Message-ID: On Fri, 6 Dec 2013, Paul B Mahol wrote: > On 12/5/13, Husinsky Matthias wrote: >> Hello, >> >> The histogram video filter behaves odd in waveform mode when using an >> input file that has full range luma (yuvj420p). >> Please check with this file (recorded by a Canon 5DmII): >> http://www.datafilehost.com/d/acd54299 >> >> When applying the histogram filter as follows the histogram is fine (luma >> values streched from 0-255) >> >> --- >> mhusinsky$ ffplay -vf histogram fullrange_y.mp4 >> ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg >> developers >> built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 >> (clang-500.2.79) (based on LLVM 3.3svn) >> configuration: --prefix=/opt/local --enable-swscale --enable-avfilter >> --enable-avresample --enable-libmp3lame --enable-libvorbis >> --enable-libopus --enable-libtheora --enable-libschroedinger >> --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex >> --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype >> --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man >> --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 >> --enable-yasm --enable-gpl --enable-postproc --enable-libx264 >> --enable-libxvid --enable-version3 --enable-libopencore-amrnb >> --enable-libopencore-amrwb --enable-nonfree --enable-libfaac >> libavutil 52. 56.100 / 52. 56.100 >> libavcodec 55. 44.100 / 55. 44.100 >> libavformat 55. 21.102 / 55. 21.102 >> libavdevice 55. 5.102 / 55. 5.102 >> libavfilter 3. 91.100 / 3. 91.100 >> libavresample 1. 1. 0 / 1. 1. 0 >> libswscale 2. 5.101 / 2. 5.101 >> libswresample 0. 17.104 / 0. 17.104 >> libpostproc 52. 3.100 / 52. 3.100 >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4':B f=0/0 >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> encoder : Lavf55.21.102 >> Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s >> Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / >> 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 >> tbr, 12k tbn, 24k tbc (default) >> Metadata: >> handler_name : VideoHandler >> [swscaler @ 0x7f8857004e00] deprecated pixel format used, make sure you >> did set range correctly >> [swscaler @ 0x7f8857040600] deprecated pixel format used, make sure you >> did set range correctly >> 2.45 M-V: -0.028 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 >> --- >> >> When using the waveform mode the values are compressed into broadcast >> range and waveform output of luma does not reflect the actual content >> (clearly visible with the regular spikes shown as "lines" at regular >> intervals in the luma spectrum): >> >> --- >> mhusinsky$ ffplay -color_range 2 -vf >> histogram=mode=waveform:waveform_mode=column:waveform_mirror=1 >> fullrange_y.mp4 >> ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg >> developers >> built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 >> (clang-500.2.79) (based on LLVM 3.3svn) >> configuration: --prefix=/opt/local --enable-swscale --enable-avfilter >> --enable-avresample --enable-libmp3lame --enable-libvorbis >> --enable-libopus --enable-libtheora --enable-libschroedinger >> --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex >> --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype >> --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man >> --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 >> --enable-yasm --enable-gpl --enable-postproc --enable-libx264 >> --enable-libxvid --enable-version3 --enable-libopencore-amrnb >> --enable-libopencore-amrwb --enable-nonfree --enable-libfaac >> libavutil 52. 56.100 / 52. 56.100 >> libavcodec 55. 44.100 / 55. 44.100 >> libavformat 55. 21.102 / 55. 21.102 >> libavdevice 55. 5.102 / 55. 5.102 >> libavfilter 3. 91.100 / 3. 91.100 >> libavresample 1. 1. 0 / 1. 1. 0 >> libswscale 2. 5.101 / 2. 5.101 >> libswresample 0. 17.104 / 0. 17.104 >> libpostproc 52. 3.100 / 52. 3.100 >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4':B f=0/0 >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> encoder : Lavf55.21.102 >> Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s >> Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / >> 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 >> tbr, 12k tbn, 24k tbc (default) >> Metadata: >> handler_name : VideoHandler >> [swscaler @ 0x7f80fd11f400] deprecated pixel format used, make sure you >> did set range correctly >> 1.62 M-V: -0.001 fd= 1 aq= 0KB vq= 163KB sq= 0B f=0/0 >> >> --- >> >> >> >> Trying to force a certain format like this does not improve the situation: >> ffplay -color_range 2 -vf >> format=pix_fmts=yuvj420p,histogram=mode=waveform:waveform_mode=column:wavef >> orm_mirror=1 fullrange_y.mp4 >> >> >> >> I found that applying the filter in ffmpeg and piping the output to ffplay >> actually works as intended. >> >> --- >> mhusinsky$ ffmpeg -i fullrange_y.mp4 -vf >> histogram=mode=waveform:waveform_mode=column:waveform_mirror=1 -c:v >> rawvideo -f nut - |ffplay - >> ffmpeg version 2.1.git-65f41b5 Copyright (c) 2000-2013 the FFmpeg >> developers >> built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 >> (clang-500.2.79) (based on LLVM 3.3svn) >> configuration: --prefix=/opt/local --enable-swscale --enable-avfilter >> --enable-avresample --enable-libmp3lame --enable-libvorbis >> --enable-libopus --enable-libtheora --enable-libschroedinger >> --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex >> --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype >> --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man >> --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 >> --enable-yasm --enable-gpl --enable-postproc --enable-libx264 >> --enable-libxvid --enable-version3 --enable-libopencore-amrnb >> --enable-libopencore-amrwb --enable-nonfree --enable-libfaac >> libavutil 52. 56.100 / 52. 56.100 >> libavcodec 55. 44.100 / 55. 44.100 >> libavformat 55. 21.102 / 55. 21.102 >> libavdevice 55. 5.102 / 55. 5.102 >> libavfilter 3. 91.100 / 3. 91.100 >> libavresample 1. 1. 0 / 1. 1. 0 >> libswscale 2. 5.101 / 2. 5.101 >> libswresample 0. 17.104 / 0. 17.104 >> libpostproc 52. 3.100 / 52. 3.100 >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fullrange_y.mp4': >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> encoder : Lavf55.21.102 >> Duration: 00:00:02.00, start: 0.000000, bitrate: 37435 kb/s >> Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / >> 0x31637661), yuvj420p(pc, smpte170m), 1920x1080, 37431 kb/s, 30 fps, 30 >> tbr, 12k tbn, 24k tbc (default) >> Metadata: >> handler_name : VideoHandler >> Output #0, nut, to 'pipe:': >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> encoder : Lavf55.21.102 >> Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuvj420p, 1920x768 >> [SAR 1:1 DAR 5:2], q=2-31, 200 kb/s, 61440 tbn, 30 tbc (default) >> Metadata: >> X-Language : eng >> handler_name : VideoHandler >> Stream mapping: >> Stream #0:0 -> #0:0 (h264 -> rawvideo) >> Press [q] to stop, [?] for help >> ffplay version 2.1.git-65f41b5 Copyright (c) 2003-2013 the FFmpeg >> developers >> built on Dec 3 2013 21:42:13 with Apple LLVM version 5.0 >> (clang-500.2.79) (based on LLVM 3.3svn) >> configuration: --prefix=/opt/local --enable-swscale --enable-avfilter >> --enable-avresample --enable-libmp3lame --enable-libvorbis >> --enable-libopus --enable-libtheora --enable-libschroedinger >> --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex >> --enable-libass --enable-libbluray --enable-gnutls --enable-libfreetype >> --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man >> --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 >> --enable-yasm --enable-gpl --enable-postproc --enable-libx264 >> --enable-libxvid --enable-version3 --enable-libopencore-amrnb >> --enable-libopencore-amrwb --enable-nonfree --enable-libfaac >> libavutil 52. 56.100 / 52. 56.100 >> libavcodec 55. 44.100 / 55. 44.100 >> libavformat 55. 21.102 / 55. 21.102 >> libavdevice 55. 5.102 / 55. 5.102 >> libavfilter 3. 91.100 / 3. 91.100 >> libavresample 1. 1. 0 / 1. 1. 0 >> libswscale 2. 5.101 / 2. 5.101 >> libswresample 0. 17.104 / 0. 17.104 >> libpostproc 52. 3.100 / 52. 3.100 >> Input #0, nut, from 'pipe:':aq= 0KB vq= 0KB sq= 0B f=0/0 >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> encoder : Lavf55.21.102 >> Duration: N/A, start: 0.000000, bitrate: N/A >> Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p, >> 1920x768, SAR 1:1 DAR 5:2, 30 fps, 30 tbr, 61440 tbn, 61440 tbc (default) >> Metadata: >> handler_name : VideoHandler >> frame= 60 fps= 33 q=0.0 Lsize= 129602kB time=00:00:02.00 >> bitrate=530851.7kbits/s >> video:129600kB audio:0kB subtitle:0 global headers:0kB muxing overhead >> 0.001901% >> 3.02 M-V: -0.033 fd= 4 aq= 0KB vq= 0KB sq= 0B f=0/0 >> --- >> >> >> Now is there any possibility to achieve this behaviour in ffplay directly >> (i.e. by not piping outputs)? I find it confusing that the levels and >> waveform mode behave differently in ffplay. The trick is to force the format at the end of the filter chain, this way to yuvj420 -> yuv420 conversion will only take place in the very end, after the histogram has been calculated. > Because ffplay somehow somewhere (in middle of filtergraph) inserts > another format > filter and output to something unexpected. > Actually ffplay sets up the filter graph only with yuvj420 input and yuv420 output, and avfilter auto inserts the format conversion scaler somewhere in the graph. (In your case, into the beginning of the chain rather than into the end). I'm asking the others, is this intentional/documented behaviour of avfilter? is there a way to specify it to only do it in the end of the filter chain? Because if there is a way to ensure this, probably that is what the users would want, so I'm more than happy to change ffplay to work like that. >> Am I doing something wrong or is this a bug of ffplay? I^1m using the >> histogram mainly for inspection purposes and would prefer doing it >> directly in ffplay. > > ffplay is a toy. You should use something that can use better graphic > output than SDL. > >> >> Thank you, >> Matthias >> >> _______________________________________________ >> 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 > Regards, Marton From nageshblore at gmail.com Fri Dec 6 22:42:54 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Sat, 7 Dec 2013 03:12:54 +0530 Subject: [FFmpeg-user] Video concatenation not working. Message-ID: Hi, I have two mp4 files that I am trying to concatenate with the demuxer. The resulting video is just a blank green screen with some flicker here and there. What am I missing ? The list.txt does have the two video files I wish to concatenate. If it helps, the first one is a video generated out of a png image. Here is the command and result: user at host:~/mp4$ ffmpeg -f concat -i list.txt -c copy output.mp4 ffmpeg version git-2013-12-01-975110a Copyright (c) 2000-2013 the FFmpeg developers built on Dec 2 2013 02:23:37 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [concat @ 0x2dca900] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'list.txt': Duration: 00:00:00.00, start: 0.000000, bitrate: 2234 kb/s Stream #0:0: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 720x486 [SAR 1:1 DAR 40:27], 2152 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc Output #0, mp4, to 'output.mp4': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv444p, 720x486 [SAR 1:1 DAR 40:27], q=2-31, 2152 kb/s, 25 fps, 12800 tbn, 12800 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [concat @ 0x2dca900] Invalid stream index 1 Last message repeated 5247 times [concat @ 0x2dca900] Invalid stream index 1time=00:00:00.28 bitrate=51720.5kbits/s Last message repeated 4903 times [concat @ 0x2dca900] Invalid stream index 1 time=00:00:00.55 bitrate=60579.8kbits/s Last message repeated 5426 times [concat @ 0x2dca900] Invalid stream index 1 time=00:00:00.84 bitrate=72399.4kbits/s Last message repeated 5365 times [concat @ 0x2dca900] Invalid stream index 1 time=00:00:01.13 bitrate=103296.4kbits/s Last message repeated 3800 times frame= 8620 fps=3537 q=-1.0 Lsize= 19020kB time=00:00:01.34 bitrate=115698.0kbits/s video:18985kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.186236% From steve at aatw.com Fri Dec 6 22:47:35 2013 From: steve at aatw.com (Steve Kelly) Date: Fri, 6 Dec 2013 21:47:35 +0000 Subject: [FFmpeg-user] Quicktime IMX encode failing on v2.1 In-Reply-To: References: <2EB2E32C-E430-4817-80BF-466D14ACC727@aatw.com> Message-ID: <39E2AB35-324C-4E7A-AC10-D30B4CA5EF14@aatw.com> Hi Carl, On 5 Dec 2013, at 22:46, Carl Eugen Hoyos wrote: > Steve Kelly aatw.com> writes: > >> The video encode command we used previously is: >> >> /usr/local/bin/ffmpeg -i "Input.mpg" -threads 1 >> -vf "scale=720:576:1,pad=720:608:0:32" -vcodec mpeg2video >> -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k >> -b:v 50000k -intra -flags +ildct+low_delay -dc 10 > >> -flags2 +ivlc+non_linear_q > > If this worked fine and you are using now: >> -intra_vlc 0 -non_linear_quant 0 > > then our option-handling decision was really very bad;-( > I suspect that -flags2 +ivlc became -intra_vlc 1 > _^_ _^_ > > Is that really so counter-intuitive? Not once explained, but trying to find in the docs from cold with no obvious link or change log relating it to what went before is not so straightforward for someone who doesn't keep entirely up to speed with project. Completely appreciate the difficulties in keeping very high level documentation with a (brilliant) project like this but when things change at the pace they do, but when they do change it sometimes isn't immediately obvious until something stops working. I guess it would be good if the command line output could indicate deprecated switches and indicate the new method but understand that could be a huge undertaking. > > Please test if that helps, if not please try to explain > if the problem can be reproduced without mediainfo - we > have to find the change introducing the problem. > Ok, I ran the command with the changes as above. I'm keeping the old workflow of separate video and audio encodes, then mux afterwards for now to minimise the room for introducing other errors in a single command Below this I've included the output of a 0.7.13, this generates a valid IMX file. I've included ffprobe and mediainfo output for both incase it is of any use. Many Thanks, Steve ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- VIDEO ENCODE # /usr/local/bin/ffmpeg -i "Input.mpg" -vf "scale=720:576:1,pad=720:608:0:32" -vcodec mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+low_delay -dc 10 -intra_vlc 1 -non_linear_quant 1 -ps 1 -qmin 1 -qmax 3 -top 1 -bufsize 2000000 -rc_init_occupancy 2000000 -an -y "Output.m2v" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [pcm_dvd @ 0x8088fdb20] block_size has changed [mpeg @ 0x8088db420] Stream #1: not enough frames to estimate rate; consider increasing probesize Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mpeg, from 'Input.mpg': Duration: 00:05:26.12, start: 0.957178, bitrate: 52933 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s Output #0, mpeg2video, to 'Output.m2v': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: mpeg2video, yuv422p, 720x608 [SAR 16:15 DAR 24:19], q=1-3, 50000 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video) Press [q] to stop, [?] for help frame= 8153 fps= 49 q=1.6 Lsize= 1990479kB time=00:05:26.12 bitrate=50000.0kbits/s video:1990479kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- AUDIO ENCODE # /usr/local/bin/ffmpeg -i "Input.mpg" -vn -ar 48000 -acodec pcm_s16le -y "Output.wav" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [pcm_dvd @ 0x8088fdb20] block_size has changed [mpeg @ 0x8088db420] Stream #1: not enough frames to estimate rate; consider increasing probesize Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mpeg, from 'Input.mpg': Duration: 00:05:26.12, start: 0.957178, bitrate: 52933 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p(tv), 720x576 [SAR 16:15 DAR 4:3], max. 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s Output #0, wav, to 'Output.wav': Metadata: ISFT : Lavf55.19.104 Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:1 -> #0:0 (pcm_dvd -> pcm_s16le) Press [q] to stop, [?] for help [pcm_dvd @ 0x8088fdb20] block_size has changed size= 61148kB time=00:05:26.12 bitrate=1536.0kbits/s video:0kB audio:61148kB subtitle:0 global headers:0kB muxing overhead 0.000128% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- MUX # /usr/local/bin/ffmpeg -i "Output.m2v" -i "Output.wav" -c:v copy -tag:v mx5p -bsf:v imxdump -c:a copy -y "Output_IMX.mov" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegvideo, from 'Output.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv), 720x608 [SAR 152:135 DAR 4:3], max. 50000 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from 'Output.wav': Metadata: encoder : Lavf55.19.104 Duration: 00:05:26.12, bitrate: 1536 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s [mov @ 0x8088dc020] WARNING codec timebase is very high. If duration is too long, file may not be playable by quicktime. Specify a shorter timebase or choose different container. Output #0, mov, to 'Output_IMX.mov': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: mpeg2video (mx5p / 0x7035786D), yuv422p, 720x608 [SAR 152:135 DAR 4:3], q=2-31, max. 50000 kb/s, 25 fps, 1200k tbn, 1200k tbc Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 8153 fps=236 q=-1.0 Lsize= 2051874kB time=00:05:26.12 bitrate=51542.2kbits/s video:1990479kB audio:61148kB subtitle:0 global headers:0kB muxing overhead 0.012093% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ffprobe of Output: ffprobe Output_IMX.mov ffprobe version 2.1 Copyright (c) 2007-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Output_IMX.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf55.19.104 Duration: 00:05:26.12, start: 0.000000, bitrate: 51542 kb/s Stream #0:0(eng): Video: mpeg2video (4:2:2) (m2v1 / 0x3176326D), yuv422p(tv), 720x608 [SAR 152:135 DAR 4:3], 50004 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc (default) Metadata: handler_name : DataHandler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: handler_name : DataHandler ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- MEDIAINFO # mediainfo Output_IMX.mov General Complete name : Output_IMX.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 1.96 GiB Duration : 5mn 26s Overall bit rate mode : Constant Overall bit rate : 51.5 Mbps Writing application : Lavf55.19.104 Video ID : 1 Format : m2v1 Codec ID : m2v1 Duration : 5mn 26s Bit rate mode : Constant Bit rate : 50.0 Mbps Width : 720 pixels Height : 608 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 25.000 fps Bits/(Pixel*Frame) : 4.569 Stream size : 1.90 GiB (97%) Language : English Audio ID : 2 Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : sowt Duration : 5mn 26s Bit rate mode : Constant Bit rate : 1 536 Kbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 59.7 MiB (3%) Language : English ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- I've run the same sequence of commands via a version of ffmpeg that generates a valid IMX file (0.7.13) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- VIDEO # ffmpeg -i Input.mpg -vf "scale=720:576:1,pad=720:608:0:32" -vcodec mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b 50000k -intra -flags +ildct+low_delay -dc 10 -flags2 +ivlc+non_linear_q -ps 1 -qmin 1 -qmax 3 -top 1 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -an Output.m2v ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719 [FreeBSD] configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree libavutil 50. 43. 0 / 50. 43. 0 libavcodec 52.123. 0 / 52.123. 0 libavformat 52.111. 0 / 52.111. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 80. 0 / 1. 80. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from 'Input.mpg': Duration: 00:05:26.11, start: 0.957178, bitrate: 52933 kb/s Stream #0.0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p, 720x576 [PAR 16:15 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s [buffer @ 0x805d43100] w:720 h:576 pixfmt:yuv422p tb:1/1000000 sar:16/15 sws_param: [scale @ 0x805d431e0] w:720 h:576 fmt:yuv422p -> w:720 h:576 fmt:yuv422p flags:0x4 [pad @ 0x805d43260] w:720 h:576 -> w:720 h:608 x:0 y:32 color:0x108080FF[yuva] Output #0, mpeg2video, to 'Output.m2v': Metadata: encoder : Lavf52.111.0 Stream #0.0: Video: mpeg2video, yuv422p, 720x608 [PAR 16:15 DAR 24:19], q=1-3, 50000 kb/s, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help frame= 8153 fps= 69 q=24.8 Lsize= 1990479kB time=00:05:26.12 bitrate=50000.0kbits/s video:1990479kB audio:0kB global headers:0kB muxing overhead 0.000000% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- AUDIO # ffmpeg -i Input.mpg -acodec pcm_s16le -ar 48000 Output.wav ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719 [FreeBSD] configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree libavutil 50. 43. 0 / 50. 43. 0 libavcodec 52.123. 0 / 52.123. 0 libavformat 52.111. 0 / 52.111. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 80. 0 / 1. 80. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from 'Input.mpg': Duration: 00:05:26.11, start: 0.957178, bitrate: 52933 kb/s Stream #0.0[0x1e0]: Video: mpeg2video (4:2:2), yuv422p, 720x576 [PAR 16:15 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0xa0]: Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s Output #0, wav, to 'Output.wav': Metadata: encoder : Lavf52.111.0 Stream #0.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop, [?] for help size= 61148kB time=00:05:26.12 bitrate=1536.0kbits/s video:0kB audio:61148kB global headers:0kB muxing overhead 0.000070% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- MUX # ffmpeg -i Output.m2v -vcodec copy -i Output.wav -acodec copy -vtag mx5p -vbsf imxdump Output_IMX.mov ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719 [FreeBSD] configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree libavutil 50. 43. 0 / 50. 43. 0 libavcodec 52.123. 0 / 52.123. 0 libavformat 52.111. 0 / 52.111. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 80. 0 / 1. 80. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 [mpegvideo @ 0x805d5e020] Estimating duration from bitrate, this may be inaccurate Input #0, mpegvideo, from 'Output.m2v': Duration: 00:05:26.12, bitrate: 50000 kb/s Stream #0.0: Video: mpeg2video (4:2:2), yuv422p, 720x608 [PAR 152:135 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc [wav @ 0x8060fa020] max_analyze_duration 5000000 reached at 5013333 Input #1, wav, from 'Output.wav': Duration: 00:05:26.12, bitrate: 1536 kb/s Stream #1.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Output #0, mov, to 'Output_IMX.mov': Metadata: encoder : Lavf52.111.0 Stream #0.0: Video: mpeg2video, yuv422p, 720x608 [PAR 152:135 DAR 4:3], q=2-31, 50000 kb/s, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, 1536 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1 Press [q] to stop, [?] for help frame= 8153 fps= 69 q=-1.0 Lsize= 2051878kB time=00:05:26.12 bitrate=51542.3kbits/s video:1990479kB audio:61148kB global headers:0kB muxing overhead 0.012282% ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ffprobe # ffprobe Output_IMX.mov ffprobe version 0.7.13, Copyright (c) 2007-2011 the FFmpeg developers built on Aug 25 2012 16:07:45 with gcc 4.2.1 20070719 [FreeBSD] configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-pthreads --enable-memalign-hack --enable-runtime-cpudetect --cc=cc --extra-cflags='-I/usr/local/include/vorbis -I/usr/local/include' --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread --disable-debug --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcelt --enable-libdirac --enable-libfaac --enable-libfreetype --enable-frei0r --disable-libgsm --enable-libmp3lame --enable-libopencv --enable-libopenjpeg --disable-librtmp --disable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --disable-libxvid --enable-nonfree libavutil 50. 43. 0 / 50. 43. 0 libavcodec 52.123. 0 / 52.123. 0 libavformat 52.111. 0 / 52.111. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 80. 0 / 1. 80. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Output_IMX.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt creation_time : 1970-01-01 00:00:00 encoder : Lavf52.111.0 Duration: 00:05:26.12, start: 0.000000, bitrate: 51542 kb/s Stream #0.0(eng): Video: mpeg2video (4:2:2), yuv422p, 720x608 [PAR 152:135 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: creation_time : 1970-01-01 00:00:00 Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 1970-01-01 00:00:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- MEDIAINFO # mediainfo Output_IMX.mov General Complete name : Output_IMX.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 1.96 GiB Duration : 5mn 26s Overall bit rate : 51.5 Mbps Writing application : Lavf52.111.0 Video ID : 1 Format : mx5p Codec ID : mx5p Duration : 5mn 26s Bit rate mode : Constant Bit rate : 50.0 Mbps Width : 720 pixels Height : 576 pixels Display aspect ratio : 1.408 Frame rate mode : Constant Frame rate : 25.000 fps Standard : PAL Bits/(Pixel*Frame) : 4.823 Stream size : 1.90 GiB (97%) Language : English Audio ID : 2 Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : sowt Duration : 5mn 26s Bit rate mode : Constant Bit rate : 1 536 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 59.7 MiB (3%) Language : English > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From stefasab at gmail.com Fri Dec 6 23:49:40 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 6 Dec 2013 23:49:40 +0100 Subject: [FFmpeg-user] Change output file at specific time In-Reply-To: <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> References: <1273263823.238538330.1386343480447.JavaMail.root@zimbra74-e12.priv.proxad.net> <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: <20131206224940.GG2194@barisone> On date Friday 2013-12-06 16:32:03 +0100, frafart at free.fr wrote: > Hi, > > I try to generate 5 minutes long TS file's from an udp streams. I > can do it with segment (the accuracy is not very high but it works > and I don't have really work on all the segment options). > My problem is : I want that the file rotate at specific time (at > 00:00:00, 00:05:00, 00:05:10, ...). > > Is there a way with ffmpeg to specify not a duration but, for > exemple an test like timestamp % 300 = 0 ? No, but we should probably extend the code (and adopt something similar to ffmpeg -force_key_frames). > Another question : Can I use an extended pattern for the file name > (%H for hours, %M for minute, ...) ? No, this also could be implemented. Feel free to file feature requests on trac. -- FFmpeg = Formidable Funny MultiPurpose Enlightened Gargoyle From cehoyos at ag.or.at Sat Dec 7 00:03:10 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 6 Dec 2013 23:03:10 +0000 (UTC) Subject: [FFmpeg-user] Video concatenation not working. References: Message-ID: ?????? ??????????? (Nagesh S gmail.com> writes: > I have two mp4 files that I am trying to concatenate with > the demuxer. The resulting video is just a blank green > screen with some flicker here and there. Which application shows "some flicker"? > $ ffmpeg -f concat -i list.txt Please provide ffmpeg -i output for the files in list.txt Carl Eugen From cehoyos at ag.or.at Sat Dec 7 00:06:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 6 Dec 2013 23:06:38 +0000 (UTC) Subject: [FFmpeg-user] Quicktime IMX encode failing on v2.1 References: <2EB2E32C-E430-4817-80BF-466D14ACC727@aatw.com> <39E2AB35-324C-4E7A-AC10-D30B4CA5EF14@aatw.com> Message-ID: Steve Kelly aatw.com> writes: > > I suspect that -flags2 +ivlc became -intra_vlc 1 > > _^_ _^_ > > Please test if that helps, if not please try to explain > > if the problem can be reproduced without mediainfo - we > > have to find the change introducing the problem. > > Ok, I ran the command with the changes as above. I'm > keeping the old workflow of separate video and audio > encodes, then mux afterwards for now to minimise the > room for introducing other errors in a single command (That is probably a bad idea, but unrelated.) Sorry, I am not sure I understand: Did changing -intra_vlc 0 to -intra_vlc 1 and -non_linear_quant 0 to -non_linear_quant 1 help or not? And could you clarify if I can reproduce the issue (that the file is not correct) only with Mediainfo or is there another possibility? Carl Eugen From steve at aatw.com Sat Dec 7 01:30:12 2013 From: steve at aatw.com (Steve) Date: Sat, 7 Dec 2013 00:30:12 +0000 Subject: [FFmpeg-user] Quicktime IMX encode failing on v2.1 In-Reply-To: References: <2EB2E32C-E430-4817-80BF-466D14ACC727@aatw.com> <39E2AB35-324C-4E7A-AC10-D30B4CA5EF14@aatw.com> Message-ID: <151C2EB9-E877-4F78-ACDA-11C3CC3ACDA9@aatw.com> Your changes work in that ffmpeg now runs without error and creates an m2v file but does not solve the problem the mux stage does not create an IMX file. Media info included as it shows the file codec is listed different to previous whereas ffprobe does not I can see the problem elsewhere as FCP refuses to open the new encode, says it's an invalid file, QuickTime opens but won't play back, QuickTime inspector shows codec is not right and vlc likewise - the final output file has codec id of m2v1 not mx5p as before. I think the mpeg2 encode works ok (but no direct way of checking) but the wrapping into the IMX mov fails to set the codec correctly. Old version makes no mention of m2v1. The new version also encodes at 50004 kbps, not 50000 Kbps though unsure as to why. Is this an issue that would stop the imxdump working? New: Stream #0:0(eng): Video: mpeg2video (4:2:2) (m2v1 / 0x3176326D), yuv422p(tv), 720x608 [SAR 152:135 DAR 4:3], 50004 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc Old: Stream #0.0(eng): Video: mpeg2video (4:2:2), yuv422p, 720x608 [PAR 152:135 DAR 4:3], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc > On 6 Dec 2013, at 23:06, Carl Eugen Hoyos wrote: > > Steve Kelly aatw.com> writes: > >>> I suspect that -flags2 +ivlc became -intra_vlc 1 >>> _^_ _^_ > >>> Please test if that helps, if not please try to explain >>> if the problem can be reproduced without mediainfo - we >>> have to find the change introducing the problem. >> >> Ok, I ran the command with the changes as above. I'm >> keeping the old workflow of separate video and audio >> encodes, then mux afterwards for now to minimise the >> room for introducing other errors in a single command > > (That is probably a bad idea, but unrelated.) > > Sorry, I am not sure I understand: > Did changing -intra_vlc 0 to -intra_vlc 1 and > -non_linear_quant 0 to -non_linear_quant 1 help or not? > > And could you clarify if I can reproduce the issue (that > the file is not correct) only with Mediainfo or is > there another possibility? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nageshblore at gmail.com Sat Dec 7 05:22:16 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Sat, 7 Dec 2013 09:52:16 +0530 Subject: [FFmpeg-user] Video concatenation not working. In-Reply-To: References: Message-ID: >>>Which application shows "some flicker"? ffplay. I must say that the flicker is less and somewhat unpredictable. It is the completely blank screen that is more worrisome. ffmpeg -i output as below: user at host:~/mp4$ ffmpeg -i video1.mp4 ffmpeg version git-2013-12-01-975110a Copyright (c) 2000-2013 the FFmpeg developers built on Dec 2 2013 02:23:37 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.22.100 Duration: 00:00:05.00, start: 0.000000, bitrate: 42 kb/s Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 720x486 [SAR 1:1 DAR 40:27], 38 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) Metadata: handler_name : VideoHandler user at host:~/mp4$ ffmpeg -i video2.mp4 ffmpeg version git-2013-12-01-975110a Copyright (c) 2000-2013 the FFmpeg developers built on Dec 2 2013 02:23:37 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video2.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2012-12-02 05:33:29 Duration: 00:09:34.60, start: 0.000000, bitrate: 416 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 270 kb/s, 15 fps, 15 tbr, 30 tbn, 30 tbc (default) Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 143 kb/s (default) Metadata: creation_time : 2012-12-02 05:33:29 handler_name : IsoMedia File Produced by Google, 5-11-2011 At least one output file must be specified From deron at pagestream.org Sat Dec 7 06:11:34 2013 From: deron at pagestream.org (Deron) Date: Fri, 06 Dec 2013 22:11:34 -0700 Subject: [FFmpeg-user] Confusion with recording RTMP stream Message-ID: <52A2AE06.5030302@pagestream.org> Seems like a simple thing. I would like to record a live stream from http://weathernationtv.com/OnTV (their on-air live stream), but I can't seem to get it to work. Using some product on Windows called MediaBox, it gave me this info: url: rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781 app: live flashVer: WIN 11,9,900,152 pageUrl: http://weathernationtv.com/OnTV swfUrl: http://cdnbakmi.kaltura.com/p/931702/sp/93170200/flash/kdp3/v3.9.4/kdp3.swf tcUrl: rtmp://cp77659.live.edgefcs.net/live playPath: 0_c6zkpyg0_1 at 2781 So I tried this simple command: ffmpeg -i "rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781" temp.mp4 And got: ffmpeg version N-55930-g4fa00c5 Copyright (c) 2000-2013 the FFmpeg developers built on Aug 31 2013 11:27:18 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libvorbis --enable-libfaac --enable-libopenjpeg --enable-librtmp libavutil 52. 43.100 / 52. 43.100 libavcodec 55. 29.100 / 55. 29.100 libavformat 55. 15.100 / 55. 15.100 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 82.102 / 3. 82.102 libswscale 2. 5.100 / 2. 5.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Closing connection: NetStream.Play.StreamNotFound rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781: Unknown error occurred Any suggestions, or good tutorial on figuring this out? Thanks! Deron From anatol2002 at gmail.com Sat Dec 7 06:51:40 2013 From: anatol2002 at gmail.com (Anatol) Date: Sat, 7 Dec 2013 07:51:40 +0200 Subject: [FFmpeg-user] Confusion with recording RTMP stream In-Reply-To: <52A2AE06.5030302@pagestream.org> References: <52A2AE06.5030302@pagestream.org> Message-ID: Check your rtmp stream with Akamai Flash Support Player http://support.akamai.com/flash/. It gives the same error there, On Sat, Dec 7, 2013 at 7:11 AM, Deron wrote: > Seems like a simple thing. I would like to record a live stream from > http://weathernationtv.com/OnTV (their on-air live stream), but I can't > seem to get it to work. > > Using some product on Windows called MediaBox, it gave me this info: > > url: rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781 > app: live > flashVer: WIN 11,9,900,152 > pageUrl: http://weathernationtv.com/OnTV > swfUrl: http://cdnbakmi.kaltura.com/p/931702/sp/93170200/flash/kdp3/ > v3.9.4/kdp3.swf > tcUrl: rtmp://cp77659.live.edgefcs.net/live > playPath: 0_c6zkpyg0_1 at 2781 > > > So I tried this simple command: > > ffmpeg -i "rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781" > temp.mp4 > > And got: > > ffmpeg version N-55930-g4fa00c5 Copyright (c) 2000-2013 the FFmpeg > developers > built on Aug 31 2013 11:27:18 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-shared --enable-gpl --enable-nonfree > --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libvorbis > --enable-libfaac --enable-libopenjpeg --enable-librtmp > libavutil 52. 43.100 / 52. 43.100 > libavcodec 55. 29.100 / 55. 29.100 > libavformat 55. 15.100 / 55. 15.100 > libavdevice 55. 3.100 / 55. 3.100 > libavfilter 3. 82.102 / 3. 82.102 > libswscale 2. 5.100 / 2. 5.100 > libswresample 0. 17.103 / 0. 17.103 > libpostproc 52. 3.100 / 52. 3.100 > Closing connection: NetStream.Play.StreamNotFound > rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781: Unknown error > occurred > > > Any suggestions, or good tutorial on figuring this out? Thanks! > > Deron > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From anatol2002 at gmail.com Sat Dec 7 06:55:24 2013 From: anatol2002 at gmail.com (Anatol) Date: Sat, 7 Dec 2013 07:55:24 +0200 Subject: [FFmpeg-user] Confusion with recording RTMP stream In-Reply-To: References: <52A2AE06.5030302@pagestream.org> Message-ID: And furthermore, if they don't intend everybody to get their RTMP stream, may be u shouldn't try to ... On Sat, Dec 7, 2013 at 7:51 AM, Anatol wrote: > Check your rtmp stream with Akamai Flash Support Player > http://support.akamai.com/flash/. > It gives the same error there, > > > On Sat, Dec 7, 2013 at 7:11 AM, Deron wrote: > >> Seems like a simple thing. I would like to record a live stream from >> http://weathernationtv.com/OnTV (their on-air live stream), but I can't >> seem to get it to work. >> >> Using some product on Windows called MediaBox, it gave me this info: >> >> url: rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781 >> app: live >> flashVer: WIN 11,9,900,152 >> pageUrl: http://weathernationtv.com/OnTV >> swfUrl: http://cdnbakmi.kaltura.com/p/931702/sp/93170200/flash/kdp3/ >> v3.9.4/kdp3.swf >> tcUrl: rtmp://cp77659.live.edgefcs.net/live >> playPath: 0_c6zkpyg0_1 at 2781 >> >> >> So I tried this simple command: >> >> ffmpeg -i "rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781" >> temp.mp4 >> >> And got: >> >> ffmpeg version N-55930-g4fa00c5 Copyright (c) 2000-2013 the FFmpeg >> developers >> built on Aug 31 2013 11:27:18 with gcc 4.6 (Ubuntu/Linaro >> 4.6.3-1ubuntu5) >> configuration: --enable-shared --enable-gpl --enable-nonfree >> --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libvorbis >> --enable-libfaac --enable-libopenjpeg --enable-librtmp >> libavutil 52. 43.100 / 52. 43.100 >> libavcodec 55. 29.100 / 55. 29.100 >> libavformat 55. 15.100 / 55. 15.100 >> libavdevice 55. 3.100 / 55. 3.100 >> libavfilter 3. 82.102 / 3. 82.102 >> libswscale 2. 5.100 / 2. 5.100 >> libswresample 0. 17.103 / 0. 17.103 >> libpostproc 52. 3.100 / 52. 3.100 >> Closing connection: NetStream.Play.StreamNotFound >> rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781: Unknown error >> occurred >> >> >> Any suggestions, or good tutorial on figuring this out? Thanks! >> >> Deron >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From andrey.aleksandrovich at googlemail.com Sat Dec 7 08:17:52 2013 From: andrey.aleksandrovich at googlemail.com (Andrey Aleksandrovich) Date: Sat, 7 Dec 2013 09:17:52 +0200 Subject: [FFmpeg-user] Need help to find "proper" way to get deinterlaced 1080p30 from lossless and 1080p60 sources. In-Reply-To: References: Message-ID: Try to do some screenshots or dynamic scenes - you will see it's interlaced/progressive/telecined. On 12/6/13, Timur Zaripov wrote: > Hello everyone! > > I spent quite a bit of time trying to wrap my head around > interlacing/deinterlacing, but can't seem to get any clarity on an issue. > > Practical problems I am trying to solve are: > - encoding lossless lagarith 1080p30 source to x264 1080p30 which > guaranteed to have progressed frames (as youtube requires); > - re-encoding 1080p60 x264 encoded Nvidia Shadowplay source in the same > way. > > Main issue I have is that I can't tell if original sources are interlaced > or not and if they are not, than may be I am just wasting time and > resources using -deinterlace option? > > Command line I am using to encode looks like this: > ffmpeg.exe -i %1 -map 0:0 -c:v libx264 -crf 18 -preset slow -pix_fmt > yuv420p -deinterlace -r 30 -map 0:1 -c:a copy %targetVid% > > Any help will be appreciated. > > WBR, > Timur Zaripov > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stefasab at gmail.com Sat Dec 7 11:27:58 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Sat, 7 Dec 2013 11:27:58 +0100 Subject: [FFmpeg-user] Change output file at specific time In-Reply-To: <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> References: <1273263823.238538330.1386343480447.JavaMail.root@zimbra74-e12.priv.proxad.net> <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: <20131207102758.GI2194@barisone> On date Friday 2013-12-06 16:32:03 +0100, frafart at free.fr wrote: > Hi, > > I try to generate 5 minutes long TS file's from an udp streams. I > can do it with segment (the accuracy is not very high but it works > and I don't have really work on all the segment options). > My problem is : I want that the file rotate at specific time (at > 00:00:00, 00:05:00, 00:05:10, ...). -segment_times, you need a recent ffmpeg version though. From cehoyos at ag.or.at Sat Dec 7 11:40:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Dec 2013 10:40:41 +0000 (UTC) Subject: [FFmpeg-user] Video concatenation not working. References: Message-ID: ?????? ??????????? (Nagesh S gmail.com> writes: > Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) > (avc1 / 0x31637661), yuv444p, 720x486 [SAR 1:1 DAR 40:27], > 38 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default) > Stream #0:0(und): Video: h264 (High) > (avc1 / 0x31637661), yuv420p, 1280x720, > 270 kb/s, 15 fps, 15 tbr, 30 tbn, 30 tbc (default) I don't think you can concatenate two (very) different streams with -codec copy, at least not in a mov container. Try to encode your png with -pix_fmt yuv420p -s 1280x720. Carl Eugen From cehoyos at ag.or.at Sat Dec 7 11:43:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 7 Dec 2013 10:43:33 +0000 (UTC) Subject: [FFmpeg-user] Need help to find "proper" way to get deinterlaced 1080p30 from lossless and 1080p60 sources. References: Message-ID: Timur Zaripov gmail.com> writes: > Main issue I have is that I can't tell if original sources > are interlaced or not The idet filter can tell you but be careful it is not made for telecined input. > and if they are not, than may be I am just wasting time and > resources using -deinterlace option? The performance hit is one issue, the fact that deinterlacing damages your input is second problem. > Command line I am using to encode looks like this: > ffmpeg.exe -i %1 -map 0:0 -c:v libx264 -crf 18 > -preset slow -pix_fmt yuv420p -deinterlace -r 30 > -map 0:1 -c:a copy %targetVid% Try to avoid "-deinterlace", use "-vf yadif" instead. (I find the -r 30 suspicious in your command, but maybe you know what you are doing.) Carl Eugen From nageshblore at gmail.com Sat Dec 7 12:28:21 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Sat, 7 Dec 2013 16:58:21 +0530 Subject: [FFmpeg-user] Video concatenation not working. In-Reply-To: References: Message-ID: Ok. I will try as soon as I am close to my computer. So, the mp4 from png turns out to be different from the other (original) mp4. From george at nsup.org Sat Dec 7 12:33:20 2013 From: george at nsup.org (Nicolas George) Date: Sat, 7 Dec 2013 12:33:20 +0100 Subject: [FFmpeg-user] Video concatenation not working. In-Reply-To: References: Message-ID: <20131207113320.GB29510@phare.normalesup.org> Le septidi 17 frimaire, an CCXXII, ?????? ??????????? (Nagesh S) a ?crit?: > Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / > 0x31637661), yuv444p, 720x486 [SAR 1:1 DAR 40:27], 38 kb/s, 25 fps, 25 tbr, > 12800 tbn, 50 tbc (default) > Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1280x720, 270 kb/s, 15 fps, 15 tbr, 30 tbn, 30 tbc (default) As Carl Eugen said, it is not at all certain you can just concatenate together streams that are so different. At the very least you would need to chose the right time base, and the result would be variable frame rate, which, unless I am mistaken, is not possible with FFmpeg's MP4 muxer. > Metadata: > creation_time : 1970-01-01 00:00:00 > handler_name : VideoHandler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, > 143 kb/s (default) The concat demuxer can not deal files with different streams. You need to have audio in your first file too if you want it. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: From ffmpeg at lists.dedilink.eu Sat Dec 7 13:33:09 2013 From: ffmpeg at lists.dedilink.eu (Fusl) Date: Sat, 07 Dec 2013 13:33:09 +0100 Subject: [FFmpeg-user] Pad real-time input stream when there is no input data available at this moment Message-ID: <52A31585.2090307@lists.dedilink.eu> Hey guys, i am currently writing a live-streaming in node.js with ffmpeg and stuck at some buffering issues. - So what do i have? The node.js-script, which manages the stdin source for the following ffmpeg process (switch between live-stream and playlist-stream on the fly). The ffmpeg-process, called encoder, which takes data from stdin and writes them out in mp3 format to stdout. -ac 2 -acodec pcm_u8 -analyzeduration 5000 -ar 48000 -f u8 -re -i pipe:0 -ab 128k -ac 2 -acodec libmp3lame -ar 44100 -f mp3 -flags2 local_header -strict -2 pipe:1 - What is wrong with this bit of code? As written above, the node.js script manages the stdin source for the ffmpeg-process and therefor switches around live-streaming and playlist-streaming (there is also an advertisement-streaming and a silence-stream if none of these three streams are sending data). Sometimes, the live-streaming source just freezes and the node.js-script has to wait for a defined timeout to occur. When this timeout occurs, the script disconnects the live-streaming source and connect the playlist-streaming source on-the-fly. So far so good, but there is still one problem: When the script is waiting for the timeout to occur (for example 2 seconds), there is a gap between these streaming sources for exact 2 seconds, which is also noticable on the output-stream of the ffmpeg-process. Result -> The client needs to resync/rebuffer the stream for another 2 seconds. This problem has been temporarily bounded with a prebuffering of 25 seconds, done in the node.js-part which processes the output of the ffmpeg process but only for about 13 timeouts and then the client again needs to resync/rebuffer the stream. - So what do i need to fix this issue? I need some sort of example of a very complex (i think it is very complex) ffmpeg-command, which is doing this: When ffmpeg starts, start buffering a real-time anullsrc and pause the buffer-processing for now. When ffmpeg receives a chunk on stdin (over and over again), reset the buffer to 0, pause the buffer-processing and reset the timer for the timeout to 0. When a timeout of a defined time (e.g. 2 seconds) occurs, resume the buffer-processing of the anullsink-buffer so, that also prebuffered chunks of anullsrc are being processed. Is this somehow possible with ffmpeg or are these a bit too much requirements for it? PS: If someone wants to check out the code: http://github.com/Fusl/nodecast Thank you for your attention! Best regards Kevin Holly - root at hallowe.lt - http://hallowe.lt/ From zaript at gmail.com Sat Dec 7 13:46:29 2013 From: zaript at gmail.com (Timur Zaripov) Date: Sat, 7 Dec 2013 16:46:29 +0400 Subject: [FFmpeg-user] Need help to find "proper" way to get deinterlaced 1080p30 from lossless and 1080p60 sources. In-Reply-To: References: Message-ID: Hi, Carl. I am not sure about -r 30 myself. From what I had red it may make video choppy, but what will be better way to ensure 30 fps output? WBR, Timur Zaripov On 7 December 2013 14:43, Carl Eugen Hoyos wrote: > Timur Zaripov gmail.com> writes: > > > Main issue I have is that I can't tell if original sources > > are interlaced or not > > The idet filter can tell you but be careful it is not made > for telecined input. > > > and if they are not, than may be I am just wasting time and > > resources using -deinterlace option? > > The performance hit is one issue, the fact that deinterlacing > damages your input is second problem. > > > Command line I am using to encode looks like this: > > ffmpeg.exe -i %1 -map 0:0 -c:v libx264 -crf 18 > > -preset slow -pix_fmt yuv420p -deinterlace -r 30 > > -map 0:1 -c:a copy %targetVid% > > Try to avoid "-deinterlace", use "-vf yadif" instead. > (I find the -r 30 suspicious in your command, but > maybe you know what you are doing.) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From peace at aleksandrsolzhenitsyn.net Sat Dec 7 13:49:41 2013 From: peace at aleksandrsolzhenitsyn.net (peace at aleksandrsolzhenitsyn.net) Date: Sat, 07 Dec 2013 05:49:41 -0700 Subject: [FFmpeg-user] Transcode mini-DV to mpeg for DVD Message-ID: I need to transcode a Sony mini-DV video to mpeg for use in a DVD. In the past I used Kino to grab the video and then edit and export it to an mpeg format. Once that was done DVD Styler was used to format the appearance of the video and then create the DVD structure. Having said that....I'd like to simply grab the video and then transcode it to mpeg suitable for using in DVD Styler. Can you suggest a ffmpeg code line for transcoding from DV to mpeg? Thanks, Alek From steve at aatw.com Sat Dec 7 15:09:10 2013 From: steve at aatw.com (Steve Kelly) Date: Sat, 7 Dec 2013 14:09:10 +0000 Subject: [FFmpeg-user] Quicktime IMX encode failing on v2.1 In-Reply-To: References: <2EB2E32C-E430-4817-80BF-466D14ACC727@aatw.com> <39E2AB35-324C-4E7A-AC10-D30B4CA5EF14@aatw.com> Message-ID: <97D7113F-CD1D-42AD-AB04-EFC998E854FF@aatw.com> On 6 Dec 2013, at 23:06, Carl Eugen Hoyos wrote: > > And could you clarify if I can reproduce the issue (that > the file is not correct) only with Mediainfo or is > there another possibility? > > Carl Eugen Ok, I have run the encode on a smaller input file and put all the files on a wetransfer link. I have also performed the encode in the separate steps, and as a single command. Interestingly the final output file is different depending on the method (this may be what you were referring to when you said it was a bad idea). Using the separate steps, the codec is listed as "m2v1" and this file will not playback in any media player (only mediainfo and ffprobe will interrogate it). Using the single step, it is listed as "mpeg2video" and this file will playback in Quicktime and VLC (though Quicktime 7 lists the codec as "MPEG-2 Camcorder Video"). It is not recognised as an IMX file though and the full 720 x 608 resolution is visible in quicktime rather than the top 32 lines (the VBI lines) being hidden as they would be after an IMX encode to produce a visible 720 x 576 resolution. Would this indicate the imxdump bitstream filter is having no effect on the output? I've looked at imx_dump_header_bsf.c from 0.7 and from 2.0 and there is no difference between the two. Trying to use a codec other than mpeg2video it throws an error: [mov @ 0x8088dcc20] Tag mx5p/0x7035786d incompatible with output codec id '25' (dvcp) The files (159MB total) can be downloaded from wetransfer: http://we.tl/DX3ENjmJqT Full command line below ------------- Integrated encode # /usr/local/bin/ffmpeg -i "Input_2.mov" -map 0:v -map 0:a -vf "scale=720:576:1,pad=720:608:0:32:black" -c:v mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+ilme+low_delay -intra_vlc 1 -non_linear_quant 1 -ps 1 -qmin 1 -qmax 3 -top 1 -dc 10 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -bsf:v imxdump -tag:v mx5p -c:a pcm_s16le -ar 48000 -y "Output_IMX_4.mov" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8088db420] sample aspect ratio already set to 118:81, ignoring 'pasp' atom (64:45) Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Input_2.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-12-06 14:58:35 Duration: 00:00:10.00, start: 0.000000, bitrate: 30339 kb/s Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 28800 kb/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 25 tbn, 25 tbc (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Output #0, mov, to 'Output_IMX_4.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf55.19.104 Stream #0:0(eng): Video: mpeg2video (mx5p / 0x7035786D), yuv422p, 720x608 [SAR 118:81 DAR 295:171], q=1-3, 50000 kb/s, 12800 tbn, 25 tbc (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (dvvideo -> mpeg2video) Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le) Press [q] to stop, [?] for help frame= 250 fps= 89 q=1.6 Lsize= 62919kB time=00:00:10.00 bitrate=51543.4kbits/s video:61035kB audio:1875kB subtitle:0 global headers:0kB muxing overhead 0.014360% ------------- Separate steps # /usr/local/bin/ffmpeg -i "Input_2.mov" -map 0:v -map 0:a -vf "scale=720:576:1,pad=720:608:0:32:black" -c:v mpeg2video -r 25 -pix_fmt yuv422p -minrate 50000k -maxrate 50000k -b:v 50000k -intra -flags +ildct+ilme+low_delay -intra_vlc 1 -non_linear_quant 1 -ps 1 -qmin 1 -qmax 3 -top 1 -dc 10 -bufsize 2000000 -rc_init_occupancy 2000000 -rc_buf_aggressivity 0.25 -bsf:v imxdump -tag:v mx5p -c:a pcm_s16le -ar 48000 -y "Output_IMX_4.mov" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8088db420] sample aspect ratio already set to 118:81, ignoring 'pasp' atom (64:45) Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Input_2.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-12-06 14:58:35 Duration: 00:00:10.00, start: 0.000000, bitrate: 30339 kb/s Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 28800 kb/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 25 tbn, 25 tbc (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Output #0, mov, to 'Output_IMX_4.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf55.19.104 Stream #0:0(eng): Video: mpeg2video (mx5p / 0x7035786D), yuv422p, 720x608 [SAR 118:81 DAR 295:171], q=1-3, 50000 kb/s, 12800 tbn, 25 tbc (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (dvvideo -> mpeg2video) Stream #0:1 -> #0:1 (pcm_s16le -> pcm_s16le) Press [q] to stop, [?] for help frame= 250 fps= 97 q=1.6 Lsize= 62919kB time=00:00:10.00 bitrate=51543.4kbits/s video:61035kB audio:1875kB subtitle:0 global headers:0kB muxing overhead 0.014360% # /usr/local/bin/ffmpeg -i "Input_2.mov" -vn -ar 48000 -acodec pcm_s16le -y "Output_2.wav" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8088db420] sample aspect ratio already set to 118:81, ignoring 'pasp' atom (64:45) Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Input_2.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-12-06 14:58:35 Duration: 00:00:10.00, start: 0.000000, bitrate: 30339 kb/s Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 28800 kb/s, SAR 118:81 DAR 295:162, 25 fps, 25 tbr, 25 tbn, 25 tbc (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Output #0, wav, to 'Output_2.wav': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt ISFT : Lavf55.19.104 Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2013-12-06 14:58:35 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:1 -> #0:0 (pcm_s16le -> pcm_s16le) Press [q] to stop, [?] for help size= 1875kB time=00:00:10.00 bitrate=1536.1kbits/s video:0kB audio:1875kB subtitle:0 global headers:0kB muxing overhead 0.004167% root at mediamover:/usr/home/mounts/aatw_nas/Video/_AUTO_CONVERT/SOURCE # /usr/local/bin/ffmpeg -i "Output_2.m2v" -i "Output_2.wav" -c:v copy -bsf:v imxdump -tag:v mx5p -c:a copy -y "Output_IMX_2.mov" ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 20 2013 18:32:36 with gcc 4.2.1 (GCC) 20070831 patched [FeeBSD] configuration: --enable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libass --disable-libcdio --disable-libcelt --disable-libfaac --disable-libfdk-aac --enable-ffserver --enable-fontconfig --enable-libfreetype --enable-frei0r --enable-gnutls --disable-libgsm --enable-iconv --disable-indev=jack --enable-libmp3lame --disable-libbluray --enable-libv4l2 --disable-libmodplug --disable-openal --disable-indev=openal --enable-libopencv --enable-libopenjpeg --disable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-librtmp --enable-libschroedinger --disable-libspeex --enable-libtheora --disable-vaapi --disable-vdpau --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --enable-libx264 --enable-libxvid --prefix=/usr/local --mandir=/usr/local/man --datadir=/usr/local/share/ffmpeg --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --enable-memalign-hack --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --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-ffplay --disable-outdev=sdl --enable-nonfree libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegvideo, from 'Output_2.m2v': Duration: N/A, bitrate: N/A Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv), 720x608 [SAR 608:405 DAR 16:9], max. 50000 kb/s, 25 fps, 25 tbr, 1200k tbn, 50 tbc Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from 'Output_2.wav': Metadata: encoder : Lavf55.19.104 Duration: 00:00:10.00, bitrate: 1536 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s [mov @ 0x8088dc020] WARNING codec timebase is very high. If duration is too long, file may not be playable by quicktime. Specify a shorter timebase or choose different container. Output #0, mov, to 'Output_IMX_2.mov': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: mpeg2video (mx5p / 0x7035786D), yuv422p, 720x608 [SAR 608:405 DAR 16:9], q=2-31, max. 50000 kb/s, 25 fps, 1200k tbn, 1200k tbc Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 250 fps=0.0 q=-1.0 Lsize= 62919kB time=00:00:10.00 bitrate=51543.3kbits/s video:61035kB audio:1875kB subtitle:0 global headers:0kB muxing overhead 0.014093% root at mediamover:/usr/home/mounts/aatw_nas/Video/_AUTO_CONVERT/SOURCE # > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lou at lrcd.com Sat Dec 7 21:46:35 2013 From: lou at lrcd.com (Lou) Date: Sat, 07 Dec 2013 11:46:35 -0900 Subject: [FFmpeg-user] Transcode mini-DV to mpeg for DVD In-Reply-To: References: Message-ID: <1386449195.30707.56779901.372A597B@webmail.messagingengine.com> On Sat, Dec 7, 2013, at 03:49 AM, peace at aleksandrsolzhenitsyn.net wrote: > > Can you suggest a ffmpeg code line for transcoding from DV to mpeg? Have you tried anything yet? You could start out with: ffmpeg -i input.dv -target pal-dvd output.vob Offtopic: I just noticed your email address. I recently read "One Day in the Life of Ivan Denisovich". I found it interesting that Khrushchev authorized the publication. From peace at AleksandrSolzhenitsyn.net Sat Dec 7 22:35:39 2013 From: peace at AleksandrSolzhenitsyn.net (AS) Date: Sat, 07 Dec 2013 16:35:39 -0500 Subject: [FFmpeg-user] Transcode mini-DV to mpeg for DVD In-Reply-To: <1386449195.30707.56779901.372A597B@webmail.messagingengine.com> References: <1386449195.30707.56779901.372A597B@webmail.messagingengine.com> Message-ID: <52A394AB.9000200@AleksandrSolzhenitsyn.net> On 13-12-07 03:46 PM, Lou wrote: > On Sat, Dec 7, 2013, at 03:49 AM, peace at aleksandrsolzhenitsyn.net wrote: >> Can you suggest a ffmpeg code line for transcoding from DV to mpeg? > Have you tried anything yet? You could start out with: > > ffmpeg -i input.dv -target pal-dvd output.vob Would it work this way too...? ffmpeg -i input.dv -target ntsc -dvd output.mpeg Thanks, AS > > Offtopic: I just noticed your email address. I recently read "One Day in > the Life of Ivan Denisovich". I found it interesting that Khrushchev > authorized the publication. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 555 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Sun Dec 8 02:32:27 2013 From: lou at lrcd.com (Lou) Date: Sat, 07 Dec 2013 16:32:27 -0900 Subject: [FFmpeg-user] Transcode mini-DV to mpeg for DVD In-Reply-To: <52A394AB.9000200@AleksandrSolzhenitsyn.net> References: <1386449195.30707.56779901.372A597B@webmail.messagingengine.com> <52A394AB.9000200@AleksandrSolzhenitsyn.net> Message-ID: <1386466347.13035.56836237.55A5C798@webmail.messagingengine.com> On Sat, Dec 7, 2013, at 12:35 PM, AS wrote: > > Would it work this way too...? > > ffmpeg -i input.dv -target ntsc -dvd output.mpeg Possibly, but I know nothing of your input. You'll have to change "-target ntsc -dvd" to "-target ntsc-dvd". See the -target option in the docs for a list of all target types. From peace at aleksandrsolzhenitsyn.net Sun Dec 8 03:34:39 2013 From: peace at aleksandrsolzhenitsyn.net (peace at aleksandrsolzhenitsyn.net) Date: Sat, 07 Dec 2013 19:34:39 -0700 Subject: [FFmpeg-user] Transcode mini-DV to mpeg for DVD In-Reply-To: <1386466347.13035.56836237.55A5C798@webmail.messagingengine.com> References: <1386449195.30707.56779901.372A597B@webmail.messagingengine.com> <52A394AB.9000200@AleksandrSolzhenitsyn.net> <1386466347.13035.56836237.55A5C798@webmail.messagingengine.com> Message-ID: On 2013-12-07 18:32, Lou wrote: > On Sat, Dec 7, 2013, at 12:35 PM, AS wrote: >> >> Would it work this way too...? >> >> ffmpeg -i input.dv -target ntsc -dvd output.mpeg > > Possibly, but I know nothing of your input. You'll have to change > "-target ntsc -dvd" to "-target ntsc-dvd". See the -target option in > the > docs for a list of all target types. "-target ntsc -dvd" was merely an error on my part when entering the text in these various emails. As to the "input"- should I do a "ffmpeg -i Inputfilename.DV" to get the information? Thanks > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sun Dec 8 07:17:16 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 8 Dec 2013 06:17:16 +0000 (UTC) Subject: [FFmpeg-user] AAC, Low Complexity Profile (LC). References: <1386338298732-4662605.post@n4.nabble.com> Message-ID: Sam East sobytes.com> writes: > So if i run a install from a dir on my server say /usr/local/bin/ I understood your original question as "I don't want to overwrite my existing FFmpeg installation" and I tried to explain that you don't have to *install* FFmpeg (I never install), it is sufficient if you *compile* FFmpeg (I compile several times a day) because the default compilation produces an executable that you can run from whereever you want (including the build directory). When you are happy with the new executable, copy it into a directory of your choice (like /usr/local/bin) under a name of your choice (like "myworkingffmpeg"). > Which install would you suggest me running as i have found > lots of different ones i am running on Centos? I may misunderstand but the only supported "install" is the one from http://ffmpeg.org/download.html Please do not top-post here, Carl Eugen From llee040 at sbcglobal.net Sun Dec 8 09:42:58 2013 From: llee040 at sbcglobal.net (L. Lee) Date: Sun, 08 Dec 2013 02:42:58 -0600 Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> Message-ID: I didn?t access your video, please tell me how. In the meantime, I used your process to rip a DVD so I could try some things. I couldn?t use .mkv as the name extension of the source file, but once I changed it to .mpg, I could use the following. The output is OK from beginning to end even when I performed it on the full 90-minute title. Mine was an old 4X3 source. ffmpeg -y -i ?dd-vob-short.mpg' -map 0:0 -map 0:1 -vf "fieldmatch=order=tff:combmatch=none,fps=fps=24000/1001" -pix_fmt yuv420p -c:v libx264 -preset slower -tune film -crf 18 -x264opts keyint=40:bitrate=2100:qpmin=8:qpmax=38:qpstep=4 -c:a:0 libfaac -b:a:0 256k 'dd-vob-short.detelecine.m4v' ffmpeg -y -i 'dd-vob-short.mpg' -map 0:0 -map 0:1 -vf "fieldmatch=order=tff:combmatch=none,fps=fps=24000/1001" -pix_fmt yuv420p -c:v libx264 -preset slower -tune film -crf 18 -x264opts keyint=40:bitrate=2100:qpmin=8:qpmax=38:qpstep=4 -c:a:0 libfaac -b:a:0 256k 'dd-vob-short.detelecine.m4v' ffmpeg version 2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 27 2013 10:05:45 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --prefix=/usr/local/Cellar/ffmpeg2/2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --enable-opencl --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-openssl --enable-ffplay --enable-libvpx --cc=cc --host-cflags= --host-ldflags= --enable-libfaac --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libvo-aacenc --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libopus --enable-frei0r --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpeg, from 'dd-vob-short.mpg': Duration: 00:06:25.39, start: 0.041500, bitrate: 4251 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x480 [SAR 8:9 DAR 4:3], max. 9800 kb/s, 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:3[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s [libx264 @ 0x7ffb93025200] using SAR=8/9 [libx264 @ 0x7ffb93025200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 0x7ffb93025200] profile High, level 3.1 [libx264 @ 0x7ffb93025200] 264 - core 138 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=8 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=12 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=40 keyint_min=4 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2100 ratetol=1.0 qcomp=0.60 qpmin=8 qpmax=38 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, ipod, to 'dd-vob-short.detelecine.m4v': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=-1--1, 2100 kb/s, 24k tbn, 23.98 tbc Stream #0:1: Audio: aac (libfaac) (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 256 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Stream #0:1 -> #0:1 (ac3 -> libfaac) Press [q] to stop, [?] for help [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 32 2704.16 bitrate= 5.4kbits/s [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 23 29 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 2 29 [mpeg2video @ 0x7ffb9300b800] invalid mb type in P Frame at 44 17 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 16 20 [mpeg2video @ 0x7ffb9300b800] invalid cbp -1 at 3 19 [mpeg2video @ 0x7ffb9300b800] slice mismatch [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 35 21 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 15 19 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 27 25 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 5 16 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 3 22 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 38 26 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 42 6 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 10 7 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 37 26 [mpeg2video @ 0x7ffb9300b800] invalid cbp -1 at 36 8 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 7 10 [mpeg2video @ 0x7ffb9300b800] invalid cbp 0 at 16 10 [mpeg2video @ 0x7ffb9300b800] invalid cbp 0 at 3 11 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 19 12 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 20 14 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 1 15 [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 15 17 [mpeg2video @ 0x7ffb9300b800] Warning MVs not available [mpeg2video @ 0x7ffb9300b800] concealing 1080 DC, 1080 AC, 1080 MV errors in P frame [ac3 @ 0x7ffb9300be00] frame CRC mismatch [ac3 @ 0x7ffb9300be00] frame sync error Error while decoding stream #0:1: Invalid data found when processing input [libfaac @ 0x7ffb93026000] Queue input is backward in time [ipod @ 0x7ffb93024c00] Non-monotonous DTS in output stream 0:1; previous: 235520, current: 235008; changing to 235521. This may result in incorrect timestamps in the output file. [mpeg2video @ 0x7ffb9300b800] invalid cbp 0 at 8 2800:10.37 bitrate=3289.8kbits/s [mpeg2video @ 0x7ffb9300b800] slice mismatch Last message repeated 1 times [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 1 26 [mpeg2video @ 0x7ffb9300b800] invalid mb type in B Frame at 6 13 [mpeg2video @ 0x7ffb9300b800] Warning MVs not available [mpeg2video @ 0x7ffb9300b800] concealing 810 DC, 810 AC, 810 MV errors in B frame [mpeg @ 0x7ffb9300a000] New subtitle stream 0:4 at pos:17098766 and DTS:25.0665ss [mpeg @ 0x7ffb9300a000] New subtitle stream 0:5 at pos:17100814 and DTS:25.0665s [mpeg @ 0x7ffb9300a000] New subtitle stream 0:6 at pos:105166862 and DTS:194.469s [mpeg2video @ 0x7ffb9300b800] ac-tex damaged at 19 76:25.03 bitrate=2249.1kbits/s [mpeg2video @ 0x7ffb9300b800] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame [ac3 @ 0x7ffb9300be00] incomplete frame frame= 9241 fps= 28 q=-1.0 Lsize= 106428kB time=00:06:25.34 bitrate=2262.5kbits/s video:100210kB audio:5955kB subtitle:0 global headers:0kB muxing overhead 0.246916% [libx264 @ 0x7ffb93025200] frame I:252 Avg QP:16.30 size: 53478 [libx264 @ 0x7ffb93025200] frame P:2973 Avg QP:19.29 size: 19474 [libx264 @ 0x7ffb93025200] frame B:6016 Avg QP:22.39 size: 5193 [libx264 @ 0x7ffb93025200] consecutive B-frames: 5.0% 7.1% 52.6% 35.3% [libx264 @ 0x7ffb93025200] mb I I16..4: 5.3% 87.3% 7.5% [libx264 @ 0x7ffb93025200] mb P I16..4: 1.2% 14.1% 0.5% P16..4: 43.4% 16.7% 16.5% 0.4% 0.2% skip: 7.0% [libx264 @ 0x7ffb93025200] mb B I16..4: 0.1% 1.6% 0.1% B16..8: 39.4% 7.5% 1.8% direct:10.4% skip:39.1% L0:36.7% L1:40.2% BI:23.1% [libx264 @ 0x7ffb93025200] final ratefactor: 19.01 [libx264 @ 0x7ffb93025200] 8x8 transform intra:89.0% inter:69.7% [libx264 @ 0x7ffb93025200] direct mvs spatial:99.5% temporal:0.5% [libx264 @ 0x7ffb93025200] coded y,uvDC,uvAC intra: 89.2% 90.5% 69.3% inter: 29.6% 42.7% 10.2% [libx264 @ 0x7ffb93025200] i16 v,h,dc,p: 21% 16% 24% 38% [libx264 @ 0x7ffb93025200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 17% 27% 6% 6% 6% 7% 7% 10% [libx264 @ 0x7ffb93025200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 14% 7% 8% 12% 12% 12% 9% 11% [libx264 @ 0x7ffb93025200] i8c dc,h,v,p: 45% 24% 18% 13% [libx264 @ 0x7ffb93025200] Weighted P-Frames: Y:16.4% UV:11.9% [libx264 @ 0x7ffb93025200] ref P L0: 47.2% 9.9% 22.5% 5.8% 4.9% 3.0% 3.2% 1.7% 1.5% 0.2% [libx264 @ 0x7ffb93025200] ref B L0: 66.2% 22.6% 4.8% 2.9% 1.6% 1.3% 0.6% [libx264 @ 0x7ffb93025200] ref B L1: 88.9% 11.1% [libx264 @ 0x7ffb93025200] kb/s:2129.89 Laine Lee On 12/2/13, 5:30 PM, "Nicholas Robbins" wrote: > > > > >> On Monday, December 2, 2013 6:12 PM, Carl Eugen Hoyos >> wrote: >> > Nicholas Robbins yahoo.com> writes: >> >>> I'm uploading dd-vob-short.mkv, dd-vob-short-fieldmatch-yadif.mkv, >>> dd-vob-short-fieldmatch.mkv, and dd-vob-short-f-{,y-}3{2,3,4}.bmp >> >>> as robbins-from-dvd.tgz to upload.ffmpeg.org/incoming >> >> Please provide a (part of) dump-1.vob >> >> Thank you, Carl Eugen > > >dd-vob-short.mkv is the output from > >$ dd if=dump-1.vob of=dd-vob-short.mkv count=400K > >It is in the tarball which seems to still be uploading. > >-Nick Robbins > >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user From bino at indoakses-online.com Sun Dec 8 11:38:58 2013 From: bino at indoakses-online.com (bino at indoakses-online.com) Date: Sun, 8 Dec 2013 18:38:58 +0800 Subject: [FFmpeg-user] balancing image generator and FFMPEG 'loop' Message-ID: Dear All ... I'm trying to get a cam snapshots and stream it out to ustream my solution is based on two things 1. Snapshot downloader : It's based on https://github.com/jpmeijers/pisstvbeacon/blob/master/AircamDownload.py , and I make it to send request in loop. Currently with this script, new image will be generated each second (more/less). Each image have a sequence number in it's name : pic01.jpg --> pic99.jpg 2. Streamer : ffmpeg -re -loop 1 -f image2 \ -i "/var/run/snapshots/inaxtower/pic%02d.jpg" \ -r 10 -vcodec libx264 -pix_fmt yuv420p \ -f flv "rtmp://1.XXX.fme.ustream.tv/ustreamVideo/XXX/USTREAM_KEY flashver=FMLE/2.50(compatible;0FMSc/1.0)" Currently the result looks like 'rushing'. You can check my current result at : http://www.ustream.tv/channel/16636088 Please put attention on the clock stamp at top-left of the movie, looked weird. My Question is : How to balance image generation rate (script #1) with the ffmpeg rate ? I mean, what number should I put for image generation rate? ,and what number should I put for the value of ffmpeg '-r' ? Sincerely -bino- From belcampo at zonnet.nl Sun Dec 8 11:45:49 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Sun, 8 Dec 2013 11:45:49 +0100 Subject: [FFmpeg-user] balancing image generator and FFMPEG 'loop' In-Reply-To: References: Message-ID: On 08 Dec 2013, at 11:38, bino at indoakses-online.com wrote: > Dear All ... > > I'm trying to get a cam snapshots and stream it out to ustream > > my solution is based on two things > 1. Snapshot downloader : > It's based on > https://github.com/jpmeijers/pisstvbeacon/blob/master/AircamDownload.py , > and I make it to send request in loop. > Currently with this script, new image will be generated each second > (more/less). You do generate 1 frame every second. So framerate is 1 or in ffmpeg terms ?-r 1? Hope you now understand how to balance or NOT get rushing. > > Each image have a sequence number in it's name : pic01.jpg --> pic99.jpg > > 2. Streamer : > > ffmpeg -re -loop 1 -f image2 \ > -i "/var/run/snapshots/inaxtower/pic%02d.jpg" \ > -r 10 -vcodec libx264 -pix_fmt yuv420p \ > -f flv "rtmp://1.XXX.fme.ustream.tv/ustreamVideo/XXX/USTREAM_KEY > flashver=FMLE/2.50(compatible;0FMSc/1.0)" > > > Currently the result looks like 'rushing'. > > You can check my current result at : http://www.ustream.tv/channel/16636088 > Please put attention on the clock stamp at top-left of the movie, looked > weird. > > My Question is : > How to balance image generation rate (script #1) with the ffmpeg rate ? > I mean, what number should I put for image generation rate? ,and > what number should I put for the value of ffmpeg '-r' ? > > Sincerely > -bino- > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nickrobbins at yahoo.com Sun Dec 8 15:24:48 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Sun, 8 Dec 2013 06:24:48 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> Message-ID: <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> > On Sunday, December 8, 2013 3:43 AM, L. Lee wrote: > > I didn?t access your video, please tell me how. In the meantime, I used > your process to rip a DVD so I could try some things. I couldn?t use .mkv > as the name extension of the source file, but once I changed it to .mpg, I > could use the following. The output is OK from beginning to end even when > I performed it on the full 90-minute title. Mine was an old 4X3 source. I don't know how you can get access to incoming, but thanks for the shot. My method works for most dvds, this one source is the exception rather than the rule. > > ffmpeg -y -i ?dd-vob-short.mpg' -map 0:0 -map 0:1 -vf > "fieldmatch=order=tff:combmatch=none,fps=fps=24000/1001" -pix_fmt > yuv420p > -c:v libx264 -preset slower -tune film -crf 18 -x264opts > keyint=40:bitrate=2100:qpmin=8:qpmax=38:qpstep=4 -c:a:0 libfaac -b:a:0 > 256k 'dd-vob-short.detelecine.m4v' > IIUC, combmatch=none will label no frames as interlaced. So you wouldn't get any errors like I am getting no matter what. I added that option to my command and it didn't complain anymore, but it did still produce interlaced frames. I tried changing the extension to mpg and I had the same output as before. I had assumed ffmpeg was smarter than that. > > > > Laine Lee From magixx2006 at gmail.com Sun Dec 8 04:09:35 2013 From: magixx2006 at gmail.com (Alex) Date: Sat, 7 Dec 2013 22:09:35 -0500 Subject: [FFmpeg-user] Exporting Images with Subtitles Message-ID: Currently I'm considering on making a video w/ subtitles to image w/ subtitles application and am wondering if there is a way to pretty much get an idea of what the resulting product would look like with only ffmpeg. So is there a way to also output subtitles onto images when creating them. I'm basically creating a bunch of thumbnails with: "ffmpeg -i v2.mkv -f image2 -vf "select=gt(scene\,0.5)" -vsync vfr out%02d.png" However, subtitles are not being added to the images. I tried adding "-c:s copy" and also "ass=subtitle.ass"; with the former I just got extra blank images and with the latter it errors and tells me that subtitle.ass does not exist (media info says they're ssa subtitles). If i manually extract subtitles.ass from the video and use the latter command then I get some blank images again. So is there an easy way of doing this? Ideally I would take a image whenever a subtitle is displayed but I do not believe this is easily done even with a combination of programs and is what I will probably end up building if I like the early results of something simple like this. From deron at pagestream.org Mon Dec 9 04:39:29 2013 From: deron at pagestream.org (Deron) Date: Sun, 08 Dec 2013 20:39:29 -0700 Subject: [FFmpeg-user] Confusion with recording RTMP stream In-Reply-To: References: <52A2AE06.5030302@pagestream.org> Message-ID: <52A53B71.1090500@pagestream.org> On 12/6/13 10:55 PM, Anatol wrote: > And furthermore, if they don't intend everybody to get their RTMP stream, > may be u shouldn't try to ... > > > On Sat, Dec 7, 2013 at 7:51 AM, Anatol wrote: > >> Check your rtmp stream with Akamai Flash Support Player >> http://support.akamai.com/flash/. >> It gives the same error there, >> >> >> On Sat, Dec 7, 2013 at 7:11 AM, Deron wrote: >> >>> Seems like a simple thing. I would like to record a live stream from >>> http://weathernationtv.com/OnTV (their on-air live stream), but I can't >>> seem to get it to work. >>> >>> Using some product on Windows called MediaBox, it gave me this info: >>> >>> url: rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781 >>> app: live >>> flashVer: WIN 11,9,900,152 >>> pageUrl: http://weathernationtv.com/OnTV >>> swfUrl: http://cdnbakmi.kaltura.com/p/931702/sp/93170200/flash/kdp3/ >>> v3.9.4/kdp3.swf >>> tcUrl: rtmp://cp77659.live.edgefcs.net/live >>> playPath: 0_c6zkpyg0_1 at 2781 >>> >>> >>> So I tried this simple command: >>> >>> ffmpeg -i "rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781" >>> temp.mp4 >>> >>> And got: >>> >>> ffmpeg version N-55930-g4fa00c5 Copyright (c) 2000-2013 the FFmpeg >>> developers >>> built on Aug 31 2013 11:27:18 with gcc 4.6 (Ubuntu/Linaro >>> 4.6.3-1ubuntu5) >>> configuration: --enable-shared --enable-gpl --enable-nonfree >>> --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libvorbis >>> --enable-libfaac --enable-libopenjpeg --enable-librtmp >>> libavutil 52. 43.100 / 52. 43.100 >>> libavcodec 55. 29.100 / 55. 29.100 >>> libavformat 55. 15.100 / 55. 15.100 >>> libavdevice 55. 3.100 / 55. 3.100 >>> libavfilter 3. 82.102 / 3. 82.102 >>> libswscale 2. 5.100 / 2. 5.100 >>> libswresample 0. 17.103 / 0. 17.103 >>> libpostproc 52. 3.100 / 52. 3.100 >>> Closing connection: NetStream.Play.StreamNotFound >>> rtmp://cp77659.live.edgefcs.net/live/0_c6zkpyg0_1 at 2781: Unknown error >>> occurred >>> >>> >>> Any suggestions, or good tutorial on figuring this out? Thanks! >>> >>> Deron >>> >>> _______________________________ Not sure where I should post this, since I know top posting is a no-no here... I'm not clear what the problem is, which is why I was asking. I can't watch the stream at home because we have really bad ping times (satellite internet). So I want to record it on a server and then copy over the show. Can anyone watch this stream? I know it worked before... Thanks anyway, Deron From llee040 at sbcglobal.net Mon Dec 9 05:19:27 2013 From: llee040 at sbcglobal.net (L. Lee) Date: Sun, 08 Dec 2013 22:19:27 -0600 Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> Message-ID: On 12/8/13, 8:24 AM, "Nicholas Robbins" wrote: > >> On Sunday, December 8, 2013 3:43 AM, L. Lee >>wrote: >> > I didn?t access your video, please tell me how. In the meantime, I >>used >> your process to rip a DVD so I could try some things. I couldn?t use >>.mkv >> as the name extension of the source file, but once I changed it to >>.mpg, I >> could use the following. The output is OK from beginning to end even >>when >> I performed it on the full 90-minute title. Mine was an old 4X3 source. > >I don't know how you can get access to incoming, but thanks for the shot. >My method works for most dvds, this one source is the exception rather >than the rule. > >> >> ffmpeg -y -i ?dd-vob-short.mpg' -map 0:0 -map 0:1 -vf >> "fieldmatch=order=tff:combmatch=none,fps=fps=24000/1001" -pix_fmt >> yuv420p >> -c:v libx264 -preset slower -tune film -crf 18 -x264opts >> keyint=40:bitrate=2100:qpmin=8:qpmax=38:qpstep=4 -c:a:0 libfaac -b:a:0 >> 256k 'dd-vob-short.detelecine.m4v' >> > > >IIUC, combmatch=none will label no frames as interlaced. So you wouldn't >get any errors like I am getting no matter what. I added that option to >my command and it didn't complain anymore, but it did still produce >interlaced frames. > >I tried changing the extension to mpg and I had the same output as >before. I had assumed ffmpeg was smarter than that. > I don?t think the command will be of any use whatsoever without the conversion to 24 fps (fps=fps=24000/1001). No interlaced frames remain when you use that, do they? Laine From ziaabass at yahoo.com Mon Dec 9 09:11:40 2013 From: ziaabass at yahoo.com (zia abass) Date: Mon, 9 Dec 2013 00:11:40 -0800 (PST) Subject: [FFmpeg-user] (no subject) Message-ID: <1386576700.61120.YahooMailNeo@web141405.mail.bf1.yahoo.com> i need to use hdmi h264 pc card with ffmpeg in linux. can you please tell me witch card is best for it i have no any experience about that. i have use encodeing for wowza media server From jul.blon at gmail.com Mon Dec 9 14:32:47 2013 From: jul.blon at gmail.com (jb) Date: Mon, 9 Dec 2013 15:32:47 +0200 Subject: [FFmpeg-user] 3 points jpeg to timelapse issue Message-ID: <4028362F-22BB-4FE8-A394-C19896A9383D@gmail.com> Hi Having a few issues converting a jpeg sequence to adequate video. Any form of guidance appreciated. Frontmost problem is the great loss in quality/depth (huge visible contrast increase) that occurs when applying : ffmpeg -f image2 -r 12 -i FILE%04d.JPG -r 12 -s 864x648 -vcodec libx264 output.mp4 (original files are ~1.1MB, 2592 x 1944 jpegs) also tried ffmpeg -f image2 -r 12 -i FILE%04d.JPG -r 12 -vcodec copy output.mp4 [with previously scaled jpegs ? which isn't practical at all for me?] with same problem. I'm on mac os 10.8.5. A Quicktime conversion (H.264 multi-pass) gives a satisfying output, no significant contrast/range/depth loss, just blurr. Yet Qt isn't practical for me I'm sure this is documented somewhere, so forgive me for not digging further, but I can't seem to get a 2-pass with ffmpeg to work in this case. ffmpeg -f image2 -r 12 -i FILE%04d.JPG -pass [[1/2]] -r 12 -s 864x648 -vcodec libx264 output.mp4 ??? What would the correct syntax be? And could a 2 pass run solve my quality issue? or have I got it wrong from the start? Secondly, once I get the settings right, I need to process the content of multiple folders in the form 101MEDIA, 102MEDIA, etc. Any way to tell ffmpeg to do this all at once, (190GB of data, and counting?), the output being 'one' big MP4 file? Thanks for reading and any hints. Regards, J From cehoyos at ag.or.at Mon Dec 9 14:52:06 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 9 Dec 2013 13:52:06 +0000 (UTC) Subject: [FFmpeg-user] 3 points jpeg to timelapse issue References: <4028362F-22BB-4FE8-A394-C19896A9383D@gmail.com> Message-ID: jb gmail.com> writes: > ffmpeg -f image2 -r 12 -i FILE%04d.JPG -r 12 -s 864x648 > -vcodec libx264 output.mp4 > (original files are ~1.1MB, 2592 x 1944 jpegs) (Complete, uncut console output missing.) You neither provide a bitrate nor a constant quantizer so a (small) bitrate is chosen. Carl Eugen From lou at lrcd.com Mon Dec 9 20:44:27 2013 From: lou at lrcd.com (Lou) Date: Mon, 9 Dec 2013 10:44:27 -0900 Subject: [FFmpeg-user] Speed up Transcode In-Reply-To: References: <52A10864.1060608@AleksandrSolzhenitsyn.net> <52A214B7.50509@AleksandrSolzhenitsyn.net> Message-ID: <20131209104427.0398f231@lrcd.com> On Fri, 6 Dec 2013 10:22:13 -0800 Tim Hiles wrote: > Just a reminder to not include signature when communicating to group. > Admins will get mad. I haven't seen any admin get mad because of a signature. Signatures are not forbidden, but they are generally not useful here and should be omitted, if possible, and trimmed from replies. Please note what is more annoying than a signature is top-posting which is not allowed on this mailing list. From frafart at free.fr Mon Dec 9 20:54:14 2013 From: frafart at free.fr (Fabrice RAFART) Date: Mon, 09 Dec 2013 20:54:14 +0100 Subject: [FFmpeg-user] Change output file at specific time In-Reply-To: References: <1273263823.238538330.1386343480447.JavaMail.root@zimbra74-e12.priv.proxad.net> <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: <52A61FE6.9030004@free.fr> On 06/12/2013 18:40, Andrey Utkin wrote: > 2013/12/6 : >> Hi, >> >> I try to generate 5 minutes long TS file's from an udp streams. I can do it with segment (the accuracy is not very high but it works and I don't have really work on all the segment options). >> My problem is : I want that the file rotate at specific time (at 00:00:00, 00:05:00, 00:05:10, ...). > > You could capture the stream with simpler tool, like netcat or socat, > killing and restarting it when needed. The loss of data during restart > should be merely noticeable. I already use such a tool. One home-made, ffmpeg segment and multicat. All this 3 tools make ts file without cut in a middle of a frame, none of them are very good for me (start with a keyframe AND be accurate with the duration). I'll start another threads to explain/speak about another point with these files. >> Is there a way with ffmpeg to specify not a duration but, for exemple an test like timestamp % 300 = 0 ? > > At command line level - no. You can do anything you want in > application using libavformat API. Thanks to this. Fabrice. From peace at AleksandrSolzhenitsyn.net Mon Dec 9 23:09:29 2013 From: peace at AleksandrSolzhenitsyn.net (AS) Date: Mon, 09 Dec 2013 17:09:29 -0500 Subject: [FFmpeg-user] Improve transcode quality of avchd to mpeg? Message-ID: <52A63F99.4000902@AleksandrSolzhenitsyn.net> A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 555 bytes Desc: OpenPGP digital signature URL: From frafart at free.fr Mon Dec 9 20:45:06 2013 From: frafart at free.fr (Fabrice RAFART) Date: Mon, 09 Dec 2013 20:45:06 +0100 Subject: [FFmpeg-user] Change output file at specific time In-Reply-To: <20131207102758.GI2194@barisone> References: <1273263823.238538330.1386343480447.JavaMail.root@zimbra74-e12.priv.proxad.net> <1971763971.238557449.1386343923827.JavaMail.root@zimbra74-e12.priv.proxad.net> <20131207102758.GI2194@barisone> Message-ID: <52A61DC2.3060004@free.fr> On 07/12/2013 11:27, Stefano Sabatini wrote: > On date Friday 2013-12-06 16:32:03 +0100, frafart at free.fr wrote: > >> My problem is : I want that the file rotate at specific time (at >> 00:00:00, 00:05:00, 00:05:10, ...). > > -segment_times, you need a recent ffmpeg version though. segment_times is not absolut. It's relative to the start time. It is not my first problem. Fabrice. From bino at indoakses-online.com Tue Dec 10 02:01:13 2013 From: bino at indoakses-online.com (bino at indoakses-online.com) Date: Tue, 10 Dec 2013 09:01:13 +0800 Subject: [FFmpeg-user] balancing image generator and FFMPEG 'loop' In-Reply-To: References: Message-ID: <715a44ad3ee3d5cea8258814e0a8c975.squirrel@localhost> Dear All Thankyou Henk > You do generate 1 frame every second. So framerate is 1 or in ffmpeg terms > ?-r 1? > Hope you now understand how to balance or NOT get rushing. >> Maybe because of the snapshot downloading process that potentialy instable .. I failed to do perfect balance. I take mjpeg_streamer as work around. So my solution currently consist of : 1. Snapshot downloader. 2. mjpeg_streamer .. 3. FFMPEG to restream from local mjpeg streamer to USTREAM I Really appreciate your help. Sincerely -bino- From belcampo at zonnet.nl Tue Dec 10 03:33:07 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Tue, 10 Dec 2013 03:33:07 +0100 Subject: [FFmpeg-user] balancing image generator and FFMPEG 'loop' In-Reply-To: <715a44ad3ee3d5cea8258814e0a8c975.squirrel@localhost> References: <715a44ad3ee3d5cea8258814e0a8c975.squirrel@localhost> Message-ID: On 10 Dec 2013, at 02:01, bino at indoakses-online.com wrote: > Dear All > > Thankyou Henk > >> You do generate 1 frame every second. So framerate is 1 or in ffmpeg terms >> ?-r 1? >> Hope you now understand how to balance or NOT get rushing. >>> > Maybe because of the snapshot downloading process that potentialy instable > .. I failed to do perfect balance. Your snapshot creation needs to be 10 jpgs per second if you want to streamer to output with ffmpeg ?.. -r 10 ?. to avoid rushing. They need to be the same. > > I take mjpeg_streamer as work around. > > So my solution currently consist of : > 1. Snapshot downloader. > 2. mjpeg_streamer .. > 3. FFMPEG to restream from local mjpeg streamer to USTREAM > > I Really appreciate your help. > > Sincerely > -bino- > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nickrobbins at yahoo.com Tue Dec 10 03:44:19 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Mon, 9 Dec 2013 18:44:19 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> Message-ID: <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> > On Sunday, December 8, 2013 11:19 PM, L. Lee wrote: > > On 12/8/13, 8:24 AM, "Nicholas Robbins" > wrote: >> >>> On Sunday, December 8, 2013 3:43 AM, L. Lee > >>> wrote: >>> > I didn?t access your video, please tell me how. In the meantime, I >>> used >>> your process to rip a DVD so I could try some things. I couldn?t use >>> .mkv >>> as the name extension of the source file, but once I changed it to >>> .mpg, I >>> could use the following. The output is OK from beginning to end even >>> when >>> I performed it on the full 90-minute title. Mine was an old 4X3 source. >> >> I don't know how you can get access to incoming, but thanks for the > shot. >> My method works for most dvds, this one source is the exception rather >> than the rule. >> >>> >>> ffmpeg -y -i ?dd-vob-short.mpg' -map 0:0 -map 0:1 -vf >>> "fieldmatch=order=tff:combmatch=none,fps=fps=24000/1001" > -pix_fmt >>> yuv420p >>> -c:v libx264 -preset slower -tune film -crf 18 -x264opts >>> keyint=40:bitrate=2100:qpmin=8:qpmax=38:qpstep=4 -c:a:0 libfaac -b:a:0 >>> 256k 'dd-vob-short.detelecine.m4v' >>> >> >> >> IIUC, combmatch=none will label no frames as interlaced. So you wouldn't >> get any errors like I am getting no matter what. I added that option to >> my command and it didn't complain anymore, but it did still produce >> interlaced frames. >> >> I tried changing the extension to mpg and I had the same output as >> before. I had assumed ffmpeg was smarter than that. >> > > I don?t think the command will be of any use whatsoever without the > conversion to 24 fps (fps=fps=24000/1001). No interlaced frames remain > when you use that, do they? The 'decimate' filter after fieldmatch would take care of the frame rate coversion, but it just throws out the extra frame, so it wouldn't change the fact that fieldmatch was labeling frames as interlaced, but yadif wasn't deinterlacing them. > Laine > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From pablo.platt at gmail.com Tue Dec 10 15:21:27 2013 From: pablo.platt at gmail.com (pablo platt) Date: Tue, 10 Dec 2013 16:21:27 +0200 Subject: [FFmpeg-user] corrupted mp4 encoded from images sent from a pipe Message-ID: Hi, I'm encoding mp4 from images sent from phantomjs over a pipe. The mp4 is corrupted and doesn't play in FF and Chrome. After repairing it, it plays fine. Is it possible that phantomjs doesn't gracefully ends the stream? At the end I'm getting an error: pipe:: Input/output error This explains how to send images from phantomjs to stdout: https://groups.google.com/forum/#!topic/phantomjs/wluVGGjhL90 Command used to create the mp4: ./phantomjs test.js | ./ffmpeg -y -c:v png -f image2pipe -r 10 -i - -c:v libx264 -pix_fmt yuv420p test.mp4 Command used to fix the corrupted mp4: ./ffmpeg -i corrupted.mp4 -c copy repaired.mp4 More info is listed below. Thanks phantomjs test.js -------------------------------------------------- var page = require('webpage').create(); page.clipRect = { top: 0, left: 0, width: 900, height: 800}; page.viewportSize = { width: 900, height: 800}; var url = 'http://dl.dropbox.com/u/621993/voronoi/voronoi.html'; var frames = 100; page.open(url, function(){ setInterval(function(){ page.render('/dev/stdout'); if( frames == 0 ){ phantom.exit(); } frames--; }, 100); }); ffmpeg console output ---------------------------------------------------------------- ./phantomjs test.js | ./ffmpeg -y -c:v png -f image2pipe -r 10 -i - -c:v libx264 -pix_fmt yuv420p -movflags +faststart test.mp4 ffmpeg version 2.1-static Copyright (c) 2000-2013 the FFmpeg developers built on Dec 9 2013 23:45:24 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/home/user/ffmpeg-static/target --extra-cflags='-I/home/user/ffmpeg-static/target/include -static' --extra-ldflags='-L/home/user/ffmpeg-static/target/lib -lm -static' --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, image2pipe, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: png, rgba, 900x800 [SAR 2835:2835 DAR 9:8], 10 fps, 10 tbr, 10 tbn, 10 tbc [libx264 @ 0x9bf1320] using SAR=1/1 [libx264 @ 0x9bf1320] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x9bf1320] profile High, level 3.1 [libx264 @ 0x9bf1320] 264 - core 140 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=10 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'test.mp4': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 900x800 [SAR 1:1 DAR 9:8], q=-1--1, 10240 tbn, 10 tbc Stream mapping: Stream #0:0 -> #0:0 (png -> libx264) pipe:: Input/output error0 size= 1678kB time=00:00:05.70 bitrate=2411.5kbits/s [mp4 @ 0x9bf0e00] Starting second pass: moving the moov atom to the beginning of the file frame= 101 fps=3.2 q=25.0 Lsize= 2562kB time=00:00:09.90 bitrate=2119.6kbits/s video:2560kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.074206% [libx264 @ 0x9bf1320] frame I:1 Avg QP:21.38 size: 5004 [libx264 @ 0x9bf1320] frame P:57 Avg QP:20.14 size: 37283 [libx264 @ 0x9bf1320] frame B:43 Avg QP:26.23 size: 11400 [libx264 @ 0x9bf1320] consecutive B-frames: 14.9% 85.1% 0.0% 0.0% [libx264 @ 0x9bf1320] mb I I16..4: 18.0% 80.1% 2.0% [libx264 @ 0x9bf1320] mb P I16..4: 5.6% 4.7% 2.7% P16..4: 16.1% 16.4% 17.0% 0.0% 0.0% skip:37.5% [libx264 @ 0x9bf1320] mb B I16..4: 0.2% 0.3% 0.4% B16..8: 24.3% 13.8% 6.8% direct: 5.1% skip:49.1% L0:33.0% L1:39.4% BI:27.6% [libx264 @ 0x9bf1320] 8x8 transform intra:40.8% inter:26.6% [libx264 @ 0x9bf1320] coded y,uvDC,uvAC intra: 18.8% 31.2% 24.8% inter: 16.3% 26.1% 20.0% [libx264 @ 0x9bf1320] i16 v,h,dc,p: 71% 22% 7% 0% [libx264 @ 0x9bf1320] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 23% 62% 1% 1% 1% 1% 1% 1% [libx264 @ 0x9bf1320] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 17% 27% 5% 7% 7% 6% 5% 4% [libx264 @ 0x9bf1320] i8c dc,h,v,p: 69% 18% 12% 2% [libx264 @ 0x9bf1320] Weighted P-Frames: Y:8.8% UV:7.0% [libx264 @ 0x9bf1320] ref P L0: 62.1% 11.6% 18.2% 7.9% 0.2% [libx264 @ 0x9bf1320] ref B L0: 83.5% 16.5% [libx264 @ 0x9bf1320] kb/s:2075.53 From cehoyos at ag.or.at Tue Dec 10 16:03:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Dec 2013 15:03:57 +0000 (UTC) Subject: [FFmpeg-user] corrupted mp4 encoded from images sent from a pipe References: Message-ID: pablo platt gmail.com> writes: > Command used to create the mp4: > ./phantomjs test.js | ./ffmpeg -y -c:v png -f image2pipe > -r 10 -i - -c:v libx264 -pix_fmt yuv420p test.mp4 What happens if you save the output of phantomjs to a file first? Carl Eugen From pablo.platt at gmail.com Tue Dec 10 16:22:01 2013 From: pablo.platt at gmail.com (pablo platt) Date: Tue, 10 Dec 2013 17:22:01 +0200 Subject: [FFmpeg-user] corrupted mp4 encoded from images sent from a pipe In-Reply-To: References: Message-ID: I've generated images with phantomjs instead of sending to the pipe. I have img001.png, img002.png... I'm calling the command: ../ffmpeg -r 1 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p out.mp4 The video is still corrupted. ../ffmpeg -r 1 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p out.mp4 ffmpeg version 2.1-static Copyright (c) 2000-2013 the FFmpeg developers built on Dec 9 2013 23:45:24 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/home/user/ffmpeg-static/target --extra-cflags='-I/home/user/ffmpeg-static/target/include -static' --extra-ldflags='-L/home/user/ffmpeg-static/target/lib -lm -static' --extra-version=static --disable-debug --disable-shared --enable-static --extra-cflags=--static --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-pthreads --enable-postproc --enable-gray --enable-runtime-cpudetect --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-bzlib --enable-zlib --enable-nonfree --enable-version3 --enable-libvpx --disable-devices libavutil 52. 48.100 / 52. 48.100 libavcodec 55. 39.100 / 55. 39.100 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, image2, from '*.png': Duration: 00:00:04.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgba, 900x800 [SAR 2835:2835 DAR 9:8], 25 fps, 25 tbr, 25 tbn, 25 tbc File 'out.mp4' already exists. Overwrite ? [y/N] y [libx264 @ 0xa722fe0] using SAR=1/1 [libx264 @ 0xa722fe0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0xa722fe0] profile High, level 3.1 [libx264 @ 0xa722fe0] 264 - core 140 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'out.mp4': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 900x800 [SAR 1:1 DAR 9:8], q=-1--1, 16384 tbn, 1 tbc Stream mapping: Stream #0:0 -> #0:0 (png -> libx264) Press [q] to stop, [?] for help frame= 101 fps=9.0 q=17.0 Lsize= 5678kB time=00:01:39.00 bitrate= 469.8kbits/s video:5676kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.033466% [libx264 @ 0xa722fe0] frame I:2 Avg QP: 4.13 size: 22018 [libx264 @ 0xa722fe0] frame P:58 Avg QP:11.20 size: 77162 [libx264 @ 0xa722fe0] frame B:41 Avg QP:17.59 size: 31504 [libx264 @ 0xa722fe0] consecutive B-frames: 18.8% 81.2% 0.0% 0.0% [libx264 @ 0xa722fe0] mb I I16..4: 89.6% 0.1% 10.2% [libx264 @ 0xa722fe0] mb P I16..4: 7.3% 1.8% 2.6% P16..4: 13.5% 15.0% 22.3% 0.0% 0.0% skip:37.6% [libx264 @ 0xa722fe0] mb B I16..4: 0.3% 0.1% 0.4% B16..8: 20.0% 16.1% 11.6% direct: 8.7% skip:42.7% L0:32.0% L1:33.7% BI:34.3% [libx264 @ 0xa722fe0] 8x8 transform intra:12.1% inter:20.3% [libx264 @ 0xa722fe0] coded y,uvDC,uvAC intra: 28.4% 39.0% 36.4% inter: 25.7% 41.8% 37.4% [libx264 @ 0xa722fe0] i16 v,h,dc,p: 80% 13% 6% 0% [libx264 @ 0xa722fe0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 4% 76% 2% 2% 2% 3% 1% 2% [libx264 @ 0xa722fe0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 17% 27% 7% 6% 6% 8% 5% 4% [libx264 @ 0xa722fe0] i8c dc,h,v,p: 72% 16% 11% 2% [libx264 @ 0xa722fe0] Weighted P-Frames: Y:8.6% UV:6.9% [libx264 @ 0xa722fe0] ref P L0: 60.7% 10.7% 19.4% 9.0% 0.2% [libx264 @ 0xa722fe0] ref B L0: 82.2% 17.8% [libx264 @ 0xa722fe0] kb/s:460.29 On Tue, Dec 10, 2013 at 5:03 PM, Carl Eugen Hoyos wrote: > pablo platt gmail.com> writes: > > > Command used to create the mp4: > > ./phantomjs test.js | ./ffmpeg -y -c:v png -f image2pipe > > -r 10 -i - -c:v libx264 -pix_fmt yuv420p test.mp4 > > What happens if you save the output of phantomjs to a file first? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Tue Dec 10 17:40:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 10 Dec 2013 16:40:57 +0000 (UTC) Subject: [FFmpeg-user] corrupted mp4 encoded from images sent from a pipe References: Message-ID: pablo platt gmail.com> writes: > I've generated images with phantomjs instead of > sending to the pipe. I have img001.png, img002.png... > I'm calling the command: > ../ffmpeg -r 1 -pattern_type glob -i '*.png' > -c:v libx264 -pix_fmt yuv420p out.mp4 (Why did you change from image2pipe to glob?) > The video is still corrupted. Could you explain what is corrupted / how do you know it is corrupted? Please do not top-post here, it is considered rude. Carl Eugen From pablo.platt at gmail.com Tue Dec 10 17:58:54 2013 From: pablo.platt at gmail.com (pablo platt) Date: Tue, 10 Dec 2013 18:58:54 +0200 Subject: [FFmpeg-user] corrupted mp4 encoded from images sent from a pipe In-Reply-To: References: Message-ID: On Tue, Dec 10, 2013 at 6:40 PM, Carl Eugen Hoyos wrote: > pablo platt gmail.com> writes: > > > I've generated images with phantomjs instead of > > sending to the pipe. I have img001.png, img002.png... > > I'm calling the command: > > ../ffmpeg -r 1 -pattern_type glob -i '*.png' > > -c:v libx264 -pix_fmt yuv420p out.mp4 > > (Why did you change from image2pipe to glob?) > I saw this command on the wiki. Tried other variations and this worked. I'll be happy to check other commands if needed. > > > The video is still corrupted. > > Could you explain what is corrupted / how do you > know it is corrupted? > The video doesn't play in FF and Chrome. Maybe corrupted is not the right word but I thought that was the issue when using pipe with phantomjs. In this stackoverflow question someone says he got the same "pipe:: Input/output" error http://stackoverflow.com/questions/19759138/error-using-ffmpeg-image2pipe-with-phantomjs-to-render-video-from-webpage-screen/20497497#20497497 > > Please do not top-post here, it is considered rude. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rbarahona at aciertochile.cl Tue Dec 10 17:07:36 2013 From: rbarahona at aciertochile.cl (Rodrigo Barahona) Date: Tue, 10 Dec 2013 13:07:36 -0300 Subject: [FFmpeg-user] compile error linphone-android Message-ID: <52A73C48.3010205@aciertochile.cl> hi, a tried to compile linphone-android but i have this error. Build of ffmpeg for arm failed. make: *** [/home/rodrigo/linphone-android/submodules/externals/build/ffmpeg/arm/libavcodec/libavcodec-linphone-arm.so] Error 1 Attach config.log Please help me.. -- Rodrigo Barahona B. Dr. Luis Calvo Mackenna 7428, La Florida, Santiago Tel=+56 2 22831375 | M?vil + 56 9 54180476 -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 2159 bytes Desc: not available URL: From realbumba at sharklasers.com Tue Dec 10 14:51:30 2013 From: realbumba at sharklasers.com (RealBumba) Date: Tue, 10 Dec 2013 05:51:30 -0800 (PST) Subject: [FFmpeg-user] ffprobe, show_entries. Message-ID: <1386683490505-4662660.post@n4.nabble.com> Hello I am using ffprobe to get some information, However I want to limit what is returned. So far I am able to easily select what I need from format with -show_entries format=duration,size However, I want to also get the video stream information using stream=width,height The problem with just this, is that it will return all stream wrappers(with blank info) and then the 1 correct wrapper with width and height settings. >From what I see from some examples, the video stream is always set to index 1 inside the streams wrapper, How can I set the search to return width,height from just this section? Thanks in advance. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffprobe-show-entries-tp4662660.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From vswapnasr at gmail.com Tue Dec 10 09:29:44 2013 From: vswapnasr at gmail.com (vswapna) Date: Tue, 10 Dec 2013 00:29:44 -0800 (PST) Subject: [FFmpeg-user] In confution, Where exaclty neighbouring pixels in x264 files Message-ID: <1386664184656-4662659.post@n4.nabble.com> Hi , I traced the dct and quant functions in x264/encoder/macroblock.c But i am in confution where exactly intra prediction neighbouring pixels(TOP & LEFT ) happend for luma and chroma. I am going into analyse.c and macroblock .c files.but i didnt get proper document for the intra prediction in x264.. If anyone knows the inta prediction functions plz let me know -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/In-confution-Where-exaclty-neighbouring-pixels-in-x264-files-tp4662659.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From olivier.pis.langlois at transport.alstom.com Tue Dec 10 20:44:17 2013 From: olivier.pis.langlois at transport.alstom.com (LANGLOIS Olivier PIS -EXT) Date: Tue, 10 Dec 2013 19:44:17 +0000 Subject: [FFmpeg-user] How to set sample format for the alsa demuxer? Message-ID: <89F8E4011FD7234ABFE48744E300CBC206BAC0AE@041-DB3MPN1-092.041d.mgd.msft.net> I want to set the input sample format to s32 but I failed to change it from its S16_LE default format. Am I doing something wrong or did I have stumbled onto a small ffmpeg bug? lano1106 at hpmini ~/dev/packages/ffmpeg/repos/extra-i686/src/ffmpeg-2.1.1/libavdevice :( $ ffmpeg -f alsa -sample_fmt s32 -i hw:1,1,0 -strict -2 -acodec aac -ar 48000 -b:a 64k out.aac ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 10 2013 17:24:34 with gcc 4.8.2 (GCC) configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab libavutil 52. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [alsa @ 0x8b2afa0] cannot set sample format 0x10000 2 (Invalid argument) hw:1,1,0: Input/output error >From ffmpeg header files: avcodec.h: AV_CODEC_ID_PCM_S16LE = 0x10000, alsa-audio.h:#define DEFAULT_CODEC_ID AV_NE(AV_CODEC_ID_PCM_S16BE, AV_CODEC_ID_PCM_S16LE) Here is what I have done to reproduce the problem. I am sending ALSA speaker-test output through the ALSA loopback driver. If I modify the speaker-test output sample format to S16_LE all is fine. lano1106 at hpmini ~/ffmpeg $ sudo modprobe snd_aloop [sudo] password for lano1106: lano1106 at hpmini ~/ffmpeg $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: 92HD81B1X5 Analog [92HD81B1X5 Analog] Subdevices: 0/1 Subdevice #0: subdevice #0 card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM] Subdevices: 8/8 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 Subdevice #7: subdevice #7 >From a different console, I send speaker-test output: lano1106 at hpmini ~/ffmpeg $ speaker-test -Dhw:1,0,0 -c2 -r192000 -F S32_LE speaker-test 1.0.27.2 Playback device is hw:1,0,0 Stream parameters are 192000Hz, S32_LE, 2 channels Using 16 octaves of pink noise Rate set to 192000Hz (requested 192000Hz) Buffer size range from 8 to 262144 Period size range from 8 to 131072 ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. From olivier.pis.langlois at transport.alstom.com Tue Dec 10 22:21:37 2013 From: olivier.pis.langlois at transport.alstom.com (LANGLOIS Olivier PIS -EXT) Date: Tue, 10 Dec 2013 21:21:37 +0000 Subject: [FFmpeg-user] How to set sample format for the alsa demuxer? In-Reply-To: <89F8E4011FD7234ABFE48744E300CBC206BAC0AE@041-DB3MPN1-092.041d.mgd.msft.net> References: <89F8E4011FD7234ABFE48744E300CBC206BAC0AE@041-DB3MPN1-092.041d.mgd.msft.net> Message-ID: <89F8E4011FD7234ABFE48744E300CBC206BAC13A@041-DB3MPN1-092.041d.mgd.msft.net> Hi, I have found the answer: I had to change -sample_fmt s32 in ffmpeg -f alsa -sample_fmt s32 -i hw:1,1,0 -strict -2 -acodec aac -ar 48000 -b:a 64k out.aac to -acodec pcm_s32le for ffmpeg -f alsa -acodec pcm_s32le -i hw:1,1,0 -strict -2 -acodec aac -ar 48000 -b:a 64k out.aac > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of LANGLOIS Olivier PIS -EXT > Sent: Tuesday, December 10, 2013 2:44 PM > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] How to set sample format for the alsa demuxer? > > I want to set the input sample format to s32 but I failed to change it from its > S16_LE default format. > > Am I doing something wrong or did I have stumbled onto a small ffmpeg > bug? > > lano1106 at hpmini ~/dev/packages/ffmpeg/repos/extra-i686/src/ffmpeg- > 2.1.1/libavdevice :( $ ffmpeg -f alsa -sample_fmt s32 -i hw:1,1,0 -strict -2 - > acodec aac -ar 48000 -b:a 64k out.aac > ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers > built on Dec 10 2013 17:24:34 with gcc 4.8.2 (GCC) > configuration: --prefix=/usr --disable-debug --disable-static --enable- > avresample --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl > --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm -- > enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb -- > enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable- > libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex -- > enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable- > libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime- > cpudetect --enable-shared --enable-swresample --enable-vdpau --enable- > version3 --enable-x11grab > libavutil 52. 48.101 / 52. 48.101 > libavcodec 55. 39.101 / 55. 39.101 > libavformat 55. 19.104 / 55. 19.104 > libavdevice 55. 5.100 / 55. 5.100 > libavfilter 3. 90.100 / 3. 90.100 > libavresample 1. 1. 0 / 1. 1. 0 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.104 / 0. 17.104 > libpostproc 52. 3.100 / 52. 3.100 > [alsa @ 0x8b2afa0] cannot set sample format 0x10000 2 (Invalid argument) > hw:1,1,0: Input/output error > ________________________________ CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. From stefasab at gmail.com Tue Dec 10 23:45:31 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Tue, 10 Dec 2013 23:45:31 +0100 Subject: [FFmpeg-user] ffprobe, show_entries. In-Reply-To: <1386683490505-4662660.post@n4.nabble.com> References: <1386683490505-4662660.post@n4.nabble.com> Message-ID: <20131210224531.GG11442@barisone> On date Tuesday 2013-12-10 05:51:30 -0800, RealBumba wrote: > Hello > > I am using ffprobe to get some information, However I want to limit what is > returned. > So far I am able to easily select what I need from format with > -show_entries format=duration,size > > However, I want to also get the video stream information using > stream=width,height > > The problem with just this, is that it will return all stream wrappers(with > blank info) and then the 1 correct wrapper with width and height settings. > > From what I see from some examples, the video stream is always set to index > 1 inside the streams wrapper, How can I set the search to return > width,height from just this section? -select_streams v From everettcarmody at gmail.com Wed Dec 11 02:44:53 2013 From: everettcarmody at gmail.com (Everett Carmody) Date: Tue, 10 Dec 2013 17:44:53 -0800 Subject: [FFmpeg-user] interactive arrow keys Message-ID: Hi, I'm sorry if this is a newbie question but I couldn't find an answer through several differently-worded searches. I use Linux (Arch) and run ffmpeg from the command line. Sometimes I will accidently press the back or left arrow key and the output of ffmpeg changes to what I guess is extra-verbosity-mode or something, in which multi-colored details print in the terminal as it encodes. I would like to know how to get out of that mode, back to normal ffmpeg, non-verbose output. I was thinking that in the long run it might make encoding a little slower since it is using some processing to print output. I've also noticed that pressing the forward, right arrow key puts it in some kind of command entry mode. I guess the processing loss is probably negligible but I would still like to be able to go back to standard output. I like to be able to quickly check the progress and the screen changes too fast with this verbose stuff. Also, I'm a little curious what commands I could enter with the right arrow key thing. Thanks for any help, E From ffmpeg at lists.dedilink.eu Wed Dec 11 03:29:05 2013 From: ffmpeg at lists.dedilink.eu (Fusl) Date: Wed, 11 Dec 2013 03:29:05 +0100 Subject: [FFmpeg-user] interactive arrow keys In-Reply-To: References: Message-ID: <52A7CDF1.5000901@lists.dedilink.eu> On 12/11/2013 02:44 AM, Everett Carmody wrote: > Hi, Hi, > I'm sorry if this is a newbie question but I couldn't find an answer > through several differently-worded searches. I use Linux (Arch) and run > ffmpeg from the command line. Sometimes I will accidently press the back > or left arrow key and the output of ffmpeg changes to what I guess is > extra-verbosity-mode or something, in which multi-colored details print in > the terminal as it encodes. I would like to know how to get out of that > mode, back to normal ffmpeg, non-verbose output. I was thinking that in > the long run it might make encoding a little slower since it is using some > processing to print output. I've also noticed that pressing the forward, > right arrow key puts it in some kind of command entry mode. There is something like an inline help. Just press ? and ffmpeg will print it out.. Example for version N-58852-g4dfc8f6 built on Dec 7 2013 13:24:02: key function ? show this help + increase verbosity - decrease verbosity c Send command to first matching filter supporting it C Send/Que command to all matching filters D cycle through available debug modes h dump packets/hex press to cycle through the 3 states q quit s Show QP histogram With left arrow key, you are actually writing the escape sequence ^[[D to ffmpeg and ffmpeg ignores all keys until it matches something usable (in this case D). So... Up: ^[[A Down: ^[[B Right: ^[[C (Matches Send/Que command to all matching filters) Left: ^[[D (Matches cycle through available debug modes) > > I guess the processing loss is probably negligible but I would still like > to be able to go back to standard output. I like to be able to quickly > check the progress and the screen changes too fast with this verbose > stuff. Also, I'm a little curious what commands I could enter with the > right arrow key thing. Send/Que command to all matching filters > > Thanks for any help, Hope this will help you (at least a little bit) :) > > E > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Best regards Fusl From 449127727 at qq.com Wed Dec 11 07:58:43 2013 From: 449127727 at qq.com (=?gb18030?B?o6jIzKOpsrvH4dTG?=) Date: Wed, 11 Dec 2013 14:58:43 +0800 Subject: [FFmpeg-user] convert video to mp3 Message-ID: hello, how can i convert video 2 mp3 file? can you supply one demo code or flow? thanks From 449127727 at qq.com Wed Dec 11 08:02:37 2013 From: 449127727 at qq.com (=?gb18030?B?o6jIzKOpsrvH4dTG?=) Date: Wed, 11 Dec 2013 15:02:37 +0800 Subject: [FFmpeg-user] convert video 2 mp3 Message-ID: #include #include #include #include #include #include #include #include /* #include #include #include #include #include */ static int ao_strm_idx( AVFormatContext *fmt_ctx ) { int i = 0; int audio_stream_idx = -1; //????metadata //Read packets of a media file to get stream information. if (avformat_find_stream_info(fmt_ctx, NULL) < 0) { printf("%s\n","can not find stream information!"); return -1; } //??????????????????????????????????? //???????? for (i=0; inb_streams; i++) { if ( fmt_ctx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO ) { audio_stream_idx = i; break; } } return audio_stream_idx; } static int get_format_from_sample_fmt(const char **fmt, enum AVSampleFormat sample_fmt) { int i; struct sample_fmt_entry { enum AVSampleFormat sample_fmt; const char *fmt_be, *fmt_le; } sample_fmt_entries[] = { { AV_SAMPLE_FMT_U8, "u8", "u8" }, { AV_SAMPLE_FMT_S16, "s16be", "s16le" }, { AV_SAMPLE_FMT_S32, "s32be", "s32le" }, { AV_SAMPLE_FMT_FLT, "f32be", "f32le" }, { AV_SAMPLE_FMT_DBL, "f64be", "f64le" }, }; *fmt = NULL; for (i = 0; i < FF_ARRAY_ELEMS(sample_fmt_entries); i++) { struct sample_fmt_entry *entry = &sample_fmt_entries[i]; if (sample_fmt == entry->sample_fmt) { *fmt = AV_NE(entry->fmt_be, entry->fmt_le); return 0; } } fprintf(stderr, "Sample format %s not supported as output format\n", av_get_sample_fmt_name(sample_fmt)); return AVERROR(EINVAL); } /** * Fill dst buffer with nb_samples, generated starting from t. */ void fill_samples(double *dst, int nb_samples, int nb_channels, int sample_rate, double *t) { int i, j; double tincr = 1.0 / sample_rate, *dstp = dst; const double c = 2 * M_PI * 440.0; /* generate sin tone with 440Hz frequency and duplicated channels */ for (i = 0; i < nb_samples; i++) { *dstp = sin(c * *t); for (j = 1; j < nb_channels; j++) dstp[j] = dstp[0]; dstp += nb_channels; *t += tincr; } } int main(int argc, const char *argv[]) { AVFormatContext *fmt_ctx = NULL; AVCodecContext *audio_dec_ctx = NULL; AVCodec *codec; AVPacket avpkt; AVFrame *decoded_frame; int ret; const char *fmt; FILE *audio_dst_fd; int dst_bufsize; int got_frame = 0, audio_stream_idx = -1; //int audio_frame_count; const char *src_filename = argv[1]; const char *dst_filename = argv[2]; //?????? av_register_all(); //?? if( avformat_open_input( &fmt_ctx, src_filename, NULL, NULL ) < 0 ) { printf( "can not open [%s]!\n", src_filename ); return -1; } audio_stream_idx = ao_strm_idx( fmt_ctx ); //???? if ( audio_stream_idx == -1 ) { printf( "can not find audio stream in [%s]\n", src_filename ); return -1; // Didn't find a video stream } // Find a registered decoder with a matching codec ID. audio_dec_ctx = fmt_ctx->streams[audio_stream_idx]->codec; codec = avcodec_find_decoder( audio_dec_ctx->codec_id ); if ( codec == NULL ) { fprintf(stderr, "Unsupported codec!\n"); return -1; // Codec not found } // ??????????? if ( avcodec_open2( audio_dec_ctx, codec, NULL ) < 0 ) { printf( "can not opened by decoder!\n" ); return -1; // Could not open codec } audio_dst_fd = fopen( dst_filename, "wb" ); if ( !audio_dst_fd ) { av_free( audio_dec_ctx ); printf( "can not open [%s] errro!\n", dst_filename ); return -1; } // int64_t src_ch_layout = AV_CH_LAYOUT_STEREO; // int src_rate = 48000; // enum AVSampleFormat src_sample_fmt = AV_SAMPLE_FMT_DBL; ///< ???? // int src_nb_channels = 0; // src_nb_channels = av_get_channel_layout_nb_channels( src_ch_layout ); int64_t src_ch_layout = audio_dec_ctx->channel_layout; int src_rate = audio_dec_ctx->sample_rate; enum AVSampleFormat src_sample_fmt = audio_dec_ctx->sample_fmt; int src_nb_channels = 0; src_nb_channels = av_get_channel_layout_nb_channels( src_ch_layout ); int src_nb_samples = 1024; uint8_t **src_data = NULL; int src_linesize; av_samples_alloc_array_and_samples( &src_data, &src_linesize, src_nb_channels, src_nb_samples, src_sample_fmt, 0 ); ///< ????? int64_t dst_ch_layout = AV_CH_LAYOUT_SURROUND; ///< ???? http://baike.baidu.com/link?url=UKDnMkAW4OEll0uLCfUvKgHRy_9PipzEWr11h078sLkakT7JcwNg3-KHLsoeoGal int dst_rate = 44100; ///< ?????? enum AVSampleFormat dst_sample_fmt = AV_SAMPLE_FMT_S16; ///< ???? int dst_nb_channels = 0; dst_nb_channels = av_get_channel_layout_nb_channels( dst_ch_layout ); int dst_nb_samples, max_dst_nb_samples; max_dst_nb_samples = dst_nb_samples = av_rescale_rnd( src_nb_samples, dst_rate, src_rate, AV_ROUND_UP ); uint8_t ** dst_data = NULL; ///< ????? int dst_linesize; ///< ????? av_samples_alloc_array_and_samples( &dst_data, &dst_linesize, dst_nb_channels, dst_nb_samples, dst_sample_fmt, 0 ); ///< ????? struct SwrContext *swr_ctx = 0; swr_ctx = swr_alloc(); if (!swr_ctx) { printf( "Could not allocate resampler context\n" ); return -1; } av_opt_set_int( swr_ctx, "in_channel_layout", src_ch_layout, 0 ); av_opt_set_int( swr_ctx, "in_sample_rate", src_rate, 0 ); av_opt_set_sample_fmt( swr_ctx, "in_sample_fmt", src_sample_fmt, 0 ); av_opt_set_int( swr_ctx, "out_channel_layout", dst_ch_layout, 0 ); av_opt_set_int( swr_ctx, "out_sample_rate", dst_rate, 0 ); av_opt_set_sample_fmt( swr_ctx, "out_sample_fmt", dst_sample_fmt, 0 ); /* initialize the resampling context */ if ( (ret = swr_init(swr_ctx)) < 0 ) { fprintf(stderr, "Failed to initialize the resampling context\n"); return -1; } double t = 0; do { /* generate synthetic audio */ fill_samples((double *)src_data[0], src_nb_samples, src_nb_channels, src_rate, &t); /* compute destination number of samples */ dst_nb_samples = av_rescale_rnd(swr_get_delay(swr_ctx, src_rate) + src_nb_samples, dst_rate, src_rate, AV_ROUND_UP); if (dst_nb_samples > max_dst_nb_samples) { av_free(dst_data[0]); ret = av_samples_alloc(dst_data, &dst_linesize, dst_nb_channels, dst_nb_samples, dst_sample_fmt, 1); if (ret < 0) break; max_dst_nb_samples = dst_nb_samples; } /* convert to destination format */ ret = swr_convert(swr_ctx, dst_data, dst_nb_samples, (const uint8_t **)src_data, src_nb_samples); if (ret < 0) { fprintf(stderr, "Error while converting\n"); //goto end; } dst_bufsize = av_samples_get_buffer_size(&dst_linesize, dst_nb_channels, ret, dst_sample_fmt, 1); printf("t:%f in:%d out:%d\n", t, src_nb_samples, ret); fwrite(dst_data[0], 1, dst_bufsize, audio_dst_fd); } while (t < 10); if ((ret = get_format_from_sample_fmt(&fmt, dst_sample_fmt)) < 0) return -1; // goto end; fprintf(stderr, "Resampling succeeded. Play the output file with the command:\n" "ffplay -f %s -channel_layout %"PRId64" -channels %d -ar %d %s\n", fmt, dst_ch_layout, dst_nb_channels, dst_rate, dst_filename); if (audio_dst_fd) fclose(audio_dst_fd); // if (src_data) // av_freep(&src_data[0]); av_freep(&src_data); if (dst_data) av_freep(&dst_data[0]); av_freep(&dst_data); swr_free(&swr_ctx); return ret < 0; } l want to resample one audito,like "./ff-02 test.mp3 other_audiofile"; the file cann't be play; what is wrong? From anshul.ffmpeg at gmail.com Wed Dec 11 11:32:18 2013 From: anshul.ffmpeg at gmail.com (anshul) Date: Wed, 11 Dec 2013 16:02:18 +0530 Subject: [FFmpeg-user] frame drop while making video from image In-Reply-To: <52A7210F.6070606@gmail.com> References: <52A7210F.6070606@gmail.com> Message-ID: <52A83F32.9090008@gmail.com> I am using below ffmpeg command ffmpeg -y -loglevel 'debug' -r 1/5 -f concat -i /tmp/tmpk7FXmb -pix_fmt yuv420p -s 640x480 "output/Great_Lakes_region_timeshare_camp.mp4" 2> log.txt I have only 25 image from what i want to make movie my fourth image is dropped Console output with value of duration,ost->sync_opts,in_picture->pts and delta ffmpeg version N-58950-g8e5a298 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 10 2013 12:36:38 with gcc 4.7 (SUSE Linux) configuration: --disable-optimizations libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.100 / 55. 45.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 Input #0, concat, from '/tmp/tmpk7FXmb': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj444p(pc), 640x480 [SAR 72:72 DAR 4:3], 25 tbr, 25 tbn, 25 tbc [swscaler @ 0xb1b4040] deprecated pixel format used, make sure you did set range correctly Output #0, mp4, to 'output/Great_Lakes_region_timeshare_camp.mp4': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 16384 tbn, 0.20 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> mpeg4) Press [q] to stop, [?] for help duration1.000000 ost->sync_opts= 0 in_picture->pts=0 delta= 1.000000 Input stream #0:0 frame changed from size:640x480 fmt:yuvj444p to size:279x181 fmt:yuvj420p [swscaler @ 0xb483cc0] deprecated pixel format used, make sure you did set range correctly duration1.000000 ost->sync_opts= 1 in_picture->pts=0 delta= 0.000000 Input stream #0:0 frame changed from size:279x181 fmt:yuvj420p to size:270x187 fmt:yuvj420p [swscaler @ 0xb463200] deprecated pixel format used, make sure you did set range correctly duration1.000000 ost->sync_opts= 2 in_picture->pts=0 delta= -1.000000 Input stream #0:0 frame changed from size:270x187 fmt:yuvj420p to size:279x181 fmt:yuvj420p [swscaler @ 0xb463200] deprecated pixel format used, make sure you did set range correctly duration1.000000 ost->sync_opts= 3 in_picture->pts=0 delta= -2.000000 Input stream #0:0 frame changed from size:279x181 fmt:yuvj420p to size:640x480 fmt:yuvj444p [swscaler @ 0xb463200] deprecated pixel format used, make sure you did set range correctly duration1.000000 ost->sync_opts= 3 in_picture->pts=0 delta= -2.000000 duration1.000000 ost->sync_opts= 3 in_picture->pts=1 delta= -1.000000 duration1.000000 ost->sync_opts= 4 in_picture->pts=2 delta= -1.000000 duration1.000000 ost->sync_opts= 5 in_picture->pts=3 delta= -1.000000 duration1.000000 ost->sync_opts= 6 in_picture->pts=4 delta= -1.000000 duration1.000000 ost->sync_opts= 7 in_picture->pts=5 delta= -1.000000 duration1.000000 ost->sync_opts= 8 in_picture->pts=6 delta= -1.000000 duration1.000000 ost->sync_opts= 9 in_picture->pts=7 delta= -1.000000 duration1.000000 ost->sync_opts= 10 in_picture->pts=8 delta= -1.000000 duration1.000000 ost->sync_opts= 11 in_picture->pts=9 delta= -1.000000 duration1.000000 ost->sync_opts= 12 in_picture->pts=10 delta= -1.000000 duration1.000000 ost->sync_opts= 13 in_picture->pts=11 delta= -1.000000 duration1.000000 ost->sync_opts= 14 in_picture->pts=12 delta= -1.000000 duration1.000000 ost->sync_opts= 15 in_picture->pts=13 delta= -1.000000 duration1.000000 ost->sync_opts= 16 in_picture->pts=14 delta= -1.000000 duration1.000000 ost->sync_opts= 17 in_picture->pts=15 delta= -1.000000 duration1.000000 ost->sync_opts= 18 in_picture->pts=16 delta= -1.000000 duration1.000000 ost->sync_opts= 19 in_picture->pts=17 delta= -1.000000 duration1.000000 ost->sync_opts= 20 in_picture->pts=18 delta= -1.000000 duration1.000000 ost->sync_opts= 21 in_picture->pts=19 delta= -1.000000 duration1.000000 ost->sync_opts= 22 in_picture->pts=20 delta= -1.000000 duration1.000000 ost->sync_opts= 23 in_picture->pts=21 delta= -1.000000 frame= 24 fps=0.0 q=2.0 Lsize= 156kB time=00:02:00.00 bitrate= 10.7kbits/s dup=0 drop=2 video:155kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.580371% I think in_picture->pts is not increasing quite well I also don't undestand why it is changing my image to yuv444p ,according to line one line from log Input stream #0:0 frame changed from size:279x181 fmt:yuvj420p to size:640x480 fmt:yuvj444p I never asked ffmpeg to convert in pixel format to yuv444p, i asked for yuv420p I feel there is no problem in image, because in list of image i gave 2nd and forth image same, if it has converted yuv444p to yuv420p then nnext time when same image come, it should do same conversion properly Please point me some document, so that I can make my timing understanding good, It look like these concepts of mine are weak If all image are in yuv420p format already, then frame drop is not observed From barsnick at gmx.net Wed Dec 11 14:32:55 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Wed, 11 Dec 2013 14:32:55 +0100 Subject: [FFmpeg-user] convert video to mp3 In-Reply-To: References: Message-ID: <20131211133255.GA11759@sunshine.barsnick.net> Hi, On Wed, Dec 11, 2013 at 14:58:43 +0800, ???????????? wrote: > hello, > how can i convert video 2 mp3 file? I consider this impossible. If you are referring to what we usually understand under "mp3", this is an audio format. You cannot "convert" video to audio. If you are looking for a filter which can create a sound which "represents" the visuals in your video, I believe ffmpeg has no such filter: > ffmpeg -filters | grep -F 'V->A' I think the other way is possible: > ffmpeg -filters | grep -F 'A->V' ... avectorscope A->V Convert input audio to vectorscope video output. ... showspectrum A->V Convert input audio to a spectrum video output. ... showwaves A->V Convert input audio to a video output. Moritz From h.reindl at thelounge.net Wed Dec 11 14:39:23 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 11 Dec 2013 14:39:23 +0100 Subject: [FFmpeg-user] convert video to mp3 In-Reply-To: <20131211133255.GA11759@sunshine.barsnick.net> References: <20131211133255.GA11759@sunshine.barsnick.net> Message-ID: <52A86B0B.9010509@thelounge.net> Am 11.12.2013 14:32, schrieb Moritz Barsnick: > On Wed, Dec 11, 2013 at 14:58:43 +0800, ???????????? wrote: >> hello, >> how can i convert video 2 mp3 file? > > I consider this impossible why? > If you are referring to what we usually understand under "mp3" > this is an audio format so what > You cannot "convert" video to audio says who? the video has a seperate audio- and video-stream if hwat you are saying would be true options line -an for skip the audio stream of a video would be impossible ffmpeg -i yourvideo -f mp3 -acodec libmp3lame youraudio.mp3 even the other direction works but while technically nothing is easier than take the audio-stream and convert it to whatever while ignore the video you need a image-loop for the length of your target video - been there, done that, implementation in a php-cli-wrapper took around 1 hour -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From frafart at free.fr Wed Dec 11 14:44:10 2013 From: frafart at free.fr (frafart at free.fr) Date: Wed, 11 Dec 2013 14:44:10 +0100 (CET) Subject: [FFmpeg-user] Cut stream to file, transcode, merge trancoded file without gaps In-Reply-To: <52A6216B.9030502@free.fr> Message-ID: <426990693.252857404.1386769450307.JavaMail.root@zimbra74-e12.priv.proxad.net> Hi, I attempt to achieve this with an UDP Mpeg/Ts input stream : 1- Generate 5 minutes length .ts files from this stream, for shirt time storage purpose. I've tested multicat, ffmpeg segment and some homemade tools, none of them make TS files starting with a KeyFrame (IFrame). This is normal. Joining two produced .ts files to a new one with the ffmpeg concat muxer or a cat command works great, no gap, no scratch, no artefact. 2- Generate 5 minutes length .mp4 (h264/aacplus) files from this generated 5min .ts. I use this ffmpeg command : ffmpeg -i -y -movflags +faststart -c:v libx264 -vf yadif=0:1:0,scale=-1:288 -vprofile baseline -preset fast -crf 18 -maxrate 450k -bufsize 450k -pix_fmt yuv420p -c:a libaacplus -ab 64k -ac 2 (I try with and without -copyinkf) All generated files (.ts, .mp4) must join smoothly (without any gaps or cracks) with subsequent one to produce a new file (eg: 05to10.mp4 | 10to15.mp4 | 15to20.mp4 => 05to20.mp4 ). I've tried the technic described in this post https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files to join .mp4 files ffmpeg -i 05to10.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts ffmpeg -i 10to15.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc 05to15.mp4 Sadly, the output "05to15.mp4" contains video artefacts around the cutting point (~4 min 59 sec). Is there another method to cut the ts stream or tricks to prevent this artifacts ? Anybody can help me to solve this problem ? I use this version : ffmpeg version 1.0.8 Copyright (c) 2000-2013 the FFmpeg developers built on Sep 12 2013 11:57:09 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis libavutil 51. 73.101 / 51. 73.101 libavcodec 54. 59.100 / 54. 59.100 libavformat 54. 29.104 / 54. 29.104 libavdevice 54. 2.101 / 54. 2.101 libavfilter 3. 17.100 / 3. 17.100 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Thanks From cehoyos at ag.or.at Wed Dec 11 14:47:03 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 11 Dec 2013 13:47:03 +0000 (UTC) Subject: [FFmpeg-user] convert video to mp3 References: <20131211133255.GA11759@sunshine.barsnick.net> <52A86B0B.9010509@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > Am 11.12.2013 14:32, schrieb Moritz Barsnick: [...] I believe this discussion shows very well why we always ask for command lines and console output... Carl Eugen From cehoyos at ag.or.at Wed Dec 11 14:46:12 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 11 Dec 2013 13:46:12 +0000 (UTC) Subject: [FFmpeg-user] Cut stream to file, transcode, merge trancoded file without gaps References: <52A6216B.9030502@free.fr> <426990693.252857404.1386769450307.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: free.fr> writes: > ffmpeg version 1.0.8 This look ancient. Carl Eugen From h.reindl at thelounge.net Wed Dec 11 14:58:33 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 11 Dec 2013 14:58:33 +0100 Subject: [FFmpeg-user] convert video to mp3 In-Reply-To: References: <20131211133255.GA11759@sunshine.barsnick.net> <52A86B0B.9010509@thelounge.net> Message-ID: <52A86F89.3080202@thelounge.net> Am 11.12.2013 14:47, schrieb Carl Eugen Hoyos: > Reindl Harald thelounge.net> writes: > >> Am 11.12.2013 14:32, schrieb Moritz Barsnick: > > [...] > > I believe this discussion shows very well why we > always ask for command lines and console output... the opposite is true the question was "how can i convert video 2 mp3 file? " at this point there is no command line or console output why? because there was nothing tried at all, only asked how the problem is blind answering "you can't convert a video to a audio-file" which is technically at least in context of how ffmpeg works nonsense -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From frafart at free.fr Wed Dec 11 15:12:38 2013 From: frafart at free.fr (frafart at free.fr) Date: Wed, 11 Dec 2013 15:12:38 +0100 (CET) Subject: [FFmpeg-user] Cut stream to file, transcode, merge trancoded file without gaps In-Reply-To: Message-ID: <672887248.252931813.1386771158888.JavaMail.root@zimbra74-e12.priv.proxad.net> > free.fr> writes: > > > ffmpeg version 1.0.8 > > This look ancient. It's the deb-multimedia packages pour Debian Wheezy: http://deb-multimedia.org/dists/stable/main/binary-amd64/package/ffmpeg Fabrice. From jul.blon at gmail.com Wed Dec 11 15:31:53 2013 From: jul.blon at gmail.com (jb) Date: Wed, 11 Dec 2013 16:31:53 +0200 Subject: [FFmpeg-user] 3 points jpeg to timelapse issue In-Reply-To: <4028362F-22BB-4FE8-A394-C19896A9383D@gmail.com> References: <4028362F-22BB-4FE8-A394-C19896A9383D@gmail.com> Message-ID: <8AA7B35D-A808-40D4-9000-9866D5F5A9D0@gmail.com> Hi again Where I could really use some expertise is with the processing of multiple folders, since ffmpeg FAQ and google aren't helping. My camera stores FILE0001.JPG to FILE0999.JPG in folder 101MEDIA, than resets filename and fills 102MEDIA, etc. Can someone please point out the BASH way to symlink all files (300'000 and counting) as a single sequence in a single directory, or a way to pass all to ffmpeg according to capture time/creation date, or any command, for that matter, that would allow me to get a single output file out of this mess? Thanks a lot for any help. Regards, J On Dec 9, 2013, at 3:32 PM, jb wrote: > Hi > Having a few issues converting a jpeg sequence to adequate video. Any form of guidance appreciated. > > Frontmost problem is the great loss in quality/depth (huge visible contrast increase) that occurs when applying : > ffmpeg -f image2 -r 12 -i FILE%04d.JPG -r 12 -s 864x648 -vcodec libx264 output.mp4 (original files are ~1.1MB, 2592 x 1944 jpegs) > also tried > ffmpeg -f image2 -r 12 -i FILE%04d.JPG -r 12 -vcodec copy output.mp4 [with previously scaled jpegs ? which isn't practical at all for me?] > with same problem. > > I'm on mac os 10.8.5. A Quicktime conversion (H.264 multi-pass) gives a satisfying output, no significant contrast/range/depth loss, just blurr. Yet Qt isn't practical for me > I'm sure this is documented somewhere, so forgive me for not digging further, but I can't seem to get a 2-pass with ffmpeg to work in this case. > ffmpeg -f image2 -r 12 -i FILE%04d.JPG -pass [[1/2]] -r 12 -s 864x648 -vcodec libx264 output.mp4 ??? > What would the correct syntax be? > And could a 2 pass run solve my quality issue? or have I got it wrong from the start? > > Secondly, once I get the settings right, I need to process the content of multiple folders in the form 101MEDIA, 102MEDIA, etc. > Any way to tell ffmpeg to do this all at once, (190GB of data, and counting?), the output being 'one' big MP4 file? > > Thanks for reading and any hints. > Regards, > J > From 449127727 at qq.com Wed Dec 11 15:31:44 2013 From: 449127727 at qq.com (=?gb18030?B?o6jIzKOpsrvH4dTG?=) Date: Wed, 11 Dec 2013 22:31:44 +0800 Subject: [FFmpeg-user] convert video to mp3 In-Reply-To: <20131211133255.GA11759@sunshine.barsnick.net> References: <20131211133255.GA11759@sunshine.barsnick.net> Message-ID: i am sorry ; I want develop one c program which can convert the audio from video to mp3 file; I need more help than the 'ffmpeg/doc/examples/*.c'. I searched ' convert video to mp3' ,nothing found. can you supply some c program demo ,usefull website or good idea thank you Moritz, thank you every body. ------------------ Original ------------------ From: "Moritz Barsnick";; Date: Wed, Dec 11, 2013 09:32 PM To: "FFMpeg user discussions"; Subject: Re: [FFmpeg-user] convert video to mp3 Hi, On Wed, Dec 11, 2013 at 14:58:43 +0800, ???????????? wrote: > hello, > how can i convert video 2 mp3 file? I consider this impossible. If you are referring to what we usually understand under "mp3", this is an audio format. You cannot "convert" video to audio. If you are looking for a filter which can create a sound which "represents" the visuals in your video, I believe ffmpeg has no such filter: > ffmpeg -filters | grep -F 'V->A' I think the other way is possible: > ffmpeg -filters | grep -F 'A->V' ... avectorscope A->V Convert input audio to vectorscope video output. ... showspectrum A->V Convert input audio to a spectrum video output. ... showwaves A->V Convert input audio to a video output. Moritz _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user . From pb at das-werkstatt.com Wed Dec 11 17:20:30 2013 From: pb at das-werkstatt.com (Peter B.) Date: Wed, 11 Dec 2013 17:20:30 +0100 Subject: [FFmpeg-user] convert video to mp3 In-Reply-To: References: <20131211133255.GA11759@sunshine.barsnick.net> Message-ID: <52A890CE.4010703@das-werkstatt.com> On 12/11/2013 03:31 PM, ?????? wrote: > I searched ' convert video to mp3' ,nothing found. As Moritz already pointed out, the term "convert video to mp3" does not really make sense. This also explains why you didn't find anything with that search phrase. What can be assumed (as Harald already mentioned) is that you would like to extract the audio from a video and save that in MP3 format? If this is the case, you could try to rather search for something like "extract audio from video"? Pb From marillat at debian.org Wed Dec 11 17:49:41 2013 From: marillat at debian.org (Christian Marillat) Date: Wed, 11 Dec 2013 17:49:41 +0100 Subject: [FFmpeg-user] Cut stream to file, transcode, merge trancoded file without gaps In-Reply-To: <672887248.252931813.1386771158888.JavaMail.root@zimbra74-e12.priv.proxad.net> (frafart@free.fr's message of "Wed, 11 Dec 2013 15:12:38 +0100 (CET)") References: <672887248.252931813.1386771158888.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: <87y53rxrh6.fsf@christian.marillat.net> frafart at free.fr writes: >> free.fr> writes: >> >> > ffmpeg version 1.0.8 >> >> This look ancient. > > It's the deb-multimedia packages pour Debian Wheezy: > http://deb-multimedia.org/dists/stable/main/binary-amd64/package/ffmpeg 1.2.4 is also in Wheezy backports : http://deb-multimedia.org/dists/stable-backports/main/binary-amd64/package/ffmpeg Christian From frafart at free.fr Wed Dec 11 18:12:52 2013 From: frafart at free.fr (frafart at free.fr) Date: Wed, 11 Dec 2013 18:12:52 +0100 (CET) Subject: [FFmpeg-user] Cut stream to file, transcode, merge trancoded file without gaps In-Reply-To: <426990693.252857404.1386769450307.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: <642712334.253401943.1386781972777.JavaMail.root@zimbra74-e12.priv.proxad.net> An update about my test. Using this command : ffmpeg -i udp://x.x.x.x:xxxx -force_key_frames 1 -c:a copy -c:v copy -map 0 -f segment -segment_time 300.000 -segment_time_delta 0.005 /tmp/segment/file%03d.ts I can generate TS file witch begin with a I-Frame. I check this with mpegcat : $ mpegcat -F file000.ts | head -30 53133: 0xB8: GOP Start (00:00:00.00 open) 53141: 0x00: Picture (I-Frame) Start (3) 164706: 0x00: Picture (B-Frame) Start (0) 169602: 0x00: Picture (B-Frame) Start (1) 175046: 0x00: Picture (B-Frame) Start (2) 178443: 0x00: Picture (P-Frame) Start (7) 193470: 0x00: Picture (B-Frame) Start (4) 197614: 0x00: Picture (B-Frame) Start (5) 202306: 0x00: Picture (B-Frame) Start (6) 206643: 0x00: Picture (P-Frame) Start (11) 222046: 0x00: Picture (B-Frame) Start (8) 226942: 0x00: Picture (B-Frame) Start (9) 233514: 0x00: Picture (B-Frame) Start (10) 239355: 0x00: Picture (P-Frame) Start (15) 256262: 0x00: Picture (B-Frame) Start (12) 262474: 0x00: Picture (B-Frame) Start (13) 269986: 0x00: Picture (B-Frame) Start (14) 276015: 0x00: Picture (P-Frame) Start (19) 300254: 0x00: Picture (B-Frame) Start (16) 307406: 0x00: Picture (B-Frame) Start (17) 315106: 0x00: Picture (B-Frame) Start (18) 323391: 0x00: Picture (P-Frame) Start (23) 351202: 0x00: Picture (B-Frame) Start (20) 361362: 0x00: Picture (B-Frame) Start (21) 369250: 0x00: Picture (B-Frame) Start (22) 379877: 0xB8: GOP Start (00:00:00.00 open) 379885: 0x00: Picture (I-Frame) Start (3) 476410: 0x00: Picture (B-Frame) Start (0) 485442: 0x00: Picture (B-Frame) Start (1) 492954: 0x00: Picture (B-Frame) Start (2) ... $ I thought that with the TS file, I could generate mp4 clean to join them later. But No :( From lou at lrcd.com Wed Dec 11 19:02:45 2013 From: lou at lrcd.com (Lou) Date: Wed, 11 Dec 2013 09:02:45 -0900 Subject: [FFmpeg-user] 3 points jpeg to timelapse issue In-Reply-To: <4028362F-22BB-4FE8-A394-C19896A9383D@gmail.com> References: <4028362F-22BB-4FE8-A394-C19896A9383D@gmail.com> Message-ID: <20131211090245.0578c577@lrcd.com> On Mon, 9 Dec 2013 15:32:47 +0200 jb wrote: > Frontmost problem is the great loss in quality/depth (huge visible contrast increase) that occurs when applying : > ffmpeg -f image2 -r 12 -i FILE%04d.JPG -r 12 -s 864x648 -vcodec libx264 output.mp4 (original files are ~1.1MB, 2592 x 1944 jpegs) Complete console output is missing. > And could a 2 pass run solve my quality issue? or have I got it wrong from the start? "It depends?" on what you want. 2-pass is generally used if you're targeting a specific output file size. If you just want a certain quality, and reaching a specific file size is less important, then use -crf. Range is a log scale of 0-51. 0 is lossless, 18 is sometimes considered to be "visually lossless" (depending on the input, the viewer, other encoding settings, etc), 23 is the default, and 51 is the worst quality. Start with 23 and increase or decrease the value until you find the highest value that still provides an acceptable quality. Use this value for the rest of your image sets. If you're going to upload to a video service then try 18 since they will re-encode anything you provide. (You can try 0 too and the size difference may not be too significant depending on your input such as easy to encode, fairly static inputs). > Secondly, once I get the settings right, I need to process the content of multiple folders in the form 101MEDIA, 102MEDIA, etc. > Any way to tell ffmpeg to do this all at once, (190GB of data, and counting?), the output being 'one' big MP4 file? I can provide some examples, but your complete console output for at least one of your commands is missing. My answer will depend on this information. From lou at lrcd.com Wed Dec 11 19:05:06 2013 From: lou at lrcd.com (Lou) Date: Wed, 11 Dec 2013 09:05:06 -0900 Subject: [FFmpeg-user] 3 points jpeg to timelapse issue In-Reply-To: References: <4028362F-22BB-4FE8-A394-C19896A9383D@gmail.com> Message-ID: <20131211090506.32039e00@lrcd.com> On Mon, 9 Dec 2013 13:52:06 +0000 (UTC) Carl Eugen Hoyos wrote: > jb gmail.com> writes: > > > ffmpeg -f image2 -r 12 -i FILE%04d.JPG -r 12 -s 864x648 > > -vcodec libx264 output.mp4 > > (original files are ~1.1MB, 2592 x 1944 jpegs) > > (Complete, uncut console output missing.) > > You neither provide a bitrate nor a constant quantizer so > a (small) bitrate is chosen. Default for libx264 is "-crf 23" (ridiculously ancient builds excluded). From gupiez at gmail.com Wed Dec 11 01:52:56 2013 From: gupiez at gmail.com (hirschhornsalz) Date: Tue, 10 Dec 2013 16:52:56 -0800 (PST) Subject: [FFmpeg-user] x11grab video stalls every 30 seconds in screencapture In-Reply-To: References: <51B181F1.1040701@gmail.com> Message-ID: <1386723176564-4662670.post@n4.nabble.com> If the stall happens exactly every 30 seconds, it is most likely from the linux kernel, which does a dirty page writeback if a page gets older than 30 seconds. If the amount of memory written in 30 sec is to big, the writeback may last significantly longer the a frame (33 msec) and you lose frames. You can try either for a writeback every second (possibly a even lower value) or, if you have lots of RAM (more than the size of the screencast) for completely avoiding writeback fpr 10 minutes worth of screencast. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/x11grab-video-stalls-every-30-seconds-in-screencapture-tp4651242p4662670.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From realbumba at sharklasers.com Wed Dec 11 13:24:49 2013 From: realbumba at sharklasers.com (RealBumba) Date: Wed, 11 Dec 2013 04:24:49 -0800 (PST) Subject: [FFmpeg-user] using show_entries returns more results that specified Message-ID: <1386764689808-4662677.post@n4.nabble.com> for example, if I wish to return just duration,size from format, and width,height from streams with query /ffprobe -v quiet -show_streams -select_streams v -show_entries format=size,duration:stream=width,height -print_format json -i test.mp4/ It will return what I wanted removing most excess, but there are still some other entries, such as *tags*(in both streams and format wrapper), along with *disposition* in the streams wrapper. why is this being returned when I am not asking for it? Thanks in advance -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/using-show-entries-returns-more-results-that-specified-tp4662677.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From realbumba at sharklasers.com Wed Dec 11 13:16:32 2013 From: realbumba at sharklasers.com (RealBumba) Date: Wed, 11 Dec 2013 04:16:32 -0800 (PST) Subject: [FFmpeg-user] ffprobe, show_entries. In-Reply-To: <20131210224531.GG11442@barisone> References: <1386683490505-4662660.post@n4.nabble.com> <20131210224531.GG11442@barisone> Message-ID: <1386764192772-4662676.post@n4.nabble.com> Thanks, That seemed to work. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffprobe-show-entries-tp4662660p4662676.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefasab at gmail.com Wed Dec 11 20:24:11 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 11 Dec 2013 20:24:11 +0100 Subject: [FFmpeg-user] using show_entries returns more results that specified In-Reply-To: <1386764689808-4662677.post@n4.nabble.com> References: <1386764689808-4662677.post@n4.nabble.com> Message-ID: <20131211192411.GI11442@barisone> On date Wednesday 2013-12-11 04:24:49 -0800, RealBumba wrote: > for example, if I wish to return just duration,size from format, and > width,height from streams with query > > /ffprobe -v quiet -show_streams -select_streams v -show_entries > format=size,duration:stream=width,height -print_format json -i test.mp4/ > > It will return what I wanted removing most excess, but there are still some > other entries, such as *tags*(in both streams and format wrapper), along > with *disposition* in the streams wrapper. > why is this being returned when I am not asking for it? Yes, this is the expected behavior. When you select -show_streams, you select all stream local entries and their subsections, and is the equivalent of "-show_entries streams". You can explicitly disable the elements in subsections, by doing: "stream_tags=:stream_disposition=" (see ffprobe -sections for the complete list of sections). or enabling through -show_entries only the local entries you're interested in: ffprobe -select_streams v -show_entries format=size,duration:stream=width,height -print_format json INPUT Quoting the manual: |If section name is specified but is followed by no "=", all entries |are printed to output, together with all the contained |sections. Otherwise only the entries specified in the local section |entries list are printed. In particular, if "=" is specified but the |list of local entries is empty, then no entries will be shown for |that section. From forrie at gmail.com Wed Dec 11 23:40:03 2013 From: forrie at gmail.com (Forrest Aldrich) Date: Wed, 11 Dec 2013 17:40:03 -0500 Subject: [FFmpeg-user] Advice: Running FFMPEG under VMware, performance tuning, config Message-ID: <52A8E9C3.8040801@gmail.com> We have been running FFMPEG on real-iron hardware for a while; now, starting to run it in VMware VMs -- which is a game changer in terms of flexibility; however, I have noticed a performance degradation -- which I partially expected. Understanding VMware's scheduler and how it handles CPU bandwidth is key - for example, if you have 2 cores and a max CPU speed of 3ghz, the speed is divided between the two cores. So, does that make two cores more efficient than one, at full speed? In any case, we need to expand our use of this tool under virtual environments and I'm wondering if some of you more-experienced folks might have some tips, advice about how to maximize performance of FFMPEG under VMs. VMware is our primary system, but I am going to take a peek at Xen for some development/testing. Thank you in advance... Forrest From inpost at gmail.com Wed Dec 11 23:43:43 2013 From: inpost at gmail.com (e-letter) Date: Wed, 11 Dec 2013 22:43:43 +0000 Subject: [FFmpeg-user] how to change ffmpeg configuration Message-ID: Readers, An attempt to convert flv to ogg failed: ffmpeg -i file.flv file.ogg FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers built on May 15 2012 07:00:00 with gcc 4.4.3 configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --disable-stripping --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --disable-encoder=vorbis --enable-x11grab --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger --disable-decoder=aac --disable-encoder=aac 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 libpostproc 51. 2. 0 / 51. 2. 0 ... Input #0, flv, from '...': Metadata: duration : ... moovPosition : ... audiocodecid : mp4a aacaot : 2 audiosamplerate : 22050 audiochannels : 1 Duration: ..., start: 0.000000, bitrate: N/A Stream #0.0: Audio: 0x0000, 22050 Hz, 1 channels Output #0, ogg, to '...ogg': Stream #0.0: Audio: flac, 22050 Hz, 1 channels, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Decoder (codec id 86018) not found for input stream #0.0 Is it correct to conclude that the configuration file needs to be changed, to enable the aac decoder? Where is the configuration file to be found? -- mandriva From lou at lrcd.com Thu Dec 12 00:14:37 2013 From: lou at lrcd.com (Lou) Date: Wed, 11 Dec 2013 14:14:37 -0900 Subject: [FFmpeg-user] how to change ffmpeg configuration In-Reply-To: References: Message-ID: <20131211141437.7069a8ec@lrcd.com> On Wed, 11 Dec 2013 22:43:43 +0000 e-letter wrote: > Readers, > > An attempt to convert flv to ogg failed: > > ffmpeg -i file.flv file.ogg > > FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers This is old. Please compile from git master or use a recent build: http://trac.ffmpeg.org/wiki/CompilationGuide http://ffmpeg.org/download.html > built on May 15 2012 07:00:00 with gcc 4.4.3 > configuration: --prefix=/usr --enable-shared --libdir=/usr/lib > --shlibdir=/usr/lib --incdir=/usr/include --disable-stripping > --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora > --enable-libvorbis --disable-encoder=vorbis --enable-x11grab > --enable-runtime-cpudetect --enable-libdc1394 --enable-libschroedinger > --disable-decoder=aac --disable-encoder=aac Why --disable-decoder=aac --disable-encoder=aac? You disabled native AAC decoding and encoding, but you are also not using an external AAC library resulting in no AAC decoding or encoding capability. --enable-pthreads and --enable-postproc are default (at least with recent ffmpeg) so you don't need these. > Input #0, flv, from '...': > Metadata: > duration : ... > moovPosition : ... > audiocodecid : mp4a > aacaot : 2 > audiosamplerate : 22050 > audiochannels : 1 > Duration: ..., start: 0.000000, bitrate: N/A > Stream #0.0: Audio: 0x0000, 22050 Hz, 1 channels I'm guessing that this is AAC audio, but you disabled the AAC decoder. > Is it correct to conclude that the configuration file needs to be > changed, to enable the aac decoder? You need to not use --disable-encoder=aac. > Where is the configuration file to be found? Changing the configure file will not change anything. You need to re-compile ffmpeg without --disable-encoder=aac or use a recent build. From harninder.rai at freescale.com Thu Dec 12 12:58:29 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Thu, 12 Dec 2013 11:58:29 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc Message-ID: Hello All, I am facing "Illegal instruction " error when I execute ffmpeg on powerpc I have configured ffmpeg with the following options ./configure --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux --disable-altivec [root at P1024RDB shm]# ./ffmpeg Illegal instruction [root at P1024RDB shm]# cat /proc/cpuinfo processor : 0 cpu : e500v2 clock : 799.999992MHz revision : 5.1 (pvr 8021 2051) bogomips : 100.00 processor : 1 cpu : e500v2 clock : 799.999992MHz revision : 5.1 (pvr 8021 2051) bogomips : 100.00 total bogomips : 200.00 timebase : 50000000 platform : P1020RDB-PC model : fsl,P1020RDB-PC Memory : 1024 MB From renaux.jacky at orange.fr Thu Dec 12 13:10:25 2013 From: renaux.jacky at orange.fr (jacky) Date: Thu, 12 Dec 2013 13:10:25 +0100 Subject: [FFmpeg-user] second pass combined with volume detect Message-ID: <52A9A7B1.1000605@orange.fr> Hi I am doing encoding from vob to flv (avc/aac) 2 passes using a git static built on 21013 dec 6 my command line are ffmpeg -i input_file -vcodec x264 -b:v value -r:v value -vf 0.9375 -g value -an pass 1 -y output.flv ffmpeg -i input_file -vcodec x264 -b:v value -r:v value -vf 0.9375 -g value -acodec aac -strict -2 -ab value -ar value -ac value pass 2 -y output.flv then I have to restart 2 ffmpeg runs one to figure out what is the sound level , and then correct it my command lines are ffmpeg -f lavfi -i movie=input_file,volumedetect -f null -y logfile calculated_volume = from the logfile ffmpeg -i input_file -vcodec copy -acodec aac -strict -2 -ab value -ar value -ac 1 -af calculated_volume -y output_file would it be possible during the second passe to include a volumedetect ? I am presently doing so using -f lavfi -i amovie=,volumedetect -f null there are some "collission" betwen -f options i do not succeed to mix both , what would be the correct syntax thanks jacky From nageshblore at gmail.com Thu Dec 12 16:56:57 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Thu, 12 Dec 2013 21:26:57 +0530 Subject: [FFmpeg-user] png to mp4 conversion error. Message-ID: I have a png file that I want to convert to a video of n seconds. These png files were created from the convert (imagemagick) command where the input is a couple of lines of text. The output is a png file with the text in white, background black, Helvetica font and size 16. The ffmpeg command (shown below) converts most images correctly. For others, the conversion does not happen. It seems, there are some parameters of png file that need to be set correctly to allow successful conversion. If so, what are they ? And, would you know how to set them when using the convert command ? user at host:~$ ffmpeg -y -loop 1 -t 10 -f image2 -i banner.png -c:v libx264 banner.mp4 ffmpeg version git-2013-12-01-975110a Copyright (c) 2000-2013 the FFmpeg developers built on Dec 2 2013 02:23:37 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9) configuration: --prefix=/home/user/ffmpeg_build --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 56.100 / 52. 56.100 libavcodec 55. 44.100 / 55. 44.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 91.100 / 3. 91.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [png @ 0x3389c00] unsupported bit depth 16 and color type 4 Last message repeated 126 times [image2 @ 0x3388a40] decoding for stream 0 failed [image2 @ 0x3388a40] Could not find codec parameters for stream 0 (Video: png, 777x166 [SAR 72:72 DAR 777:166]): unspecified pixel format Consider increasing the value for the 'analyzeduration' and 'probesize' options banner.png: could not find codec parameters From llee040 at sbcglobal.net Thu Dec 12 17:24:16 2013 From: llee040 at sbcglobal.net (L. Lee) Date: Thu, 12 Dec 2013 10:24:16 -0600 Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> Message-ID: On 12/9/13, 8:44 PM, "Nicholas Robbins" wrote: >The 'decimate' filter after fieldmatch would take care of the frame rate >coversion, but it just throws out the extra frame, so it wouldn't change >the fact that fieldmatch was labeling frames as interlaced, but yadif >wasn't deinterlacing them. That hasn?t been my experience at all. The frame rate of the output may be the same, but unless the filter chain and all other options are the same, the encoding results might be entirely different. Laine Lee From nageshblore at gmail.com Thu Dec 12 17:46:47 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Thu, 12 Dec 2013 22:16:47 +0530 Subject: [FFmpeg-user] Fwd: png to mp4 conversion error. In-Reply-To: References: Message-ID: The identify command does show difference but, I am not sure, I understand them. For example, ffmpeg says, "unspecified pixel format". But, the image properties do not list anything specific to pixel format. Apart from that, the image that does not transcode successfully shows a histogram in its output whereas, this histogram is not seen with the image that works. From nickrobbins at yahoo.com Thu Dec 12 19:02:06 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Thu, 12 Dec 2013 10:02:06 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> Message-ID: <1386871326.94343.YahooMailNeo@web160804.mail.bf1.yahoo.com> > On Thursday, December 12, 2013 11:25 AM, L. Lee wrote: > > On 12/9/13, 8:44 PM, "Nicholas Robbins" > wrote: > >> The 'decimate' filter after fieldmatch would take care of the frame > rate >> coversion, but it just throws out the extra frame, so it wouldn't change >> the fact that fieldmatch was labeling frames as interlaced, but yadif >> wasn't deinterlacing them. > > > That hasn?t been my experience at all. The frame rate of the output may be > the same, but unless the filter chain and all other options are the same, > the encoding results might be entirely different. > > Laine Lee I'm not sugesting that it would be identical, but it seems that the problem is between fieldmatch and yadif so tacking ,decimate onto the end would not change if yadif caught the frames. I tested and the I get the "still interlaced" frames at the same places. Frame #8158 at 272.205 is still interlaced time=00:04:31.96 bitrate=2607.8kbits/s??? [Parsed_fieldmatch_1 @ 0x306d9d4f20] Frame #8159 at 272.239 is still interlaced [Parsed_fieldmatch_1 @ 0x306d9d4f20] Frame #8160 at 272.272 is still interlaced Furthermore, if decimate does its job right the frame rate is already 24000/1001 since it was 30000/1001 and decimate drops every fifth frame. I checked and the decimated version has a frame rate of 23.97. So I don't thinking adding the fps filter at the end should change things. Also, I just checked, and it doesn't. Same output and error. -Nick From forrie at gmail.com Thu Dec 12 20:25:11 2013 From: forrie at gmail.com (Forrest Aldrich) Date: Thu, 12 Dec 2013 14:25:11 -0500 Subject: [FFmpeg-user] Performance tuning FFMPEG under VMware Message-ID: <52AA0D97.4060804@gmail.com> We have been running FFMPEG on real-iron hardware for a while; we're now trying it under VMware VMs. I've noticed a performance degradation -- which I partially expected. There are lots of folks out there running FFMPEG like this, in large transcoding farms (Yahoo/Google?) so I'm hoping for some really useful information. If you have 2 cores and a max CPU speed of 3ghz, the speed is divided between the two cores. So, does that make two cores more efficient than one, at full speed? Thank you in advance... Forrest From everettcarmody at gmail.com Thu Dec 12 21:03:23 2013 From: everettcarmody at gmail.com (Everett Carmody) Date: Thu, 12 Dec 2013 12:03:23 -0800 Subject: [FFmpeg-user] interactive arrow keys In-Reply-To: <52A7CDF1.5000901@lists.dedilink.eu> References: <52A7CDF1.5000901@lists.dedilink.eu> Message-ID: thank you! Makes sense now. On Tue, Dec 10, 2013 at 6:29 PM, Fusl wrote: > On 12/11/2013 02:44 AM, Everett Carmody wrote: > > Hi, > Hi, > > I'm sorry if this is a newbie question but I couldn't find an answer > > through several differently-worded searches. I use Linux (Arch) and run > > ffmpeg from the command line. Sometimes I will accidently press the back > > or left arrow key and the output of ffmpeg changes to what I guess is > > extra-verbosity-mode or something, in which multi-colored details print > in > > the terminal as it encodes. I would like to know how to get out of that > > mode, back to normal ffmpeg, non-verbose output. I was thinking that in > > the long run it might make encoding a little slower since it is using > some > > processing to print output. I've also noticed that pressing the forward, > > right arrow key puts it in some kind of command entry mode. > There is something like an inline help. Just press ? and ffmpeg will > print it out.. > > Example for version N-58852-g4dfc8f6 built on Dec 7 2013 13:24:02: > key function > ? show this help > + increase verbosity > - decrease verbosity > c Send command to first matching filter supporting it > C Send/Que command to all matching filters > D cycle through available debug modes > h dump packets/hex press to cycle through the 3 states > q quit > s Show QP histogram > > With left arrow key, you are actually writing the escape sequence ^[[D > to ffmpeg and ffmpeg ignores all keys until it matches something usable > (in this case D). > So... > Up: ^[[A > Down: ^[[B > Right: ^[[C (Matches Send/Que command to all matching filters) > Left: ^[[D (Matches cycle through available debug modes) > > > > > I guess the processing loss is probably negligible but I would still like > > to be able to go back to standard output. I like to be able to quickly > > check the progress and the screen changes too fast with this verbose > > stuff. Also, I'm a little curious what commands I could enter with the > > right arrow key thing. > Send/Que command to all matching filters > > > > Thanks for any help, > Hope this will help you (at least a little bit) :) > > > > E > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > Best regards > > Fusl > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From gorschten at gmail.com Thu Dec 12 09:03:04 2013 From: gorschten at gmail.com (Carsten Theis) Date: Thu, 12 Dec 2013 09:03:04 +0100 Subject: [FFmpeg-user] Converting Message-ID: Hi there. I want to convert recorded tv files into mkv. I record some kids movies on my "Edision vip" sattelite receiver. It is stored as separate trp files. Is a record about 3,5 gb it is stored into: data00.trp data01.trp ... data06.trp each file is 700MB. What I want to do is to make one file of 3,5gb and convert it into mkv files format that supports hd video resolution and multi-audio channel 5.1. I want to store it onto my nas. The kitchens tv can not playback trp files but mkv files. I like to do that with ffmpeg and not with any other software. I am looking for a solution that match it in one step because I have no time to wait in front of the pc to wait. If its start then it can take time to convert... Who can help?? Thats in advance. gorschten From realbumba at sharklasers.com Thu Dec 12 05:21:10 2013 From: realbumba at sharklasers.com (RealBumba) Date: Wed, 11 Dec 2013 20:21:10 -0800 (PST) Subject: [FFmpeg-user] using show_entries returns more results that specified In-Reply-To: <20131211192411.GI11442@barisone> References: <1386764689808-4662677.post@n4.nabble.com> <20131211192411.GI11442@barisone> Message-ID: <1386822070464-4662696.post@n4.nabble.com> Hello Thanks for your answer, However I failed to make changes to my question when I posted the screenshot image of cmd ffprobe.(hence why the screenshot doesnt show *disposition* entry) I applied the same query you suggested with returns what is in the screenshot. /ffprobe -select_streams v -show_entries format=size,duration:stream=width,height -print_format json INPUT / And this query does fix the return of disposition, But this query still leaves empty wrapper *programs*, along with empty tag entries inside *streams* and *format* Why are these being returned? Thanks in advance. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/using-show-entries-returns-more-results-that-specified-tp4662677p4662696.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Thu Dec 12 22:00:22 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Thu, 12 Dec 2013 22:00:22 +0100 Subject: [FFmpeg-user] Performance tuning FFMPEG under VMware In-Reply-To: <52AA0D97.4060804@gmail.com> References: <52AA0D97.4060804@gmail.com> Message-ID: <1BC46F51-F0A6-4B17-8A7A-CAA66F1A5BAF@zonnet.nl> On 12 Dec 2013, at 20:25, Forrest Aldrich wrote: > We have been running FFMPEG on real-iron hardware for a while; we're now trying it under VMware VMs. I've noticed a performance degradation -- which I partially expected. > > There are lots of folks out there running FFMPEG like this, in large transcoding farms (Yahoo/Google?) so I'm hoping for some really useful information. > > If you have 2 cores and a max CPU speed of 3ghz, the speed is divided between the two cores. So, does that make two cores more efficient than one, at full speed? 1 core 20fps 2 cores 37fps 3 cores 44fps 4 cores 47fps with 4 ffmpeg single core instances " -r 1? you?ll get 4 x 20 = 80fps. > > > Thank you in advance... > > > Forrest > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From tevans.uk at googlemail.com Thu Dec 12 23:59:32 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Thu, 12 Dec 2013 22:59:32 +0000 Subject: [FFmpeg-user] Converting In-Reply-To: References: Message-ID: On Thu, Dec 12, 2013 at 8:03 AM, Carsten Theis wrote: > Hi there. > I want to convert recorded tv files into mkv. I record some kids movies on > my "Edision vip" sattelite receiver. It is stored as separate trp files. Is > a record about 3,5 gb it is stored into: > data00.trp Hiya What kind of file is this? Can you post what ffprobe says about it (or just run "ffmpeg data00.trp", it will error but still show the interesting information. Cheers Tom From stefasab at gmail.com Fri Dec 13 00:15:41 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 13 Dec 2013 00:15:41 +0100 Subject: [FFmpeg-user] using show_entries returns more results that specified In-Reply-To: <1386822070464-4662696.post@n4.nabble.com> References: <1386764689808-4662677.post@n4.nabble.com> <20131211192411.GI11442@barisone> <1386822070464-4662696.post@n4.nabble.com> Message-ID: <20131212231541.GB2516@barisone> On date Wednesday 2013-12-11 20:21:10 -0800, RealBumba wrote: > Hello > > Thanks for your answer, However I failed to make changes to my question when > I posted the screenshot image of cmd ffprobe.(hence why the screenshot > doesnt show *disposition* entry) > > I applied the same query you suggested with returns what is in the > screenshot. > /ffprobe -select_streams v -show_entries > format=size,duration:stream=width,height -print_format json INPUT / > And this query does fix the return of disposition, But this query still > leaves empty wrapper *programs*, along with empty tag entries inside > *streams* and *format* > > Why are these being returned? When you select a section to print, all the containing sections are enabled as well. In this case stream is contained in a program (a program can contain multiple streams), and thus the container is shown. It was meant to show streams informats from the programs section, rather than just reference them, and this is a side effect. About the empty tags container, yes that's probably a bug we should fix. Note that from the parsing side this should not cause problems, since you can skip the unwanted data when processing the JSON. Is that a problem for you? -- FFmpeg = Fantastic and Forgiving Murdering Powerful EnGine From dashing.meng at gmail.com Fri Dec 13 03:56:41 2013 From: dashing.meng at gmail.com (littlebat) Date: Fri, 13 Dec 2013 10:56:41 +0800 Subject: [FFmpeg-user] Converting In-Reply-To: References: Message-ID: <20131213105641.83164a98f88e408f23051300@gmail.com> On Thu, 12 Dec 2013 09:03:04 +0100 Carsten Theis wrote: > Hi there. > I want to convert recorded tv files into mkv. I record some kids > movies on my "Edision vip" sattelite receiver. It is stored as > separate trp files. Is a record about 3,5 gb it is stored into: > data00.trp > data01.trp > ... > data06.trp > each file is 700MB. > > What I want to do is to make one file of 3,5gb and convert it into mkv > files format that supports hd video resolution and multi-audio > channel 5.1. I want to store it onto my nas. The kitchens tv can not > playback trp files but mkv files. > I like to do that with ffmpeg and not with any other software. I am > looking for a solution that match it in one step because I have no > time to wait in front of the pc to wait. If its start then it can > take time to convert... Who can help?? > Thats in advance. You can try the command below convert the file to mkv first: ffmpeg -i data00.trp -q:v 0 data00.mkv Then use concat filter to join them together: http://ffmpeg.org/ffmpeg-filters.html#concat From ronag89 at gmail.com Fri Dec 13 10:23:14 2013 From: ronag89 at gmail.com (Robert Nagy) Date: Fri, 13 Dec 2013 10:23:14 +0100 Subject: [FFmpeg-user] AMA Link Message-ID: Is it possible to create files with ffmpeg that can be successfully AMA linked in Avid? I've managed to do this with xdcam and imx50 codecs in a mxf container with ffmbc. However, I would prefer using ffmpeg if possible. From realbumba at sharklasers.com Fri Dec 13 20:01:08 2013 From: realbumba at sharklasers.com (RealBumba) Date: Fri, 13 Dec 2013 11:01:08 -0800 (PST) Subject: [FFmpeg-user] using show_entries returns more results that specified In-Reply-To: <20131212231541.GB2516@barisone> References: <1386764689808-4662677.post@n4.nabble.com> <20131211192411.GI11442@barisone> <1386822070464-4662696.post@n4.nabble.com> <20131212231541.GB2516@barisone> Message-ID: <1386961268718-4662711.post@n4.nabble.com> When you say "select a section to print", You are referring to query /-show_entries/? rather than /-select_streams v/? /select_streams v/ does not return *programs* wrapper for me(when queried without /-show_entries/), So it seems /-show_entries/ is what is bringing the programs wrapper into view. Regarding tags wrapper, Your right I can just parse the json and remove, I wanted to know why it was being returned as I spent alot of time going through many different combinations and strings to remove it without success(im new to ffmpeg). So thanks for answering this.(I might have carried on more hours if you didn't reply) (Overall when you find much free time, its probably best fixed, better to not be returned in the start than have to manipulate json) Thanks! PS - From another angle, Is there anyway I can force tags to not show? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/using-show-entries-returns-more-results-that-specified-tp4662677p4662711.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dave at dericed.com Sat Dec 14 02:36:10 2013 From: dave at dericed.com (Dave Rice) Date: Fri, 13 Dec 2013 20:36:10 -0500 Subject: [FFmpeg-user] convert video to mp3 In-Reply-To: <52A890CE.4010703@das-werkstatt.com> References: <20131211133255.GA11759@sunshine.barsnick.net> <52A890CE.4010703@das-werkstatt.com> Message-ID: On Dec 11, 2013, at 11:20 AM, Peter B. wrote: > On 12/11/2013 03:31 PM, ?????? wrote: >> I searched ' convert video to mp3' ,nothing found. > > As Moritz already pointed out, the term "convert video to mp3" does not > really make sense. This also explains why you didn't find anything with > that search phrase. Here's a sample of video converted to mp3 and then back. http://www.youtube.com/watch?v=n1-xx1x6PnQ I did this by feeding rawvideo into an mp3 encoder disguided as rawaudio and then converting it back to show the effects of lossy audio encoding on video data. Dave Rice From battistel at gmail.com Sat Dec 14 12:01:36 2013 From: battistel at gmail.com (Massimo Battistel) Date: Sat, 14 Dec 2013 12:01:36 +0100 Subject: [FFmpeg-user] Questions about PTS/DTS shifting Message-ID: hello, I have this theoretical question: Suppose a video with 2 tracks a/v (25fps, uncompressed so that pts=dts) made like that (timebase is 1/1000 for both tracks): first video pts = 40 first audio pts = 72 I would like to reach at least one of the following goals: A: Shifting one track to 0 keeping sync with audio: first video pts = 0 first audio pts = 32 B: Using padding (to keep sync), having audio pts=video pts first video pts = 40 first audio pts = 40 C: This would be the best. both pts starts from 0 with sync. first video pts = 0 first audio pts = 0 (with padding) How to do that with a single command line and without having to previously parse file to know first_pts values? With [a]setpts filters I could shift timecodes but video filter don't know anythig about audio pts, so I need to know pts values previously. With areasmple:first_pts=x I have to know first video pts. Any suggestions? Thanks, MB From stefasab at gmail.com Sat Dec 14 14:12:12 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Sat, 14 Dec 2013 14:12:12 +0100 Subject: [FFmpeg-user] using show_entries returns more results that specified In-Reply-To: <1386961268718-4662711.post@n4.nabble.com> References: <1386764689808-4662677.post@n4.nabble.com> <20131211192411.GI11442@barisone> <1386822070464-4662696.post@n4.nabble.com> <20131212231541.GB2516@barisone> <1386961268718-4662711.post@n4.nabble.com> Message-ID: <20131214131212.GA21649@barisone> On date Friday 2013-12-13 11:01:08 -0800, RealBumba wrote: > When you say "select a section to print", You are referring to query > /-show_entries/? rather than /-select_streams v/? > /select_streams v/ does not return *programs* wrapper for me(when queried > without /-show_entries/), So it seems /-show_entries/ is what is bringing > the programs wrapper into view. > > Regarding tags wrapper, Your right I can just parse the json and remove, I > wanted to know why it was being returned as I spent alot of time going > through many different combinations and strings to remove it without > success(im new to ffmpeg). > So thanks for answering this.(I might have carried on more hours if you > didn't reply) > > (Overall when you find much free time, its probably best fixed, better to > not be returned in the start than have to manipulate json) Tags issue should be fixed, program streams issues would break compatibility with the old scripts. Again, I still fail to see which is your practical problem, since once you have the JSON you can edit its content in your scripting environment. From inpost at gmail.com Sun Dec 15 13:10:07 2013 From: inpost at gmail.com (e-letter) Date: Sun, 15 Dec 2013 12:10:07 +0000 Subject: [FFmpeg-user] how to change ffmpeg configuration In-Reply-To: <20131211141437.7069a8ec@lrcd.com> References: <20131211141437.7069a8ec@lrcd.com> Message-ID: On 11/12/2013, Lou wrote: > > Changing the configure file will not change anything. You need to > re-compile ffmpeg without --disable-encoder=aac or use a recent build. > Using firefox firefogg extension, the existing software installed is used by the extension perform conversion From joolzg at btinternet.com Sun Dec 15 14:44:32 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Sun, 15 Dec 2013 13:44:32 +0000 (GMT) Subject: [FFmpeg-user] Overlaying Teletext, getting jerky video Message-ID: <1387115072.50960.YahooMailNeo@web87804.mail.ir2.yahoo.com> AS TOLD, I AM REPOSTING THIS HERE Command line and output, I know im not using a great encoder, but its a test so im not bothered about the quality/rate, just the outcome encoder at encoder:~/ffmpeg$ ./ffmpeg -threads 4 -txt_page 100 -canvas_size 492x250 -i ../tv2hd.ts -filter_complex "[0:s] scale=1280:720 [sub],[0:v][sub] overlay,scale=320:-1" -y -f mpegts a.ts ffmpeg version N-59119-g8a6865f Copyright (c) 2000-2013 the FFmpeg developers ? built on Dec 15 2013 13:05:03 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libzvbi --cc='ccache cc' ? libavutil????? 52. 58.100 / 52. 58.100 ? libavcodec???? 55. 45.101 / 55. 45.101 ? libavformat??? 55. 22.100 / 55. 22.100 ? libavdevice??? 55.? 5.102 / 55.? 5.102 ? libavfilter???? 3. 92.100 /? 3. 92.100 ? libswscale????? 2.? 5.101 /? 2.? 5.101 ? libswresample?? 0. 17.104 /? 0. 17.104 ? libpostproc??? 52.? 3.100 / 52.? 3.100 [h264 @ 0x2006ca0] non-existing SPS 0 referenced in buffering period [h264 @ 0x2006ca0] non-existing PPS referenced [h264 @ 0x2006ca0] non-existing SPS 0 referenced in buffering period [h264 @ 0x2006ca0] non-existing PPS 0 referenced [h264 @ 0x2006ca0] decode_slice_header error [h264 @ 0x2006ca0] no frame! [mpegts @ 0x2002b20] PES packet size mismatch Input #0, mpegts, from '../tv2hd.ts': ? Duration: 02:49:18.71, start: 8814.775889, bitrate: 193 kb/s ? Program 6906 ??? Stream #0:0[0x204]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc ??? Stream #0:1[0x290](dan): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s ??? Stream #0:2[0x242](dan,I100): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006), 492x250 Output #0, mpegts, to 'a.ts': ? Metadata: ??? encoder???????? : Lavf55.22.100 ??? Stream #0:0: Video: mpeg2video, yuv420p, 320x180 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 50 tbc (default) ??? Stream #0:1(dan): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: ? Stream #0:0 (h264) -> overlay:main (graph 0) ? Stream #0:2 (libzvbi_teletextdec) -> scale (graph 0) ? scale (graph 0) -> Stream #0:0 (mpeg2video) ? Stream #0:1 -> #0:1 (ac3 -> mp2) Press [q] to stop, [?] for help [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping. ??? Last message repeated 12 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping. drop=0??? ??? Last message repeated 9 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.00 drop=0??? ??? Last message repeated 21 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.22 drop=0??? ??? Last message repeated 15 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.38 drop=0??? ??? Last message repeated 72 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.11 drop=0??? ??? Last message repeated 77 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.57 drop=0??? ??? Last message repeated 61 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.04 drop=0??? ??? Last message repeated 38 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.90 drop=0??? ??? Last message repeated 42 times [Parsed_overlay_1 @ 0x200a940] [framesync @ 0x200aa08] Buffer queue overflow, dropping.33 drop=0??? ??? Last message repeated 66 times Any ideas on why frames are being dropped? I really think that there should be the correct frames from the teletext engine to keep the overlay system running. joolz From george at nsup.org Sun Dec 15 14:54:00 2013 From: george at nsup.org (Nicolas George) Date: Sun, 15 Dec 2013 14:54:00 +0100 Subject: [FFmpeg-user] Overlaying Teletext, getting jerky video In-Reply-To: <1387115072.50960.YahooMailNeo@web87804.mail.ir2.yahoo.com> References: <1387115072.50960.YahooMailNeo@web87804.mail.ir2.yahoo.com> Message-ID: <20131215135400.GA5934@phare.normalesup.org> Le quintidi 25 frimaire, an CCXXII, JULIAN GARDNER a ?crit?: > Any > ideas on why frames are being dropped? I really think that there should > be the correct frames from the teletext engine to keep the overlay > system running. There are a number of possible reasons; they mostly boil down to the timestamps of the subtitles being out of sync. If you can not make the source sample itself available, you can try to provide the following information: * The first few video and teletext packets, as shown by ffprobe -show_packets. * The first few video and subtitles frames, as shown by ffprobe -show_frames. * The first few video and overlay frames inserted in the filter. For that, use the showinfo filter: -filter_complex "[0:s] showinfo, scale=1280:720 [sub] ; [0:v] showinfo [vid] ; [vid][sub] overlay" Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: From gjmata at gmail.com Sun Dec 15 15:13:47 2013 From: gjmata at gmail.com (Gustavo J Mata) Date: Sun, 15 Dec 2013 09:43:47 -0430 Subject: [FFmpeg-user] (no subject) Message-ID: Hi, I have a video, movie.avi, which will play on the VLC player but won't play on a Samsung LED TV. When I use ffprobe I get the following data. Input #0, avi, from 'Reptilicus-1961.avi': Metadata: encoder : Nandub v1.0rc2 Duration: 01:21:30.31, start: 0.000000, bitrate: 1191 kb/s Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 512x368 [SAR 1:1 DAR 32:23], 23.98 fps, 23.98 tbr, 23.98 tbn, 30k tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 157 kb/s According to the manufacturer, the TV can play MPEG4 SP/AP, which is different from MPEG4 DX50. I suspect this might be the problem. Any hints on how to solve this issue? Thanks in advance, Gustavo J. Mata -- ?La ignorancia, aliada con el poder, es el m?s feroz enemigo que puede tener la justicia.? (James Baldwin) Visite mi Blog en Apartaderos From jpboard2 at yahoo.com Sun Dec 15 16:53:10 2013 From: jpboard2 at yahoo.com (James Board) Date: Sun, 15 Dec 2013 07:53:10 -0800 (PST) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. Message-ID: <1387122790.92640.YahooMailBasic@web120203.mail.ne1.yahoo.com> Hi. I'm trying to convert an AVI file that is compressed with ffvhuff into another AVI file that isn't compressed with ffvhuff (rawvideo). The output file is blue-shifted. Everything looks blue. Here is the ffmpeg command: > ffmpeg -y -i IN.avi -c:v rawvideo OUT.avi ffmpeg version N-54733-gab5f581 Copyright (c) 2000-2013 the FFmpeg developers built on Aug 5 2013 20:24:36 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: --enable-libfreetype --enable-gpl --enable-libx264 libavutil 52. 39.100 / 52. 39.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.102 / 55. 12.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 80.101 / 3. 80.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, avi, from 'IN.avi': Metadata: encoder : Lavf55.12.102 Duration: 00:00:04.07, start: 0.000000, bitrate: 453949 kb/s Stream #0:0: Video: ffvhuff (FFVH / 0x48564646), yuv422p, 1920x1080, 29.97 tbr, 29.97 tbn, 29.97 tbc Output #0, avi, to 'OUT420.avi': Metadata: ISFT : Lavf55.12.102 Stream #0:0: Video: rawvideo (Y42B / 0x42323459), yuv422p, 1920x1080, q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (ffvhuff -> rawvideo) Press [q] to stop, [?] for help frame= 122 fps=0.0 q=0.0 Lsize= 494108kB time=00:00:04.07 bitrate=994350.7kbits/s video:494100kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.001702% Here is an ffprobe of the input file: > ffprobe IN.avi ffprobe version N-54733-gab5f581 Copyright (c) 2007-2013 the FFmpeg developers built on Aug 5 2013 20:24:36 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: --enable-libfreetype --enable-gpl --enable-libx264 libavutil 52. 39.100 / 52. 39.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.102 / 55. 12.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 80.101 / 3. 80.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, avi, from 'IN.avi': Metadata: encoder : Lavf55.12.102 Duration: 00:00:04.07, start: 0.000000, bitrate: 453949 kb/s Stream #0:0: Video: ffvhuff (FFVH / 0x48564646), yuv422p, 1920x1080, 29.97 tbr, 29.97 tbn, 29.97 tbc Here is an ffprobe of the output file: > ffprobe OUT.avi ffprobe version N-54733-gab5f581 Copyright (c) 2007-2013 the FFmpeg developers built on Aug 5 2013 20:24:36 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: --enable-libfreetype --enable-gpl --enable-libx264 libavutil 52. 39.100 / 52. 39.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.102 / 55. 12.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 80.101 / 3. 80.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, avi, from 'OUT.avi': Metadata: encoder : Lavf55.12.102 Duration: 00:00:04.07, start: 0.000000, bitrate: 994350 kb/s Stream #0:0: Video: rawvideo (Y42B / 0x42323459), yuv422p, 1920x1080, 29.97 tbr, 29.97 tbn, 29.97 tbc Does anyone know how I can do this correctly? From jpboard2 at yahoo.com Sun Dec 15 17:14:54 2013 From: jpboard2 at yahoo.com (James Board) Date: Sun, 15 Dec 2013 08:14:54 -0800 (PST) Subject: [FFmpeg-user] Best documentation web site ( or other source ) In-Reply-To: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> Message-ID: <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> > The lack of documentation for both the ffmpeg commandline > tools and the asssociated libraries is a longstanding > bugbear of mine, but unfortunately it's often the way with > open source. Unfortunately there is often no other way than > to ask on the mailing list. For instance, I recently had a Constructive advice, not criticsm: But you guys keep answering the same questions over and over again. Why not answer the question once, document it fully, put it on the wiki, and then when someone asks, just point them to the answer? Better yet, the Wiki is searchable, unlike the mailing-list archives. Isn't that better? From stefasab at gmail.com Sun Dec 15 17:25:04 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 15 Dec 2013 17:25:04 +0100 Subject: [FFmpeg-user] Best documentation web site ( or other source ) In-Reply-To: <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> References: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> Message-ID: <20131215162504.GH21649@barisone> On date Sunday 2013-12-15 08:14:54 -0800, James Board wrote: [...] > Why not answer the question once, document it fully, put it on the > wiki, and then when someone asks, just point them to the answer? Because complaining is cheaper, and anybody can do it. From cehoyos at ag.or.at Sun Dec 15 19:04:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 15 Dec 2013 18:04:33 +0000 (UTC) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. References: <1387122790.92640.YahooMailBasic@web120203.mail.ne1.yahoo.com> Message-ID: James Board yahoo.com> writes: > I'm trying to convert an AVI file that is compressed > with ffvhuff into another AVI file that isn't > compressed with ffvhuff (rawvideo). > The output file is blue-shifted. This is apparently (I am still searching for an "official" sample) a bug in MPlayer, work-around is to add the following to your mplayer command line: -vc -raw422P, Or the following to your MPlayer config file: vc=-raw422P, Carl Eugen From lou at lrcd.com Sun Dec 15 19:09:53 2013 From: lou at lrcd.com (Lou) Date: Sun, 15 Dec 2013 09:09:53 -0900 Subject: [FFmpeg-user] how to change ffmpeg configuration In-Reply-To: References: <20131211141437.7069a8ec@lrcd.com> Message-ID: <1387130993.31188.59879529.441772C7@webmail.messagingengine.com> On Sun, Dec 15, 2013, at 03:10 AM, e-letter wrote: > > Using firefox firefogg extension, the existing software installed is > used by the extension perform conversion Third-party software is not supported here. I'm not familiar with this extension, but perhaps you can contact the author and have them provide a sane binary (I'm assuming a binary is being distributed ? I didn't look), or maybe you can replace it with another build, such as from: https://ffmpeg.org/download.html From realbumba at sharklasers.com Sun Dec 15 10:12:22 2013 From: realbumba at sharklasers.com (RealBumba) Date: Sun, 15 Dec 2013 01:12:22 -0800 (PST) Subject: [FFmpeg-user] using show_entries returns more results that specified In-Reply-To: <20131214131212.GA21649@barisone> References: <1386764689808-4662677.post@n4.nabble.com> <20131211192411.GI11442@barisone> <1386822070464-4662696.post@n4.nabble.com> <20131212231541.GB2516@barisone> <1386961268718-4662711.post@n4.nabble.com> <20131214131212.GA21649@barisone> Message-ID: <1387098742568-4662715.post@n4.nabble.com> There is no longer a problem. Im only speaking about a trivial issue of handling returned data efficiently in one place or the other, not both. (which you addressed as a possible bug fix, I should not have re-brought it up, sorry) Thanks for your help! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/using-show-entries-returns-more-results-that-specified-tp4662677p4662715.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From gjmata at gmail.com Sun Dec 15 19:37:36 2013 From: gjmata at gmail.com (Gustavo J Mata) Date: Sun, 15 Dec 2013 14:07:36 -0430 Subject: [FFmpeg-user] Samsung LED TV incompatibility Message-ID: Hi, I have a video, movie.avi, which will play on the VLC player but won't play on a Samsung UN26EH4050F LED TV. When I use ffprobe I get the following data. Input #0, avi, from 'Reptilicus-1961.avi': Metadata: encoder : Nandub v1.0rc2 Duration: 01:21:30.31, start: 0.000000, bitrate: 1191 kb/s Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 512x368 [SAR 1:1 DAR 32:23], 23.98 fps, 23.98 tbr, 23.98 tbn, 30k tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 157 kb/s According to the manufacturer, the TV can play MPEG4 SP/AP, which is different from MPEG4 DX50. I suspect this might be the problem. Any hints on how to solve this issue? Thanks in advance, Gustavo J. Mata -- ?La ignorancia, aliada con el poder, es el m?s feroz enemigo que puede tener la justicia.? (James Baldwin) Visite mi Blog en Apartaderos From cehoyos at ag.or.at Sun Dec 15 19:44:12 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 15 Dec 2013 18:44:12 +0000 (UTC) Subject: [FFmpeg-user] Samsung LED TV incompatibility References: Message-ID: Gustavo J Mata gmail.com> writes: > According to the manufacturer, the TV can play MPEG4 SP/AP Do you have a sample (from the manufacturer) that is known to play? If yes, please provide ffmpeg -i output (uncut) for that sample. (DX50 == MPEG-4 ASP) Carl Eugen From gjmata at gmail.com Sun Dec 15 20:06:33 2013 From: gjmata at gmail.com (Gustavo J Mata) Date: Sun, 15 Dec 2013 14:36:33 -0430 Subject: [FFmpeg-user] Samsung LED TV incompatibility In-Reply-To: References: Message-ID: If I understand you correctly DX50 is the same as MPEG4 SP/ASP This would suggest a bug in the TV software. I do not have a video sample from the manufacturer. I will ask for one. Thanks, Gustavo J. Mata On Sun, Dec 15, 2013 at 2:14 PM, Carl Eugen Hoyos wrote: > Gustavo J Mata gmail.com> writes: > > > According to the manufacturer, the TV can play MPEG4 SP/AP > > Do you have a sample (from the manufacturer) that is known > to play? If yes, please provide ffmpeg -i output (uncut) > for that sample. > (DX50 == MPEG-4 ASP) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- ?La ignorancia, aliada con el poder, es el m?s feroz enemigo que puede tener la justicia.? (James Baldwin) Visite mi Blog en Apartaderos From tevans.uk at googlemail.com Sun Dec 15 22:15:07 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Sun, 15 Dec 2013 21:15:07 +0000 Subject: [FFmpeg-user] Best documentation web site ( or other source ) In-Reply-To: <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> References: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> Message-ID: On Sun, Dec 15, 2013 at 4:14 PM, James Board wrote: >> The lack of documentation for both the ffmpeg commandline >> tools and the asssociated libraries is a longstanding >> bugbear of mine, but unfortunately it's often the way with >> open source. Unfortunately there is often no other way than >> to ask on the mailing list. For instance, I recently had a > > Constructive advice, not criticsm: > > But you guys keep answering the same questions over and over > again. Why not answer the question once, document it fully, put > it on the wiki, and then when someone asks, just point them to the > answer? Better yet, the Wiki is searchable, unlike the mailing-list > archives. Isn't that better? I do not understand this, what is not documented? http://ffmpeg.org/documentation.html It's a pretty comprehensive resource of ffmpeg's features. What isn't in there can be found with google - for instance, x264 encoding is largely down to x264, it would be wrong to document x264's features here - how to access them should be (and it is..) Cheers Tom From lyncher at sapo.pt Mon Dec 16 14:58:23 2013 From: lyncher at sapo.pt (lyncher at sapo.pt) Date: Mon, 16 Dec 2013 13:58:23 +0000 Subject: [FFmpeg-user] Remuxing RTMP to TS Message-ID: <52AF06FF.6040006@sapo.pt> Hello all, I'm trying to save a RTMP live FLV stream (Video: AVC Main at L3.1, 488Kbps, 25fps, Audio: AAC-LC, 44.1KHz, stereo) to a file using MPEGTS container. When I save the file directly to FLV, there's no issues with the recorded file. ffmpeg -i "rtmp://rtmpserver/app/stream" -vcodec copy -acodec copy live.flv ffmpeg version N-58949-g0e575c2 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 9 2013 22:06:49 with gcc 4.8.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib Output #0, flv, to 'file.flv': Metadata: author : copyright : description : keywords : rating : title : presetname : Custom creationdate : Sun Dec 15 20:57:51 2013 : videodevice : avclevel : 31 avcprofile : 66 videokeyframe_frequency: 5 audiodevice : audiochannels : 2 audioinputvolume: 75 frameWidth : 640 frameHeight : 360 displayWidth : 640 displayHeight : 360 encoder : Lavf55.22.100 Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 640x360 [SAR 1:1DAR 16:9], q=2-31, 499 kb/s, 1k tbn, 1k tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 44100 Hz, stereo, 49 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help The problem is when I try to remux FLV to MPEGTS with: ffmpeg -i "rtmp://rtmpserver/app/stream" -vbsf h264_mp4toannexb -vcodec copy -acodec copy -copyts -copytb 0 -vsync drop -y -f mpegts file.ts Output #0, mpegts, to '95.ts': Stream #0:0: Video: h264, yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=2-31, 499 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: aac, 44100 Hz, stereo, 49 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mpegts @ 00000000026ff020] Encoder did not produce proper pts, making some up. The TS file is written but audio is not synchronized with video. I tried several flags (copyts, vsync.....) but didn't found any combination that allows to remux the FLV->TS keeping audio and video in synch. What I'm doing wrong? Thanks in advance for any suggestion. lyncher From phil_rhodes at rocketmail.com Mon Dec 16 15:54:45 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Mon, 16 Dec 2013 06:54:45 -0800 (PST) Subject: [FFmpeg-user] Best documentation web site ( or other source ) In-Reply-To: References: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> Message-ID: <1387205685.55144.YahooMailNeo@web121101.mail.ne1.yahoo.com> > I do not understand this, what is not documented? > >?http://ffmpeg.org/documentation.html The problem is that it's just a list of features. Carefully writing down the names of all the things that a program does is not adequate documentation. There is almost no usage information. I mean, I'm a reasonably experienced computer user, and I'm not sure what you mean by: ffmpeg [global_options] {[input_file_options] -i ?input_file?} ... {[output_file_options] ?output_file?} ... There is no basic introduction to typical tasks, examples, definitions of terms, or anything of that sort. This is how you document commandline software: http://technet.microsoft.com/en-us/library/bb490816.aspx P From h.reindl at thelounge.net Mon Dec 16 15:58:27 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 16 Dec 2013 15:58:27 +0100 Subject: [FFmpeg-user] Best documentation web site ( or other source ) In-Reply-To: <1387205685.55144.YahooMailNeo@web121101.mail.ne1.yahoo.com> References: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> <1387205685.55144.YahooMailNeo@web121101.mail.ne1.yahoo.com> Message-ID: <52AF1513.3010701@thelounge.net> Am 16.12.2013 15:54, schrieb Phil Rhodes: > I mean, I'm a reasonably experienced computer user, and I'm not sure what you mean by: > ffmpeg [global_options] {[input_file_options] -i ?input_file?} ... {[output_file_options] ?output_file?} ... what exactly do you not understand there? [] encloses optional arguments input_file and output_file is pretty clear this is the standard convention *any CLI software* on this plant is using for help -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From pb at das-werkstatt.com Tue Dec 17 00:16:07 2013 From: pb at das-werkstatt.com (Peter B.) Date: Tue, 17 Dec 2013 00:16:07 +0100 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? Message-ID: <52AF89B7.3070904@das-werkstatt.com> Hello, I'm currently drafting an article about containers and lossless codecs for long-term video archiving [1]. During my speed/size codec comparison tests, I couldn't manage to configure libopenjpeg to produce a lossless output video (checked with framemd5). Does anyone know which parameters do I require to encode JPEG2000 lossless using libopenjpeg? (Yes, I did try to google) "-qscale:v 0" (which works for dirac/libschroedinger) doesn't work with libopenjpeg. Thanks in advance, Pb == References: [1] http://download.das-werkstatt.com/pb/mthk/info/video/comparison_video_codecs_containers.html From harninder.rai at freescale.com Tue Dec 17 06:18:33 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Tue, 17 Dec 2013 05:18:33 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc Message-ID: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> Any pointers on the following? Help on this issue is highly appreciated Regards Harry++ From: Rai Harninder-B01044 Sent: Thursday, December 12, 2013 5:28 PM To: 'ffmpeg-user at ffmpeg.org' Subject: Illegal instruction while executing ffmpeg on powerpc Hello All, I am facing "Illegal instruction " error when I execute ffmpeg on powerpc I have configured ffmpeg with the following options ./configure --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux --disable-altivec [root at P1024RDB shm]# ./ffmpeg Illegal instruction [root at P1024RDB shm]# cat /proc/cpuinfo processor : 0 cpu : e500v2 clock : 799.999992MHz revision : 5.1 (pvr 8021 2051) bogomips : 100.00 processor : 1 cpu : e500v2 clock : 799.999992MHz revision : 5.1 (pvr 8021 2051) bogomips : 100.00 total bogomips : 200.00 timebase : 50000000 platform : P1020RDB-PC model : fsl,P1020RDB-PC Memory : 1024 MB From anshul.ffmpeg at gmail.com Tue Dec 17 06:42:16 2013 From: anshul.ffmpeg at gmail.com (anshul) Date: Tue, 17 Dec 2013 11:12:16 +0530 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> Message-ID: <52AFE438.6090009@gmail.com> On 12/17/2013 10:48 AM, Harninder Rai wrote: > Any pointers on the following? > Help on this issue is highly appreciated > > Regards > Harry++ > > From: Rai Harninder-B01044 > Sent: Thursday, December 12, 2013 5:28 PM > To: 'ffmpeg-user at ffmpeg.org' > Subject: Illegal instruction while executing ffmpeg on powerpc > > Hello All, > > I am facing "Illegal instruction " error when I execute ffmpeg on powerpc > I have configured ffmpeg with the following options > > ./configure --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux --disable-altivec > > [root at P1024RDB shm]# ./ffmpeg > Illegal instruction > > [root at P1024RDB shm]# cat /proc/cpuinfo > processor : 0 > cpu : e500v2 > clock : 799.999992MHz > revision : 5.1 (pvr 8021 2051) > bogomips : 100.00 > > processor : 1 > cpu : e500v2 > clock : 799.999992MHz > revision : 5.1 (pvr 8021 2051) > bogomips : 100.00 > > total bogomips : 200.00 > timebase : 50000000 > platform : P1020RDB-PC > model : fsl,P1020RDB-PC > Memory : 1024 MB > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hey Did you compiled ffmpeg source code for ppc or took ffmpeg for ppc binary can you share your log while doing configure From harninder.rai at freescale.com Tue Dec 17 06:49:00 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Tue, 17 Dec 2013 05:49:00 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <52AFE438.6090009@gmail.com> References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> Message-ID: Hello Anshul, Thanks for the reply Here's the configure log ./configure --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux --disable-altivec install prefix /usr/local source path . C compiler /data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc C library glibc host C compiler gcc host C library glibc ARCH ppc (generic) big-endian yes runtime cpu detection yes AltiVec enabled no PPC 4xx optimizations no dcbzl available yes debug symbols yes strip symbols yes optimize for size no optimizations yes static yes shared no postprocessing support no new filter support yes network support yes threading support pthreads safe bitstream reader yes SDL support no opencl enabled no libzvbi enabled no texi2html enabled yes perl enabled yes pod2man enabled yes makeinfo enabled yes External libraries: iconv Enabled decoders: aac bmp imc aac_latm bmv_audio indeo2 aasc bmv_video indeo3 ac3 brender_pix indeo4 adpcm_4xm c93 indeo5 adpcm_adx cavs interplay_dpcm adpcm_afc cdgraphics interplay_video adpcm_ct cdxl jacosub adpcm_dtk cinepak jpeg2000 adpcm_ea cljr jpegls adpcm_ea_maxis_xa cllc jv adpcm_ea_r1 comfortnoise kgv1 adpcm_ea_r2 cook kmvc adpcm_ea_r3 cpia lagarith adpcm_ea_xas cscd loco adpcm_g722 cyuv mace3 adpcm_g726 dca mace6 adpcm_g726le dfa mdec adpcm_ima_amv dirac metasound adpcm_ima_apc dnxhd microdvd adpcm_ima_dk3 dpx mimic adpcm_ima_dk4 dsicinaudio mjpeg adpcm_ima_ea_eacs dsicinvideo mjpegb adpcm_ima_ea_sead dvbsub mlp adpcm_ima_iss dvdsub mmvideo adpcm_ima_oki dvvideo motionpixels adpcm_ima_qt dxtory movtext adpcm_ima_rad eac3 mp1 adpcm_ima_smjpeg eacmv mp1float adpcm_ima_wav eamad mp2 adpcm_ima_ws eatgq mp2float adpcm_ms eatgv mp3 adpcm_sbpro_2 eatqi mp3adu adpcm_sbpro_3 eightbps mp3adufloat adpcm_sbpro_4 eightsvx_exp mp3float adpcm_swf eightsvx_fib mp3on4 adpcm_thp escape124 mp3on4float adpcm_xa escape130 mpc7 adpcm_yamaha evrc mpc8 aic ffv1 mpeg1video alac ffvhuff mpeg2video als ffwavesynth mpeg4 amrnb flac mpegvideo amrwb flic mpl2 amv flv msa1 anm fourxm msmpeg4v1 ansi fraps msmpeg4v2 ape frwu msmpeg4v3 ass g723_1 msrle asv1 g729 mss1 asv2 gif mss2 atrac1 gsm msvideo1 atrac3 gsm_ms mszh aura h261 mts2 aura2 h263 mvc1 avrn h263i mvc2 avrp h263p mxpeg avs h264 nellymoser avui hevc nuv ayuv hnm4_video paf_audio bethsoftvid huffyuv paf_video bfi iac pam bink idcin pbm binkaudio_dct idf pcm_alaw binkaudio_rdft iff_byterun1 pcm_bluray bintext iff_ilbm pcm_dvd pcm_f32be roq v210x pcm_f32le roq_dpcm v308 pcm_f64be rpza v408 pcm_f64le rv10 v410 pcm_lxf rv20 vb pcm_mulaw rv30 vble pcm_s16be rv40 vc1 pcm_s16be_planar s302m vc1image pcm_s16le sami vcr1 pcm_s16le_planar sanm vima pcm_s24be sgi vmdaudio pcm_s24daud sgirle vmdvideo pcm_s24le shorten vmnc pcm_s24le_planar sipr vorbis pcm_s32be smackaud vp3 pcm_s32le smacker vp5 pcm_s32le_planar smc vp6 pcm_s8 smvjpeg vp6a pcm_s8_planar snow vp6f pcm_u16be sol_dpcm vp8 pcm_u16le sonic vp9 pcm_u24be sp5x vplayer pcm_u24le srt vqa pcm_u32be ssa wavpack pcm_u32le subrip webp pcm_u8 subviewer webvtt pcm_zork subviewer1 wmalossless pcx sunrast wmapro pgm svq1 wmav1 pgmyuv svq3 wmav2 pgssub tak wmavoice pictor targa wmv1 pjs targa_y216 wmv2 ppm text wmv3 prores theora wmv3image prores_lgpl thp wnv1 ptx tiertexseqvideo ws_snd1 qcelp tiff xan_dpcm qdm2 tmv xan_wc3 qdraw truehd xan_wc4 qpeg truemotion1 xbin qtrle truemotion2 xbm r10k truespeech xface r210 tscc2 xl ra_144 tta xsub ra_288 twinvq xwd ralf txd y41p rawvideo ulti yop realtext utvideo yuv4 rl2 v210 zero12v Enabled encoders: a64multi ljpeg ppm a64multi5 mjpeg prores aac movtext prores_aw ac3 mp2 prores_ks ac3_fixed mp2fixed qtrle adpcm_adx mpeg1video r10k adpcm_g722 mpeg2video r210 adpcm_g726 mpeg4 ra_144 adpcm_ima_qt msmpeg4v2 rawvideo adpcm_ima_wav msmpeg4v3 roq adpcm_ms msvideo1 roq_dpcm adpcm_swf nellymoser rv10 adpcm_yamaha pam rv20 alac pbm s302m amv pcm_alaw sgi ass pcm_f32be snow asv1 pcm_f32le sonic asv2 pcm_f64be sonic_ls avrp pcm_f64le srt avui pcm_mulaw ssa ayuv pcm_s16be subrip bmp pcm_s16be_planar sunrast cljr pcm_s16le svq1 comfortnoise pcm_s16le_planar targa dca pcm_s24be tiff dnxhd pcm_s24daud tta dpx pcm_s24le utvideo dvbsub pcm_s24le_planar v210 dvdsub pcm_s32be v308 dvvideo pcm_s32le v408 eac3 pcm_s32le_planar v410 ffv1 pcm_s8 vorbis ffvhuff pcm_s8_planar wavpack flac pcm_u16be wmav1 flv pcm_u16le wmav2 g723_1 pcm_u24be wmv1 gif pcm_u24le wmv2 h261 pcm_u32be xbm h263 pcm_u32le xface h263p pcm_u8 xsub huffyuv pcx xwd jpeg2000 pgm y41p jpegls pgmyuv yuv4 Enabled hwaccels: Enabled parsers: aac dvd_nav mpegvideo aac_latm dvdsub png ac3 flac pnm adx gsm rv30 bmp h261 rv40 cavsvideo h263 tak cook h264 vc1 dca hevc vorbis dirac mjpeg vp3 dnxhd mlp vp8 dpx mpeg4video vp9 dvbsub mpegaudio Enabled demuxers: aac hevc pcm_s32le ac3 hls pcm_s8 act hnm pcm_u16be adf ico pcm_u16le adp idcin pcm_u24be adx idf pcm_u24le aea iff pcm_u32be afc ilbc pcm_u32le aiff image2 pcm_u8 amr image2pipe pjs anm ingenient pmp apc ipmovie pva ape ircam pvf aqtitle iss qcp asf iv8 r3d ass ivf rawvideo ast jacosub realtext au jv redspark avi latm rl2 avr lmlm4 rm avs loas roq bethsoftvid lvf rpl bfi lxf rsd bink m4v rso bintext matroska rtp bit mgsts rtsp bmv microdvd sami boa mjpeg sap brstm mlp sbg c93 mm sdp caf mmf segafilm cavsvideo mov shorten cdg mp3 siff cdxl mpc smacker concat mpc8 smjpeg data mpegps smush daud mpegts sol dfa mpegtsraw sox dirac mpegvideo spdif dnxhd mpl2 srt dsicin mpsub str dts msnwc_tcp subviewer dtshd mtv subviewer1 dv mv swf dxa mvi tak ea mxf tedcaptions ea_cdata mxg thp eac3 nc tiertexseq epaf nistsphere tmv ffm nsv truehd ffmetadata nut tta filmstrip nuv tty flac ogg txd flic oma vc1 flv paf vc1t fourxm pcm_alaw vivo frm pcm_f32be vmd g722 pcm_f32le vobsub g723_1 pcm_f64be voc g729 pcm_f64le vplayer gif pcm_mulaw vqf gsm pcm_s16be w64 gxf pcm_s16le wav h261 pcm_s24be wc3 h263 pcm_s24le webvtt h264 pcm_s32be wsaud wsvqa xa xwma wtv xbin yop wv xmv yuv4mpegpipe Enabled muxers: a64 image2pipe pcm_s24be ac3 ipod pcm_s24le adts ircam pcm_s32be adx ismv pcm_s32le aiff ivf pcm_s8 amr jacosub pcm_u16be asf latm pcm_u16le asf_stream m4v pcm_u24be ass matroska pcm_u24le ast matroska_audio pcm_u32be au md5 pcm_u32le avi microdvd pcm_u8 avm2 mjpeg psp bit mkvtimestamp_v2 rawvideo caf mlp rm cavsvideo mmf roq crc mov rso data mp2 rtp daud mp3 rtsp dirac mp4 sap dnxhd mpeg1system segment dts mpeg1vcd smjpeg dv mpeg1video smoothstreaming eac3 mpeg2dvd sox f4v mpeg2svcd spdif ffm mpeg2video speex ffmetadata mpeg2vob srt filmstrip mpegts stream_segment flac mpjpeg swf flv mxf tee framecrc mxf_d10 tg2 framemd5 null tgp g722 nut truehd g723_1 ogg vc1 gif oma vc1t gxf opus voc h261 pcm_alaw w64 h263 pcm_f32be wav h264 pcm_f32le webm hds pcm_f64be webvtt hls pcm_f64le wtv ico pcm_mulaw wv ilbc pcm_s16be yuv4mpegpipe image2 pcm_s16le Enabled protocols: cache hls rtmp concat http rtmpt crypto httpproxy rtp data md5 srtp ffrtmphttp mmsh tcp file mmst udp ftp pipe unix gopher Enabled filters: aconvert colorchannelmixer noise adelay compand null aecho concat nullsink aeval copy nullsrc aevalsrc crop overlay afade curves pad aformat dctdnoiz pan ainterleave decimate perms allpass deshake pixdesctest alphaextract drawbox psnr alphamerge drawgrid removelogo amerge earwax replaygain amix edgedetect rgbtestsrc amovie elbg rotate anull equalizer scale anullsink extractplanes select anullsrc fade sendcmd apad field separatefields aperms fieldmatch setdar aphaser fieldorder setfield aresample format setpts aselect fps setsar asendcmd framestep settb asetnsamples gradfun showinfo asetpts haldclut showspectrum asetrate haldclutsrc showwaves asettb hflip silencedetect ashowinfo highpass sine asplit histogram smptebars astats hue smptehdbars astreamsync idet split atempo il swapuv atrim interleave telecine avectorscope join testsrc bandpass life thumbnail bandreject lowpass tile bass lut transpose bbox lut3d treble biquad lutrgb trim blackdetect lutyuv unsharp blend mandelbrot vflip cellauto mergeplanes vignette channelmap movie volume channelsplit negate volumedetect color noformat w3fdif colorbalance Enabled bsfs: aac_adtstoasc imx_dump_header mp3_header_decompress chomp mjpeg2jpeg noise dump_extradata mjpega_dump_header remove_extradata h264_mp4toannexb mov2textsub text2movsub Enabled indevs: dv1394 lavfi v4l2 fbdev oss Enabled outdevs: fbdev oss v4l2 License: LGPL version 2.1 or later Creating config.mak, config.h, and doc/config.texi... config.h is unchanged libavutil/avconfig.h is unchanged > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of anshul > Sent: Tuesday, December 17, 2013 11:12 AM > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Illegal instruction while executing ffmpeg on > powerpc > > On 12/17/2013 10:48 AM, Harninder Rai wrote: > > Any pointers on the following? > > Help on this issue is highly appreciated > > > > Regards > > Harry++ > > > > From: Rai Harninder-B01044 > > Sent: Thursday, December 12, 2013 5:28 PM > > To: 'ffmpeg-user at ffmpeg.org' > > Subject: Illegal instruction while executing ffmpeg on powerpc > > > > Hello All, > > > > I am facing "Illegal instruction " error when I execute ffmpeg on > > powerpc I have configured ffmpeg with the following options > > > > ./configure --arch=ppc --enable-cross-compile > > --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.1 > > 1.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux > > --disable-altivec > > > > [root at P1024RDB shm]# ./ffmpeg > > Illegal instruction > > > > [root at P1024RDB shm]# cat /proc/cpuinfo > > processor : 0 > > cpu : e500v2 > > clock : 799.999992MHz > > revision : 5.1 (pvr 8021 2051) > > bogomips : 100.00 > > > > processor : 1 > > cpu : e500v2 > > clock : 799.999992MHz > > revision : 5.1 (pvr 8021 2051) > > bogomips : 100.00 > > > > total bogomips : 200.00 > > timebase : 50000000 > > platform : P1020RDB-PC > > model : fsl,P1020RDB-PC > > Memory : 1024 MB > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Hey Did you compiled ffmpeg source code for ppc or took ffmpeg for ppc > binary can you share your log while doing configure > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mapandrei at gmail.com Tue Dec 17 07:51:15 2013 From: mapandrei at gmail.com (Andrei Petru Mura) Date: Tue, 17 Dec 2013 08:51:15 +0200 Subject: [FFmpeg-user] Setting 'crf' option when converting with ffmpeg Message-ID: I have a H264 encoded file that I try to convert to a mjpeg format. That's the command that I issue and its output: */home/netnfork/bin/ffmpeg -i ./Event20131026000020003.avi -crf 12 -c:v mjpeg -vf hflip ./out.avi* *ffmpeg version git-2013-10-15-c35d29a Copyright (c) 2000-2013 the FFmpeg developers* * built on Oct 15 2013 11:56:38 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)* * configuration: --prefix=/home/netnfork/ffmpeg_build --extra-cflags=-I/home/netnfork/ffmpeg_build/include --extra-ldflags=-L/home/netnfork/ffmpeg_build/lib --bindir=/home/netnfork/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libfreetype --enable-libspeex --enable-libtheora* libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 36.100 / 55. 36.100 libavformat 55. 19.102 / 55. 19.102 libavdevice 55. 4.100 / 55. 4.100 libavfilter 3. 88.101 / 3. 88.101 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 [avi @ 0xb710e20] probed stream 1 failed [avi @ 0xb710e20] Stream #2: not enough frames to estimate rate; consider increasing probesize [avi @ 0xb710e20] Could not find codec parameters for stream 1 (Subtitle: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [avi @ 0xb710e20] Could not find codec parameters for stream 2 (Subtitle: none): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options *Input #0, avi, from './Event20131026000020003.avi':* * Duration: 00:00:43.67, start: 0.000000, bitrate: 8034 kb/s* * Stream #0:0: Video: h264 (High) (X264 / 0x34363258), yuvj420p(pc), 1920x1080, 30 fps, 30 tbr, 30 tbn, 30 tbc* * Stream #0:1: Subtitle: none* * Stream #0:2: Subtitle: none* *Codec AVOption crf (Select the quality for constant quality mode) specified for output file #0 (./out.avi) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.* *File './out.avi' already exists. Overwrite ?* [y/N] y Output #0, avi, to './out.avi': Metadata: ISFT : Lavf55.19.102 Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p, 1920x1080, q=2-31, 200 kb/s, 30 tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> mjpeg) Press [q] to stop, [?] for help frame= 260 fps=110 q=0.0 Lsize= 24737kB time=00:00:08.66 bitrate=23382.6kbits/s video:24726kB audio:0kB subtit ... The red written text is the problem that I don't know how to deal with. Can anybody tell me how to deal with this problem? I want to specify the "crf" for this conversion because the quality resulted is very bad in a few specific files. Why does "crf" does not take effect when I specify it in my scenario? From anshul.ffmpeg at gmail.com Tue Dec 17 07:56:33 2013 From: anshul.ffmpeg at gmail.com (anshul) Date: Tue, 17 Dec 2013 12:26:33 +0530 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> Message-ID: <52AFF5A1.6060600@gmail.com> On 12/17/2013 11:19 AM, Harninder Rai wrote: > Hello Anshul, > > > Thanks for the reply > Here's the configure log > > ./configure --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux --disable-altivec > install prefix /usr/local > source path . > C compiler /data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc > C library glibc > host C compiler gcc > host C library glibc > ARCH ppc (generic) > big-endian yes > runtime cpu detection yes > AltiVec enabled no > PPC 4xx optimizations no > dcbzl available yes > debug symbols yes > strip symbols yes > optimize for size no > optimizations yes > static yes > shared no > postprocessing support no > new filter support yes > network support yes > threading support pthreads > safe bitstream reader yes > SDL support no > opencl enabled no > libzvbi enabled no > texi2html enabled yes > perl enabled yes > pod2man enabled yes > makeinfo enabled yes > > External libraries: > iconv > > Enabled decoders: > aac bmp imc > aac_latm bmv_audio indeo2 > aasc bmv_video indeo3 > ac3 brender_pix indeo4 > adpcm_4xm c93 indeo5 > adpcm_adx cavs interplay_dpcm > adpcm_afc cdgraphics interplay_video > adpcm_ct cdxl jacosub > adpcm_dtk cinepak jpeg2000 > adpcm_ea cljr jpegls > adpcm_ea_maxis_xa cllc jv > adpcm_ea_r1 comfortnoise kgv1 > adpcm_ea_r2 cook kmvc > adpcm_ea_r3 cpia lagarith > adpcm_ea_xas cscd loco > adpcm_g722 cyuv mace3 > adpcm_g726 dca mace6 > adpcm_g726le dfa mdec > adpcm_ima_amv dirac metasound > adpcm_ima_apc dnxhd microdvd > adpcm_ima_dk3 dpx mimic > adpcm_ima_dk4 dsicinaudio mjpeg > adpcm_ima_ea_eacs dsicinvideo mjpegb > adpcm_ima_ea_sead dvbsub mlp > adpcm_ima_iss dvdsub mmvideo > adpcm_ima_oki dvvideo motionpixels > adpcm_ima_qt dxtory movtext > adpcm_ima_rad eac3 mp1 > adpcm_ima_smjpeg eacmv mp1float > adpcm_ima_wav eamad mp2 > adpcm_ima_ws eatgq mp2float > adpcm_ms eatgv mp3 > adpcm_sbpro_2 eatqi mp3adu > adpcm_sbpro_3 eightbps mp3adufloat > adpcm_sbpro_4 eightsvx_exp mp3float > adpcm_swf eightsvx_fib mp3on4 > adpcm_thp escape124 mp3on4float > adpcm_xa escape130 mpc7 > adpcm_yamaha evrc mpc8 > aic ffv1 mpeg1video > alac ffvhuff mpeg2video > als ffwavesynth mpeg4 > amrnb flac mpegvideo > amrwb flic mpl2 > amv flv msa1 > anm fourxm msmpeg4v1 > ansi fraps msmpeg4v2 > ape frwu msmpeg4v3 > ass g723_1 msrle > asv1 g729 mss1 > asv2 gif mss2 > atrac1 gsm msvideo1 > atrac3 gsm_ms mszh > aura h261 mts2 > aura2 h263 mvc1 > avrn h263i mvc2 > avrp h263p mxpeg > avs h264 nellymoser > avui hevc nuv > ayuv hnm4_video paf_audio > bethsoftvid huffyuv paf_video > bfi iac pam > bink idcin pbm > binkaudio_dct idf pcm_alaw > binkaudio_rdft iff_byterun1 pcm_bluray > bintext iff_ilbm pcm_dvd > pcm_f32be roq v210x > pcm_f32le roq_dpcm v308 > pcm_f64be rpza v408 > pcm_f64le rv10 v410 > pcm_lxf rv20 vb > pcm_mulaw rv30 vble > pcm_s16be rv40 vc1 > pcm_s16be_planar s302m vc1image > pcm_s16le sami vcr1 > pcm_s16le_planar sanm vima > pcm_s24be sgi vmdaudio > pcm_s24daud sgirle vmdvideo > pcm_s24le shorten vmnc > pcm_s24le_planar sipr vorbis > pcm_s32be smackaud vp3 > pcm_s32le smacker vp5 > pcm_s32le_planar smc vp6 > pcm_s8 smvjpeg vp6a > pcm_s8_planar snow vp6f > pcm_u16be sol_dpcm vp8 > pcm_u16le sonic vp9 > pcm_u24be sp5x vplayer > pcm_u24le srt vqa > pcm_u32be ssa wavpack > pcm_u32le subrip webp > pcm_u8 subviewer webvtt > pcm_zork subviewer1 wmalossless > pcx sunrast wmapro > pgm svq1 wmav1 > pgmyuv svq3 wmav2 > pgssub tak wmavoice > pictor targa wmv1 > pjs targa_y216 wmv2 > ppm text wmv3 > prores theora wmv3image > prores_lgpl thp wnv1 > ptx tiertexseqvideo ws_snd1 > qcelp tiff xan_dpcm > qdm2 tmv xan_wc3 > qdraw truehd xan_wc4 > qpeg truemotion1 xbin > qtrle truemotion2 xbm > r10k truespeech xface > r210 tscc2 xl > ra_144 tta xsub > ra_288 twinvq xwd > ralf txd y41p > rawvideo ulti yop > realtext utvideo yuv4 > rl2 v210 zero12v > > Enabled encoders: > a64multi ljpeg ppm > a64multi5 mjpeg prores > aac movtext prores_aw > ac3 mp2 prores_ks > ac3_fixed mp2fixed qtrle > adpcm_adx mpeg1video r10k > adpcm_g722 mpeg2video r210 > adpcm_g726 mpeg4 ra_144 > adpcm_ima_qt msmpeg4v2 rawvideo > adpcm_ima_wav msmpeg4v3 roq > adpcm_ms msvideo1 roq_dpcm > adpcm_swf nellymoser rv10 > adpcm_yamaha pam rv20 > alac pbm s302m > amv pcm_alaw sgi > ass pcm_f32be snow > asv1 pcm_f32le sonic > asv2 pcm_f64be sonic_ls > avrp pcm_f64le srt > avui pcm_mulaw ssa > ayuv pcm_s16be subrip > bmp pcm_s16be_planar sunrast > cljr pcm_s16le svq1 > comfortnoise pcm_s16le_planar targa > dca pcm_s24be tiff > dnxhd pcm_s24daud tta > dpx pcm_s24le utvideo > dvbsub pcm_s24le_planar v210 > dvdsub pcm_s32be v308 > dvvideo pcm_s32le v408 > eac3 pcm_s32le_planar v410 > ffv1 pcm_s8 vorbis > ffvhuff pcm_s8_planar wavpack > flac pcm_u16be wmav1 > flv pcm_u16le wmav2 > g723_1 pcm_u24be wmv1 > gif pcm_u24le wmv2 > h261 pcm_u32be xbm > h263 pcm_u32le xface > h263p pcm_u8 xsub > huffyuv pcx xwd > jpeg2000 pgm y41p > jpegls pgmyuv yuv4 > > Enabled hwaccels: > > Enabled parsers: > aac dvd_nav mpegvideo > aac_latm dvdsub png > ac3 flac pnm > adx gsm rv30 > bmp h261 rv40 > cavsvideo h263 tak > cook h264 vc1 > dca hevc vorbis > dirac mjpeg vp3 > dnxhd mlp vp8 > dpx mpeg4video vp9 > dvbsub mpegaudio > > Enabled demuxers: > aac hevc pcm_s32le > ac3 hls pcm_s8 > act hnm pcm_u16be > adf ico pcm_u16le > adp idcin pcm_u24be > adx idf pcm_u24le > aea iff pcm_u32be > afc ilbc pcm_u32le > aiff image2 pcm_u8 > amr image2pipe pjs > anm ingenient pmp > apc ipmovie pva > ape ircam pvf > aqtitle iss qcp > asf iv8 r3d > ass ivf rawvideo > ast jacosub realtext > au jv redspark > avi latm rl2 > avr lmlm4 rm > avs loas roq > bethsoftvid lvf rpl > bfi lxf rsd > bink m4v rso > bintext matroska rtp > bit mgsts rtsp > bmv microdvd sami > boa mjpeg sap > brstm mlp sbg > c93 mm sdp > caf mmf segafilm > cavsvideo mov shorten > cdg mp3 siff > cdxl mpc smacker > concat mpc8 smjpeg > data mpegps smush > daud mpegts sol > dfa mpegtsraw sox > dirac mpegvideo spdif > dnxhd mpl2 srt > dsicin mpsub str > dts msnwc_tcp subviewer > dtshd mtv subviewer1 > dv mv swf > dxa mvi tak > ea mxf tedcaptions > ea_cdata mxg thp > eac3 nc tiertexseq > epaf nistsphere tmv > ffm nsv truehd > ffmetadata nut tta > filmstrip nuv tty > flac ogg txd > flic oma vc1 > flv paf vc1t > fourxm pcm_alaw vivo > frm pcm_f32be vmd > g722 pcm_f32le vobsub > g723_1 pcm_f64be voc > g729 pcm_f64le vplayer > gif pcm_mulaw vqf > gsm pcm_s16be w64 > gxf pcm_s16le wav > h261 pcm_s24be wc3 > h263 pcm_s24le webvtt > h264 pcm_s32be wsaud > wsvqa xa xwma > wtv xbin yop > wv xmv yuv4mpegpipe > > Enabled muxers: > a64 image2pipe pcm_s24be > ac3 ipod pcm_s24le > adts ircam pcm_s32be > adx ismv pcm_s32le > aiff ivf pcm_s8 > amr jacosub pcm_u16be > asf latm pcm_u16le > asf_stream m4v pcm_u24be > ass matroska pcm_u24le > ast matroska_audio pcm_u32be > au md5 pcm_u32le > avi microdvd pcm_u8 > avm2 mjpeg psp > bit mkvtimestamp_v2 rawvideo > caf mlp rm > cavsvideo mmf roq > crc mov rso > data mp2 rtp > daud mp3 rtsp > dirac mp4 sap > dnxhd mpeg1system segment > dts mpeg1vcd smjpeg > dv mpeg1video smoothstreaming > eac3 mpeg2dvd sox > f4v mpeg2svcd spdif > ffm mpeg2video speex > ffmetadata mpeg2vob srt > filmstrip mpegts stream_segment > flac mpjpeg swf > flv mxf tee > framecrc mxf_d10 tg2 > framemd5 null tgp > g722 nut truehd > g723_1 ogg vc1 > gif oma vc1t > gxf opus voc > h261 pcm_alaw w64 > h263 pcm_f32be wav > h264 pcm_f32le webm > hds pcm_f64be webvtt > hls pcm_f64le wtv > ico pcm_mulaw wv > ilbc pcm_s16be yuv4mpegpipe > image2 pcm_s16le > > Enabled protocols: > cache hls rtmp > concat http rtmpt > crypto httpproxy rtp > data md5 srtp > ffrtmphttp mmsh tcp > file mmst udp > ftp pipe unix > gopher > > Enabled filters: > aconvert colorchannelmixer noise > adelay compand null > aecho concat nullsink > aeval copy nullsrc > aevalsrc crop overlay > afade curves pad > aformat dctdnoiz pan > ainterleave decimate perms > allpass deshake pixdesctest > alphaextract drawbox psnr > alphamerge drawgrid removelogo > amerge earwax replaygain > amix edgedetect rgbtestsrc > amovie elbg rotate > anull equalizer scale > anullsink extractplanes select > anullsrc fade sendcmd > apad field separatefields > aperms fieldmatch setdar > aphaser fieldorder setfield > aresample format setpts > aselect fps setsar > asendcmd framestep settb > asetnsamples gradfun showinfo > asetpts haldclut showspectrum > asetrate haldclutsrc showwaves > asettb hflip silencedetect > ashowinfo highpass sine > asplit histogram smptebars > astats hue smptehdbars > astreamsync idet split > atempo il swapuv > atrim interleave telecine > avectorscope join testsrc > bandpass life thumbnail > bandreject lowpass tile > bass lut transpose > bbox lut3d treble > biquad lutrgb trim > blackdetect lutyuv unsharp > blend mandelbrot vflip > cellauto mergeplanes vignette > channelmap movie volume > channelsplit negate volumedetect > color noformat w3fdif > colorbalance > > Enabled bsfs: > aac_adtstoasc imx_dump_header mp3_header_decompress > chomp mjpeg2jpeg noise > dump_extradata mjpega_dump_header remove_extradata > h264_mp4toannexb mov2textsub text2movsub > > Enabled indevs: > dv1394 lavfi v4l2 > fbdev oss > > Enabled outdevs: > fbdev oss v4l2 > > License: LGPL version 2.1 or later > Creating config.mak, config.h, and doc/config.texi... > config.h is unchanged > libavutil/avconfig.h is unchanged > >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of anshul >> Sent: Tuesday, December 17, 2013 11:12 AM >> To: ffmpeg-user at ffmpeg.org >> Subject: Re: [FFmpeg-user] Illegal instruction while executing ffmpeg on >> powerpc >> >> On 12/17/2013 10:48 AM, Harninder Rai wrote: >>> Any pointers on the following? >>> Help on this issue is highly appreciated >>> >>> Regards >>> Harry++ >>> >>> From: Rai Harninder-B01044 >>> Sent: Thursday, December 12, 2013 5:28 PM >>> To: 'ffmpeg-user at ffmpeg.org' >>> Subject: Illegal instruction while executing ffmpeg on powerpc >>> >>> Hello All, >>> >>> I am facing "Illegal instruction " error when I execute ffmpeg on >>> powerpc I have configured ffmpeg with the following options >>> >>> ./configure --arch=ppc --enable-cross-compile >>> --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.1 >>> 1.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux >>> --disable-altivec >>> >>> [root at P1024RDB shm]# ./ffmpeg >>> Illegal instruction >>> >>> [root at P1024RDB shm]# cat /proc/cpuinfo >>> processor : 0 >>> cpu : e500v2 >>> clock : 799.999992MHz >>> revision : 5.1 (pvr 8021 2051) >>> bogomips : 100.00 >>> >>> processor : 1 >>> cpu : e500v2 >>> clock : 799.999992MHz >>> revision : 5.1 (pvr 8021 2051) >>> bogomips : 100.00 >>> >>> total bogomips : 200.00 >>> timebase : 50000000 >>> platform : P1020RDB-PC >>> model : fsl,P1020RDB-PC >>> Memory : 1024 MB >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> Hey Did you compiled ffmpeg source code for ppc or took ffmpeg for ppc >> binary can you share your log while doing configure >> >> _______________________________________________ >> 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 Hi Harry ./configure looks ok to me, can I have strace ffmpeg output Thanks Anshul From yamusanivinay at gmail.com Tue Dec 17 10:10:07 2013 From: yamusanivinay at gmail.com (Yamusani Vinay) Date: Tue, 17 Dec 2013 14:40:07 +0530 Subject: [FFmpeg-user] Build script for android Message-ID: Hi All, Can sone one provide me a build script for ffmpeg with neon support for android. Thanks & Regards, Bitfield. From joolzg at btinternet.com Tue Dec 17 10:22:59 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Tue, 17 Dec 2013 09:22:59 +0000 (GMT) Subject: [FFmpeg-user] Fw: Overlaying Teletext, getting jerky video In-Reply-To: <1387117766.1752.YahooMailNeo@web87804.mail.ir2.yahoo.com> References: <1387115072.50960.YahooMailNeo@web87804.mail.ir2.yahoo.com> <20131215135400.GA5934@phare.normalesup.org> <1387117766.1752.YahooMailNeo@web87804.mail.ir2.yahoo.com> Message-ID: <1387272179.97588.YahooMailNeo@web87802.mail.ir2.yahoo.com> Resending as i cannot see this in the mailing list ----- Forwarded Message ----- >From: JULIAN GARDNER >To: FFmpeg user questions >Sent: Sunday, 15 December 2013, 15:29 >Subject: Re: [FFmpeg-user] Overlaying Teletext, getting jerky video > > > > > > > > > >>________________________________ >> From: Nicolas George >>To: FFmpeg user questions >>Sent: Sunday, 15 December 2013, 14:54 >>Subject: Re: [FFmpeg-user] Overlaying Teletext, getting jerky video >> >> >>Le quintidi 25 frimaire, an CCXXII, JULIAN GARDNER a ?crit?: >>> Any >>>? ideas on why frames are being dropped? I really think that there should >>>? be the correct frames from the teletext engine to keep the overlay >>> system running. >> >>There are a number of possible reasons; they mostly boil down to the >>timestamps of the subtitles being out of sync. If you can not make the >>source sample itself available, you can try to provide the following >>information: >> >>* The first few video and teletext packets, as shown by ffprobe >>? -show_packets. >> >>* The first few video and subtitles frames, as shown by ffprobe >>? -show_frames. >> >>* The first few video and overlay frames inserted in the filter. For that, >>? use the showinfo filter: >> >>? -filter_complex "[0:s] showinfo, scale=1280:720 [sub] ; [0:v] showinfo >>? [vid] ; [vid][sub] overlay" >> >>Regards, >> >>-- >>? Nicolas George >> >> > >Attached is the output with commandline > >url to the file (240MB) > >http://joolzg.myetrayz.net:8080/rapidbox/rapidFileDownload.php?r_id=642e92efb79421734881b53e1e1b18b6 > >joolz > > -------------- next part -------------- A non-text attachment was scrubbed... Name: error.tar.gz Type: application/x-gzip Size: 12312 bytes Desc: not available URL: From belcampo at zonnet.nl Tue Dec 17 11:26:50 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Tue, 17 Dec 2013 11:26:50 +0100 Subject: [FFmpeg-user] Setting 'crf' option when converting with ffmpeg In-Reply-To: References: Message-ID: <0FC6FB6E-EE96-454A-8A5C-3BE386DE8844@zonnet.nl> On 17 Dec 2013, at 07:51, Andrei Petru Mura wrote: > I have a H264 encoded file that I try to convert to a mjpeg format. > That's the command that I issue and its output: > > */home/netnfork/bin/ffmpeg -i ./Event20131026000020003.avi -crf 12 -c:v > mjpeg -vf hflip ./out.avi* > *ffmpeg version git-2013-10-15-c35d29a Copyright (c) 2000-2013 the FFmpeg > developers* > * built on Oct 15 2013 11:56:38 with gcc 4.4.7 (GCC) 20120313 (Red Hat > 4.4.7-3)* > * configuration: --prefix=/home/netnfork/ffmpeg_build > --extra-cflags=-I/home/netnfork/ffmpeg_build/include > --extra-ldflags=-L/home/netnfork/ffmpeg_build/lib > --bindir=/home/netnfork/bin --extra-libs=-ldl --enable-gpl --enable-nonfree > --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis > --enable-libvpx --enable-libx264 --enable-libfreetype --enable-libspeex > --enable-libtheora* > libavutil 52. 46.101 / 52. 46.101 > libavcodec 55. 36.100 / 55. 36.100 > libavformat 55. 19.102 / 55. 19.102 > libavdevice 55. 4.100 / 55. 4.100 > libavfilter 3. 88.101 / 3. 88.101 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.103 / 0. 17.103 > libpostproc 52. 3.100 / 52. 3.100 > [avi @ 0xb710e20] probed stream 1 failed > [avi @ 0xb710e20] Stream #2: not enough frames to estimate rate; consider > increasing probesize > [avi @ 0xb710e20] Could not find codec parameters for stream 1 (Subtitle: > none): unknown codec > Consider increasing the value for the 'analyzeduration' and 'probesize' > options > [avi @ 0xb710e20] Could not find codec parameters for stream 2 (Subtitle: > none): unknown codec > Consider increasing the value for the 'analyzeduration' and 'probesize' > options > *Input #0, avi, from './Event20131026000020003.avi':* > * Duration: 00:00:43.67, start: 0.000000, bitrate: 8034 kb/s* > * Stream #0:0: Video: h264 (High) (X264 / 0x34363258), yuvj420p(pc), > 1920x1080, 30 fps, 30 tbr, 30 tbn, 30 tbc* > * Stream #0:1: Subtitle: none* > * Stream #0:2: Subtitle: none* > *Codec AVOption crf (Select the quality for constant quality mode) > specified for output file #0 (./out.avi) has not been used for any stream. > The most likely reason is either wrong type (e.g. a video option with no > video streams) or that it is a private option of some encoder which was not > actually used for any stream.* > *File './out.avi' already exists. Overwrite ?* [y/N] y > Output #0, avi, to './out.avi': > Metadata: > ISFT : Lavf55.19.102 > Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj420p, 1920x1080, > q=2-31, 200 kb/s, 30 tbn, 30 tbc > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> mjpeg) > Press [q] to stop, [?] for help > frame= 260 fps=110 q=0.0 Lsize= 24737kB time=00:00:08.66 > bitrate=23382.6kbits/s > video:24726kB audio:0kB subtit ... > > The red written text is the problem that I don't know how to deal with. Can > anybody tell me how to deal with this problem? I want to specify the "crf" > for this conversion because the quality resulted is very bad in a few > specific files. Why does "crf" does not take effect when I specify it in my > scenario? crf is an option when using c:v libx264 NOT with c:v mjpeg > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Tue Dec 17 11:33:12 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 10:33:12 +0000 (UTC) Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? References: <52AF89B7.3070904@das-werkstatt.com> Message-ID: Peter B. das-werkstatt.com> writes: > Does anyone know which parameters do I require to encode > JPEG2000 lossless using libopenjpeg? It is lossless by default. Carl Eugen From cehoyos at ag.or.at Tue Dec 17 11:33:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 10:33:41 +0000 (UTC) Subject: [FFmpeg-user] Build script for android References: Message-ID: Yamusani Vinay gmail.com> writes: > Can sone one provide me a build script for ffmpeg with > neon support for android. What's wrong with configure? Carl Eugen From harninder.rai at freescale.com Tue Dec 17 11:38:31 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Tue, 17 Dec 2013 10:38:31 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <52AFF5A1.6060600@gmail.com> References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> <52AFF5A1.6060600@gmail.com> Message-ID: <4ea54165c65d4b0fa7f810bc5223bed4@BL2PR03MB177.namprd03.prod.outlook.com> Hello Anshul, Here's the strace output execve("./ffmpeg", ["./ffmpeg"], [/* 8 vars */]) = 0 brk(0) = 0x10fce000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4801f000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/tls/ppc8548/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/ppc8548", 0xbfb04e68) = -1 ENOENT (No such file or directory) open("/lib/tls/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls", 0xbfb04e68) = -1 ENOENT (No such file or directory) open("/lib/ppc8548/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/ppc8548", 0xbfb04e68) = -1 ENOENT (No such file or directory) open("/lib/libm.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\260@\0\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=930795, ...}) = 0 mmap(0xff06000, 955044, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xff06000 mprotect(0xffdd000, 61440, PROT_NONE) = 0 mmap(0xffec000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6000) = 0xffec000 close(3) = 0 open("/lib/librt.so.1", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\32\0\0\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=47198, ...}) = 0 mmap(0xfedd000, 98816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfedd000 mprotect(0xfee5000, 61440, PROT_NONE) = 0 mmap(0xfef4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0xfef4000 close(3) = 0 open("/lib/libpthread.so.0", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0O\274\0\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=127474, ...}) = 0 mmap(0xfea3000, 168436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfea3000 mprotect(0xfeba000, 61440, PROT_NONE) = 0 mmap(0xfec9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0xfec9000 mmap(0xfecb000, 4596, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfecb000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\1\3718\0\0\0004"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1695064, ...}) = 0 mmap(0xfd15000, 1561860, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfd15000 mprotect(0xfe7b000, 65536, PROT_NONE) = 0 mmap(0xfe8b000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x166000) = 0xfe8b000 mmap(0xfe90000, 9476, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfe90000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48020000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48021000 mprotect(0xfe8b000, 16384, PROT_READ) = 0 mprotect(0xfec9000, 4096, PROT_READ) = 0 mprotect(0xfef4000, 4096, PROT_READ) = 0 mprotect(0xffec000, 12288, PROT_READ) = 0 mprotect(0x4802f000, 4096, PROT_READ) = 0 set_tid_address(0x480206d8) = 2759 set_robust_list(0x480206e0, 12) = 0 futex(0xbfb05868, FUTEX_WAKE_PRIVATE, 1) = 0 futex(0xbfb05868, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 0) = -1 EINVAL (Invalid argument) rt_sigaction(SIGRTMIN, {0xfea7b48, [], SA_SIGINFO}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0xfea7a0c, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 --- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x1003c208} --- +++ killed by SIGILL +++ Illegal instruction From pb at das-werkstatt.com Tue Dec 17 11:39:30 2013 From: pb at das-werkstatt.com (Peter B.) Date: Tue, 17 Dec 2013 11:39:30 +0100 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? In-Reply-To: References: <52AF89B7.3070904@das-werkstatt.com> Message-ID: <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> Quoting Carl Eugen Hoyos : > Peter B. das-werkstatt.com> writes: > >> Does anyone know which parameters do I require to encode >> JPEG2000 lossless using libopenjpeg? > > It is lossless by default. Hm... Then there's something wrong with my build. It also plays back faulty using ffplay: luma is correct, but the color information seems displaced and wrong. Pb From cehoyos at ag.or.at Tue Dec 17 11:36:42 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 10:36:42 +0000 (UTC) Subject: [FFmpeg-user] Setting 'crf' option when converting with ffmpeg References: Message-ID: Andrei Petru Mura gmail.com> writes: > I want to specify the "crf" for this conversion because > the quality resulted is very bad in a few specific files. Use -qscale 2 for best quality, higher values for lower bitrate. Carl Eugen From yamusanivinay at gmail.com Tue Dec 17 12:06:25 2013 From: yamusanivinay at gmail.com (Yamusani Vinay) Date: Tue, 17 Dec 2013 16:36:25 +0530 Subject: [FFmpeg-user] Build script for android In-Reply-To: References: Message-ID: I am getting below mentioned problem.. yasm not found, use --disable-yasm for a crippled build If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. On Tue, Dec 17, 2013 at 4:03 PM, Carl Eugen Hoyos wrote: > Yamusani Vinay gmail.com> writes: > > > Can sone one provide me a build script for ffmpeg with > > neon support for android. > > What's wrong with configure? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Tue Dec 17 12:15:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 11:15:29 +0000 (UTC) Subject: [FFmpeg-user] Build script for android References: Message-ID: Yamusani Vinay gmail.com> writes: > I am getting below mentioned problem.. Which configure line did you use? > yasm not found, use --disable-yasm for a crippled build For which architecture are you trying to build. arm or x86? If you want to build for arm on a x86, you have to tell configure which compiler to use with the --cc option. Please do not top-post here, it is considered rude, Carl Eugen From cehoyos at ag.or.at Tue Dec 17 12:16:36 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 11:16:36 +0000 (UTC) Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> Message-ID: Peter B. das-werkstatt.com> writes: > Quoting Carl Eugen Hoyos ag.or.at>: > > > Peter B. das-werkstatt.com> writes: > > > >> Does anyone know which parameters do I require to encode > >> JPEG2000 lossless using libopenjpeg? > > > > It is lossless by default. > > Hm... Then there's something wrong with my build. Command line(s) and complete, uncut console output missing. (I just tried with tests/lena.pnm) Carl Eugen From cehoyos at ag.or.at Tue Dec 17 12:27:46 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 11:27:46 +0000 (UTC) Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc References: Message-ID: Harninder Rai freescale.com> writes: > I am facing "Illegal instruction " error when I execute > ffmpeg on powerpc I have configured ffmpeg with the > following options Please provide gdb output, see http://ffmpeg.org/bugreports.html Carl Eugen From anshul.ffmpeg at gmail.com Tue Dec 17 14:05:46 2013 From: anshul.ffmpeg at gmail.com (anshul) Date: Tue, 17 Dec 2013 18:35:46 +0530 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <4ea54165c65d4b0fa7f810bc5223bed4@BL2PR03MB177.namprd03.prod.outlook.com> References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> <52AFF5A1.6060600@gmail.com> <4ea54165c65d4b0fa7f810bc5223bed4@BL2PR03MB177.namprd03.prod.outlook.com> Message-ID: <52B04C2A.2020903@gmail.com> On 12/17/2013 04:08 PM, Harninder Rai wrote: > Hello Anshul, > > Here's the strace output > > execve("./ffmpeg", ["./ffmpeg"], [/* 8 vars */]) = 0 > brk(0) = 0x10fce000 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4801f000 > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) > open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or directory) > open("/lib/tls/ppc8548/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) > stat64("/lib/tls/ppc8548", 0xbfb04e68) = -1 ENOENT (No such file or directory) > open("/lib/tls/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) > stat64("/lib/tls", 0xbfb04e68) = -1 ENOENT (No such file or directory) > open("/lib/ppc8548/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory) > stat64("/lib/ppc8548", 0xbfb04e68) = -1 ENOENT (No such file or directory) > open("/lib/libm.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\260@\0\0\0004"..., 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=930795, ...}) = 0 > mmap(0xff06000, 955044, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xff06000 > mprotect(0xffdd000, 61440, PROT_NONE) = 0 > mmap(0xffec000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6000) = 0xffec000 > close(3) = 0 > open("/lib/librt.so.1", O_RDONLY) = 3 > read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\32\0\0\0\0004"..., 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=47198, ...}) = 0 > mmap(0xfedd000, 98816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfedd000 > mprotect(0xfee5000, 61440, PROT_NONE) = 0 > mmap(0xfef4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0xfef4000 > close(3) = 0 > open("/lib/libpthread.so.0", O_RDONLY) = 3 > read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0O\274\0\0\0004"..., 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=127474, ...}) = 0 > mmap(0xfea3000, 168436, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfea3000 > mprotect(0xfeba000, 61440, PROT_NONE) = 0 > mmap(0xfec9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0xfec9000 > mmap(0xfecb000, 4596, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfecb000 > close(3) = 0 > open("/lib/libc.so.6", O_RDONLY) = 3 > read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\1\3718\0\0\0004"..., 512) = 512 > fstat64(3, {st_mode=S_IFREG|0755, st_size=1695064, ...}) = 0 > mmap(0xfd15000, 1561860, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfd15000 > mprotect(0xfe7b000, 65536, PROT_NONE) = 0 > mmap(0xfe8b000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x166000) = 0xfe8b000 > mmap(0xfe90000, 9476, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfe90000 > close(3) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48020000 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x48021000 > mprotect(0xfe8b000, 16384, PROT_READ) = 0 > mprotect(0xfec9000, 4096, PROT_READ) = 0 > mprotect(0xfef4000, 4096, PROT_READ) = 0 > mprotect(0xffec000, 12288, PROT_READ) = 0 > mprotect(0x4802f000, 4096, PROT_READ) = 0 > set_tid_address(0x480206d8) = 2759 > set_robust_list(0x480206e0, 12) = 0 > futex(0xbfb05868, FUTEX_WAKE_PRIVATE, 1) = 0 > futex(0xbfb05868, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 0) = -1 EINVAL (Invalid argument) > rt_sigaction(SIGRTMIN, {0xfea7b48, [], SA_SIGINFO}, NULL, 8) = 0 > rt_sigaction(SIGRT_1, {0xfea7a0c, [], SA_RESTART|SA_SIGINFO}, NULL, 8) = 0 > rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 > getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0 > --- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x1003c208} --- > +++ killed by SIGILL +++ > Illegal instruction > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi Harry I think while executing, you don't have privilege to set the stack limit, if you are already trying with root user, then please look whether your linux support the changing the stack limit, I remember some older version of Linux were not having this option copied from manual RLIMIT_STACK The maximum size of the process stack, in bytes. Upon reaching this limit, a SIGSEGV signal is generated. To handle this signal, a process must employ an alternate signal stack (sigaltstack(2)). Since Linux 2.6.23, this limit also determines the amount of space used for the process's command-line arguments and environment variables; for details, see execve(2). Thanks Anshul From doebereiner at smartcast.de Tue Dec 17 14:40:31 2013 From: doebereiner at smartcast.de (=?iso-8859-1?Q?Simon_D=F6bereiner_-_SmartCast?=) Date: Tue, 17 Dec 2013 13:40:31 +0000 Subject: [FFmpeg-user] different aspect ration in ONE file Message-ID: <4F7B5C261C066E45B5F613642C296C6914A69A60@MAIL01.sc.smartcast.de> Dear All, I have lots of *.ts files to convert to mp4. No Problem so far, but it's a recording from a television channel with different aspect ratio. So for example the movie is 4/3 while the adverts are 16/9. Here comes the problem: all ts files already have squished the parts with 16/9 to 4/3 (the recording doesn't care, it just records one full hour). Is there any possibility to fix the padding to have 4/3 as 4/3 and 16/9 as 16/9 although it's in ONE file? Atm I use this to encode my files: /usr/local/bin/ffmpeg -y -i "$f" -crf 30 -vf "yadif, scale=iw*sar:ih , pad=max(iw\,ih*(16/9)):-Ow/(16/9):(ow-iw)/2:(oh-ih)/2" -threads 24 -aspect 16:9 "${f/.ts}.mp4" >> "${f/.ts}.log" 2>&1 ; x264 Best, Simon D?bereiner Software Development Softwareentwicklung ----------------------------------- SmartCast GmbH Germany Beta-Str. 7, D-85774 Unterfoehring Tel +49 89 411144 136 Fax +49 89 411144 222 E-Mail doebereiner at smartcast.de www www.smartcast.eu ----------------------------------- Tel Hong Kong +852 3 973 3729 Tel Singapore +65 3 158 2164 Tel Thailand +66 2 402 8274 ----------------------------------- Managing Director / Gesch?ftsf?hrer Christian Brenner, HRB Mchn 137561 ----------------------------------- From cehoyos at ag.or.at Tue Dec 17 15:03:54 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 14:03:54 +0000 (UTC) Subject: [FFmpeg-user] different aspect ration in ONE file References: <4F7B5C261C066E45B5F613642C296C6914A69A60@MAIL01.sc.smartcast.de> Message-ID: Simon D?bereiner - SmartCast smartcast.de> writes: > I have lots of *.ts files to convert to mp4. No Problem so > far, but it's a recording from a television channel with > different aspect ratio. So for example the movie is 4/3 > while the adverts are 16/9. I don't think this is supported in mp4. (I am not claiming that it would work at all with FFmpeg, but if you want to put the result in mp4, I suspect it is impossible.) Or do I misunderstand and all you want it either 4/3 in the whole file or 16/9 in the whole file (that should be the current behaviour). Carl Eugen From doebereiner at smartcast.de Tue Dec 17 15:10:18 2013 From: doebereiner at smartcast.de (=?utf-8?B?U2ltb24gRMO2YmVyZWluZXIgLSBTbWFydENhc3Q=?=) Date: Tue, 17 Dec 2013 14:10:18 +0000 Subject: [FFmpeg-user] different aspect ration in ONE file In-Reply-To: References: <4F7B5C261C066E45B5F613642C296C6914A69A60@MAIL01.sc.smartcast.de> Message-ID: <4F7B5C261C066E45B5F613642C296C6914A69AC3@MAIL01.sc.smartcast.de> Thx for your fast answer Eugen! Let me clarify: The video should be 16:9 but the padding inside the file should be dynamic ? depending on the actual ratio of the recording. Best, Simon -----Urspr?ngliche Nachricht----- Von: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] Im Auftrag von Carl Eugen Hoyos Gesendet: Dienstag, 17. Dezember 2013 15:04 An: ffmpeg-user at ffmpeg.org Betreff: Re: [FFmpeg-user] different aspect ration in ONE file Simon D?bereiner - SmartCast smartcast.de> writes: > I have lots of *.ts files to convert to mp4. No Problem so far, but > it's a recording from a television channel with different aspect > ratio. So for example the movie is 4/3 while the adverts are 16/9. I don't think this is supported in mp4. (I am not claiming that it would work at all with FFmpeg, but if you want to put the result in mp4, I suspect it is impossible.) Or do I misunderstand and all you want it either 4/3 in the whole file or 16/9 in the whole file (that should be the current behaviour). Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Tue Dec 17 15:16:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 14:16:30 +0000 (UTC) Subject: [FFmpeg-user] different aspect ration in ONE file References: <4F7B5C261C066E45B5F613642C296C6914A69A60@MAIL01.sc.smartcast.de> <4F7B5C261C066E45B5F613642C296C6914A69AC3@MAIL01.sc.smartcast.de> Message-ID: Simon D?bereiner - SmartCast smartcast.de> writes: > The video should be 16:9 but the padding inside the > file should be dynamic ? depending on the actual ratio > of the recording. This sounds like the current FFmpeg behaviour. Am I correct that it is just your scale filter options that make FFmpeg produce unexpected results? Please do not top-post here, Carl Eugen From xiaomou at gmail.com Tue Dec 17 15:35:55 2013 From: xiaomou at gmail.com (=?UTF-8?B?6IKW6LCL?=) Date: Tue, 17 Dec 2013 22:35:55 +0800 Subject: [FFmpeg-user] Problem with ffmpeg psnr calculate filter when image file applied Message-ID: Dear all, I would like to calculate the PSNR of two images or two videos. I found that the new psnr filter worked well for video files which have at less two frames, but not for one frame, or image files. ffmpeg version is 2.0.2 generate the files to be compared two frames video: ./ffmpeg -i test.mkv -vframes 2 -vcodec libx264 -an frame2.mkv one frames video: ./ffmpeg -i test.mkv -vframes 1 -vcodec libx264 -an frame1.mkv this one does not work: ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v "movie=frame1.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f rawvideo -y /dev/null this one works: ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v "movie=frame2.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f rawvideo -y /dev/null This situation can also be reproduced using image files. I looked into the vf_psnr.c. The do_psnr is not called. I think this might be a bug for filter process? any suggestions to fix this? Thanks a lot. Regards From doebereiner at smartcast.de Tue Dec 17 15:47:18 2013 From: doebereiner at smartcast.de (=?utf-8?B?U2ltb24gRMO2YmVyZWluZXIgLSBTbWFydENhc3Q=?=) Date: Tue, 17 Dec 2013 14:47:18 +0000 Subject: [FFmpeg-user] different aspect ration in ONE file In-Reply-To: References: <4F7B5C261C066E45B5F613642C296C6914A69A60@MAIL01.sc.smartcast.de> <4F7B5C261C066E45B5F613642C296C6914A69AC3@MAIL01.sc.smartcast.de> Message-ID: <4F7B5C261C066E45B5F613642C296C6914A69BA5@MAIL01.sc.smartcast.de> > This sounds like the current FFmpeg behaviour. > Am I correct that it is just your scale filter options that make FFmpeg produce unexpected results? correct! The problem is squishing/stretching depending on the first aspect ratio. Best, Simon From harninder.rai at freescale.com Tue Dec 17 16:37:44 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Tue, 17 Dec 2013 15:37:44 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <52B04C2A.2020903@gmail.com> References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> <52AFF5A1.6060600@gmail.com> <4ea54165c65d4b0fa7f810bc5223bed4@BL2PR03MB177.namprd03.prod.outlook.com> <52B04C2A.2020903@gmail.com> Message-ID: <3168a01cfb9d499980de2bfd985ecb58@BL2PR03MB177.namprd03.prod.outlook.com> > Hi Harry > > I think while executing, you don't have privilege to set the stack limit, > if you are already trying with root user, then please look whether your > linux support the changing the stack limit, I remember some older version > of Linux were not having this option > Hello Anshul, I am using kernel 3.8, that should support changing stack limit? Is there any kernel config option or something which I should turn on? Regards Harry++ From gjmata at gmail.com Tue Dec 17 17:58:39 2013 From: gjmata at gmail.com (Gustavo J Mata) Date: Tue, 17 Dec 2013 12:28:39 -0430 Subject: [FFmpeg-user] Good Tutorial on Video formats? Message-ID: For a newbie to video, navigating through FFmpeg's documentation is made difficult by a lack of understanding of what the underlying concepts are and how they are connected. Does anybody know a good introduction to video encoders, containers, frame rates, bit rates, compression schemes, and such? Thanks in advance. Gustavo J. Mata -- ?La ignorancia, aliada con el poder, es el m?s feroz enemigo que puede tener la justicia.? (James Baldwin) Visite mi Blog en Apartaderos From dave at dericed.com Tue Dec 17 18:50:46 2013 From: dave at dericed.com (Dave Rice) Date: Tue, 17 Dec 2013 12:50:46 -0500 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? In-Reply-To: <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> Message-ID: <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> On Dec 17, 2013, at 5:39 AM, Peter B. wrote: > Quoting Carl Eugen Hoyos : > >> Peter B. das-werkstatt.com> writes: >> >>> Does anyone know which parameters do I require to encode >>> JPEG2000 lossless using libopenjpeg? >> >> It is lossless by default. > > Hm... Then there's something wrong with my build. > > It also plays back faulty using ffplay: luma is correct, but the color information seems displaced and wrong. I am having similar issues. For instance encode to yuv422p10le jpeg2000 and pipe to ffplay shows chroma problems. I'm running git-master, compiled a few minutes ago with libopenjpeg. Here's a sample command to show the issue in yuv422p10le. yuv422p and yuv420p look similarly odd. ffmpeg -f lavfi -i testsrc -pix_fmt yuv422p10le -c:v libopenjpeg -f nut - | ffplay - ffmpeg version 2.1.git Copyright (c) 2000-2013 the FFmpeg developers built on Dec 17 2013 11:48:51 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-ffplay --enable-libcaca --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' libavutil 53. 0.100 / 53. 0.100 libavcodec 55. 45.101 / 55. 45.101 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc Output #0, nut, to 'pipe:': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: jpeg2000 (libopenjpeg) (mjp2 / 0x32706A6D), yuv422p10le, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 51200 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libopenjpeg) Press [q] to stop, [?] for help ffplay version 2.1.git Copyright (c) 2003-2013 the FFmpeg developers built on Dec 17 2013 11:48:51 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-ffplay --enable-libcaca --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' libavutil 53. 0.100 / 53. 0.100 libavcodec 55. 45.101 / 55. 45.101 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, nut, from 'pipe:':ze= 361kB time=00:00:00.84 bitrate=3522.3kbits/s Metadata: encoder : Lavf55.22.100 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0) (mjp2 / 0x32706A6D), yuv422p10le, 320x240, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 51200 tbn, 51200 tbc 1.88 M-V: 0.000 fd= 0 aq= 0KB vq= 103KB sq= 0B f=0/0 488.4kbits/s Dave Rice From elliottbalsley at gmail.com Tue Dec 17 19:37:44 2013 From: elliottbalsley at gmail.com (Elliott Balsley) Date: Tue, 17 Dec 2013 10:37:44 -0800 Subject: [FFmpeg-user] wrong number of ref frames Message-ID: <58655D24-242C-4F84-AD4C-5880E3C10EBC@gmail.com> I used ffmpeg to encode a video with libx264, using High Profile @ Level 4.1. So the reference frames should be 9. But it?s actually using 16. Can anyone figure out why? The encode also displays major visual artifacts in QuickTime Player 7 (see attached screenshot), which I?m guessing might be caused by the too many ref frames. It plays fine in VLC. Screenshot: https://www.dropbox.com/s/fi8hwrf5u3jrl0r/blocky.jpg $ ffmpeg -i short\ cut\ 12-16\ lock.mov -pix_fmt yuv420p -vf scale=hd720 -acodec libfdk_aac -b:a 128k -vcodec libx264 -preset veryslow -crf 19 -profile high -level 41 shortCRF19.mov ffmpeg version N-57394-gea9632b Copyright (c) 2000-2013 the FFmpeg developers built on Oct 24 2013 11:58:12 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --enable-libass --enable-libbluray --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-opencl --enable-libfreetype --disable-shared --enable-libopenjpeg --enable-libvorbis --enable-libtheora libavutil 52. 47.101 / 52. 47.101 libavcodec 55. 38.101 / 55. 38.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 89.100 / 3. 89.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'short cut 12-16 lock.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-12-17 08:50:12 Duration: 00:05:42.01, start: 0.000000, bitrate: 166700 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 165139 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default) Metadata: creation_time : 2013-12-17 08:50:12 handler_name : Apple Alias Data Handler timecode : 00:00:03:00 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2013-12-17 08:50:12 handler_name : Apple Alias Data Handler timecode : 00:00:03:00 Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default) Metadata: creation_time : 2013-12-17 08:50:12 handler_name : Apple Alias Data Handler timecode : 00:00:03:00 Please use -profile:a or -profile:v, -profile is ambiguous [libx264 @ 0x7ffb41809a00] using SAR=1/1 [libx264 @ 0x7ffb41809a00] DPB size (16 frames, 57600 mbs) > level limit (9 frames, 32768 mbs) [libx264 @ 0x7ffb41809a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x7ffb41809a00] profile High, level 4.1 [libx264 @ 0x7ffb41809a00] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mov, to 'shortCRF19.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf55.19.104 Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc (default) Metadata: creation_time : 2013-12-17 08:50:12 handler_name : Apple Alias Data Handler timecode : 00:00:03:00 Stream #0:1(eng): Audio: aac (libfdk_aac) (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s (default) Metadata: creation_time : 2013-12-17 08:50:12 handler_name : Apple Alias Data Handler timecode : 00:00:03:00 Stream mapping: Stream #0:0 -> #0:0 (prores -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac) Press [q] to stop, [?] for help frame= 8200 fps= 15 q=-1.0 Lsize= 66450kB time=00:05:42.01 bitrate=1591.6kbits/s video:60883kB audio:5345kB subtitle:0 global headers:0kB muxing overhead 0.335523% [libx264 @ 0x7ffb41809a00] frame I:62 Avg QP:15.59 size: 76674 [libx264 @ 0x7ffb41809a00] frame P:1804 Avg QP:18.77 size: 17581 [libx264 @ 0x7ffb41809a00] frame B:6334 Avg QP:22.65 size: 4085 [libx264 @ 0x7ffb41809a00] consecutive B-frames: 1.4% 2.0% 7.1% 36.5% 13.2% 30.1% 3.1% 1.8% 4.8% [libx264 @ 0x7ffb41809a00] mb I I16..4: 13.1% 68.8% 18.1% [libx264 @ 0x7ffb41809a00] mb P I16..4: 1.3% 5.3% 0.7% P16..4: 42.2% 12.6% 12.0% 0.3% 0.1% skip:25.6% [libx264 @ 0x7ffb41809a00] mb B I16..4: 0.0% 0.4% 0.1% B16..8: 34.7% 4.1% 0.9% direct: 1.9% skip:57.9% L0:44.1% L1:50.0% BI: 5.9% [libx264 @ 0x7ffb41809a00] 8x8 transform intra:72.3% inter:71.1% [libx264 @ 0x7ffb41809a00] direct mvs spatial:98.8% temporal:1.2% [libx264 @ 0x7ffb41809a00] coded y,uvDC,uvAC intra: 72.7% 57.0% 23.5% inter: 8.6% 6.4% 0.3% [libx264 @ 0x7ffb41809a00] i16 v,h,dc,p: 30% 16% 6% 48% [libx264 @ 0x7ffb41809a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 6% 9% 12% 13% 12% 13% 12% [libx264 @ 0x7ffb41809a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 2% 10% 15% 14% 13% 11% 11% [libx264 @ 0x7ffb41809a00] i8c dc,h,v,p: 26% 34% 22% 17% [libx264 @ 0x7ffb41809a00] Weighted P-Frames: Y:5.5% UV:3.8% [libx264 @ 0x7ffb41809a00] ref P L0: 50.0% 10.9% 14.2% 4.9% 4.1% 3.3% 2.8% 1.4% 1.3% 1.2% 1.1% 1.0% 1.0% 1.0% 1.0% 0.7% [libx264 @ 0x7ffb41809a00] ref B L0: 79.7% 8.0% 4.0% 1.7% 1.4% 1.2% 1.0% 0.5% 0.5% 0.4% 0.4% 0.4% 0.4% 0.3% 0.2% [libx264 @ 0x7ffb41809a00] ref B L1: 93.3% 6.7% [libx264 @ 0x7ffb41809a00] kb/s:1458.30 From amit at sdsc.edu Tue Dec 17 19:43:07 2013 From: amit at sdsc.edu (Chourasia, Amit) Date: Tue, 17 Dec 2013 18:43:07 +0000 Subject: [FFmpeg-user] wrong number of ref frames In-Reply-To: <58655D24-242C-4F84-AD4C-5880E3C10EBC@gmail.com> References: <58655D24-242C-4F84-AD4C-5880E3C10EBC@gmail.com> Message-ID: <878B62C3-ED61-4EAA-8B5A-61BB096DA81E@sdsc.edu> The veryslow preset causes that. Try slower preset, I am also having same problem with QuickTime. -A > On Dec 17, 2013, at 12:37 PM, "Elliott Balsley" wrote: > > I used ffmpeg to encode a video with libx264, using High Profile @ Level 4.1. So the reference frames should be 9. But it?s actually using 16. Can anyone figure out why? The encode also displays major visual artifacts in QuickTime Player 7 (see attached screenshot), which I?m guessing might be caused by the too many ref frames. It plays fine in VLC. > > Screenshot: https://www.dropbox.com/s/fi8hwrf5u3jrl0r/blocky.jpg > > $ ffmpeg -i short\ cut\ 12-16\ lock.mov -pix_fmt yuv420p -vf scale=hd720 -acodec libfdk_aac -b:a 128k -vcodec libx264 -preset veryslow -crf 19 -profile high -level 41 shortCRF19.mov > ffmpeg version N-57394-gea9632b Copyright (c) 2000-2013 the FFmpeg developers > built on Oct 24 2013 11:58:12 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) > configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --enable-libass --enable-libbluray --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-opencl --enable-libfreetype --disable-shared --enable-libopenjpeg --enable-libvorbis --enable-libtheora > libavutil 52. 47.101 / 52. 47.101 > libavcodec 55. 38.101 / 55. 38.101 > libavformat 55. 19.104 / 55. 19.104 > libavdevice 55. 5.100 / 55. 5.100 > libavfilter 3. 89.100 / 3. 89.100 > libswscale 2. 5.101 / 2. 5.101 > libswresample 0. 17.104 / 0. 17.104 > libpostproc 52. 3.100 / 52. 3.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'short cut 12-16 lock.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > creation_time : 2013-12-17 08:50:12 > Duration: 00:05:42.01, start: 0.000000, bitrate: 166700 kb/s > Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 165139 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default) > Metadata: > creation_time : 2013-12-17 08:50:12 > handler_name : Apple Alias Data Handler > timecode : 00:00:03:00 > Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) > Metadata: > creation_time : 2013-12-17 08:50:12 > handler_name : Apple Alias Data Handler > timecode : 00:00:03:00 > Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default) > Metadata: > creation_time : 2013-12-17 08:50:12 > handler_name : Apple Alias Data Handler > timecode : 00:00:03:00 > Please use -profile:a or -profile:v, -profile is ambiguous > [libx264 @ 0x7ffb41809a00] using SAR=1/1 > [libx264 @ 0x7ffb41809a00] DPB size (16 frames, 57600 mbs) > level limit (9 frames, 32768 mbs) > [libx264 @ 0x7ffb41809a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 > [libx264 @ 0x7ffb41809a00] profile High, level 4.1 > [libx264 @ 0x7ffb41809a00] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 > Output #0, mov, to 'shortCRF19.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > encoder : Lavf55.19.104 > Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc (default) > Metadata: > creation_time : 2013-12-17 08:50:12 > handler_name : Apple Alias Data Handler > timecode : 00:00:03:00 > Stream #0:1(eng): Audio: aac (libfdk_aac) (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s (default) > Metadata: > creation_time : 2013-12-17 08:50:12 > handler_name : Apple Alias Data Handler > timecode : 00:00:03:00 > Stream mapping: > Stream #0:0 -> #0:0 (prores -> libx264) > Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac) > Press [q] to stop, [?] for help > frame= 8200 fps= 15 q=-1.0 Lsize= 66450kB time=00:05:42.01 bitrate=1591.6kbits/s > video:60883kB audio:5345kB subtitle:0 global headers:0kB muxing overhead 0.335523% > [libx264 @ 0x7ffb41809a00] frame I:62 Avg QP:15.59 size: 76674 > [libx264 @ 0x7ffb41809a00] frame P:1804 Avg QP:18.77 size: 17581 > [libx264 @ 0x7ffb41809a00] frame B:6334 Avg QP:22.65 size: 4085 > [libx264 @ 0x7ffb41809a00] consecutive B-frames: 1.4% 2.0% 7.1% 36.5% 13.2% 30.1% 3.1% 1.8% 4.8% > [libx264 @ 0x7ffb41809a00] mb I I16..4: 13.1% 68.8% 18.1% > [libx264 @ 0x7ffb41809a00] mb P I16..4: 1.3% 5.3% 0.7% P16..4: 42.2% 12.6% 12.0% 0.3% 0.1% skip:25.6% > [libx264 @ 0x7ffb41809a00] mb B I16..4: 0.0% 0.4% 0.1% B16..8: 34.7% 4.1% 0.9% direct: 1.9% skip:57.9% L0:44.1% L1:50.0% BI: 5.9% > [libx264 @ 0x7ffb41809a00] 8x8 transform intra:72.3% inter:71.1% > [libx264 @ 0x7ffb41809a00] direct mvs spatial:98.8% temporal:1.2% > [libx264 @ 0x7ffb41809a00] coded y,uvDC,uvAC intra: 72.7% 57.0% 23.5% inter: 8.6% 6.4% 0.3% > [libx264 @ 0x7ffb41809a00] i16 v,h,dc,p: 30% 16% 6% 48% > [libx264 @ 0x7ffb41809a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 6% 9% 12% 13% 12% 13% 12% > [libx264 @ 0x7ffb41809a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 2% 10% 15% 14% 13% 11% 11% > [libx264 @ 0x7ffb41809a00] i8c dc,h,v,p: 26% 34% 22% 17% > [libx264 @ 0x7ffb41809a00] Weighted P-Frames: Y:5.5% UV:3.8% > [libx264 @ 0x7ffb41809a00] ref P L0: 50.0% 10.9% 14.2% 4.9% 4.1% 3.3% 2.8% 1.4% 1.3% 1.2% 1.1% 1.0% 1.0% 1.0% 1.0% 0.7% > [libx264 @ 0x7ffb41809a00] ref B L0: 79.7% 8.0% 4.0% 1.7% 1.4% 1.2% 1.0% 0.5% 0.5% 0.4% 0.4% 0.4% 0.4% 0.3% 0.2% > [libx264 @ 0x7ffb41809a00] ref B L1: 93.3% 6.7% > [libx264 @ 0x7ffb41809a00] kb/s:1458.30 > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From elliottbalsley at gmail.com Tue Dec 17 20:04:38 2013 From: elliottbalsley at gmail.com (Elliott Balsley) Date: Tue, 17 Dec 2013 11:04:38 -0800 Subject: [FFmpeg-user] wrong number of ref frames In-Reply-To: <878B62C3-ED61-4EAA-8B5A-61BB096DA81E@sdsc.edu> References: <58655D24-242C-4F84-AD4C-5880E3C10EBC@gmail.com> <878B62C3-ED61-4EAA-8B5A-61BB096DA81E@sdsc.edu> Message-ID: Thanks, using ?slower? preset fixes the glitches in QuickTime, and uses 8 ref frames, as expected. I suppose I could manually specify 9 if I wanted to. Is this a bug? I thought profile and level restrictions are supposed to override all other settings. On Dec 17, 2013, at 10:43 AM, Chourasia, Amit wrote: > The veryslow preset causes that. Try slower preset, I am also having same problem with QuickTime. > > -A > > >> On Dec 17, 2013, at 12:37 PM, "Elliott Balsley" wrote: >> >> I used ffmpeg to encode a video with libx264, using High Profile @ Level 4.1. So the reference frames should be 9. But it?s actually using 16. Can anyone figure out why? The encode also displays major visual artifacts in QuickTime Player 7 (see attached screenshot), which I?m guessing might be caused by the too many ref frames. It plays fine in VLC. >> >> Screenshot: https://www.dropbox.com/s/fi8hwrf5u3jrl0r/blocky.jpg >> >> $ ffmpeg -i short\ cut\ 12-16\ lock.mov -pix_fmt yuv420p -vf scale=hd720 -acodec libfdk_aac -b:a 128k -vcodec libx264 -preset veryslow -crf 19 -profile high -level 41 shortCRF19.mov >> ffmpeg version N-57394-gea9632b Copyright (c) 2000-2013 the FFmpeg developers >> built on Oct 24 2013 11:58:12 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) >> configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --enable-libass --enable-libbluray --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-opencl --enable-libfreetype --disable-shared --enable-libopenjpeg --enable-libvorbis --enable-libtheora >> libavutil 52. 47.101 / 52. 47.101 >> libavcodec 55. 38.101 / 55. 38.101 >> libavformat 55. 19.104 / 55. 19.104 >> libavdevice 55. 5.100 / 55. 5.100 >> libavfilter 3. 89.100 / 3. 89.100 >> libswscale 2. 5.101 / 2. 5.101 >> libswresample 0. 17.104 / 0. 17.104 >> libpostproc 52. 3.100 / 52. 3.100 >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'short cut 12-16 lock.mov': >> Metadata: >> major_brand : qt >> minor_version : 537199360 >> compatible_brands: qt >> creation_time : 2013-12-17 08:50:12 >> Duration: 00:05:42.01, start: 0.000000, bitrate: 166700 kb/s >> Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 165139 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default) >> Metadata: >> creation_time : 2013-12-17 08:50:12 >> handler_name : Apple Alias Data Handler >> timecode : 00:00:03:00 >> Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) >> Metadata: >> creation_time : 2013-12-17 08:50:12 >> handler_name : Apple Alias Data Handler >> timecode : 00:00:03:00 >> Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default) >> Metadata: >> creation_time : 2013-12-17 08:50:12 >> handler_name : Apple Alias Data Handler >> timecode : 00:00:03:00 >> Please use -profile:a or -profile:v, -profile is ambiguous >> [libx264 @ 0x7ffb41809a00] using SAR=1/1 >> [libx264 @ 0x7ffb41809a00] DPB size (16 frames, 57600 mbs) > level limit (9 frames, 32768 mbs) >> [libx264 @ 0x7ffb41809a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 >> [libx264 @ 0x7ffb41809a00] profile High, level 4.1 >> [libx264 @ 0x7ffb41809a00] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 >> Output #0, mov, to 'shortCRF19.mov': >> Metadata: >> major_brand : qt >> minor_version : 537199360 >> compatible_brands: qt >> encoder : Lavf55.19.104 >> Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc (default) >> Metadata: >> creation_time : 2013-12-17 08:50:12 >> handler_name : Apple Alias Data Handler >> timecode : 00:00:03:00 >> Stream #0:1(eng): Audio: aac (libfdk_aac) (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s (default) >> Metadata: >> creation_time : 2013-12-17 08:50:12 >> handler_name : Apple Alias Data Handler >> timecode : 00:00:03:00 >> Stream mapping: >> Stream #0:0 -> #0:0 (prores -> libx264) >> Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac) >> Press [q] to stop, [?] for help >> frame= 8200 fps= 15 q=-1.0 Lsize= 66450kB time=00:05:42.01 bitrate=1591.6kbits/s >> video:60883kB audio:5345kB subtitle:0 global headers:0kB muxing overhead 0.335523% >> [libx264 @ 0x7ffb41809a00] frame I:62 Avg QP:15.59 size: 76674 >> [libx264 @ 0x7ffb41809a00] frame P:1804 Avg QP:18.77 size: 17581 >> [libx264 @ 0x7ffb41809a00] frame B:6334 Avg QP:22.65 size: 4085 >> [libx264 @ 0x7ffb41809a00] consecutive B-frames: 1.4% 2.0% 7.1% 36.5% 13.2% 30.1% 3.1% 1.8% 4.8% >> [libx264 @ 0x7ffb41809a00] mb I I16..4: 13.1% 68.8% 18.1% >> [libx264 @ 0x7ffb41809a00] mb P I16..4: 1.3% 5.3% 0.7% P16..4: 42.2% 12.6% 12.0% 0.3% 0.1% skip:25.6% >> [libx264 @ 0x7ffb41809a00] mb B I16..4: 0.0% 0.4% 0.1% B16..8: 34.7% 4.1% 0.9% direct: 1.9% skip:57.9% L0:44.1% L1:50.0% BI: 5.9% >> [libx264 @ 0x7ffb41809a00] 8x8 transform intra:72.3% inter:71.1% >> [libx264 @ 0x7ffb41809a00] direct mvs spatial:98.8% temporal:1.2% >> [libx264 @ 0x7ffb41809a00] coded y,uvDC,uvAC intra: 72.7% 57.0% 23.5% inter: 8.6% 6.4% 0.3% >> [libx264 @ 0x7ffb41809a00] i16 v,h,dc,p: 30% 16% 6% 48% >> [libx264 @ 0x7ffb41809a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 6% 9% 12% 13% 12% 13% 12% >> [libx264 @ 0x7ffb41809a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 2% 10% 15% 14% 13% 11% 11% >> [libx264 @ 0x7ffb41809a00] i8c dc,h,v,p: 26% 34% 22% 17% >> [libx264 @ 0x7ffb41809a00] Weighted P-Frames: Y:5.5% UV:3.8% >> [libx264 @ 0x7ffb41809a00] ref P L0: 50.0% 10.9% 14.2% 4.9% 4.1% 3.3% 2.8% 1.4% 1.3% 1.2% 1.1% 1.0% 1.0% 1.0% 1.0% 0.7% >> [libx264 @ 0x7ffb41809a00] ref B L0: 79.7% 8.0% 4.0% 1.7% 1.4% 1.2% 1.0% 0.5% 0.5% 0.4% 0.4% 0.4% 0.4% 0.3% 0.2% >> [libx264 @ 0x7ffb41809a00] ref B L1: 93.3% 6.7% >> [libx264 @ 0x7ffb41809a00] kb/s:1458.30 >> >> >> _______________________________________________ >> 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 amit at sdsc.edu Tue Dec 17 20:33:51 2013 From: amit at sdsc.edu (Chourasia, Amit) Date: Tue, 17 Dec 2013 19:33:51 +0000 Subject: [FFmpeg-user] wrong number of ref frames In-Reply-To: References: <58655D24-242C-4F84-AD4C-5880E3C10EBC@gmail.com> <878B62C3-ED61-4EAA-8B5A-61BB096DA81E@sdsc.edu>, Message-ID: I agree that the variable -ref values in preset did cause some grief. You could possibly modify and create your own preset as I had trouble passing --ref 4 in the command line and preset option. I plan to append to this thread when I am back from travel as I am having artifacts show up with slower and medium presets as well with default and level 5.1 profiles. -A > On Dec 17, 2013, at 1:04 PM, "Elliott Balsley" wrote: > > Thanks, using ?slower? preset fixes the glitches in QuickTime, and uses 8 ref frames, as expected. I suppose I could manually specify 9 if I wanted to. Is this a bug? I thought profile and level restrictions are supposed to override all other settings. > >> On Dec 17, 2013, at 10:43 AM, Chourasia, Amit wrote: >> >> The veryslow preset causes that. Try slower preset, I am also having same problem with QuickTime. >> >> -A >> >> >>> On Dec 17, 2013, at 12:37 PM, "Elliott Balsley" wrote: >>> >>> I used ffmpeg to encode a video with libx264, using High Profile @ Level 4.1. So the reference frames should be 9. But it?s actually using 16. Can anyone figure out why? The encode also displays major visual artifacts in QuickTime Player 7 (see attached screenshot), which I?m guessing might be caused by the too many ref frames. It plays fine in VLC. >>> >>> Screenshot: https://www.dropbox.com/s/fi8hwrf5u3jrl0r/blocky.jpg >>> >>> $ ffmpeg -i short\ cut\ 12-16\ lock.mov -pix_fmt yuv420p -vf scale=hd720 -acodec libfdk_aac -b:a 128k -vcodec libx264 -preset veryslow -crf 19 -profile high -level 41 shortCRF19.mov >>> ffmpeg version N-57394-gea9632b Copyright (c) 2000-2013 the FFmpeg developers >>> built on Oct 24 2013 11:58:12 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) >>> configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --enable-libass --enable-libbluray --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-opencl --enable-libfreetype --disable-shared --enable-libopenjpeg --enable-libvorbis --enable-libtheora >>> libavutil 52. 47.101 / 52. 47.101 >>> libavcodec 55. 38.101 / 55. 38.101 >>> libavformat 55. 19.104 / 55. 19.104 >>> libavdevice 55. 5.100 / 55. 5.100 >>> libavfilter 3. 89.100 / 3. 89.100 >>> libswscale 2. 5.101 / 2. 5.101 >>> libswresample 0. 17.104 / 0. 17.104 >>> libpostproc 52. 3.100 / 52. 3.100 >>> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'short cut 12-16 lock.mov': >>> Metadata: >>> major_brand : qt >>> minor_version : 537199360 >>> compatible_brands: qt >>> creation_time : 2013-12-17 08:50:12 >>> Duration: 00:05:42.01, start: 0.000000, bitrate: 166700 kb/s >>> Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1920x1080, 165139 kb/s, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default) >>> Metadata: >>> creation_time : 2013-12-17 08:50:12 >>> handler_name : Apple Alias Data Handler >>> timecode : 00:00:03:00 >>> Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) >>> Metadata: >>> creation_time : 2013-12-17 08:50:12 >>> handler_name : Apple Alias Data Handler >>> timecode : 00:00:03:00 >>> Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default) >>> Metadata: >>> creation_time : 2013-12-17 08:50:12 >>> handler_name : Apple Alias Data Handler >>> timecode : 00:00:03:00 >>> Please use -profile:a or -profile:v, -profile is ambiguous >>> [libx264 @ 0x7ffb41809a00] using SAR=1/1 >>> [libx264 @ 0x7ffb41809a00] DPB size (16 frames, 57600 mbs) > level limit (9 frames, 32768 mbs) >>> [libx264 @ 0x7ffb41809a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 >>> [libx264 @ 0x7ffb41809a00] profile High, level 4.1 >>> [libx264 @ 0x7ffb41809a00] 264 - core 138 r2358 9e941d1 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=24 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=19.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 >>> Output #0, mov, to 'shortCRF19.mov': >>> Metadata: >>> major_brand : qt >>> minor_version : 537199360 >>> compatible_brands: qt >>> encoder : Lavf55.19.104 >>> Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc (default) >>> Metadata: >>> creation_time : 2013-12-17 08:50:12 >>> handler_name : Apple Alias Data Handler >>> timecode : 00:00:03:00 >>> Stream #0:1(eng): Audio: aac (libfdk_aac) (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 128 kb/s (default) >>> Metadata: >>> creation_time : 2013-12-17 08:50:12 >>> handler_name : Apple Alias Data Handler >>> timecode : 00:00:03:00 >>> Stream mapping: >>> Stream #0:0 -> #0:0 (prores -> libx264) >>> Stream #0:1 -> #0:1 (pcm_s16le -> libfdk_aac) >>> Press [q] to stop, [?] for help >>> frame= 8200 fps= 15 q=-1.0 Lsize= 66450kB time=00:05:42.01 bitrate=1591.6kbits/s >>> video:60883kB audio:5345kB subtitle:0 global headers:0kB muxing overhead 0.335523% >>> [libx264 @ 0x7ffb41809a00] frame I:62 Avg QP:15.59 size: 76674 >>> [libx264 @ 0x7ffb41809a00] frame P:1804 Avg QP:18.77 size: 17581 >>> [libx264 @ 0x7ffb41809a00] frame B:6334 Avg QP:22.65 size: 4085 >>> [libx264 @ 0x7ffb41809a00] consecutive B-frames: 1.4% 2.0% 7.1% 36.5% 13.2% 30.1% 3.1% 1.8% 4.8% >>> [libx264 @ 0x7ffb41809a00] mb I I16..4: 13.1% 68.8% 18.1% >>> [libx264 @ 0x7ffb41809a00] mb P I16..4: 1.3% 5.3% 0.7% P16..4: 42.2% 12.6% 12.0% 0.3% 0.1% skip:25.6% >>> [libx264 @ 0x7ffb41809a00] mb B I16..4: 0.0% 0.4% 0.1% B16..8: 34.7% 4.1% 0.9% direct: 1.9% skip:57.9% L0:44.1% L1:50.0% BI: 5.9% >>> [libx264 @ 0x7ffb41809a00] 8x8 transform intra:72.3% inter:71.1% >>> [libx264 @ 0x7ffb41809a00] direct mvs spatial:98.8% temporal:1.2% >>> [libx264 @ 0x7ffb41809a00] coded y,uvDC,uvAC intra: 72.7% 57.0% 23.5% inter: 8.6% 6.4% 0.3% >>> [libx264 @ 0x7ffb41809a00] i16 v,h,dc,p: 30% 16% 6% 48% >>> [libx264 @ 0x7ffb41809a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 6% 9% 12% 13% 12% 13% 12% >>> [libx264 @ 0x7ffb41809a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 8% 2% 10% 15% 14% 13% 11% 11% >>> [libx264 @ 0x7ffb41809a00] i8c dc,h,v,p: 26% 34% 22% 17% >>> [libx264 @ 0x7ffb41809a00] Weighted P-Frames: Y:5.5% UV:3.8% >>> [libx264 @ 0x7ffb41809a00] ref P L0: 50.0% 10.9% 14.2% 4.9% 4.1% 3.3% 2.8% 1.4% 1.3% 1.2% 1.1% 1.0% 1.0% 1.0% 1.0% 0.7% >>> [libx264 @ 0x7ffb41809a00] ref B L0: 79.7% 8.0% 4.0% 1.7% 1.4% 1.2% 1.0% 0.5% 0.5% 0.4% 0.4% 0.4% 0.4% 0.3% 0.2% >>> [libx264 @ 0x7ffb41809a00] ref B L1: 93.3% 6.7% >>> [libx264 @ 0x7ffb41809a00] kb/s:1458.30 >>> >>> >>> _______________________________________________ >>> 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 cehoyos at ag.or.at Tue Dec 17 22:21:37 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 21:21:37 +0000 (UTC) Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> Message-ID: Dave Rice dericed.com> writes: > ffmpeg -f lavfi -i testsrc -pix_fmt yuv422p10le > -c:v libopenjpeg -f nut - | ffplay - >From a quick look this is missing -vcodec libopenjpeg (or --disable-decoder=jpeg2000). Sorry if this is not completely clear: The native jpeg2000 decoder is (very) highly experimental, it is not meant for real-world use cases, particularly not for testing lossless compression. Carl Eugen From lou at lrcd.com Tue Dec 17 22:40:02 2013 From: lou at lrcd.com (Lou) Date: Tue, 17 Dec 2013 12:40:02 -0900 Subject: [FFmpeg-user] wrong number of ref frames In-Reply-To: <58655D24-242C-4F84-AD4C-5880E3C10EBC@gmail.com> References: <58655D24-242C-4F84-AD4C-5880E3C10EBC@gmail.com> Message-ID: <20131217124002.16a212a0@lrcd.com> On Tue, 17 Dec 2013 10:37:44 -0800 Elliott Balsley wrote: > I used ffmpeg to encode a video with libx264, using High Profile @ > Level 4.1. So the reference frames should be 9. But it?s actually > using 16. Can anyone figure out why? I believe, contrary to x264 cli, that -level only sets the flag and not the number of refs. I may be wrong and I'm feeling too lazy to check. From lou at lrcd.com Tue Dec 17 22:53:28 2013 From: lou at lrcd.com (Lou) Date: Tue, 17 Dec 2013 12:53:28 -0900 Subject: [FFmpeg-user] Good Tutorial on Video formats? In-Reply-To: References: Message-ID: <20131217125328.1c2e779d@lrcd.com> On Tue, 17 Dec 2013 12:28:39 -0430 Gustavo J Mata wrote: > Does anybody know a good introduction to video encoders, containers, frame > rates, bit rates, compression schemes, and such? The FFmpeg Wiki has some articles targeted for the new user: http://trac.ffmpeg.org/wiki/ "The H.264 Advanced Video Compression Standard" (2nd edition) may be of interest. These answers on superuser might help: http://superuser.com/a/300997/110524 http://superuser.com/a/347434/110524 Of course if you have any specific questions you can ask them on this mailing list. From ffmpeg at csmiller.demon.co.uk Tue Dec 17 23:15:46 2013 From: ffmpeg at csmiller.demon.co.uk (Colin S. Miller) Date: Tue, 17 Dec 2013 22:15:46 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <3168a01cfb9d499980de2bfd985ecb58@BL2PR03MB177.namprd03.prod.outlook.com> References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> <52AFF5A1.6060600@gmail.com> <4ea54165c65d4b0fa7f810bc5223bed4@BL2PR03MB177.namprd03.prod.outlook.com> <52B04C2A.2020903@gmail.com> <3168a01cfb9d499980de2bfd985ecb58@BL2PR03MB177.namprd03.prod.outlook.com> Message-ID: <52B0CD12.6010301@csmiller.demon.co.uk> On 17/12/13 15:37, Harninder Rai wrote: > Hello Anshul, > > I am using kernel 3.8, that should support changing stack limit? > Is there any kernel config option or something which I should turn on? > > > Regards > Harry++ > Hi Harry, On x86 Linux, under the bash shell, then using ulimit -s nnn will change the maximum stack size, for any programs run from that shell. You could try increasing the limit and run ffmpeg again. Running ulimit -s will display the current limit. HTH, Colin S. Miller From nickrobbins at yahoo.com Tue Dec 17 23:30:51 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Tue, 17 Dec 2013 14:30:51 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: <1386871326.94343.YahooMailNeo@web160804.mail.bf1.yahoo.com> References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> <1386871326.94343.YahooMailNeo@web160804.mail.bf1.yahoo.com> Message-ID: <1387319451.27366.YahooMailNeo@web160803.mail.bf1.yahoo.com> > On Thursday, December 12, 2013 1:02 PM, Nicholas Robbins wrote: > >> On Thursday, December 12, 2013 11:25 AM, L. Lee > wrote: > >> > On 12/9/13, 8:44 PM, "Nicholas Robbins" > >> wrote: >> >>> The 'decimate' filter after fieldmatch would take care of the > frame >> rate >>> coversion, but it just throws out the extra frame, so it wouldn't > change >>> the fact that fieldmatch was labeling frames as interlaced, but yadif >>> wasn't deinterlacing them. >> >> >> That hasn?t been my experience at all. The frame rate of the output may be >> the same, but unless the filter chain and all other options are the same, >> the encoding results might be entirely different. >> >> Laine Lee > > I'm not sugesting that it would be identical, but it seems that the problem > is between fieldmatch and yadif so tacking ,decimate onto the end would not > change if yadif caught the frames. I tested and the I get the "still > interlaced" frames at the same places. > > Frame #8158 at 272.205 is still interlaced time=00:04:31.96 > bitrate=2607.8kbits/s??? > [Parsed_fieldmatch_1 @ 0x306d9d4f20] Frame #8159 at 272.239 is still interlaced > [Parsed_fieldmatch_1 @ 0x306d9d4f20] Frame #8160 at 272.272 is still interlaced > > Furthermore, if decimate does its job right the frame rate is already 24000/1001 > since it was 30000/1001 and decimate drops every fifth frame. I checked and the > decimated version has a frame rate of 23.97. So I don't thinking adding the > fps filter at the end should change things. Also, I just checked, and it > doesn't. Same output and error. > > -Nick So unless someone has some other option or advice, I think I will just fps=fps=30000/1001,fieldmatch,decimate,yadif (which will yadif everything.) should get rid of the combing, but it will blurr everything a bit too. U -Nick From pb at das-werkstatt.com Tue Dec 17 23:44:56 2013 From: pb at das-werkstatt.com (Peter B.) Date: Tue, 17 Dec 2013 23:44:56 +0100 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? In-Reply-To: References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> Message-ID: <52B0D3E8.2020209@das-werkstatt.com> On 12/17/2013 10:21 PM, Carl Eugen Hoyos wrote: > Dave Rice dericed.com> writes: > >> ffmpeg -f lavfi -i testsrc -pix_fmt yuv422p10le >> -c:v libopenjpeg -f nut - | ffplay - > >From a quick look this is missing -vcodec libopenjpeg > (or --disable-decoder=jpeg2000). > Sorry if this is not completely clear: > The native jpeg2000 decoder is (very) highly experimental, > it is not meant for real-world use cases, particularly > not for testing lossless compression. missing "-vcodec": Dave and I used the new syntax "-v:c". Pb From pb at das-werkstatt.com Tue Dec 17 23:45:50 2013 From: pb at das-werkstatt.com (Peter B.) Date: Tue, 17 Dec 2013 23:45:50 +0100 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? In-Reply-To: <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> Message-ID: <52B0D41E.5020606@das-werkstatt.com> On 12/17/2013 06:50 PM, Dave Rice wrote: > I am having similar issues. For instance encode to yuv422p10le jpeg2000 and pipe to ffplay shows chroma problems. I'm running git-master, compiled a few minutes ago with libopenjpeg. Here's a sample command to show the issue in yuv422p10le. yuv422p and yuv420p look similarly odd. Same here. I've verified Dave's commandline with the video I've used for my tests (http://media.xiph.org/video/derf/y4m/football_422_ntsc.y4m): The chroma seems distorted and stretched. Git HEAD built a few minutes ago with libopenjpeg-dev from the main Ubuntu 12.04.1 repositories (1.3+dfsg-4+squeeze2build0.12.04.1). I've ran Dave's test command with "yuv422p" and "mandelbrot": ------------------------------------------------------------------ $ ffmpeg -f lavfi -i mandelbrot -pix_fmt yuv422p -c:v libopenjpeg -f nut - | ffplay - ------------------------------------------------------------------ ffplay version N-59183-g3e62654ffmpeg version N-59183-g3e62654 Copyright (c) 2000-2013 the FFmpeg developers Copyright (c) 2003-2013 the FFmpeg developers built on Dec 17 2013 23:09:40 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) built on Dec 17 2013 23:09:40 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger --enable-libvpx --enable-libvorbis --enable-libx264 --enable-libfaac configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger --enable-libvpx --enable-libvorbis --enable-libx264 --enable-libfaac libavutil 53. 0.100 / 53. 0.100 libavutil 53. 0.100 / 53. 0.100 libavcodec 55. 45.102 / 55. 45.102 libavcodec 55. 45.102 / 55. 45.102 libavformat 55. 22.100 / 55. 22.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libavfilter 4. 0.100 / 4. 0.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libswscale 2. 5.101 / 2. 5.101 libpostproc 52. 3.100 / 52. 3.100 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, lavfi, from 'mandelbrot':0KB vq= 0KB sq= 0B f=0/0 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGBA / 0x41424752), rgba, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc Output #0, nut, to 'pipe:': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: jpeg2000 (libopenjpeg) (mjp2 / 0x32706A6D), yuv422p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 51200 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libopenjpeg) Press [q] to stop, [?] for help Input #0, nut, from 'pipe:':aq= 0KB vq= 0KB sq= 0B f=0/0 6759.5kbits/s Metadata: encoder : Lavf55.22.100 Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: jpeg2000 (JPEG 2000 codestream restriction 0) (mjp2 / 0x32706A6D), yuv422p, 640x480, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 51200 tbn, 51200 tbc 9.52 M-V: 4.940 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 5814.6kbits/s From cehoyos at ag.or.at Tue Dec 17 23:50:28 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 17 Dec 2013 22:50:28 +0000 (UTC) Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> <52B0D41E.5020606@das-werkstatt.com> Message-ID: Peter B. das-werkstatt.com> writes: > $ ffmpeg -f lavfi -i mandelbrot -pix_fmt yuv422p > -c:v libopenjpeg -f nut - | ffplay - As said, this needs --disable-decoder=jpeg2000 or -vcodec libopenjpeg. If there is anything unclear in my last mail (except me preferring the old syntax), please tell me! Carl Eugen From gjmata at gmail.com Wed Dec 18 00:23:52 2013 From: gjmata at gmail.com (Gustavo J Mata) Date: Tue, 17 Dec 2013 18:53:52 -0430 Subject: [FFmpeg-user] Good Tutorial on Video formats? In-Reply-To: <20131217125328.1c2e779d@lrcd.com> References: <20131217125328.1c2e779d@lrcd.com> Message-ID: Thanks Lou, This helps a lot! On Tue, Dec 17, 2013 at 5:23 PM, Lou wrote: > On Tue, 17 Dec 2013 12:28:39 -0430 > Gustavo J Mata wrote: > > > Does anybody know a good introduction to video encoders, containers, > frame > > rates, bit rates, compression schemes, and such? > > The FFmpeg Wiki has some articles targeted for the new user: > > http://trac.ffmpeg.org/wiki/ > > "The H.264 Advanced Video Compression Standard" (2nd edition) may be of > interest. > > These answers on superuser might help: > http://superuser.com/a/300997/110524 > http://superuser.com/a/347434/110524 > > Of course if you have any specific questions you can ask them on this > mailing list. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- ?La ignorancia, aliada con el poder, es el m?s feroz enemigo que puede tener la justicia.? (James Baldwin) Visite mi Blog en Apartaderos From pb at das-werkstatt.com Wed Dec 18 00:37:10 2013 From: pb at das-werkstatt.com (Peter B.) Date: Wed, 18 Dec 2013 00:37:10 +0100 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? In-Reply-To: References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> <52B0D41E.5020606@das-werkstatt.com> Message-ID: <52B0E026.5090301@das-werkstatt.com> On 12/17/2013 11:50 PM, Carl Eugen Hoyos wrote: > Peter B. das-werkstatt.com> writes: > >> $ ffmpeg -f lavfi -i mandelbrot -pix_fmt yuv422p >> -c:v libopenjpeg -f nut - | ffplay - > As said, this needs --disable-decoder=jpeg2000 or > -vcodec libopenjpeg. > > If there is anything unclear in my last mail (except > me preferring the old syntax), please tell me! For me it was indeed unclear. Sorry :) You say it needs "--disable-decoder=jpeg2000" *OR* "-vcodec libopenjpeg". So I assumed that if I should use "-vcodec libopenjpeg" as encoding parameter, which I thought is equivalent to "-vcodec libopenjpeg". However, I now added "-vcodec libopenjpeg" to the decoding side of ffplay: ------------------------------------------------------------------ $ ffmpeg -f lavfi -i testsrc -pix_fmt yuv422p -vcodec libopenjpeg -qscale:v 0 -f nut - | ffplay -vcodec libopenjpeg - ------------------------------------------------------------------ Then I figured that "--disable-decoder=jpeg2000" was a configure flag. So I recompiled ffmpeg with this switch. With that build I don't need to supply "-vcodec libopenjpeg" to ffplay and Dave's commandline works correctly. Both options indeed display the video correctly :) Thanks, and sorry for the misunderstanding, Pb From dashing.meng at gmail.com Wed Dec 18 01:57:22 2013 From: dashing.meng at gmail.com (littlebat) Date: Wed, 18 Dec 2013 08:57:22 +0800 Subject: [FFmpeg-user] Good Tutorial on Video formats? In-Reply-To: References: Message-ID: <20131218085722.298188a623ed7bac54c2a7d7@gmail.com> On Tue, 17 Dec 2013 12:28:39 -0430 Gustavo J Mata wrote: > For a newbie to video, navigating through FFmpeg's documentation is > made difficult by a lack of understanding of what the underlying > concepts are and how they are connected. > > Does anybody know a good introduction to video encoders, containers, > frame rates, bit rates, compression schemes, and such? Here are some simple tutorial about your question: Video Converting Configure http://www.learndiary.com/mobilemate/video_configure From syazrinasheeotzz at yahoo.com Wed Dec 18 04:10:49 2013 From: syazrinasheeotzz at yahoo.com (N. Syazrina M.A.S) Date: Tue, 17 Dec 2013 19:10:49 -0800 (PST) Subject: [FFmpeg-user] Algorithm/Source Code for Changing the Resolution & Frame Rate using FFMpeg. Message-ID: <1387336249.2974.YahooMailNeo@web125004.mail.ne1.yahoo.com> ?Hi, How can I get the algorithm used/the source code for changing the resolution & frame rate of a video using the FFMpeg tool. I would like to know the method used for the up/downsampling of the spatial & temporal resolution of the video. Thank you. Sincerely, N. Syazrina M.A.S Graduate Research Assistant CMSSP Lab AR3010 / NTT Research Lab?AR4023 Faculty of Engineering. Multimedia University, 63100 Cyberjaya, Selangor. From swapnil.singh1520 at gmail.com Wed Dec 18 05:47:42 2013 From: swapnil.singh1520 at gmail.com (Swapnil Singh) Date: Wed, 18 Dec 2013 10:17:42 +0530 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: References: Message-ID: Try the basic configuration with the essential libs.It give a hint whether problem with compatibility. On Dec 12, 2013 5:28 PM, "Harninder Rai" wrote: > Hello All, > > I am facing "Illegal instruction " error when I execute ffmpeg on powerpc > I have configured ffmpeg with the following options > > ./configure --arch=ppc --enable-cross-compile > --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc > --target-os=linux --disable-altivec > > [root at P1024RDB shm]# ./ffmpeg > Illegal instruction > > [root at P1024RDB shm]# cat /proc/cpuinfo > processor : 0 > cpu : e500v2 > clock : 799.999992MHz > revision : 5.1 (pvr 8021 2051) > bogomips : 100.00 > > processor : 1 > cpu : e500v2 > clock : 799.999992MHz > revision : 5.1 (pvr 8021 2051) > bogomips : 100.00 > > total bogomips : 200.00 > timebase : 50000000 > platform : P1020RDB-PC > model : fsl,P1020RDB-PC > Memory : 1024 MB > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From swapnil.singh1520 at gmail.com Wed Dec 18 05:49:45 2013 From: swapnil.singh1520 at gmail.com (Swapnil Singh) Date: Wed, 18 Dec 2013 10:19:45 +0530 Subject: [FFmpeg-user] Good Tutorial on Video formats? In-Reply-To: <20131217125328.1c2e779d@lrcd.com> References: <20131217125328.1c2e779d@lrcd.com> Message-ID: Try the pearson publications on video standards.It consists of mpeg2 mpeg4 h263 and h264 On Dec 18, 2013 3:23 AM, "Lou" wrote: > On Tue, 17 Dec 2013 12:28:39 -0430 > Gustavo J Mata wrote: > > > Does anybody know a good introduction to video encoders, containers, > frame > > rates, bit rates, compression schemes, and such? > > The FFmpeg Wiki has some articles targeted for the new user: > > http://trac.ffmpeg.org/wiki/ > > "The H.264 Advanced Video Compression Standard" (2nd edition) may be of > interest. > > These answers on superuser might help: > http://superuser.com/a/300997/110524 > http://superuser.com/a/347434/110524 > > Of course if you have any specific questions you can ask them on this > mailing list. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From harninder.rai at freescale.com Wed Dec 18 08:15:44 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Wed, 18 Dec 2013 07:15:44 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> <52AFF5A1.6060600@gmail.com> <4ea54165c65d4b0fa7f810bc5223bed4@BL2PR03MB177.namprd03.prod.outlook.com> <52B04C2A.2020903@gmail.com> Message-ID: <30314b04d175407a8a96c3d7fadf7282@BY2PR03MB192.namprd03.prod.outlook.com> Hello Anshul, Further on this, I tried changing the stack size for user-mode programs (set it to unlimited) even then the same issue occurs Any further pointers? Regards Harry++ > -----Original Message----- > From: Rai Harninder-B01044 > Sent: Tuesday, December 17, 2013 9:08 PM > To: ffmpeg-user at ffmpeg.org > Cc: Burmi Naveen-B16502 > Subject: RE: [FFmpeg-user] Illegal instruction while executing ffmpeg on > powerpc > > > Hi Harry > > > > I think while executing, you don't have privilege to set the stack > > limit, if you are already trying with root user, then please look > > whether your linux support the changing the stack limit, I remember > > some older version of Linux were not having this option > > > > Hello Anshul, > > I am using kernel 3.8, that should support changing stack limit? > Is there any kernel config option or something which I should turn on? > > > Regards > Harry++ From harninder.rai at freescale.com Wed Dec 18 08:18:04 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Wed, 18 Dec 2013 07:18:04 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: References: Message-ID: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> > Try the basic configuration with the essential libs.It give a hint > whether problem with compatibility. > On Dec 12, 2013 5:28 PM, "Harninder Rai" > wrote: > Hello Swapnil, Thanks for the reply I am not too versed with the essential libs or sub-programs inside the huge ffmpeg package Can you please name a few which are really essential so that I can try disabling the rest? Regards Harry++ From anshul.ffmpeg at gmail.com Wed Dec 18 08:26:01 2013 From: anshul.ffmpeg at gmail.com (anshul) Date: Wed, 18 Dec 2013 12:56:01 +0530 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <30314b04d175407a8a96c3d7fadf7282@BY2PR03MB192.namprd03.prod.outlook.com> References: <9c30c96c20f846249c2be2d701b9db6e@BL2PR03MB177.namprd03.prod.outlook.com> <52AFE438.6090009@gmail.com> <52AFF5A1.6060600@gmail.com> <4ea54165c65d4b0fa7f810bc5223bed4@BL2PR03MB177.namprd03.prod.outlook.com> <52B04C2A.2020903@gmail.com> <30314b04d175407a8a96c3d7fadf7282@BY2PR03MB192.namprd03.prod.outlook.com> Message-ID: <52B14E09.40507@gmail.com> On 12/18/2013 12:45 PM, Harninder Rai wrote: > Hello Anshul, > > Further on this, I tried changing the stack size for user-mode programs (set it to unlimited) even then the same issue occurs > Any further pointers? > > > Regards > Harry++ > >> -----Original Message----- >> From: Rai Harninder-B01044 >> Sent: Tuesday, December 17, 2013 9:08 PM >> To: ffmpeg-user at ffmpeg.org >> Cc: Burmi Naveen-B16502 >> Subject: RE: [FFmpeg-user] Illegal instruction while executing ffmpeg on >> powerpc >> >>> Hi Harry >>> >>> I think while executing, you don't have privilege to set the stack >>> limit, if you are already trying with root user, then please look >>> whether your linux support the changing the stack limit, I remember >>> some older version of Linux were not having this option >>> >> Hello Anshul, >> >> I am using kernel 3.8, that should support changing stack limit? >> Is there any kernel config option or something which I should turn on? >> >> >> Regards >> Harry++ > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi Please dont top post over here, considered rude Please provide gdb output, seehttp://ffmpeg.org/bugreports.html Carl Eugen You could try same problem in developer list, may be its problem(bug) in ffmpeg make sure that you are using git version, and check for the fate status for ppc, from there you can get what are the configuration people using on ppc with ffmpeg Thanks Anshul From anshul.ffmpeg at gmail.com Wed Dec 18 08:43:11 2013 From: anshul.ffmpeg at gmail.com (anshul) Date: Wed, 18 Dec 2013 13:13:11 +0530 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> References: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> Message-ID: <52B1520F.3080507@gmail.com> On 12/18/2013 12:48 PM, Harninder Rai wrote: >> Try the basic configuration with the essential libs.It give a hint >> whether problem with compatibility. >> On Dec 12, 2013 5:28 PM, "Harninder Rai" >> wrote: >> > Hello Swapnil, > > Thanks for the reply > I am not too versed with the essential libs or sub-programs inside the huge ffmpeg package > Can you please name a few which are really essential so that I can try disabling the rest? > > > Regards > Harry++ > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi as stated by Carl You should report bug with gdb output and try same problem with ffmpeg developer list It look bug in ffmpeg to me. as stated by swapnil you can try all the working configuration from fate for ppc Please don't top post over here, considered rude Thanks Anshul From cehoyos at ag.or.at Wed Dec 18 12:41:53 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 18 Dec 2013 11:41:53 +0000 (UTC) Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc References: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> <52B1520F.3080507@gmail.com> Message-ID: anshul gmail.com> writes: > as stated by Carl > You should report bug with gdb output Yes. > and try same problem with ffmpeg developer list No! Please read http://ffmpeg.org/contact.html > It look bug in ffmpeg to me. Bug reports are not welcome on the developer mailing list. Carl Eugen From michaelni at gmx.at Wed Dec 18 13:15:48 2013 From: michaelni at gmx.at (Michael Niedermayer) Date: Wed, 18 Dec 2013 13:15:48 +0100 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: References: Message-ID: <20131218121548.GF8897@nb4> On Thu, Dec 12, 2013 at 11:58:29AM +0000, Harninder Rai wrote: > Hello All, > > I am facing "Illegal instruction " error when I execute ffmpeg on powerpc > I have configured ffmpeg with the following options > > ./configure --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --target-os=linux --disable-altivec this might be missing a --cross-prefix, something like --cross-prefix=/usr/powerpc-linux-gnu/bin/ and --cpu=e500v2 > > [root at P1024RDB shm]# ./ffmpeg > Illegal instruction if above doesnt help gdb disassembly (and instruction pointer) would be quite helpful here > > [root at P1024RDB shm]# cat /proc/cpuinfo > processor : 0 > cpu : e500v2 > clock : 799.999992MHz > revision : 5.1 (pvr 8021 2051) > bogomips : 100.00 > > processor : 1 > cpu : e500v2 > clock : 799.999992MHz > revision : 5.1 (pvr 8021 2051) > bogomips : 100.00 > > total bogomips : 200.00 > timebase : 50000000 > platform : P1020RDB-PC > model : fsl,P1020RDB-PC > Memory : 1024 MB > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Avoid a single point of failure, be that a person or equipment. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From blacktrash at gmx.net Wed Dec 18 13:17:39 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 18 Dec 2013 12:17:39 +0000 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? In-Reply-To: <52B0D3E8.2020209@das-werkstatt.com> References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> <52B0D3E8.2020209@das-werkstatt.com> Message-ID: <20131218121739.GH29103@krille.blacktrash.org> * Peter B. on Tuesday, December 17, 2013 at 23:44:56 +0100 > missing "-vcodec": > Dave and I used the new syntax "-v:c". -c:v -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From cehoyos at ag.or.at Wed Dec 18 16:23:22 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 18 Dec 2013 15:23:22 +0000 (UTC) Subject: [FFmpeg-user] different aspect ration in ONE file References: <4F7B5C261C066E45B5F613642C296C6914A69A60@MAIL01.sc.smartcast.de> Message-ID: Simon D?bereiner - SmartCast smartcast.de> writes: > I have lots of *.ts files to convert to mp4. No Problem > so far, but it's a recording from a television channel > with different aspect ratio. So for example the movie is > 4/3 while the adverts are 16/9. > > Here comes the problem: all ts files already have > squished the parts with 16/9 to 4/3 (the recording > doesn't care, it just records one full hour). > > Is there any possibility to fix the padding to have > 4/3 as 4/3 and 16/9 as 16/9 although it's in ONE file? I can now reproduce the problem: It works here for avi (at least with some players) in the sense as it changes aspect just like the original transport stream does but for mov the global aspect "wins" and the filter chain - afaict - does not allow to switch parameters frame-wise (which would be necessary for changing pad afaict). I would like to wait for a comment from one of the filter experts but this will probably be an enhancement request. (without eta...) Thank you for the report, Carl Eugen From seanm at goldeneraproductions.org Wed Dec 18 09:57:21 2013 From: seanm at goldeneraproductions.org (Sean) Date: Wed, 18 Dec 2013 00:57:21 -0800 Subject: [FFmpeg-user] Splitting output from -filter_complex and losing audio In-Reply-To: <52B1520F.3080507@gmail.com> References: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> <52B1520F.3080507@gmail.com> Message-ID: <00fd01cefbcf$29bc4750$7d34d5f0$@org> I need to set up an ffmpeg command string that will allow me to take a single input file (contains video and audio) and output it to 2 different mp4 files at different resolutions and bitrates. There is a filter process that needs to take place right before the encode process to deinterlace and crop the edges of the video. I am using the -filter_complex option so that the process only has to deinterlace and crop once and feed that out to the 2 encoders through the split filter. This all works great except that the [a] and [b] split outputs only contain video and no audio coming out of -filter_complex. How can I get the audio from the input file mapped into [a] and [b] or to feed into each of the encoders? ffmpeg.exe -i MyVideo.mov -filter_complex "[0] yadif,crop=in_w-2*58:in_h-2*32,split=2 [a][b]" -map "[a]" -s 640x360 -pix_fmt yuv420p -vcodec libx264 -preset medium -crf 18 -maxrate 700k -bufsize 2100k -movflags +faststart -acodec libvo_aacenc -b:a 128k MyVideo_640.mp4 -map "[b]" -s 576x324 -pix_fmt yuv420p -vcodec libx264 -preset medium -crf 18 -maxrate 600k -bufsize 1800k -movflags +faststart -acodec libvo_aacenc -b:a 96k MyVideo_576.mp4 ffmpeg version N-54960-gf3f4e13 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 26 2013 19:21:01 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r -- enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --ena ble-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libr tmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo- amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 40.100 / 52. 40.100 libavcodec 55. 19.100 / 55. 19.100 libavformat 55. 12.102 / 55. 12.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 81.103 / 3. 81.103 libswscale 2. 4.100 / 2. 4.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.2 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MyVideo.mov ': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-04-18 17:55:58 timecode : 00:59:58;00 Duration: 00:00:55.96, start: 0.000000, bitrate: 146958 kb/s Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080, 145344 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 29970 tbc Metadata: creation_time : 2013-04-18 17:55:58 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-04-18 17:55:58 handler_name : Apple Alias Data Handler timecode : 00:59:58;00 Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2013-04-18 17:55:58 handler_name : Apple Alias Data Handler Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (MyVideo_640.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Codec AVOption b (set bitrate (in bits/s)) specified for output file #1 (MyVideo_576.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [libx264 @ 00000000047b4320] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle [libx264 @ 00000000047b4320] profile High, level 3.0 [libx264 @ 00000000047b4320] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min= 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=700 vbv_bufsize=210 0 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00 [libx264 @ 000000000257a740] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle [libx264 @ 000000000257a740] profile High, level 3.0 [libx264 @ 000000000257a740] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min= 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=600 vbv_bufsize=180 0 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'MyVideo_640.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:59:58;00 encoder : Lavf55.12.102 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x360, q=-1--1, max. 700 kb/s, 11988 tbn, 29.97 tbc Output #1, mp4, to 'MyVideo_576.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:59:58;00 encoder : Lavf55.12.102 Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 576x324, q=-1--1, max. 600 kb/s, 11988 tbn, 29.97 tbc Stream mapping: Stream #0:0 (dnxhd) -> yadif split:output0 -> Stream #0:0 (libx264) split:output1 -> Stream #1:0 (libx264) Press [q] to stop, [?] for help [swscaler @ 00000000047daf60] Warning: data is not aligned! This can lead to a speedloss [mp4 @ 0000000002571840] Starting second pass: moving header on top of the fileate=N/A [mp4 @ 0000000002579f60] Starting second pass: moving header on top of the file frame= 1678 fps= 33 q=-1.0 Lq=-1.0 size= 4520kB time=00:00:55.92 bitrate= 662.1kbits/s video:8344kB audio:0kB subtitle:0 global headers:0kB muxing overhead -45.830907% [libx264 @ 00000000047b4320] frame I:19 Avg QP:18.24 size: 29670 [libx264 @ 00000000047b4320] frame P:572 Avg QP:21.25 size: 5244 [libx264 @ 00000000047b4320] frame B:1087 Avg QP:24.03 size: 960 [libx264 @ 00000000047b4320] consecutive B-frames: 5.4% 16.3% 24.9% 53.4% [libx264 @ 00000000047b4320] mb I I16..4: 10.1% 60.0% 29.9% [libx264 @ 00000000047b4320] mb P I16..4: 2.2% 3.4% 0.5% P16..4: 43.1% 19.4% 11.0% 0.0% 0.0% skip:20.3% [libx264 @ 00000000047b4320] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 39.3% 2.9% 0.6% direct: 1.1% skip:56.0% L0:39.9% L1:54.6% BI: 5.5 % [libx264 @ 00000000047b4320] 8x8 transform intra:57.2% inter:76.9% [libx264 @ 00000000047b4320] coded y,uvDC,uvAC intra: 53.3% 75.0% 45.4% inter: 14.1% 19.2% 1.6% [libx264 @ 00000000047b4320] i16 v,h,dc,p: 35% 23% 5% 36% [libx264 @ 00000000047b4320] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 19% 18% 4% 6% 7% 7% 6% 6% [libx264 @ 00000000047b4320] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 15% 10% 5% 8% 9% 8% 7% 6% [libx264 @ 00000000047b4320] i8c dc,h,v,p: 40% 28% 19% 12% [libx264 @ 00000000047b4320] Weighted P-Frames: Y:19.2% UV:13.6% [libx264 @ 00000000047b4320] ref P L0: 58.6% 17.1% 16.9% 6.7% 0.6% [libx264 @ 00000000047b4320] ref B L0: 87.2% 10.6% 2.2% [libx264 @ 00000000047b4320] ref B L1: 93.3% 6.7% [libx264 @ 00000000047b4320] kb/s:658.29 [libx264 @ 000000000257a740] frame I:19 Avg QP:18.12 size: 25911 [libx264 @ 000000000257a740] frame P:569 Avg QP:21.20 size: 4532 [libx264 @ 000000000257a740] frame B:1090 Avg QP:24.07 size: 793 [libx264 @ 000000000257a740] consecutive B-frames: 4.5% 17.3% 28.4% 49.8% [libx264 @ 000000000257a740] mb I I16..4: 9.5% 57.5% 33.0% [libx264 @ 000000000257a740] mb P I16..4: 2.1% 3.2% 1.0% P16..4: 42.5% 20.0% 11.3% 0.0% 0.0% skip:20.0% [libx264 @ 000000000257a740] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 39.1% 3.0% 0.5% direct: 1.1% skip:56.2% L0:39.8% L1:54.0% BI: 6.2 % [libx264 @ 000000000257a740] 8x8 transform intra:53.4% inter:74.8% [libx264 @ 000000000257a740] coded y,uvDC,uvAC intra: 53.8% 76.3% 47.1% inter: 14.0% 18.7% 1.8% [libx264 @ 000000000257a740] i16 v,h,dc,p: 40% 20% 5% 34% [libx264 @ 000000000257a740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 18% 17% 4% 6% 7% 7% 6% 6% [libx264 @ 000000000257a740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 13% 9% 5% 7% 8% 7% 6% 5% [libx264 @ 000000000257a740] i8c dc,h,v,p: 39% 26% 23% 12% [libx264 @ 000000000257a740] Weighted P-Frames: Y:18.3% UV:13.0% [libx264 @ 000000000257a740] ref P L0: 58.7% 17.6% 16.2% 6.9% 0.6% [libx264 @ 000000000257a740] ref B L0: 86.8% 10.9% 2.3% [libx264 @ 000000000257a740] ref B L1: 92.7% 7.3% [libx264 @ 000000000257a740] kb/s:562.36 Tku. -Sean From stefasab at gmail.com Wed Dec 18 19:19:42 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 18 Dec 2013 19:19:42 +0100 Subject: [FFmpeg-user] Problem with ffmpeg psnr calculate filter when image file applied In-Reply-To: References: Message-ID: <20131218181942.GL3396@barisone> On date Tuesday 2013-12-17 22:35:55 +0800, ?? wrote: > Dear all, > I would like to calculate the PSNR of two images or two videos. I found > that the new psnr filter worked well for video files which have at less two > frames, but not for one frame, or image files. > > ffmpeg version is 2.0.2 > generate the files to be compared > two frames video: ./ffmpeg -i test.mkv -vframes 2 -vcodec libx264 -an > frame2.mkv > one frames video: ./ffmpeg -i test.mkv -vframes 1 -vcodec libx264 -an > frame1.mkv > > this one does not work: > ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v > "movie=frame1.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f > rawvideo -y /dev/null > > this one works: > ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v > "movie=frame2.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f > rawvideo -y /dev/null > > This situation can also be reproduced using image files. > I looked into the vf_psnr.c. The do_psnr is not called. > > I think this might be a bug for filter process? any suggestions to fix this? Are you able to reproduce the problem with latest git (2.0.2 is a bit old and we had some fixes which may be relevant). Also you could file a bug report. From stefasab at gmail.com Wed Dec 18 19:20:54 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 18 Dec 2013 19:20:54 +0100 Subject: [FFmpeg-user] Algorithm/Source Code for Changing the Resolution & Frame Rate using FFMpeg. In-Reply-To: <1387336249.2974.YahooMailNeo@web125004.mail.ne1.yahoo.com> References: <1387336249.2974.YahooMailNeo@web125004.mail.ne1.yahoo.com> Message-ID: <20131218182054.GM3396@barisone> On date Tuesday 2013-12-17 19:10:49 -0800, N. Syazrina M.A.S wrote: > ?Hi, > > How can I get the algorithm used/the source code for changing the > resolution & frame rate of a video using the FFMpeg tool. I would > like to know the method used for the up/downsampling of the spatial > & temporal resolution of the video. Spatial resampling: this is done in the libswscale library. Temporal resampling: we simply drop/duplicate frames, you may have a look at the fps filter in libavfilter. From stefasab at gmail.com Wed Dec 18 19:49:27 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 18 Dec 2013 19:49:27 +0100 Subject: [FFmpeg-user] ffserver HTTP stream playback freeze Message-ID: <20131218184927.GN3396@barisone> Hi, I'm trying to debug this but since it's starting to take much time I wonder if someone already got the same issue, and found a fix for it. Scenario: I'm generating a stream with ffmpeg, which is then sent to ffserver and published as an HTTP resource. Problem: at some point the published stream is interrupted, I usually get decoding errors on the client (probably due to a segmented packet), and the player freezes. If I now restart the player, the stream will be played again until the next freeze. Many instances of player/downloader can be created at the same time, and each one seems to freeze independently from the others. The freezeing time usually is just a few seconds, but the playback duration varies from a few seconds to dozens of seconds. If I use ffplay or vlc the stream usually freezes after few seconds, but playback seems to last much more if I download the stream with wget instead (so it may be somehow related to the TCP/HTTP session between ffplay and ffserver). I tried several combinations, changing output container, video codec, and bitrate, but it doesn't seem to affect the issue. Curiously, I get this problem only when I play the stream from a remote machine. Here are some basic instructions to reproduce the issue: ffserver.conf file: ---------------8<------------------------------------------------ Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 60000 CustomLog - File /tmp/testsrc.ffm FileMaxSize 200K ACL allow 127.0.0.1 ACL allow localhost Feed testsrc.ffm Format flv VideoCodec flv NoAudio Format status ---------------8<------------------------------------------------ To generate the testing stream: ffserver -f ffserver.test.conf & ffmpeg -override_ffserver -re -f lavfi -i testsrc -pix_fmt yuv420p -s vga -codec:v flv -b:v 500k http://localhost:8090/testsrc.ffm -nostats Then on a remote machine: ffplay http://$FFSERVER_IP:8090/testsrc wget http://$FFSERVER_IP:8090/testsrc The same issue can be observed checking the http://$FFSERVER_IP:8090/status.html page, when the strean freezes the transferred bytes count stops. ... Reports of such or similar issues, suggestions or debugging hints are very welcome. From llee040 at sbcglobal.net Wed Dec 18 21:10:39 2013 From: llee040 at sbcglobal.net (L. Lee) Date: Wed, 18 Dec 2013 14:10:39 -0600 Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: <1387319451.27366.YahooMailNeo@web160803.mail.bf1.yahoo.com> References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> <1386871326.94343.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1387319451.27366.YahooMailNeo@web160803.mail.bf1.yahoo.com> Message-ID: On 12/17/13, 4:30 PM, "Nicholas Robbins" wrote: > > >> On Thursday, December 12, 2013 1:02 PM, Nicholas Robbins >> wrote: >> >> On Thursday, December 12, 2013 11:25 AM, L. Lee >> wrote: >> >>> > On 12/9/13, 8:44 PM, "Nicholas Robbins" >> >>> wrote: >>> >>>> The 'decimate' filter after fieldmatch would take care of the >> frame >>> rate >>>> coversion, but it just throws out the extra frame, so it wouldn't >> change >>>> the fact that fieldmatch was labeling frames as interlaced, but yadif >>>> wasn't deinterlacing them. >>> >>> >>> That hasn?t been my experience at all. The frame rate of the output >>>may be >>> the same, but unless the filter chain and all other options are the >>>same, >>> the encoding results might be entirely different. >>> >>> Laine Lee >> >> I'm not sugesting that it would be identical, but it seems that the >>problem >> is between fieldmatch and yadif so tacking ,decimate onto the end would >>not >> change if yadif caught the frames. I tested and the I get the "still >> interlaced" frames at the same places. >> >> Frame #8158 at 272.205 is still interlaced time=00:04:31.96 >> bitrate=2607.8kbits/s >> [Parsed_fieldmatch_1 @ 0x306d9d4f20] Frame #8159 at 272.239 is still >>interlaced >> [Parsed_fieldmatch_1 @ 0x306d9d4f20] Frame #8160 at 272.272 is still >>interlaced >> >> Furthermore, if decimate does its job right the frame rate is already >>24000/1001 >> since it was 30000/1001 and decimate drops every fifth frame. I checked >>and the >> decimated version has a frame rate of 23.97. So I don't thinking adding >>the >> fps filter at the end should change things. Also, I just checked, and >>it >> doesn't. Same output and error. >> >> -Nick > >So unless someone has some other option or advice, I think I will just > >fps=fps=30000/1001,fieldmatch,decimate,yadif (which will yadif >everything.) should get rid of the combing, but it will blurr everything >a bit too. U > >-Nick I would surely like to get a sample. I shouldn?t need more than 20-30 seconds to see what results I?m able to produce. You might be able to email me such an excerpt. I don?t see how any conversion to deinterlaced 30 fps would result in optimal output. Nearly any smooth horizontal panning is like getting slapped in the face 6 times per second. If output is deinterlaced, all 4th and 5th frames are duplicates. If not deinterlaced, those frames are interlaced complements which still take twice as long as a normal frame to play. Thanks. Laine Lee > From seanm at goldeneraproductions.org Wed Dec 18 20:19:02 2013 From: seanm at goldeneraproductions.org (Sean) Date: Wed, 18 Dec 2013 11:19:02 -0800 Subject: [FFmpeg-user] Splitting output from -filter_complex and losing audio References: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> <52B1520F.3080507@gmail.com> Message-ID: <011001cefc26$02aeccd0$080c6670$@org> I need to set up an ffmpeg command string that will allow me to take a single input file (contains video and audio) and output it to 2 different mp4 files at different resolutions and bitrates. There is a filter process that needs to take place right before the encode process to deinterlace and crop the edges of the video. I am using the -filter_complex option so that the process only has to deinterlace and crop once and feed that out to the 2 encoders through the split filter. This all works great except that the [a] and [b] split outputs only contain video and no audio coming out of -filter_complex. How can I get the audio from the input file mapped into [a] and [b] or to feed into each of the encoders? ffmpeg.exe -i MyVideo.mov -filter_complex "[0] yadif,crop=in_w-2*58:in_h-2*32,split=2 [a][b]" -map "[a]" -s 640x360 -pix_fmt yuv420p -vcodec libx264 -preset medium -crf 18 -maxrate 700k -bufsize 2100k -movflags +faststart -acodec libvo_aacenc -b:a 128k MyVideo_640.mp4 -map "[b]" -s 576x324 -pix_fmt yuv420p -vcodec libx264 -preset medium -crf 18 -maxrate 600k -bufsize 1800k -movflags +faststart -acodec libvo_aacenc -b:a 96k MyVideo_576.mp4 ffmpeg version N-54960-gf3f4e13 Copyright (c) 2000-2013 the FFmpeg developers built on Jul 26 2013 19:21:01 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r -- enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --ena ble-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libr tmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo- amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 40.100 / 52. 40.100 libavcodec 55. 19.100 / 55. 19.100 libavformat 55. 12.102 / 55. 12.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 81.103 / 3. 81.103 libswscale 2. 4.100 / 2. 4.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.2 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MyVideo.mov ': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-04-18 17:55:58 timecode : 00:59:58;00 Duration: 00:00:55.96, start: 0.000000, bitrate: 146958 kb/s Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080, 145344 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 29970 tbc Metadata: creation_time : 2013-04-18 17:55:58 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-04-18 17:55:58 handler_name : Apple Alias Data Handler timecode : 00:59:58;00 Stream #0:2(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2013-04-18 17:55:58 handler_name : Apple Alias Data Handler Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (MyVideo_640.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. Codec AVOption b (set bitrate (in bits/s)) specified for output file #1 (MyVideo_576.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream. [libx264 @ 00000000047b4320] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle [libx264 @ 00000000047b4320] profile High, level 3.0 [libx264 @ 00000000047b4320] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min= 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=700 vbv_bufsize=210 0 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00 [libx264 @ 000000000257a740] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle [libx264 @ 000000000257a740] profile High, level 3.0 [libx264 @ 000000000257a740] 264 - core 135 r2345 f0c1c53 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min= 25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=600 vbv_bufsize=180 0 crf_max=0.0 nal_hrd=none ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'MyVideo_640.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:59:58;00 encoder : Lavf55.12.102 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x360, q=-1--1, max. 700 kb/s, 11988 tbn, 29.97 tbc Output #1, mp4, to 'MyVideo_576.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:59:58;00 encoder : Lavf55.12.102 Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 576x324, q=-1--1, max. 600 kb/s, 11988 tbn, 29.97 tbc Stream mapping: Stream #0:0 (dnxhd) -> yadif split:output0 -> Stream #0:0 (libx264) split:output1 -> Stream #1:0 (libx264) Press [q] to stop, [?] for help [swscaler @ 00000000047daf60] Warning: data is not aligned! This can lead to a speedloss [mp4 @ 0000000002571840] Starting second pass: moving header on top of the fileate=N/A [mp4 @ 0000000002579f60] Starting second pass: moving header on top of the file frame= 1678 fps= 33 q=-1.0 Lq=-1.0 size= 4520kB time=00:00:55.92 bitrate= 662.1kbits/s video:8344kB audio:0kB subtitle:0 global headers:0kB muxing overhead -45.830907% [libx264 @ 00000000047b4320] frame I:19 Avg QP:18.24 size: 29670 [libx264 @ 00000000047b4320] frame P:572 Avg QP:21.25 size: 5244 [libx264 @ 00000000047b4320] frame B:1087 Avg QP:24.03 size: 960 [libx264 @ 00000000047b4320] consecutive B-frames: 5.4% 16.3% 24.9% 53.4% [libx264 @ 00000000047b4320] mb I I16..4: 10.1% 60.0% 29.9% [libx264 @ 00000000047b4320] mb P I16..4: 2.2% 3.4% 0.5% P16..4: 43.1% 19.4% 11.0% 0.0% 0.0% skip:20.3% [libx264 @ 00000000047b4320] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 39.3% 2.9% 0.6% direct: 1.1% skip:56.0% L0:39.9% L1:54.6% BI: 5.5 % [libx264 @ 00000000047b4320] 8x8 transform intra:57.2% inter:76.9% [libx264 @ 00000000047b4320] coded y,uvDC,uvAC intra: 53.3% 75.0% 45.4% inter: 14.1% 19.2% 1.6% [libx264 @ 00000000047b4320] i16 v,h,dc,p: 35% 23% 5% 36% [libx264 @ 00000000047b4320] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 19% 18% 4% 6% 7% 7% 6% 6% [libx264 @ 00000000047b4320] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 15% 10% 5% 8% 9% 8% 7% 6% [libx264 @ 00000000047b4320] i8c dc,h,v,p: 40% 28% 19% 12% [libx264 @ 00000000047b4320] Weighted P-Frames: Y:19.2% UV:13.6% [libx264 @ 00000000047b4320] ref P L0: 58.6% 17.1% 16.9% 6.7% 0.6% [libx264 @ 00000000047b4320] ref B L0: 87.2% 10.6% 2.2% [libx264 @ 00000000047b4320] ref B L1: 93.3% 6.7% [libx264 @ 00000000047b4320] kb/s:658.29 [libx264 @ 000000000257a740] frame I:19 Avg QP:18.12 size: 25911 [libx264 @ 000000000257a740] frame P:569 Avg QP:21.20 size: 4532 [libx264 @ 000000000257a740] frame B:1090 Avg QP:24.07 size: 793 [libx264 @ 000000000257a740] consecutive B-frames: 4.5% 17.3% 28.4% 49.8% [libx264 @ 000000000257a740] mb I I16..4: 9.5% 57.5% 33.0% [libx264 @ 000000000257a740] mb P I16..4: 2.1% 3.2% 1.0% P16..4: 42.5% 20.0% 11.3% 0.0% 0.0% skip:20.0% [libx264 @ 000000000257a740] mb B I16..4: 0.0% 0.1% 0.0% B16..8: 39.1% 3.0% 0.5% direct: 1.1% skip:56.2% L0:39.8% L1:54.0% BI: 6.2 % [libx264 @ 000000000257a740] 8x8 transform intra:53.4% inter:74.8% [libx264 @ 000000000257a740] coded y,uvDC,uvAC intra: 53.8% 76.3% 47.1% inter: 14.0% 18.7% 1.8% [libx264 @ 000000000257a740] i16 v,h,dc,p: 40% 20% 5% 34% [libx264 @ 000000000257a740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 18% 17% 4% 6% 7% 7% 6% 6% [libx264 @ 000000000257a740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 42% 13% 9% 5% 7% 8% 7% 6% 5% [libx264 @ 000000000257a740] i8c dc,h,v,p: 39% 26% 23% 12% [libx264 @ 000000000257a740] Weighted P-Frames: Y:18.3% UV:13.0% [libx264 @ 000000000257a740] ref P L0: 58.7% 17.6% 16.2% 6.9% 0.6% [libx264 @ 000000000257a740] ref B L0: 86.8% 10.9% 2.3% [libx264 @ 000000000257a740] ref B L1: 92.7% 7.3% [libx264 @ 000000000257a740] kb/s:562.36 Tku. -Sean From philip at turmel.org Thu Dec 19 00:26:34 2013 From: philip at turmel.org (Phil Turmel) Date: Wed, 18 Dec 2013 18:26:34 -0500 Subject: [FFmpeg-user] Splitting output from -filter_complex and losing audio In-Reply-To: <011001cefc26$02aeccd0$080c6670$@org> References: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> <52B1520F.3080507@gmail.com> <011001cefc26$02aeccd0$080c6670$@org> Message-ID: <52B22F2A.60502@turmel.org> On 12/18/2013 02:19 PM, Sean wrote: > I need to set up an ffmpeg command string that will allow me to take a > single input file (contains video and audio) and output it to 2 different > ... You hijacked a thread, making your post effectively invisible. (Changing a subject line does not make a new thread.) Look at your message in the archives to see what I mean. I suggest you re-read http://ffmpeg.org/contact.html then try again. Phil From seanm at goldeneraproductions.org Thu Dec 19 02:39:05 2013 From: seanm at goldeneraproductions.org (Sean) Date: Wed, 18 Dec 2013 17:39:05 -0800 Subject: [FFmpeg-user] Splitting output from -filter_complex and losing audio In-Reply-To: <52B22F2A.60502@turmel.org> References: <9923bfae43714c3eb4633c36cea69950@BY2PR03MB192.namprd03.prod.outlook.com> <52B1520F.3080507@gmail.com> <011001cefc26$02aeccd0$080c6670$@org> <52B22F2A.60502@turmel.org> Message-ID: <013b01cefc5b$1a6fa170$4f4ee450$@org> >> I need to set up an ffmpeg command string that will allow me to take a >> single input file (contains video and audio) and output it to 2 different >> ... >You hijacked a thread, making your post effectively invisible. >(Changing a subject line does not make a new thread.) Look at your >message in the archives to see what I mean. >I suggest you re-read http://ffmpeg.org/contact.html then try again. >Phil Thanks Phil, I was wondering what I did wrong. Looks like I figured it out, I was missing an additional -map option to map the audio stream after sending the video though the filters. Works great now. -Sean _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nickrobbins at yahoo.com Thu Dec 19 03:02:27 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Wed, 18 Dec 2013 18:02:27 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> <1386871326.94343.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1387319451.27366.YahooMailNeo@web160803.mail.bf1.yahoo.com> Message-ID: <1387418547.4438.YahooMailNeo@web160802.mail.bf1.yahoo.com> >> fps=fps=30000/1001,fieldmatch,decimate,yadif (which will yadif > > I would surely like to get a sample. I shouldn?t need more than 20-30 > seconds to see what results I?m able to produce. You might be able to > email me such an excerpt. I don?t see how any conversion to deinterlaced > 30 fps would result in optimal output. Nearly any smooth horizontal > panning is like getting slapped in the face 6 times per second. If output > is deinterlaced, all 4th and 5th frames are duplicates. If not > deinterlaced, those frames are interlaced complements which still take > twice as long as a normal frame to play. Thanks. > > > Laine Lee > I will see about sending you a snippet offline. I can't seem to edit the file as a vob without starting at the beginning and there aren't really good problems at that point.? So I've remuxed it into a mkv using mkvmerge. Also, I don't think you are quite understanding the filters. fps=30000/1001 is actually just relabeling things. If you've been following the thread, the video file actually has this man frames, but the container things is has 60000/1001 fps. So that first filter just labels the file correctly. The second filter should replace the 30 fps telecined with? ABCDD non-telecinded originals. Decimate will then remove every fifth frame. At least that is how it is supposed to work. However, it doesn't always work, some frames sometimes are missed, sometimes due to editing after telecining for instance. These frames are supposed to me marked as interlaced by fieldmatch and then yadif can de-comb them, which isn't ideal, but the information to do the ideal thing is on the cutting room floor presumably. However, yadif=deint=interlaced isn't noticing any interlaced frames. So if I want to remove the combing, I have to yadif everything. In any case, I'll send you the file and you can play with it. -Nick From syazrinasheeotzz at yahoo.com Thu Dec 19 03:50:38 2013 From: syazrinasheeotzz at yahoo.com (N. Syazrina M.A.S) Date: Thu, 19 Dec 2013 10:50:38 +0800 Subject: [FFmpeg-user] Algorithm/Source Code for Changing the Resolution & Frame Rate using FFMpeg. In-Reply-To: <20131218182054.GM3396@barisone> References: <1387336249.2974.YahooMailNeo@web125004.mail.ne1.yahoo.com> <20131218182054.GM3396@barisone> Message-ID: <96B4C3E0-619E-46F6-9911-76B2D5E6919A@yahoo.com> Hi Stefano, Thank you for the reply. I'm clear about the temporal scaling. Could you briefly explain the algorithm for spatial up/downsampling used in this program. Thank you, Syaz. On Dec 19, 2013, at 2:20 AM, Stefano Sabatini wrote: > On date Tuesday 2013-12-17 19:10:49 -0800, N. Syazrina M.A.S wrote: >> Hi, >> >> How can I get the algorithm used/the source code for changing the >> resolution & frame rate of a video using the FFMpeg tool. I would >> like to know the method used for the up/downsampling of the spatial >> & temporal resolution of the video. > > Spatial resampling: this is done in the libswscale library. > > Temporal resampling: we simply drop/duplicate frames, you may have a > look at the fps filter in libavfilter. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From anshul.ffmpeg at gmail.com Thu Dec 19 07:28:46 2013 From: anshul.ffmpeg at gmail.com (anshul) Date: Thu, 19 Dec 2013 11:58:46 +0530 Subject: [FFmpeg-user] Problem with ffmpeg psnr calculate filter when image file applied In-Reply-To: <20131218181942.GL3396@barisone> References: <20131218181942.GL3396@barisone> Message-ID: <52B2921E.2040603@gmail.com> On 12/18/2013 11:49 PM, Stefano Sabatini wrote: > On date Tuesday 2013-12-17 22:35:55 +0800, ?? wrote: >> Dear all, >> I would like to calculate the PSNR of two images or two videos. I found >> that the new psnr filter worked well for video files which have at less two >> frames, but not for one frame, or image files. >> >> ffmpeg version is 2.0.2 >> generate the files to be compared >> two frames video: ./ffmpeg -i test.mkv -vframes 2 -vcodec libx264 -an >> frame2.mkv >> one frames video: ./ffmpeg -i test.mkv -vframes 1 -vcodec libx264 -an >> frame1.mkv >> >> this one does not work: >> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v >> "movie=frame1.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f >> rawvideo -y /dev/null >> >> this one works: >> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v >> "movie=frame2.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f >> rawvideo -y /dev/null >> >> This situation can also be reproduced using image files. >> I looked into the vf_psnr.c. The do_psnr is not called. >> >> I think this might be a bug for filter process? any suggestions to fix this? > Are you able to reproduce the problem with latest git (2.0.2 is a bit > old and we had some fixes which may be relevant). > > Also you could file a bug report. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user I have not seen the source code about the implementation of PSNR calculation but as far as I knew psnr is calculated by comaring original(no noise) and lossy compressed(noise) image, I dont get why you are trying to calculate psnr of one frame From harninder.rai at freescale.com Thu Dec 19 08:12:14 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Thu, 19 Dec 2013 07:12:14 +0000 Subject: [FFmpeg-user] Illegal instruction while executing ffmpeg on powerpc In-Reply-To: <20131218121548.GF8897@nb4> References: <20131218121548.GF8897@nb4> Message-ID: <09c0130c622d4519b097e3c21b4c4433@BL2PR03MB177.namprd03.prod.outlook.com> > this might be missing a --cross-prefix, something like --cross- > prefix=/usr/powerpc-linux-gnu/bin/ > and > --cpu=e500v2 Hello Michael, Thanks a ton. --cpu=e500v2 solved the illegal instruction problem Running into other issues now From mapandrei at gmail.com Thu Dec 19 08:34:13 2013 From: mapandrei at gmail.com (Andrei Petru Mura) Date: Thu, 19 Dec 2013 09:34:13 +0200 Subject: [FFmpeg-user] Good royalty free codec to encode H.264 video with. Message-ID: Hello, *Note:* I'm not experienced in the matter of video programming or processing. If you see some ridiculous mistakes, please be patient and feel free to correct me. I have some videos encoded with a H.264 codec. They are of a very good quality. (A file of 1 hour has 2-3 GB.) I would need to convert those files (about 200) to a format encoded with a royalty free codec. I tried to convert them using MJPEG codec, but when I try to preserve best quality, the resulted files are huge: about 50 GB. I used something like. ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v mjpeg -r 30 -qmin 1 -qmax 1 -an -vf hfpli /new/path/to/resulted/file.avi *N.B.:* I put the whole command for having a clear idea of what I'm talking about. Trying to increase the -qmax to 8, I still get a huge file, but more reasonably (~10-15 GB). The problem is that increasing -qmax, some quality issues are visible. I tried to do the same thing, but using a different encoder, namely libvpx-vp9. The resulted file is at a size comparable with H.264, but there are 2 issues: the quality is clearly lower than the original file and the conversion time is effectively enormous. Here is the command that I used: ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v libvpx-vp9 -qmin 0 -qmax 5 -crf 2 -b:v 1M -an -vf hflip -threads 4 /new/path/to/file.webm *Question:* Can anybody suggest me a royalty free encoder that I could use for my needs? I would need to be able also to encode with it video files in a relatively good time. Can you give me some hints on this? I'm aware that currently H.264 is the best standard regarding compression-quality in my scenario (I don't want to create a debate right now on that topic). I would need an encoder that would be able to get the same video quality at a reasonable size - let's say what's over 10GB at a file of 1 hour is too much. I also tried to encode with libtheora, but the conversion time is huge (similar to vp9). From cehoyos at ag.or.at Thu Dec 19 09:59:16 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 08:59:16 +0000 (UTC) Subject: [FFmpeg-user] Good royalty free codec to encode H.264 video with. References: Message-ID: Andrei Petru Mura gmail.com> writes: > ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v mjpeg > -r 30 -qmin 1 -qmax 1 -an -vf hfpli file.avi What is hfpli? Mostly unrelated: Remove "-c:v h264", it makes no sense (in most command lines), old documentation always suggested a minimal quantiser of "2" (instead of "1"), iirc that significantly reduces the filesize. > *N.B.:* I put the whole command for having a clear idea > of what I'm talking about. But you didn't think of providing the console output which is usually needed if you need support here ;-( > I tried to do the same thing, but using a different > encoder, namely libvpx-vp9. The resulted file is at a size > comparable with H.264, but there are 2 issues: > the quality is clearly lower than the original file This should not happen: If you accept a sufficiently high bitrate (which is much closer to h264 than mjpeg), you should get perfect quality with both vp8 and vp9 (vp8 should be faster). Concerning your original question, consider using mpeg1video but if vp8 is acceptable, it should be able to produce significantly smaller files for a given quality. Carl Eugen From cehoyos at ag.or.at Thu Dec 19 10:00:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 09:00:49 +0000 (UTC) Subject: [FFmpeg-user] Algorithm/Source Code for Changing the Resolution & Frame Rate using FFMpeg. References: <1387336249.2974.YahooMailNeo@web125004.mail.ne1.yahoo.com> <20131218182054.GM3396@barisone> <96B4C3E0-619E-46F6-9911-76B2D5E6919A@yahoo.com> Message-ID: N. Syazrina M.A.S yahoo.com> writes: > Could you briefly explain the algorithm for > spatial up/downsampling used in this program. Please see the fine documentation: https://ffmpeg.org/ffmpeg-scaler.html Please do not top-post here, it is considered rude. Carl Eugen From harninder.rai at freescale.com Thu Dec 19 10:07:23 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Thu, 19 Dec 2013 09:07:23 +0000 Subject: [FFmpeg-user] Could not parse framerate '25' Message-ID: Hello, When I run ffmpeg like ./ffmpeg -f v4l2 -r 25 -s 640x480 -i /dev/video0 out.avi , I get the following error [video4linux2,v4l2 @ 0x11148da0] Could not parse framerate '25'. /dev/video0: Invalid argument I have cross-compiled ffmpeg with the following configure options --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --extra-cflags=-mno-altivec --target-os=linux --disable-altivec --disable-asm --disable-yasm --cpu=e500v2 --extra-cflags=-msoft-float --disable-mipsfpu Thanks and Regards Harry++ From krueger at lesspain.de Thu Dec 19 10:18:50 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 19 Dec 2013 10:18:50 +0100 Subject: [FFmpeg-user] Good royalty free codec to encode H.264 video with. In-Reply-To: References: Message-ID: On Thu, Dec 19, 2013 at 8:34 AM, Andrei Petru Mura wrote: > Hello, > > *Note:* I'm not experienced in the matter of video programming or > processing. If you see some ridiculous mistakes, please be patient and feel > free to correct me. > > I have some videos encoded with a H.264 codec. They are of a very good > quality. (A file of 1 hour has 2-3 GB.) I would need to convert those files > (about 200) to a format encoded with a royalty free codec. I tried to > convert them using MJPEG codec, but when I try to preserve best quality, > the resulted files are huge: about 50 GB. I used something like. > > ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v mjpeg -r 30 -qmin 1 > -qmax 1 -an -vf hfpli /new/path/to/resulted/file.avi > > *N.B.:* I put the whole command for having a clear idea of what I'm talking > about. > > Trying to increase the -qmax to 8, I still get a huge file, but more > reasonably (~10-15 GB). The problem is that increasing -qmax, some quality > issues are visible. > > I tried to do the same thing, but using a different encoder, namely > libvpx-vp9. The resulted file is at a size comparable with H.264, but there > are 2 issues: the quality is clearly lower than the original file and the > conversion time is effectively enormous. Here is the command that I used: > > ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v libvpx-vp9 -qmin 0 > -qmax 5 -crf 2 -b:v 1M -an -vf hflip -threads 4 /new/path/to/file.webm > > *Question:* > Can anybody suggest me a royalty free encoder that I could use for my > needs? I would need to be able also to encode with it video files in a > relatively good time. Can you give me some hints on this? > > I'm aware that currently H.264 is the best standard regarding > compression-quality in my scenario (I don't want to create a debate right > now on that topic). I would need an encoder that would be able to get the > same video quality at a reasonable size - let's say what's over 10GB at a > file of 1 hour is too much. I also tried to encode with libtheora, but the > conversion time is huge (similar to vp9). have you tried the good old mpeg4 (-c:v)? I find it is in many cases a reliable, fast workhorse and it is playable almost anywhere. I am not a lawyer but regarding royalty-free I am not 100% sure if you don't have to pay something to MPEG-LA depending on your use case. If you want to be 100% sure, you should read their terms. From mapandrei at gmail.com Thu Dec 19 10:19:38 2013 From: mapandrei at gmail.com (Andrei Petru Mura) Date: Thu, 19 Dec 2013 11:19:38 +0200 Subject: [FFmpeg-user] Good royalty free codec to encode H.264 video with. In-Reply-To: References: Message-ID: > > > ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v mjpeg > > -r 30 -qmin 1 -qmax 1 -an -vf hfpli file.avi > > What is hfpli? > Just a typo. "hflip" was the intended command. Anyway, I think this does not affect to much the quality or the conversion speed. > > Mostly unrelated: > Remove "-c:v h264", it makes no sense (in most command lines), > old documentation always suggested a minimal quantiser of "2" > (instead of "1"), iirc that significantly reduces the filesize. > > > *N.B.:* I put the whole command for having a clear idea > > of what I'm talking about. > > But you didn't think of providing the console output which > is usually needed if you need support here ;-( > Here is what I tried now, with suggested improvements: /home/netnfork/bin/ffmpeg -i ./concatenated5.avi -map 0:0 -c:v libvpx -qmin 2 -qmax 5 -crf 2 -b:v 1M -an -vf hflip -threads 4 ../out.avi ffmpeg version N-40403-ge10fccf Copyright (c) 2000-2013 the FFmpeg developers built on Dec 18 2013 14:00:03 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4) configuration: --prefix=/home/netnfork/ffmpeg_build --extra-cflags=-I/home/netnfork/ffmpeg_build/include --extra-ldflags=-L/home/netnfork/ffmpeg_build/lib --bindir=/home/netnfork/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 58.101 / 52. 58.101 libavcodec 55. 45.102 / 55. 45.102 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, avi, from './concatenated5.avi': Metadata: encoder : Lavf55.19.102 Duration: 00:00:55.40, start: 0.000000, bitrate: 9057 kb/s Stream #0:0: Video: h264 (High) (X264 / 0x34363258), yuvj420p(pc), 1920x1080, 30 fps, 30 tbr, 30 tbn, 30 tbc [swscaler @ 0xa07e060] deprecated pixel format used, make sure you did set range correctly [libvpx @ 0xa092ce0] v1.3.0-416-gbb12bba Output #0, avi, to '../out.avi': Metadata: ISFT : Lavf55.22.100 Stream #0:0: Video: vp8 (libvpx) (VP80 / 0x30385056), yuv420p, 1920x1080, q=2-5, 1000 kb/s, 30 tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> libvpx) Press [q] to stop, [?] for help frame= 100 fps=2.0 q=0.0 size= 14743kB time=00:00:03.33 bitrate=36233.5kbits/s Is there something wrong with the bitrate? I can see the output bitrate is bigger, but I think that should be a plus regarding the quality. Anyway, it still has a significant space until it comes to the specified limit (-b:v 1M). But as you can still, the processing speed is still relatively slow (2.0 fps if I know to interpret correctly the output). > > > I tried to do the same thing, but using a different > > encoder, namely libvpx-vp9. The resulted file is at a size > > comparable with H.264, but there are 2 issues: > > > the quality is clearly lower than the original file > > This should not happen: If you accept a sufficiently > high bitrate (which is much closer to h264 than mjpeg), > you should get perfect quality with both vp8 and vp9 > (vp8 should be faster). > Concerning your original question, consider using > mpeg1video but if vp8 is acceptable, it should be > able to produce significantly smaller files for a > given quality. > > Carl Eugen > From krueger at lesspain.de Thu Dec 19 10:19:45 2013 From: krueger at lesspain.de (=?UTF-8?Q?Robert_Kr=C3=BCger?=) Date: Thu, 19 Dec 2013 10:19:45 +0100 Subject: [FFmpeg-user] Good royalty free codec to encode H.264 video with. In-Reply-To: References: Message-ID: On Thu, Dec 19, 2013 at 10:18 AM, Robert Kr?ger wrote: > On Thu, Dec 19, 2013 at 8:34 AM, Andrei Petru Mura wrote: >> Hello, >> >> *Note:* I'm not experienced in the matter of video programming or >> processing. If you see some ridiculous mistakes, please be patient and feel >> free to correct me. >> >> I have some videos encoded with a H.264 codec. They are of a very good >> quality. (A file of 1 hour has 2-3 GB.) I would need to convert those files >> (about 200) to a format encoded with a royalty free codec. I tried to >> convert them using MJPEG codec, but when I try to preserve best quality, >> the resulted files are huge: about 50 GB. I used something like. >> >> ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v mjpeg -r 30 -qmin 1 >> -qmax 1 -an -vf hfpli /new/path/to/resulted/file.avi >> >> *N.B.:* I put the whole command for having a clear idea of what I'm talking >> about. >> >> Trying to increase the -qmax to 8, I still get a huge file, but more >> reasonably (~10-15 GB). The problem is that increasing -qmax, some quality >> issues are visible. >> >> I tried to do the same thing, but using a different encoder, namely >> libvpx-vp9. The resulted file is at a size comparable with H.264, but there >> are 2 issues: the quality is clearly lower than the original file and the >> conversion time is effectively enormous. Here is the command that I used: >> >> ffmpeg -c:v h264 -i /path/to/file.avi -map 0:0 -c:v libvpx-vp9 -qmin 0 >> -qmax 5 -crf 2 -b:v 1M -an -vf hflip -threads 4 /new/path/to/file.webm >> >> *Question:* >> Can anybody suggest me a royalty free encoder that I could use for my >> needs? I would need to be able also to encode with it video files in a >> relatively good time. Can you give me some hints on this? >> >> I'm aware that currently H.264 is the best standard regarding >> compression-quality in my scenario (I don't want to create a debate right >> now on that topic). I would need an encoder that would be able to get the >> same video quality at a reasonable size - let's say what's over 10GB at a >> file of 1 hour is too much. I also tried to encode with libtheora, but the >> conversion time is huge (similar to vp9). > > have you tried the good old mpeg4 (-c:v)? I find it is in many cases a this was meant to read (-c:v mpeg4), of course. From cehoyos at ag.or.at Thu Dec 19 10:41:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 09:41:19 +0000 (UTC) Subject: [FFmpeg-user] Good royalty free codec to encode H.264 video with. References: Message-ID: Andrei Petru Mura gmail.com> writes: > /home/netnfork/bin/ffmpeg -i ./concatenated5.avi -map 0:0 > -c:v libvpx -qmin 2 -qmax 5 -crf 2 -b:v 1M I don't know anything about vp8 usage but this looks broken. (iiuc!) Either specify a bitrate OR a constant quality. I suspect that if you actually want a bitrate, two-pass encoding will make sense. Carl Eugen From cehoyos at ag.or.at Thu Dec 19 10:43:07 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 09:43:07 +0000 (UTC) Subject: [FFmpeg-user] Could not parse framerate '25' References: Message-ID: Harninder Rai freescale.com> writes: > When I run ffmpeg like ./ffmpeg -f v4l2 -r 25 -s 640x480 > -i /dev/video0 out.avi , I get the following error > > [video4linux2,v4l2 0x11148da0] Could not parse framerate '25'. > /dev/video0: Invalid argument Complete, uncut console output missing. Carl Eugen From cehoyos at ag.or.at Thu Dec 19 10:48:12 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 09:48:12 +0000 (UTC) Subject: [FFmpeg-user] Could not parse framerate '25' References: Message-ID: Harninder Rai freescale.com> writes: > --arch=ppc --enable-cross-compile --cc=.../powerpc-linux-gnu-gcc > --extra-cflags=-mno-altivec --target-os=linux --disable-altivec > --disable-asm --disable-yasm --cpu=e500v2 > --extra-cflags=-msoft-float --disable-mipsfpu Unrelated: If --disable-yasm or --disable-mipsfpu were needed, this would be a bug that you should report here (just remove them), I wonder if "--disable-asm" is a good idea: Is it really needed? Why is "--extra-cflags=-mno-altivec" needed? Carl Eugen From cehoyos at ag.or.at Thu Dec 19 10:42:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 09:42:30 +0000 (UTC) Subject: [FFmpeg-user] Good royalty free codec to encode H.264 video with. References: Message-ID: Robert Kr?ger lesspain.de> writes: > have you tried the good old mpeg4 (-c:v)? I find it is in many > cases a reliable, fast workhorse and it is playable almost anywhere. I also like asp but I think it does not count as "royalty-free", see the webrtc mailing list for a current (exhaustive) discussion. Carl Eugen From ed.torbett at simulation-systems.co.uk Thu Dec 19 11:04:00 2013 From: ed.torbett at simulation-systems.co.uk (Ed Torbett) Date: Thu, 19 Dec 2013 10:04:00 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions Message-ID: I?m trying to use the mpdecimate filter to chop out a series of duplicated frames in some media, but ffmpeg segfaults on the second frame passed through the filter. The segfault does not occur if I compile with --disable-mmx, but still occurs with --disable-ssse3. Full console log and GDB trace of the segfault below. The source media is available here: http://edward.torbett.co.uk/combined.mp4. I?m building and running on the same machine, so no cross-compilation issues. I?m also building static executables. I?ve included /proc/cpuinfo at the end for reference. Any suggestions? Regards, Ed Torbett $ /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg -v debug -i combined.mp4 -vf mpdecimate decimated.mp4 ffmpeg version N-41485-gf5d0398 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 19 2013 08:55:36 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54) configuration: --enable-debug=3 --disable-stripping --prefix=/ldisk/ffmpeg/ffmpeg_build --extra-cflags='-I/ldisk/ffmpeg/ffmpeg_build/include -static' --extra-ldflags='-L/ldisk/ffmpeg/ffmpeg_build/lib -static' --bindir=/ldisk/ffmpeg/ffmpeg_build/bin --extra-libs='-ldl -lfreetype -lpng16 -lz -lbz2 -lm -lxml2 -lSDL' --enable-gpl --enable-nonfree --enable-libx264 --enable-libfreetype --disable-shared --enable-static libavutil 52. 58.101 / 52. 58.101 libavcodec 55. 45.102 / 55. 45.102 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'combined.mp4'. Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'mpdecimate'. Reading option 'decimated.mp4' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file combined.mp4. Successfully parsed a group of options. Opening an input file: combined.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb091d00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb091d00] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb091d00] Before avformat_find_stream_info() pos: 2826966 bytes read:41094 seeks:1 [h264 @ 0xb092660] no picture [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb091d00] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb091d00] After avformat_find_stream_info() pos: 64663 bytes read:105709 seeks:2 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'combined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.9.100 Duration: 00:00:50.08, start: 0.000000, bitrate: 451 kb/s Stream #0:0(und), 1, 1/12800: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/25, 450 kb/s, 12.50 fps, 12.50 tbr, 12800 tbn, 25 tbc (default) Metadata: handler_name : VideoHandler Successfully opened the file. Parsing a group of options: output file decimated.mp4. Applying option vf (set video filters) with argument mpdecimate. Successfully parsed a group of options. Opening an output file: decimated.mp4. Successfully opened the file. detected 2 logical cores [Parsed_mpdecimate_0 @ 0xb0b2100] max_drop_count:0 hi:768 lo:320 frac:0.330000 [graph 0 input from stream 0:0 @ 0xb099e00] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 0xb099e00] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0xb099e00] Setting 'time_base' to value '1/12800' [graph 0 input from stream 0:0 @ 0xb099e00] Setting 'pixel_aspect' to value '16/15' [graph 0 input from stream 0:0 @ 0xb099e00] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0xb099e00] Setting 'frame_rate' to value '25/2' [graph 0 input from stream 0:0 @ 0xb099e00] w:720 h:576 pixfmt:yuv420p tb:1/12800 fr:25/2 sar:16/15 sws_param:flags=2 [format @ 0xb099920] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16] [format @ 0xb099920] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16' [AVFilterGraph @ 0xb085e00] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [libx264 @ 0xb098980] using mv_range_thread = 88 [libx264 @ 0xb098980] using SAR=16/15 [libx264 @ 0xb098980] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle [libx264 @ 0xb098980] profile High, level 2.2 [libx264 @ 0xb098980] 264 - core 140 r34 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'decimated.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.22.100 Stream #0:0(und), 0, 1/12800: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 2/25, q=-1--1, 12800 tbn, 12.50 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Press [q] to stop, [?] for help [h264 @ 0xb5d22c0] no picture [h264 @ 0xb6170a0] no picture [Parsed_mpdecimate_0 @ 0xb0b2100] keep pts:0 pts_time:0 drop_count:-1 Segmentation fault When run with gdb: $ gdb /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-37.el5_7.1) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg...done. (gdb) r -v debug -i combined.mp4 -vf mpdecimate decimated.mp4 Starting program: /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg -v debug -i combined.mp4 -vf mpdecimate decimated.mp4 [Thread debugging using libthread_db enabled] ffmpeg version N-41485-gf5d0398 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 19 2013 08:55:36 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54) configuration: --enable-debug=3 --disable-stripping --prefix=/ldisk/ffmpeg/ffmpeg_build --extra-cflags='-I/ldisk/ffmpeg/ffmpeg_build/include -static' --extra-ldflags='-L/ldisk/ffmpeg/ffmpeg_build/lib -static' --bindir=/ldisk/ffmpeg/ffmpeg_build/bin --extra-libs='-ldl -lfreetype -lpng16 -lz -lbz2 -lm -lxml2 -lSDL' --enable-gpl --enable-nonfree --enable-libx264 --enable-libfreetype --disable-shared --enable-static libavutil 52. 58.101 / 52. 58.101 libavcodec 55. 45.102 / 55. 45.102 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'combined.mp4'. Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'mpdecimate'. Reading option 'decimated.mp4' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file combined.mp4. Successfully parsed a group of options. Opening an input file: combined.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x94d9d00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x94d9d00] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0x94d9d00] Before avformat_find_stream_info() pos: 2826966 bytes read:41094 seeks:1 [h264 @ 0x94da660] no picture [mov,mp4,m4a,3gp,3g2,mj2 @ 0x94d9d00] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x94d9d00] After avformat_find_stream_info() pos: 64663 bytes read:105709 seeks:2 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'combined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.9.100 Duration: 00:00:50.08, start: 0.000000, bitrate: 451 kb/s Stream #0:0(und), 1, 1/12800: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/25, 450 kb/s, 12.50 fps, 12.50 tbr, 12800 tbn, 25 tbc (default) Metadata: handler_name : VideoHandler Successfully opened the file. Parsing a group of options: output file decimated.mp4. Applying option vf (set video filters) with argument mpdecimate. Successfully parsed a group of options. Opening an output file: decimated.mp4. File 'decimated.mp4' already exists. Overwrite ? [y/N] y Successfully opened the file. detected 2 logical cores [New Thread 0xb7f9bb90 (LWP 24760)] [New Thread 0xb759bb90 (LWP 24761)] [New Thread 0xb6b9bb90 (LWP 24762)] [Parsed_mpdecimate_0 @ 0x94fa100] max_drop_count:0 hi:768 lo:320 frac:0.330000 [graph 0 input from stream 0:0 @ 0x94e1e00] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 0x94e1e00] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0x94e1e00] Setting 'time_base' to value '1/12800' [graph 0 input from stream 0:0 @ 0x94e1e00] Setting 'pixel_aspect' to value '16/15' [graph 0 input from stream 0:0 @ 0x94e1e00] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0x94e1e00] Setting 'frame_rate' to value '25/2' [graph 0 input from stream 0:0 @ 0x94e1e00] w:720 h:576 pixfmt:yuv420p tb:1/12800 fr:25/2 sar:16/15 sws_param:flags=2 [format @ 0x94e1920] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16] [format @ 0x94e1920] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16' [AVFilterGraph @ 0x94cde00] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [libx264 @ 0x94e0980] using mv_range_thread = 88 [libx264 @ 0x94e0980] using SAR=16/15 [libx264 @ 0x94e0980] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle [New Thread 0xb602cb90 (LWP 24763)] [New Thread 0xb562cb90 (LWP 24764)] [New Thread 0xb4c2cb90 (LWP 24765)] [New Thread 0xb32e8b90 (LWP 24766)] [libx264 @ 0x94e0980] profile High, level 2.2 [libx264 @ 0x94e0980] 264 - core 140 r34 1ca7bb9 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [New Thread 0xb28e8b90 (LWP 24767)] [New Thread 0xb1ee8b90 (LWP 24768)] [New Thread 0xb14e8b90 (LWP 24769)] Output #0, mp4, to 'decimated.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.22.100 Stream #0:0(und), 0, 1/12800: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 2/25, q=-1--1, 12800 tbn, 12.50 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Press [q] to stop, [?] for help [h264 @ 0x9a1a2c0] no picture [h264 @ 0x9a5f0a0] no picture [Parsed_mpdecimate_0 @ 0x94fa100] keep pts:0 pts_time:0 drop_count:-1 Program received signal SIGSEGV, Segmentation fault. 0x087150ac in sum_abs_dctelem_ssse3 (block=0xbfff8fbc) at libavcodec/x86/dsputilenc_mmx.c:833 833 DCT_SAD_FUNC(ssse3) (gdb) where #0 0x087150ac in sum_abs_dctelem_ssse3 (block=0xbfff8fbc) at libavcodec/x86/dsputilenc_mmx.c:833 #1 0x080ad23b in decimate_frame (inlink=0x94c8ae0, cur=0x94f8d80) at libavfilter/vf_mpdecimate.c:90 #2 filter_frame (inlink=0x94c8ae0, cur=0x94f8d80) at libavfilter/vf_mpdecimate.c:192 #3 0x08074272 in ff_filter_frame_framed (link=0x94c8ae0, frame=0x94f8d80) at libavfilter/avfilter.c:1072 #4 0x08074500 in ff_filter_frame (link=0x94c8ae0, frame=0x94f8d80) at libavfilter/avfilter.c:1147 #5 0x08078e50 in request_frame (link=0x94c8ae0) at libavfilter/buffersrc.c:491 #6 0x08079436 in av_buffersrc_add_frame_internal (ctx=0x94e1e00, frame=0x9b24000, flags=) at libavfilter/buffersrc.c:170 #7 0x0807959a in av_buffersrc_add_frame_flags (ctx=0x94e1e00, frame=0x9b24000, flags=4) at libavfilter/buffersrc.c:107 #8 0x0805fd92 in decode_video (ist=0x94e2140, pkt=0xbfff9810) at ffmpeg.c:1777 #9 output_packet (ist=0x94e2140, pkt=0xbfff9810) at ffmpeg.c:1907 #10 0x08062eb8 in process_input () at ffmpeg.c:3215 #11 transcode_step () at ffmpeg.c:3311 #12 0x08065b9c in transcode () at ffmpeg.c:3363 #13 0x08066a95 in main (argc=-1850552116, argv=) at ffmpeg.c:3543 $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz stepping : 13 cpu MHz : 1200.000 cache size : 2048 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4788.27 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Core(TM)2 Duo CPU E4600 @ 2.40GHz stepping : 13 cpu MHz : 1200.000 cache size : 2048 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 10 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm bogomips : 4787.95 From onemda at gmail.com Thu Dec 19 11:13:16 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 19 Dec 2013 11:13:16 +0100 Subject: [FFmpeg-user] Problem with ffmpeg psnr calculate filter when image file applied In-Reply-To: <20131218181942.GL3396@barisone> References: <20131218181942.GL3396@barisone> Message-ID: On 12/18/13, Stefano Sabatini wrote: > On date Tuesday 2013-12-17 22:35:55 +0800, ****** wrote: >> Dear all, >> I would like to calculate the PSNR of two images or two videos. I found >> that the new psnr filter worked well for video files which have at less >> two >> frames, but not for one frame, or image files. >> >> ffmpeg version is 2.0.2 >> generate the files to be compared >> two frames video: ./ffmpeg -i test.mkv -vframes 2 -vcodec libx264 -an >> frame2.mkv >> one frames video: ./ffmpeg -i test.mkv -vframes 1 -vcodec libx264 -an >> frame1.mkv >> >> this one does not work: >> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v >> "movie=frame1.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f >> rawvideo -y /dev/null >> >> this one works: >> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v >> "movie=frame2.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f >> rawvideo -y /dev/null >> >> This situation can also be reproduced using image files. >> I looked into the vf_psnr.c. The do_psnr is not called. >> >> I think this might be a bug for filter process? any suggestions to fix >> this? > > Are you able to reproduce the problem with latest git (2.0.2 is a bit > old and we had some fixes which may be relevant). > > Also you could file a bug report. Yes this bug was fixed by Nicolas work. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Thu Dec 19 11:23:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 10:23:29 +0000 (UTC) Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions References: Message-ID: Ed Torbett simulation-systems.co.uk> writes: > I?m trying to use the mpdecimate filter to chop out a series > of duplicated frames in some media, but ffmpeg segfaults on > the second frame passed through the filter. > > The segfault does not occur if I compile with --disable-mmx, > but still occurs with --disable-ssse3. Full console log and > GDB trace of the segfault below. > > The source media is available here: > http://edward.torbett.co.uk/combined.mp4. I cannot reproduce your crash, valgrind does not report anything suspicious. Could you confirm the md5sum of 56f371bc6e11583275d76288dc0ad9c7 for your file? > configuration: --enable-debug=3 --disable-stripping > --prefix=/ldisk/ffmpeg/ffmpeg_build > --extra-cflags='-I/ldisk/ffmpeg/ffmpeg_build/include -static' > --extra-ldflags='-L/ldisk/ffmpeg/ffmpeg_build/lib -static' > --bindir=/ldisk/ffmpeg/ffmpeg_build/bin > --extra-libs='-ldl -lfreetype -lpng16 -lz -lbz2 -lm -lxml2 -lSDL' > --enable-gpl --enable-nonfree --enable-libx264 > --enable-libfreetype --disable-shared --enable-static This is at least unusual, is the crash reproducible with: $ ffmpeg -i combined.mp4 -vf mpdecimate -f null - or $ ffmpeg -i combined.mp4 -vf mpdecimate -vcodec mpeg4 out.avi or does a shorter configure line help? $ ./configure --enable-gpl --enable-libx264 && make Carl Eugen From harninder.rai at freescale.com Thu Dec 19 11:30:44 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Thu, 19 Dec 2013 10:30:44 +0000 Subject: [FFmpeg-user] Could not parse framerate '25' In-Reply-To: References: Message-ID: <0105ae9975bd4c2abee24612f6383605@BL2PR03MB177.namprd03.prod.outlook.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos > Sent: Thursday, December 19, 2013 3:13 PM > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] Could not parse framerate '25' > > Harninder Rai freescale.com> writes: > > > When I run ffmpeg like ./ffmpeg -f v4l2 -r 25 -s 640x480 -i > > /dev/video0 out.avi , I get the following error > > > > [video4linux2,v4l2 0x11148da0] Could not parse framerate '25'. > > /dev/video0: Invalid argument > > Complete, uncut console output missing. > > Carl Eugen > Here it is [root at P1024RDB shm]# ./ffmpeg -f v4l2 -r 25 -s 640x480 -i /dev/video0 out.avi ffmpeg version N-59017-g551a679 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 19 2013 13:39:43 with gcc 4.5.1 (Sourcery G++ Lite 2010.09-55) configuration: --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --extra-cflags=-mno-altivec --target-os=linux --disable-altivec --disable-asm --disable-yasm --cpu=e500v2 --extra-cflags=-msoft-float --disable-mipsfpu libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.101 / 55. 45.101 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 [video4linux2,v4l2 @ 0x11148da0] Could not parse framerate '25'. /dev/video0: Invalid argument > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Thu Dec 19 11:39:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 10:39:57 +0000 (UTC) Subject: [FFmpeg-user] Could not parse framerate '25' References: <0105ae9975bd4c2abee24612f6383605@BL2PR03MB177.namprd03.prod.outlook.com> Message-ID: Harninder Rai freescale.com> writes: > [video4linux2,v4l2 0x11148da0] Could not parse framerate '25'. This indicates a compilation problem (or a problem with sscanf), did you run make fate on your target? I suspect you can just omit -r 25 but as said it imo indicates that something is very wrong. Carl Eugen From ed.torbett at simulation-systems.co.uk Thu Dec 19 11:43:00 2013 From: ed.torbett at simulation-systems.co.uk (Ed Torbett) Date: Thu, 19 Dec 2013 10:43:00 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions In-Reply-To: Message-ID: <2c38f562.1cefca7.8a5bd8.4ae1@simulation-systems.co.uk> > I cannot reproduce your crash, valgrind does not report > anything suspicious. Here's relevant output of valgrind for me: vex x86->IR: unhandled instruction bytes: 0xF3 0xF 0xBC 0xF6 ==9526== valgrind: Unrecognised instruction at address 0x8a4728e. ==9526== Your program just tried to execute an instruction that Valgrind ==9526== did not recognise. There are two possible reasons for this. ==9526== 1. Your program has a bug and erroneously jumped to a non-code ==9526== location. If you are running Memcheck and you just saw a ==9526== warning about a bad jump, it's probably your program's fault. ==9526== 2. The instruction is legitimate but Valgrind doesn't handle it, ==9526== i.e. it's Valgrind's fault. If you think this is the case or ==9526== you are not sure, please let us know and we'll try to fix it. ==9526== Either way, Valgrind will now raise a SIGILL signal which will ==9526== probably kill your program. ==9526== ==9526== Process terminating with default action of signal 4 (SIGILL) ==9526== Illegal opcode at address 0x8A4728E ==9526== at 0x8A4728E: ??? (in /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg_g) Full output available at http://edward.torbett.co.uk/valgrind.log > Could you confirm the md5sum of > 56f371bc6e11583275d76288dc0ad9c7 for your file? This is the correct checksum. > This is at least unusual, is the crash reproducible with: > $ ffmpeg -i combined.mp4 -vf mpdecimate -f null - Yes, still crashes > $ ffmpeg -i combined.mp4 -vf mpdecimate -vcodec mpeg4 out.avi Still crashes. > or does a shorter configure line help? > $ ./configure --enable-gpl --enable-libx264 && make Still crashes: $ /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg -v debug -i combined.mp4 -vf mpdecimate decimated.mp4 ffmpeg version N-41485-gf5d0398 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 19 2013 10:39:35 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54) configuration: --enable-gpl --enable-libx264 libavutil 52. 58.101 / 52. 58.101 libavcodec 55. 45.102 / 55. 45.102 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'. Reading option '-i' ... matched as input file with argument 'combined.mp4'. Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'mpdecimate'. Reading option 'decimated.mp4' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file combined.mp4. Successfully parsed a group of options. Opening an input file: combined.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0xa0d1d80] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0xa0d1d80] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0xa0d1d80] Before avformat_find_stream_info() pos: 2826966 bytes read:41094 seeks:1 [h264 @ 0xa0d2760] no picture [mov,mp4,m4a,3gp,3g2,mj2 @ 0xa0d1d80] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0xa0d1d80] After avformat_find_stream_info() pos: 64663 bytes read:105709 seeks:2 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'combined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.9.100 Duration: 00:00:50.08, start: 0.000000, bitrate: 451 kb/s Stream #0:0(und), 1, 1/12800: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 1/25, 450 kb/s, 12.50 fps, 12.50 tbr, 12800 tbn, 25 tbc (default) Metadata: handler_name : VideoHandler Successfully opened the file. Parsing a group of options: output file decimated.mp4. Applying option vf (set video filters) with argument mpdecimate. Successfully parsed a group of options. Opening an output file: decimated.mp4. Successfully opened the file. detected 2 logical cores [Parsed_mpdecimate_0 @ 0xa0f2280] max_drop_count:0 hi:768 lo:320 frac:0.330000 [graph 0 input from stream 0:0 @ 0xa0da0a0] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 0xa0da0a0] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 0xa0da0a0] Setting 'time_base' to value '1/12800' [graph 0 input from stream 0:0 @ 0xa0da0a0] Setting 'pixel_aspect' to value '16/15' [graph 0 input from stream 0:0 @ 0xa0da0a0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0xa0da0a0] Setting 'frame_rate' to value '25/2' [graph 0 input from stream 0:0 @ 0xa0da0a0] w:720 h:576 pixfmt:yuv420p tb:1/12800 fr:25/2 sar:16/15 sws_param:flags=2 [format @ 0xa0d9d00] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16] [format @ 0xa0d9d00] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16' [AVFilterGraph @ 0xa0f2980] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [libx264 @ 0xa0d8ca0] using mv_range_thread = 88 [libx264 @ 0xa0d8ca0] using SAR=16/15 [libx264 @ 0xa0d8ca0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle [libx264 @ 0xa0d8ca0] profile High, level 2.2 [libx264 @ 0xa0d8ca0] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'decimated.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.22.100 Stream #0:0(und), 0, 1/12800: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 2/25, q=-1--1, 12800 tbn, 12.50 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Press [q] to stop, [?] for help [h264 @ 0xa841260] no picture [h264 @ 0xa886100] no picture [Parsed_mpdecimate_0 @ 0xa0f2280] keep pts:0 pts_time:0 drop_count:-1 Segmentation fault Here's some more info from the previous compilation (I didn't include debug symbols this time) (gdb) disass $pc-32,$pc+32 Dump of assembler code for function sum_abs_dctelem_sse2: 0x08714d60 : mov 0x4(%esp),%eax 0x08714d64 : pxor %xmm0,%xmm0 0x08714d68 : pxor %xmm1,%xmm1 0x08714d6c : movdqa (%eax),%xmm2 0x08714d70 : movdqa 0x10(%eax),%xmm3 0x08714d75 : movdqa 0x20(%eax),%xmm4 0x08714d7a : movdqa 0x30(%eax),%xmm5 0x08714d7f : pxor %xmm6,%xmm6 0x08714d83 : psubw %xmm2,%xmm6 0x08714d87 : pmaxsw %xmm6,%xmm2 0x08714d8b : paddusw %xmm2,%xmm0 0x08714d8f : pxor %xmm7,%xmm7 0x08714d93 : psubw %xmm3,%xmm7 0x08714d97 : pmaxsw %xmm7,%xmm3 0x08714d9b : paddusw %xmm3,%xmm1 0x08714d9f : pxor %xmm6,%xmm6 0x08714da3 : psubw %xmm4,%xmm6 0x08714da7 : pmaxsw %xmm6,%xmm4 0x08714dab : paddusw %xmm4,%xmm0 0x08714daf : pxor %xmm7,%xmm7 0x08714db3 : psubw %xmm5,%xmm7 0x08714db7 : pmaxsw %xmm7,%xmm5 0x08714dbb : paddusw %xmm5,%xmm1 0x08714dbf : movdqa 0x40(%eax),%xmm2 0x08714dc4 : movdqa 0x50(%eax),%xmm3 0x08714dc9 : movdqa 0x60(%eax),%xmm4 0x08714dce : movdqa 0x70(%eax),%xmm5 0x08714dd3 : pxor %xmm6,%xmm6 0x08714dd7 : psubw %xmm2,%xmm6 0x08714ddb : pmaxsw %xmm6,%xmm2 0x08714ddf : paddusw %xmm2,%xmm0 0x08714de3 : pxor %xmm7,%xmm7 0x08714de7 : psubw %xmm3,%xmm7 0x08714deb : pmaxsw %xmm7,%xmm3 0x08714def : paddusw %xmm3,%xmm1 0x08714df3 : pxor %xmm6,%xmm6 0x08714df7 : psubw %xmm4,%xmm6 0x08714dfb : pmaxsw %xmm6,%xmm4 0x08714dff : paddusw %xmm4,%xmm0 0x08714e03 : pxor %xmm7,%xmm7 0x08714e07 : psubw %xmm5,%xmm7 0x08714e0b : pmaxsw %xmm7,%xmm5 0x08714e0f : paddusw %xmm5,%xmm1 0x08714e13 : paddusw %xmm1,%xmm0 0x08714e17 : movhlps %xmm0,%xmm1 0x08714e1a : paddusw %xmm1,%xmm0 0x08714e1e : pshuflw $0xe,%xmm0,%xmm1 0x08714e23 : paddusw %xmm1,%xmm0 0x08714e27 : pshuflw $0x1,%xmm0,%xmm1 0x08714e2c : paddusw %xmm1,%xmm0 0x08714e30 : movd %xmm0,%eax 0x08714e34 : and $0xffff,%eax 0x08714e39 : ret End of assembler dump. (gdb) info all-registers eax 0xbfff8fac -1073770580 ecx 0x9e65038 166088760 edx 0x94ca404 156017668 ebx 0x9b669d8 162949592 esp 0xbfff8f2c 0xbfff8f2c ebp 0xbfff8fac 0xbfff8fac esi 0x9e63838 166082616 edi 0x8 8 eip 0x8714d6c 0x8714d6c eflags 0x10247 [ CF PF ZF IF RF ] cs 0x73 115 ss 0x7b 123 ds 0x7b 123 es 0x7b 123 fs 0x0 0 gs 0x33 51 st0 -nan(0x200040003) (raw 0xffff0000000200040003) st1 -nan(0x100030003) (raw 0xffff0000000100030003) st2 -nan(0x9300c000d800bf) (raw 0xffff009300c000d800bf) st3 -nan(0x48003f0052006d) (raw 0xffff0048003f0052006d) st4 -nan(0x1111111111111111) (raw 0xffff1111111111111111) st5 1000000 (raw 0x4012f424000000000000) st6 240000 (raw 0x4010ea60000000000000) st7 -inf (raw 0xffff0000000000000000) fctrl 0x37f 895 fstat 0x120 288 ftag 0x82aa 33450 fiseg 0x73 115 fioff 0x80ad18f 134926735 foseg 0x7b 123 fooff 0xbfff8f7c -1073770628 fop 0x35c 860 xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm2 {v4_float = {0x0, 0xffa8c4d3, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x0}, v16_int8 = {0x18, 0x18, 0x18, 0x18, 0x5a, 0x76, 0xae, 0xca, 0xcb, 0xcc, 0xb7, 0xa2, 0x75, 0x5c, 0x40, 0x3d}, v8_int16 = {0x1818, 0x1818, 0x765a, 0xcaae, 0xcccb, 0xa2b7, 0x5c75, 0x3d40}, v4_int32 = {0x18181818, 0xcaae765a, 0xa2b7cccb, 0x3d405c75}, v2_int64 = {0xcaae765a18181818, 0x3d405c75a2b7cccb}, uint128 = 0x3d405c75a2b7cccbcaae765a18181818} xmm3 {v4_float = {0x0, 0x0, 0x32121, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x18, 0x18, 0x68, 0xbc, 0xcc, 0xad, 0x69, 0x3f, 0x40, 0x48, 0x48, 0x48, 0x43, 0x43, 0x3b, 0x38}, v8_int16 = {0x1818, 0xbc68, 0xadcc, 0x3f69, 0x4840, 0x4848, 0x4343, 0x383b}, v4_int32 = {0xbc681818, 0x3f69adcc, 0x48484840, 0x383b4343}, v2_int64 = {0x3f69adccbc681818, 0x383b434348484840}, uint128 = 0x383b4343484848403f69adccbc681818} xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x45, 0x0, 0x48, 0x0, 0x48, 0x0, 0x46, 0x0, 0x43, 0x0, 0x3c, 0x0, 0x40, 0x0, 0x30, 0x0}, v8_int16 = {0x45, 0x48, 0x48, 0x46, 0x43, 0x3c, 0x40, 0x30}, v4_int32 = {0x480045, 0x460048, 0x3c0043, 0x300040}, v2_int64 = { 0x46004800480045, 0x300040003c0043}, uint128 = 0x00300040003c00430046004800480045} xmm5 {v4_float = {0xfedb8dd0, 0x0, 0x3212, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x18, 0x39, 0x92, 0xcb, 0xc2, 0x8c, 0x4e, 0x3e, 0x45, 0x48, 0x48, 0x46, 0x43, 0x3c, 0x40, 0x30}, v8_int16 = {0x3918, 0xcb92, 0x8cc2, 0x3e4e, 0x4845, 0x4648, 0x3c43, 0x3040}, v4_int32 = {0xcb923918, 0x3e4e8cc2, 0x46484845, 0x30403c43}, v2_int64 = {0x3e4e8cc2cb923918, 0x30403c4346484845}, uint128 = 0x30403c43464848453e4e8cc2cb923918} xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x0}, v16_int8 = {0xd2, 0x7, 0x15, 0x0, 0xd2, 0x7, 0x3, 0xdf, 0x5c, 0xc1, 0xb, 0x0, 0x36, 0xff, 0xa, 0x0}, v8_int16 = {0x7d2, 0x15, 0x7d2, 0xdf03, 0xc15c, 0xb, 0xff36, 0xa}, v4_int32 = {0x1507d2, 0xdf0307d2, 0xbc15c, 0xaff36}, v2_int64 = {0xdf0307d2001507d2, 0xaff36000bc15c}, uint128 = 0x000aff36000bc15cdf0307d2001507d2} xmm7 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xff, 0x0, 0xff, 0x0, 0xff, 0x0, 0xff, 0x0, 0xff, 0x0, 0xff, 0x0, 0xff, 0x0, 0xff, 0x0}, v8_int16 = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff}, v4_int32 = {0xff00ff, 0xff00ff, 0xff00ff, 0xff00ff}, v2_int64 = { 0xff00ff00ff00ff, 0xff00ff00ff00ff}, uint128 = 0x00ff00ff00ff00ff00ff00ff00ff00ff} mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ] mm0 {uint64 = 0x200040003, v2_int32 = {0x40003, 0x2}, v4_int16 = {0x3, 0x4, 0x2, 0x0}, v8_int8 = {0x3, 0x0, 0x4, 0x0, 0x2, 0x0, 0x0, 0x0}} mm1 {uint64 = 0x100030003, v2_int32 = {0x30003, 0x1}, v4_int16 = {0x3, 0x3, 0x1, 0x0}, v8_int8 = {0x3, 0x0, 0x3, 0x0, 0x1, 0x0, 0x0, 0x0}} ---Type to continue, or q to quit--- mm2 {uint64 = 0x9300c000d800bf, v2_int32 = {0xd800bf, 0x9300c0}, v4_int16 = {0xbf, 0xd8, 0xc0, 0x93}, v8_int8 = {0xbf, 0x0, 0xd8, 0x0, 0xc0, 0x0, 0x93, 0x0}} mm3 {uint64 = 0x48003f0052006d, v2_int32 = {0x52006d, 0x48003f}, v4_int16 = {0x6d, 0x52, 0x3f, 0x48}, v8_int8 = {0x6d, 0x0, 0x52, 0x0, 0x3f, 0x0, 0x48, 0x0}} mm4 {uint64 = 0x1111111111111111, v2_int32 = {0x11111111, 0x11111111}, v4_int16 = {0x1111, 0x1111, 0x1111, 0x1111}, v8_int8 = {0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11}} mm5 {uint64 = 0xf424000000000000, v2_int32 = {0x0, 0xf4240000}, v4_int16 = {0x0, 0x0, 0x0, 0xf424}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x24, 0xf4}} mm6 {uint64 = 0xea60000000000000, v2_int32 = {0x0, 0xea600000}, v4_int16 = {0x0, 0x0, 0x0, 0xea60}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x60, 0xea}} mm7 {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0, 0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}} From harninder.rai at freescale.com Thu Dec 19 11:49:56 2013 From: harninder.rai at freescale.com (Harninder Rai) Date: Thu, 19 Dec 2013 10:49:56 +0000 Subject: [FFmpeg-user] Could not parse framerate '25' In-Reply-To: References: <0105ae9975bd4c2abee24612f6383605@BL2PR03MB177.namprd03.prod.outlook.com> Message-ID: <58e74421ba8447f08ebc73062258f4fa@BL2PR03MB177.namprd03.prod.outlook.com> > > [video4linux2,v4l2 0x11148da0] Could not parse framerate '25'. > > This indicates a compilation problem (or a problem with sscanf), did you > run make fate on your target? I just ran make fate but it gave errors (as expectedly I suppose, since I cross-compiled ffmpeg from x86 machine for ppc) Please correct if my understanding is wrong > > I suspect you can just omit -r 25 but as said it imo indicates that > something is very wrong. Omitting -r 25 gives me the following [root at P1024RDB shm]# ./ffmpeg -f v4l2 -s 640x480 -i /dev/video0 out.avi ffmpeg version N-59017-g551a679 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 19 2013 13:39:43 with gcc 4.5.1 (Sourcery G++ Lite 2010.09-55) configuration: --arch=ppc --enable-cross-compile --cc=/data_nmg/toolchain/opt/freescale/usr/local/gcc-4.5.55-eglibc-2.11.55/powerpc-linux-gnu/bin/powerpc-linux-gnu-gcc --extra-cflags=-mno-altivec --target-os=linux --disable-altivec --disable-asm --disable-yasm --cpu=e500v2 --extra-cflags=-msoft-float --disable-mipsfpu libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.101 / 55. 45.101 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, bitrate: N/A Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422(GBR), 640x480, 2147483 kb/s, 0k fps, 0k tbr, 0k tbn, 0k tbc [swscaler @ 0x11142e20] 0x0 -> 0x0 is invalid scaling dimension [auto-inserted scaler 0 @ 0x1113dfd0] Failed to configure output pad on auto-inserted scaler 0 Error opening filters! From ed.torbett at simulation-systems.co.uk Thu Dec 19 11:52:00 2013 From: ed.torbett at simulation-systems.co.uk (Ed Torbett) Date: Thu, 19 Dec 2013 10:52:00 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions In-Reply-To: <2c38f562.1cefca7.8a5bd8.4ae1@simulation-systems.co.uk> Message-ID: <77fdfc8c.1cefca8.92da1b.3d6c@simulation-systems.co.uk> Further to this, my yasm version is: $ yasm --version yasm 1.2.0 Compiled on Jun 24 2013. Copyright (c) 2001-2011 Peter Johnson and other Yasm developers. Run yasm --license for licensing overview and summary. From cehoyos at ag.or.at Thu Dec 19 12:01:13 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 11:01:13 +0000 (UTC) Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions References: <2c38f562.1cefca7.8a5bd8.4ae1@simulation-systems.co.uk> Message-ID: Ed Torbett simulation-systems.co.uk> writes: > Here's relevant output of valgrind for me: (This doesn't help because your valgrind version is too old.) > > $ ffmpeg -i combined.mp4 -vf mpdecimate -f null - > > Yes, still crashes Then please concentrate on this command line and "./configure && make". I suspect this is a compiler problem, can you easily test another version? Carl Eugen From cehoyos at ag.or.at Thu Dec 19 12:03:27 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 11:03:27 +0000 (UTC) Subject: [FFmpeg-user] Could not parse framerate '25' References: <0105ae9975bd4c2abee24612f6383605@BL2PR03MB177.namprd03.prod.outlook.com> <58e74421ba8447f08ebc73062258f4fa@BL2PR03MB177.namprd03.prod.outlook.com> Message-ID: Harninder Rai freescale.com> writes: > > > [video4linux2,v4l2 0x11148da0] Could not parse framerate '25'. > > > > This indicates a compilation problem (or a problem with sscanf), > > did you run make fate on your target? ^^^^^^^^^^^^^^ > I just ran make fate but it gave errors (as expectedly I suppose, since I cross-compiled ffmpeg from x86 > machine for ppc) You can run fate remote, I believe there is documentation on the homepage. > [swscaler 0x11142e20] 0x0 -> 0x0 is invalid scaling dimension This looks like the same problem. Consider adding printf's to av_parse_ratio() (which I suspect is responsible) in libavutil/parseutils.c. Carl Eugen From ed.torbett at simulation-systems.co.uk Thu Dec 19 13:08:00 2013 From: ed.torbett at simulation-systems.co.uk (Ed Torbett) Date: Thu, 19 Dec 2013 12:08:00 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions In-Reply-To: Message-ID: > (This doesn't help because your valgrind version > is too old.) Compiled latest valgrind from source; here's the output: [etorbett at ssl26 samples]$ /usr/local/bin/valgrind /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg_g -i combined.mp4 -vf mpdecimate -f null - ==29272== Memcheck, a memory error detector ==29272== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==29272== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info ==29272== Command: /ldisk/ffmpeg/ffmpeg_sources/ffmpeg/ffmpeg_g -i combined.mp4 -vf mpdecimate -f null - ==29272== ffmpeg version N-41485-gf5d0398 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 19 2013 10:39:35 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54) configuration: --enable-gpl --enable-libx264 libavutil 52. 58.101 / 52. 58.101 libavcodec 55. 45.102 / 55. 45.102 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'combined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.9.100 Duration: 00:00:50.08, start: 0.000000, bitrate: 451 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 450 kb/s, 12.50 fps, 12.50 tbr, 12800 tbn, 25 tbc (default) Metadata: handler_name : VideoHandler Output #0, null, to 'pipe:': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.22.100 Stream #0:0(und): Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 12.50 tbc (default) Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> rawvideo) Press [q] to stop, [?] for help [null @ 0x44df360] Encoder did not produce proper pts, making some up. ==29272== ==29272== Process terminating with default action of signal 11 (SIGSEGV) ==29272== General Protection Fault ==29272== at 0x87175CC: sum_abs_dctelem_ssse3 (dsputilenc_mmx.c:833) ==29272== by 0x80AF75A: filter_frame (vf_mpdecimate.c:90) ==29272== by 0x80787B1: ff_filter_frame_framed (avfilter.c:1072) ==29272== by 0x8078A3F: ff_filter_frame (avfilter.c:1147) ==29272== by 0x807D38F: request_frame (buffersrc.c:491) ==29272== by 0x807D975: av_buffersrc_add_frame_internal (buffersrc.c:170) ==29272== by 0x807DAD9: av_buffersrc_add_frame_flags (buffersrc.c:107) ==29272== by 0x8063C91: output_packet (ffmpeg.c:1777) ==29272== by 0x8066DB7: transcode_step (ffmpeg.c:3215) ==29272== by 0x8069A9B: transcode (ffmpeg.c:3363) ==29272== by 0x806A994: main (ffmpeg.c:3543) ==29272== ==29272== HEAP SUMMARY: ==29272== in use at exit: 8,884,572 bytes in 552 blocks ==29272== total heap usage: 2,283 allocs, 1,731 frees, 12,526,816 bytes allocated ==29272== ==29272== LEAK SUMMARY: ==29272== definitely lost: 0 bytes in 0 blocks ==29272== indirectly lost: 0 bytes in 0 blocks ==29272== possibly lost: 816 bytes in 6 blocks ==29272== still reachable: 8,883,756 bytes in 546 blocks ==29272== suppressed: 0 bytes in 0 blocks ==29272== Rerun with --leak-check=full to see details of leaked memory ==29272== ==29272== For counts of detected and suppressed errors, rerun with: -v ==29272== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 31 from 8) Killed > I suspect this is a compiler problem, can you easily > test another version? On other machines, a windows zeranoe build from 8th December works without crash and the build I used originally (with the 'unusual' configure) works when compiled and run on another architecture (8-core Xeon server, which is the target architecture). I don't think I can get another version on my PC without compiling it myself, which of course defeats the point of seeing if it's my compiler or my machine. I'm running CentOS 5.7 32bit. From cehoyos at ag.or.at Thu Dec 19 13:11:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 12:11:29 +0000 (UTC) Subject: [FFmpeg-user] png to mp4 conversion error. References: Message-ID: ?????? ??????????? (Nagesh S gmail.com> writes: > [png 0x3389c00] unsupported bit depth 16 and color type 4 FFmpeg does not support 16 bit gray colourspace with transparency information (AV_PIX_FMT_GRAY16A), this is ticket #644. Carl Eugen From cehoyos at ag.or.at Thu Dec 19 13:18:14 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 12:18:14 +0000 (UTC) Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions References: Message-ID: Ed Torbett simulation-systems.co.uk> writes: > > I suspect this is a compiler problem, can you easily > > test another version? > > On other machines, a windows zeranoe build from 8th December > works without crash and the build I used originally (with the > 'unusual' configure) works when compiled and run on another > architecture (8-core Xeon server, which is the target > architecture). This sounds as if you only tested 64bit on other systems, or do I misunderstand? You can test --enable-memalign-hack which should not be necessary on any sane system iirc. > I don't think I can get another version on my PC without > compiling it myself, which of course defeats the point of > seeing if it's my compiler or my machine. If the crash happens always for the same frame, it is probably not hardware-depending. > I'm running CentOS 5.7 32bit. Tested now on 32bit, does not crash here. Carl Eugen From ed.torbett at simulation-systems.co.uk Thu Dec 19 13:48:00 2013 From: ed.torbett at simulation-systems.co.uk (Ed Torbett) Date: Thu, 19 Dec 2013 12:48:00 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions In-Reply-To: Message-ID: <92ad1137.1cefcb8.fc650e.72ae@simulation-systems.co.uk> > This sounds as if you only tested 64bit on other systems, > or do I misunderstand? The zeranoe build is also 32-bit. > You can test --enable-memalign-hack which should not be > necessary on any sane system iirc. Still segfaults with --enable-memalign-hack --enable-gpl. We've found a CentOS RPM of ffmpeg 2.0.2 from ATrpms.net, this also segfaults at the same place when run on the same file on a different PC (but same OS/architecture): tgeorgescu at 184005-dell: pts/5: 49 files 153Mb -> ffmpeg -i combined.mp4 -vf mpdecimate -f null - ffmpeg version 2.0.2 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 28 2013 03:09:28 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52) configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' --disable-stripping libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.100 / 55. 12.100 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 79.101 / 3. 79.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'combined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.9.100 Duration: 00:00:50.08, start: 0.000000, bitrate: 451 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 450 kb/s, 12.50 fps, 12.50 tbr, 12800 tbn, 25 tbc Metadata: handler_name : VideoHandler Output #0, null, to 'pipe:': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.12.100 Stream #0:0(und): Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 12.50 tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> rawvideo) Press [q] to stop, [?] for help [null @ 0x82d9fa0] Encoder did not produce proper pts, making some up. Segmentation fault Here's the /proc/cpuinfo for this machine: tgeorgescu at 184005-dell: pts/5: 94 files 13Mb -> cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz stepping : 9 cpu MHz : 1600.000 cache size : 6144 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm [8] bogomips : 6385.85 processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz stepping : 9 cpu MHz : 1600.000 cache size : 6144 KB physical id : 0 siblings : 4 core id : 1 cpu cores : 4 apicid : 2 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm [8] bogomips : 6385.41 processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz stepping : 9 cpu MHz : 1600.000 cache size : 6144 KB physical id : 0 siblings : 4 core id : 2 cpu cores : 4 apicid : 4 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm [8] bogomips : 6385.42 processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz stepping : 9 cpu MHz : 1600.000 cache size : 6144 KB physical id : 0 siblings : 4 core id : 3 cpu cores : 4 apicid : 6 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm [8] bogomips : 6385.42 So this rules out compiler sanity, I guess. Any more ideas? From ed.torbett at simulation-systems.co.uk Thu Dec 19 14:56:00 2013 From: ed.torbett at simulation-systems.co.uk (Ed Torbett) Date: Thu, 19 Dec 2013 13:56:00 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions In-Reply-To: <92ad1137.1cefcb8.fc650e.72ae@simulation-systems.co.uk> Message-ID: <238adb11.1cefcc2.13b1625.6952@simulation-systems.co.uk> Segfault doesn't happen with --disable-sse2. This puts the segfault firmly in the SSE2 section of dsputilenc_mmx.c. Assembler is voodoo to me so I'm going to have to leave this for someone else to decode. Should I file this as a bug? From joolzg at btinternet.com Thu Dec 19 15:01:57 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 19 Dec 2013 14:01:57 +0000 (GMT) Subject: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext Message-ID: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> Im trying to work though the problems we have in converting teletext/dvbsubs to the various systems, 1. dvbsubs hard coded (overlayed) OK Need to use -canvas_size 720x576 and scale the canvas to fit your screen, still outstanding is a way of getting the real video size to make the rescale code easier to use. 2. dvbsubs reencoded FAILS Command Line ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k -c:s dvbsub -y -f mpegts a_dvb_enc.ts Fails due to the fact that mpegts decodes the TS stream and sets extradata to X and extradata_size to 4, this is correct, but when it gets to mpegtsenc this information has been lost and my new code which now adds the correct header for Teletext, sees the extradata_size==0 as meaning the subtitles are Teletext and NOT dvbsubs. So we are losing the extradata, extradata_size on the re-encode, see the lines "AVMEDIA_TYPE_SUBTITLE" , this is my debug code showing the value of codec->extradata and codec->extradata_size at this point in my ~ mpegtsenc.c:374 code ??????? case AVMEDIA_TYPE_SUBTITLE: ??? av_log( NULL, AV_LOG_WARNING, "AVMEDIA_TYPE_SUBTITLE %p %d\n", st->codec->extradata, st->codec->extradata_size); ??????????? if (!st->codec->extradata_size) { As you see I try and differentiate between the two types using the fact that the teletext does NOT use extradata and extradata_size. encoder at encoder:~/ffmpeg$ ./ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k -c:s dvbsub -y -f mpegts a_dvb_enc.ts ffmpeg version N-59212-g882b654 Copyright (c) 2000-2013 the FFmpeg developers ? built on Dec 19 2013 12:56:25 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-libzvbi --cc='ccache cc' ? libavutil????? 52. 58.101 / 52. 58.101 ? libavcodec???? 55. 45.102 / 55. 45.102 ? libavformat??? 55. 22.100 / 55. 22.100 ? libavdevice??? 55.? 5.102 / 55.? 5.102 ? libavfilter???? 4.? 0.100 /? 4.? 0.100 ? libswscale????? 2.? 5.101 /? 2.? 5.101 ? libswresample?? 0. 17.104 /? 0. 17.104 ? libpostproc??? 52.? 3.100 / 52.? 3.100 Extradata 0x3423a40 4 [mpeg2video @ 0x3423b80] Invalid frame dimensions 0x0. ??? Last message repeated 7 times [mpegts @ 0x341f9c0] PES packet size mismatch ??? Last message repeated 1 times Input #0, mpegts, from '../testStreams/bbc.ts': ? Duration: 00:00:26.63, start: 70669.147300, bitrate: 3007 kb/s ? Program 1 ??? Metadata: ????? service_name??? :? ????? service_provider: Generated by TSReader 2.8.46c on 2011/04/20 15:32 ??? Stream #0:0[0x119]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 8000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc ??? Stream #0:1[0x11a]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s ??? Stream #0:2[0x11d](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) [libx264 @ 0x3426e40] using SAR=64/45 [libx264 @ 0x3426e40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 [libx264 @ 0x3426e40] profile High, level 3.0 Output #0, mpegts, to 'a_dvb_enc.ts': ? Metadata: ??? encoder???????? : Lavf55.22.100 ??? Stream #0:0: Video: h264 (libx264), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=-1--1, 1300 kb/s, 90k tbn, 25 tbc ??? Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s ??? Stream #0:2(eng): Subtitle: dvb_subtitle (dvbsub) Stream mapping: ? Stream #0:0 -> #0:0 (mpeg2video -> libx264) ? Stream #0:1 -> #0:1 (mp2 -> mp2) ? Stream #0:2 -> #0:2 (dvbsub -> dvbsub) Press [q] to stop, [?] for help [mpegts @ 0x34261e0] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 1445404 >= 189004 [mpegts @ 0x34261e0] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 1539004 >= 214204 [mpegts @ 0x34261e0] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 1564204 >= 250204 AVMEDIA_TYPE_SUBTITLE (nil) 0 3. dvbsubs copied FAILS Command line ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k -c:s copy -y -f mpegts a_dvb.ts This runs though the encode cycle but i have yet to find anything, vlc/ffplay/etc that will show the subtitles. Get "invalid subtitle stream id" in vlc Any ideas on the problem in number 2? I get onto number 3 when i have number 2 fixed. joolz From cehoyos at ag.or.at Thu Dec 19 15:15:26 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 14:15:26 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?BUG_in_use_of_extradata_and_extradata=5Fs?= =?utf-8?q?ize_with_dvb_subtitles_and_teletext?= References: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> Message-ID: JULIAN GARDNER btinternet.com> writes: > 2. dvbsubs reencoded FAILS > > Command Line > ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k > -c:s dvbsub -y -f mpegts a_dvb_enc.ts How is this teletext-related? (Completely unrelated: Don't you agree that it makes reproducing all kind of bug reports much, much harder if you use "-c:v libx264"?) This looks like ticket #2024 > 3. dvbsubs copied FAILS > > Command line > ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k > -c:s copy -y -f mpegts a_dvb.ts I believe this is ticket #2989 Carl Eugen From tevans.uk at googlemail.com Thu Dec 19 15:18:23 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Thu, 19 Dec 2013 14:18:23 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions In-Reply-To: <238adb11.1cefcc2.13b1625.6952@simulation-systems.co.uk> References: <92ad1137.1cefcb8.fc650e.72ae@simulation-systems.co.uk> <238adb11.1cefcc2.13b1625.6952@simulation-systems.co.uk> Message-ID: On Thu, Dec 19, 2013 at 1:56 PM, Ed Torbett wrote: > Segfault doesn't happen with --disable-sse2. > > This puts the segfault firmly in the SSE2 section of dsputilenc_mmx.c. > > Assembler is voodoo to me so I'm going to have to leave this for someone else to decode. Should I file this as a bug? > I think Carl suggested this, but any chance of trying with a more up to date toolchain? gcc 4.1 is not exactly the most up to date compiler, almost certainly if there is a bug, it is a bug in gcc that will have been fixed in a later version of gcc. I have no knowledge of CentOS 5.7, but it appears there is a contributed devtools package for CentOS 5 that would give you a modern toolchain (gcc 4.7, modern binutils, modern gdb, modern valgrind) that installs to /opt. http://people.centos.org/~tru/devtools-1.1/readme Cheers Tom From joolzg at btinternet.com Thu Dec 19 15:25:08 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 19 Dec 2013 14:25:08 +0000 (GMT) Subject: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext In-Reply-To: References: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> Message-ID: <1387463108.70573.YahooMailNeo@web87802.mail.ir2.yahoo.com> >________________________________ > From: Carl Eugen Hoyos >To: ffmpeg-user at ffmpeg.org >Sent: Thursday, 19 December 2013, 15:15 >Subject: Re: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext > > >JULIAN GARDNER btinternet.com> writes: > >> 2. dvbsubs reencoded FAILS >> >> Command Line >> ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k >> -c:s dvbsub -y -f mpegts a_dvb_enc.ts > >How is this teletext-related? Did you read my explanation why it fails, it fails becase MPEGTSENC.C thinks this subtitle is TELETEXT not DVBSUBS, so its related as it affects bot DVBSUBS and TELETEXT >>(Completely unrelated: Don't you agree that it makes >reproducing all kind of bug reports much, much harder >if you use "-c:v libx264"?) > Sorry from now on i will omit the libx264, but as always the normal 1st reply is "COMMAND LINE AND OUTPUT OR WE WONT TALK TO YOU", now i post my command line what do i get ... I cant win can I Also the video encoder makes no difference as its the subtitles im talking about >This looks like ticket #2024 > >> 3. dvbsubs copied FAILS >> >> Command line >> ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k >> -c:s copy -y -f mpegts a_dvb.ts > >I believe this is ticket #2989 > >Carl Eugen > >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user > joolz From u at pkh.me Thu Dec 19 16:07:42 2013 From: u at pkh.me (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 19 Dec 2013 16:07:42 +0100 Subject: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext In-Reply-To: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> References: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> Message-ID: <20131219150742.GA21472@leki.pkh.me> On Thu, Dec 19, 2013 at 02:01:57PM +0000, JULIAN GARDNER wrote: > Im trying to work though the problems we have in converting teletext/dvbsubs to the various systems, > Cool, I'm looking forward this. [...] > 2. dvbsubs reencoded FAILS > [...] > 3. dvbsubs copied FAILS > > Command line > ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k -c:s copy -y -f mpegts a_dvb.ts > > This runs though the encode cycle but i have yet to find anything, vlc/ffplay/etc that will show the subtitles. Get "invalid subtitle stream id" in vlc > > Any ideas on the problem in number 2? > > I get onto number 3 when i have number 2 fixed. > Don't you think you should look at the the remuxing problem (3) instead of the encoding first, since you need a correct demuxing/muxing for testing this? Anyway, for the record, details on these problems can be found in #2024 and #2989 at least. Thanks for your last comment in #2024 BTW. So far we have only one working case: dvDsub ? dvBsub transcoding. dvBsub to dvBsub is broken in both transcoding (but potentially related to a demuxing issue) and transmuxing. -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From llee040 at sbcglobal.net Thu Dec 19 16:22:37 2013 From: llee040 at sbcglobal.net (L. Lee) Date: Thu, 19 Dec 2013 09:22:37 -0600 Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: <1387418547.4438.YahooMailNeo@web160802.mail.bf1.yahoo.com> References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> <1386871326.94343.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1387319451.27366.YahooMailNeo@web160803.mail.bf1.yahoo.com> <1387418547.4438.YahooMailNeo@web160802.mail.bf1.yahoo.com> Message-ID: On 12/18/13, 8:02 PM, "Nicholas Robbins" wrote: > > > >>> fps=fps=30000/1001,fieldmatch,decimate,yadif (which will yadif > > >> >> I would surely like to get a sample. I shouldn?t need more than 20-30 >> seconds to see what results I?m able to produce. You might be able to >> email me such an excerpt. I don?t see how any conversion to deinterlaced >> 30 fps would result in optimal output. Nearly any smooth horizontal >> panning is like getting slapped in the face 6 times per second. If >>output >> is deinterlaced, all 4th and 5th frames are duplicates. If not >> deinterlaced, those frames are interlaced complements which still take >> twice as long as a normal frame to play. Thanks. >> >> >> Laine Lee >> > >I will see about sending you a snippet offline. I can't seem to edit the >file as a vob without starting at the beginning and there aren't really >good problems at that point. So I've remuxed it into a mkv using >mkvmerge. > >Also, I don't think you are quite understanding the filters. >fps=30000/1001 is actually just relabeling things. If you've been >following the thread, the video file actually has this man frames, but >the container things is has 60000/1001 fps. So that first filter just >labels the file correctly. The second filter should replace the 30 fps >telecined with ABCDD non-telecinded originals. Decimate will then remove >every fifth frame. At least that is how it is supposed to work. However, >it doesn't always work, some frames sometimes are missed, sometimes due >to editing after telecining for instance. These frames are supposed to me >marked as interlaced by fieldmatch and then yadif can de-comb them, which >isn't ideal, but the information to do the ideal thing is on the cutting >room floor presumably. > >However, yadif=deint=interlaced isn't noticing any interlaced frames. So >if I want to remove the combing, I have to yadif everything. > >In any case, I'll send you the file and you can play with it. > Thanks for the 0:30 sample file. Yes, some are interlaced, but not in the pattern I would expect for telecined video. If you open it in mplayer, you can pause it at any point by pressing space, then advance frame by frame using ?.?. What I see for the interlacing is the pattern of 3 frames interlaced followed by 3 frames non-interlaced. Please try that and let me know if you agree. Pulldown would be interlaced frames 4 and 5 of every 5, I believe. Here?s a yadif filter chain that did the same thing as the one I mailed you privately using -deinterlace, except probably better. Thanks again. ffmpeg -i test1.mkv -pix_fmt yuv420p -c:v libx264 -vf ?yadif=0,fps=fps=30000/1001" -preset slower -crf 18 -x264opts keyint=40:bitrate=1800:qpmin=8:qpmax=28:qpstep=4 test1.m4v Laine Lee From joolzg at btinternet.com Thu Dec 19 16:26:44 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 19 Dec 2013 15:26:44 +0000 (GMT) Subject: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext In-Reply-To: <20131219150742.GA21472@leki.pkh.me> References: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> <20131219150742.GA21472@leki.pkh.me> Message-ID: <1387466804.41086.YahooMailNeo@web87804.mail.ir2.yahoo.com> ----- Original Message ----- > From: Cl?ment B?sch > To: FFmpeg user questions > Cc: > Sent: Thursday, 19 December 2013, 16:07 > Subject: Re: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext > > On Thu, Dec 19, 2013 at 02:01:57PM +0000, JULIAN GARDNER wrote: >> Im trying to work though the problems we have in converting > teletext/dvbsubs to the various systems, >> > > Cool, I'm looking forward this. > > [...] >> 2. dvbsubs reencoded FAILS >> > [...] >> 3. dvbsubs copied FAILS >> >> Command line >> ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k -c:s copy -y -f > mpegts a_dvb.ts >> >> This runs though the encode cycle but i have yet to find anything, > vlc/ffplay/etc that will show the subtitles. Get "invalid subtitle stream > id" in vlc >> >> Any ideas on the problem in number 2? >> >> I get onto number 3 when i have number 2 fixed. >> > > Don't you think you should look at the the remuxing problem (3) instead of > the encoding first, since you need a correct demuxing/muxing for testing > this? Remuxing problems go away as soon as you remove the hack in ffmpeg.c for doing the dual packet!, what is needed in ffmpeg.c is a heartbeat which takes the last updated subtitle, adds on the timeout and waits for this to pass before issuing a "0 object region". im looking into the code for the "subs overlay" hack at the moment. What will happen now is the last subtitle will stay on sreen until a new one arrives. With all the hacks its hard working out what to look at > Anyway, for the record, details on these problems can be found in #2024 > and #2989 at least. Thanks for your last comment in #2024 BTW. > No i dont think #2024 is what im looking at, this is new. DVBSUBS are decoded and the 4 bytes for the page ids are correctly remembered but crucially when the output stream is created as a dvbsubs stream the extradata and extradata_size are not updated, so these are NULL and 0. Now my modification to show the teletext page information, and also the code which puts these back into the new TS are dependant on the extradata size being 0, so any transcoded dvbsubs are flagged in the pmt as as teletext. > So far we have only one working case: dvDsub ? dvBsub transcoding. dvBsub > to dvBsub is broken in both transcoding (but potentially related to a > demuxing issue) and transmuxing. > Only working ones are dvbsubs decoded and overlayed teletext decoded and overlayed ?-- > Cl?ment B. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From u at pkh.me Thu Dec 19 16:29:42 2013 From: u at pkh.me (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 19 Dec 2013 16:29:42 +0100 Subject: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext In-Reply-To: <1387466804.41086.YahooMailNeo@web87804.mail.ir2.yahoo.com> References: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> <20131219150742.GA21472@leki.pkh.me> <1387466804.41086.YahooMailNeo@web87804.mail.ir2.yahoo.com> Message-ID: <20131219152942.GB21472@leki.pkh.me> On Thu, Dec 19, 2013 at 03:26:44PM +0000, JULIAN GARDNER wrote: > > > > > ----- Original Message ----- > > From: Cl?ment B?sch > > To: FFmpeg user questions > > Cc: > > Sent: Thursday, 19 December 2013, 16:07 > > Subject: Re: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext > > > > On Thu, Dec 19, 2013 at 02:01:57PM +0000, JULIAN GARDNER wrote: > >> Im trying to work though the problems we have in converting > > teletext/dvbsubs to the various systems, > >> > > > > Cool, I'm looking forward this. > > > > [...] > >> 2. dvbsubs reencoded FAILS > >> > > [...] > >> 3. dvbsubs copied FAILS > >> > >> Command line > >> ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k -c:s copy -y -f > > mpegts a_dvb.ts > >> > >> This runs though the encode cycle but i have yet to find anything, > > vlc/ffplay/etc that will show the subtitles. Get "invalid subtitle stream > > id" in vlc > >> > >> Any ideas on the problem in number 2? > >> > >> I get onto number 3 when i have number 2 fixed. > >> > > > > Don't you think you should look at the the remuxing problem (3) instead of > > the encoding first, since you need a correct demuxing/muxing for testing > > this? > > Remuxing problems go away as soon as you remove the hack in ffmpeg.c for doing the dual packet! Isn't the dual packet hack only called with transcoding? Also, we should move this discussion to ffmpeg-devel. [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From joolzg at btinternet.com Thu Dec 19 16:35:23 2013 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 19 Dec 2013 15:35:23 +0000 (GMT) Subject: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext In-Reply-To: <20131219152942.GB21472@leki.pkh.me> References: <1387461717.7119.YahooMailNeo@web87805.mail.ir2.yahoo.com> <20131219150742.GA21472@leki.pkh.me> <1387466804.41086.YahooMailNeo@web87804.mail.ir2.yahoo.com> <20131219152942.GB21472@leki.pkh.me> Message-ID: <1387467323.78601.YahooMailNeo@web87806.mail.ir2.yahoo.com> ----- Original Message ----- > From: Cl?ment B?sch > To: FFmpeg user questions > Cc: > Sent: Thursday, 19 December 2013, 16:29 > Subject: Re: [FFmpeg-user] BUG in use of extradata and extradata_size with dvb subtitles and teletext > > On Thu, Dec 19, 2013 at 03:26:44PM +0000, JULIAN GARDNER wrote: >> >> >> >> >> ----- Original Message ----- >> > From: Cl?ment B?sch >> > To: FFmpeg user questions >> > Cc: >> > Sent: Thursday, 19 December 2013, 16:07 >> > Subject: Re: [FFmpeg-user] BUG in use of extradata and extradata_size > with dvb subtitles and teletext >> > >> > On Thu, Dec 19, 2013 at 02:01:57PM +0000, JULIAN GARDNER wrote: >> >>? Im trying to work though the problems we have in converting >> > teletext/dvbsubs to the various systems, >> >> >> > >> > Cool, I'm looking forward this. >> > >> > [...] >> >>? 2. dvbsubs reencoded FAILS >> >> >> > [...] >> >>? 3. dvbsubs copied FAILS >> >> >> >>? Command line >> >>? ffmpeg -i ../testStreams/bbc.ts -c:v libx264 -b:v 1300k -c:s copy > -y -f >> > mpegts a_dvb.ts >> >> >> >>? This runs though the encode cycle but i have yet to find > anything, >> > vlc/ffplay/etc that will show the subtitles. Get "invalid > subtitle stream >> > id" in vlc >> >> >> >>? Any ideas on the problem in number 2? >> >> >> >>? I get onto number 3 when i have number 2 fixed. >> >> >> > >> > Don't you think you should look at the the remuxing problem (3) > instead of >> > the encoding first, since you need a correct demuxing/muxing for > testing >> > this? >> >> Remuxing problems go away as soon as you remove the hack in ffmpeg.c for > doing the dual packet! > > Isn't the dual packet hack only called with transcoding? > > Also, we should move this discussion to ffmpeg-devel. > AHHHHHHHHH > [...] > > -- > Cl?ment B. > From onephatcat at earthlink.net Thu Dec 19 17:01:35 2013 From: onephatcat at earthlink.net (Joel B) Date: Thu, 19 Dec 2013 08:01:35 -0800 Subject: [FFmpeg-user] Algorithm/Source Code for Changing the Resolution & Frame Rate using FFMpeg. In-Reply-To: References: <1387336249.2974.YahooMailNeo@web125004.mail.ne1.yahoo.com> <20131218182054.GM3396@barisone> <96B4C3E0-619E-46F6-9911-76B2D5E6919A@yahoo.com> Message-ID: <1496B139-ACD3-49B5-A5B9-EF33A7F41EFD@earthlink.net> > On Dec 19, 2013, at 1:00 AM, Carl Eugen Hoyos wrote: > > N. Syazrina M.A.S yahoo.com> writes: > >> Could you briefly explain the algorithm for >> spatial up/downsampling used in this program. > > Please see the fine documentation: > https://ffmpeg.org/ffmpeg-scaler.html > I think he's asking about the algorithm and mathematics used in the scaler not how to use the function -J From ed.torbett at simulation-systems.co.uk Thu Dec 19 17:05:00 2013 From: ed.torbett at simulation-systems.co.uk (Ed Torbett) Date: Thu, 19 Dec 2013 16:05:00 +0000 Subject: [FFmpeg-user] Segfault in mpdecimate filter when using ssse3/mmx extensions In-Reply-To: Message-ID: <26f9777c.1cefcd4.1b12469.5f90@simulation-systems.co.uk> > I have no knowledge of CentOS 5.7, but it appears there is a > contributed devtools package for CentOS 5 that would give you a modern > toolchain (gcc 4.7, modern binutils, modern gdb, modern valgrind) that > installs to /opt. Well, it was a pain to install but I'm happy to report that it's resolved the segfault. Looks like something in the toolchain was screwing it up. Thanks for the help on this one Carl and Tom! Ed Torbett From cehoyos at ag.or.at Thu Dec 19 18:07:34 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 19 Dec 2013 17:07:34 +0000 (UTC) Subject: [FFmpeg-user] Algorithm/Source Code for Changing the Resolution & Frame Rate using FFMpeg. References: <1387336249.2974.YahooMailNeo@web125004.mail.ne1.yahoo.com> <20131218182054.GM3396@barisone> <96B4C3E0-619E-46F6-9911-76B2D5E6919A@yahoo.com> <1496B139-ACD3-49B5-A5B9-EF33A7F41EFD@earthlink.net> Message-ID: Joel B earthlink.net> writes: > >> Could you briefly explain the algorithm for > >> spatial up/downsampling used in this program. > > > > Please see the fine documentation: > > https://ffmpeg.org/ffmpeg-scaler.html > > I think he's asking about the algorithm and mathematics > used in the scaler not how to use the function I believe the link gives a lot of informations about the algorithms (and very little about the usage) - that's why I posted it. For information about the used mathematics it will be necessary to read the fine source afaict. Carl Eugen From gjmata at gmail.com Thu Dec 19 22:18:05 2013 From: gjmata at gmail.com (Gustavo J Mata) Date: Thu, 19 Dec 2013 16:48:05 -0430 Subject: [FFmpeg-user] Good Tutorial on Video formats? In-Reply-To: References: <20131217125328.1c2e779d@lrcd.com> Message-ID: Thanks! On Wed, Dec 18, 2013 at 12:19 AM, Swapnil Singh wrote: > Try the pearson publications on video standards.It consists of mpeg2 mpeg4 > h263 and h264 > On Dec 18, 2013 3:23 AM, "Lou" wrote: > > > On Tue, 17 Dec 2013 12:28:39 -0430 > > Gustavo J Mata wrote: > > > > > Does anybody know a good introduction to video encoders, containers, > > frame > > > rates, bit rates, compression schemes, and such? > > > > The FFmpeg Wiki has some articles targeted for the new user: > > > > http://trac.ffmpeg.org/wiki/ > > > > "The H.264 Advanced Video Compression Standard" (2nd edition) may be of > > interest. > > > > These answers on superuser might help: > > http://superuser.com/a/300997/110524 > > http://superuser.com/a/347434/110524 > > > > Of course if you have any specific questions you can ask them on this > > mailing list. > > _______________________________________________ > > 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 > -- ?La ignorancia, aliada con el poder, es el m?s feroz enemigo que puede tener la justicia.? (James Baldwin) Visite mi Blog en Apartaderos From stefasab at gmail.com Fri Dec 20 00:18:40 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 20 Dec 2013 00:18:40 +0100 Subject: [FFmpeg-user] ffserver HTTP stream playback freeze In-Reply-To: <20131218184927.GN3396@barisone> References: <20131218184927.GN3396@barisone> Message-ID: <20131219231840.GA18898@barisone> On date Wednesday 2013-12-18 19:49:27 +0100, Stefano Sabatini wrote: > Hi, > > I'm trying to debug this but since it's starting to take much time I > wonder if someone already got the same issue, and found a fix for it. > > Scenario: I'm generating a stream with ffmpeg, which is then sent to > ffserver and published as an HTTP resource. > > Problem: at some point the published stream is interrupted, I usually > get decoding errors on the client (probably due to a segmented > packet), and the player freezes. If I now restart the player, the > stream will be played again until the next freeze. Many instances of > player/downloader can be created at the same time, and each one seems > to freeze independently from the others. > > The freezeing time usually is just a few seconds, but the playback > duration varies from a few seconds to dozens of seconds. > > If I use ffplay or vlc the stream usually freezes after few seconds, > but playback seems to last much more if I download the stream with > wget instead (so it may be somehow related to the TCP/HTTP session > between ffplay and ffserver). > > I tried several combinations, changing output container, video codec, > and bitrate, but it doesn't seem to affect the issue. > > Curiously, I get this problem only when I play the stream from a > remote machine. Works fine in my internal network and in an external one, freeze issues observed in two external networks. TCP debugging with wireshark shows that the freeze occurrs just after a TCP ZeroWindow event on the client side, then for some reasons the server stops to react and won't send new packets. At this point, the issue seems probably due to the network configuration and is maybe related to the buffering parameters adopted by client / server. Suggestions about how to handle the issue are still welcome. From kieran at knhn.me Fri Dec 20 04:48:06 2013 From: kieran at knhn.me (Kieran Hanrahan) Date: Thu, 19 Dec 2013 22:48:06 -0500 Subject: [FFmpeg-user] Map Only Certain Channels to EBUR128 Filter Message-ID: <52B3BDF6.5030209@knhn.me> Hello, Thanks in advance for any replies. I frequently deal with clips that have a 5.1 mix on channels 0-6 and the stereo mix on 7-8. How could I pass just the 5.1 or stereo mix channels to the EBUR128 filter? Below is my attempt using a filter chain of channelmap and ebur. I must not understand how to use a chain of filters. ffmpeg -i foo.wav -filter 'channelmap=0|1|2|3|4|5:channel_layout=5.1; ebur128' -f null - ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers built on Sep 4 2013 23:36:01 with Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [wav @ 0x7f96b2806600] max_analyze_duration 5000000 reached at 5002667 microseconds Guessed Channel Layout for Input Stream #0.0 : 7.1 Input #0, wav, from 'foo.wav': Metadata: encoded_by : Autodesk(R) Flame(R) 2013 date : 2013-12-18 creation_time : 11:55:11 time_reference : 192192 coding_history : Duration: 00:00:24.02, bitrate: 6144 kb/s Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 7.1, s16, 6144 kb/s [channel map filter @ 0x7f96b2bc1400] Key '0|1|2|3|4|5:channel_layout' not found. [AVFilterGraph @ 0x7f96b2423b20] Error initializing filter 'channelmap' with args '0|1|2|3|4|5:channel_layout=5.1' Error opening filters! From lou at lrcd.com Fri Dec 20 08:09:04 2013 From: lou at lrcd.com (Lou) Date: Thu, 19 Dec 2013 22:09:04 -0900 Subject: [FFmpeg-user] jpeg2000/libopenjpeg lossless? In-Reply-To: <20131218121739.GH29103@krille.blacktrash.org> References: <52AF89B7.3070904@das-werkstatt.com> <20131217113929.82907l1pxxs0uyg1@webmail.tuwien.ac.at> <78879582-A7E6-4EF7-A5DC-717FD452C81D@dericed.com> <52B0D3E8.2020209@das-werkstatt.com> <20131218121739.GH29103@krille.blacktrash.org> Message-ID: <20131219220904.7b40011f@lrcd.com> On Wed, 18 Dec 2013 12:17:39 +0000 Christian Ebert wrote: > * Peter B. on Tuesday, December 17, 2013 at 23:44:56 +0100 > > missing "-vcodec": > > Dave and I used the new syntax "-v:c". > > -c:v I guess this is one advantage of using "-vcodec" instead since it's harder to typo/transpose. From george at nsup.org Fri Dec 20 08:12:29 2013 From: george at nsup.org (Nicolas George) Date: Fri, 20 Dec 2013 08:12:29 +0100 Subject: [FFmpeg-user] ffserver HTTP stream playback freeze In-Reply-To: <20131219231840.GA18898@barisone> References: <20131218184927.GN3396@barisone> <20131219231840.GA18898@barisone> Message-ID: <20131220071229.GA3960@phare.normalesup.org> Le decadi 30 frimaire, an CCXXII, Stefano Sabatini a ?crit?: > Works fine in my internal network and in an external one, freeze > issues observed in two external networks. TCP debugging with wireshark > shows that the freeze occurrs just after a TCP ZeroWindow event on the > client side, then for some reasons the server stops to react and won't > send new packets. You mean: the client sends ZeroWindow to the server and the server stops reacting? At a wild guess, I would say that ZeroWindow will cause a system call to block on the server instead of succeeding immediately, and that could be handled wrong in ffserver code: the socket could be in non-blocking mode, the system call returns EAGAIN, and ffserver treats it partially as a permanent error. Regards, -- Nicolas George From RWyk at irdeto.com Fri Dec 20 09:58:24 2013 From: RWyk at irdeto.com (Roelof van Wyk) Date: Fri, 20 Dec 2013 09:58:24 +0100 Subject: [FFmpeg-user] Re-encode single frame Message-ID: <3B24A2928FED1E42A394BF9E6099788B04C0507A75@NLHFD-MSG008.domain1.intra> Hi All I need to do the following: 1. Decode a H264 stream and identify a certain B frame/picture 2. Perform some modifications to the frame 3. Re-encode _only_ that frame and insert back into the original stream, without any modifications to the surrounding frames. I do not want to re-encode the entire stream So if the input GOP is IBBPBBPBBP..., the output GOP must be IBBPB'PBBP... Does the ffmpeg/libav API allow the encoder context to be initialized from the decoder context such that this can be done, and if so, can anybody provide me with some ideas or examples? Thanks Roelof From cehoyos at ag.or.at Fri Dec 20 10:23:43 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 20 Dec 2013 09:23:43 +0000 (UTC) Subject: [FFmpeg-user] Re-encode single frame References: <3B24A2928FED1E42A394BF9E6099788B04C0507A75@NLHFD-MSG008.domain1.intra> Message-ID: Roelof van Wyk irdeto.com> writes: > 1. Decode a H264 stream and identify a certain B > frame/picture > > 2. Perform some modifications to the frame > > 3. Re-encode _only_ that frame and insert back into the > original stream, without any modifications to the surrounding > frames. I do not want to re-encode the entire stream > > So if the input GOP is IBBPBBPBBP..., the output GOP must be > IBBPB'PBBP... Please do not cross-post, this is (always) considered rude. The FFmpeg API certainly allows you to extract NAL's from H264 streams (and it obviously allows to write them in an output stream) but I wouldn't be surprised if you have to make major changes to libx264 to allow inserting a frame into an existing unchanged stream. Note that B-frames are allowed to be reference frames, for such cases what you want is impossible afaict. Carl Eugen From cehoyos at ag.or.at Fri Dec 20 10:27:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 20 Dec 2013 09:27:05 +0000 (UTC) Subject: [FFmpeg-user] Map Only Certain Channels to EBUR128 Filter References: <52B3BDF6.5030209@knhn.me> Message-ID: Kieran Hanrahan knhn.me> writes: > ffmpeg -i foo.wav -filter > 'channelmap=0|1|2|3|4|5:channel_layout=5.1;ebur128' -f null - > ffmpeg version 1.2.1 This is a little old, it should work fine with current FFmpeg git head. Carl Eugen From stefasab at gmail.com Fri Dec 20 18:23:56 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 20 Dec 2013 18:23:56 +0100 Subject: [FFmpeg-user] ffserver HTTP stream playback freeze In-Reply-To: <20131220071229.GA3960@phare.normalesup.org> References: <20131218184927.GN3396@barisone> <20131219231840.GA18898@barisone> <20131220071229.GA3960@phare.normalesup.org> Message-ID: <20131220172356.GA20496@barisone> On date Friday 2013-12-20 08:12:29 +0100, Nicolas George wrote: > Le decadi 30 frimaire, an CCXXII, Stefano Sabatini a ?crit?: > > Works fine in my internal network and in an external one, freeze > > issues observed in two external networks. TCP debugging with wireshark > > shows that the freeze occurrs just after a TCP ZeroWindow event on the > > client side, then for some reasons the server stops to react and won't > > send new packets. > > You mean: the client sends ZeroWindow to the server and the server stops > reacting? At a wild guess, I would say that ZeroWindow will cause a system > call to block on the server instead of succeeding immediately, and that > could be handled wrong in ffserver code: the socket could be in non-blocking > mode, the system call returns EAGAIN, and ffserver treats it partially as a > permanent error. I don't think so, the issue cannot be reproduced systematically, I got the freeze only in particular networks (2 over 3 tested), and never on my local network. So it seems it is somehow related to the tested network (and seems more a problem at the network level rather than at the application level, where I can't see apparent errors). The ZeroWindow event usually triggers the condition where after some short time I see no packets from the server, nor the connection is closed, so that no data is fed to the client and it seems to hang. From kieran at knhn.me Fri Dec 20 19:30:51 2013 From: kieran at knhn.me (Kieran Hanrahan) Date: Fri, 20 Dec 2013 13:30:51 -0500 Subject: [FFmpeg-user] Map Only Certain Channels to EBUR128 Filter In-Reply-To: References: <52B3BDF6.5030209@knhn.me> Message-ID: <52B48CDB.9080605@knhn.me> Works on 2.1.1 Thanks! Carl Eugen Hoyos wrote: > > > ffmpeg -i foo.wav -filter 'channelmap=0|1|2|3|4|5:channel_layout=5.1; > ebur128' -f null - From jpboard2 at yahoo.com Sat Dec 21 15:05:38 2013 From: jpboard2 at yahoo.com (James Board) Date: Sat, 21 Dec 2013 06:05:38 -0800 (PST) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. In-Reply-To: Message-ID: <1387634738.86083.YahooMailBasic@web120205.mail.ne1.yahoo.com> > > I'm trying to convert an AVI file that is compressed > > with ffvhuff into another AVI file that isn't > > compressed with ffvhuff (rawvideo). > > > The output file is blue-shifted. > > This is apparently (I am still searching for an > "official" sample) a bug in MPlayer, work-around is > to add the following to your mplayer command line: > -vc -raw422P, > Carl Eugen I tried this and the pixels still have the blue tint. Here is the mplayer command and output. >mplayer -fs -idx -vc raw422P OUT.avi MPlayer SVN-r36459-4.4.7 (C) 2000-2013 MPlayer Team Playing OUT.avi. libavformat version 55.18.104 (internal) AVI file format detected. [aviheader] Video stream found, -vid 0 AVI: No audio stream found -> no sound. VIDEO: [Y42B] 1920x1080 16bpp 29.970 fps 994333.8 kbps (121378.6 kbyte/s) Clip info: Software: Lavf55.12.102 Load subtitles in ./ [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails. ========================================================================== Forced video codec: raw422P Opening video decoder: [raw] RAW Uncompressed Video Movie-Aspect is undefined - no prescaling applied. VO: [gl_nosw] 1920x1080 => 1920x1080 Planar 422P [fs] Selected video codec: [raw422P] vfm: raw (RAW 422P) ========================================================================== Audio: no sound Starting playback... V: 0.5 17/ 17 0% 79% 0.0% 0 0 Exiting... (Quit) From cehoyos at ag.or.at Sat Dec 21 15:19:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 21 Dec 2013 14:19:40 +0000 (UTC) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. References: <1387634738.86083.YahooMailBasic@web120205.mail.ne1.yahoo.com> Message-ID: James Board yahoo.com> writes: > > > The output file is blue-shifted. > > > > This is apparently (I am still searching for an > > "official" sample) a bug in MPlayer, work-around is > > to add the following to your mplayer command line: > > -vc -raw422P, _^_ _^_ > >mplayer -fs -idx -vc raw422P OUT.avi _^^^^^^^_ Remember that the alternative is to add the following line to your MPlayer config file: vc=-raw422P, Carl Eugen From nickrobbins at yahoo.com Sat Dec 21 15:59:32 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Sat, 21 Dec 2013 06:59:32 -0800 (PST) Subject: [FFmpeg-user] Confusion about fieldmatch, decimate and framerate (now with yadif) In-Reply-To: References: <1384910144.64014.YahooMailBasic@web160806.mail.bf1.yahoo.com> <1386010917.18795.YahooMailNeo@web160805.mail.bf1.yahoo.com> <1386027037.26349.YahooMailNeo@web160802.mail.bf1.yahoo.com> <1386512688.28292.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1386643459.40979.YahooMailNeo@web160806.mail.bf1.yahoo.com> <1386871326.94343.YahooMailNeo@web160804.mail.bf1.yahoo.com> <1387319451.27366.YahooMailNeo@web160803.mail.bf1.yahoo.com> <1387418547.4438.YahooMailNeo@web160802.mail.bf1.yahoo.com> Message-ID: <1387637972.2852.YahooMailNeo@web160803.mail.bf1.yahoo.com> I double checked, and it did have the 3-3 pattern you suggested. I don't know what could cause that. I looked around on the internet and couldn't find a Telecine process that would produce a 3-3 pattern. I decided to just do yadif. In this case the fps filter is unneeded. The resulting file thinks it has a different fps but it plays correctly. I use yadif=deint=interlaced and it worked fine. Thanks for your help. -Nick > On Thursday, December 19, 2013 11:11 AM, L. Lee wrote: > > > > On 12/18/13, 8:02 PM, "Nicholas Robbins" > wrote: >> >> >> >>>> fps=fps=30000/1001,fieldmatch,decimate,yadif (which will yadif >> >> >>> >>> I would surely like to get a sample. I shouldn?t need more than 20-30 >>> seconds to see what results I?m able to produce. You might be able to >>> email me such an excerpt. I don?t see how any conversion to > deinterlaced >>> 30 fps would result in optimal output. Nearly any smooth horizontal >>> panning is like getting slapped in the face 6 times per second. If >>> output >>> is deinterlaced, all 4th and 5th frames are duplicates. If not >>> deinterlaced, those frames are interlaced complements which still take >>> twice as long as a normal frame to play. Thanks. >>> >>> >>> Laine Lee >>> >> >> I will see about sending you a snippet offline. I can't seem to edit the >> file as a vob without starting at the beginning and there aren't really >> good problems at that point.? So I've remuxed it into a mkv using >> mkvmerge. >> >> Also, I don't think you are quite understanding the filters. >> fps=30000/1001 is actually just relabeling things. If you've been >> following the thread, the video file actually has this man frames, but >> the container things is has 60000/1001 fps. So that first filter just >> labels the file correctly. The second filter should replace the 30 fps >> telecined with? ABCDD non-telecinded originals. Decimate will then remove >> every fifth frame. At least that is how it is supposed to work. However, >> it doesn't always work, some frames sometimes are missed, sometimes due >> to editing after telecining for instance. These frames are supposed to me >> marked as interlaced by fieldmatch and then yadif can de-comb them, which >> isn't ideal, but the information to do the ideal thing is on the cutting >> room floor presumably. >> >> However, yadif=deint=interlaced isn't noticing any interlaced frames. So >> if I want to remove the combing, I have to yadif everything. >> >> In any case, I'll send you the file and you can play with it. >> > > > Thanks for the 0:30 sample file. Yes, some are interlaced, but not in the > pattern I would expect for telecined video. If you open it in mplayer, you > can pause it at any point by pressing space, then advance frame by frame > using ?.?. What I see for the interlacing is the pattern of 3 frames > interlaced followed by 3 frames non-interlaced. Please try that and let me > know if you agree. Pulldown would be interlaced frames 4 and 5 of every 5, > I believe. Here?s a yadif filter chain that did the same thing as the one > I mailed you privately using -deinterlace, except probably better. Thanks > again. > > ffmpeg -i test1.mkv -pix_fmt yuv420p -c:v libx264 -vf > ?yadif=0,fps=fps=30000/1001" -preset slower -crf 18 -x264opts > keyint=40:bitrate=1800:qpmin=8:qpmax=28:qpstep=4 test1.m4v > > > Laine Lee > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From jpboard2 at yahoo.com Sat Dec 21 16:52:28 2013 From: jpboard2 at yahoo.com (James Board) Date: Sat, 21 Dec 2013 07:52:28 -0800 (PST) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. In-Reply-To: Message-ID: <1387641148.66797.YahooMailBasic@web120201.mail.ne1.yahoo.com> > > >mplayer -fs -idx -vc raw422P OUT.avi > ? ? ? ? ? ? ? ? > > Remember that the alternative is to add the following >line to your MPlayer config file: >vc=-raw422P, > >Carl Eugen Yes, I tried this. It would not play the video. The error message was: Cannot find codec matching selected -vo and video format 0x48564646 This occured even when I played AVI files that previously worked. So, I removed that line from the MPlayer config files. From cehoyos at ag.or.at Sat Dec 21 17:47:32 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 21 Dec 2013 16:47:32 +0000 (UTC) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. References: <1387641148.66797.YahooMailBasic@web120201.mail.ne1.yahoo.com> Message-ID: James Board yahoo.com> writes: > > Remember that the alternative is to add the following > >line to your MPlayer config file: > >vc=-raw422P, > > Yes, I tried this. It would not play the video. > The error message was: > Cannot find codec matching selected -vo and video format 0x48564646 (Command line and complete, uncut console output missing.) > This occured even when I played AVI files that previously worked. > So, I removed that line from the MPlayer config files. Please paste your complete MPlayer config file. Note that it works fine here (and that I copy-pasted the line from this very email to make sure that I did no make a typo) so I am quite sure that you did not insert the line correctly into your config file. And the reason I did not write: " add the following line to your MPlayer config file: vc=-raw422P, " but " add the following line to your MPlayer config file: vc=-raw422P, " was of course to make it as clear as possible imo how the line you have to add to your MPlayer config file looks like. Carl Eugen From igardais at yahoo.fr Sat Dec 21 20:27:42 2013 From: igardais at yahoo.fr (Ionel GARDAIS) Date: Sat, 21 Dec 2013 20:27:42 +0100 Subject: [FFmpeg-user] CD-DTS Message-ID: Hi list, Has anyone succeeded in making a CD-DTS (a.k.a. DTS Audio CD a.k.a. 5.1 Music Disc) ? I'm desperately trying to find the right combination of options to create a valid, burnable wave file that spits DTS on my receiver. Unfortunately, all I get is white noise. The key seems to pack a DTS flow inside a classic 2-channel, 44100Hz, PCM-declared WAV container. Unfortunately, $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 dts-output.wav creates a 6-channel wav container for the DTS datas and $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 -ac 2 dts-2c-output.wav downmix the 5.1 aac input to a 2-channel wav file I tried to bit-bang the dts-output.wav so the wav container is declared as wanted but it fails. The file at http://www.lamoateffe.com/samples/RedHouseDTS.wav is a valid wav-packed DTS file. Any advice welcomed. Thanks, Ionel From stefasab at gmail.com Sat Dec 21 20:58:48 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Sat, 21 Dec 2013 20:58:48 +0100 Subject: [FFmpeg-user] Best documentation web site ( or other source ) In-Reply-To: <1387205685.55144.YahooMailNeo@web121101.mail.ne1.yahoo.com> References: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> <1387205685.55144.YahooMailNeo@web121101.mail.ne1.yahoo.com> Message-ID: <20131221195848.GE20496@barisone> On date Monday 2013-12-16 06:54:45 -0800, Phil Rhodes wrote: > > I do not understand this, what is not documented? > > > >?http://ffmpeg.org/documentation.html > > The problem is that it's just a list of features. Carefully writing > down the names of all the things that a program does is not adequate > documentation. There is almost no usage information. I mean, I'm a > reasonably experienced computer user, and I'm not sure what you mean > by: > > ffmpeg [global_options] {[input_file_options] -i ?input_file?} ... {[output_file_options] ?output_file?} ... About this, it is probably true (that is: we may extend synopsis section to give a brief explanation). Note that in case of ffmpeg this is introduced in the first section "Introduction". > > There is no basic introduction to typical tasks https://ffmpeg.org/ffmpeg.html#Examples > examples There are tons of examples in the various sections. Also there is the wiki and many third-party (more or less outdated) tutorials you can find on the Internet. > definitions of terms, or anything of that sort. This is partly introduced in "Detailed description": https://ffmpeg.org/ffmpeg.html#Detailed-description About terms, this is really out of scope of FFmpeg, since it employs the standard terminology adopted in the multimedia field, and the user is supposed to have some basic working knowledge and terminlogoy about the main topics (encoding, decoding, muxing, demuxing, etc.). That said, having some sort of FFmpeg dictionary (ffmpeg-jargon(1)?) would be probably a good idea. > > This is how you document commandline software: > > http://technet.microsoft.com/en-us/library/bb490816.aspx3 Even for this very basic tool, I can't really understand what it's doing by simply reading that page, without having more contextual information. ... This is not to say that FFmpeg documentation is complete or cannot be improved, far from it, just that your claim is a bit exagerated. From phil_rhodes at rocketmail.com Sun Dec 22 00:22:38 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 21 Dec 2013 15:22:38 -0800 (PST) Subject: [FFmpeg-user] Best documentation web site ( or other source ) In-Reply-To: <20131221195848.GE20496@barisone> References: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> <1387205685.55144.YahooMailNeo@web121101.mail.ne1.yahoo.com> <20131221195848.GE20496@barisone> Message-ID: <1387668158.11981.YahooMailNeo@web121103.mail.ne1.yahoo.com> I don't intend to respond pointwise Stefano's objections to my criticism of ffmpeg's documentation as it would clog the list with largely pointless back-and-forth which is unlikely to have a useful result. I am aware that user opinion of ffmpeg and its documentation is not valued and I'm not going to waste my time; my initial objections stand. P From cehoyos at ag.or.at Sun Dec 22 03:02:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Dec 2013 02:02:33 +0000 (UTC) Subject: [FFmpeg-user] CD-DTS References: Message-ID: Ionel GARDAIS yahoo.fr> writes: > $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 dts-output.wav > creates a 6-channel wav container for the DTS datas and The experimental dts encoder is unable to reach a given bitrate so this cannot work. I didn't test the following and I am not claiming it works but if you have a dts-encoded file with the correct bitrate (!), the following is the approximate process: $ ffmpeg -f s16le -ac 2 -ar 44100 -i your_dts_encoded_file.dca -acodec copy out.wav Carl Eugen From jawknee at sonic.net Sun Dec 22 03:07:55 2013 From: jawknee at sonic.net (Johnny Klonaris) Date: Sat, 21 Dec 2013 18:07:55 -0800 Subject: [FFmpeg-user] Unable to encode web with frame rates <1 fps In-Reply-To: <6D47DB43-82D2-40C8-A47C-CA40A96E353D@sonic.net> References: <6D47DB43-82D2-40C8-A47C-CA40A96E353D@sonic.net> Message-ID: <82216AA5-C503-451E-8BB7-AB01B5F87E17@sonic.net> Found the problem? On Nov 23, 2013, at 3:01 PM, Johnny Klonaris wrote: > Hi all? > > I'm trying to create videos with small fps values in both mp4 (libx264) and webm (libvpx) > formats. I"m OK down to 1 fps, but anything less only works with libx264 - if I try to use libvpx, > I get an error: > > Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, > rate, width or height This is not an ffmpeg problem (if I'd been more thorough I'd have seen that). It is a bug in libvpx - noted here: http://code.google.com/p/webm/issues/detail?id=489 -Johnny From cehoyos at ag.or.at Sun Dec 22 03:07:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Dec 2013 02:07:33 +0000 (UTC) Subject: [FFmpeg-user] Best documentation web site ( or other source ) References: <1385326124.931.YahooMailNeo@web121104.mail.ne1.yahoo.com> <1387124094.91472.YahooMailBasic@web120204.mail.ne1.yahoo.com> <1387205685.55144.YahooMailNeo@web121101.mail.ne1.yahoo.com> <20131221195848.GE20496@barisone> <1387668158.11981.YahooMailNeo@web121103.mail.ne1.yahoo.com> Message-ID: Phil Rhodes rocketmail.com> writes: > I am aware that user opinion of ffmpeg and its > documentation is not valued This is not true, but don't worry: > and I'm not going to waste my time Thank you, this is (in your case) very welcome! Carl Eugen From cehoyos at ag.or.at Sun Dec 22 03:23:55 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Dec 2013 02:23:55 +0000 (UTC) Subject: [FFmpeg-user] CD-DTS References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > Ionel GARDAIS yahoo.fr> writes: > > > $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 dts-output.wav > > creates a 6-channel wav container for the DTS datas and > > The experimental dts encoder is unable to reach > a given bitrate so this cannot work. Otoh, the following may work in theory: $ ffmpeg -i input.aac -strict -2 out.dts $ ffmpeg -f s16le -ac 2 -i out.dts -acodec copy out.wav (44100 is the default rate) In my test the bitrate was correct to my surprise (1411 kb), I believe it was completely off in the past. This works with ffplay, testing with a hardware decoder is very welcome! Carl Eugen From onemda at gmail.com Sun Dec 22 08:00:27 2013 From: onemda at gmail.com (Paul B Mahol) Date: Sun, 22 Dec 2013 08:00:27 +0100 Subject: [FFmpeg-user] CD-DTS In-Reply-To: References: Message-ID: On Sat, Dec 21, 2013 at 8:27 PM, Ionel GARDAIS wrote: > Hi list, > > Has anyone succeeded in making a CD-DTS (a.k.a. DTS Audio CD a.k.a. 5.1 > Music Disc) ? > I'm desperately trying to find the right combination of options to create > a valid, burnable wave file that spits DTS on my receiver. > Unfortunately, all I get is white noise. > > The key seems to pack a DTS flow inside a classic 2-channel, 44100Hz, > PCM-declared WAV container. > > Unfortunately, > $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 dts-output.wav > creates a 6-channel wav container for the DTS datas and > $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 -ac 2 > dts-2c-output.wav > downmix the 5.1 aac input to a 2-channel wav file > > I tried to bit-bang the dts-output.wav so the wav container is declared as > wanted but it fails. > The file at http://www.lamoateffe.com/samples/RedHouseDTS.wav is a valid > wav-packed DTS file. > > Any advice welcomed. > For start what version are you using? From igardais at yahoo.fr Sun Dec 22 11:42:38 2013 From: igardais at yahoo.fr (Ionel GARDAIS) Date: Sun, 22 Dec 2013 11:42:38 +0100 Subject: [FFmpeg-user] CD-DTS In-Reply-To: References: Message-ID: <1513187D-D203-4F27-BBA8-CE39555AD483@yahoo.fr> Le 22 d?c. 2013 ? 08:00, Paul B Mahol a ?crit : > On Sat, Dec 21, 2013 at 8:27 PM, Ionel GARDAIS wrote: > >> Hi list, >> >> Has anyone succeeded in making a CD-DTS (a.k.a. DTS Audio CD a.k.a. 5.1 >> Music Disc) ? >> I'm desperately trying to find the right combination of options to create >> a valid, burnable wave file that spits DTS on my receiver. >> Unfortunately, all I get is white noise. >> >> The key seems to pack a DTS flow inside a classic 2-channel, 44100Hz, >> PCM-declared WAV container. >> >> Unfortunately, >> $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 dts-output.wav >> creates a 6-channel wav container for the DTS datas and >> $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 -ac 2 >> dts-2c-output.wav >> downmix the 5.1 aac input to a 2-channel wav file >> >> I tried to bit-bang the dts-output.wav so the wav container is declared as >> wanted but it fails. >> The file at http://www.lamoateffe.com/samples/RedHouseDTS.wav is a valid >> wav-packed DTS file. >> >> Any advice welcomed. >> > > For start what version are you using? I'm using a daily build version : ./ffmpeg -version ffmpeg version N-59266-gd1b8e01 built on Dec 21 2013 13:21:23 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) configuration: --disable-yasm --enable-opencl --enable-openssl --enable-pic --enable-avresample --enable-shared --enable-libmp3lame --extra-cflags='-I /usr/local/include' --extra-ldflags='-L /usr/local/lib' libavutil 52. 58.101 / 52. 58.101 libavcodec 55. 45.103 / 55. 45.103 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 I gave the rcaenc encoder a try : byte ordering is different, content is different but headers look the same. I created a dca file with dcaenc using the folowing sequence : $ ./ffmpeg -i input.aac -acodec pcm_s16le -ar 44100 test.pcm.44100.wav $ ./dcaenc test.pcm.44100.wav test.dcaenc.dts 1411200 The ffmpeg dca file was created like this : $ ./ffmpeg -i input.aac -acodec dts -ar 44100 -strict -2 test.dts.44100.dts Here are the tests results : - plain dcaenc file burned with cdrecord '-audio -pad -swab' => DTS is OK on receiver, music plays, file cannot be read on VLC - plain ffmpeg dts file burned with cdrecord '-audio -pad' => DTS is OK on receiver, SILENCE plays, file cannot be read on VLC - dcaenc file, packed in a wav file with Carl's command and burned with cdrecord '-audio -pad' (no -swab here) => DTS is OK on receiver, music plays, file cannot be read on VLC - ffmpeg dts, packed in a wav file with Carl's command and burned with cdrecord '-audio -pad' => no DTS, noise on receiver, file cannot be read on VLC Ionel From cehoyos at ag.or.at Sun Dec 22 12:41:12 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Dec 2013 11:41:12 +0000 (UTC) Subject: [FFmpeg-user] CD-DTS References: <1513187D-D203-4F27-BBA8-CE39555AD483@yahoo.fr> Message-ID: Ionel GARDAIS yahoo.fr> writes: > - dcaenc file, packed in a wav file with Carl's command > and burned with cdrecord '-audio -pad' (no -swab here) > => DTS is OK on receiver, music plays Thank you for testing! > file cannot be read on VLC Works fine here for a random dts input file... > - ffmpeg dts, packed in a wav file with Carl's command > and burned with cdrecord '-audio -pad' => no DTS, noise > on receiver As said, this is not completely surprising given that our encoder is highly experimental;-( Does the resulting wav file play with ffplay? Carl Eugen From igardais at yahoo.fr Sun Dec 22 12:56:27 2013 From: igardais at yahoo.fr (Ionel GARDAIS) Date: Sun, 22 Dec 2013 12:56:27 +0100 Subject: [FFmpeg-user] CD-DTS In-Reply-To: References: <1513187D-D203-4F27-BBA8-CE39555AD483@yahoo.fr> Message-ID: ffplay does not build as I don't have the SDL compiled ? I'll give a try. Ionel Le 22 d?c. 2013 ? 12:41, Carl Eugen Hoyos a ?crit : > Ionel GARDAIS yahoo.fr> writes: > >> - dcaenc file, packed in a wav file with Carl's command >> and burned with cdrecord '-audio -pad' (no -swab here) >> => DTS is OK on receiver, music plays > > Thank you for testing! > >> file cannot be read on VLC > > Works fine here for a random dts input file... > >> - ffmpeg dts, packed in a wav file with Carl's command >> and burned with cdrecord '-audio -pad' => no DTS, noise >> on receiver > > As said, this is not completely surprising given that > our encoder is highly experimental;-( > Does the resulting wav file play with ffplay? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sun Dec 22 13:59:44 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Dec 2013 12:59:44 +0000 (UTC) Subject: [FFmpeg-user] CD-DTS References: <1513187D-D203-4F27-BBA8-CE39555AD483@yahoo.fr> Message-ID: Ionel GARDAIS yahoo.fr> writes: > > Does the resulting wav file play with ffplay? > > > ffplay does not build as I don't have the SDL compiled ? The alternative is: $ ffmpeg -i out.wav out2.wav (and play out2.wav with any media player) Carl Eugen From igardais at yahoo.fr Sun Dec 22 16:08:59 2013 From: igardais at yahoo.fr (Ionel GARDAIS) Date: Sun, 22 Dec 2013 16:08:59 +0100 Subject: [FFmpeg-user] CD-DTS In-Reply-To: References: <1513187D-D203-4F27-BBA8-CE39555AD483@yahoo.fr> Message-ID: <232AFDCA-CE13-4F91-A080-381D839B1883@yahoo.fr> Le 22 d?c. 2013 ? 13:59, Carl Eugen Hoyos a ?crit : > Ionel GARDAIS yahoo.fr> writes: > >>> Does the resulting wav file play with ffplay? >>> >> ffplay does not build as I don't have the SDL compiled ? > > The alternative is: > $ ffmpeg -i out.wav out2.wav > (and play out2.wav with any media player) You are right. Given the following sequence : $ ./ffmpeg -i input.aac -acodec dts -strict -2 -ar 44100 output.dts.44100.dts $ ./ffmpeg -f s16le -ac 2 -ar 44100 -i output.dts.44100.dts -acodec copy test.dts.44100.wav $ ./ffmpeg -i test.dts.44100.wav test.unpack.wav - output.dts.44100.dts : -- NOT playable in VLC -- CAN be burned as audio track with cdrecord -- receiver detects DTS stream BUT plays silence - test.dts.44100.wav : -- NOT playable in VLC -- CAN be burned as audio track with cdrecord -- receiver DOES NOT detect DTS and plays noise -- shntool sees a valid wav file of the correct duration - test.unpack.wav : -- IS playable in VLC, seen as PCM S16 LE, 44.1kHz, 16b, with 5.1 channels -- CANNOT be burned as audio track in cdrecord ("inappropriate audio coding") -- shntool sees the RIFF magic bytes BUT detects an unsupported audio format (0xfffe). A working workflow to create a multi-channel cd is then : - extract multi-channel source to a multi-channel wav file $ ffmpeg -i multichannel.input.file -acodec pcm_s16le -ar 44100 multichannel.pcm.wav - use dcaenc to encode it to a dca file $ dcaenc multichannel.pcm.wav dcaenc.dts 1411200 - pack the dca file inside a stereo wav container $ ffmpeg -f s16le -ac 2 -ar 44100 -i dcaenc.dts -acodec copy final.wav - burn it $ cdrecord -audio -pad final.wav Ionel From cehoyos at ag.or.at Sun Dec 22 16:38:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 22 Dec 2013 15:38:20 +0000 (UTC) Subject: [FFmpeg-user] CD-DTS References: <1513187D-D203-4F27-BBA8-CE39555AD483@yahoo.fr> <232AFDCA-CE13-4F91-A080-381D839B1883@yahoo.fr> Message-ID: Ionel GARDAIS yahoo.fr> writes: > - test.unpack.wav : > -- IS playable in VLC, seen as PCM S16 LE, 44.1kHz, 16b, > with 5.1 channels > -- CANNOT be burned as audio track in cdrecord > ("inappropriate audio coding") > -- shntool sees the RIFF magic bytes BUT detects an > unsupported audio format (0xfffe). This is unrelated to your original question, it simply means that these application do not follow the Microsoft specification on how to write multi-channel audio in wav. (This is the same problem as "Remuxing multi-channel ac3 in avi doesn't work" which is reported quite often.) You could try your original task with stereo (or mono) input just to make sure that the problem isn't that the FFmpeg dts encoder works badly with multi-channel input. Carl Eugen From igardais at yahoo.fr Sun Dec 22 17:30:24 2013 From: igardais at yahoo.fr (Ionel GARDAIS) Date: Sun, 22 Dec 2013 17:30:24 +0100 Subject: [FFmpeg-user] CD-DTS In-Reply-To: References: <1513187D-D203-4F27-BBA8-CE39555AD483@yahoo.fr> <232AFDCA-CE13-4F91-A080-381D839B1883@yahoo.fr> Message-ID: <724E422B-DDD4-46F9-A077-FF1106E70159@yahoo.fr> Le 22 d?c. 2013 ? 16:38, Carl Eugen Hoyos a ?crit : > Ionel GARDAIS yahoo.fr> writes: > >> - test.unpack.wav : >> -- IS playable in VLC, seen as PCM S16 LE, 44.1kHz, 16b, >> with 5.1 channels > >> -- CANNOT be burned as audio track in cdrecord >> ("inappropriate audio coding") >> -- shntool sees the RIFF magic bytes BUT detects an >> unsupported audio format (0xfffe). > > This is unrelated to your original question, it simply means > that these application do not follow the Microsoft > specification on how to write multi-channel audio in wav. > (This is the same problem as "Remuxing multi-channel ac3 in > avi doesn't work" which is reported quite often.) > > You could try your original task with stereo (or mono) > input just to make sure that the problem isn't that the > FFmpeg dts encoder works badly with multi-channel input. With a stereo input, all resulting files are burnable : - the pure dca file is recognised as a dts stream by the receiver and instead of silence (as with the multiple track input), it plays a choppy version of the music, very quietly, mixed with a white noise ? - the first wav-pack file plays noise, not detected as dts - the repacked file is played as a classic stereo track, with no dca detection Ionel From rodrigozanattasilva at gmail.com Mon Dec 23 04:34:13 2013 From: rodrigozanattasilva at gmail.com (Rodrigo Zanatta Silva) Date: Mon, 23 Dec 2013 01:34:13 -0200 Subject: [FFmpeg-user] How to join and cut AVI file without the quality? Message-ID: This is my scenery: I have a small spy camera and use a DVR to save the video. It create a file every 60 minutes. Now I want to join this videos with the same quality from it original. I am doing a experiment: I want to show the exactly quality from this camera. I read a tutorial like this but I am not sure if I did a good job. I open the result video and it look like to have problem with index, because it is a little weird when I play the video with a video player. It is difficult go to a time or just go fast 10 second ahead.The original video didn't have the same problem. (I join two video of 800MB and it create the 1600MB file). The things I want to do is: - Join video files - Maybe cut some part in the start or end of the film - Delete the audio I can't believe I am not making it work :( What command like did you suggest? This is the spec of the video: - Name: video1.avi - Container: AVI - Audio Video Interleaved - Size: 824,18 MB - Duration: 1h 0mn - Bitrate: 1 832 Kbps *** Video Track Parameters *** - Format: MPEG-4 XviD video - Size: 791,67 MB (96%) - FourCC: XVID - Track number(s): 0 - Bitrate: Max.: Undefined Average: 1 759 Kbps Min.: Undefined - Frame rate (fps): Max.: Undefined Average: 25.000 Min.: Undefined - Bitrate mode: Undefined - Encoding profile: Advanced Simple at L5 - Resolution: Undefined - Width (Pixel number): 720 - Height (Pixel number): 576 - Pixel Aspect Ratio: Undefined - Display Aspect Ratio: 5:4 - Chroma subsampling format: YUV 4:2:0 - Standard: PAL - Interlacing: Progressive - Encoding library: Zoran From rodrigozanattasilva at gmail.com Mon Dec 23 04:36:34 2013 From: rodrigozanattasilva at gmail.com (Rodrigo Zanatta Silva) Date: Mon, 23 Dec 2013 01:36:34 -0200 Subject: [FFmpeg-user] How to join and cut AVI file without the quality? In-Reply-To: References: Message-ID: I did a mistake in the title: How to join and cut AVI file without re-encoding? 2013/12/23 Rodrigo Zanatta Silva > This is my scenery: I have a small spy camera and use a DVR to save the > video. It create a file every 60 minutes. > > Now I want to join this videos with the same quality from it original. > > I am doing a experiment: I want to show the exactly quality from this > camera. I read a tutorial like this but > I am not sure if I did a good job. I open the result video and it look like > to have problem with index, because it is a little weird when I play the > video with a video player. It is difficult go to a time or just go fast 10 > second ahead.The original video didn't have the same problem. (I join two > video of 800MB and it create the 1600MB file). > > The things I want to do is: > - Join video files > - Maybe cut some part in the start or end of the film > - Delete the audio > > I can't believe I am not making it work :( What command like did you > suggest? > > This is the spec of the video: > > - Name: video1.avi > - Container: AVI - Audio Video Interleaved > - Size: 824,18 MB > - Duration: 1h 0mn > - Bitrate: 1 832 Kbps > > *** Video Track Parameters *** > - Format: MPEG-4 XviD video > - Size: 791,67 MB (96%) > - FourCC: XVID > - Track number(s): 0 > - Bitrate: Max.: Undefined > Average: 1 759 Kbps > Min.: Undefined > - Frame rate (fps): Max.: Undefined > Average: 25.000 > Min.: Undefined > - Bitrate mode: Undefined > - Encoding profile: Advanced Simple at L5 > - Resolution: Undefined > - Width (Pixel number): 720 > - Height (Pixel number): 576 > - Pixel Aspect Ratio: Undefined > - Display Aspect Ratio: 5:4 > - Chroma subsampling format: YUV 4:2:0 > - Standard: PAL > - Interlacing: Progressive > - Encoding library: Zoran > From cehoyos at ag.or.at Mon Dec 23 13:50:54 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Dec 2013 12:50:54 +0000 (UTC) Subject: [FFmpeg-user] How to join and cut AVI file without the quality? References: Message-ID: Rodrigo Zanatta Silva gmail.com> writes: > I open the result video and it look like to have problem with > index, because it is a little weird when I play the video > with a video player. Please provide the failing FFmpeg command line together with the complete, uncut console output and please tell which player you tested. Carl Eugen From xiaomou at gmail.com Mon Dec 23 14:07:50 2013 From: xiaomou at gmail.com (=?UTF-8?B?6IKW6LCL?=) Date: Mon, 23 Dec 2013 21:07:50 +0800 Subject: [FFmpeg-user] Problem with ffmpeg psnr calculate filter when image file applied In-Reply-To: <52B2921E.2040603@gmail.com> References: <20131218181942.GL3396@barisone> <52B2921E.2040603@gmail.com> Message-ID: Because i would like to calcuate the psnr of two images and ffmpeg is my favourite tool, :) On Thu, Dec 19, 2013 at 2:28 PM, anshul wrote: > On 12/18/2013 11:49 PM, Stefano Sabatini wrote: > >> On date Tuesday 2013-12-17 22:35:55 +0800, ?? wrote: >> >>> Dear all, >>> I would like to calculate the PSNR of two images or two videos. I >>> found >>> that the new psnr filter worked well for video files which have at less >>> two >>> frames, but not for one frame, or image files. >>> >>> ffmpeg version is 2.0.2 >>> generate the files to be compared >>> two frames video: ./ffmpeg -i test.mkv -vframes 2 -vcodec libx264 -an >>> frame2.mkv >>> one frames video: ./ffmpeg -i test.mkv -vframes 1 -vcodec libx264 -an >>> frame1.mkv >>> >>> this one does not work: >>> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v >>> "movie=frame1.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f >>> rawvideo -y /dev/null >>> >>> this one works: >>> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v >>> "movie=frame2.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f >>> rawvideo -y /dev/null >>> >>> This situation can also be reproduced using image files. >>> I looked into the vf_psnr.c. The do_psnr is not called. >>> >>> I think this might be a bug for filter process? any suggestions to fix >>> this? >>> >> Are you able to reproduce the problem with latest git (2.0.2 is a bit >> old and we had some fixes which may be relevant). >> >> Also you could file a bug report. >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > I have not seen the source code about the implementation of PSNR > calculation > but as far as I knew psnr is calculated by comaring original(no noise) and > lossy compressed(noise) > image, I dont get why you are trying to calculate psnr of one frame > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From rodrigozanattasilva at gmail.com Mon Dec 23 18:41:44 2013 From: rodrigozanattasilva at gmail.com (Rodrigo Zanatta Silva) Date: Mon, 23 Dec 2013 15:41:44 -0200 Subject: [FFmpeg-user] How to join and cut AVI file without the quality? In-Reply-To: References: Message-ID: Lol, maybe the correct question was: how to create this command line for this video file. But forget, I solved the problem because I found other program (AVI Tools). I paid 7,00 to it because I don't want learn to use FFmpeg :) For what I want it is good. Anyway thanks for all. 2013/12/23 Carl Eugen Hoyos > Rodrigo Zanatta Silva gmail.com> writes: > > > I open the result video and it look like to have problem with > > index, because it is a little weird when I play the video > > with a video player. > > Please provide the failing FFmpeg command line together with > the complete, uncut console output and please tell which > player you tested. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Mon Dec 23 19:13:24 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 23 Dec 2013 18:13:24 +0000 (UTC) Subject: [FFmpeg-user] How to join and cut AVI file without the quality? References: Message-ID: Rodrigo Zanatta Silva gmail.com> writes: > But forget, I solved the problem because I found other > program (AVI Tools). I paid 7,00 You now: 1) paid for something that you can get for free (here) 2) downloaded outdated software (that is not only known to contain bugs but even security issues) 3) Supported copyright violators Please do not top-post here, Carl Eugen From magni at inrim.it Mon Dec 23 14:39:23 2013 From: magni at inrim.it (Alessandro Magni) Date: Mon, 23 Dec 2013 14:39:23 +0100 Subject: [FFmpeg-user] subtitles extraction Message-ID: <52B83D0B.7000205@inrim.it> I am struggling to extract the subtitles from an ISO image - I have tried different ways following various guides, always failing - hope you can make sense of what I'm doing wrong: 1) ffmpeg -i mpfc.iso -vn -an -c copy a.srt ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 22:38:20 with gcc 4.8.1 (GCC) 20130603 (Red Hat 4.8.1-1) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpeg @ 0x8faa80] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpeg, from 'mpfc.iso': Duration: 00:30:49.06, start: 62.047267, bitrate: 4316 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:2[0x24]: Subtitle: dvd_subtitle File 'a.srt' already exists. Overwrite ? [y/N] y Unsupported subtitles codec: dvd_subtitle Output #0, srt, to 'a.srt': Metadata: encoder : Lavf54.63.104 Stream #0:0: Subtitle: dvd_subtitle Stream mapping: Stream #0:2 -> #0:0 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument ---------------------------------------------------------------------- 2) ffmpeg -i mpfc.iso -vn -an -codec:s:0.2 srt a.srt ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 22:38:20 with gcc 4.8.1 (GCC) 20130603 (Red Hat 4.8.1-1) <...config lines skipped...> [mpeg @ 0x640a80] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpeg, from 'mpfc.iso': Duration: 00:30:49.06, start: 62.047267, bitrate: 4316 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:2[0x24]: Subtitle: dvd_subtitle File 'a.srt' already exists. Overwrite ? [y/N] y Output #0, srt, to 'a.srt': Stream #0:0: Subtitle: srt Stream mapping: Stream #0:2 -> #0:0 (dvdsub -> srt) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height ---------------------------------------------------------------------- 3) ffmpeg -i mpfc.iso -an -vn -map 0:s:0 -c:s:0 srt a.srt ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 16 2013 22:38:20 with gcc 4.8.1 (GCC) 20130603 (Red Hat 4.8.1-1) <...config lines skipped...> [mpeg @ 0x2638aa0] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpeg, from 'mpfc.iso': Duration: 00:30:49.06, start: 62.047267, bitrate: 4316 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s Stream #0:2[0x24]: Subtitle: dvd_subtitle File 'a.srt' already exists. Overwrite ? [y/N] y Output #0, srt, to 'a.srt': Stream #0:0: Subtitle: srt Stream mapping: Stream #0:2 -> #0:0 (dvdsub -> srt) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height ---------------------------------------------------------------------- unfortunately I understand nothing about ffmpeg usage! alessandro -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ / Dr.Alessandro Magni \ Electromagnetics Division / INRiM Strada delle Cacce 91, 10135 Torino (ITALIA) \ Email magni at inrim.it / Tel: 0039-011-3919821 Fax: 0039-011-3919834 \ URL http://www.inrim.it/~magni / Our business in life is not to succeed but to continue to fail \ in high spirits. -- Robert Louis Stevenson ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From malik.cisse at gmx.net Mon Dec 23 16:44:32 2013 From: malik.cisse at gmx.net (malikcis) Date: Mon, 23 Dec 2013 07:44:32 -0800 (PST) Subject: [FFmpeg-user] mp4 muxing and libx264 GPL licensing Message-ID: <1387813472209-4662871.post@n4.nabble.com> Hi, I have written an MP4 muxer (for H.264 elementary stream coming from a compressed video capture card) using FFMPEG library like this: video_codec = AV_CODEC_ID_H264; .... codec = avcodec_find_encoder (); avcodec_open2(); .... loop av_write_frame(); The muxer works just fine. The problem is that this processing uses libx264 encoder although I don't need the encoding features (the video is already compressed in the capture card) I need to avoid using libx264 because it is not LGPL. Any thoughts how I can only use FFMPEG's muxing capabilities without setup libx264 encoder? Thanks, -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/mp4-muxing-and-libx264-GPL-licensing-tp4662871.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mogu2007 at gmx.de Mon Dec 23 12:30:30 2013 From: mogu2007 at gmx.de (mogu2007) Date: Mon, 23 Dec 2013 03:30:30 -0800 (PST) Subject: [FFmpeg-user] Alert "non monotonically increasing dts..." while converting videos Message-ID: <1387798230775-4662868.post@n4.nabble.com> Hello, I use Xubuntu 12.04 with ffmpeg to rotate and reduce the *.mov videos of my little digi-camera. Since the last update I get at some videos the following error message. I looked around in the www and it seems a not unusuable problem, but nowhere I find a clear solution. = 1921 av_interleaved_write_frame(): Invalid argument> I use the following terminal line: To be honest, I'm not an terminal expert, I use it because it was recommended and it works. Is there any simple solution? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Alert-non-monotonically-increasing-dts-while-converting-videos-tp4662868.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From riokierkels at gmail.com Mon Dec 23 23:18:33 2013 From: riokierkels at gmail.com (Rio Kierkels) Date: Mon, 23 Dec 2013 23:18:33 +0100 Subject: [FFmpeg-user] Full to studio levels Message-ID: Hey everyone, I've been stuck with a level scaling problem. I'm trying to generate broadcast compliant HD mxf files so they have to adhere to the BT.709 spec. Meaning BT.709 primaries with a 2.4ish power function and "studio" luma levels meaning black starts at 16 and white peaks at 235. My sources are full scale BT.709 dpx files. And to force the output to BT.709 primaries I have to add a colormatix filter from bt601 to bt709 strangely enough. It does work however. The only thing I just cant seem to get working is the luma scaling. I've tried the scale filter with the in_range and out_range options. And I've tried the -color_range option on both the in and output files. That does change the pix_fmt indication from yuv420p to yuv420p(tv) but it doesn't change the picture. I've built ffmpeg v 2.1.1 for this project. I hope you guys can help and in time I can help out the project! Rio From nickrobbins at yahoo.com Tue Dec 24 02:13:50 2013 From: nickrobbins at yahoo.com (Nicholas Robbins) Date: Mon, 23 Dec 2013 17:13:50 -0800 (PST) Subject: [FFmpeg-user] subtitles extraction In-Reply-To: <52B83D0B.7000205@inrim.it> References: <52B83D0B.7000205@inrim.it> Message-ID: <1387847630.15331.YahooMailNeo@web160803.mail.bf1.yahoo.com> > On Monday, December 23, 2013 4:30 PM, Alessandro Magni wrote: > > > I am struggling to extract the subtitles from an ISO image - I have > tried different ways following various guides, always failing - > hope you can make sense of what I'm doing wrong: > > 1) ffmpeg -i mpfc.iso -vn -an -c copy a.srt I do this with mplayer/mencoder: If you want to extract subtitle index N with language L from track ${TITLE} of the iso (use "lsdvd mpfc.iso -qst ${TITLE}" to see your options, the lsdvd list starts at one, you need to subtract one.) mplayer -dvd-device mpfc.iso dvd://${TITLE} -dumpfile dump.vob then mencoder -really-quiet dump.vob -nosound -ovc copy -o /dev/nul -vobsubout subs-${N} -sid ${N} -vobsuboutindex ${N} -vobsuboutid ${L} This produces two files: subs-${N}.idx and subs-${N}.sub. -Nick From xiaomou at gmail.com Tue Dec 24 03:19:26 2013 From: xiaomou at gmail.com (=?UTF-8?B?6IKW6LCL?=) Date: Tue, 24 Dec 2013 10:19:26 +0800 Subject: [FFmpeg-user] Problem with ffmpeg psnr calculate filter when image file applied In-Reply-To: References: <20131218181942.GL3396@barisone> Message-ID: I tried. It works. Thanks,all On Thu, Dec 19, 2013 at 6:13 PM, Paul B Mahol wrote: > On 12/18/13, Stefano Sabatini wrote: > > On date Tuesday 2013-12-17 22:35:55 +0800, ****** wrote: > >> Dear all, > >> I would like to calculate the PSNR of two images or two videos. I > found > >> that the new psnr filter worked well for video files which have at less > >> two > >> frames, but not for one frame, or image files. > >> > >> ffmpeg version is 2.0.2 > >> generate the files to be compared > >> two frames video: ./ffmpeg -i test.mkv -vframes 2 -vcodec libx264 -an > >> frame2.mkv > >> one frames video: ./ffmpeg -i test.mkv -vframes 1 -vcodec libx264 -an > >> frame1.mkv > >> > >> this one does not work: > >> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v > >> "movie=frame1.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f > >> rawvideo -y /dev/null > >> > >> this one works: > >> ./ffmpeg -i test.mkv -vframes 1 -vcodec rawvideo -filter:v > >> "movie=frame2.mkv,setpts=PTS-STARTPTS[main];[in][main]psnr=f=c.log" -f > >> rawvideo -y /dev/null > >> > >> This situation can also be reproduced using image files. > >> I looked into the vf_psnr.c. The do_psnr is not called. > >> > >> I think this might be a bug for filter process? any suggestions to fix > >> this? > > > > Are you able to reproduce the problem with latest git (2.0.2 is a bit > > old and we had some fixes which may be relevant). > > > > Also you could file a bug report. > > Yes this bug was fixed by Nicolas work. > > > _______________________________________________ > > 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 cehoyos at ag.or.at Tue Dec 24 07:04:06 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 24 Dec 2013 06:04:06 +0000 (UTC) Subject: [FFmpeg-user] Alert "non monotonically increasing dts..." while converting videos References: <1387798230775-4662868.post@n4.nabble.com> Message-ID: mogu2007 gmx.de> writes: > I use the following terminal line: > > Message-ID: Rio Kierkels gmail.com> writes: > I've been stuck with a level scaling problem. Please provide your failing command line together with the complete, uncut console output. Carl Eugen From cehoyos at ag.or.at Tue Dec 24 07:10:31 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 24 Dec 2013 06:10:31 +0000 (UTC) Subject: [FFmpeg-user] subtitles extraction References: <52B83D0B.7000205@inrim.it> Message-ID: Alessandro Magni inrim.it> writes: > 1) ffmpeg -i mpfc.iso -vn -an -c copy a.srt > > ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers (This is old.) > Stream #0:2 -> #0:0 (copy) The srt file format only supports srt (and text and subrip) subtitles, you cannot mux ("copy") dvdsub into the file, just as you cannot put mp3 into an aac file. > Stream #0:2 -> #0:0 (dvdsub -> srt) dvbsub is a bitmap subtitle format, srt is text-based but since FFmpeg does not contain any ocr routines, you cannot convert a bitmap subtitle into a text-based subtitle format. Merry Christmas, Carl Eugen From nageshblore at gmail.com Tue Dec 24 08:07:45 2013 From: nageshblore at gmail.com (=?UTF-8?B?4LKo4LK+4LKX4LOH4LK24LONIOCyuOCzgeCyrOCzjeCysOCyueCzjeCyruCyo+CzjeCyryAoTg==?= =?UTF-8?B?YWdlc2ggUyk=?=) Date: Tue, 24 Dec 2013 12:37:45 +0530 Subject: [FFmpeg-user] subtitles extraction In-Reply-To: References: <52B83D0B.7000205@inrim.it> Message-ID: Just curious...is this about hardened subtitles? Or also applicable in cases where the video does not show any subs by default? Sent from phone. Pardon spelling and grammar mistakes. On 24 Dec 2013 11:50, "Carl Eugen Hoyos" wrote: > Alessandro Magni inrim.it> writes: > > > 1) ffmpeg -i mpfc.iso -vn -an -c copy a.srt > > > > ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers > > (This is old.) > > > Stream #0:2 -> #0:0 (copy) > > The srt file format only supports srt (and text and subrip) > subtitles, you cannot mux ("copy") dvdsub into the file, just > as you cannot put mp3 into an aac file. > > > Stream #0:2 -> #0:0 (dvdsub -> srt) > > dvbsub is a bitmap subtitle format, srt is text-based but > since FFmpeg does not contain any ocr routines, you cannot > convert a bitmap subtitle into a text-based subtitle format. > > Merry Christmas, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From riokierkels at gmail.com Tue Dec 24 09:28:14 2013 From: riokierkels at gmail.com (Rio Kierkels) Date: Tue, 24 Dec 2013 09:28:14 +0100 Subject: [FFmpeg-user] Full to studio levels In-Reply-To: References: Message-ID: Oh sure, sorry about that. This is the command I used last: ---------------------- ffmpeg -y -nostdin -i "/Path/To/Source/video.%4d.dpx" -i "/Path/To/Source/audio.wav" -map 0:0 -c:0:0 mpeg2video -b:0:0 50M -filter:0:0 "scale=in_range=full:out_range=tv:w=1920:h=1080:in_color_matrix=bt601:out_color_matrix=bt709,setdar=1.77777777778" -flags +ildct+ilme -top 1 -map 1:a:0 -map_channel 1.0.0:0.1 -map 1:a:0 -map_channel 1.0.1:0.2 -map 1:a:0 -map_channel -1:0.3 -map 1:a:0 -map_channel -1:0.4 -c:1:0 pcm_s24le -b:1:0 240000 "/Path/To/out.mxf" ---------------------- And Here is the output ---------------------- ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 23 2013 14:19:36 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --prefix=/Portal/ffmpeg/build/ --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --enable-libx264 --enable-libvpx --enable-libopenjpeg --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libmp3lame --extra-cflags=-I/Portal/ffmpeg/build/include --extra-ldflags=-L/Portal/ffmpeg/build/lib libavutil 52. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, image2, from '/Path/To/Source/video.%4d.dpx': Duration: 00:00:04.00, start: 0.000000, bitrate: N/A Stream #0:0: Video: dpx, gbrp10le, 1920x1080 [SAR 1:1 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Guessed Channel Layout for Input Stream #1.0 : stereo Input #1, wav, from '/Path/To/Source/audio.wav': Duration: 00:00:03.95, bitrate: 1536 kb/s Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s -map_channel is forwarded to lavfi similarly to -af pan=0x4:c0=c0. [pan @ 0x2514460] This syntax is deprecated. Use '|' to separate the list items. [pan @ 0x2514460] Pure channel mapping detected: 0 -map_channel is forwarded to lavfi similarly to -af pan=0x4:c0=c1. [pan @ 0x2628800] This syntax is deprecated. Use '|' to separate the list items. [pan @ 0x2628800] Pure channel mapping detected: 1 -map_channel is forwarded to lavfi similarly to -af pan=0x4. [pan @ 0x263f3c0] Pure channel mapping detected: M -map_channel is forwarded to lavfi similarly to -af pan=0x4. [pan @ 0x264d660] Pure channel mapping detected: M Output #0, mxf, to '/Path/To/out.mxf': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32, 1152 kb/s Stream #0:2: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Stream #0:3: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Stream #0:4: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s Stream mapping: Stream #0:0 -> #0:0 (dpx -> mpeg2video) Stream #1:0 -> #0:1 (pcm_s16le -> pcm_s24le) Stream #1:0 -> #0:2 (pcm_s16le -> pcm_s16le) Stream #1:0 -> #0:3 (pcm_s16le -> pcm_s16le) Stream #1:0 -> #0:4 (pcm_s16le -> pcm_s16le) frame= 100 fps=4.9 q=2.0 Lsize= 5004kB time=00:00:03.96 bitrate=10351.8kbits/s video:3211kB audio:1666kB subtitle:0 global headers:0kB muxing overhead 2.609146% ---------------------- I've tried variations on the above command, including different options for in and out_range like, pc, mpeg, jpeg, tv, full and switching them around. I've also tried not doing it through the scale filter but via the -color_range flag on the in and output files. And can somebody clarify why I have to put a color transform from BT.601 to BT.709 in there to retain my primaries while my source already is BT.709? Thanks On 24 December 2013 07:05, Carl Eugen Hoyos wrote: > Rio Kierkels gmail.com> writes: > > > I've been stuck with a level scaling problem. > > Please provide your failing command line together > with the complete, uncut console output. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- 42 From jpboard2 at yahoo.com Tue Dec 24 16:25:39 2013 From: jpboard2 at yahoo.com (James Board) Date: Tue, 24 Dec 2013 07:25:39 -0800 (PST) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. In-Reply-To: Message-ID: <1387898739.6782.YahooMailBasic@web120203.mail.ne1.yahoo.com> > And the reason I did not write: > " > add the following line to your MPlayer config file: > vc=-raw422P, > " > but > " > add the following line to your MPlayer config file: > vc=-raw422P, > " > was of course to make it as clear as possible imo how > the line you have to add to your MPlayer config file > looks like. Well, both those lines are exactly the same. Anyway, I figured out that the comma was required in the config file. I previously thought you added it to format your message. If I add the comma, then mplayer displays the file with no blue tint. So, thank you. From cehoyos at ag.or.at Wed Dec 25 18:04:01 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 25 Dec 2013 17:04:01 +0000 (UTC) Subject: [FFmpeg-user] ffvhuff -> rawvideo: all pixels have blue tint. References: <1387898739.6782.YahooMailBasic@web120203.mail.ne1.yahoo.com> Message-ID: James Board yahoo.com> writes: > > And the reason I did not write: > > " > > add the following line to your MPlayer config file: > > vc=-raw422P, > > " > > but > > " > > add the following line to your MPlayer config file: > > vc=-raw422P, > > " > > was of course to make it as clear as possible imo how > > the line you have to add to your MPlayer config file > > looks like. > > Well, both those lines are exactly the same. I tried my best, maybe your mailer broke the message: http://lists.ffmpeg.org/pipermail/ffmpeg-user/2013-December/019013.html http://article.gmane.org/gmane.comp.video.ffmpeg.user/49461 http://ffmpeg-users.933282.n4.nabble.com/ffvhuff-gt-rawvideo-all-pixels-have-blue-tint-tt4662720.html#a4662850 Carl Eugen From guivho at gmail.com Wed Dec 25 18:41:54 2013 From: guivho at gmail.com (Guido Van Hoecke) Date: Wed, 25 Dec 2013 18:41:54 +0100 Subject: [FFmpeg-user] How to convert mov to avi or mp4 without loss of quality Message-ID: Hi, I am a total newbee in the ffmpeg and conversion area. I've tried to search the documentation and came up with some recipees to convert my mov movies to either avi or mp4. But the result is always far inferior wrt quality. I don't really care about the size, but I would like to keep the original quality as far as possible. Anybody has some useful recipees? Guido -- Charity begins at home. -- Publius Terentius Afer (Terence) From gabri.ns at gmail.com Wed Dec 25 18:46:10 2013 From: gabri.ns at gmail.com (Gabri Shally) Date: Thu, 26 Dec 2013 00:46:10 +0700 Subject: [FFmpeg-user] How to convert mov to avi or mp4 without loss of quality In-Reply-To: References: Message-ID: has you try: -i input.mov -c copy output.mp4? please provide us your usage command line n uncut console output. From gerion.entrup at t-online.de Wed Dec 25 18:57:36 2013 From: gerion.entrup at t-online.de (Gerion Entrup) Date: Wed, 25 Dec 2013 18:57:36 +0100 Subject: [FFmpeg-user] Mapping of stream to filter Message-ID: <5495043.zxfvOfv0OK@lappi> Hello, I want to use the volumedetect filter in a script and have a problem with the mapping of the hexadecimal number in the filter to the audiostream. Here is an example: % ffmpeg -i sample.mkv -filter:a volumedetect -map 0:a -f null -t 30 /dev/null ffmpeg version N-57946-gea6331b Copyright (c) 2000-2013 the FFmpeg developers built on Nov 7 2013 13:04:48 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 -- mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc -- cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='- march=native -O2 -pipe' --extra-cflags='-march=native -O2 -pipe' --extra- cxxflags='-march=native -O2 -pipe' --disable-static --enable-gpl --enable- postproc --enable-avfilter --enable-avresample --disable-stripping --enable- version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 -- disable-indev=oss --disable-outdev=oss --enable-bzlib --disable-runtime- cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded- tables --enable-iconv --enable-network --disable-openssl --enable-ffplay -- enable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable- libvo-amrwbenc --enable-libmp3lame --enable-libaacplus --enable-libfaac -- enable-libtheora --disable-libtwolame --disable-libwavpack --enable-libx264 -- enable-libxvid --disable-libcdio --disable-libiec61883 --disable-libdc1394 -- disable-libcaca --disable-openal --disable-libv4l2 --disable-libpulse -- enable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig -- enable-ladspa --disable-libass --enable-libfreetype --disable-libsoxr -- enable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb -- disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --enable-libopus -- enable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger -- enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi -- disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx -- disable-avx2 --disable-ssse3 --disable-vis --disable-neon --cpu=host libavutil 52. 52.100 / 52. 52.100 libavcodec 55. 41.100 / 55. 41.100 libavformat 55. 21.100 / 55. 21.100 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.102 / 3. 90.102 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 ... Input #0, matroska,webm, from 'sample.mkv': ... Stream #0:0: Video: h264 (High), yuv420p, 1916x800 [SAR 1:1 DAR 479:200], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(ger): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s ... Output #0, null, to '/dev/null': Stream #0:0(ger): Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s (default) Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s Stream mapping: Stream #0:1 -> #0:0 (ac3 -> pcm_s16le) Stream #0:2 -> #0:1 (ac3 -> pcm_s16le) Press [q] to stop, [?] for help size=N/A time=00:00:30.01 bitrate=N/A video:0kB audio:33624kB subtitle:0 global headers:0kB muxing overhead -100.000064% [Parsed_volumedetect_0 @ 0x81a950] n_samples: 8616960 [Parsed_volumedetect_0 @ 0x81a950] mean_volume: -29.2 dB [Parsed_volumedetect_0 @ 0x81a950] max_volume: -7.4 dB [Parsed_volumedetect_0 @ 0x81a950] histogram_7db: 16 [Parsed_volumedetect_0 @ 0x81a950] histogram_8db: 217 [Parsed_volumedetect_0 @ 0x81a950] histogram_9db: 792 [Parsed_volumedetect_0 @ 0x81a950] histogram_10db: 1728 [Parsed_volumedetect_0 @ 0x81a950] histogram_11db: 2928 [Parsed_volumedetect_0 @ 0x81a950] histogram_12db: 5012 [Parsed_volumedetect_0 @ 0x7c0090] n_samples: 8616960 [Parsed_volumedetect_0 @ 0x7c0090] mean_volume: -29.1 dB [Parsed_volumedetect_0 @ 0x7c0090] max_volume: -9.1 dB [Parsed_volumedetect_0 @ 0x7c0090] histogram_9db: 137 [Parsed_volumedetect_0 @ 0x7c0090] histogram_10db: 983 [Parsed_volumedetect_0 @ 0x7c0090] histogram_11db: 2482 [Parsed_volumedetect_0 @ 0x7c0090] histogram_12db: 4531 [Parsed_volumedetect_0 @ 0x7c0090] histogram_13db: 8359 Here you cannot see the direct mapping of 0x81a950 to stream 0:1 etc.. So I tried to do it verbose: % ffmpeg -i sample.mkv -filter:a volumedetect -map 0:a -loglevel verbose -f null -t 30 /dev/null ffmpeg version N-57946-gea6331b Copyright (c) 2000-2013 the FFmpeg developers built on Nov 7 2013 13:04:48 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 -- mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc -- cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='- march=native -O2 -pipe' --extra-cflags='-march=native -O2 -pipe' --extra- cxxflags='-march=native -O2 -pipe' --disable-static --enable-gpl --enable- postproc --enable-avfilter --enable-avresample --disable-stripping --enable- version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 -- disable-indev=oss --disable-outdev=oss --enable-bzlib --disable-runtime- cpudetect --disable-debug --disable-doc --disable-gnutls --enable-hardcoded- tables --enable-iconv --enable-network --disable-openssl --enable-ffplay -- enable-vaapi --disable-vdpau --enable-zlib --enable-libvo-aacenc --disable- libvo-amrwbenc --enable-libmp3lame --enable-libaacplus --enable-libfaac -- enable-libtheora --disable-libtwolame --disable-libwavpack --enable-libx264 -- enable-libxvid --disable-libcdio --disable-libiec61883 --disable-libdc1394 -- disable-libcaca --disable-openal --disable-libv4l2 --disable-libpulse -- enable-x11grab --disable-libflite --disable-frei0r --disable-fontconfig -- enable-ladspa --disable-libass --enable-libfreetype --disable-libsoxr -- enable-pthreads --disable-libopencore-amrwb --disable-libopencore-amrnb -- disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-libmodplug --enable-libopus -- enable-libquvi --disable-librtmp --disable-libssh --disable-libschroedinger -- enable-libspeex --enable-libvorbis --enable-libvpx --disable-libzvbi -- disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx -- disable-avx2 --disable-ssse3 --disable-vis --disable-neon --cpu=host libavutil 52. 52.100 / 52. 52.100 libavcodec 55. 41.100 / 55. 41.100 libavformat 55. 21.100 / 55. 21.100 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.102 / 3. 90.102 libavresample 1. 1. 0 / 1. 1. 0 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 ... Input #0, matroska,webm, from 'sample.mkv': ... Stream #0:0: Video: h264 (High), yuv420p, 1916x800 [SAR 1:1 DAR 479:200], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(ger): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s ... [graph 0 input from stream 0:1 @ 0x81aa30] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [Parsed_volumedetect_0 @ 0x81a970] auto-inserting filter 'auto-inserted resampler 0' between the filter 'graph 0 input from stream 0:1' and the filter 'Parsed_volumedetect_0' [auto-inserted resampler 0 @ 0x99b9a0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:6 chl:5.1(side) fmt:s16 r:48000Hz [graph 1 input from stream 0:2 @ 0xd32230] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [Parsed_volumedetect_0 @ 0x7c00b0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'graph 1 input from stream 0:2' and the filter 'Parsed_volumedetect_0' [auto-inserted resampler 0 @ 0x7fb3f0] ch:6 chl:5.1(side) fmt:fltp r:48000Hz -> ch:6 chl:5.1(side) fmt:s16 r:48000Hz ... Output #0, null, to '/dev/null': Stream #0:0(ger): Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s (default) Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, 5.1(side), s16, 4608 kb/s ... Stream mapping: Stream #0:1 -> #0:0 (ac3 -> pcm_s16le) Stream #0:2 -> #0:1 (ac3 -> pcm_s16le) Press [q] to stop, [?] for help No more output streams to write to, finishing. size=N/A time=00:00:30.01 bitrate=N/A video:0kB audio:33624kB subtitle:0 global headers:0kB muxing overhead -100.000064% [Parsed_volumedetect_0 @ 0x81a970] n_samples: 8616960 [Parsed_volumedetect_0 @ 0x81a970] mean_volume: -29.2 dB [Parsed_volumedetect_0 @ 0x81a970] max_volume: -7.4 dB [Parsed_volumedetect_0 @ 0x81a970] histogram_7db: 16 [Parsed_volumedetect_0 @ 0x81a970] histogram_8db: 217 [Parsed_volumedetect_0 @ 0x81a970] histogram_9db: 792 [Parsed_volumedetect_0 @ 0x81a970] histogram_10db: 1728 [Parsed_volumedetect_0 @ 0x81a970] histogram_11db: 2928 [Parsed_volumedetect_0 @ 0x81a970] histogram_12db: 5012 [Parsed_volumedetect_0 @ 0x7c00b0] n_samples: 8616960 [Parsed_volumedetect_0 @ 0x7c00b0] mean_volume: -29.1 dB [Parsed_volumedetect_0 @ 0x7c00b0] max_volume: -9.1 dB [Parsed_volumedetect_0 @ 0x7c00b0] histogram_9db: 137 [Parsed_volumedetect_0 @ 0x7c00b0] histogram_10db: 983 [Parsed_volumedetect_0 @ 0x7c00b0] histogram_11db: 2482 [Parsed_volumedetect_0 @ 0x7c00b0] histogram_12db: 4531 [Parsed_volumedetect_0 @ 0x7c00b0] histogram_13db: 8359 Here you can find out the mapping, because the resampling filter is inserted and the debug message "casually" mentioned 0:1 and 81a970 in one line. There are streams that do not need a resampling filter. Is there a possibility to do the mapping anyway? regards, Gerion From gjmata at gmail.com Wed Dec 25 19:20:09 2013 From: gjmata at gmail.com (Gustavo J Mata) Date: Wed, 25 Dec 2013 13:50:09 -0430 Subject: [FFmpeg-user] How to convert mov to avi or mp4 without loss of quality In-Reply-To: References: Message-ID: The following could work. ffmpeg -i input.mov -q:v 3 output.mp4 The parameter q:v, set to 3 here, controls the quality of the video output. Quality goes down as q:v goes up. Good luck, Gustavo J. Mata On Wed, Dec 25, 2013 at 1:16 PM, Gabri Shally wrote: > has you try: -i input.mov -c copy output.mp4? > please provide us your usage command line n uncut console output. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- ?La ignorancia, aliada con el poder, es el m?s feroz enemigo que puede tener la justicia.? (James Baldwin) Visite mi Blog en Apartaderos From guivho at gmail.com Wed Dec 25 19:24:28 2013 From: guivho at gmail.com (Guido Van Hoecke) Date: Wed, 25 Dec 2013 19:24:28 +0100 Subject: [FFmpeg-user] How to convert mov to avi or mp4 without loss of quality In-Reply-To: (Gabri Shally's message of "Thu, 26 Dec 2013 00:46:10 +0700") References: Message-ID: Hi Gabri, Let me start by wishing you a Merry Christmas! > has you try: -i input.mov -c copy output.mp4? Tried it, but it does fail: > please provide us your usage command line n uncut console output. $ ffmpeg -i 131003094512.mov -c copy 131003094512.mp4 ffmpeg version 1.1.3-tessus Copyright (c) 2000-2013 the FFmpeg developers built on Feb 23 2013 06:45:07 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm --extra-version=tessus --disable-shared --enable-static --disable-ffplay --enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm --enable-libopus --enable-fontconfig --enable-libfreetype --enable-libass --enable-filters --enable-runtime-cpudetect libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 86.100 / 54. 86.100 libavformat 54. 59.106 / 54. 59.106 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '131003094512.mov': $ Metadata: major_brand : qt minor_version : 537331968 $ compatible_brands: qt CAEP creation_time : 2013-10-03 07:45:12 Duration: 00:00:47.92, start: 0.000000, bitrate: 34232 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p, 1920x1080, 33447 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc Metadata: creation_time : 2013-10-03 07:45:12 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, s16, 768 kb/s Metadata: creation_time : 2013-10-03 07:45:12 [mp4 @ 0x103008600] track 1: could not find tag, codec not currently supported in container Output #0, mp4, to '131003094512.mp4': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CAEP encoder : Lavf54.59.106 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1920x1080, q=2-31, 33447 kb/s, 23.98 fps, 24k tbn, 24k tbc Metadata: creation_time : 2013-10-03 07:45:12 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, mono, 768 kb/s Metadata: creation_time : 2013-10-03 07:45:12 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted $ Please advise Guido -- When my brain begins to reel from my literary labors, I make an occasional cheese dip. -- Ignatius Reilly From andrey.mochenov at idomoo.com Wed Dec 25 17:17:40 2013 From: andrey.mochenov at idomoo.com (Andrey Mochenov) Date: Wed, 25 Dec 2013 18:17:40 +0200 Subject: [FFmpeg-user] Bitstream "h264_mp4toannexb" filter does not work Message-ID: Hi all, We are using FFmpeg libraries git-ee94362 libavformat v55.2.100. Our purpose is to mux two streams (video and audio) into M3U8 playlist using HLS. We are using AV_CODEC_ID_H264 output encoder, AV_PIX_FMT_YUV420P output video pixel format and CODEC_FLAG_GLOBAL_HEADER flag for the encoder. The last causes us to use "h264_mp4toannexb" bit stream filter. So, here is the code snippet: AVPacket outpkt = {0}; int isGotVideoPacket = 0; av_init_packet(&outpkt); // convert time in stream time base units, so that the encoder will fill the packet appropriately out_video_frame->pts = (int64_t) (video_frame_count * in_video_frame_duration / av_q2d(out_video_stream->time_base)); int ret = avcodec_encode_video2(enc_out_video_ctx, &outpkt, out_video_frame[i], &isGotVideoPacket); assert(0 <= ret); // if size is zero, it means the image was buffered if ((1 == isGotVideoPacket) && (0 < outpkt.size)) { AVPacket new_outpkt = outpkt; if ((AVBitStreamFilterContext*) 0 != vbsf_ctx) { AVPacket new_outpkt = outpkt; ret = av_bitstream_filter_filter(vbsf_ctx, enc_out_video_ctx, (const char*)0, &new_outpkt.data, &new_outpkt.size, outpkt.data, outpkt.size, outpkt.flags & AV_PKT_FLAG_KEY); if (ret > 0) { outpkt = new_outpkt; } else { // We get ret = -22 char errbuf[128] = ""; // Both the functions get "Error number -22 occurred" that don't explain anything av_strerror (ret, errbuf, 128); av_make_error_string (errbuf, 128, ret); } assert(0 <= ret); } outpkt->stream_index = output_video_stream->index; // If to comment av_bitstream_filter_filter() and "if-else", then // At frame #37 we get the following error from av_interleaved_write_frame(): // [mpegts @ 09628140] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb). ret = av_interleaved_write_frame(ofmt_ctx, &outpkt); assert(0 <= ret); } Our questions: 1. What is the meaning of the "-22" error from av_bitstream_filter_filter()? 2. Where can we get full FFMPEG error code description list? 3. If we are using av_bitstream_filter_filter() right? If no, what is the right way? Andrey Mochenov. Andrey Mochenov Software Engineer andrey.mochenov at idomoo.com +972 54 539 8201 (mobile) From cehoyos at ag.or.at Wed Dec 25 19:25:43 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 25 Dec 2013 18:25:43 +0000 (UTC) Subject: [FFmpeg-user] How to convert mov to avi or mp4 without loss of quality References: Message-ID: Guido Van Hoecke gmail.com> writes: > I've tried to search the documentation and came up with > some recipees to convert my mov movies to either avi or mp4. (Why do you want to "convert" from mov to mp4, they are mostly the same?) > But the result is always far inferior wrt quality. Command line and complete, uncut console output missing. They are particularly important for unspecific questions like this one. > I don't really care about the size, but I would like to > keep the original quality as far as possible. Use -qscale 2 If you actually don't want to "convert" but just remux, -vcodec copy is the alternative. Carl Eugen From cehoyos at ag.or.at Wed Dec 25 19:32:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 25 Dec 2013 18:32:19 +0000 (UTC) Subject: [FFmpeg-user] mp4 muxing and libx264 GPL licensing References: <1387813472209-4662871.post@n4.nabble.com> Message-ID: malikcis gmx.net> writes: > I have written an MP4 muxer (for H.264 elementary > stream coming from a compressed video capture card) > using FFMPEG library like this: > I need to avoid using libx264 because it is not LGPL. libx264 should not be used for remuxing h264 (and I believe FFmpeg cannot use it). Carl Eugen From cehoyos at ag.or.at Wed Dec 25 19:30:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 25 Dec 2013 18:30:30 +0000 (UTC) Subject: [FFmpeg-user] How to convert mov to avi or mp4 without loss of quality References: Message-ID: Guido Van Hoecke gmail.com> writes: > $ ffmpeg -i 131003094512.mov -c copy 131003094512.mp4 > ffmpeg version 1.1.3 This is too old. > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '131003094512.mov': As said, why do want to change "mov" to "mp4"? > Stream #0:0(eng): Video: h264 (Constrained Baseline) You can remux this stream with -vcodec copy > Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73) PCM audio is only supported in mov, not in mp4 (this has nothing to do with FFmpeg, the limitation is inthe mp4 specification), you have to convert to a supported audio format, use for example -acodec aac -strict -2 (fdk is a better encoder, libvo-aac is not). Carl Eugen From guivho at gmail.com Wed Dec 25 20:18:11 2013 From: guivho at gmail.com (Guido Van Hoecke) Date: Wed, 25 Dec 2013 20:18:11 +0100 Subject: [FFmpeg-user] How to convert mov to avi or mp4 without loss of quality In-Reply-To: (Gustavo J. Mata's message of "Wed, 25 Dec 2013 13:50:09 -0430") References: Message-ID: Hi Gustavo, > The following could work. > > ffmpeg -i input.mov -q:v 3 output.mp4 It does! And so does ffmpeg -i input.mov -q:v 3 output.avi Thanks! Guido -- "But Huey, you PROMISED!" "Tell 'em I lied." From myroughwork at gmail.com Thu Dec 26 09:05:50 2013 From: myroughwork at gmail.com (hello...) Date: Thu, 26 Dec 2013 13:35:50 +0530 Subject: [FFmpeg-user] Queries regarding MPEGTS/MPEG/MPG Message-ID: Hello Everyone, I'm fairly new to the concepts of video formats. So, pls bear with me, if the queries are too basic!! :) I want to convert the MPEGTS file using ffmpeg to avi format. Using ffmpeg, I have done that without any issues. But I want to explore a little more into these formats. I have got some basic doubts while going through the internet on video formats. Kindly take some of your time to clarify these. (I've already searched enough using google!!) 1. Where can I get the specification document for MPEGTS. (I've browsed the official site of MPEG (*mpeg*.chiariglione.org/), but could not locate it. To admit, I found the site a little confusing in the first attempt :() 2. I used ffprobe to find the stream info of a ts file. But, can I use FFmpeg to get the header details of a MPEGTS file? (I had earlier used one tool, which parses the avi file, and gives the header values and video/audio data in a good readable format. Expecting similar one for MPEGTS format :)) 3. Finally, I see there are MPEG and MPG formats. Are these both same? If not, what is the basic differnces between these two formats? In the FFmpeg code, I could locate files for decoding MPEG, but not MPG. (It would be helpful, if someone can give me the pointers towards specification docs of these also) Once again, I request you to pls bear with me, if the queries are too basic :) Thanks in Advance!! Regards, Sachin From andrey.mochenov at idomoo.com Thu Dec 26 09:39:28 2013 From: andrey.mochenov at idomoo.com (Andrey Mochenov) Date: Thu, 26 Dec 2013 10:39:28 +0200 Subject: [FFmpeg-user] Bitstream "h264_mp4toannexb" filter does not work Message-ID: Hi all, We are using FFmpeg libraries git-ee94362 libavformat v55.2.100. Our purpose is to mux two streams (video and audio) into M3U8 playlist using HLS. We are using AV_CODEC_ID_H264 output encoder, AV_PIX_FMT_YUV420P output video pixel format and CODEC_FLAG_GLOBAL_HEADER flag for the encoder. The last causes us to use "h264_mp4toannexb" bit stream filter. So, here is the code snippet: AVPacket outpkt = {0}; int isGotVideoPacket = 0; av_init_packet(&outpkt); // convert time in stream time base units, so that the encoder will fill the packet appropriately out_video_frame->pts = (int64_t) (video_frame_count * in_video_frame_duration / av_q2d(out_video_stream->time_base)); int ret = avcodec_encode_video2(enc_out_video_ctx, &outpkt, out_video_frame[i], &isGotVideoPacket); assert(0 <= ret); // if size is zero, it means the image was buffered if ((1 == isGotVideoPacket) && (0 < outpkt.size)) { AVPacket new_outpkt = outpkt; if ((AVBitStreamFilterContext*) 0 != vbsf_ctx) { AVPacket new_outpkt = outpkt; ret = av_bitstream_filter_filter(vbsf_ctx, enc_out_video_ctx, (const char*)0, &new_outpkt.data, &new_outpkt.size, outpkt.data, outpkt.size, outpkt.flags & AV_PKT_FLAG_KEY); if (ret > 0) { outpkt = new_outpkt; } else { // We get ret = -22 char errbuf[128] = ""; // Both the functions get "Error number -22 occurred" that don't explain anything av_strerror (ret, errbuf, 128); av_make_error_string (errbuf, 128, ret); } assert(0 <= ret); } outpkt->stream_index = output_video_stream->index; // If to comment av_bitstream_filter_filter() and "if-else", then // At frame #37 we get the following error from av_interleaved_write_frame(): // [mpegts @ 09628140] H.264 bitstream malformed, no startcode found, use the h264_mp4toannexb bitstream filter (-bsf h264_mp4toannexb). ret = av_interleaved_write_frame(ofmt_ctx, &outpkt); assert(0 <= ret); } Our questions: 1. What is the meaning of the "-22" error from av_bitstream_filter_filter()? 2. Where can we get full FFMPEG error code description list? 3. If we are using av_bitstream_filter_filter() right? If no, what is the right way? Andrey Mochenov. From george at nsup.org Thu Dec 26 10:46:26 2013 From: george at nsup.org (Nicolas George) Date: Thu, 26 Dec 2013 10:46:26 +0100 Subject: [FFmpeg-user] Bitstream "h264_mp4toannexb" filter does not work In-Reply-To: References: Message-ID: <20131226094626.GA10403@phare.normalesup.org> Le sextidi 6 niv?se, an CCXXII, Andrey Mochenov a ?crit?: > We are using FFmpeg libraries git-ee94362 libavformat v55.2.100. Our > purpose is to mux two streams (video and audio) into M3U8 playlist using > HLS. > We are using AV_CODEC_ID_H264 output encoder, AV_PIX_FMT_YUV420P output > video pixel format and CODEC_FLAG_GLOBAL_HEADER flag for the encoder. AFAIK, HSL implies MPEG-TS, and MPEG-TS implies no global header. Can you explain why you chose to use global header? > // We get ret = -22 > char errbuf[128] = ""; > > // Both the functions get "Error number -22 > occurred" that don't explain anything > av_strerror (ret, errbuf, 128); > av_make_error_string (errbuf, 128, ret); There is something seriously wrong either in your libc or your build of ffmpeg. You are not the first one to exhibit the problem. Please help to understand and fix it, first by explaining your exact configuration (OS and compiler, possibly config.h at build time). > 1. What is the meaning of the "-22" error from av_bitstream_filter_filter()? This is OS-specific. > 2. Where can we get full FFMPEG error code description list? The FFmpeg-specific codes are in libavutil/error.h, installed on your system. The latest version is browsable: http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavutil/error.h;hb=HEAD The OS-specific error codes are... OS-specific, and can be found in your OS documentation. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: From cehoyos at ag.or.at Thu Dec 26 16:13:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 26 Dec 2013 15:13:33 +0000 (UTC) Subject: [FFmpeg-user] Queries regarding MPEGTS/MPEG/MPG References: Message-ID: hello... gmail.com> writes: > 1. Where can I get the specification document for MPEGTS. Google for "H.222.0" but please understand that this is not an easy-to-read document. (I am nearly certain it will not help you at all if look at it.) > (I've browsed the official site of MPEG > (*mpeg*.chiariglione.org/) Maybe I misunderstand you but this is certainly not the "official site of MPEG". > 2. I used ffprobe to find the stream info of a ts file. > But, can I use FFmpeg to get the header details of a > MPEGTS file? MPEG-TS files do not have a header but ffmpeg -i yourfile should tell you about the audio and video in your stream. > 3. Finally, I see there are MPEG and MPG formats. Are > these both same? Sorry, I don't understand this question. Consider reading the wikipedia article about the MPEG-2 collection of specifications, maybe that explains some of your questions. Carl Eugen From cehoyos at ag.or.at Thu Dec 26 16:24:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 26 Dec 2013 15:24:50 +0000 (UTC) Subject: [FFmpeg-user] Full to studio levels References: Message-ID: Rio Kierkels gmail.com> writes: > Stream #0:0: Video: dpx, gbrp10le, 1920x1080 Do you know the dynamics of your input frames? Is black 0x00 and "white" 0x3FF? Carl Eugen From barsnick at gmx.net Thu Dec 26 18:53:35 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Thu, 26 Dec 2013 18:53:35 +0100 Subject: [FFmpeg-user] segfault in "xv" output format Message-ID: <20131226175335.GA27814@sunshine.barsnick.net> Hi, I recently discovered support for the "xv" output format, which displays to an XVideo enabled X11 device. But running within a VNC session, I haven't had much success. ffmpeg segfaults shortly after opening the X11 window. For all I know, this VNC server supports XVideo. (And even if not, no segfault should occur.) The full report is below, with gdb analysis. ffmpeg is built from a fresh snapshot. Thanks, Moritz mbarsnic at hostname:/tmp/Bui/ffmpeg/ffmpeg-2013-12-25 > gdb --args ./ffmpeg_g -y -f lavfi -i color=c=orange:s=320x240:r=25 -frames:v 250 -f xv arbitraryfilename GNU gdb (GDB) 7.5.1 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /tmp/Bui/ffmpeg/ffmpeg-2013-12-25/ffmpeg_g...done. (gdb) r Starting program: /tmp/Bui/ffmpeg/ffmpeg-2013-12-25/ffmpeg_g -y -f lavfi -i color=c=orange:s=320x240:r=25 -frames:v 250 -f xv arbitraryfilename Failed to read a valid object file image from memory. [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". ffmpeg version 2.1.git Copyright (c) 2000-2013 the FFmpeg developers built on Dec 26 2013 18:21:20 with gcc 4.8.0 (GCC) configuration: --prefix=/home/mbarsnic/sys/linux_x86-64 --cc=gcc-4.8 --extra-cflags='-I/home/mbarsnic/sys/linux_x86-64/include -I/usr/corp/pkgs/X11/R7.6/include -I/tmp/Bui/ffmpeg/x264-tmp-install/include' --extra-ldflags='-L/home/mbarsnic/sys/linux_x86-64/lib -Wl,-rpath,/home/mbarsnic/sys/linux_x86-64/lib -L/usr/corp/pkgs/X11/R7.6/lib -Wl,-rpath,/usr/corp/pkgs/X11/R7.6/lib -Wl,-rpath,/usr/corp/pkgs/openssl/1.0.1c/lib64 -L/tmp/Bui/ffmpeg/x264-tmp-install/lib -ldl' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --enable-libx264 --enable-fontconfig --enable-libopenjpeg --enable-librtmp --enable-openssl --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-x11grab --enable-ffprobe --enable-ffplay --enable-pthreads --enable-static --disable-shared --disable-yasm --cc=gcc-4.8 --cxx=g++-4.8 libavutil 52. 59.100 / 52. 59.100 libavcodec 55. 46.100 / 55. 46.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.102 / 4. 0.102 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [New Thread 0x40200940 (LWP 19881)] [New Thread 0x40401940 (LWP 19882)] [New Thread 0x40602940 (LWP 19883)] [New Thread 0x40803940 (LWP 19884)] [New Thread 0x40a04940 (LWP 19885)] [New Thread 0x40c05940 (LWP 19886)] [New Thread 0x40e06940 (LWP 19887)] [New Thread 0x41007940 (LWP 19888)] [New Thread 0x41208940 (LWP 19889)] [New Thread 0x41409940 (LWP 19890)] [New Thread 0x4160a940 (LWP 19891)] [New Thread 0x4180b940 (LWP 19892)] [New Thread 0x41a0c940 (LWP 19893)] Input #0, lavfi, from 'color=c=orange:s=320x240:r=25': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc [New Thread 0x41c0d940 (LWP 19894)] [New Thread 0x41e0e940 (LWP 19895)] [New Thread 0x4200f940 (LWP 19896)] [New Thread 0x42210940 (LWP 19897)] [New Thread 0x42411940 (LWP 19898)] [New Thread 0x42612940 (LWP 19899)] [New Thread 0x42813940 (LWP 19900)] [New Thread 0x42a14940 (LWP 19901)] [New Thread 0x42c15940 (LWP 19902)] [New Thread 0x42e16940 (LWP 19903)] [New Thread 0x43017940 (LWP 19904)] [New Thread 0x43218940 (LWP 19905)] [New Thread 0x43419940 (LWP 19906)] Program received signal SIGSEGV, Segmentation fault. 0x000000000047ce0d in xv_write_header (s=0x17bf060) at libavdevice/xv.c:152 152 xv->xv_port = ai[0].base_id; (gdb) bt #0 0x000000000047ce0d in xv_write_header (s=0x17bf060) at libavdevice/xv.c:152 #1 0x0000000000562d57 in avformat_write_header (s=s at entry=0x17bf060, options=0x17bf008) at libavformat/mux.c:397 #2 0x00000000004776e6 in transcode_init () at ffmpeg.c:2641 #3 0x000000000045d29f in transcode () at ffmpeg.c:3335 #4 main (argc=11, argv=0x7fffffffd998) at ffmpeg.c:3544 (gdb) disass $pc-32,$pc+32 Dump of assembler code from 0x47cded to 0x47ce2d: 0x000000000047cded : mov $0xfe,%cl 0x000000000047cdef : (bad) 0x000000000047cdf0 : decl (%rdi) 0x000000000047cdf2 : (bad) 0x000000000047cdf3 : addb $0x0,(%rax) 0x000000000047cdf6 : add %al,(%rax) 0x000000000047cdf8 : mov %r8d,0x20(%rbp) 0x000000000047cdfc : mov %r9d,0x24(%rbp) 0x000000000047ce00 : jmpq 0x47ccfd 0x000000000047ce05 : nopl (%rax) 0x000000000047ce08 : mov 0x28(%rsp),%rdi => 0x000000000047ce0d : mov (%rdi),%rax 0x000000000047ce10 : mov %eax,0x78(%rbp) 0x000000000047ce13 : callq 0x4077a0 0x000000000047ce18 : movslq 0x78(%rbp),%rsi 0x000000000047ce1c : mov 0x30(%rbp),%rdi 0x000000000047ce20 : lea 0x24(%rsp),%rdx 0x000000000047ce25 : callq 0x406d30 0x000000000047ce2a : test %rax,%rax End of assembler dump. (gdb) info all-registers rax 0x0 0 rbx 0x30323449 808596553 rcx 0x176c660 24561248 rdx 0x0 0 rsi 0x2aaaad060de0 46912535662048 rdi 0x0 0 rbp 0x17bede0 0x17bede0 rsp 0x7fffffff8ed0 0x7fffffff8ed0 r8 0x0 0 r9 0x0 0 r10 0x0 0 r11 0x2aaaacfc0e50 46912535006800 r12 0x140 320 r13 0x17bf060 24899680 r14 0x17bf840 24901696 r15 0x0 0 rip 0x47ce0d 0x47ce0d eflags 0x10246 [ PF ZF IF RF ] cs 0x33 51 ss 0x2b 43 ds 0x0 0 es 0x0 0 fs 0x0 0 gs 0x0 0 st0 0 (raw 0x00000000000000000000) st1 0 (raw 0x00000000000000000000) st2 0 (raw 0x00000000000000000000) st3 0 (raw 0x00000000000000000000) st4 0 (raw 0x00000000000000000000) st5 0 (raw 0x00000000000000000000) st6 0 (raw 0x00000000000000000000) st7 0 (raw 0x00000000000000000000) fctrl 0x37f 895 fstat 0x0 0 ftag 0xffff 65535 fiseg 0x0 0 fioff 0x0 0 foseg 0x0 0 fooff 0x0 0 fop 0x0 0 xmm0 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm1 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, ---Type to continue, or q to quit--- 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm2 {v4_float = {0x0, 0x1b, 0x0, 0x0}, v2_double = {0x7fffffff, 0x0}, v16_int8 = {0x0, 0x0, 0xc0, 0xff, 0xff, 0xff, 0xdf, 0x41, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0xffc0, 0xffff, 0x41df, 0x0, 0x0, 0x0, 0x0}, v4_int32 = { 0xffc00000, 0x41dfffff, 0x0, 0x0}, v2_int64 = {0x41dfffffffc00000, 0x0}, uint128 = 0x000000000000000041dfffffffc00000} xmm3 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0x3ff0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x3ff00000, 0x0, 0x0}, v2_int64 = {0x3ff0000000000000, 0x0}, uint128 = 0x00000000000000003ff0000000000000} xmm4 {v4_float = {0x0, 0xffffffff, 0x0, 0x0}, v2_double = {0xffffffffffffffff, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0xbff0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0xbff00000, 0x0, 0x0}, v2_int64 = {0xbff0000000000000, 0x0}, uint128 = 0x0000000000000000bff0000000000000} xmm5 {v4_float = {0x0, 0xffffffff, 0x0, 0x0}, v2_double = {0xffffffffffffffff, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0xbff0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0xbff00000, 0x0, 0x0}, v2_int64 = {0xbff0000000000000, 0x0}, uint128 = 0x0000000000000000bff0000000000000} xmm6 {v4_float = {0x0, 0xffffffff, 0x0, 0x0}, v2_double = {0xffffffffffffffff, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0, 0xbf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0xbff0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0xbff00000, 0x0, 0x0}, v2_int64 = {0xbff0000000000000, 0x0}, uint128 = 0x0000000000000000bff0000000000000} xmm7 {v4_float = {0x2b020000, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xfc, 0xa9, 0xf1, 0xd2, 0x4d, 0x62, 0x50, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xa9fc, 0xd2f1, 0x624d, 0x3f50, 0x0, 0x0, 0x0, 0x0}, v4_int32 = { 0xd2f1a9fc, 0x3f50624d, 0x0, 0x0}, v2_int64 = {0x3f50624dd2f1a9fc, 0x0}, uint128 = 0x00000000000000003f50624dd2f1a9fc} xmm8 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm9 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm10 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm11 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm12 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm13 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm14 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} xmm15 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 }, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0}, uint128 = 0x00000000000000000000000000000000} ---Type to continue, or q to quit--- mxcsr 0x1fa0 [ PE IM DM ZM OM UM PM ] (gdb) bt #0 0x000000000047ce0d in xv_write_header (s=0x17bf060) at libavdevice/xv.c:152 #1 0x0000000000562d57 in avformat_write_header (s=s at entry=0x17bf060, options=0x17bf008) at libavformat/mux.c:397 #2 0x00000000004776e6 in transcode_init () at ffmpeg.c:2641 #3 0x000000000045d29f in transcode () at ffmpeg.c:3335 #4 main (argc=11, argv=0x7fffffffd998) at ffmpeg.c:3544 (gdb) p *s $1 = {av_class = 0xc22700 , iformat = 0x0, oformat = 0x10afd00 , priv_data = 0x17bede0, pb = 0x0, ctx_flags = 0, nb_streams = 1, streams = 0x1783960, filename = "arbitraryfilename", '\000' , start_time = 0, duration = 0, bit_rate = 0, packet_size = 0, max_delay = 700000, flags = 512, probesize = 5000000, max_analyze_duration = 5000000, key = 0x0, keylen = 0, nb_programs = 0, programs = 0x0, video_codec_id = AV_CODEC_ID_NONE, audio_codec_id = AV_CODEC_ID_NONE, subtitle_codec_id = AV_CODEC_ID_NONE, max_index_size = 1048576, max_picture_buffer = 3041280, nb_chapters = 0, chapters = 0x0, metadata = 0x176ca40, start_time_realtime = 0, fps_probe_size = -1, error_recognition = 1, interrupt_callback = {callback = 0x46fa60 , opaque = 0x0}, debug = 0, ts_id = 0, audio_preload = 0, max_chunk_duration = 0, max_chunk_size = 0, use_wallclock_as_timestamps = 0, avoid_negative_ts = -1, avio_flags = 0, duration_estimation_method = AVFMT_DURATION_FROM_PTS, skip_initial_bytes = 0, correct_ts_overflow = 1, seek2any = 0, flush_packets = 1, probe_score = 0, packet_buffer = 0x0, packet_buffer_end = 0x0, data_offset = 0, raw_packet_buffer = 0x0, raw_packet_buffer_end = 0x0, parse_queue = 0x0, parse_queue_end = 0x0, raw_packet_buffer_remaining_size = 0, offset = 0, offset_timebase = {num = 0, den = 0}, io_repositioned = 0, video_codec = 0x0, audio_codec = 0x0, subtitle_codec = 0x0} (gdb) up 1 #1 0x0000000000562d57 in avformat_write_header (s=s at entry=0x17bf060, options=0x17bf008) at libavformat/mux.c:397 397 ret = s->oformat->write_header(s); (gdb) p *options $2 = (AVDictionary *) 0x0 (gdb) quit A debugging session is active. Inferior 1 [process 19873] will be killed. Quit anyway? (y or n) y mbarsnic at hostname:/tmp/Bui/ffmpeg/ffmpeg-2013-12-25 > xvinfo X-Video Extension version 2.2 screen #0 no adaptors present mbarsnic at hostname:/tmp/Bui/ffmpeg/ffmpeg-2013-12-25 > xdpyinfo |grep -Fi xv XVideo mbarsnic at hostname:/tmp/Bui/ffmpeg/ffmpeg-2013-12-25 > exit Script done on Thu Dec 26 18:24:52 2013 From ffmpusers at acmeaom.com Thu Dec 26 18:19:10 2013 From: ffmpusers at acmeaom.com (acme123) Date: Thu, 26 Dec 2013 09:19:10 -0800 (PST) Subject: [FFmpeg-user] Need an ffmpeg guru Message-ID: <1388078350227-4662900.post@n4.nabble.com> Hey there; we're looking to hire an ffmpeg guru who's got a lot of experience taking live video on a Windows system and streaming it to IIS Media Services via ffmpeg. If you think you might be able to help us out and would like to earn some extra cash, let us know at ffmpusers at acmeaom.com...! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Need-an-ffmpeg-guru-tp4662900.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From frafart at free.fr Thu Dec 26 21:53:33 2013 From: frafart at free.fr (Fabrice RAFART) Date: Thu, 26 Dec 2013 21:53:33 +0100 Subject: [FFmpeg-user] Deal with AAC priming when join file Message-ID: <52BC974D.1070206@free.fr> Hello, How to deal with AAC priming when I join files ? AAC imply priming (and padding) as describe in https://developer.apple.com/library/mac/technotes/tn2258/_index.html. Normally, AAC's decoder deal with this and suppress blank sound at the begin and at the end of file. How can I join several mp4/AAC file, without reencoding ? I can't use concat because ffmpeg see only 1 input, so the primping of the second (and others) file isn't suppressed. The mp4 file came from : udp stream -> TS file ffmpeg -i udp://$AdresseIP:5000 -threads 1 -force_key_frames 1 -c:a mp2 -c:v mpeg2video -map 0 -f segment -segment_time 30.000 -segment_time_delta 0.005 /tmp/segment/video_%03d.ts ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 20 2013 15:33:41 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/home/yacuser/ffmpeg_build --extra-cflags=-I/home/yacuser/ffmpeg_build/include --extra-ldflags=-L/home/yacuser/ffmpeg_build/lib --extra-libs=-ldl --enable-gpl --enable-libass --enable-libaacplus --enable-libx264 --enable-nonfree libavutil 52. 48.101 / 52. 48.101 libavcodec 55. 39.101 / 55. 39.101 libavformat 55. 19.104 / 55. 19.104 libavdevice 55. 5.100 / 55. 5.100 libavfilter 3. 90.100 / 3. 90.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [mpeg2video @ 0x23f8fe0] Invalid frame dimensions 0x0. Last message repeated 22 times Input #0, mpegts, from 'udp://226.168.22.8:5000': Duration: N/A, start: 76691.618500, bitrate: 192 kb/s Program 515 Stream #0:0[0x140]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x14a](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s Output #0, segment, to '/yacast/segment/video_%03d.ts': Metadata: encoder : Lavf55.19.104 Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0:1(fra): Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> mpeg2video) Stream #0:1 -> #0:1 (mp2 -> mp2) Press [q] to stop, [?] for help frame=47392 fps= 25 q=31.0 size=N/A time=00:31:35.60 bitrate=N/A dup=27 drop=0 TS file -> mp4/m4a file (I give only the audio/only command) ffmpeg -i ts/audio_${i}.ts -c:a libaacplus -ab 64k -ac 2 mp4/audio_${i}.m4a; done ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers built on Nov 29 2013 19:09:44 with gcc 4.7 (Debian 4.7.2-5) configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/i386-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disab libavutil 52. 18.100 / 52. 18.100 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.104 / 54. 63.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 42.103 / 3. 42.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x89964c0] max_analyze_duration 5000000 reached at 5015467 microseconds Input #0, mpegts, from 'ts/audio_000.ts': Duration: 00:00:29.99, start: 0.000000, bitrate: 182 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Audio: mp2 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 128 kb/s Output #0, ipod, to 'mp4/audio_000.m4a': Metadata: encoder : Lavf54.63.104 Stream #0:0: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (mp2 -> libaacplus) Press [q] to stop, [?] for help size= 242kB time=00:00:30.04 bitrate= 65.9kbits/s video:0kB audio:235kB subtitle:0 global headers:0kB muxing overhead 2.930555% For the concatenation, I try MP4Box (with -inter 0) : MP4Box -inter 0 -force-cat -cat mp4/audio_000.m4a -cat mp4/audio_001.m4a -cat mp4/audio_002.m4a -new mp4/segment_mp4box.m4a Appending file mp4/audio_000.m4a No suitable destination track found - creating new one (type soun) Appending file mp4/audio_001.m4a WARNING: Concatenating track ID 1 even though sample descriptions do not match Appending file mp4/audio_002.m4a WARNING: Concatenating track ID 1 even though sample descriptions do not match Setting up iTunes/iPod file... Saving mp4/segment_mp4box.m4a: Flat storage Regards, Sorry for my poor english. Fabrice. From infos at madovsky.org Thu Dec 26 22:03:59 2013 From: infos at madovsky.org (Madovsky) Date: Thu, 26 Dec 2013 13:03:59 -0800 Subject: [FFmpeg-user] x11grab and v4l2loopback Message-ID: <6562B10E34254B0EB1A28647EA0BCBC5@e1705> Hi, is anyone has the best way of how to use fullscreen capture to v4l2loopback ? thanks Franck From soeren at zfaas.com Fri Dec 27 04:47:07 2013 From: soeren at zfaas.com (Soeren Balko) Date: Fri, 27 Dec 2013 13:47:07 +1000 Subject: [FFmpeg-user] Transcoding with different codec (libfdk_aac) alters duration, how to fix? Message-ID: Hi, I have built a transcoding workflow, which is meant to run in a distributed Grid computing environment. The idea is to improve transcoding latencies by first splitting input files using the segment muxer ( http://www.ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment), then individually transcoding the segments on different nodes (into mpegts containers) and finally join the transcoded segments with the concat protocol (http://ffmpeg.org/ffmpeg-protocols.html#concat). This works in principle but causes problems in the resulting output file at the boundaries of the joined segments. Specifically, there is an audible "gap" in the audio stream. I have created a simple test case to reproduce the issue: https://gist.github.com/sbalko/fcc930d4f6f5f7b03ed6 In trying to fix up this issue, I identified a possible reason. When transcoding a segment into AAC (using libfdk_aac), the resulting audio frames are very different. For a ~2 sec input segment, the first frame had pkt_pts_time=*0.000000*, pkt_duration_time=*0.021333 *and the last frame pkt_pts_time=*1.984000*, pkt_duration_time=*0.018000 *(resulting in a total duration of 2.002 seconds). After transcoding the segment like so: ffmpeg -y -i input_audio00.mov -f mpegts -mpegts_copyts 1 -acodec libfdk_aac output_audio00.ts the output file's first and last audio frames have pkt_pts_time=*0.000000*; pkt_duration_time=*0.021333 *and pkt_pts_time=*2.026667*; pkt_duration_time=*0.021333, *respectively, resulting in an overall duration of 2.048 seconds. I also figured that the input file had 94 audio frames, whereas the output file has 96 frames. I realize that all this may have been introduced by re-encoding the audio stream. In an effort to rectify the deviating timestamps, I tried the aresample filter like: ffmpeg -y -i input_audio00.mov -f mpegts -mpegts_copyts 1 -acodec libfdk_aac -af aresample=async=1000 output_audio00.ts without any effect. I would have hoped aresample somehow retrieves the timestamps from the input file and stretches or squeezes the output file to match these. My understanding of how aresample would retrieve the original timestamps is kind of limited - so perhaps something is fundamentally wrong here (?) Any ideas are greatly appreciated! Thanks, Soeren From dssnosher at gmail.com Fri Dec 27 06:13:26 2013 From: dssnosher at gmail.com (Andy) Date: Fri, 27 Dec 2013 00:13:26 -0500 Subject: [FFmpeg-user] Can not stream /dev/video0 Message-ID: My device name is Hauppauge Win 150 MCE. No luck so far and I cant seem to find this error msg in Google Config: Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 100 MaxBandwidth 104890 CustomLog - NoDaemon File /tmp/dvbstest.ffm FileMaxSize 20M ACL allow 127.0.0.1 ACL allow localhost ACL allow 192.168.0.0 192.168.0.255 #launch ffmpeg -i http://192.168.1.55:6004 Feed dvbstest.ffm Format flv AudioBitRate 64 AudioChannels 2 AudioSampleRate 44100 AVOptionAudio flags +global_header VideoBitRate 256 VideoBufferSize 400 VideoFrameRate 7.5 VideoBitRateTolerance 100 VideoSize 320x240 VideoGopSize 12 AudioCodec aac VideoCodec libx264 AVOptionVideo coder 0 AVOptionVideo bf 0 AVOptionVideo flags +loop #AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8 AVOptionVideo me_method hex AVOptionVideo subq 7 AVOptionVideo me_range 16 AVOptionVideo g 250 AVOptionVideo keyint_min 10 AVOptionVideo sc_threshold 40 AVOptionVideo i_qfactor 0.71 AVOptionVideo b_strategy 1 AVOptionVideo qcomp 0.6 AVOptionVideo qmin 10 AVOptionVideo qmax 51 AVOptionVideo qdiff 4 AVOptionVideo refs 3 AVOptionVideo directpred 1 AVOptionVideo trellis 1 AVOptionVideo wpredp 0 AVOptionVideo flags +global_header StartSendOnKey Format status ACL allow 127.0.0.1 ACL allow localhost ACL allow 192.168.0.0 192.168.0.255 Ffserver start fine Now my ffmpeg line ffmpeg -y -f:v video4linux2 -i /dev/video0 -f:a alsa -ac 1 -i hw:1,0 -threads 2 -override_ffserver -flags +global_header -vcodec libx264 -s 320x240 -preset superfast -r 7.5 -acodec aac -ar 44100 http://192.168.0.11:8090/dvbstest.ffm Now the output ffmpeg version git-2013-12-24-b259704 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 24 2013 00:49:47 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 59.100 / 52. 59.100 libavcodec 55. 46.100 / 55. 46.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.100 / 4. 0.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 *[video4linux2,v4l2 @ 0xb080d60] The device does not support the streaming I/O method./dev/video0: Function not implemented* Any ideas how to fix this? From infos at e-blokos.com Thu Dec 26 21:56:28 2013 From: infos at e-blokos.com (E-Blokos) Date: Thu, 26 Dec 2013 12:56:28 -0800 Subject: [FFmpeg-user] x11grab and v4l2loopback Message-ID: Hi, is anyone has the best way of how to use fullscreen capture to v4l2loopback ? thanks Franck From infos at madovsky.org Fri Dec 27 09:10:59 2013 From: infos at madovsky.org (Madovsky) Date: Fri, 27 Dec 2013 00:10:59 -0800 Subject: [FFmpeg-user] x11grab and v4l2loopback References: Message-ID: <5513E4D3BD904387A03F74489573F13F@e1705> Ok I just found some examples thanks ----- Original Message ----- From: "E-Blokos" To: "FFmpeg user questions" Sent: Thursday, December 26, 2013 12:56 PM Subject: [FFmpeg-user] x11grab and v4l2loopback > Hi, > > is anyone has the best way of how to use fullscreen capture to > v4l2loopback ? > > thanks > > Franck > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From bart.gopnik at gmail.com Fri Dec 27 09:37:30 2013 From: bart.gopnik at gmail.com (=?KOI8-R?B?4sHS1CDnz9DOycs=?=) Date: Fri, 27 Dec 2013 12:37:30 +0400 Subject: [FFmpeg-user] How to set LAME -q equivalent switch in FFMPEG? Message-ID: This is how I use LAME: lame -q 0 -b 320 input.wav output.mp3 Is there equivalent to LAME's -q switch/parameter/option ( http://wiki.hydrogenaudio.org/index.php?title=LAME_-q_switch) in FFMPEG that I need to add to the following command-line? ffmpeg -i input.wav -ab 320k output.mp3 From inpost at gmail.com Fri Dec 27 11:00:23 2013 From: inpost at gmail.com (e-letter) Date: Fri, 27 Dec 2013 10:00:23 +0000 Subject: [FFmpeg-user] how to change ffmpeg configuration In-Reply-To: <20131211141437.7069a8ec@lrcd.com> References: <20131211141437.7069a8ec@lrcd.com> Message-ID: On 11/12/2013, Lou wrote: > On Wed, 11 Dec 2013 22:43:43 +0000 > e-letter wrote: > >> Readers, >> >> An attempt to convert flv to ogg failed: >> >> ffmpeg -i file.flv file.ogg >> >> FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers > > This is old. Please compile from git master or use a recent build: > Libav910 was obtained, compiled and installed into /usr/local/libavcodec Video is converted, but no sound. Bashrc file edited: ... export LIBAVCODEC_DIR=/usr/local/libavcodec ... avconv --help avconv version 9.10, Copyright (c) 2000-2013 the Libav developers built on Dec 15 2013 13:35:50 with gcc 4.4.3 (GCC) Hyper fast Audio and Video encoder $ avconv -t 30 -i file.mp4.flv test.ogv avconv version 9.10, Copyright (c) 2000-2013 the Libav developers built on Dec 15 2013 13:35:50 with gcc 4.4.3 (GCC) [flv @ 0xa7c1020] max_analyze_duration reached Input #0, flv, from 'file.mp4.flv': Metadata: moovPosition : 36 avcprofile : 77 avclevel : 31 aacaot : 2 videoframerate : 25 audiochannels : 2 Duration: 02:02:14.39, start: 0.000000, bitrate: N/A Stream #0.0: Video: h264 (Main), yuv420p, 832x468 [PAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc Stream #0.1: Audio: aac, 48000 Hz, stereo, fltp Output #0, ogg, to 'test.ogv': Metadata: moovPosition : 36 avcprofile : 77 avclevel : 31 aacaot : 2 videoframerate : 25 audiochannels : 2 Stream #0.0: Video: [0][0][0][0] / 0x0000, q=2-31, 200 kb/s, 90k tbn Stream #0.1: Audio: flac, 0 channels, 200 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> ?) Stream #0:1 -> #0:1 (aac -> flac) Automatic encoder selection failed for output stream #0:0. Default encoder for format ogg is probably disabled. Please choose an encoder manually. $ avconv -codecs avconv version 9.10, Copyright (c) 2000-2013 the Libav developers built on Dec 15 2013 13:35:50 with gcc 4.4.3 (GCC) Codecs: D..... = Decoding supported .E.... = Encoding supported ..V... = Video codec ..A... = Audio codec ..S... = Subtitle codec ...I.. = Intra frame-only codec ....L. = Lossy compression .....S = Lossless compression ------- DEV.L. mpeg1video MPEG-1 video DEV.L. mpeg2video MPEG-1 video ..V.L. mpegvideo_xvmc MPEG-1/2 video XvMC (X-Video Motion Compensation) DEV.L. h261 H.261 DEV.L. h263 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2 DEV.L. rv10 RealVideo 1.0 DEV.L. rv20 RealVideo 1.0 DEVIL. mjpeg Motion JPEG D.VIL. mjpegb Apple MJPEG-B .EVI.S ljpeg Lossless JPEG D.VIL. sp5x Sunplus JPEG (SP5X) DEVILS jpegls JPEG-LS DEV.L. mpeg4 MPEG-4 part 2 DEVI.S rawvideo raw video D.V.L. msmpeg4v1 MPEG-4 part 2 Microsoft variant version 1 DEV.L. msmpeg4v2 MPEG-4 part 2 Microsoft variant version 2 DEV.L. msmpeg4v3 MPEG-4 part 2 Microsoft variant version 3 (decoders: msmpeg4 ) (encoders: msmpeg4 ) DEV.L. wmv1 Windows Media Video 7 DEV.L. wmv2 Windows Media Video 8 .EV.L. h263p H.263+ / H.263-1998 / H.263 version 2 D.V.L. h263i Intel H.263 DEV.L. flv1 FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (decoders: flv ) (encoders: flv ) DEV.L. svq1 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1 D.V.L. svq3 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3 DEVIL. dvvideo DV (Digital Video) DEVI.S huffyuv HuffYUV D.VIL. cyuv Creative YUV (CYUV) D.V.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 D.V.L. indeo3 Intel Indeo 3 D.V.L. vp3 On2 VP3 D.V.L. theora Theora DEVIL. asv1 ASUS V1 DEVIL. asv2 ASUS V2 DEV..S ffv1 FFmpeg video codec #1 D.V.L. 4xm 4X Movie D.VIL. vcr1 ATI VCR1 DEVIL. cljr Cirrus Logic AccuPak D.VIL. mdec Sony PlayStation MDEC (Motion DECoder) DEV.L. roq id RoQ video (decoders: roqvideo ) (encoders: roqvideo ) D.V.L. interplayvideo Interplay MVE video D.V.L. xan_wc3 Wing Commander III / Xan D.V.L. xan_wc4 Wing Commander IV / Xxan D.V.L. rpza QuickTime video (RPZA) D.V.L. cinepak Cinepak D.V.L. ws_vqa Westwood Studios VQA (Vector Quantized Animation) video (decoders: vqavideo ) D.V..S msrle Microsoft RLE D.V.L. msvideo1 Microsoft Video 1 D.V.L. idcin id Quake II CIN video (decoders: idcinvideo ) D.VI.S 8bps QuickTime 8BPS video D.V.L. smc QuickTime Graphics (SMC) D.V..S flic Autodesk Animator Flic video D.V.L. truemotion1 Duck TrueMotion 1.0 D.V.L. vmdvideo Sierra VMD video D.VI.S mszh LCL (LossLess Codec Library) MSZH DEVI.S zlib LCL (LossLess Codec Library) ZLIB DEV..S qtrle QuickTime Animation (RLE) video ..V.LS snow Snow D.V..S tscc TechSmith Screen Capture Codec (decoders: camtasia ) D.V.L. ulti IBM UltiMotion (decoders: ultimotion ) D.VI.S qdraw Apple QuickDraw D.VIL. vixl Miro VideoXL (decoders: xl ) D.V.L. qpeg Q-team QPEG DEV..S png PNG (Portable Network Graphics) image DEVI.S ppm PPM (Portable PixelMap) image DEVI.S pbm PBM (Portable BitMap) image DEVI.S pgm PGM (Portable GrayMap) image DEVI.S pgmyuv PGMYUV (Portable GrayMap YUV) image DEVI.S pam PAM (Portable AnyMap) image DEVI.S ffvhuff Huffyuv FFmpeg variant D.V.L. rv30 RealVideo 3.0 D.V.L. rv40 RealVideo 4.0 D.V.L. vc1 SMPTE VC-1 D.V.L. wmv3 Windows Media Video 9 D.VI.S loco LOCO D.VIL. wnv1 Winnov WNV1 D.V..S aasc Autodesk RLE D.V.L. indeo2 Intel Indeo 2 D.V..S fraps Fraps D.V.L. truemotion2 Duck TrueMotion 2.0 DEVI.S bmp BMP (Windows and OS/2 bitmap) D.V..S cscd CamStudio (decoders: camstudio ) D.V.L. mmvideo American Laser Games MM Video DEV..S zmbv Zip Motion Blocks Video D.V.L. avs AVS (Audio Video Standard) video D.V.L. smackvideo Smacker video (decoders: smackvid ) D.V.L. nuv NuppelVideo/RTJPEG D.V.L. kmvc Karl Morton's video codec DEV..S flashsv Flash Screen Video v1 D.V.L. cavs Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile) ..VILS jpeg2000 JPEG 2000 D.V..S vmnc VMware Screen Codec / VMware Video D.V.L. vp5 On2 VP5 D.V.L. vp6 On2 VP6 D.V.L. vp6f On2 VP6 (Flash version) DEVI.S targa Truevision Targa image D.V.L. dsicinvideo Delphine Software International CIN video D.V.L. tiertexseqvideo Tiertex Limited SEQ video DEVI.S tiff TIFF image DEV..S gif GIF (Graphics Interchange Format) D.V..S dxa Feeble Files/ScummVM DXA DEVIL. dnxhd VC3/DNxHD D.VIL. thp Nintendo Gamecube THP video DEVIL. sgi SGI image D.V.L. c93 Interplay C93 D.V.L. bethsoftvid Bethesda VID video D.VIL. ptx V.Flash PTX image D.VIL. txd Renderware TXD (TeXture Dictionary) image D.V.L. vp6a On2 VP6 (Flash version, with alpha channel) D.VIL. amv AMV Video D.V.L. vb Beam Software VB DEVI.S pcx PC Paintbrush PCX image DEVI.S sunrast Sun Rasterfile image D.V.L. indeo4 Intel Indeo Video Interactive 4 D.V.L. indeo5 Intel Indeo Video Interactive 5 D.V.L. mimic Mimic D.VIL. rl2 RL2 video D.V.L. escape124 Escape 124 ..V.LS dirac Dirac D.V.L. bfi Brute Force & Ignorance D.V.L. cmv Electronic Arts CMV video (decoders: eacmv ) D.V.L. motionpixels Motion Pixels video D.V.L. tgv Electronic Arts TGV video (decoders: eatgv ) D.V.L. tgq Electronic Arts TGQ video (decoders: eatgq ) D.V.L. tqi Electronic Arts TQI video (decoders: eatqi ) D.VIL. aura Auravision AURA D.VIL. aura2 Auravision Aura 2 D.VI.S v210x D.VIL. tmv DEVI.S v210 Uncompressed 4:2:2 10-bit DEVIL. dpx DPX image D.V.L. mad Electronic Arts Madcow Video (decoders: eamad ) D.VI.S frwu Forward Uncompressed D.V.L. flashsv2 Flash Screen Video v2 D.V.L. cdgraphics CD Graphics video D.VI.S r210 Uncompressed RGB 10-bit D.V.L. anm Deluxe Paint Animation D.V.L. binkvideo Bink video D.V.L. iff_ilbm IFF ILBM D.V.L. iff_byterun1 IFF ByteRun1 D.V.L. kgv1 Kega Game Video D.V.L. yop Psygnosis YOP Video D.V.L. vp8 On2 VP8 D.VIL. pictor Pictor/PC Paint D.V.L. ansi ASCII/ANSI art .EVIL. a64_multi Multicolor charset for Commodore 64 (encoders: a64multi ) .EVIL. a64_multi5 Multicolor charset for Commodore 64, extended with 5th color (colram) (encoders: a64multi5 ) D.VI.S r10k AJA Kona 10-bit RGB Codec D.V.L. mxpeg Mobotix MxPEG video D.VI.S lagarith Lagarith lossless DEVIL. prores Apple ProRes (iCodec Pro) D.VIL. jv Bitmap Brothers JV video D.V.L. dfa Chronomaster DFA D.V.L. wmv3image Windows Media Video 9 Image D.V.L. vc1image Windows Media Video 9 Image v2 DEVI.S utvideo Ut Video D.V..S bmv_video Discworld II BMV video D.VI.S vble VBLE Lossless Codec D.VI.S dxtory Dxtory DEVI.S v410 Uncompressed 4:4:4 10-bit DEVI.S xwd XWD (X Window Dump) image D.V.L. cdxl Commodore CDXL video .EVI.S xbm D.V..S zerocodec ZeroCodec Lossless Video D.V.L. mss1 MS Screen 1 D.V.L. msa1 MS ATC Screen D.V.L. tscc2 TechSmith Screen Codec 2 D.V.L. mts2 MS Expression Encoder Screen D.VI.S cllc Canopus Lossless Codec D.VIL. mss2 MS Windows Media Video V9 Screen DEA..S pcm_s16le PCM signed 16-bit little-endian DEA..S pcm_s16be PCM signed 16-bit big-endian DEA..S pcm_u16le PCM unsigned 16-bit little-endian DEA..S pcm_u16be PCM unsigned 16-bit big-endian DEA..S pcm_s8 PCM signed 8-bit DEA..S pcm_u8 PCM unsigned 8-bit DEA... pcm_mulaw PCM mu-law DEA... pcm_alaw PCM A-law DEA..S pcm_s32le PCM signed 32-bit little-endian DEA..S pcm_s32be PCM signed 32-bit big-endian DEA..S pcm_u32le PCM unsigned 32-bit little-endian DEA..S pcm_u32be PCM unsigned 32-bit big-endian DEA..S pcm_s24le PCM signed 24-bit little-endian DEA..S pcm_s24be PCM signed 24-bit big-endian DEA..S pcm_u24le PCM unsigned 24-bit little-endian DEA..S pcm_u24be PCM unsigned 24-bit big-endian DEA..S pcm_s24daud PCM D-Cinema audio signed 24-bit D.A.L. pcm_zork PCM Zork D.A..S pcm_s16le_planar PCM 16-bit little-endian planar D.A..S pcm_dvd PCM signed 20|24-bit big-endian DEA..S pcm_f32be PCM 32-bit floating point big-endian DEA..S pcm_f32le PCM 32-bit floating point little-endian DEA..S pcm_f64be PCM 64-bit floating point big-endian DEA..S pcm_f64le PCM 64-bit floating point little-endian D.A..S pcm_bluray PCM signed 16|20|24-bit big-endian for Blu-ray media D.A..S pcm_lxf PCM signed 20-bit little-endian planar D.A.L. s302m SMPTE 302M D.A..S pcm_s8_planar PCM signed 8-bit planar DEA.L. adpcm_ima_qt ADPCM IMA QuickTime DEA.L. adpcm_ima_wav ADPCM IMA WAV D.A.L. adpcm_ima_dk3 ADPCM IMA Duck DK3 D.A.L. adpcm_ima_dk4 ADPCM IMA Duck DK4 D.A.L. adpcm_ima_ws ADPCM IMA Westwood D.A.L. adpcm_ima_smjpeg ADPCM IMA Loki SDL MJPEG DEA.L. adpcm_ms ADPCM Microsoft D.A.L. adpcm_4xm ADPCM 4X Movie D.A.L. adpcm_xa ADPCM CDROM XA DEA.L. adpcm_adx SEGA CRI ADX ADPCM D.A.L. adpcm_ea ADPCM Electronic Arts DEA.L. adpcm_g726 G.726 ADPCM (decoders: g726 ) (encoders: g726 ) D.A.L. adpcm_ct ADPCM Creative Technology DEA.L. adpcm_swf ADPCM Shockwave Flash DEA.L. adpcm_yamaha ADPCM Yamaha D.A.L. adpcm_sbpro_4 ADPCM Sound Blaster Pro 4-bit D.A.L. adpcm_sbpro_3 ADPCM Sound Blaster Pro 2.6-bit D.A.L. adpcm_sbpro_2 ADPCM Sound Blaster Pro 2-bit D.A.L. adpcm_thp ADPCM Nintendo Gamecube THP D.A.L. adpcm_ima_amv ADPCM IMA AMV D.A.L. adpcm_ea_r1 ADPCM Electronic Arts R1 D.A.L. adpcm_ea_r3 ADPCM Electronic Arts R3 D.A.L. adpcm_ea_r2 ADPCM Electronic Arts R2 D.A.L. adpcm_ima_ea_sead ADPCM IMA Electronic Arts SEAD D.A.L. adpcm_ima_ea_eacs ADPCM IMA Electronic Arts EACS D.A.L. adpcm_ea_xas ADPCM Electronic Arts XAS D.A.L. adpcm_ea_maxis_xa ADPCM Electronic Arts Maxis CDROM XA D.A.L. adpcm_ima_iss ADPCM IMA Funcom ISS DEA.L. adpcm_g722 G.722 ADPCM (decoders: g722 ) (encoders: g722 ) D.A.L. adpcm_ima_apc ADPCM IMA CRYO APC D.A.L. amr_nb AMR-NB (Adaptive Multi-Rate NarrowBand) (decoders: amrnb ) D.A.L. amr_wb AMR-WB (Adaptive Multi-Rate WideBand) (decoders: amrwb ) DEA.L. ra_144 RealAudio 1.0 (14.4K) (decoders: real_144 ) (encoders: real_144 ) D.A.L. ra_288 RealAudio 2.0 (28.8K) (decoders: real_288 ) DEA.L. roq_dpcm DPCM id RoQ D.A.L. interplay_dpcm DPCM Interplay D.A.L. xan_dpcm DPCM Xan D.A.L. sol_dpcm DPCM Sol DEA.L. mp2 MP2 (MPEG audio layer 2) (decoders: mp2 mp2float ) D.A.L. mp3 MP3 (MPEG audio layer 3) (decoders: mp3 mp3float ) DEA.L. aac AAC (Advanced Audio Coding) DEA.L. ac3 ATSC A/52A (AC-3) (encoders: ac3 ac3_fixed ) D.A.LS dts DCA (DTS Coherent Acoustics) (decoders: dca ) DEA.L. vorbis Vorbis ..A.L. dvaudio DEA.L. wmav1 Windows Media Audio 1 DEA.L. wmav2 Windows Media Audio 2 D.A.L. mace3 MACE (Macintosh Audio Compression/Expansion) 3:1 D.A.L. mace6 MACE (Macintosh Audio Compression/Expansion) 6:1 D.A.L. vmdaudio Sierra VMD audio DEA..S flac FLAC (Free Lossless Audio Codec) D.A.L. mp3adu ADU (Application Data Unit) MP3 (MPEG audio layer 3) (decoders: mp3adu mp3adufloat ) D.A.L. mp3on4 MP3onMP4 (decoders: mp3on4 mp3on4float ) D.A..S shorten Shorten DEA..S alac ALAC (Apple Lossless Audio Codec) D.A.L. westwood_snd1 Westwood Audio (SND1) (decoders: ws_snd1 ) D.A.L. gsm GSM D.A.L. qdm2 QDesign Music Codec 2 D.A.L. cook Cook / Cooker / Gecko (RealAudio G2) D.A.L. truespeech DSP Group TrueSpeech D.A..S tta TTA (True Audio) D.A.L. smackaudio Smacker audio (decoders: smackaud ) D.A.L. qcelp QCELP / PureVoice D.A.LS wavpack WavPack D.A.L. dsicinaudio Delphine Software International CIN audio D.A.L. imc IMC (Intel Music Coder) D.A.L. musepack7 Musepack SV7 (decoders: mpc7 ) D.A..S mlp MLP (Meridian Lossless Packing) D.A.L. gsm_ms GSM Microsoft variant D.A.L. atrac3 Atrac 3 (Adaptive TRansform Acoustic Coding 3) ..A.L. voxware Voxware RT29 Metasound D.A..S ape Monkey's Audio DEA.L. nellymoser Nellymoser Asao D.A.L. musepack8 Musepack SV8 (decoders: mpc8 ) ..A.L. speex Speex D.A.L. wmavoice Windows Media Audio Voice D.A.L. wmapro Windows Media Audio 9 Professional D.A..S wmalossless Windows Media Audio Lossless ..A.L. atrac3p Sony ATRAC3+ DEA.L. eac3 ATSC A/52B (AC-3, E-AC-3) D.A.L. sipr RealAudio SIPR / ACELP.NET D.A.L. mp1 MP1 (MPEG audio layer 1) (decoders: mp1 mp1float ) D.A.L. twinvq VQF TwinVQ D.A..S truehd TrueHD D.A..S mp4als MPEG-4 Audio Lossless Coding (ALS) (decoders: als ) D.A.L. atrac1 Atrac 1 (Adaptive TRansform Acoustic Coding) D.A.L. binkaudio_rdft Bink Audio (RDFT) D.A.L. binkaudio_dct Bink Audio (DCT) D.A.L. aac_latm AAC LATM (Advanced Audio Coding LATM syntax) ..A.L. qdmc QDesign Music ..A.L. celt Constrained Energy Lapped Transform (CELT) D.A.L. g723_1 G.723.1 ..A.L. g729 G.729 D.A.L. 8svx_exp 8SVX exponential D.A.L. 8svx_fib 8SVX fibonacci D.A.L. bmv_audio Discworld II BMV audio D.A..S ralf RealAudio Lossless D.A.L. iac IAC (Indeo Audio Coder) ..A.L. ilbc iLBC (Internet Low Bitrate Codec) ..A.L. opus Opus (Opus Interactive Audio Codec) DEA.L. comfortnoise RFC 3389 Comfort Noise D.A..S tak TAK (Tom's lossless Audio Kompressor) DES... dvd_subtitle DVD subtitles (decoders: dvdsub ) (encoders: dvdsub ) DES... dvb_subtitle DVB subtitles (decoders: dvbsub ) (encoders: dvbsub ) ..S... text raw UTF-8 text DES... xsub XSUB DES... ssa SSA (SubStation Alpha) / ASS (Advanced SSA) subtitle (decoders: ass ) (encoders: ass ) ..S... mov_text MOV text D.S... hdmv_pgs_subtitle HDMV Presentation Graphic Stream subtitles (decoders: pgssub ) ..S... dvb_teletext DVB teletext D.S... srt SubRip Text From james.darnley at gmail.com Fri Dec 27 11:27:36 2013 From: james.darnley at gmail.com (James Darnley) Date: Fri, 27 Dec 2013 11:27:36 +0100 Subject: [FFmpeg-user] How to set LAME -q equivalent switch in FFMPEG? In-Reply-To: References: Message-ID: <52BD5618.1060009@gmail.com> On 2013-12-27 09:37, ???? ?????? wrote: > This is how I use LAME: > lame -q 0 -b 320 input.wav output.mp3 > > Is there equivalent to LAME's -q switch/parameter/option ( > http://wiki.hydrogenaudio.org/index.php?title=LAME_-q_switch) in FFMPEG > that I need to add to the following command-line? > ffmpeg -i input.wav -ab 320k output.mp3 -compression_level -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From frafart at free.fr Fri Dec 27 14:42:48 2013 From: frafart at free.fr (frafart at free.fr) Date: Fri, 27 Dec 2013 14:42:48 +0100 (CET) Subject: [FFmpeg-user] Transcoding with different codec (libfdk_aac) alters duration, how to fix? In-Reply-To: Message-ID: <2007898122.298052696.1388151768078.JavaMail.root@zimbra74-e12.priv.proxad.net> Hi, > This works in principle but causes problems in the resulting output file at > the boundaries of the joined segments. Specifically, there is an > audible "gap" in the audio stream. You have the same "problem" than me : AAC protocol induced "Audio priming". See : https://developer.apple.com/library/mac/documentation/quicktime/qtff/QTFFAppenG/QTFF The 0.046s added in the file after AAC encoding must be a bunch of silence at the begining. You can see my post on this list ("Deal with AAC priming when join file"). If you find a solution, thank to think to me ! :) Fabrice. From yamusanivinay at gmail.com Fri Dec 27 15:11:27 2013 From: yamusanivinay at gmail.com (Yamusani Vinay) Date: Fri, 27 Dec 2013 19:41:27 +0530 Subject: [FFmpeg-user] cpu load Message-ID: Hi All, I am using ffmpeg in my android to play audio songs..But the problem is that my app is consuming high cpu load almost 70%.So is there any way to reduce cpu load of my application? My questions: 1.If i use sdl in my android app cpu load will be reduced or not? 2.If I compile ffmpeg by enabling neon then cpu load will be reduced or not? Thanks & Regards, Vinay Yamusani. From riokierkels at gmail.com Fri Dec 27 15:29:51 2013 From: riokierkels at gmail.com (Rio Kierkels) Date: Fri, 27 Dec 2013 15:29:51 +0100 Subject: [FFmpeg-user] Full to studio levels In-Reply-To: References: Message-ID: Yes I'm sure. I've built some colorbars using the ARIB STD-B28 spec ( http://www.arib.or.jp/english/html/overview/doc/6-STD-B28v1_0-E1.pdf) in linear 32bit exr and transformed it to BT.709 primaries in a dpx container. I could send a zip with the sequence I'm using if you'd like On 26 December 2013 16:24, Carl Eugen Hoyos wrote: > Rio Kierkels gmail.com> writes: > > > Stream #0:0: Video: dpx, gbrp10le, 1920x1080 > > Do you know the dynamics of your input frames? > Is black 0x00 and "white" 0x3FF? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- 42 From cehoyos at ag.or.at Fri Dec 27 15:31:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 27 Dec 2013 14:31:56 +0000 (UTC) Subject: [FFmpeg-user] how to change ffmpeg configuration References: <20131211141437.7069a8ec@lrcd.com> Message-ID: e-letter gmail.com> writes: > avconv version 9.10 avconv is known to contain several hundred bugs not reproducible with FFmpeg, some of them security relevant, please understand that we cannot support it here. See http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html for more information. You can download supported versions from http://ffmpeg.org/download.html - current git head is recommended if you are not a distributor. Carl Eugen From cehoyos at ag.or.at Fri Dec 27 15:32:37 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 27 Dec 2013 14:32:37 +0000 (UTC) Subject: [FFmpeg-user] cpu load References: Message-ID: Yamusani Vinay gmail.com> writes: > 2.If I compile ffmpeg by enabling neon then cpu > load will be reduced or not? Why did you disable neon? Please do not cross-post, Carl Eugen From andrey.krieger.utkin at gmail.com Sat Dec 28 04:25:48 2013 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Sat, 28 Dec 2013 05:25:48 +0200 Subject: [FFmpeg-user] [OFFTOP] Which webcam streaming services do you use? Message-ID: Terribly sorry for offtop, just there are a lot of multimedia professionals, so it is interesting to ask there. Which webcam streaming services (aka "webcam hosting service") do/would you use for your IP cameras? I am not about videochats, i am about live streaming of e.g. street views or landscapes. If self-hosted, please name the software. If third-side one (which is my primary interest), please specify, and if possible, please specify how much do you pay for it, and what you get for it (limits, features). If you use none, please specify which solution would you consider first and why. If you don't like publishing this info, but OK to share it with me personally, please reply off-list, just to my address. Thank you for sharing any info, and sorry again for offtop. -- Andrey Utkin From onephatcat at earthlink.net Sat Dec 28 06:05:24 2013 From: onephatcat at earthlink.net (Joel B) Date: Fri, 27 Dec 2013 21:05:24 -0800 Subject: [FFmpeg-user] [OFFTOP] Which webcam streaming services do you use? In-Reply-To: References: Message-ID: <57411D6E-E45F-4EC4-B2A6-B564EFA67A35@earthlink.net> > On Dec 27, 2013, at 7:25 PM, Andrey Utkin wrote: > > Terribly sorry for offtop, just there are a lot of multimedia > professionals, so it is interesting to ask there. > Which webcam streaming services (aka "webcam hosting service") > do/would you use for your IP cameras? > I am not about videochats, i am about live streaming of e.g. street > views or landscapes. > If self-hosted, please name the software. > If third-side one (which is my primary interest), please specify, and > if possible, please specify how much do you pay for it, and what you > get for it (limits, features). > If you use none, please specify which solution would you consider first and why. > If you don't like publishing this info, but OK to share it with me > personally, please reply off-list, just to my address. > Thank you for sharing any info, and sorry again for offtop. > > -- > Andrey Utkin > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user ScaleEngine would be my first choice in terms of price, quality and ease of configuration, assuming RTMP->HLS delivery, especially if you are a startup small business with no funding beyond your day job. Joel From werner.robitza at gmail.com Sat Dec 28 11:28:47 2013 From: werner.robitza at gmail.com (Werner Robitza) Date: Sat, 28 Dec 2013 11:28:47 +0100 Subject: [FFmpeg-user] meaning of macroblock colors when using vis_mb_type option In-Reply-To: References: Message-ID: In case you're still interested in an answer, I tried to decode the values used in mpegvideo.c: http://superuser.com/a/693654/48078 If anyone spots a flaw there, do let me know. On Fri, Jun 1, 2012 at 1:29 AM, Wesley S. wrote: > Hi, > > I was wondering what all the different macroblock colors meant > when using the vis_mb_type option? > > Kind regards, > Wesley > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sat Dec 28 13:06:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 28 Dec 2013 12:06:33 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?meaning_of_macroblock_colors_when_using_v?= =?utf-8?q?is=5Fmb=5Ftype_option?= References: Message-ID: Werner Robitza gmail.com> writes: > In case you're still interested in an answer, I tried > to decode the values used in mpegvideo.c: > > http://superuser.com/a/693654/48078 You may want to write a wiki article about this. Please do not top-post here, Carl Eugen From bart.gopnik at gmail.com Sat Dec 28 13:25:27 2013 From: bart.gopnik at gmail.com (=?KOI8-R?B?4sHS1CDnz9DOycs=?=) Date: Sat, 28 Dec 2013 16:25:27 +0400 Subject: [FFmpeg-user] How to set FLAC --no-padding equivalent switch in FFMPEG? Message-ID: This is how I use FLAC: flac --best --no-padding input.wav Is there equivalent to FLAC's --no-padding switch/parameter/option ( https://xiph.org/flac/documentation_tools_flac.html#negative_options) in FFMPEG? BTW, what is equivalent value of -compression_level switch in FFMPEG to --best ( https://xiph.org/flac/documentation_tools_flac.html#flac_options_best) switch in FLAC? (In FLAC --best currently synonymous with -8, or --compression-level-8, or -l 12 -b 4096 -m -e -r 6) What is maximum value of -compression_level switch for FLAC codec in FFMPEG? From cehoyos at ag.or.at Sat Dec 28 14:07:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 28 Dec 2013 13:07:49 +0000 (UTC) Subject: [FFmpeg-user] How to set FLAC --no-padding equivalent switch in FFMPEG? References: Message-ID: ???? ?????? gmail.com> writes: > This is how I use FLAC: > flac --best --no-padding input.wav I may misunderstand your questions but are you aware that FFmpeg does not use libflac for flac encoding (and decoding)? So you generally cannot ask for "equivalent" options, I don't know what --no-padding does but I suspect this is the default for FFmpeg (and cannot be undone). > What is maximum value of -compression_level > switch for FLAC codec in FFMPEG? Maximum value is 12 for flac encoding. Carl Eugen From james.darnley at gmail.com Sat Dec 28 17:03:10 2013 From: james.darnley at gmail.com (James Darnley) Date: Sat, 28 Dec 2013 17:03:10 +0100 Subject: [FFmpeg-user] How to set FLAC --no-padding equivalent switch in FFMPEG? In-Reply-To: References: Message-ID: <52BEF63E.3030800@gmail.com> On 2013-12-28 14:07, Carl Eugen Hoyos wrote: > ???? ?????? gmail.com> writes: > >> This is how I use FLAC: >> flac --best --no-padding input.wav > > I may misunderstand your questions but are you > aware that FFmpeg does not use libflac for flac > encoding (and decoding)? > > So you generally cannot ask for "equivalent" > options, I don't know what --no-padding does > but I suspect this is the default for FFmpeg > (and cannot be undone). As I wrote it, so unless it has been changed, ffmpeg (libavformat) will always write 8192 bytes of padding to the header of flac files. It should be simple(ish) to add a control for the padding. I can do it if people want it. I have also considered padding for ID3 tags on mp3 files. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Sat Dec 28 18:23:15 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 28 Dec 2013 17:23:15 +0000 (UTC) Subject: [FFmpeg-user] How to set FLAC --no-padding equivalent switch in FFMPEG? References: <52BEF63E.3030800@gmail.com> Message-ID: James Darnley gmail.com> writes: > > I don't know what --no-padding does > > but I suspect this is the default for FFmpeg > > (and cannot be undone). > > As I wrote it, so unless it has been changed, > ffmpeg (libavformat) will always write 8192 bytes > of padding to the header of flac files. Thank you for clarifying! Carl Eugen From david at davidfavor.com Sun Dec 29 05:15:36 2013 From: david at davidfavor.com (David Favor) Date: Sat, 28 Dec 2013 22:15:36 -0600 Subject: [FFmpeg-user] Question about splitting video with dvd_nav_packet data streams Message-ID: <52BFA1E8.7030900@davidfavor.com> I have around 100 VOB files (format @ end). My goal is to process every stream as follows... 1) adjust volume 2) reduce bitrate 3) retain all data streams (varies 1-3 data streams/VOB file) Questions... Probably the easiest way to handle this is just to split all the streams into separate files... process them... reassemble them... 1) I'm familiar with -c:v + -c:a usage... Someone let me know how to reference data streams, as the docs appear wrong... for example... this fails... ffmpeg -i VTS_01_0.VOB -c:d:0 copy -c:v:1 copy -c:a:2 copy foo.vob rather than a straight copy... this drops the data stream + re-encodes audio to mp2. So first question is just how to do a straight copy, so eventually I can do all my processing by substituting filters where required. These all fail... - ffmpeg -i VTS_01_0.VOB -map 0 -c:d:0 copy -map 0 -c:v:1 copy -map 0 -c:a:2 copy foo.vob Input #0, mpeg, from 'VTS_01_0.VOB': Duration: 00:00:33.99, start: 0.300300, bitrate: 80296 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], max. 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s Data stream encoding not supported yet (only streamcopy) - ffmpeg -i VTS_01_0.VOB -map 0 -c:d:0 copy -c:v:1 copy -c:a:2 copy foo.vob Output #0, svcd, to 'foo.vob': Metadata: encoder : Lavf55.22.100 Stream #0:0: Data: dvd_nav_packet Stream #0:1: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Stream #0:2: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (mpeg2video -> mpeg2video) Stream #0:2 -> #0:2 (pcm_dvd -> mp2) Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted - ffmpeg -i VTS_01_0.VOB -map 0:0 -c copy -map 0:1 -c copy -map 0:2 -c copy foo.vob Output #0, svcd, to 'foo.vob': Metadata: encoder : Lavf55.22.100 Stream #0:0: Data: dvd_nav_packet Stream #0:1: Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, max. 8000 kb/s, 29.97 fps, 90k tbn, 29.97 tbc Stream #0:2: Audio: pcm_dvd, 48000 Hz, stereo, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Stream #0:2 -> #0:2 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted 2) Next question is syntax to extract each stream into a separate file + then reassemble all components back into a VOB container. The following extracts the first audio + first video stream correctly + the data stream fails because of an incorrect extension... So question is, what's the correct extension for extracting data streams... ffmpeg -y -i VTS_01_0.VOB -c:a pcm_s16le -ar 44100 -ac 2 foo.wav -map 0:1 -c:v copy foo.vob -map 0:1 -c:d copy foo.data Input #0, mpeg, from 'VTS_01_0.VOB': Duration: 00:00:33.99, start: 0.300300, bitrate: 80296 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], max. 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s [NULL @ 0x7fb0f2038600] Unable to find a suitable output format for 'foo.data' foo.data: Invalid argument David-Favor-iMac> ffmpeg -i VTS_01_0.VOB ffmpeg version 2.1.1-2013-12-29-59404-g54bb30b Copyright (c) 2000-2013 the FFmpeg developers built on Dec 28 2013 20:05:13 with gcc 4.8.2 (MacPots gcc48 4.8.2_0) configuration: --prefix=/david-favor-tools/osx-10.9 --enable-pic --enable-gpl --disable-debug --extra-cflags='-I/david-favor-tools/osx-10.9/include -I/opt/local/include -I/usr/local/include -I/usr/include' --extra-ldflags='-Wl,-rpath,/david-favor-tools/osx-10.9/lib -Wl,-rpath,/opt/local/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/david-favor-tools/osx-10.9/lib -L/opt/local/lib -L/usr/local/lib -L/usr/lib' --enable-version3 --enable-shared --disable-static --enable-ffplay --enable-ffprobe --enable-ffserver --enable-runtime-cpudetect --enable-nonfree --enable-zlib --enable-bzlib --enable-openssl --enable-libmp3lame --enable-libfaac --enable-libfdk_aac --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libopus --enable-libopenjpeg --enable-libx264 --enable-postproc --enable-frei0r --enable-libopencore-amrnb --enable-libfreetype --enable-libmodplug --enable-libass --enable-openssl libavutil 52. 59.100 / 52. 59.100 libavcodec 55. 47.100 / 55. 47.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.103 / 4. 0.103 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Guessed Channel Layout for Input Stream #0.2 : stereo Input #0, mpeg, from 'VTS_01_0.VOB': Duration: 00:00:33.99, start: 0.300300, bitrate: 80296 kb/s Stream #0:0[0x1bf]: Data: dvd_nav_packet Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, smpte170m), 720x480 [SAR 8:9 DAR 4:3], max. 8000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:2[0xa0]: Audio: pcm_dvd, 48000 Hz, stereo, s16, 1536 kb/s From bart.gopnik at gmail.com Sun Dec 29 08:42:00 2013 From: bart.gopnik at gmail.com (=?KOI8-R?B?4sHS1CDnz9DOycs=?=) Date: Sun, 29 Dec 2013 11:42:00 +0400 Subject: [FFmpeg-user] How to set FLAC --no-padding equivalent switch in FFMPEG? In-Reply-To: References: <52BEF63E.3030800@gmail.com> Message-ID: I know that FFMPEG doesn't use LibFLAC and has its own FLAC codec based on source code of Flake (http://flake-enc.sourceforge.net/). But it's a pain in the ass to find any info on Flake encoder options. "equivalent options" = options produced equivalent (not bit-by-bit identical streams, but have comparable compress ratio) output. Maximum value of -compression_level option in LibFLAC is 8, maximum value of -compression_level option in Flake and FFMPEG is 12. Is FLAC files compressed by FFMPEG with -compression_level 12 compatible with reference FLAC decoders and hardware implimentation? Should I use -compression_level 8 instead of -compression_level 12 for saving compatibility (is -compression_level 8 in FFMPEG equivalent to -compression_level in LibFLAC in this regard)? > It should be simple(ish) to add a control for the padding. I can do it if people want it. It would be nice! Could you please add a control for the padding in FLAC (equivalent to --no-padding swith in LibFLAC)? ;) > I have also considered padding for ID3 tags on mp3 files. Did you mean MP3 Header (http://gabriel.mp3-tech.org/mp3infotag.html) instead of leading padding (silence to the beginning of each song)? MP3 header is very useful thing. It must be enabled for VBR (VBR MP3 files without Xing tag are unusable) and should be (very recommended) for CBR MP3 files. But I think users should still be able to control (enable/disable) MP3 header. Could you please add a control MP3 header (equivalent to -t swith in LAME)? As I know, there are differences in "MP3 Header"/"Xing tag"/"INFO Tag"/"LAME Tag" and "delay"/"padding" terms in MP3! See detailed explanation here: http://lame.sourceforge.net/tech-FAQ.txt 2013/12/28 Carl Eugen Hoyos > James Darnley gmail.com> writes: > > > > I don't know what --no-padding does > > > but I suspect this is the default for FFmpeg > > > (and cannot be undone). > > > > As I wrote it, so unless it has been changed, > > ffmpeg (libavformat) will always write 8192 bytes > > of padding to the header of flac files. > > Thank you for clarifying! > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From werner.robitza at gmail.com Sun Dec 29 10:44:06 2013 From: werner.robitza at gmail.com (Werner Robitza) Date: Sun, 29 Dec 2013 10:44:06 +0100 Subject: [FFmpeg-user] meaning of macroblock colors when using vis_mb_type option In-Reply-To: References: Message-ID: On Sat, Dec 28, 2013 at 1:06 PM, Carl Eugen Hoyos wrote: > You may want to write a wiki article about this. Done: http://trac.ffmpeg.org/wiki/Debugging%20Macroblocks%20and%20Motion%20Vectors From george at nsup.org Sun Dec 29 11:33:14 2013 From: george at nsup.org (Nicolas George) Date: Sun, 29 Dec 2013 11:33:14 +0100 Subject: [FFmpeg-user] segfault in "xv" output format In-Reply-To: <20131226175335.GA27814@sunshine.barsnick.net> References: <20131226175335.GA27814@sunshine.barsnick.net> Message-ID: <20131229103314.GA13214@phare.normalesup.org> Le sextidi 6 niv?se, an CCXXII, Moritz Barsnick a ?crit?: > I recently discovered support for the "xv" output format, which > displays to an XVideo enabled X11 device. But running within a VNC > session, I haven't had much success. ffmpeg segfaults shortly after > opening the X11 window. For all I know, this VNC server supports > XVideo. (And even if not, no segfault should occur.) Thanks for the report. I just sent a patch to the mailing-list. Note: VNC supports the XVideo extension, but does not provide any adaptor, at least on my setup and probably yours. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: From james.darnley at gmail.com Sun Dec 29 11:33:41 2013 From: james.darnley at gmail.com (James Darnley) Date: Sun, 29 Dec 2013 11:33:41 +0100 Subject: [FFmpeg-user] How to set FLAC --no-padding equivalent switch in FFMPEG? In-Reply-To: References: <52BEF63E.3030800@gmail.com> Message-ID: <52BFFA85.1090000@gmail.com> On 2013-12-29 08:42, ???? ?????? wrote: > I know that FFMPEG doesn't use LibFLAC and has its own FLAC codec based on > source code of Flake (http://flake-enc.sourceforge.net/). But it's a pain > in the ass to find any info on Flake encoder options. For specific options for flac you can see them by running: ffmpeg -h encoder=flac You can see other options for other components in a similar way. -compression_level is a common option so it doesn't shiow under these and then you have to guess what it might control or just read it from the source. > "equivalent options" = options produced equivalent (not bit-by-bit > identical streams, but have comparable compress ratio) output. > > Maximum value of -compression_level option in LibFLAC is 8, maximum value > of -compression_level option in Flake and FFMPEG is 12. > > Is FLAC files compressed by FFMPEG with -compression_level 12 compatible > with reference FLAC decoders and hardware implimentation? > Should I use -compression_level 8 instead of -compression_level 12 for > saving compatibility (is -compression_level 8 in FFMPEG equivalent to > -compression_level in LibFLAC in this regard)? If I remember using flake correctly I think that using anything greater than 8 (the max in libflac) produces what the flac project calls "non-subset files". The flac project gives lots of warning about these files. I don't know if they actually present any problems for hardware decoders. 12 doesn't compress much more than 8 so if you are worried about this then stick with 8. If you really want to know ask somewhere more dedicated than ffmpeg's support list. Perhaps try Hydrogenaudio. >> It should be simple(ish) to add a control for the padding. I can do it > if people want it. > > It would be nice! Could you please add a control for the padding in FLAC > (equivalent to --no-padding swith in LibFLAC)? ;) I shall get my environment set up again >> I have also considered padding for ID3 tags on mp3 files. > > Did you mean MP3 Header (http://gabriel.mp3-tech.org/mp3infotag.html) > instead of leading padding (silence to the beginning of each song)? > MP3 header is very useful thing. It must be enabled for VBR (VBR MP3 files > without Xing tag are unusable) and should be (very recommended) for CBR MP3 > files. But I think users should still be able to control (enable/disable) > MP3 header. Could you please add a control MP3 header (equivalent to -t > swith in LAME)? When I said ID3 I meant ID3, specifically ID3v2 and an equivalent of lame's --pad-id3v2-size option. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 683 bytes Desc: OpenPGP digital signature URL: From barsnick at gmx.net Sun Dec 29 12:02:33 2013 From: barsnick at gmx.net (Moritz Barsnick) Date: Sun, 29 Dec 2013 12:02:33 +0100 Subject: [FFmpeg-user] segfault in "xv" output format In-Reply-To: <20131229103314.GA13214@phare.normalesup.org> References: <20131226175335.GA27814@sunshine.barsnick.net> <20131229103314.GA13214@phare.normalesup.org> Message-ID: <20131229110233.GA16630@sunshine.barsnick.net> On Sun, Dec 29, 2013 at 11:33:14 +0100, Nicolas George wrote: > Thanks for the report. I just sent a patch to the mailing-list. Thanks! > Note: VNC supports the XVideo extension, but does not provide any adaptor, > at least on my setup and probably yours. So, judging from the patch, that is the actual issue? Yes, in my report, there's output from xvinfo saying that there are no adaptors present: mbarsnic at hostname:/tmp/Bui/ffmpeg/ffmpeg-2013-12-25 > xvinfo X-Video Extension version 2.2 screen #0 no adaptors present Darn, I thought I had previously successfully used XVideo on VNC. I will re-check when I'm back online at work (this was on Real VNC Enterprise edition). I just discovered that NoMachine NX has the same issue an said VNC session. mplayer, with "-vo xv", kindly reports: [VO_XV] It seems there is no Xvideo support for your video card available. [VO_XV] Run 'xvinfo' to verify its Xv support and read [VO_XV] DOCS/HTML/en/video.html#xv! [VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers. [VO_XV] Try -vo x11. Okay, tough luck for me with the new ffmpeg "xv" output on my display targets. Thanks anyway! Moritz From cehoyos at ag.or.at Sun Dec 29 12:07:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Dec 2013 11:07:33 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Question_about_splitting_video_with_dvd?= =?utf-8?q?=5Fnav=5Fpacket_data_streams?= References: <52BFA1E8.7030900@davidfavor.com> Message-ID: David Favor davidfavor.com> writes: > My goal is to process every stream as follows... > > 1) adjust volume > 2) reduce bitrate > 3) retain all data streams (varies 1-3 data streams/VOB file) > Probably the easiest way to handle this is just to split > all the streams into separate files... process them... > reassemble them... As you have shown convincingly, this is not correct. Please try to apply all necessary changes in one command, if it fails, please post the command line together with the complete, uncut console output here. Carl Eugen From ramitbhalla at gmail.com Sun Dec 29 12:13:43 2013 From: ramitbhalla at gmail.com (Ramit Bhalla) Date: Sun, 29 Dec 2013 06:13:43 -0500 Subject: [FFmpeg-user] Set PTS=DTS Message-ID: When trying to stream copy (I'm trimming files) WTV files I often get an error: [wtv @ 06cd9020] pts (12251328) < dts (13051330) in stream 2 I know programatically once can set PTS=DTS in ffmpeg to overcome this issue. Is there any way in the command line to set PTS=DTS for ffmpeg while stream copying? Thanks, RBoy From eclipse7 at gmx.net Sun Dec 29 12:35:20 2013 From: eclipse7 at gmx.net (Alexander Strasser) Date: Sun, 29 Dec 2013 12:35:20 +0100 Subject: [FFmpeg-user] meaning of macroblock colors when using vis_mb_type option In-Reply-To: References: Message-ID: <20131229113519.GA2820@akuma.fritz.box> On 2013-12-29 10:44 +0100, Werner Robitza wrote: > On Sat, Dec 28, 2013 at 1:06 PM, Carl Eugen Hoyos wrote: > > You may want to write a wiki article about this. > > Done: http://trac.ffmpeg.org/wiki/Debugging%20Macroblocks%20and%20Motion%20Vectors Looks nice. Thanks! Alexander -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: not available URL: From sylvain at lahiette.com Sun Dec 29 13:08:44 2013 From: sylvain at lahiette.com (Sylvain) Date: Sun, 29 Dec 2013 13:08:44 +0100 Subject: [FFmpeg-user] Pipe subtitles to ffmpeg exe Message-ID: <462792409.1q7FETrIJ6@inpixalsta18.site> HI, I am using ffmpeg to encode and mux a SPTS mpeg-ts with H264 video. I provide the input pictures thru a pipe ,and it works fine. But i need to add some DVB subtitles to the SPTS stream, and i am searching a way to provide the subtiles thru another pipe/named FIFO. Despite mutiple trials, i am not able to generate the subtitles in this way. Note that the subtitles are generated by my own application, so i can format them in any needed format. The command i use for the video : ffmpeg -re -r 25 -f rawvideo -vcodec rawvideo -pix_fmt yuv420p -s 720x576 -i - -an -vcodec libx264 -tune zerolatency -preset veryfast -x264opts intra-refresh:keyint=12:fps=25:bitrate=1800 -f mpegts -muxrate 1800K udp://localhost:54320?pkt_size=1316 Ideally, i would like to add another input for subtitles like this : mkfido subtitles.fifo ffmpeg... -i subtitles.fifo -scodec dvbsub .... So what could be the format of the data pushed into subtitles.fifo ? Thanks for your help, Regards, SF From soeren at zfaas.com Sun Dec 29 13:19:02 2013 From: soeren at zfaas.com (Soeren Balko) Date: Sun, 29 Dec 2013 22:19:02 +1000 Subject: [FFmpeg-user] Transcoding with different codec (libfdk_aac) alters duration, how to fix? In-Reply-To: <2007898122.298052696.1388151768078.JavaMail.root@zimbra74-e12.priv.proxad.net> References: <2007898122.298052696.1388151768078.JavaMail.root@zimbra74-e12.priv.proxad.net> Message-ID: I figured that FFmpeg prefixes and suffixes transcoded audio streams with "mute" intervals for other codecs too. In the same audio, I found that the prefix/suffix lengths are libfdk_aac: 0.01024/0.01179 sec; libfaac: 0.0/0.01182 sec; mp2: 0.0044/0.00148 sec; ac3: 0.00257/0.00414 sec. Even though the mute prefixes/suffixes are very different, this seems to be a generic behavior, which obviously causes problems when concatenating multiple transcoded audio streams. I wonder if there is a way to stop the encoders from introducing these mute intervals? Will at the least look into the libfdk_aac source. On Fri, Dec 27, 2013 at 11:42 PM, wrote: > Hi, > > > This works in principle but causes problems in the resulting output file > at > > the boundaries of the joined segments. Specifically, there is an > > audible "gap" in the audio stream. > > You have the same "problem" than me : AAC protocol induced "Audio priming". > See : > https://developer.apple.com/library/mac/documentation/quicktime/qtff/QTFFAppenG/QTFF > > The 0.046s added in the file after AAC encoding must be a bunch of silence > at the begining. > > You can see my post on this list ("Deal with AAC priming when join file"). > > If you find a solution, thank to think to me ! :) > > Fabrice. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sun Dec 29 13:46:37 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Dec 2013 12:46:37 +0000 (UTC) Subject: [FFmpeg-user] Pipe subtitles to ffmpeg exe References: <462792409.1q7FETrIJ6@inpixalsta18.site> Message-ID: Sylvain lahiette.com> writes: > Note that the subtitles are generated by my own > application, so i can format them in any needed format. Then please use mpeg-ts which is the only format that makes sense for dvbsub. Why don't you let FFmpeg create the subtitles? You do know that the mpeg-ts muxer (contrary to most/all other parts of FFmpeg) is known to have problems creating compliant streams? This is particularly true for dvbsubs, this is currently tried to being fixed, please help if you can, see for example ticket #2989. Carl Eugen From cehoyos at ag.or.at Sun Dec 29 13:47:26 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Dec 2013 12:47:26 +0000 (UTC) Subject: [FFmpeg-user] Set PTS=DTS References: Message-ID: Ramit Bhalla gmail.com> writes: > When trying to stream copy (I'm trimming files) WTV > files I often get an error: > > [wtv 06cd9020] pts (12251328) < dts (13051330) in stream 2 Command line and complete, uncut console output missing. Carl Eugen From bart.gopnik at gmail.com Sun Dec 29 14:20:18 2013 From: bart.gopnik at gmail.com (=?KOI8-R?B?4sHS1CDnz9DOycs=?=) Date: Sun, 29 Dec 2013 17:20:18 +0400 Subject: [FFmpeg-user] How to set FLAC --no-padding equivalent switch in FFMPEG? In-Reply-To: <52BFFA85.1090000@gmail.com> References: <52BEF63E.3030800@gmail.com> <52BFFA85.1090000@gmail.com> Message-ID: It is strange that FFMPEG don't show any warnings when user use greater than 8 value of -compression_level switch in flac codec (if FFMPEG with these values REALLY produces "non-subset files"). > When I said ID3 I meant ID3, specifically ID3v2 and an equivalent of lame's --pad-id3v2-size option. Sorry for my inattention. :-[ FFMPEG's FLAC encoder support variable block size encoding? I've found this awesame document ( http://sourceforge.net/p/flake-enc/code/HEAD/tree/doc/flac_constraints.txt). It would be nice if somebody add it to FFMPEG documentation. 2013/12/29 James Darnley > On 2013-12-29 08:42, ???? ?????? wrote: > > I know that FFMPEG doesn't use LibFLAC and has its own FLAC codec based > on > > source code of Flake (http://flake-enc.sourceforge.net/). But it's a > pain > > in the ass to find any info on Flake encoder options. > > For specific options for flac you can see them by running: > ffmpeg -h encoder=flac > > You can see other options for other components in a similar way. > -compression_level is a common option so it doesn't shiow under these > and then you have to guess what it might control or just read it from > the source. > > > "equivalent options" = options produced equivalent (not bit-by-bit > > identical streams, but have comparable compress ratio) output. > > > > Maximum value of -compression_level option in LibFLAC is 8, maximum value > > of -compression_level option in Flake and FFMPEG is 12. > > > > Is FLAC files compressed by FFMPEG with -compression_level 12 compatible > > with reference FLAC decoders and hardware implimentation? > > Should I use -compression_level 8 instead of -compression_level 12 for > > saving compatibility (is -compression_level 8 in FFMPEG equivalent to > > -compression_level in LibFLAC in this regard)? > > If I remember using flake correctly I think that using anything greater > than 8 (the max in libflac) produces what the flac project calls > "non-subset files". The flac project gives lots of warning about these > files. I don't know if they actually present any problems for hardware > decoders. > > 12 doesn't compress much more than 8 so if you are worried about this > then stick with 8. > > If you really want to know ask somewhere more dedicated than ffmpeg's > support list. Perhaps try Hydrogenaudio. > > >> It should be simple(ish) to add a control for the padding. I can do it > > if people want it. > > > > It would be nice! Could you please add a control for the padding in FLAC > > (equivalent to --no-padding swith in LibFLAC)? ;) > > I shall get my environment set up again > > >> I have also considered padding for ID3 tags on mp3 files. > > > > Did you mean MP3 Header (http://gabriel.mp3-tech.org/mp3infotag.html) > > instead of leading padding (silence to the beginning of each song)? > > MP3 header is very useful thing. It must be enabled for VBR (VBR MP3 > files > > without Xing tag are unusable) and should be (very recommended) for CBR > MP3 > > files. But I think users should still be able to control (enable/disable) > > MP3 header. Could you please add a control MP3 header (equivalent to -t > > swith in LAME)? > > When I said ID3 I meant ID3, specifically ID3v2 and an equivalent of > lame's --pad-id3v2-size option. > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From blacktrash at gmx.net Sun Dec 29 14:26:24 2013 From: blacktrash at gmx.net (Christian Ebert) Date: Sun, 29 Dec 2013 13:26:24 +0000 Subject: [FFmpeg-user] meaning of macroblock colors when using vis_mb_type option In-Reply-To: References: Message-ID: <20131229132624.GB40382@krille.blacktrash.org> * Werner Robitza on Sunday, December 29, 2013 at 10:44:06 +0100 > On Sat, Dec 28, 2013 at 1:06 PM, Carl Eugen Hoyos wrote: >> You may want to write a wiki article about this. > > Done: http://trac.ffmpeg.org/wiki/Debugging%20Macroblocks%20and%20Motion%20Vectors Wow. Thank you. -- Was hei?t hier Dogma, ich bin Underdogma! [ What the hell do you mean dogma, I am underdogma. ] free movies --->>> http://www.blacktrash.org/underdogma http://itunes.apple.com/podcast/underdogma-movies/id363423596 From ramitbhalla at gmail.com Sun Dec 29 15:14:42 2013 From: ramitbhalla at gmail.com (Ramit Bhalla) Date: Sun, 29 Dec 2013 09:14:42 -0500 Subject: [FFmpeg-user] Set PTS=DTS In-Reply-To: References: Message-ID: See below: I noticed that the dev at QSTranscode overrides this situation by manually settings the dts=pts programatically. Is there some way to do this (or avoid this error) from the command line? ffmpeg -y -ss 10 -i "..\H264 Remuxsupp working.wtv" -vcodec copy -an test.wtv ffmpeg version N-59362-ge079661 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 25 2013 17:42:26 with gcc 4.8.0 (GCC) configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/bin /i686-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-lib mp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enabl e-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable -libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable- libilbc --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libmodplug --extra-libs=-lstdc++ --enable-libzvbi --enable-libcaca --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-i686/i686-w64-mingw32 --enab le-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray - -extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-runtime-cpudetect libavutil 52. 59.100 / 52. 59.100 libavcodec 55. 46.100 / 55. 46.100 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 4. 0.102 / 4. 0.102 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS referenced [h264 @ 03d65000] non-existing SPS 0 referenced in buffering period [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] non-existing PPS 0 referenced [h264 @ 03d65000] decode_slice_header error [h264 @ 03d65000] no frame! [h264 @ 03d65000] mmco: unref short failure [h264 @ 03d65000] number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one Input #0, wtv, from '..\H264 Remuxsupp working.wtv': Metadata: Tuner ID : 34FE29F6-56B4-4E0D-9EAF-42A888D218E5 WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : F1: Grand Prix WM/SubTitle : Canada WM/SubTitleDescription: Suzi Perry presents live coverage of the Canadian Grand Prix from Montreal. The Circuit Gill es Villeneuve has been a happy hunting ground for Lewis Hamilton in recent years. In 2012 he won his third Grand Prix th ere thanks to a sparkling performance in hi genre : Motor Sport;Sport;4 Star;Motor Cars;Motorcars;F1;Formula 1;Formula One WM/OriginalReleaseTime: 0 WM/MediaCredits : ;;; service_provider: BBC 1 service_name : BBC 1 WM/MediaNetworkAffiliation: dvblink WM/MediaOriginalChannel: 1 WM/MediaOriginalChannelSubNumber: 0 WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z WM/MediaOriginalRunTime: 108574852334 WM/MediaIsStereo: false WM/MediaIsRepeat: false WM/MediaIsLive : false WM/MediaIsTape : false WM/MediaIsDelay : false WM/MediaIsSubtitled: false WM/MediaIsMovie : false WM/MediaIsPremiere: false WM/MediaIsFinale: false WM/MediaIsSAP : false WM/MediaIsSport : false WM/ParentalRating: *** WM/Provider : MediaCenterDefault WM/ProviderRating: *** WM/VideoClosedCaptioning: false WM/WMRVEncodeTime: 2013-06-09 17:14:02 WM/WMRVSeriesUID: !GenericSeries!F1: Grand Prix WM/WMRVServiceID: !Generated!d1fde876482445b185fc66163596f081 WM/WMRVProgramID: !Generated!3c46c811de7e47ad98415c5f628663dc WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 0 WM/WMRVOriginalSoftPrePadding: 360 WM/WMRVOriginalSoftPostPadding: 300 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: false WM/WMRVDTVContent: true WM/WMRVHDContent: true Duration : 5705690788 WM/WMRVEndTime : 2013-06-09 17:23:33 WM/WMRVBitrate : 14.422836 WM/WMRVKeepUntil: -1 WM/WMRVActualSoftPrePadding: 357 WM/WMRVActualSoftPostPadding: -9986 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationSpan: 9223372036854775807 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : false WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 1056 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 1920 WM/MediaThumbAspectRatioY: 1080 WM/MediaThumbTimeStamp: 4646727600202711928 Duration: 00:09:29.72, start: 2866.580118, bitrate: 14444 kb/s Stream #0:0[0x55](eng): Subtitle: dvb_subtitle Stream #0:1[0x56](eng): Subtitle: dvb_teletext, 492x250 Stream #0:2[0x57](eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s Stream #0:3[0x58](nar): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 256 kb/s (visual impaired) Stream #0:4[0x59]: Video: h264 (High), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 10000k tbn, 50 tbc Stream #0:5[0xffffffff]: Video: mjpeg, yuvj420p(pc), 200x113 [SAR 96:96 DAR 200:113], 90k tbr, 90k tbn, 90k tbc Metadata: title : TV Thumbnail Output #0, wtv, to 'test.wtv': Metadata: Tuner ID : 34FE29F6-56B4-4E0D-9EAF-42A888D218E5 WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74 WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000 Title : F1: Grand Prix WM/SubTitle : Canada WM/SubTitleDescription: Suzi Perry presents live coverage of the Canadian Grand Prix from Montreal. The Circuit Gill es Villeneuve has been a happy hunting ground for Lewis Hamilton in recent years. In 2012 he won his third Grand Prix th ere thanks to a sparkling performance in hi genre : Motor Sport;Sport;4 Star;Motor Cars;Motorcars;F1;Formula 1;Formula One WM/OriginalReleaseTime: 0 WM/MediaCredits : ;;; service_provider: BBC 1 service_name : BBC 1 WM/MediaNetworkAffiliation: dvblink WM/MediaOriginalChannel: 1 WM/MediaOriginalChannelSubNumber: 0 WM/MediaOriginalBroadcastDateTime: 0001-01-01T00:00:00Z WM/MediaOriginalRunTime: 108574852334 WM/MediaIsStereo: false WM/MediaIsRepeat: false WM/MediaIsLive : false WM/MediaIsTape : false WM/MediaIsDelay : false WM/MediaIsSubtitled: false WM/MediaIsMovie : false WM/MediaIsPremiere: false WM/MediaIsFinale: false WM/MediaIsSAP : false WM/MediaIsSport : false WM/ParentalRating: *** WM/Provider : MediaCenterDefault WM/ProviderRating: *** WM/VideoClosedCaptioning: false WM/WMRVEncodeTime: 2013-06-09 17:14:02 WM/WMRVSeriesUID: !GenericSeries!F1: Grand Prix WM/WMRVServiceID: !Generated!d1fde876482445b185fc66163596f081 WM/WMRVProgramID: !Generated!3c46c811de7e47ad98415c5f628663dc WM/WMRVRequestID: 0 WM/WMRVScheduleItemID: 0 WM/WMRVQuality : 0 WM/WMRVOriginalSoftPrePadding: 360 WM/WMRVOriginalSoftPostPadding: 300 WM/WMRVHardPrePadding: -300 WM/WMRVHardPostPadding: 0 WM/WMRVATSCContent: false WM/WMRVDTVContent: true WM/WMRVHDContent: true Duration : 5705690788 WM/WMRVEndTime : 2013-06-09 17:23:33 WM/WMRVBitrate : 14.422836 WM/WMRVKeepUntil: -1 WM/WMRVActualSoftPrePadding: 357 WM/WMRVActualSoftPostPadding: -9986 WM/WMRVContentProtected: false WM/WMRVContentProtectedPercent: 0 WM/WMRVExpirationSpan: 9223372036854775807 WM/WMRVInBandRatingSystem: 255 WM/WMRVInBandRatingLevel: 255 WM/WMRVInBandRatingAttributes: 0 WM/WMRVWatched : false WM/MediaThumbWidth: 352 WM/MediaThumbHeight: 198 WM/MediaThumbStride: 1056 WM/MediaThumbRet: 0 WM/MediaThumbRatingSystem: 255 WM/MediaThumbRatingLevel: 255 WM/MediaThumbRatingAttributes: 0 WM/MediaThumbAspectRatioX: 1920 WM/MediaThumbAspectRatioY: 1080 WM/MediaThumbTimeStamp: 4646727600202711928 encoder : Lavf55.22.100 Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 10000k tbn, 25 tbc Stream mapping: Stream #0:4 -> #0:0 (copy) Press [q] to stop, [?] for help [wtv @ 03d84b40] pts (12251328) < dts (13051330) in stream 0 av_interleaved_write_frame(): Invalid argument On Sun, Dec 29, 2013 at 7:47 AM, Carl Eugen Hoyos wrote: > Ramit Bhalla gmail.com> writes: > > > When trying to stream copy (I'm trimming files) WTV > > files I often get an error: > > > > [wtv 06cd9020] pts (12251328) < dts (13051330) in stream 2 > > Command line and complete, uncut console output missing. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sun Dec 29 15:24:58 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Dec 2013 14:24:58 +0000 (UTC) Subject: [FFmpeg-user] Set PTS=DTS References: Message-ID: Ramit Bhalla gmail.com> writes: > Stream #0:4[0x59]: Video: h264 (High) > I know programatically once can set PTS=DTS in ffmpeg > to overcome this issue. This is not generally correct for h264 streams. Please do not top-post here, it is considered rude. Carl Eugen From ramitbhalla at gmail.com Sun Dec 29 15:51:56 2013 From: ramitbhalla at gmail.com (Ramit Bhalla) Date: Sun, 29 Dec 2013 09:51:56 -0500 Subject: [FFmpeg-user] Set PTS=DTS In-Reply-To: References: Message-ID: Sorry, I didn't understand both your comments: > Stream #0:4[0x59]: Video: h264 (High) > I know programatically once can set PTS=DTS in ffmpeg > to overcome this issue. > This is not generally correct for h264 streams. What is not correct? > Please do not top-post here, it is considered rude. What did I top-post? On Sun, Dec 29, 2013 at 9:24 AM, Carl Eugen Hoyos wrote: > Ramit Bhalla gmail.com> writes: > > > Stream #0:4[0x59]: Video: h264 (High) > > > I know programatically once can set PTS=DTS in ffmpeg > > to overcome this issue. > > This is not generally correct for h264 streams. > > Please do not top-post here, it is considered rude. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From jpboard2 at yahoo.com Sun Dec 29 16:12:33 2013 From: jpboard2 at yahoo.com (James Board) Date: Sun, 29 Dec 2013 07:12:33 -0800 (PST) Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? Message-ID: <1388329953.42621.YahooMailBasic@web120206.mail.ne1.yahoo.com> The subject line says it all. I'm playing an audio stream from the WWW on my Linux PC. Can I record this stream and save it to a file with ffmpeg? If not, what's the easiest way to do this? Thanks From sylvain at lahiette.com Sun Dec 29 16:28:27 2013 From: sylvain at lahiette.com (Sylvain) Date: Sun, 29 Dec 2013 16:28:27 +0100 Subject: [FFmpeg-user] Pipe subtitles to ffmpeg exe In-Reply-To: References: <462792409.1q7FETrIJ6@inpixalsta18.site> Message-ID: <2562165.1fftu6XVFD@inpixalsta18.site> Thanks for your response. So, if i undestand well, you recommand to create a mpeg-ts with only 1 subtitle stream in my application, then to remux it using the input pipe in the final command. Correct ? I was not aware of the bug, i will look deeper into the code to see what is happening. Regards, SF Le dimanche 29 d?cembre 2013 12:46:37 Carl Eugen Hoyos a ?crit : > Sylvain lahiette.com> writes: > > > Note that the subtitles are generated by my own > > application, so i can format them in any needed format. > > Then please use mpeg-ts which is the only format that > makes sense for dvbsub. > Why don't you let FFmpeg create the subtitles? > > You do know that the mpeg-ts muxer (contrary to most/all > other parts of FFmpeg) is known to have problems creating > compliant streams? > This is particularly true for dvbsubs, this is currently > tried to being fixed, please help if you can, see for > example ticket #2989. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Sun Dec 29 16:33:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Dec 2013 15:33:57 +0000 (UTC) Subject: [FFmpeg-user] Pipe subtitles to ffmpeg exe References: <462792409.1q7FETrIJ6@inpixalsta18.site> <2562165.1fftu6XVFD@inpixalsta18.site> Message-ID: Sylvain lahiette.com> writes: > So, if i undestand well, you recommand to create a mpeg-ts > with only 1 subtitle stream in my application, then to > remux it using the input pipe in the final command. I would recommend it if remuxing dvbsub would generally work. Please explain why you cannot create dvbsubs with FFmpeg, we like problem reports. Please do not top-post here, it is considered rude. Carl Eugen From sylvain at lahiette.com Sun Dec 29 16:46:20 2013 From: sylvain at lahiette.com (Sylvain) Date: Sun, 29 Dec 2013 16:46:20 +0100 Subject: [FFmpeg-user] Pipe subtitles to ffmpeg exe In-Reply-To: References: <462792409.1q7FETrIJ6@inpixalsta18.site> <2562165.1fftu6XVFD@inpixalsta18.site> Message-ID: <7564717.DgxQab3bnH@inpixalsta18.site> > I would recommend it if remuxing dvbsub would generally work. OK, understood. > Please explain why you cannot create dvbsubs with FFmpeg, we > like problem reports. I was trying to guess how to provide the input subtitles, hence my question. As i have now a hint, i am coding a test to generate a "mpeg-ts subtitles only stream", and then try to remux it. I will probably encounter the #2989, so i wil try to fix it, or at least understand what is going on > Please do not top-post here, it is considered rude. Oops, sorry, i missed that. Rgds, SF. From cehoyos at ag.or.at Sun Dec 29 16:51:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 29 Dec 2013 15:51:29 +0000 (UTC) Subject: [FFmpeg-user] Pipe subtitles to ffmpeg exe References: <462792409.1q7FETrIJ6@inpixalsta18.site> <2562165.1fftu6XVFD@inpixalsta18.site> <7564717.DgxQab3bnH@inpixalsta18.site> Message-ID: Sylvain lahiette.com> writes: > > Please explain why you cannot create dvbsubs with > > FFmpeg, we like problem reports. > > I was trying to guess how to provide the input subtitles, > hence my question. > > As i have now a hint, i am coding a test to generate a > "mpeg-ts subtitles only stream", and then try to remux it. As said, this unfortunately does not work currently (it should though and it may be possible to fix). You wrote: > Note that the subtitles are generated by my own application I am curious why you don't create the dvb subtitles with the FFmpeg dvbsub encoder. Carl Eugen From stefasab at gmail.com Sun Dec 29 17:27:41 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Sun, 29 Dec 2013 17:27:41 +0100 Subject: [FFmpeg-user] ffserver HTTP stream playback freeze In-Reply-To: <20131220172356.GA20496@barisone> References: <20131218184927.GN3396@barisone> <20131219231840.GA18898@barisone> <20131220071229.GA3960@phare.normalesup.org> <20131220172356.GA20496@barisone> Message-ID: <20131229162741.GN23884@barisone> On date Friday 2013-12-20 18:23:56 +0100, Stefano Sabatini wrote: > On date Friday 2013-12-20 08:12:29 +0100, Nicolas George wrote: > > Le decadi 30 frimaire, an CCXXII, Stefano Sabatini a ?crit?: > > > Works fine in my internal network and in an external one, freeze > > > issues observed in two external networks. TCP debugging with wireshark > > > shows that the freeze occurrs just after a TCP ZeroWindow event on the > > > client side, then for some reasons the server stops to react and won't > > > send new packets. > > > > > You mean: the client sends ZeroWindow to the server and the server stops > > reacting? At a wild guess, I would say that ZeroWindow will cause a system > > call to block on the server instead of succeeding immediately, and that > > could be handled wrong in ffserver code: the socket could be in non-blocking > > mode, the system call returns EAGAIN, and ffserver treats it partially as a > > permanent error. > > I don't think so, the issue cannot be reproduced systematically, I got > the freeze only in particular networks (2 over 3 tested), and never on > my local network. So it seems it is somehow related to the tested > network (and seems more a problem at the network level rather than at > the application level, where I can't see apparent errors). > > The ZeroWindow event usually triggers the condition where after some > short time I see no packets from the server, nor the connection is > closed, so that no data is fed to the client and it seems to hang. Another possible source of errors would be segmentation on the server side. I don't know how it is possible to set the maximum TCP segment size at the OS level, tried to modify the code and use setsocklen(... TCP_MAXSEG, ...) but doesn't seem to work properly. Note that at least with cvlc acting as HTTP server I don't get the same issue, so it seems again something related to the ffserver/network combination. From gvect31415926 at yahoo.com Sun Dec 29 20:27:55 2013 From: gvect31415926 at yahoo.com (Grad Vector) Date: Sun, 29 Dec 2013 11:27:55 -0800 (PST) Subject: [FFmpeg-user] Capturing Video/Audio for Screen Casting Message-ID: <1388345275.7195.YahooMailNeo@web162606.mail.bf1.yahoo.com> Hello Everyone, I'm running Linux Fedora 18 and I'm trying to capture both audio and video as I'm playing an mp4 file on the Linux Totem player. I could capture the video but I get no audio.? The ffmpeg command that I'm using is: ffmpeg? -f alsa? -ac 2? -i pulse? -f x11grab -r 30? -b:v 6000k? -acodec pcm_s16le -vcodec huffyuv? -preset ultrafast -threads 2? -ss 2? -t 15? outfile.avi Does anyone have any suggestions on how I could also capture the audio? Thanks very much for your help. From lou at lrcd.com Sun Dec 29 20:45:44 2013 From: lou at lrcd.com (Lou) Date: Sun, 29 Dec 2013 10:45:44 -0900 Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? In-Reply-To: <1388329953.42621.YahooMailBasic@web120206.mail.ne1.yahoo.com> References: <1388329953.42621.YahooMailBasic@web120206.mail.ne1.yahoo.com> Message-ID: <1388346344.26765.64586949.083C5104@webmail.messagingengine.com> On Sun, Dec 29, 2013, at 06:12 AM, James Board wrote: > The subject line says it all. The complete ffmpeg console output about your input stream probably wouldn't fit in the subject. > I'm playing an audio stream from the WWW on my Linux PC. > Can I record this stream and save it to a file with ffmpeg? I will say "yes", but I can only guess without knowing more about your input. Please show your command and the complete ffmpeg console output: ffmpeg -i http://input.tld/input.stream From jshupert at theppsgroup.com Sun Dec 29 16:52:18 2013 From: jshupert at theppsgroup.com (jim shupert) Date: Sun, 29 Dec 2013 10:52:18 -0500 Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? In-Reply-To: <1388329953.42621.YahooMailBasic@web120206.mail.ne1.yahoo.com> References: <1388329953.42621.YahooMailBasic@web120206.mail.ne1.yahoo.com> Message-ID: <52C04532.6050307@theppsgroup.com> On 13-12-29 10:12 AM, James Board wrote: > If not, what's the easiest way to do this? > > Thanks > > _______________________________________________ > You might enjoy audacity http://audacity.sourceforge.net/ capture with that -a wav - maybe later you might batch those into anything w ffmpeg From jshupert at theppsgroup.com Sun Dec 29 17:03:51 2013 From: jshupert at theppsgroup.com (jim shupert) Date: Sun, 29 Dec 2013 11:03:51 -0500 Subject: [FFmpeg-user] meaning of macroblock colors when using vis_mb_type option In-Reply-To: <20131229132624.GB40382@krille.blacktrash.org> References: <20131229132624.GB40382@krille.blacktrash.org> Message-ID: <52C047E7.4080301@theppsgroup.com> On 13-12-29 08:26 AM, Christian Ebert wrote: > * Werner Robitza on Sunday, December 29, 2013 at 10:44:06 +0100 >> On Sat, Dec 28, 2013 at 1:06 PM, Carl Eugen Hoyos wrote: >>> You may want to write a wiki article about this. >> Done: http://trac.ffmpeg.org/wiki/Debugging%20Macroblocks%20and%20Motion%20Vectors > Wow. Thank you. > very cool From jpboard2 at yahoo.com Mon Dec 30 01:57:18 2013 From: jpboard2 at yahoo.com (James Board) Date: Sun, 29 Dec 2013 16:57:18 -0800 (PST) Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? In-Reply-To: <52C04532.6050307@theppsgroup.com> Message-ID: <1388365038.57478.YahooMailBasic@web120203.mail.ne1.yahoo.com> > > > You might enjoy audacity > http://audacity.sourceforge.net/???capture > with that -a wav - maybe > later you might batch those into anything w ffmpeg Yes. Audacity works, and I use it, But I'd like a command-line application that does this. ffmpeg? From jpboard2 at yahoo.com Mon Dec 30 02:01:28 2013 From: jpboard2 at yahoo.com (James Board) Date: Sun, 29 Dec 2013 17:01:28 -0800 (PST) Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? In-Reply-To: <1388346344.26765.64586949.083C5104@webmail.messagingengine.com> Message-ID: <1388365288.85306.YahooMailBasic@web120203.mail.ne1.yahoo.com> > > The subject line says it all. > > The complete ffmpeg console output about your input stream > probably > wouldn't fit in the subject. I don't have ffmpeg console output. I'm playing the file with another application (mozilla). I want to know if I can use ffmpeg to capture that audio and store in a file. > > I'm playing an audio stream from the WWW on my Linux > PC. > > Can I record this stream and save it to a file with > ffmpeg? > I will say "yes", but I can only guess without knowing more > about your > input. Please show your command and the complete ffmpeg > console output: > > ffmpeg -i http://input.tld/input.stream I want to record whatever if playing on my PC to the PC's speakers, whether it's a stream, or whatever. I don't have any ffmpeg console output to show since I don't know how to do this. From steve at aatw.com Mon Dec 30 02:05:40 2013 From: steve at aatw.com (Steve Kelly) Date: Mon, 30 Dec 2013 01:05:40 +0000 Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? In-Reply-To: <1388365288.85306.YahooMailBasic@web120203.mail.ne1.yahoo.com> References: <1388365288.85306.YahooMailBasic@web120203.mail.ne1.yahoo.com> Message-ID: <2486653F-7D04-4833-8CD4-C7A1776811D2@aatw.com> > I want to record whatever if playing on my PC to the PC's > speakers, whether it's a stream, or whatever. I don't have > any ffmpeg console output to show since I don't know how to > do this. > Streamripper may be more suitable for you if that is all you want to do http://streamripper.sourceforge.net/ Bins are available on most major distros, very simple way of saving an audio stream to an MP3 file. From george at nsup.org Mon Dec 30 11:43:02 2013 From: george at nsup.org (Nicolas George) Date: Mon, 30 Dec 2013 11:43:02 +0100 Subject: [FFmpeg-user] segfault in "xv" output format In-Reply-To: <20131229110233.GA16630@sunshine.barsnick.net> References: <20131226175335.GA27814@sunshine.barsnick.net> <20131229103314.GA13214@phare.normalesup.org> <20131229110233.GA16630@sunshine.barsnick.net> Message-ID: <20131230104302.GA20023@phare.normalesup.org> Le nonidi 9 niv?se, an CCXXII, Moritz Barsnick a ?crit?: > So, judging from the patch, that is the actual issue? Very probably, although in all scientific doubt I can not rule out that there might be another problem on your box that I did not find out. Note that the patch has just been applied to the tree. > Okay, tough luck for me with the new ffmpeg "xv" output on my display > targets. A plain x11 output device would probably be useful for some cases. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: From jdmls at yahoo.com Mon Dec 30 14:21:58 2013 From: jdmls at yahoo.com (John Doe) Date: Mon, 30 Dec 2013 05:21:58 -0800 (PST) Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? In-Reply-To: <1388329953.42621.YahooMailBasic@web120206.mail.ne1.yahoo.com> References: <1388329953.42621.YahooMailBasic@web120206.mail.ne1.yahoo.com> Message-ID: <1388409718.6566.YahooMailNeo@web126103.mail.ne1.yahoo.com> From: James Board > The subject line says it all.? I'm playing an audio stream from the WWW on > my Linux PC. > Can I record this stream and save it to a file with ffmpeg? > If not, what's the easiest way to do this? Untested but, if your distrib uses ALSA, maybe you could have a try with: ? http://www.ffmpeg.org/ffmpeg-devices.html#alsa-1 JD From jpboard2 at yahoo.com Mon Dec 30 14:37:21 2013 From: jpboard2 at yahoo.com (James Board) Date: Mon, 30 Dec 2013 05:37:21 -0800 (PST) Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? In-Reply-To: <2486653F-7D04-4833-8CD4-C7A1776811D2@aatw.com> Message-ID: <1388410641.11689.YahooMailBasic@web120204.mail.ne1.yahoo.com> > > I want to record whatever if playing on my PC to the PC's > > speakers, whether it's a stream, or whatever.? I don't have > > any ffmpeg console output to show since I don't know how to > > do this. > > Streamripper may be more suitable for you if that is all you > want to do I have streamripper already. It works only for ripping audio streams from the specified URL. It doesn't capture what is currently playing over the PC speakers. Streamripper won't work for me because I don't have a URL for the stream I'm trying to save to file: a javascript app plays the audio to the speakers. The original question was whether or not ffmpeg can do this. I'm not saying that's it's a bug in ffmpeg if it can't. I'm not saying that ffmpeg should do this, if it can't. I only want to know if ffmpeg can do this (and how). I'm asking here since the documentation doesn't describe this. So, should be easy question to answer. Can ffmpeg do this? From frafart at free.fr Mon Dec 30 15:09:27 2013 From: frafart at free.fr (frafart at free.fr) Date: Mon, 30 Dec 2013 15:09:27 +0100 (CET) Subject: [FFmpeg-user] checksum in ashowinfo Message-ID: <660463030.304674313.1388412567276.JavaMail.root@zimbra74-e12.priv.proxad.net> Hello, I don't understand the checksum output by ashowinfo. Here my test : I have 2 mpegts chuncks (0.5 secs) 1.ts and 2.ts. I look video and audio checksum at the begining of the second file, I concatene the files in 1_2.ts (with cat command) and then look again the checksum. Video checksum stay the same but audio checksum change in the concatened file. Look video frame with 1E8D7B57 (stayed the same) and audio 3D1941C9 seem changed to 9F4241C9. I write "seem changed" because the frame order change too. So I can't be sure 3D1941C9 -> 9F4241C9. Uncut command and output below. Regards, Fabrice. $ ./tmp/ffmpeg.static.32bit.2013-12-13/ffmpeg -i tmp/1.ts -nostats -vf 'showinfo' -af 'ashowinfo' -f null /dev/null ffmpeg version N-59037-gd546a59 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 13 2013 05:17:03 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.101 / 55. 45.101 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'tmp/1.ts': Duration: 00:00:00.51, start: 1.400000, bitrate: 1058 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s Output #0, null, to '/dev/null': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> rawvideo) Stream #0:1 -> #0:1 (mp2 -> pcm_s16le) Press [q] to stop, [?] for help [Parsed_showinfo_0 @ 0xa42f1a0] n:0 pts:2342 pts_time:0.0260222 pos:564 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:1 type:I checksum:62973339 plane_checksum:[C993669F 9FA02DD1 F72C9EBA] [Parsed_showinfo_0 @ 0xa42f1a0] n:1 pts:5942 pts_time:0.0660222 pos:20868 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:7C47846E plane_checksum:[ECF5A484 A0EF3A2F 046EA5AC] [Parsed_showinfo_0 @ 0xa42f1a0] n:2 pts:9542 pts_time:0.106022 pos:22372 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:9511C87B plane_checksum:[F0E2D2A0 C4734576 722DB056] [Parsed_ashowinfo_0 @ 0xa430940] n:0 pts:0 pts_time:0 pos:27260 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:48918F76 plane_checksums: [ 0E7B4707 D596486F ] [Parsed_ashowinfo_0 @ 0xa430940] n:1 pts:1152 pts_time:0.024 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:ABF7F8DC plane_checksums: [ 27B28139 3F2077A3 ] [Parsed_ashowinfo_0 @ 0xa430940] n:2 pts:2304 pts_time:0.048 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:EBC28177 plane_checksums: [ 3B5AB80F C851C959 ] [Parsed_ashowinfo_0 @ 0xa430940] n:3 pts:3456 pts_time:0.072 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:49220509 plane_checksums: [ C7AD7CFD 5A7B87FD ] [Parsed_ashowinfo_0 @ 0xa430940] n:4 pts:4608 pts_time:0.096 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:A0615019 plane_checksums: [ 5585B7A9 F8F29861 ] [Parsed_ashowinfo_0 @ 0xa430940] n:5 pts:5760 pts_time:0.12 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:3E08E1B3 plane_checksums: [ D0296F53 481A7260 ] [Parsed_ashowinfo_0 @ 0xa430940] n:6 pts:6912 pts_time:0.144 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:E69DDF9C plane_checksums: [ 2E37738E 7D766C0E ] [Parsed_showinfo_0 @ 0xa42f1a0] n:3 pts:13142 pts_time:0.146022 pos:24252 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:2E9AF97C plane_checksum:[C6DFE2AD 28545A3C 8AD3BC84] [Parsed_showinfo_0 @ 0xa42f1a0] n:4 pts:16742 pts_time:0.186022 pos:25756 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:D14421CA plane_checksum:[315FED21 F6586BCC 8BE8C8BF] [Parsed_showinfo_0 @ 0xa42f1a0] n:5 pts:20342 pts_time:0.226022 pos:30080 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:1AC32D96 plane_checksum:[A897F4CD 92EE6DBF 8017CAEC] [Parsed_showinfo_0 @ 0xa42f1a0] n:6 pts:23942 pts_time:0.266022 pos:31020 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:CA582548 plane_checksum:[F6EEE74E FE2870EA 7A98CCF2] [Parsed_ashowinfo_0 @ 0xa430940] n:7 pts:8064 pts_time:0.168 pos:34780 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:55C5D04A plane_checksums: [ 8B886815 D6476835 ] [Parsed_ashowinfo_0 @ 0xa430940] n:8 pts:9216 pts_time:0.192 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:BB42B008 plane_checksums: [ DE0E5D1C B00B52EC ] [Parsed_ashowinfo_0 @ 0xa430940] n:9 pts:10368 pts_time:0.216 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:1DEB7EBE plane_checksums: [ 9A8DCAC5 2B60B3EA ] [Parsed_ashowinfo_0 @ 0xa430940] n:10 pts:11520 pts_time:0.24 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:07809185 plane_checksums: [ 872D49E2 674D47A3 ] [Parsed_ashowinfo_0 @ 0xa430940] n:11 pts:12672 pts_time:0.264 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:F84A7158 plane_checksums: [ 19433CA7 E00934B1 ] [Parsed_ashowinfo_0 @ 0xa430940] n:12 pts:13824 pts_time:0.288 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:55C7E2DE plane_checksums: [ C2777008 103172D6 ] [Parsed_ashowinfo_0 @ 0xa430940] n:13 pts:14976 pts_time:0.312 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:32930E64 plane_checksums: [ 162082F9 165E8B5C ] [Parsed_showinfo_0 @ 0xa42f1a0] n:7 pts:27542 pts_time:0.306022 pos:32336 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:E9CF0D13 plane_checksum:[9D08C75E 36D97532 B9D6D065] [Parsed_showinfo_0 @ 0xa42f1a0] n:8 pts:31142 pts_time:0.346022 pos:33276 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:D883C7EF plane_checksum:[D41171BD FA5D7F9D BA9BD686] [Parsed_showinfo_0 @ 0xa42f1a0] n:9 pts:34742 pts_time:0.386022 pos:37600 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:44342259 plane_checksum:[56E8A920 83D3989B 6F84E080] [Parsed_showinfo_0 @ 0xa42f1a0] n:10 pts:38342 pts_time:0.426022 pos:39292 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:853DB477 plane_checksum:[89431B5C D5ECAA56 221FEEB6] [Parsed_ashowinfo_0 @ 0xa430940] n:14 pts:16128 pts_time:0.336 pos:63732 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:B0154BA9 plane_checksums: [ 67A5AAB6 8861A0E4 ] [Parsed_ashowinfo_0 @ 0xa430940] n:15 pts:17280 pts_time:0.36 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:EEF60440 plane_checksums: [ 9D2686C2 38BD7D6F ] [Parsed_ashowinfo_0 @ 0xa430940] n:16 pts:18432 pts_time:0.384 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:9A1EF2FA plane_checksums: [ 2CCD7B53 414777A7 ] [Parsed_ashowinfo_0 @ 0xa430940] n:17 pts:19584 pts_time:0.408 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:1D1AED08 plane_checksums: [ F4B7765E 9BDE76AA ] [Parsed_ashowinfo_0 @ 0xa430940] n:18 pts:20736 pts_time:0.432 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:A5D0C56A plane_checksums: [ F9C5D930 896FEC2B ] [Parsed_ashowinfo_0 @ 0xa430940] n:19 pts:21888 pts_time:0.456 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:6A820ECA plane_checksums: [ B1908AC0 AFB483FB ] [Parsed_ashowinfo_0 @ 0xa430940] n:20 pts:23040 pts_time:0.48 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:AA7FC7B0 plane_checksums: [ 1D01620A FFC165A6 ] [Parsed_showinfo_0 @ 0xa42f1a0] n:11 pts:41942 pts_time:0.466022 pos:41360 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:E10DE80C plane_checksum:[B8C8438A C761AFB7 68E1F4BC] [Parsed_showinfo_0 @ 0xa42f1a0] n:12 pts:45542 pts_time:0.506022 pos:43052 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:1 type:I checksum:58DCE8F4 plane_checksum:[16AC7F73 EC9720EE 41AF4893] frame= 13 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.56 bitrate=N/A video:1kB audio:94kB subtitle:0 global headers:0kB muxing overhead -100.022541% $ $ $ ./tmp/ffmpeg.static.32bit.2013-12-13/ffmpeg -i tmp/2.ts -nostats -vf 'showinfo' -af 'ashowinfo' -f null /dev/null ffmpeg version N-59037-gd546a59 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 13 2013 05:17:03 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.101 / 55. 45.101 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'tmp/2.ts': Duration: 00:00:00.52, start: 1.404000, bitrate: 475 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 104857 kb/s, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s Output #0, null, to '/dev/null': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> rawvideo) Stream #0:1 -> #0:1 (mp2 -> pcm_s16le) Press [q] to stop, [?] for help [Parsed_ashowinfo_0 @ 0xb04f400] n:0 pts:0 pts_time:0 pos:564 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:0C99F3A8 plane_checksums: [ 6E1D722C D631817C ] [Parsed_ashowinfo_0 @ 0xb04f400] n:1 pts:1152 pts_time:0.024 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:FD46329A plane_checksums: [ 917895F5 7FB49C96 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:2 pts:2304 pts_time:0.048 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:B512F9D9 plane_checksums: [ 07928043 0EE27996 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:3 pts:3456 pts_time:0.072 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:125E7C12 plane_checksums: [ 2485447E 5BB23794 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:4 pts:4608 pts_time:0.096 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:DAF7F1B1 plane_checksums: [ 927882B3 B8886EFE ] [Parsed_ashowinfo_0 @ 0xb04f400] n:5 pts:5760 pts_time:0.12 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:F1645F3D plane_checksums: [ 57E13B23 3F57241A ] [Parsed_ashowinfo_0 @ 0xb04f400] n:6 pts:6912 pts_time:0.144 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:0BECFC13 plane_checksums: [ DE0A7BF6 466F801D ] [Parsed_ashowinfo_0 @ 0xb04f400] n:7 pts:8064 pts_time:0.168 pos:3384 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:8D02A4AB plane_checksums: [ C38D528F 96DD521C ] [Parsed_ashowinfo_0 @ 0xb04f400] n:8 pts:9216 pts_time:0.192 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:637A4375 plane_checksums: [ B6F51D18 C51C265D ] [Parsed_ashowinfo_0 @ 0xb04f400] n:9 pts:10368 pts_time:0.216 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:A26C5AAC plane_checksums: [ 53B2B4D2 8D56A5CB ] [Parsed_ashowinfo_0 @ 0xb04f400] n:10 pts:11520 pts_time:0.24 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:56F05EBF plane_checksums: [ FEB0AAF9 3D04B3B7 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:11 pts:12672 pts_time:0.264 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:0217F3F2 plane_checksums: [ 08CA7220 9D1181D2 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:12 pts:13824 pts_time:0.288 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:93250861 plane_checksums: [ 688B8D43 85127B0F ] [Parsed_ashowinfo_0 @ 0xb04f400] n:13 pts:14976 pts_time:0.312 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:9F2B39E0 plane_checksums: [ 0BBC97A5 7674A22C ] [Parsed_ashowinfo_0 @ 0xb04f400] n:14 pts:16128 pts_time:0.336 pos:27824 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:95DBB3FA plane_checksums: [ D7CA6866 F0EE4B94 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:15 pts:17280 pts_time:0.36 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:592342D7 plane_checksums: [ C84C8A34 73E4B894 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:16 pts:18432 pts_time:0.384 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:F5E5F135 plane_checksums: [ EEB57863 4CAC78D2 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:17 pts:19584 pts_time:0.408 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:368D00A8 plane_checksums: [ 4EA484BB 0EE47BDE ] [Parsed_ashowinfo_0 @ 0xb04f400] n:18 pts:20736 pts_time:0.432 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:77B5593C plane_checksums: [ B300BDD3 F5839B5A ] [Parsed_ashowinfo_0 @ 0xb04f400] n:19 pts:21888 pts_time:0.456 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:04B9C997 plane_checksums: [ 1DFADF98 18CCE9F0 ] [Parsed_ashowinfo_0 @ 0xb04f400] n:20 pts:23040 pts_time:0.48 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:3D1941C9 plane_checksums: [ 7F4CA020 494FA19A ] [Parsed_showinfo_0 @ 0xb04dc00] n:0 pts:43382 pts_time:0.482022 pos:6580 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:1 type:I checksum:1E8D7B57 plane_checksum:[C8A8D86C D97925D0 10E17D0C] [Parsed_showinfo_0 @ 0xb04dc00] n:1 pts:46982 pts_time:0.522022 pos:26696 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:5AFA516C plane_checksum:[55BDAAD8 32E21DD2 B63B88B3] frame= 2 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.56 bitrate=N/A video:0kB audio:94kB subtitle:0 global headers:0kB muxing overhead -100.022705% $ $ $ ./tmp/ffmpeg.static.32bit.2013-12-13/ffmpeg -i tmp/1_2.ts -nostats -vf 'showinfo' -af 'ashowinfo' -f null /dev/null ffmpeg version N-59037-gd546a59 Copyright (c) 2000-2013 the FFmpeg developers built on Dec 13 2013 05:17:03 with gcc 4.6 (Debian 4.6.3-1) configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32 --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static' --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static' --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx libavutil 52. 58.100 / 52. 58.100 libavcodec 55. 45.101 / 55. 45.101 libavformat 55. 22.100 / 55. 22.100 libavdevice 55. 5.102 / 55. 5.102 libavfilter 3. 92.100 / 3. 92.100 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.104 / 0. 17.104 libpostproc 52. 3.100 / 52. 3.100 Input #0, mpegts, from 'tmp/1_2.ts': Duration: 00:00:00.53, start: 1.400000, bitrate: 1489 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 104857 kb/s, 25 fps, 50 tbr, 90k tbn, 50 tbc Stream #0:1[0x101]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s Output #0, null, to '/dev/null': Metadata: encoder : Lavf55.22.100 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> rawvideo) Stream #0:1 -> #0:1 (mp2 -> pcm_s16le) Press [q] to stop, [?] for help [Parsed_showinfo_0 @ 0xa82d1a0] n:0 pts:2342 pts_time:0.0260222 pos:564 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:1 type:I checksum:62973339 plane_checksum:[C993669F 9FA02DD1 F72C9EBA] [Parsed_showinfo_0 @ 0xa82d1a0] n:1 pts:5942 pts_time:0.0660222 pos:20868 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:7C47846E plane_checksum:[ECF5A484 A0EF3A2F 046EA5AC] [Parsed_showinfo_0 @ 0xa82d1a0] n:2 pts:9542 pts_time:0.106022 pos:22372 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:9511C87B plane_checksum:[F0E2D2A0 C4734576 722DB056] [Parsed_ashowinfo_0 @ 0xa82e940] n:0 pts:0 pts_time:0 pos:27260 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:48918F76 plane_checksums: [ 0E7B4707 D596486F ] [Parsed_ashowinfo_0 @ 0xa82e940] n:1 pts:1152 pts_time:0.024 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:ABF7F8DC plane_checksums: [ 27B28139 3F2077A3 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:2 pts:2304 pts_time:0.048 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:EBC28177 plane_checksums: [ 3B5AB80F C851C959 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:3 pts:3456 pts_time:0.072 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:49220509 plane_checksums: [ C7AD7CFD 5A7B87FD ] [Parsed_ashowinfo_0 @ 0xa82e940] n:4 pts:4608 pts_time:0.096 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:A0615019 plane_checksums: [ 5585B7A9 F8F29861 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:5 pts:5760 pts_time:0.12 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:3E08E1B3 plane_checksums: [ D0296F53 481A7260 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:6 pts:6912 pts_time:0.144 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:E69DDF9C plane_checksums: [ 2E37738E 7D766C0E ] [Parsed_showinfo_0 @ 0xa82d1a0] n:3 pts:13142 pts_time:0.146022 pos:24252 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:2E9AF97C plane_checksum:[C6DFE2AD 28545A3C 8AD3BC84] [Parsed_showinfo_0 @ 0xa82d1a0] n:4 pts:16742 pts_time:0.186022 pos:25756 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:D14421CA plane_checksum:[315FED21 F6586BCC 8BE8C8BF] [Parsed_showinfo_0 @ 0xa82d1a0] n:5 pts:20342 pts_time:0.226022 pos:30080 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:1AC32D96 plane_checksum:[A897F4CD 92EE6DBF 8017CAEC] [Parsed_showinfo_0 @ 0xa82d1a0] n:6 pts:23942 pts_time:0.266022 pos:31020 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:CA582548 plane_checksum:[F6EEE74E FE2870EA 7A98CCF2] [Parsed_ashowinfo_0 @ 0xa82e940] n:7 pts:8064 pts_time:0.168 pos:34780 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:55C5D04A plane_checksums: [ 8B886815 D6476835 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:8 pts:9216 pts_time:0.192 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:BB42B008 plane_checksums: [ DE0E5D1C B00B52EC ] [Parsed_ashowinfo_0 @ 0xa82e940] n:9 pts:10368 pts_time:0.216 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:1DEB7EBE plane_checksums: [ 9A8DCAC5 2B60B3EA ] [Parsed_ashowinfo_0 @ 0xa82e940] n:10 pts:11520 pts_time:0.24 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:07809185 plane_checksums: [ 872D49E2 674D47A3 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:11 pts:12672 pts_time:0.264 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:F84A7158 plane_checksums: [ 19433CA7 E00934B1 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:12 pts:13824 pts_time:0.288 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:55C7E2DE plane_checksums: [ C2777008 103172D6 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:13 pts:14976 pts_time:0.312 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:32930E64 plane_checksums: [ 162082F9 165E8B5C ] [Parsed_showinfo_0 @ 0xa82d1a0] n:7 pts:27542 pts_time:0.306022 pos:32336 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:E9CF0D13 plane_checksum:[9D08C75E 36D97532 B9D6D065] [Parsed_showinfo_0 @ 0xa82d1a0] n:8 pts:31142 pts_time:0.346022 pos:33276 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:D883C7EF plane_checksum:[D41171BD FA5D7F9D BA9BD686] [Parsed_showinfo_0 @ 0xa82d1a0] n:9 pts:34742 pts_time:0.386022 pos:37600 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:44342259 plane_checksum:[56E8A920 83D3989B 6F84E080] [Parsed_showinfo_0 @ 0xa82d1a0] n:10 pts:38342 pts_time:0.426022 pos:39292 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:853DB477 plane_checksum:[89431B5C D5ECAA56 221FEEB6] [Parsed_ashowinfo_0 @ 0xa82e940] n:14 pts:16128 pts_time:0.336 pos:63732 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:B0154BA9 plane_checksums: [ 67A5AAB6 8861A0E4 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:15 pts:17280 pts_time:0.36 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:EEF60440 plane_checksums: [ 9D2686C2 38BD7D6F ] [Parsed_ashowinfo_0 @ 0xa82e940] n:16 pts:18432 pts_time:0.384 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:9A1EF2FA plane_checksums: [ 2CCD7B53 414777A7 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:17 pts:19584 pts_time:0.408 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:1D1AED08 plane_checksums: [ F4B7765E 9BDE76AA ] [Parsed_ashowinfo_0 @ 0xa82e940] n:18 pts:20736 pts_time:0.432 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:A5D0C56A plane_checksums: [ F9C5D930 896FEC2B ] [Parsed_ashowinfo_0 @ 0xa82e940] n:19 pts:21888 pts_time:0.456 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:6A820ECA plane_checksums: [ B1908AC0 AFB483FB ] [Parsed_ashowinfo_0 @ 0xa82e940] n:20 pts:23040 pts_time:0.48 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:AA7FC7B0 plane_checksums: [ 1D01620A FFC165A6 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:21 pts:24192 pts_time:0.504 pos:67492 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:8E313612 plane_checksums: [ 6F0692D4 5DB5A32F ] [Parsed_ashowinfo_0 @ 0xa82e940] n:22 pts:25344 pts_time:0.528 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:C993319B plane_checksums: [ B0C995F6 23B09B96 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:23 pts:26496 pts_time:0.552 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:CBA9FBD7 plane_checksums: [ 09428240 3DBB7997 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:24 pts:27648 pts_time:0.576 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:27F67E0F plane_checksums: [ 9273457D 0BD53892 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:25 pts:28800 pts_time:0.6 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:3A6EEEB4 plane_checksums: [ 640881B4 3DF66D00 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:26 pts:29952 pts_time:0.624 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:B287593F plane_checksums: [ E8443924 6816201B ] [Parsed_ashowinfo_0 @ 0xa82e940] n:27 pts:31104 pts_time:0.648 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:4EA6FC14 plane_checksums: [ 39817BF6 2DC1801E ] [Parsed_ashowinfo_0 @ 0xa82e940] n:28 pts:32256 pts_time:0.672 pos:70312 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:D91FA1AD plane_checksums: [ C2825190 DB8C501D ] [Parsed_ashowinfo_0 @ 0xa82e940] n:29 pts:33408 pts_time:0.696 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:9B9B4374 plane_checksums: [ B07F1D17 0CC2265D ] [Parsed_ashowinfo_0 @ 0xa82e940] n:30 pts:34560 pts_time:0.72 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:E7EB58AE plane_checksums: [ 0F00B3D3 0F1DA4CC ] [Parsed_ashowinfo_0 @ 0xa82e940] n:31 pts:35712 pts_time:0.744 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:55CE5CC1 plane_checksums: [ 22BAA9FA 0F6EB2B8 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:32 pts:36864 pts_time:0.768 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:9FCCF4F2 plane_checksums: [ 55457120 EED283D2 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:33 pts:38016 pts_time:0.792 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:75000166 plane_checksums: [ 31CE8945 8DC67812 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:34 pts:39168 pts_time:0.816 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:DD4237E1 plane_checksums: [ 1F6A99A3 B1CF9E2F ] [Parsed_showinfo_0 @ 0xa82d1a0] n:11 pts:41942 pts_time:0.466022 pos:41360 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:E10DE80C plane_checksum:[B8C8438A C761AFB7 68E1F4BC] [Parsed_showinfo_0 @ 0xa82d1a0] n:12 pts:90542 pts_time:1.00602 pos:43052 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:1 type:I checksum:58DCE8F4 plane_checksum:[16AC7F73 EC9720EE 41AF4893] [Parsed_ashowinfo_0 @ 0xa82e940] n:35 pts:40320 pts_time:0.84 pos:94752 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:F6E2AFFC plane_checksums: [ DC786867 44564795 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:36 pts:41472 pts_time:0.864 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:6C393DDB plane_checksums: [ F5838C33 61B5B199 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:37 pts:42624 pts_time:0.888 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:58DAF234 plane_checksums: [ B9207A62 ED1977D2 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:38 pts:43776 pts_time:0.912 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:A8C401A6 plane_checksums: [ 82B784BB 4D087CDC ] [Parsed_ashowinfo_0 @ 0xa82e940] n:39 pts:44928 pts_time:0.936 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:1F15563F plane_checksums: [ 1DF4BAD6 18939B5A ] [Parsed_ashowinfo_0 @ 0xa82e940] n:40 pts:46080 pts_time:0.96 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:4B6AC998 plane_checksums: [ 7C05E098 00EBE8F1 ] [Parsed_ashowinfo_0 @ 0xa82e940] n:41 pts:47232 pts_time:0.984 pos:-1 fmt:s16p channels:2 chlayout:stereo rate:48000 nb_samples:1152 checksum:9F4241C9 plane_checksums: [ 368AA21E 053B9F9C ] [Parsed_showinfo_0 @ 0xa82d1a0] n:13 pts:88742 pts_time:0.986022 pos:73508 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:1 type:I checksum:1E8D7B57 plane_checksum:[C8A8D86C D97925D0 10E17D0C] [null @ 0xa82f060] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 90000 >= 90000 [Parsed_showinfo_0 @ 0xa82d1a0] n:14 pts:92342 pts_time:1.02602 pos:93624 fmt:yuv420p sar:64/45 s:720x576 i:P iskey:0 type:P checksum:5AFA516C plane_checksum:[55BDAAD8 32E21DD2 B63B88B3] frame= 15 fps=0.0 q=0.0 Lsize=N/A time=00:00:01.08 bitrate=N/A video:1kB audio:189kB subtitle:0 global headers:0kB muxing overhead -100.011311% $ From frafart at free.fr Mon Dec 30 15:17:48 2013 From: frafart at free.fr (frafart at free.fr) Date: Mon, 30 Dec 2013 15:17:48 +0100 (CET) Subject: [FFmpeg-user] Transcoding with different codec (libfdk_aac) alters duration, how to fix? In-Reply-To: Message-ID: <882556928.304690597.1388413068785.JavaMail.root@zimbra74-e12.priv.proxad.net> ----- Mail original ----- > De: "Soeren Balko" > ?: "FFmpeg user questions" > Envoy?: Dimanche 29 D?cembre 2013 13:19:02 > Objet: Re: [FFmpeg-user] Transcoding with different codec (libfdk_aac) alters duration, how to fix? > > I figured that FFmpeg prefixes and suffixes transcoded audio streams > with > "mute" intervals for other codecs too. Yes, AAC is not the only one. > In the same audio, I found that the > prefix/suffix lengths are libfdk_aac: 0.01024/0.01179 sec; libfaac: > 0.0/0.01182 sec; mp2: 0.0044/0.00148 sec; ac3: 0.00257/0.00414 sec. Prefix must be fixed. Suffixes is the padding of the last audio fragment, so must be variable. > I wonder if there is a way to stop the > encoders from introducing these mute intervals? Will at the least > look into the libfdk_aac source. I don't think it's possible, priming seems to be needed by protocol. In my case and maybe your, I don't think the problem be priming but the fact that audio streams are a bit shorter than video. In this case, most of "tool to concat" like MP4Box, the concat complex filter of ffmpeg, ... pad the end of audio stream to match with the video length. For the moment, I try to play with select/aselect to give ffmpeg an audio stream a little bit longer than video (last audio frame pts+duration >last video frame pts+duration). Regards, Fabrice. From cehoyos at ag.or.at Mon Dec 30 15:23:34 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 30 Dec 2013 14:23:34 +0000 (UTC) Subject: [FFmpeg-user] I'm playing audio on my Linux PC from the WWW. Can I record it to a file with ffmpeg? References: <2486653F-7D04-4833-8CD4-C7A1776811D2@aatw.com> <1388410641.11689.YahooMailBasic@web120204.mail.ne1.yahoo.com> Message-ID: James Board yahoo.com> writes: > Can ffmpeg do this? FFmpeg can record from alsa, oss, jack and pulse (and this is of course documented). How to set up the loopback device that is (probably) necessary to do what you want may be out-of-scope for this mailing list (and I don't know how to do it) but I believe this was answered on mplayer-users. Carl Eugen From stuartrbruce at gmail.com Tue Dec 31 11:21:49 2013 From: stuartrbruce at gmail.com (Stuart Bruce) Date: Tue, 31 Dec 2013 10:21:49 +0000 Subject: [FFmpeg-user] h264 timebase question Message-ID: <52C29ABD.9080209@stuartbruce.co.uk> Hello The background of the problem: I'm trying to use FFmpeg to save time during bulk exports of videos from Avid Media Composer. I've got a MOV that was exported from Avid at the right settings (h264, 640x360), which took some time to export. I've also got a 'same as source' export MOV, which exported much quicker but which is far too big. So I'm trying to get FFmpeg to convert the large same as source MOV so that it matches the settings of the correctly-sized MOV. However, so far I haven't been able to get it to match. The problems lie (I think) in the time_base and codec_time_base settings. Here's my command line so far: -i "[source file]" -s 640x360 -pix_fmt yuv420p -vcodec libx264 -acodec pcm_s16be -b:v 768k -ar 44100 -profile:v main -level 3.1 -force_key_frames expr:gte(t,n_forced) -bf 0 -ac 1 -threads 4 -y "[output file]" I've pasted 3 stream analyses from FFprobe below. Number (1) is from the source file, number (2) is what I'm aiming for, and number (3) is what I'm getting. The key differences are in codec_time_base (1/48 instead of 1/48000), time_base (which has become 1/12288 even though the source is 1/24000), and duration_ts. Unfortunately because they don't match, this is throwing off some other thumbnail-generation aspects which are based on seeking to the correct point in the resulting movie. With the Avid-exported MOV, the thumbnail generation is frame accurate, but using the FFmpeg-sourced MOV, this seeking is often a frame off, when it absolutely needs to be frame-accurate. Apologies that this explanation is a bit long-winded. I'm not, as you can tell, an encoding expert. Any help would be very much appreciated. Thanks Stuart (1) The source I'm using: [STREAM] index=0 codec_name=dnxhd codec_long_name=VC3/DNxHD profile=unknown codec_type=video codec_time_base=1/24000 codec_tag_string=AVdn codec_tag=0x6e645641 width=1920 height=1080 has_b_frames=0 sample_aspect_ratio=0:1 display_aspect_ratio=0:1 pix_fmt=yuv422p level=-99 timecode=N/A id=N/A r_frame_rate=24/1 avg_frame_rate=24/1 time_base=1/24000 start_pts=0 start_time=0.000000 duration_ts=1671000 duration=69.625000 bit_rate=36175872 nb_frames=1671 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 TAG:creation_time=2013-12-24 09:15:03 TAG:language=eng TAG:handler_name=Apple Alias Data Handler [/STREAM] (2) The output I'm aiming for (analysis based on a file exported directly from Avid Media Composer): [STREAM] index=1 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=Main codec_type=video codec_time_base=1/48000 codec_tag_string=avc1 codec_tag=0x31637661 width=640 height=360 has_b_frames=0 sample_aspect_ratio=0:1 display_aspect_ratio=0:1 pix_fmt=yuv420p level=31 timecode=N/A id=N/A r_frame_rate=24/1 avg_frame_rate=24/1 time_base=1/24000 start_pts=0 start_time=0.000000 duration_ts=1671000 duration=69.625000 bit_rate=736680 nb_frames=1671 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 TAG:creation_time=2013-12-24 11:55:57 TAG:language=eng TAG:handler_name=Apple Alias Data Handler [/STREAM] (3) The output I'm actually getting from the FFmpeg-generated file: [STREAM] index=0 codec_name=h264 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 profile=Main codec_type=video codec_time_base=1/48 <-- different codec_tag_string=avc1 codec_tag=0x31637661 width=640 height=360 has_b_frames=0 sample_aspect_ratio=0:1 display_aspect_ratio=0:1 pix_fmt=yuv420p level=31 timecode=N/A id=N/A r_frame_rate=24/1 avg_frame_rate=24/1 time_base=1/12288 <-- different start_pts=0 start_time=0.000000 duration_ts=855552 <-- different duration=69.625000 bit_rate=796023 nb_frames=1671 nb_read_frames=N/A nb_read_packets=N/A DISPOSITION:default=0 DISPOSITION:dub=0 DISPOSITION:original=0 DISPOSITION:comment=0 DISPOSITION:lyrics=0 DISPOSITION:karaoke=0 DISPOSITION:forced=0 DISPOSITION:hearing_impaired=0 DISPOSITION:visual_impaired=0 DISPOSITION:clean_effects=0 DISPOSITION:attached_pic=0 TAG:language=eng TAG:handler_name=DataHandler TAG:timecode=01:00:00:00 [/STREAM] -- Stuart Bruce stuart at stuartbruce.co.uk From cehoyos at ag.or.at Tue Dec 31 11:57:28 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 31 Dec 2013 10:57:28 +0000 (UTC) Subject: [FFmpeg-user] h264 timebase question References: <52C29ABD.9080209@stuartbruce.co.uk> Message-ID: Stuart Bruce gmail.com> writes: > -i "[source file]" -s 640x360 -pix_fmt yuv420p -vcodec libx264 > -acodec pcm_s16be -b:v 768k -ar 44100 -profile:v main -level 3.1 > -force_key_frames expr:gte(t,n_forced) -bf 0 -ac 1 -threads 4 -y > "[output file]" Complete, uncut console output missing. Carl Eugen From stuartrbruce at gmail.com Tue Dec 31 13:00:53 2013 From: stuartrbruce at gmail.com (Stuart Bruce) Date: Tue, 31 Dec 2013 12:00:53 +0000 Subject: [FFmpeg-user] h264 timebase question In-Reply-To: References: <52C29ABD.9080209@stuartbruce.co.uk> Message-ID: <52C2B1F5.1070500@stuartbruce.co.uk> On 31/12/2013 10:57, Carl Eugen Hoyos wrote: > Stuart Bruce gmail.com> writes: > >> -i "[source file]" -s 640x360 -pix_fmt yuv420p -vcodec libx264 >> -acodec pcm_s16be -b:v 768k -ar 44100 -profile:v main -level 3.1 >> -force_key_frames expr:gte(t,n_forced) -bf 0 -ac 1 -threads 4 -y >> "[output file]" > Complete, uncut console output missing. > > Carl Eugen > My apologies. Here it is (below). Any suggestions very welcome. Stuart FFmpeg log 31/12/2013 09:58:42 exe:D:\Hybrid\Hybrid\bin\Debug\FFmpeg\ffmpeg.exe arguments: -i "E:\Temp\S080_20Dec13_V038 locked SaS.mov" -s 640x360 -pix_fmt yuv420p -vcodec libx264 -acodec pcm_s16be -b:v 768k -ar 44100 -profile:v main -level 3.1 -force_key_frames expr:gte(t,n_forced) -bf 0 -ac 1 -threads 4 -y "E:\Temp\S080_20Dec13_V038 locked SaS_converted_2.mov" ffmpeg version N-53868-gc51654f Copyright (c) 2000-2013 the FFmpeg developers built on Jun 6 2013 03:00:45 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 35.100 / 52. 35.100 libavcodec 55. 15.100 / 55. 15.100 libavformat 55. 8.102 / 55. 8.102 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 75.101 / 3. 75.101 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\Temp\S080_20Dec13_V038 locked SaS.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-12-24 09:15:03 timecode : 01:00:00:00 Duration: 00:01:09.63, start: 0.000000, bitrate: 38480 kb/s Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080, 36175 kb/s, 24 fps, 24 tbr, 24k tbn, 24k tbc Metadata: creation_time : 2013-12-24 09:15:03 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s24be (in24 / 0x34326E69), 48000 Hz, stereo, s32, 2304 kb/s Metadata: creation_time : 2013-12-24 09:15:03 handler_name : Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-12-24 09:15:18 handler_name : Apple Alias Data Handler timecode : 01:00:00:00 [libx264 @ 044776e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [libx264 @ 044776e0] profile Main, level 3.1 [libx264 @ 044776e0] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=4 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=768 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mov, to 'E:\Temp\S080_20Dec13_V038 locked SaS_converted_2.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 01:00:00:00 encoder : Lavf55.8.102 Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x360, q=-1--1, 768 kb/s, 12288 tbn, 24 tbc Metadata: creation_time : 2013-12-24 09:15:03 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, mono, s16, 705 kb/s Metadata: creation_time : 2013-12-24 09:15:03 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (dnxhd -> libx264) Stream #0:1 -> #0:1 (pcm_s24be -> pcm_s16be) Press [q] to stop, [?] for help frame= 111 fps=0.0 q=19.0 size= 376kB time=00:00:05.77 bitrate= 532.9kbits/s frame= 198 fps=197 q=25.0 size= 1194kB time=00:00:09.41 bitrate=1039.4kbits/s frame= 286 fps=190 q=25.0 size= 1919kB time=00:00:13.07 bitrate=1202.2kbits/s frame= 392 fps=195 q=25.0 size= 2697kB time=00:00:17.48 bitrate=1263.5kbits/s frame= 497 fps=197 q=24.0 size= 3483kB time=00:00:21.87 bitrate=1304.4kbits/s frame= 595 fps=197 q=22.0 size= 4262kB time=00:00:25.94 bitrate=1345.8kbits/s frame= 703 fps=199 q=24.0 size= 5071kB time=00:00:30.45 bitrate=1363.9kbits/s frame= 810 fps=201 q=24.0 size= 5869kB time=00:00:34.90 bitrate=1377.4kbits/s frame= 917 fps=202 q=21.0 size= 6653kB time=00:00:39.35 bitrate=1384.6kbits/s frame= 1009 fps=201 q=26.0 size= 7578kB time=00:00:43.19 bitrate=1437.2kbits/s frame= 1102 fps=199 q=25.0 size= 8278kB time=00:00:47.06 bitrate=1440.7kbits/s frame= 1212 fps=201 q=25.0 size= 9042kB time=00:00:51.64 bitrate=1434.1kbits/s frame= 1318 fps=202 q=24.0 size= 9826kB time=00:00:56.07 bitrate=1435.5kbits/s frame= 1432 fps=204 q=24.0 size= 10568kB time=00:01:00.82 bitrate=1423.2kbits/s frame= 1525 fps=202 q=24.0 size= 11338kB time=00:01:04.70 bitrate=1435.5kbits/s frame= 1629 fps=203 q=24.0 size= 12096kB time=00:01:09.02 bitrate=1435.5kbits/s frame= 1671 fps=201 q=-1.0 Lsize= 12801kB time=00:01:09.62 bitrate=1506.1kbits/s video:6766kB audio:5997kB subtitle:0 global headers:0kB muxing overhead 0.297578% [libx264 @ 044776e0] frame I:102 Avg QP:15.59 size: 55376 [libx264 @ 044776e0] frame P:1569 Avg QP:24.42 size: 815 [libx264 @ 044776e0] mb I I16..4: 11.6% 0.0% 88.4% [libx264 @ 044776e0] mb P I16..4: 0.1% 0.0% 1.1% P16..4: 1.3% 0.5% 0.4% 0.0% 0.0% skip:96.6% [libx264 @ 044776e0] final ratefactor: 17.64 [libx264 @ 044776e0] coded y,uvDC,uvAC intra: 95.5% 64.7% 56.7% inter: 1.1% 0.7% 0.2% [libx264 @ 044776e0] i16 v,h,dc,p: 14% 39% 33% 14% [libx264 @ 044776e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 13% 8% 9% 11% 7% 10% 8% [libx264 @ 044776e0] i8c dc,h,v,p: 61% 22% 13% 3% [libx264 @ 044776e0] Weighted P-Frames: Y:0.1% UV:0.1% [libx264 @ 044776e0] ref P L0: 69.9% 12.4% 10.2% 7.4% 0.1% [libx264 @ 044776e0] kb/s:795.95 -- Stuart Bruce stuart at stuartbruce.co.uk From govind.durai at gmail.com Tue Dec 31 13:03:02 2013 From: govind.durai at gmail.com (Govind Raj) Date: Tue, 31 Dec 2013 17:33:02 +0530 Subject: [FFmpeg-user] h264 timebase question In-Reply-To: <52C29ABD.9080209@stuartbruce.co.uk> References: <52C29ABD.9080209@stuartbruce.co.uk> Message-ID: please unsubscribe me from the mailing list On Tue, Dec 31, 2013 at 3:51 PM, Stuart Bruce wrote: > Hello > > The background of the problem: I'm trying to use FFmpeg to save time > during bulk exports of videos from Avid Media Composer. I've got a MOV that > was exported from Avid at the right settings (h264, 640x360), which took > some time to export. I've also got a 'same as source' export MOV, which > exported much quicker but which is far too big. So I'm trying to get FFmpeg > to convert the large same as source MOV so that it matches the settings of > the correctly-sized MOV. > > However, so far I haven't been able to get it to match. The problems lie > (I think) in the time_base and codec_time_base settings. > > Here's my command line so far: > > -i "[source file]" -s 640x360 -pix_fmt yuv420p -vcodec libx264 -acodec > pcm_s16be -b:v 768k -ar 44100 -profile:v main -level 3.1 -force_key_frames > expr:gte(t,n_forced) -bf 0 -ac 1 -threads 4 -y "[output file]" > > I've pasted 3 stream analyses from FFprobe below. Number (1) is from the > source file, number (2) is what I'm aiming for, and number (3) is what I'm > getting. > > The key differences are in codec_time_base (1/48 instead of 1/48000), > time_base (which has become 1/12288 even though the source is 1/24000), and > duration_ts. > > Unfortunately because they don't match, this is throwing off some other > thumbnail-generation aspects which are based on seeking to the correct > point in the resulting movie. With the Avid-exported MOV, the thumbnail > generation is frame accurate, but using the FFmpeg-sourced MOV, this > seeking is often a frame off, when it absolutely needs to be frame-accurate. > > Apologies that this explanation is a bit long-winded. I'm not, as you can > tell, an encoding expert. Any help would be very much appreciated. > > Thanks > > Stuart > > > > (1) The source I'm using: > [STREAM] > index=0 > codec_name=dnxhd > codec_long_name=VC3/DNxHD > profile=unknown > codec_type=video > codec_time_base=1/24000 > codec_tag_string=AVdn > codec_tag=0x6e645641 > width=1920 > height=1080 > has_b_frames=0 > sample_aspect_ratio=0:1 > display_aspect_ratio=0:1 > pix_fmt=yuv422p > level=-99 > timecode=N/A > id=N/A > r_frame_rate=24/1 > avg_frame_rate=24/1 > time_base=1/24000 > start_pts=0 > start_time=0.000000 > duration_ts=1671000 > duration=69.625000 > bit_rate=36175872 > nb_frames=1671 > nb_read_frames=N/A > nb_read_packets=N/A > DISPOSITION:default=0 > DISPOSITION:dub=0 > DISPOSITION:original=0 > DISPOSITION:comment=0 > DISPOSITION:lyrics=0 > DISPOSITION:karaoke=0 > DISPOSITION:forced=0 > DISPOSITION:hearing_impaired=0 > DISPOSITION:visual_impaired=0 > DISPOSITION:clean_effects=0 > DISPOSITION:attached_pic=0 > TAG:creation_time=2013-12-24 09:15:03 > TAG:language=eng > TAG:handler_name=Apple Alias Data Handler > [/STREAM] > > (2) The output I'm aiming for (analysis based on a file exported directly > from Avid Media Composer): > [STREAM] > index=1 > codec_name=h264 > codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 > profile=Main > codec_type=video > codec_time_base=1/48000 > codec_tag_string=avc1 > codec_tag=0x31637661 > width=640 > height=360 > has_b_frames=0 > sample_aspect_ratio=0:1 > display_aspect_ratio=0:1 > pix_fmt=yuv420p > level=31 > timecode=N/A > id=N/A > r_frame_rate=24/1 > avg_frame_rate=24/1 > time_base=1/24000 > start_pts=0 > start_time=0.000000 > duration_ts=1671000 > duration=69.625000 > bit_rate=736680 > nb_frames=1671 > nb_read_frames=N/A > nb_read_packets=N/A > DISPOSITION:default=0 > DISPOSITION:dub=0 > DISPOSITION:original=0 > DISPOSITION:comment=0 > DISPOSITION:lyrics=0 > DISPOSITION:karaoke=0 > DISPOSITION:forced=0 > DISPOSITION:hearing_impaired=0 > DISPOSITION:visual_impaired=0 > DISPOSITION:clean_effects=0 > DISPOSITION:attached_pic=0 > TAG:creation_time=2013-12-24 11:55:57 > TAG:language=eng > TAG:handler_name=Apple Alias Data Handler > [/STREAM] > > (3) The output I'm actually getting from the FFmpeg-generated file: > [STREAM] > index=0 > codec_name=h264 > codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 > profile=Main > codec_type=video > codec_time_base=1/48 <-- different > codec_tag_string=avc1 > codec_tag=0x31637661 > width=640 > height=360 > has_b_frames=0 > sample_aspect_ratio=0:1 > display_aspect_ratio=0:1 > pix_fmt=yuv420p > level=31 > timecode=N/A > id=N/A > r_frame_rate=24/1 > avg_frame_rate=24/1 > time_base=1/12288 <-- different > start_pts=0 > start_time=0.000000 > duration_ts=855552 <-- different > duration=69.625000 > bit_rate=796023 > nb_frames=1671 > nb_read_frames=N/A > nb_read_packets=N/A > DISPOSITION:default=0 > DISPOSITION:dub=0 > DISPOSITION:original=0 > DISPOSITION:comment=0 > DISPOSITION:lyrics=0 > DISPOSITION:karaoke=0 > DISPOSITION:forced=0 > DISPOSITION:hearing_impaired=0 > DISPOSITION:visual_impaired=0 > DISPOSITION:clean_effects=0 > DISPOSITION:attached_pic=0 > TAG:language=eng > TAG:handler_name=DataHandler > TAG:timecode=01:00:00:00 > [/STREAM] > > -- > Stuart Bruce > stuart at stuartbruce.co.uk > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From sylvain at lahiette.com Tue Dec 31 13:35:42 2013 From: sylvain at lahiette.com (Sylvain) Date: Tue, 31 Dec 2013 13:35:42 +0100 Subject: [FFmpeg-user] Pipe subtitles to ffmpeg exe In-Reply-To: References: <462792409.1q7FETrIJ6@inpixalsta18.site> <7564717.DgxQab3bnH@inpixalsta18.site> Message-ID: <2139280.CCNfAlkejY@inpixalsta18.site> Le dimanche 29 d?cembre 2013 15:51:29 Carl Eugen Hoyos a ?crit : > I am curious why you don't create the dvb subtitles with > the FFmpeg dvbsub encoder. I think there is a misunderstanding here. In a first approach, i was thinking that it was possible to provide a pipe to create subtitles, with a particular picture format. Hence my sentence, saying that my application will provide the Subtiles. In fact, the correct sentence would be ; "my application will provide the input pictures used to build the subtiltes". Right now, i stopped using the ffmpeg binary solution, and i am calling directly from my application the libavcodec/libavformat API. I am able to generate a MPTS with H264+subtitles, but when i replay it, I am facing issues with the framerate and PTS/DTS. I will post a separate mail on this. Regards (and happy new year), SF. From cehoyos at ag.or.at Tue Dec 31 16:15:06 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 31 Dec 2013 15:15:06 +0000 (UTC) Subject: [FFmpeg-user] h264 timebase question References: <52C29ABD.9080209@stuartbruce.co.uk> Message-ID: Stuart Bruce gmail.com> writes: > The key differences are in codec_time_base (1/48 instead > of 1/48000) > time_base (which has become 1/12288 even though the source > is 1/24000), I believe you can set this with -video_track_timescale 24000 > and duration_ts. Not sure about the other two. Carl Eugen From ramitbhalla at gmail.com Tue Dec 31 16:24:40 2013 From: ramitbhalla at gmail.com (Ramit Bhalla) Date: Tue, 31 Dec 2013 10:24:40 -0500 Subject: [FFmpeg-user] Set PTS=DTS In-Reply-To: References: Message-ID: ? - any thoughts - can this be done? On Sun, Dec 29, 2013 at 9:51 AM, Ramit Bhalla wrote: > Sorry, I didn't understand both your comments: > > > Stream #0:4[0x59]: Video: h264 (High) > > > I know programatically once can set PTS=DTS in ffmpeg > > to overcome this issue. > > > This is not generally correct for h264 streams. > > What is not correct? > > > Please do not top-post here, it is considered rude. > > What did I top-post? > > > On Sun, Dec 29, 2013 at 9:24 AM, Carl Eugen Hoyos wrote: > >> Ramit Bhalla gmail.com> writes: >> >> > Stream #0:4[0x59]: Video: h264 (High) >> >> > I know programatically once can set PTS=DTS in ffmpeg >> > to overcome this issue. >> >> This is not generally correct for h264 streams. >> >> Please do not top-post here, it is considered rude. >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From amourcratez at gmail.com Tue Dec 31 04:06:23 2013 From: amourcratez at gmail.com (Amourcratez Christ) Date: Tue, 31 Dec 2013 04:06:23 +0100 Subject: [FFmpeg-user] Unable to create and execute files in /tmp. Message-ID: Unable to create and execute files in /tmp. Set the TMPDIR environment variable to another directory and make sure that it is not mounted noexec. Sanity test failed. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. root at server1 [~/ffmpeg_sources/ffmpeg]# From cracauer at cons.org Tue Dec 31 21:24:16 2013 From: cracauer at cons.org (Martin Cracauer) Date: Tue, 31 Dec 2013 15:24:16 -0500 Subject: [FFmpeg-user] Saturation adjustment only in some channels Message-ID: <20131231202416.GA8506@cons.org> I am doing color corrections on a video. Used gimp to find the correction adjustments. I have two difficulties: 1) I need to apply saturation only to cyan (leave red alone). This isn't directly supported by the hue filter. 2) how do I clip a color? (the equivalent of using gimp color levels and moving left or right slider, or in color curves move one end of the curve on the x axis) I think it works reasonably fine but just pushing the highs of the color, can somebody confirm that. In general, how do ffmpeg's colorbalance filter's ideas of low, mids and highs translate to color curves? How much overlap do they have? Anyway, problem #1 is far more important. I need to really kill cyan saturation and I verified that the outcome isn't good if I either kill red, too, or if I replace red saturation with more red (captain obvious has spoken). I am willing to throw significant CPU power on this so if I have to separate out the whole thing into red and rest, correct saturation and blend them together afterwards I'd do that, too. Or maybe I can specify a table that simply translates every possible color value to a target value? Thanks for your help. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ From lou at lrcd.com Tue Dec 31 21:19:24 2013 From: lou at lrcd.com (Lou) Date: Tue, 31 Dec 2013 11:19:24 -0900 Subject: [FFmpeg-user] h264 timebase question In-Reply-To: References: <52C29ABD.9080209@stuartbruce.co.uk> Message-ID: <20131231111924.0023708f@lrcd.com> On Tue, 31 Dec 2013 17:33:02 +0530 Govind Raj wrote: > please unsubscribe me from the mailing list I've manually unsubscribed you. Please do not hijack threads and please do not send (un)subscribe requests to ffmpeg-user at ffmpeg.org. This is a reminder that users can and should unsubscribe themselves. You do not need a moderator to take their time to do it for you. You can unsubscribe yourself with one of two methods: * Send an email message to ffmpeg-user-request at ffmpeg.org with the subject "unsubscribe", or * Visit the ffmpeg-user mailing list page and enter your email address in the box at the bottom of the page: http://ffmpeg.org/mailman/listinfo/ffmpeg-user From bobm-ffmpeg at burner.com Tue Dec 31 21:43:08 2013 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Tue, 31 Dec 2013 13:43:08 -0700 Subject: [FFmpeg-user] What is -video_size cif ? Message-ID: <52C32C5C.8000603@burner.com> Just looking at http://ffmpeg.org/ffmpeg.html#X11-grabbing and see the argument -video_size cif but so far have come up empty on what "cif" means? In context I'm guessing it means 'same as source' (Copy Input/Image Format?) but just curious for sure, or what other keywords might be put there. | Bob Maple | Stick it to the NSA - Get my public key at http://burner.com/about/ From lou at lrcd.com Tue Dec 31 21:36:27 2013 From: lou at lrcd.com (Lou) Date: Tue, 31 Dec 2013 11:36:27 -0900 Subject: [FFmpeg-user] What is -video_size cif ? In-Reply-To: <52C32C5C.8000603@burner.com> References: <52C32C5C.8000603@burner.com> Message-ID: <20131231113627.3207d53f@lrcd.com> On Tue, 31 Dec 2013 13:43:08 -0700 Bob Maple wrote: > Just looking at http://ffmpeg.org/ffmpeg.html#X11-grabbing and see the > argument > > -video_size cif > > but so far have come up empty on what "cif" means? In context I'm > guessing it means 'same as source' (Copy Input/Image Format?) but just > curious for sure, or what other keywords might be put there. From http://ffmpeg.org/ffmpeg-utils.html#Video-size Specify the size of the sourced video, it may be a string of the form widthxheight, or the name of a size abbreviation. The following abbreviations are recognized: ... ?qcif? 176x144 ?cif? 352x288 ?4cif? 704x576 ...and the list goes on. From bobm-ffmpeg at burner.com Tue Dec 31 21:50:43 2013 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Tue, 31 Dec 2013 13:50:43 -0700 Subject: [FFmpeg-user] What is -video_size cif ? In-Reply-To: <20131231113627.3207d53f@lrcd.com> References: <52C32C5C.8000603@burner.com> <20131231113627.3207d53f@lrcd.com> Message-ID: <52C32E23.2090205@burner.com> On 12/31/2013 1:36 PM, Lou wrote: > From http://ffmpeg.org/ffmpeg-utils.html#Video-size [...] Ahhhhh thanks. My Google-Fu failed to ever get me to the ffmpeg-utils section! From lou at lrcd.com Tue Dec 31 22:30:19 2013 From: lou at lrcd.com (Lou) Date: Tue, 31 Dec 2013 12:30:19 -0900 Subject: [FFmpeg-user] Unable to create and execute files in /tmp. In-Reply-To: References: Message-ID: <20131231123019.3c3b9221@lrcd.com> On Tue, 31 Dec 2013 04:06:23 +0100 Amourcratez Christ wrote: > Unable to create and execute files in /tmp. Set the TMPDIR environment > variable to another directory and make sure that it is not mounted noexec. > Sanity test failed. > > If you think configure made a mistake, make sure you are using the latest > version from Git. If the latest version fails, report the problem to the > ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. > Include the log file "config.log" produced by configure as this will help > solving the problem. > root at server1 [~/ffmpeg_sources/ffmpeg]# This is not a problem with ffmpeg: it is a problem with your system. You need to make sure /tmp is not mounted with noexec. You can see if noexec is shown for /tmp: $ mount | grep tmp You can remount /tmp without noexec, or set the TMPDIR environment variable to another directory and make sure that it is not mounted with noexec.