From tfmackey at gmail.com Fri Feb 1 00:42:17 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Thu, 31 Jan 2013 23:42:17 +0000 Subject: [FFmpeg-user] Encode single pictures to movies Message-ID: Hi, My first post to the list. I have 6 jpg images named img1.jpg etc up to img6.jpg. I have tried to encode them to a single movie with a 5 second display for each using the following command: ffmpeg -f image2 -r 1/5 -i img%d.jpg out.mp4 The output file has only the first 3 images in it and is obviously 15 seconds long. Any suggestions as to why my command does not pick up images 4,5 and 6? Jodel From lou at lrcd.com Fri Feb 1 00:58:40 2013 From: lou at lrcd.com (Lou) Date: Thu, 31 Jan 2013 14:58:40 -0900 Subject: [FFmpeg-user] Encode single pictures to movies In-Reply-To: References: Message-ID: <20130131145840.6aa0da29@lrcd.com> On Thu, 31 Jan 2013 23:42:17 +0000 Tom Mackey wrote: > Hi, > My first post to the list. I have 6 jpg images named img1.jpg etc up to > img6.jpg. I have tried to encode them to a single movie with a 5 second > display for each using the following command: > ffmpeg -f image2 -r 1/5 -i img%d.jpg out.mp4 > > The output file has only the first 3 images in it and is obviously 15 > seconds long. > Any suggestions as to why my command does not pick up images 4,5 and 6? > Jodel The additional images may not be included if the frame size changes, but it is impossible to tell without the complete ffmpeg console output. From tfmackey at gmail.com Fri Feb 1 01:14:07 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Fri, 1 Feb 2013 00:14:07 +0000 Subject: [FFmpeg-user] Encode single pictures to movies In-Reply-To: <20130131145840.6aa0da29@lrcd.com> References: <20130131145840.6aa0da29@lrcd.com> Message-ID: Lou, Thanks for your prompt reply. * *As all the images were a little different I used mogrify -resize 1920x1080 as I wanted to show the image on HD tv. The size of the images after this were around 1600 x1080 as they were in 4 x3 format The output of ls -l is ls -l img*.jpg -rw-rw-r-- 1 name name 194172 2013-01-31 22:30 img1.jpg -rw-rw-r-- 1 name name 238917 2013-01-31 20:56 img2.jpg -rw-rw-r-- 1 name name 222021 2013-01-31 20:56 img3.jpg -rw-rw-r-- 1 name name 178924 2013-01-31 20:56 img4.jpg -rw-rw-r-- 1 name name 256311 2013-01-31 20:56 img5.jpg -rw-rw-r-- 1 name name 468532 2013-01-31 20:56 img6.jpg I can't see any difference that causes it not to include 4,5 and 6 The output from the console is ffmpeg -f image2 -r 1/5 -i img%d.jpg out.mp4 ffmpeg version git-2013-01-31-b999774 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 31 2013 22:02:45 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.100 / 3. 35.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [image2 @ 0xa727360] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, image2, from 'img%d.jpg': Duration: 00:00:30.00, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj420p, 1608x1080 [SAR 1:1 DAR 67:45], 0.20 fps, 1 tbr, 0.20 tbn, 0.20 tbc [libx264 @ 0xa7288a0] using SAR=1/1 [libx264 @ 0xa7288a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0xa7288a0] profile High, level 4.0 [libx264 @ 0xa7288a0] 264 - core 129 r2245 bc13772 - 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=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 : Lavf54.61.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1608x1080 [SAR 1:1 DAR 67:45], q=-1--1, 16384 tbn, 0.20 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Press [q] to stop, [?] for help Input stream #0:0 frame changed from size:1608x1080 fmt:yuvj420p to size:1686x1080 fmt:yuvj420p Input stream #0:0 frame changed from size:1686x1080 fmt:yuvj420p to size:1601x1080 fmt:yuvj420p Input stream #0:0 frame changed from size:1601x1080 fmt:yuvj420p to size:1596x1080 fmt:yuvj420p Input stream #0:0 frame changed from size:1596x1080 fmt:yuvj420p to size:1536x1080 fmt:yuvj420p Input stream #0:0 frame changed from size:1536x1080 fmt:yuvj420p to size:1548x1080 fmt:yuvj420p frame= 3 fps=3.0 q=17.0 Lsize= 780kB time=00:00:05.00 bitrate=1278.1kbits/s dup=0 drop=3 video:779kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.104386% [libx264 @ 0xa7288a0] frame I:1 Avg QP:18.91 size:286464 [libx264 @ 0xa7288a0] frame P:2 Avg QP:15.60 size:255402 [libx264 @ 0xa7288a0] mb I I16..4: 9.4% 82.9% 7.7% [libx264 @ 0xa7288a0] mb P I16..4: 31.2% 38.9% 29.8% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip: 0.0% [libx264 @ 0xa7288a0] 8x8 transform intra:53.6% inter:23.1% [libx264 @ 0xa7288a0] coded y,uvDC,uvAC intra: 65.5% 78.1% 59.2% inter: 69.6% 92.9% 85.7% [libx264 @ 0xa7288a0] i16 v,h,dc,p: 76% 17% 5% 1% [libx264 @ 0xa7288a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 18% 25% 5% 5% 7% 6% 6% 8% [libx264 @ 0xa7288a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 26% 11% 5% 5% 6% 6% 5% 6% [libx264 @ 0xa7288a0] i8c dc,h,v,p: 37% 27% 28% 7% [libx264 @ 0xa7288a0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0xa7288a0] ref P L0: 51.9% 3.8% 44.2% [libx264 @ 0xa7288a0] kb/s:425.21 Thanks From lou at lrcd.com Fri Feb 1 01:22:43 2013 From: lou at lrcd.com (Lou) Date: Thu, 31 Jan 2013 15:22:43 -0900 Subject: [FFmpeg-user] Encode single pictures to movies In-Reply-To: References: <20130131145840.6aa0da29@lrcd.com> Message-ID: <20130131152243.04e3b70e@lrcd.com> On Fri, 1 Feb 2013 00:14:07 +0000 Tom Mackey wrote: > Lou, > > Thanks for your prompt reply. * *As all the images were a little different > I used > mogrify -resize 1920x1080 widthxheight Maximum values of height and width given, aspect ratio preserved. This means that it doesn't force resize to 1920x1080 and your images can vary in size. Perhaps you meant: widthxheight! Width and height emphatically given, original aspect ratio ignored. ImageMagick: Command-line Processing - Image Geometry > ffmpeg version git-2013-01-31-b999774 Copyright (c) 2000-2013 the FFmpeg > developers > built on Jan 31 2013 22:02:45 with gcc 4.6.1 (Ubuntu/Linaro > 4.6.1-9ubuntu3) You get a bonus point for using real ffmpeg. > Input stream #0:0 frame changed from size:1608x1080 fmt:yuvj420p to > size:1686x1080 fmt:yuvj420p > Input stream #0:0 frame changed from size:1686x1080 fmt:yuvj420p to > size:1601x1080 fmt:yuvj420p > Input stream #0:0 frame changed from size:1601x1080 fmt:yuvj420p to > size:1596x1080 fmt:yuvj420p > Input stream #0:0 frame changed from size:1596x1080 fmt:yuvj420p to > size:1536x1080 fmt:yuvj420p > Input stream #0:0 frame changed from size:1536x1080 fmt:yuvj420p to > size:1548x1080 fmt:yuvj420p These lines show that the frame sizes change. > bitrate=1278.1kbits/s dup=0 drop=3 The above line indicates that 3 frames were dropped. From tfmackey at gmail.com Fri Feb 1 01:49:51 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Fri, 1 Feb 2013 00:49:51 +0000 Subject: [FFmpeg-user] Encode single pictures to movies In-Reply-To: <20130131152243.04e3b70e@lrcd.com> References: <20130131145840.6aa0da29@lrcd.com> <20130131152243.04e3b70e@lrcd.com> Message-ID: Lou, Problem solved! Thanks a million for your solution. It worked perfectly. I hadn't figured out the importance of all the images having the same geometry. I am learning. Thanks again Tom From cehoyos at ag.or.at Fri Feb 1 02:10:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 1 Feb 2013 01:10:09 +0000 (UTC) Subject: [FFmpeg-user] Failing to concatenate 2 mp4 fragments without re-encoding References: <1359647612.14180.YahooMailNeo@web160704.mail.bf1.yahoo.com> Message-ID: ovi.com> writes: > I am trying to concatenate 2 small mp4 fragments (H264 main, AAC) I suggest you try the new concat demuxer (that is different from the concat protocol you have tested), find the documentation here: https://ffmpeg.org/ffmpeg-formats.html#concat Please do never post a part of the console output, always post the complete, unedited console output (at least the first 50 and the last 50 lines). Carl Eugen From cehoyos at ag.or.at Fri Feb 1 02:12:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 1 Feb 2013 01:12:56 +0000 (UTC) Subject: [FFmpeg-user] http cookie example does not work References: <51096043.4030700@aab.sk> <510AD2BB.6030707@aab.sk> <20130131210418.GZ19821@arborea> Message-ID: Stefano Sabatini gmail.com> writes: > > >./ffplay -cookies "usrid=admin; pwdid=admin; path=/; > > >domain=192.168.93.224;" http://192.168.93.224/snap.jpg > > > > > >wireshark shows following headers: > > > > > >GET /snap.jpg HTTP/1.1 > > >User-Agent: Lavf54.61.104 > > >Accept: */* > > >Range: bytes=0- > > >Connection: close > > This is because unfortunately there is a misbehavior occurring when > http is used in conjunction with the image2 demuxer, for which options > are not propagated (and the command will fail later). If this is the problem, it may be possible to work-around with the -f mjpeg demuxer. Carl Eugen From cehoyos at ag.or.at Fri Feb 1 02:11:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 1 Feb 2013 01:11:19 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?amerge_multiple_inputs_with_filter=5Fcomp?= =?utf-8?q?lex?= References: <6FA14C4A613E4C52814DA7E4B6685609@e1705> <510A9BD0.5090606@pps-inc.com> <6076A104C8BC462EBAF1D8005CB17980@e1705> Message-ID: Madovsky madovsky.org> writes: > thanks but btw it's not a solution for undefined > live stream duration. Did you show the command line and the complete, unedited console output for the live stream? (Sorry if I missed it.) Carl Eugen From infos at madovsky.org Fri Feb 1 02:43:38 2013 From: infos at madovsky.org (Madovsky) Date: Thu, 31 Jan 2013 20:43:38 -0500 Subject: [FFmpeg-user] amerge multiple inputs with filter_complex References: <6FA14C4A613E4C52814DA7E4B6685609@e1705><510A9BD0.5090606@pps-inc.com><6076A104C8BC462EBAF1D8005CB17980@e1705> Message-ID: > Madovsky madovsky.org> writes: > >> thanks but btw it's not a solution for undefined >> live stream duration. > > Did you show the command line and the complete, > unedited console output for the live stream? > (Sorry if I missed it.) > > Carl Eugen No it was mp4 recorded files. But with this command I wish to use also live protocols like rtp rtmp etc... btw I found that the problem is coming from overlaying an image in background that is greater than videos.. the result is conversion never ends. If I reduce the size smaller than the first overlayed video it works. this test is in case of merge audio globally. if I remove amerge there is no problem at all Thanks From sergiogiogio at ovi.com Fri Feb 1 05:31:49 2013 From: sergiogiogio at ovi.com (sergiogiogio at ovi.com) Date: Thu, 31 Jan 2013 20:31:49 -0800 (PST) Subject: [FFmpeg-user] Failing to concatenate 2 mp4 fragments without re-encoding In-Reply-To: <1359647612.14180.YahooMailNeo@web160704.mail.bf1.yahoo.com> References: <1359647612.14180.YahooMailNeo@web160704.mail.bf1.yahoo.com> Message-ID: <1359693109.80192.YahooMailNeo@web160706.mail.bf1.yahoo.com> writes: > ovi.com> writes: > > > I am trying to concatenate 2 small mp4 fragments (H264 main, AAC) > > I suggest you try the new concat demuxer (that is different > from the concat protocol you have tested), find the > documentation here: > https://ffmpeg.org/ffmpeg-formats.html#concat Thanks, I tried the concat demuxer (-f concat -i concat.txt) but got the same error message in ffplay/ffprobe. > > Please do never post a part of the console output, always > post the complete, unedited console output (at least the > first 50 and the last 50 lines). > > Carl Eugen The first and last lines of console output are below: ==== "%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams 2parts.orig.mp4.ts.concat.ts.mp4.ts 2>&1 > 2parts.orig.mp4.ts.concat.ts.mp4.ts.debug.txt ffprobe version N-49448-gdc8dd2f Copyright (c) 2007-2013 the FFmpeg developers built on Jan 29 2013 17:50:41 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 34.101 / 3. 34.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 002df8e0] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpegts, from '2parts.orig.mp4.ts.concat.ts.mp4.ts': Duration: 00:03:43.69, start: 1.400000, bitrate: 758 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 405:404 DAR 180:101], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](und): Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 81 kb/s [h264 @ 0343a860] top block unavailable for requested intra4x4 mode -1 at 0 0 [h264 @ 0343a860] error while decoding MB 0 0, bytestream (18883) [h264 @ 0343a860] concealing 920 DC, 920 AC, 920 MV errors in I frame [h264 @ 03d2c360] [h264 @ 03d8b120] concealing 710 DC, 710 AC, 710 MV errors in P frame error while decoding MB 27 6, bytestream (-6) [h264 @ 03e34c80] [h264 @ 03e348a0] [h264 @ 03e35480] concealing 881 DC, 881 AC, 881 MV errors in P frame [h264 @ 03d8b120] error while decoding MB 32 8, bytestream (-7) error while decoding MB 31 16, bytestream (-7) [h264 @ 03e35480] [h264 @ 03df0060] concealing 702 DC, 702 AC, 702 MV errors in B frame concealing 298 DC, 298 AC, 298 MV errors in B frame [h264 @ 03439c80] [h264 @ 0343a860] [h264 @ 03e348a0] concealing 378 DC, 378 AC, 378 MV errors in B frame error while decoding MB 36 7, bytestream (-5) top block unavailable for requested intra mode at 5 0 concealing 617 DC, 617 AC, 617 MV errors in B frame [h264 @ 03439c80] [h264 @ 0343a860] concealing 653 DC, 653 AC, 653 MV errors in B frame error while decoding MB 5 0, bytestream (4285) [h264 @ 0343a860] concealing 920 DC, 920 AC, 920 MV errors in P frame [h264 @ 03d2c360] error while decoding MB 25 21, bytestream (-7) [h264 @ 03d8b120] error while decoding MB 39 5, bytestream (-5) [h264 @ 03d2c360] concealing 104 DC, 104 AC, 104 MV errors in B frame [h264 @ 03d8b120] concealing 730 DC, 730 AC, 730 MV errors in B frame [h264 @ 03e344a0] [h264 @ 03e348a0] error while decoding MB 18 11, bytestream (-10) concealing 871 DC, 871 AC, 871 MV errors in P frame [h264 @ 03e34c80] [h264 @ 03e35480] [h264 @ 03e344a0] concealing 722 DC, 722 AC, 722 MV errors in B frame concealing 555 DC, 555 AC, 555 MV errors in B frame concealing 511 DC, 511 AC, 511 MV errors in B frame [h264 @ 03df0060] error while decoding MB 23 13, bytestream (-21) [h264 @ 03df0060] concealing 426 DC, 426 AC, 426 MV errors in B frame [h264 @ 03439c80] concealing 815 DC, 815 AC, 815 MV errors in P frame [h264 @ 0343a860] concealing 557 DC, 557 AC, 557 MV errors in B frame [h264 @ 03d2c360] concealing 378 DC, 378 AC, 378 MV errors in B frame [h264 @ 03d8b120] error while decoding MB 30 17, bytestream (-10) [h264 @ 03e344a0] top block unavailable for requested intra mode at 2 0 [h264 @ 03d8b120] concealing 259 DC, 259 AC, 259 MV errors in B frame [h264 @ 03e344a0] error while decoding MB 2 0, bytestream (1391) [h264 @ 03e344a0] concealing 920 DC, 920 AC, 920 MV errors in P frame [h264 @ 03e348a0] [h264 @ 03e34c80] [h264 @ 03e35480] concealing 800 DC, 800 AC, 800 MV errors in B frame concealing 549 DC, 549 AC, 549 MV errors in B frame concealing 629 DC, 629 AC, 629 MV errors in B frame [h264 @ 03df0060] top block unavailable for requested intra4x4 mode -1 at 0 0 [h264 @ 03df0060] error while decoding MB 0 0, bytestream (21880) [h264 @ 03df0060] concealing 920 DC, 920 AC, 920 MV errors in I frame [h264 @ 03439c80] concealing 839 DC, 839 AC, 839 MV errors in P frame [h264 @ 0343a860] concealing 864 DC, 864 AC, 864 MV errors in B frame [h264 @ 03d2c360] error while decoding MB 27 6, bytestream (-5) [h264 @ 03d8b120] top block unavailable for requested intra4x4 mode -1 at 11 0 [h264 @ 03d2c360] concealing 702 DC, 702 AC, 702 MV errors in B frame [h264 @ 03d8b120] error while decoding MB 11 0, bytestream (4759) [h264 @ 03d8b120] [h264 @ 03e344a0] concealing 920 DC, 920 AC, 920 MV errors in P frame concealing 875 DC, 875 AC, 875 MV errors in B frame [h264 @ 03e348a0] error while decoding MB 35 9, bytestream (-6) [h264 @ 03e348a0] [h264 @ 03e34c80] concealing 574 DC, 574 AC, 574 MV errors in B frame error while decoding MB 23 2, bytestream (-16) [h264 @ 03e35480] [h264 @ 03e34c80] concealing 621 DC, 621 AC, 621 MV errors in P frame concealing 866 DC, 866 AC, 866 MV errors in B frame [h264 @ 03df0060] concealing 897 DC, 897 AC, 897 MV errors in B frame [h264 @ 03439c80] [h264 @ 0343a860] concealing 849 DC, 849 AC, 849 MV errors in B frame concealing 890 DC, 890 AC, 890 MV errors in B frame [h264 @ 03d2c360] concealing 879 DC, 879 AC, 879 MV errors in P frame [h264 @ 03d8b120] concealing 897 DC, 897 AC, 897 MV errors in B frame [h264 @ 03e344a0] error while decoding MB 1 7, bytestream (-6) [h264 @ 03e348a0] [h264 @ 03e344a0] error while decoding MB 7 2, bytestream (-6) concealing 688 DC, 688 AC, 688 MV errors in B frame [h264 @ 03e348a0] [h264 @ 03e34c80] [h264 @ 03e35480] concealing 882 DC, 882 AC, 882 MV errors in B frame concealing 644 DC, 644 AC, 644 MV errors in P frame concealing 819 DC, 819 AC, 819 MV errors in B frame [h264 @ 03df0060] error while decoding MB 13 5, bytestream (-12) [h264 @ 03df0060] concealing 756 DC, 756 AC, 756 MV errors in B frame [h264 @ 03439c80] concealing 897 DC, 897 AC, 897 MV errors in B frame [h264 @ 0343a860] [h264 @ 03d2c360] concealing 504 DC, 504 AC, 504 MV errors in P frame concealing 897 DC, 897 AC, 897 MV errors in B frame [h264 @ 03d8b120] error while decoding MB 37 5, bytestream (-5) [h264 @ 03d8b120] concealing 732 DC, 732 AC, 732 MV errors in B frame [h264 @ 03e344a0] concealing 897 DC, 897 AC, 897 MV errors in B frame [h264 @ 03e348a0] concealing 850 DC, 850 AC, 850 MV errors in P frame [h264 @ 03e34c80] concealing 770 DC, 770 AC, 770 MV errors in B frame [h264 @ 03e35480] error while decoding MB 25 2, bytestream (-7) [h264 @ 03e35480] concealing 864 DC, 864 AC, 864 MV errors in B frame ... [h264 @ 03f80060] concealing 485 DC, 485 AC, 485 MV errors in B frame [h264 @ 03949c80] concealing 653 DC, 653 AC, 653 MV errors in B frame [h264 @ 0394a860] concealing 695 DC, 695 AC, 695 MV errors in P frame [h264 @ 03ebc580] concealing 507 DC, 507 AC, 507 MV errors in B frame [h264 @ 03f1b560] concealing 645 DC, 645 AC, 645 MV errors in B frame [h264 @ 03fc4ca0] [h264 @ 03fc50a0] concealing 724 DC, 724 AC, 724 MV errors in B frame concealing 709 DC, 709 AC, 709 MV errors in P frame [h264 @ 03fc58c0] concealing 483 DC, 483 AC, 483 MV errors in B frame [h264 @ 03f60420] concealing 586 DC, 586 AC, 586 MV errors in B frame [h264 @ 03f80060] concealing 617 DC, 617 AC, 617 MV errors in B frame [h264 @ 03949c80] concealing 651 DC, 651 AC, 651 MV errors in P frame [h264 @ 0394a860] concealing 726 DC, 726 AC, 726 MV errors in B frame [h264 @ 03ebc580] concealing 682 DC, 682 AC, 682 MV errors in B frame [h264 @ 03f1b560] error while decoding MB 28 7, bytestream (-13) [h264 @ 03fc4ca0] concealing 374 DC, 374 AC, 374 MV errors in P frame [h264 @ 03f1b560] concealing 661 DC, 661 AC, 661 MV errors in B frame [h264 @ 03fc50a0] concealing 737 DC, 737 AC, 737 MV errors in B frame [h264 @ 03fc58c0] error while decoding MB 12 7, bytestream (-11) [h264 @ 03f60420] [h264 @ 03f80060] concealing 545 DC, 545 AC, 545 MV errors in B frame [h264 @ 03fc58c0] concealing 553 DC, 553 AC, 553 MV errors in P frame concealing 677 DC, 677 AC, 677 MV errors in B frame [h264 @ 03949c80] [h264 @ 0394a860] concealing 607 DC, 607 AC, 607 MV errors in B frame [h264 @ 03ebc580] error while decoding MB 20 7, bytestream (-18) concealing 716 DC, 716 AC, 716 MV errors in B frame [h264 @ 0394a860] concealing 669 DC, 669 AC, 669 MV errors in B frame [h264 @ 03f1b560] concealing 534 DC, 534 AC, 534 MV errors in P frame [h264 @ 03fc4ca0] error while decoding MB 35 8, bytestream (-7) [h264 @ 03fc4ca0] [h264 @ 03fc58c0] concealing 614 DC, 614 AC, 614 MV errors in B frame [h264 @ 03fc50a0] concealing 664 DC, 664 AC, 664 MV errors in B frame error while decoding MB 27 7, bytestream (-5) [h264 @ 03f60420] [h264 @ 03f80060] concealing 772 DC, 772 AC, 772 MV errors in P frame [h264 @ 03949c80] concealing 708 DC, 708 AC, 708 MV errors in B frame [h264 @ 03fc50a0] concealing 694 DC, 694 AC, 694 MV errors in B frame concealing 662 DC, 662 AC, 662 MV errors in B frame [h264 @ 0394a860] error while decoding MB 27 6, bytestream (-9) [h264 @ 0394a860] concealing 702 DC, 702 AC, 702 MV errors in B frame [h264 @ 03ebc580] concealing 495 DC, 495 AC, 495 MV errors in P frame [h264 @ 03f1b560] concealing 565 DC, 565 AC, 565 MV errors in B frame [h264 @ 03fc4ca0] concealing 667 DC, 667 AC, 667 MV errors in B frame [h264 @ 03fc50a0] error while decoding MB 2 7, bytestream (-9) [h264 @ 03fc58c0] concealing 407 DC, 407 AC, 407 MV errors in P frame [h264 @ 03f60420] [h264 @ 03fc50a0] top block unavailable for requested intra4x4 mode -1 at 0 0 concealing 687 DC, 687 AC, 687 MV errors in B frame [h264 @ 03f60420] error while decoding MB 0 0, bytestream (16532) [h264 @ 03f60420] concealing 920 DC, 920 AC, 920 MV errors in I frame [h264 @ 03f80060] top block unavailable for requested intra mode at 26 0 [h264 @ 03f80060] error while decoding MB 26 0, bytestream (1640) [h264 @ 03f80060] [h264 @ 03949c80] concealing 920 DC, 920 AC, 920 MV errors in P frame concealing 897 DC, 897 AC, 897 MV errors in B frame [h264 @ 0394a860] error while decoding MB 2 15, bytestream (-5) [h264 @ 0394a860] concealing 367 DC, 367 AC, 367 MV errors in B frame ==== >________________________________ > From: "sergiogiogio at ovi.com" >To: "ffmpeg-user at ffmpeg.org" >Sent: Thursday, January 31, 2013 11:53 PM >Subject: Failing to concatenate 2 mp4 fragments without re-encoding > > >Hello, > > >I am trying to concatenate 2 small mp4 fragments (H264 main, AAC) without re-encoding. >So far I have not succeeded in generating a "compatible" mp4 output file: my Sony Bravia TV renders video and audio of the first part correctly but fails to play the video of ?the second part immediately after the "junction point", while audio continues normally. >After testing I discovered that I could make ffplay fail exactly in the same way as my TV by converting my mp4 output file to mpeg2 ts format. > > >Here are my steps (command lines and clip URLs below): >1- convert part1 and part2 from mp4 to mpeg2 ts with ffmpeg >2- concatenate part1 and part2 with ffmpeg >3 -run ffprobe or ffplay: no error > >4- convert output from mpeg2 ts to mp4 >5- convert output from mp4 to mpeg2 ts >6- run ffprobe or ffplay: lots of errors (reproduced below) > > >Tests were carried out with? >I have tried using MP4Box and TsRemuX with the same result (incompatible file). >I have also tried to demux the original mp4 files to ?h264 and aac bit streams, concatenating the streams and remuxing the into mp4, with again the same results. > > >Thanks in advance for any help or suggestion. >sergiogiogio > > > > >1- Command lines: >Note: the fragments are from a french TV national news program (18MB in total) >======== >SET FFMPEG_DIR=..\bin >SET CURL_DIR=..\bin > > >"%CURL_DIR%\curl.exe" "http://projects.developer.nokia.com/SingaporeBus/files/ffmpeg/part1.orig.mp4" -o "part1.orig.mp4" >"%CURL_DIR%\curl.exe" "http://projects.developer.nokia.com/SingaporeBus/files/ffmpeg/part2.orig.mp4" -o "part2.orig.mp4" > > >REM Convert part1 from MP4 to TS >"%FFMPEG_DIR%\ffmpeg.exe" -i part1.orig.mp4 -bsf h264_mp4toannexb -c copy -y part1.orig.mp4.ts >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams part1.orig.mp4.ts > part1.orig.mp4.ts.debug.txt > > >REM Convert part2 from MP4 to TS >"%FFMPEG_DIR%\ffmpeg.exe" -i part2.orig.mp4 -bsf h264_mp4toannexb -c copy -y part2.orig.mp4.ts >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams part2.orig.mp4.ts > part2.orig.mp4.ts.debug.txt > > >REM Concat part1 and part2 (TS) = (part1|part2) >"%FFMPEG_DIR%\ffmpeg.exe" -i "concat:part1.orig.mp4.ts|part2.orig.mp4.ts" -c copy -y 2parts.orig.mp4.ts.concat.ts >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams 2parts.orig.mp4.ts.concat.ts > 2parts.orig.mp4.ts.concat.ts.debug.txt > > >REM Convert (part1|part2) from TS to mp4 >"%FFMPEG_DIR%\ffmpeg.exe" -i 2parts.orig.mp4.ts.concat.ts -absf aac_adtstoasc -c copy -y 2parts.orig.mp4.ts.concat.ts.mp4 >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams 2parts.orig.mp4.ts.concat.ts.mp4 > 2parts.orig.mp4.ts.concat.ts.mp4.debug.txt > > >REM Convert (part1|part2) from mp4 to ts >"%FFMPEG_DIR%\ffmpeg.exe" -i 2parts.orig.mp4.ts.concat.ts.mp4 -bsf h264_mp4toannexb -c copy -y 2parts.orig.mp4.ts.concat.ts.mp4.ts >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams 2parts.orig.mp4.ts.concat.ts.mp4.ts 2>&1 > 2parts.orig.mp4.ts.concat.ts.mp4.ts.debug.txt >========= > > > >2- Error output of ffprobe: >========= > >[h264 @ 0261d020] top block unavailable for requested intra4x4 mode -1 at 0 0 >[h264 @ 0261d020] error while decoding MB 0 0, bytestream (18883) >[h264 @ 0261d020] concealing 920 DC, 920 AC, 920 MV errors in I frame >[h264 @ 028009a0] [h264 @ 0252a800] concealing 710 DC, 710 AC, 710 MV errors in P frame >error while decoding MB 29 6, bytestream (-10) >[h264 @ 0252a800] concealing 700 DC, 700 AC, 700 MV errors in B frame >[h264 @ 028009a0] error while decoding MB 34 8, bytestream (-5) >[h264 @ 0252a800] concealing 881 DC, 881 AC, 881 MV errors in P frame >[h264 @ 028009a0] [h264 @ 0261d020] concealing 615 DC, 615 AC, 615 MV errors in B frame >error while decoding MB 31 16, bytestream (-7) >[h264 @ 0261d020] concealing 298 DC, 298 AC, 298 MV errors in B frame >[h264 @ 028009a0] concealing 378 DC, 378 AC, 378 MV errors in B frame >[h264 @ 0252a800] error while decoding MB 36 7, bytestream (-7) >[h264 @ 0261d020] [h264 @ 0252a800] top block unavailable for requested intra mode at 5 0 >concealing 653 DC, 653 AC, 653 MV errors in B frame >... >========= > > > >3- ffmpeg?version >========= >ffmpeg version N-49448-gdc8dd2f Copyright (c) 2000-2013 the FFmpeg developers >? built on Jan 29 2013 17:50:41 with gcc 4.7.2 (GCC) >? configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib >? libavutil ? ? ?52. 17.100 / 52. 17.100 >? libavcodec ? ? 54. 91.100 / 54. 91.100 >? libavformat ? ?54. 61.104 / 54. 61.104 >? libavdevice ? ?54. ?3.102 / 54. ?3.102 >? libavfilter ? ? 3. 34.101 / ?3. 34.101 >? libswscale ? ? ?2. ?2.100 / ?2. ?2.100 >? libswresample ? 0. 17.102 / ?0. 17.102 >? libpostproc ? ?52. ?2.100 / 52. ?2.100 >========= > > > From anatol2002 at gmail.com Fri Feb 1 05:39:43 2013 From: anatol2002 at gmail.com (Anatol) Date: Fri, 1 Feb 2013 06:39:43 +0200 Subject: [FFmpeg-user] Failing to concatenate 2 mp4 fragments without re-encoding In-Reply-To: <1359693109.80192.YahooMailNeo@web160706.mail.bf1.yahoo.com> References: <1359647612.14180.YahooMailNeo@web160704.mail.bf1.yahoo.com> <1359693109.80192.YahooMailNeo@web160706.mail.bf1.yahoo.com> Message-ID: For video only: -Save the portions as ?h264 raw?, without any muxing format -Put the portions together by concatenating them together Command lines: ffmpeg -i input1.mp4 -vcodec copy -an -bsf:v h264_mp4toannexb output1.h264 ffmpeg -i input2.mp4 -vcodec copy -an -bsf:v h264_mp4toannexb output2.h264 cat output.h264 output1.h264 > output_merged.h264 ffmpeg -i output_merged.h264 -c:v copy -f mp4 output_merged.mp4 For audio u can use sox and then merge it all together On Fri, Feb 1, 2013 at 6:31 AM, wrote: > writes: > > ovi.com> writes: > > > > > I am trying to concatenate 2 small mp4 fragments (H264 main, AAC) > > > > I suggest you try the new concat demuxer (that is different > > from the concat protocol you have tested), find the > > documentation here: > > https://ffmpeg.org/ffmpeg-formats.html#concat > Thanks, I tried the concat demuxer (-f concat -i concat.txt) but got the > same error message in ffplay/ffprobe. > > > > Please do never post a part of the console output, always > > post the complete, unedited console output (at least the > > first 50 and the last 50 lines). > > > > Carl Eugen > > The first and last lines of console output are below: > ==== > "%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams > 2parts.orig.mp4.ts.concat.ts.mp4.ts 2>&1 > > 2parts.orig.mp4.ts.concat.ts.mp4.ts.debug.txt > ffprobe version N-49448-gdc8dd2f Copyright (c) 2007-2013 the FFmpeg > developers built on Jan 29 2013 17:50:41 with gcc 4.7.2 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads > --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca > --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid > --enable-zlib libavutil 52. 17.100 / 52. 17.100 libavcodec 54. > 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice > 54. 3.102 / 54. 3.102 libavfilter 3. 34.101 / 3. 34.101 libswscale > 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. > 2.100 > [mpegts @ 002df8e0] max_analyze_duration 5000000 reached at 5000000 > microseconds > Input #0, mpegts, from '2parts.orig.mp4.ts.concat.ts.mp4.ts': Duration: > 00:03:43.69, start: 1.400000, bitrate: 758 kb/s Program 1 Metadata: > service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: > Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 405:404 > DAR 180:101], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x101](und): > Audio: aac ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 81 kb/s > [h264 @ 0343a860] top block unavailable for requested intra4x4 mode -1 at > 0 0 > [h264 @ 0343a860] error while decoding MB 0 0, bytestream (18883) > [h264 @ 0343a860] concealing 920 DC, 920 AC, 920 MV errors in I frame > [h264 @ 03d2c360] [h264 @ 03d8b120] concealing 710 DC, 710 AC, 710 MV > errors in P frame > error while decoding MB 27 6, bytestream (-6) > [h264 @ 03e34c80] [h264 @ 03e348a0] [h264 @ 03e35480] concealing 881 DC, > 881 AC, 881 MV errors in P frame > [h264 @ 03d8b120] error while decoding MB 32 8, bytestream (-7) > error while decoding MB 31 16, bytestream (-7) > [h264 @ 03e35480] [h264 @ 03df0060] concealing 702 DC, 702 AC, 702 MV > errors in B frame > concealing 298 DC, 298 AC, 298 MV errors in B frame > [h264 @ 03439c80] [h264 @ 0343a860] [h264 @ 03e348a0] concealing 378 DC, > 378 AC, 378 MV errors in B frame > error while decoding MB 36 7, bytestream (-5) > top block unavailable for requested intra mode at 5 0 > concealing 617 DC, 617 AC, 617 MV errors in B frame > [h264 @ 03439c80] [h264 @ 0343a860] concealing 653 DC, 653 AC, 653 MV > errors in B frame > error while decoding MB 5 0, bytestream (4285) > [h264 @ 0343a860] concealing 920 DC, 920 AC, 920 MV errors in P frame > [h264 @ 03d2c360] error while decoding MB 25 21, bytestream (-7) > [h264 @ 03d8b120] error while decoding MB 39 5, bytestream (-5) > [h264 @ 03d2c360] concealing 104 DC, 104 AC, 104 MV errors in B frame > [h264 @ 03d8b120] concealing 730 DC, 730 AC, 730 MV errors in B frame > [h264 @ 03e344a0] [h264 @ 03e348a0] error while decoding MB 18 11, > bytestream (-10) > concealing 871 DC, 871 AC, 871 MV errors in P frame > [h264 @ 03e34c80] [h264 @ 03e35480] [h264 @ 03e344a0] concealing 722 DC, > 722 AC, 722 MV errors in B frame > concealing 555 DC, 555 AC, 555 MV errors in B frame > concealing 511 DC, 511 AC, 511 MV errors in B frame > [h264 @ 03df0060] error while decoding MB 23 13, bytestream (-21) > [h264 @ 03df0060] concealing 426 DC, 426 AC, 426 MV errors in B frame > [h264 @ 03439c80] concealing 815 DC, 815 AC, 815 MV errors in P frame > [h264 @ 0343a860] concealing 557 DC, 557 AC, 557 MV errors in B frame > [h264 @ 03d2c360] concealing 378 DC, 378 AC, 378 MV errors in B frame > [h264 @ 03d8b120] error while decoding MB 30 17, bytestream (-10) > [h264 @ 03e344a0] top block unavailable for requested intra mode at 2 0 > [h264 @ 03d8b120] concealing 259 DC, 259 AC, 259 MV errors in B frame > [h264 @ 03e344a0] error while decoding MB 2 0, bytestream (1391) > [h264 @ 03e344a0] concealing 920 DC, 920 AC, 920 MV errors in P frame > [h264 @ 03e348a0] [h264 @ 03e34c80] [h264 @ 03e35480] concealing 800 DC, > 800 AC, 800 MV errors in B frame > concealing 549 DC, 549 AC, 549 MV errors in B frame > concealing 629 DC, 629 AC, 629 MV errors in B frame > [h264 @ 03df0060] top block unavailable for requested intra4x4 mode -1 at > 0 0 > [h264 @ 03df0060] error while decoding MB 0 0, bytestream (21880) > [h264 @ 03df0060] concealing 920 DC, 920 AC, 920 MV errors in I frame > [h264 @ 03439c80] concealing 839 DC, 839 AC, 839 MV errors in P frame > [h264 @ 0343a860] concealing 864 DC, 864 AC, 864 MV errors in B frame > [h264 @ 03d2c360] error while decoding MB 27 6, bytestream (-5) > [h264 @ 03d8b120] top block unavailable for requested intra4x4 mode -1 at > 11 0 > [h264 @ 03d2c360] concealing 702 DC, 702 AC, 702 MV errors in B frame > [h264 @ 03d8b120] error while decoding MB 11 0, bytestream (4759) > [h264 @ 03d8b120] [h264 @ 03e344a0] concealing 920 DC, 920 AC, 920 MV > errors in P frame > concealing 875 DC, 875 AC, 875 MV errors in B frame > [h264 @ 03e348a0] error while decoding MB 35 9, bytestream (-6) > [h264 @ 03e348a0] [h264 @ 03e34c80] concealing 574 DC, 574 AC, 574 MV > errors in B frame > error while decoding MB 23 2, bytestream (-16) > [h264 @ 03e35480] [h264 @ 03e34c80] concealing 621 DC, 621 AC, 621 MV > errors in P frame > concealing 866 DC, 866 AC, 866 MV errors in B frame > [h264 @ 03df0060] concealing 897 DC, 897 AC, 897 MV errors in B frame > [h264 @ 03439c80] [h264 @ 0343a860] concealing 849 DC, 849 AC, 849 MV > errors in B frame > concealing 890 DC, 890 AC, 890 MV errors in B frame > [h264 @ 03d2c360] concealing 879 DC, 879 AC, 879 MV errors in P frame > [h264 @ 03d8b120] concealing 897 DC, 897 AC, 897 MV errors in B frame > [h264 @ 03e344a0] error while decoding MB 1 7, bytestream (-6) > [h264 @ 03e348a0] [h264 @ 03e344a0] error while decoding MB 7 2, > bytestream (-6) > concealing 688 DC, 688 AC, 688 MV errors in B frame > [h264 @ 03e348a0] [h264 @ 03e34c80] [h264 @ 03e35480] concealing 882 DC, > 882 AC, 882 MV errors in B frame > concealing 644 DC, 644 AC, 644 MV errors in P frame > concealing 819 DC, 819 AC, 819 MV errors in B frame > [h264 @ 03df0060] error while decoding MB 13 5, bytestream (-12) > [h264 @ 03df0060] concealing 756 DC, 756 AC, 756 MV errors in B frame > [h264 @ 03439c80] concealing 897 DC, 897 AC, 897 MV errors in B frame > [h264 @ 0343a860] [h264 @ 03d2c360] concealing 504 DC, 504 AC, 504 MV > errors in P frame > concealing 897 DC, 897 AC, 897 MV errors in B frame > [h264 @ 03d8b120] error while decoding MB 37 5, bytestream (-5) > [h264 @ 03d8b120] concealing 732 DC, 732 AC, 732 MV errors in B frame > [h264 @ 03e344a0] concealing 897 DC, 897 AC, 897 MV errors in B frame > [h264 @ 03e348a0] concealing 850 DC, 850 AC, 850 MV errors in P frame > [h264 @ 03e34c80] concealing 770 DC, 770 AC, 770 MV errors in B frame > [h264 @ 03e35480] error while decoding MB 25 2, bytestream (-7) > [h264 @ 03e35480] concealing 864 DC, 864 AC, 864 MV errors in B frame > ... > [h264 @ 03f80060] concealing 485 DC, 485 AC, 485 MV errors in B frame > [h264 @ 03949c80] concealing 653 DC, 653 AC, 653 MV errors in B frame > [h264 @ 0394a860] concealing 695 DC, 695 AC, 695 MV errors in P frame > [h264 @ 03ebc580] concealing 507 DC, 507 AC, 507 MV errors in B frame > [h264 @ 03f1b560] concealing 645 DC, 645 AC, 645 MV errors in B frame > [h264 @ 03fc4ca0] [h264 @ 03fc50a0] concealing 724 DC, 724 AC, 724 MV > errors in B frame > concealing 709 DC, 709 AC, 709 MV errors in P frame > [h264 @ 03fc58c0] concealing 483 DC, 483 AC, 483 MV errors in B frame > [h264 @ 03f60420] concealing 586 DC, 586 AC, 586 MV errors in B frame > [h264 @ 03f80060] concealing 617 DC, 617 AC, 617 MV errors in B frame > [h264 @ 03949c80] concealing 651 DC, 651 AC, 651 MV errors in P frame > [h264 @ 0394a860] concealing 726 DC, 726 AC, 726 MV errors in B frame > [h264 @ 03ebc580] concealing 682 DC, 682 AC, 682 MV errors in B frame > [h264 @ 03f1b560] error while decoding MB 28 7, bytestream (-13) > [h264 @ 03fc4ca0] concealing 374 DC, 374 AC, 374 MV errors in P frame > [h264 @ 03f1b560] concealing 661 DC, 661 AC, 661 MV errors in B frame > [h264 @ 03fc50a0] concealing 737 DC, 737 AC, 737 MV errors in B frame > [h264 @ 03fc58c0] error while decoding MB 12 7, bytestream (-11) > [h264 @ 03f60420] [h264 @ 03f80060] concealing 545 DC, 545 AC, 545 MV > errors in B frame > [h264 @ 03fc58c0] concealing 553 DC, 553 AC, 553 MV errors in P frame > concealing 677 DC, 677 AC, 677 MV errors in B frame > [h264 @ 03949c80] [h264 @ 0394a860] concealing 607 DC, 607 AC, 607 MV > errors in B frame > [h264 @ 03ebc580] error while decoding MB 20 7, bytestream (-18) > concealing 716 DC, 716 AC, 716 MV errors in B frame > [h264 @ 0394a860] concealing 669 DC, 669 AC, 669 MV errors in B frame > [h264 @ 03f1b560] concealing 534 DC, 534 AC, 534 MV errors in P frame > [h264 @ 03fc4ca0] error while decoding MB 35 8, bytestream (-7) > [h264 @ 03fc4ca0] [h264 @ 03fc58c0] concealing 614 DC, 614 AC, 614 MV > errors in B frame > [h264 @ 03fc50a0] concealing 664 DC, 664 AC, 664 MV errors in B frame > error while decoding MB 27 7, bytestream (-5) > [h264 @ 03f60420] [h264 @ 03f80060] concealing 772 DC, 772 AC, 772 MV > errors in P frame > [h264 @ 03949c80] concealing 708 DC, 708 AC, 708 MV errors in B frame > [h264 @ 03fc50a0] concealing 694 DC, 694 AC, 694 MV errors in B frame > concealing 662 DC, 662 AC, 662 MV errors in B frame > [h264 @ 0394a860] error while decoding MB 27 6, bytestream (-9) > [h264 @ 0394a860] concealing 702 DC, 702 AC, 702 MV errors in B frame > [h264 @ 03ebc580] concealing 495 DC, 495 AC, 495 MV errors in P frame > [h264 @ 03f1b560] concealing 565 DC, 565 AC, 565 MV errors in B frame > [h264 @ 03fc4ca0] concealing 667 DC, 667 AC, 667 MV errors in B frame > [h264 @ 03fc50a0] error while decoding MB 2 7, bytestream (-9) > [h264 @ 03fc58c0] concealing 407 DC, 407 AC, 407 MV errors in P frame > [h264 @ 03f60420] [h264 @ 03fc50a0] top block unavailable for requested > intra4x4 mode -1 at 0 0 > concealing 687 DC, 687 AC, 687 MV errors in B frame > [h264 @ 03f60420] error while decoding MB 0 0, bytestream (16532) > [h264 @ 03f60420] concealing 920 DC, 920 AC, 920 MV errors in I frame > [h264 @ 03f80060] top block unavailable for requested intra mode at 26 0 > [h264 @ 03f80060] error while decoding MB 26 0, bytestream (1640) > [h264 @ 03f80060] [h264 @ 03949c80] concealing 920 DC, 920 AC, 920 MV > errors in P frame > concealing 897 DC, 897 AC, 897 MV errors in B frame > [h264 @ 0394a860] error while decoding MB 2 15, bytestream (-5) > [h264 @ 0394a860] concealing 367 DC, 367 AC, 367 MV errors in B frame > > ==== > > > > > >________________________________ > > From: "sergiogiogio at ovi.com" > >To: "ffmpeg-user at ffmpeg.org" > >Sent: Thursday, January 31, 2013 11:53 PM > >Subject: Failing to concatenate 2 mp4 fragments without re-encoding > > > > > >Hello, > > > > > >I am trying to concatenate 2 small mp4 fragments (H264 main, AAC) without > re-encoding. > >So far I have not succeeded in generating a "compatible" mp4 output file: > my Sony Bravia TV renders video and audio of the first part correctly but > fails to play the video of the second part immediately after the "junction > point", while audio continues normally. > >After testing I discovered that I could make ffplay fail exactly in the > same way as my TV by converting my mp4 output file to mpeg2 ts format. > > > > > >Here are my steps (command lines and clip URLs below): > >1- convert part1 and part2 from mp4 to mpeg2 ts with ffmpeg > >2- concatenate part1 and part2 with ffmpeg > >3 -run ffprobe or ffplay: no error > > > >4- convert output from mpeg2 ts to mp4 > >5- convert output from mp4 to mpeg2 ts > >6- run ffprobe or ffplay: lots of errors (reproduced below) > > > > > >Tests were carried out with > >I have tried using MP4Box and TsRemuX with the same result (incompatible > file). > >I have also tried to demux the original mp4 files to h264 and aac bit > streams, concatenating the streams and remuxing the into mp4, with again > the same results. > > > > > >Thanks in advance for any help or suggestion. > >sergiogiogio > > > > > > > > > >1- Command lines: > >Note: the fragments are from a french TV national news program (18MB in > total) > >======== > >SET FFMPEG_DIR=..\bin > >SET CURL_DIR=..\bin > > > > > >"%CURL_DIR%\curl.exe" " > http://projects.developer.nokia.com/SingaporeBus/files/ffmpeg/part1.orig.mp4" > -o "part1.orig.mp4" > >"%CURL_DIR%\curl.exe" " > http://projects.developer.nokia.com/SingaporeBus/files/ffmpeg/part2.orig.mp4" > -o "part2.orig.mp4" > > > > > >REM Convert part1 from MP4 to TS > >"%FFMPEG_DIR%\ffmpeg.exe" -i part1.orig.mp4 -bsf h264_mp4toannexb -c copy > -y part1.orig.mp4.ts > >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams part1.orig.mp4.ts > > part1.orig.mp4.ts.debug.txt > > > > > >REM Convert part2 from MP4 to TS > >"%FFMPEG_DIR%\ffmpeg.exe" -i part2.orig.mp4 -bsf h264_mp4toannexb -c copy > -y part2.orig.mp4.ts > >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams part2.orig.mp4.ts > > part2.orig.mp4.ts.debug.txt > > > > > >REM Concat part1 and part2 (TS) = (part1|part2) > >"%FFMPEG_DIR%\ffmpeg.exe" -i "concat:part1.orig.mp4.ts|part2.orig.mp4.ts" > -c copy -y 2parts.orig.mp4.ts.concat.ts > >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams > 2parts.orig.mp4.ts.concat.ts > 2parts.orig.mp4.ts.concat.ts.debug.txt > > > > > >REM Convert (part1|part2) from TS to mp4 > >"%FFMPEG_DIR%\ffmpeg.exe" -i 2parts.orig.mp4.ts.concat.ts -absf > aac_adtstoasc -c copy -y 2parts.orig.mp4.ts.concat.ts.mp4 > >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams > 2parts.orig.mp4.ts.concat.ts.mp4 > > 2parts.orig.mp4.ts.concat.ts.mp4.debug.txt > > > > > >REM Convert (part1|part2) from mp4 to ts > >"%FFMPEG_DIR%\ffmpeg.exe" -i 2parts.orig.mp4.ts.concat.ts.mp4 -bsf > h264_mp4toannexb -c copy -y 2parts.orig.mp4.ts.concat.ts.mp4.ts > >"%FFMPEG_DIR%\ffprobe.exe" -show_frames -show_streams > 2parts.orig.mp4.ts.concat.ts.mp4.ts 2>&1 > > 2parts.orig.mp4.ts.concat.ts.mp4.ts.debug.txt > >========= > > > > > > > >2- Error output of ffprobe: > >========= > > > >[h264 @ 0261d020] top block unavailable for requested intra4x4 mode -1 at > 0 0 > >[h264 @ 0261d020] error while decoding MB 0 0, bytestream (18883) > >[h264 @ 0261d020] concealing 920 DC, 920 AC, 920 MV errors in I frame > >[h264 @ 028009a0] [h264 @ 0252a800] concealing 710 DC, 710 AC, 710 MV > errors in P frame > >error while decoding MB 29 6, bytestream (-10) > >[h264 @ 0252a800] concealing 700 DC, 700 AC, 700 MV errors in B frame > >[h264 @ 028009a0] error while decoding MB 34 8, bytestream (-5) > >[h264 @ 0252a800] concealing 881 DC, 881 AC, 881 MV errors in P frame > >[h264 @ 028009a0] [h264 @ 0261d020] concealing 615 DC, 615 AC, 615 MV > errors in B frame > >error while decoding MB 31 16, bytestream (-7) > >[h264 @ 0261d020] concealing 298 DC, 298 AC, 298 MV errors in B frame > >[h264 @ 028009a0] concealing 378 DC, 378 AC, 378 MV errors in B frame > >[h264 @ 0252a800] error while decoding MB 36 7, bytestream (-7) > >[h264 @ 0261d020] [h264 @ 0252a800] top block unavailable for requested > intra mode at 5 0 > >concealing 653 DC, 653 AC, 653 MV errors in B frame > >... > >========= > > > > > > > >3- ffmpeg version > >========= > >ffmpeg version N-49448-gdc8dd2f Copyright (c) 2000-2013 the FFmpeg > developers > > built on Jan 29 2013 17:50:41 with gcc 4.7.2 (GCC) > > configuration: --enable-gpl --enable-version3 --disable-w32threads > --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r > --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca > --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid > --enable-zlib > > libavutil 52. 17.100 / 52. 17.100 > > libavcodec 54. 91.100 / 54. 91.100 > > libavformat 54. 61.104 / 54. 61.104 > > libavdevice 54. 3.102 / 54. 3.102 > > libavfilter 3. 34.101 / 3. 34.101 > > libswscale 2. 2.100 / 2. 2.100 > > libswresample 0. 17.102 / 0. 17.102 > > libpostproc 52. 2.100 / 52. 2.100 > >========= > > > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From palani at i-waves.com Fri Feb 1 07:38:39 2013 From: palani at i-waves.com (Palaniappan N) Date: Fri, 1 Feb 2013 12:08:39 +0530 Subject: [FFmpeg-user] FFMPEG Video Conversion In-Reply-To: <20130129180820.4350e7f7@lrcd.com> References: <20130129092321.1fa67d5d@lrcd.com> <20130129180820.4350e7f7@lrcd.com> Message-ID: Hi, Thank you all for your Great support and Time. We are testing our Video conversions now. We will get back if we need further help. Regards, Palaniappan From imranhkhan1989 at gmail.com Fri Feb 1 08:16:06 2013 From: imranhkhan1989 at gmail.com (Imran Khan) Date: Fri, 1 Feb 2013 12:46:06 +0530 Subject: [FFmpeg-user] decoding and scaling problem using h264 Message-ID: Hi I am encoding frame got from camera using h264. the encoding is working fine. But when I am trying to decode those frame and print it i am getting corrupted frames. this my code.. for decoding the frame and then scaling it into rgb. char* VideoDecoder::decode_frame(uint8_t *frame_buffer, size_t data_length){ len = avcodec_decode_video2(avctx ,frame ,&got_frame ,&avpkt); if( len < 0){ return "error while decoding\n"; } if( got_frame ){ static struct SwsContext *img_convert_ctx; if(img_convert_ctx == NULL) { img_convert_ctx = sws_getContext(w, h, CTX_PIX_FMT, avctx->width, avctx->height, RGB_PIX_FMT, SWS_BICUBIC, NULL, NULL, NULL); if(img_convert_ctx == NULL) { return "cannot initialize the conversion context!\n"; } } sws_scale(img_convert_ctx, frame->data, frame->linesize , 0 , h , picture->data, picture->linesize); rgb_bytes = new uint8_t[size]; memcpy( rgb_bytes , picture->data , size); please help me to resolve this problem From dashing.meng at gmail.com Fri Feb 1 10:47:47 2013 From: dashing.meng at gmail.com (littlebat) Date: Fri, 1 Feb 2013 17:47:47 +0800 Subject: [FFmpeg-user] What does "-vol" parameter mean in ffmpeg? In-Reply-To: <20110518131103.GA1576@phare.normalesup.org> References: <20110517110530.c7c0023d.dashing.meng@gmail.com> <20110518131103.GA1576@phare.normalesup.org> Message-ID: <20130201174747.dc2cf7a5.dashing.meng@gmail.com> On Wed, 18 May 2011 15:11:03 +0200 Nicolas George wrote: > L'octidi 28 flor?al, an CCXIX, littlebat a ?crit?: > > I can't understand how to use "-vol" parameter to increase volume in > > ffmpeg. I know "-vol 256" mean keep volume unchanged. But I don't > > know how to choose a proper number for a video file to increase > > volume. For example, does "-vol 512" mean volume intensity is twice > > as original file? > > Just try it for yourself: > > perl -e 'print pack("s*", 3000, 2000, 1000, 0, -1000, -2000)' | > ffmpeg -f s16le -i - -vol 512 -f s16le - 2> /dev/null | > perl -e '$/=\2; while(<>) { print unpack("s", $_), "\n" }' > > Of course, you can do exactly the same with any GUI PCM editor. > > By looking at the result, you can see that obviously each sample is > multiplied by vol/256. Maybe I have understood the "-vol volnumber" parameter in old version ffmpeg and "volume=volumenumber" audio filter in new version ffmpeg. According to the page: http://en.wikipedia.org/wiki/Decibel "volnumber/256" in old ffmpeg and "volumenumber"(not dB number) in new ffmpeg audio filter, is the "amplitude ratio" or "sound pressure level" ratio. So, "-vol 2560" in old ffmpeg or "volume=10" in new ffmpeg equal to "volume=20dB" in new ffmpeg. The formula is dBnumber=20*lg(amplitude ratio). From video-server at aab.sk Fri Feb 1 11:55:11 2013 From: video-server at aab.sk (video-server) Date: Fri, 01 Feb 2013 11:55:11 +0100 Subject: [FFmpeg-user] http cookie example does not work In-Reply-To: References: <51096043.4030700@aab.sk> <510AD2BB.6030707@aab.sk> <20130131210418.GZ19821@arborea> Message-ID: <510B9F0F.7030002@aab.sk> > If this is the problem, it may be possible to work-around with > the -f mjpeg demuxer. with -f mjpeg the headers work as expected,but unusable (not a mjpeg stream,only single-jpg image) the only way to get image is via this jpg url. it ignores the multiple-requests (connection : keep -alive) too. mjpeg demuxer does not have "loop" parameter,which image2 has. i debugged the source ,the parameter is not found by av_opt_find2. but i am not yes sure how this could be fixed, or where the problem lies. M. From video-server at aab.sk Fri Feb 1 11:56:54 2013 From: video-server at aab.sk (video-server) Date: Fri, 01 Feb 2013 11:56:54 +0100 Subject: [FFmpeg-user] http cookie example does not work In-Reply-To: <510B9F0F.7030002@aab.sk> References: <51096043.4030700@aab.sk> <510AD2BB.6030707@aab.sk> <20130131210418.GZ19821@arborea> <510B9F0F.7030002@aab.sk> Message-ID: <510B9F76.8020106@aab.sk> > it ignores the multiple-requests (connection : keep -alive) too. i meant the ip camera From pb at das-werkstatt.com Fri Feb 1 12:20:52 2013 From: pb at das-werkstatt.com (Peter B.) Date: Fri, 01 Feb 2013 12:20:52 +0100 Subject: [FFmpeg-user] trouble confirming ffv1 lossless encode In-Reply-To: References: Message-ID: <510BA514.1020402@das-werkstatt.com> On 01/30/2013 11:35 PM, Carl Eugen Hoyos wrote: > Nathan Lewis mail.crawford.com> writes: > >> $ ffmpeg -i ffv1_lossless.mov -an -f framemd5 ffv1_lossless.framemd5 > Since you want to compare the ffv1 video (yuv422p) with > a yuyv video, you have to tell ffmpeg: > $ ffmpeg -i input -f framemd5 -pix_fmt yuyv422 out > @Nathan: Have you tried Carl Eugen's suggestion? If there are still issues with verifying FFv1's losslessness is your case, could you upload your uncompressed sample somewhere, so I could take a look at it? Regards, Peter B. From cehoyos at ag.or.at Fri Feb 1 13:25:17 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 1 Feb 2013 12:25:17 +0000 (UTC) Subject: [FFmpeg-user] http cookie example does not work References: <51096043.4030700@aab.sk> <510AD2BB.6030707@aab.sk> <20130131210418.GZ19821@arborea> <510B9F0F.7030002@aab.sk> Message-ID: video-server aab.sk> writes: > > If this is the problem, it may be possible to work-around with > > the -f mjpeg demuxer. > > with -f mjpeg the headers work as expected,but unusable (not a mjpeg > stream,only single-jpg image) > mjpeg demuxer does not have "loop" parameter,which image2 has. Do I understand you correctly that "-f mjpeg" allows you to receive one frame and that you can correctly (re-)encode that frame but that your use-case requires "loop" which does not work with "-f mjpeg"? Carl Eugen From video-server at aab.sk Fri Feb 1 14:09:55 2013 From: video-server at aab.sk (MiHe) Date: Fri, 01 Feb 2013 14:09:55 +0100 Subject: [FFmpeg-user] http cookie example does not work In-Reply-To: References: <51096043.4030700@aab.sk> <510AD2BB.6030707@aab.sk> <20130131210418.GZ19821@arborea> <510B9F0F.7030002@aab.sk> Message-ID: <510BBEA3.8010301@aab.sk> > Do I understand you correctly that "-f mjpeg" allows > you to receive one frame and that you can correctly > (re-)encode that frame but that your use-case requires > "loop" which does not work with "-f mjpeg"? yes. the first frame is probably lost (not displayed by ffplay) but that doesn't matter. From tfmackey at gmail.com Fri Feb 1 14:11:07 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Fri, 1 Feb 2013 13:11:07 +0000 Subject: [FFmpeg-user] Adding black border to RHS of video Message-ID: I have a series of 6 images that I am converting to a presentation video. Each image is 1620 x 1080. I need to add 300 more pixels to the right hand side of the video so that it will display in HD on the left of the screen with the blank 300 pixels on the right hand side. Can this be done with FFmpeg or should I try to add the rhs border to each image in turn before encoding. If the latter any suggestions as to how it can be done on the command line/ Thanks From tfmackey at gmail.com Fri Feb 1 14:42:36 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Fri, 1 Feb 2013 13:42:36 +0000 Subject: [FFmpeg-user] Adding black border to RHS of video In-Reply-To: References: Message-ID: Hi, Problem solved. The following command in imagemagik does the job on each image. convert -size 1920x1080 xc:black -page +0+0 img001.jpg -layers flatten test.jpg From subscriptions at znet.ca Fri Feb 1 15:20:46 2013 From: subscriptions at znet.ca (Subscriptions) Date: Fri, 01 Feb 2013 09:20:46 -0500 Subject: [FFmpeg-user] =?utf-8?q?ATSC_TS_live_transcode_on_DL360_G4=3F?= Message-ID: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> Hello again, It simply looks that 2 double-core Xeon at 3.4Ghz (HP DL 360) can not transcode mpeg2 ts live stream coming at ~20 Mb/s to h264. Even with 'preset ultrafast' the load goes above 4 and the buffer overruns. The minimal processor that is able to do this up to now is a single Phenom 2 X6 Black at 3.4 Ghz, and it sometimes gets with load ~5 on it's six cores. Thanks, George Hello, I want to reduce bit rate of ~18Mb/s ATSC live stream which I capture over the air with HDHomerun box, and it looks that an HP DL360 G4 server (two 64 bit double core Xeon processors) can not do the job. Is there some way to make this functional? My idea is to reduce the stream from 18Mb/s to about 4-5Mb/s at hd720. The problem is that processor load goes over 4 and starts to overrun the buffer. Is there a way to make the transcoding somehow work with x264 on that computer? Thanks, George. nice -n -20 ffmpeg -i "udp://239.255.254.1:1234?fifo_size=6000000&overrun_nonfatal=1&" -acodec copy -c:v libx264 -crf 22 -preset fast -f mpegts udp://239.255.254.240:1234 ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers built on Oct 16 2012 09:46:44 with gcc 4.7 (Debian 4.7.2-4) Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 15000 kb/s, 63.81 fps, 59.94 tbr, 90k tbn, 119.88 tbc using cpu capabilities: MMX2 SSE2 SSE3 Cache64 Output #0, mpegts, to 'udp://239.255.254.240:1234': Metadata: encoder : Lavf54.29.104 Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 59.94 tbc Stream #0:1(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), 384 kb/s Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie %Cpu0 : 96.3 us, 1.0 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 2.3 si, 0.0 st %Cpu1 : 95.7 us, 1.0 sy, 0.0 ni, 1.0 id, 0.0 wa, 0.0 hi, 2.3 si, 0.0 st %Cpu2 : 97.7 us, 1.3 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 0.7 si, 0.0 st %Cpu3 : 96.0 us, 0.7 sy, 0.0 ni, 2.0 id, 0.0 wa, 0.0 hi, 1.3 si, 0.0 st KiB Mem: 3995312 total, 2685548 used, 1309764 free, 74516 buffers processor : 3 vendor_id : GenuineIntel cpu family : 15 model : 4 model name : Intel(R) Xeon(TM) CPU 3.40GHz From belcampo at zonnet.nl Fri Feb 1 16:00:29 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Fri, 1 Feb 2013 16:00:29 +0100 Subject: [FFmpeg-user] ATSC TS live transcode on DL360 G4? In-Reply-To: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> References: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> Message-ID: On Feb 1, 2013, at 3:20 PM, Subscriptions wrote: > Hello again, > > It simply looks that 2 double-core Xeon at 3.4Ghz (HP DL 360) can not transcode mpeg2 ts live stream coming at ~20 Mb/s to h264. Even with 'preset ultrafast' the load goes above 4 and the buffer overruns. The minimal processor that is able to do this up to now is a single Phenom 2 X6 Black at 3.4 Ghz, and it sometimes gets with load ~5 on it's six cores. It looks a bit odd to me. I can encode 2 DVB-S 1080i h264-based recordings to 720p with a 4-core i5-2500k not over clocked. If you remove the nice statement and add -re statement before your source like ffmpeg -re -i udp etc should do the job. BTW. I do my encodings from a file, not from a stream. Maybe an intermediate file will help, although it adds a slight delay. Henk > > Thanks, George > > > Hello, > > I want to reduce bit rate of ~18Mb/s ATSC live stream which I capture over the air with HDHomerun box, and it looks that an HP DL360 G4 server (two 64 bit double core Xeon processors) can not do the job. Is there some way to make this functional? My idea is to reduce the stream from 18Mb/s to about 4-5Mb/s at hd720. The problem is that processor load goes over 4 and starts to overrun the buffer. Is there a way to make the transcoding somehow work with x264 on that computer? > > Thanks, George. > > nice -n -20 ffmpeg -i "udp://239.255.254.1:1234?fifo_size=6000000&overrun_nonfatal=1&" -acodec copy -c:v libx264 -crf 22 -preset fast -f mpegts udp://239.255.254.240:1234 > > ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers > built on Oct 16 2012 09:46:44 with gcc 4.7 (Debian 4.7.2-4) > > Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 15000 kb/s, 63.81 fps, 59.94 tbr, 90k tbn, 119.88 tbc > > using cpu capabilities: MMX2 SSE2 SSE3 Cache64 > Output #0, mpegts, to 'udp://239.255.254.240:1234': > Metadata: > encoder : Lavf54.29.104 > Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 59.94 tbc > Stream #0:1(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), 384 kb/s > > > Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie > %Cpu0 : 96.3 us, 1.0 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 2.3 si, 0.0 st > %Cpu1 : 95.7 us, 1.0 sy, 0.0 ni, 1.0 id, 0.0 wa, 0.0 hi, 2.3 si, 0.0 st > %Cpu2 : 97.7 us, 1.3 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 0.7 si, 0.0 st > %Cpu3 : 96.0 us, 0.7 sy, 0.0 ni, 2.0 id, 0.0 wa, 0.0 hi, 1.3 si, 0.0 st > KiB Mem: 3995312 total, 2685548 used, 1309764 free, 74516 buffers > > processor : 3 > vendor_id : GenuineIntel > cpu family : 15 > model : 4 > model name : Intel(R) Xeon(TM) CPU 3.40GHz > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From nlewis at mail.crawford.com Fri Feb 1 16:03:55 2013 From: nlewis at mail.crawford.com (Nathan Lewis) Date: Fri, 1 Feb 2013 10:03:55 -0500 Subject: [FFmpeg-user] trouble confirming ffv1 lossless encode In-Reply-To: <510BA514.1020402@das-werkstatt.com> References: <510BA514.1020402@das-werkstatt.com> Message-ID: On Fri, Feb 1, 2013 at 6:20 AM, Peter B. wrote: > @Nathan: > Have you tried Carl Eugen's suggestion? > > If there are still issues with verifying FFv1's losslessness is your > case, could you upload your uncompressed sample somewhere, so I could > take a look at it? Hi Peter, I was able to test using Carl Eugen's suggestion and I was able to verify ffv1's losslessness using -pix_fmt yuyv422 when running framemd5 on the ffv1. @Carl Eugen: Apologies for the delay in getting back to you with an update. I appreciate your quick response to my question. I have a few follow up questions about the use of -pix_fmt in this example. Please let me know if this warrants a new posting/thread. My input file (8-bit Uncompressed from a Digital Rapids DRC-1400) is yuyv422. Looking over the -pix_fmts available to ffv1 in ffv1enc.c I found that yuyv422 is not supported within ffv1: 1143 .pix_fmts = (const enum AVPixelFormat[]) { 1144 AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVA420P, AV_PIX_FMT_YUVA422P, AV_PIX_FMT_YUV444P, 1145 AV_PIX_FMT_YUVA444P, AV_PIX_FMT_YUV440P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV411P, 1146 AV_PIX_FMT_YUV410P, AV_PIX_FMT_0RGB32, AV_PIX_FMT_RGB32, AV_PIX_FMT_YUV420P16, 1147 AV_PIX_FMT_YUV422P16, AV_PIX_FMT_YUV444P16, AV_PIX_FMT_YUV444P9, AV_PIX_FMT_YUV422P9, 1148 AV_PIX_FMT_YUV420P9, AV_PIX_FMT_YUV420P10, AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV444P10, 1149 AV_PIX_FMT_GRAY16, AV_PIX_FMT_GRAY8, AV_PIX_FMT_GBRP9, AV_PIX_FMT_GBRP10, 1150 AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRP14, 1151 AV_PIX_FMT_NONE Would it be better to force the -pix_fmt to something other than the default yuv422p for encoding into ffv1? I assume that yuv422p represented 8-Bit Planar YUV and yuv422p10 represented 10-bit Planar YUV. Is there some place within the ffmpeg source (or elsewhere) where I might find some more detail about the colorspaces/pix_fmts available to different codecs within ffmpeg? Regards, Nathan From infos at madovsky.org Fri Feb 1 16:21:15 2013 From: infos at madovsky.org (Madovsky) Date: Fri, 1 Feb 2013 10:21:15 -0500 Subject: [FFmpeg-user] ffmpeg and rtmp fcsubscribe error Message-ID: Hi, I'm trying to get a fms live stream ffmpeg -re -i "rtmp://server/app/instance/mp4:live live=1 swfVfy=1" output but failed since rtmp server (FMS) asks for FCSubscribe here is the part of debug: ================= Invoking play sending ctrl. type: 0x0003 RTMP_SendPacket: fd=3, size=10 0000: c2 . 0000: 00 03 00 00 00 01 00 00 75 30 ........u0 RTMP_ReadPacket: fd=3 0000: 03 00 00 00 00 00 77 14 00 00 00 00 ......w..... 0000: 02 00 06 5f 65 72 72 6f 72 00 40 08 00 00 00 00 ..._error. at ..... 0010: 00 00 05 03 00 05 6c 65 76 65 6c 02 00 05 65 72 ......level...er 0020: 72 6f 72 00 04 63 6f 64 65 02 00 19 4e 65 74 43 ror..code...NetC 0030: 6f 6e 6e 65 63 74 69 6f 6e 2e 43 61 6c 6c 2e 46 onnection.Call.F 0040: 61 69 6c 65 64 00 0b 64 65 73 63 72 69 70 74 69 ailed..descripti 0050: 6f 6e 02 00 1f 4d 65 74 68 6f 64 20 6e 6f 74 20 on...Method not 0060: 66 6f 75 6e 64 20 28 46 43 53 75 62 73 63 72 69 found (FCSubscri 0070: 62 65 29 2e 00 00 09 be).... RTMP_ClientPacket, received: invoke 119 bytes (object begin) Property: Property: Property: NULL Property: (object begin) Property: Property: Property: (object end) (object end) HandleInvoke, server invoking <_error> rtmp server sent error ..... RTMP_ReadPacket: fd=3 0000: 02 00 00 00 00 00 04 01 00 00 00 00 ............ 0000: 00 00 05 a0 .... HandleChangeChunkSize, received: chunk size change to 1440 RTMP_ReadPacket: fd=3 0000: 02 00 00 00 00 00 06 04 00 00 00 00 ............ 0000: 00 00 00 00 00 01 ...... HandleCtrl, received ctrl. type: 0, len: 6 HandleCtrl, Stream Begin 1 RTMP_ReadPacket: fd=3 0000: 04 00 00 00 00 00 ce 14 01 00 00 00 ............ 0000: 02 00 08 6f 6e 53 74 61 74 75 73 00 00 00 00 00 ...onStatus..... 0010: 00 00 00 00 05 03 00 05 6c 65 76 65 6c 02 00 06 ........level... 0020: 73 74 61 74 75 73 00 04 63 6f 64 65 02 00 14 4e status..code...N 0030: 65 74 53 74 72 65 61 6d 2e 50 6c 61 79 2e 52 65 etStream.Play.Re 0040: 73 65 74 00 0b 64 65 73 63 72 69 70 74 69 6f 6e set..description 0050: 02 00 37 50 6c 61 79 69 6e 67 20 61 6e 64 20 72 ..7Playing and r 0060: 65 73 65 74 74 69 6e 67 20 68 51 55 6c 39 57 6d esetting hQUl9Wm 0070: 74 30 75 75 55 43 6f 6e 50 4d 31 6a 34 67 51 56 t0uuUConPM1j4gQV 0080: 76 63 4c 6c 36 35 32 59 72 2e 00 07 64 65 74 61 vcLl652Yr...deta 0090: 69 6c 73 02 00 20 68 51 55 6c 39 57 6d 74 30 75 ils.. hQUl9Wmt0u 00a0: 75 55 43 6f 6e 50 4d 31 6a 34 67 51 56 76 63 4c uUConPM1j4gQVvcL 00b0: 6c 36 35 32 59 72 00 08 63 6c 69 65 6e 74 69 64 l652Yr..clientid 00c0: 02 00 08 6f 41 41 67 41 41 41 41 00 00 09 ...oAAgAAAA... RTMP_ClientPacket, received: invoke 206 bytes (object begin) Property: Property: Property: NULL Property: (object begin) Property: Property: Property: Property: Property: (object end) (object end) HandleInvoke, server invoking HandleInvoke, onStatus: NetStream.Play.Reset RTMP_ReadPacket: fd=3 0000: 04 00 00 00 00 00 c8 14 01 00 00 00 ............ 0000: 02 00 08 6f 6e 53 74 61 74 75 73 00 00 00 00 00 ...onStatus..... 0010: 00 00 00 00 05 03 00 05 6c 65 76 65 6c 02 00 06 ........level... 0020: 73 74 61 74 75 73 00 04 63 6f 64 65 02 00 14 4e status..code...N 0030: 65 74 53 74 72 65 61 6d 2e 50 6c 61 79 2e 53 74 etStream.Play.St 0040: 61 72 74 00 0b 64 65 73 63 72 69 70 74 69 6f 6e art..description 0050: 02 00 31 53 74 61 72 74 65 64 20 70 6c 61 79 69 ..1Started playi 0060: 6e 67 20 68 51 55 6c 39 57 6d 74 30 75 75 55 43 ng hQUl9Wmt0uuUC 0070: 6f 6e 50 4d 31 6a 34 67 51 56 76 63 4c 6c 36 35 onPM1j4gQVvcLl65 0080: 32 59 72 2e 00 07 64 65 74 61 69 6c 73 02 00 20 2Yr...details.. 0090: 68 51 55 6c 39 57 6d 74 30 75 75 55 43 6f 6e 50 hQUl9Wmt0uuUConP 00a0: 4d 31 6a 34 67 51 56 76 63 4c 6c 36 35 32 59 72 M1j4gQVvcLl652Yr 00b0: 00 08 63 6c 69 65 6e 74 69 64 02 00 08 6f 41 41 ..clientid...oAA 00c0: 67 41 41 41 41 00 00 09 gAAAA... RTMP_ClientPacket, received: invoke 200 bytes (object begin) Property: Property: Property: NULL Property: (object begin) Property: Property: Property: Property: Property: (object end) (object end) HandleInvoke, server invoking HandleInvoke, onStatus: NetStream.Play.Start RTMP_ReadPacket: fd=3 0000: 04 00 00 00 00 00 18 12 01 00 00 00 ............ 0000: 02 00 11 7c 52 74 6d 70 53 61 6d 70 6c 65 41 63 ...|RtmpSampleAc 0010: 63 65 73 73 01 00 01 00 cess.... RTMP_ClientPacket, received: notify 24 bytes (object begin) Property: Property: Property: (object end) RTMP_ReadPacket: fd=3 RTMPSockBuf_Fill, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable) RTMP_ReadPacket, failed to read RTMP packet header [AVIOContext @ 0x2403d40] Statistics: 0 bytes read, 0 seeks RTMP_SendPacket: fd=3, size=34 0000: 43 00 00 00 00 00 22 14 C.....". 0000: 02 00 0c 64 65 6c 65 74 65 53 74 72 65 61 6d 00 ...deleteStream. 0010: 40 14 00 00 00 00 00 00 05 00 3f f0 00 00 00 00 @.........?..... 0020: 00 00 .. Invoking deleteStream ============= how to avoid this FCSubscribe request ? Thanks Franck From tevans.uk at googlemail.com Fri Feb 1 17:47:24 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Fri, 1 Feb 2013 16:47:24 +0000 Subject: [FFmpeg-user] ATSC TS live transcode on DL360 G4? In-Reply-To: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> References: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> Message-ID: On Fri, Feb 1, 2013 at 2:20 PM, Subscriptions wrote: > Hello again, > > It simply looks that 2 double-core Xeon at 3.4Ghz (HP DL 360) can not > transcode mpeg2 ts live stream coming at ~20 Mb/s to h264. Even with 'preset > ultrafast' the load goes above 4 and the buffer overruns. The minimal > processor that is able to do this up to now is a single Phenom 2 X6 Black at > 3.4 Ghz, and it sometimes gets with load ~5 on it's six cores. > > Thanks, George Hi George You were given the advice to record the stream to a file, and then transcode from that file to a second file. This takes all network interaction out of the way, and would show if your CPU cannot handle it, which your current example does not. If you ask for and get advice, and then don't follow it up, people won't follow up on your issue. Personally, my Core 2 E6300 (2 cores, 2.8GHz) can decode 1080p blu ray and re-encode to 720p/crf 23 at around 35-40 fps on veryfast, so I'd be surprised that twice as many cores, running at a faster speed, cannot. Cheers Tom From pb at das-werkstatt.com Fri Feb 1 18:34:22 2013 From: pb at das-werkstatt.com (Peter B.) Date: Fri, 01 Feb 2013 18:34:22 +0100 Subject: [FFmpeg-user] trouble confirming ffv1 lossless encode In-Reply-To: References: <510BA514.1020402@das-werkstatt.com> Message-ID: <510BFC9E.5080303@das-werkstatt.com> On 02/01/2013 04:03 PM, Nathan Lewis wrote: > On Fri, Feb 1, 2013 at 6:20 AM, Peter B. wrote: > >> @Nathan: >> Have you tried Carl Eugen's suggestion? > Hi Peter, > I was able to test using Carl Eugen's suggestion and I was able to verify > ffv1's losslessness using -pix_fmt yuyv422 when running framemd5 on the > ffv1. Glad to hear that. :) btw: I'm collecting real-life use cases of FFv1. May I ask what you're planning to use it for? Thanks, Pb From nlewis at mail.crawford.com Fri Feb 1 18:56:08 2013 From: nlewis at mail.crawford.com (Nathan Lewis) Date: Fri, 1 Feb 2013 12:56:08 -0500 Subject: [FFmpeg-user] trouble confirming ffv1 lossless encode In-Reply-To: <510BFC9E.5080303@das-werkstatt.com> References: <510BA514.1020402@das-werkstatt.com> <510BFC9E.5080303@das-werkstatt.com> Message-ID: On Fri, Feb 1, 2013 at 12:34 PM, Peter B. wrote: > btw: I'm collecting real-life use cases of FFv1. May I ask what you're > planning to use it for? > > I have a client that is interested in using it as their archival preservation master. From 23liam at googlemail.com Fri Feb 1 19:35:03 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Fri, 1 Feb 2013 18:35:03 +0000 Subject: [FFmpeg-user] Adding black border to RHS of video In-Reply-To: References: Message-ID: >Hi, >Problem solved. The following command in imagemagik does the job on each >image. >convert -size 1920x1080 xc:black -page +0+0 img001.jpg -layers flatten >test.jpg oh god what, no no just use the pad video filter ffmpeg -i input.mp4 -filter:v 'pad=iw+300:ih:0:0' -c:a copy -c:v libx264 -reset veryfast output.mp4 See the documentation: http://ffmpeg.org/ffmpeg-filters.html#pad From tfmackey at gmail.com Fri Feb 1 21:45:52 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Fri, 1 Feb 2013 20:45:52 +0000 Subject: [FFmpeg-user] Adding black border to RHS of video In-Reply-To: References: Message-ID: Thanks. I will try that. From dave at dericed.com Fri Feb 1 22:03:46 2013 From: dave at dericed.com (Dave Rice) Date: Fri, 1 Feb 2013 16:03:46 -0500 Subject: [FFmpeg-user] trouble confirming ffv1 lossless encode In-Reply-To: References: <510BA514.1020402@das-werkstatt.com> Message-ID: Hi Nathan, On Feb 1, 2013, at 10:03 AM, Nathan Lewis wrote: > On Fri, Feb 1, 2013 at 6:20 AM, Peter B. wrote: > >> @Nathan: >> Have you tried Carl Eugen's suggestion? >> >> If there are still issues with verifying FFv1's losslessness is your >> case, could you upload your uncompressed sample somewhere, so I could >> take a look at it? > > > Hi Peter, > I was able to test using Carl Eugen's suggestion and I was able to verify > ffv1's losslessness using -pix_fmt yuyv422 when running framemd5 on the > ffv1. I see Carl already answered but in a rather paranoid ffv1 encoding process that I use on uyvy422 source I first run: ffmpeg -report -vsync 0 -i "$file" -map 0:v -map 0:a -c:v ffv1 -g 1 -c:a copy "${file%.*}_ffv1.mov" -f framemd5 -an "${file%.*}.framemd5" which outputs the ffv1 encoding as well as a framemd5 of the video track. I then run: ffmpeg -i "${file%.*}_ffv1.mov" -f framemd5 -pix_fmt uyvy422 -an "${file%.*}_ffv1.framemd5" which decodes the ffv1 back to the source pixel format. After this if the "${file%.*}.framemd5" output is the same as the "${file%.*}_ffv1.framemd5" then I can consider the visual encoding to be lossless. In your case you'd have to change uyvy422 to yuvy422. Also consider that the lossless output file may need to represent non-audiovisual tracks of the source. I also include some tests for non-ffmpeg supported tracks and demux these out with muxmovie. If you'd doing lossless encoding in order to consider deleting the uncompressed source file then consider setting the FFREPORT variable before the encodings in order to save the logs in case you need to later audit the process. Like: export FFREPORT="file=${dirname}/%p_%t_convert-to-ffv1.log" > @Carl Eugen: > Apologies for the delay in getting back to you with an update. I > appreciate your quick response to my question. > > I have a few follow up questions about the use of -pix_fmt in this example. > Please let me know if this warrants a new posting/thread. > > My input file (8-bit Uncompressed from a Digital Rapids DRC-1400) is > yuyv422. Looking over the -pix_fmts available to ffv1 in ffv1enc.c I found > that yuyv422 is not supported within ffv1: > [...] > > Would it be better to force the -pix_fmt to something other than the > default yuv422p for encoding into ffv1? I think raw data in yuyv422, uyvy422, and yuv422p depicts the same visual data but stores the data in different orders. FFv1 uses planar pixel formats, thus the use of yuv422p. Conversions between the three pixel formats should be lossless. > I assume that yuv422p represented 8-Bit Planar YUV and yuv422p10 > represented 10-bit Planar YUV. Yes, in addition to colorspace and bit depth, the pixel format also infers chroma subsampling. > Is there some place within the ffmpeg > source (or elsewhere) where I might find some more detail about the > colorspaces/pix_fmts available to different codecs within ffmpeg? You can get encoder specific help like this: ffmpeg -h encoder=ffv1 which yields: Encoder ffv1 [FFmpeg video codec #1]: Threading capabilities: slice Supported pixel formats: yuv420p yuva420p yuva422p yuv444p yuva444p yuv440p yuv422p yuv411p yuv410p bgr0 bgra yuv420p16le yuv422p16le yuv444p16le yuv444p9le yuv422p9le yuv420p9le yuv420p10le yuv422p10le yuv444p10le gray16le gray gbrp9le gbrp10le gbrp12le gbrp14le ffv1 encoder AVOptions: -slicecrc E..V.. Protect slices with CRCs (from -1 to 1) Dave Rice From rodney.baker at iinet.net.au Sat Feb 2 02:21:04 2013 From: rodney.baker at iinet.net.au (Rodney Baker) Date: Sat, 02 Feb 2013 11:51:04 +1030 Subject: [FFmpeg-user] Adding black border to RHS of video In-Reply-To: References: Message-ID: <11931545.ufJkKXZyOB@mako> On Fri, 1 Feb 2013 18:35:03 Liam Condron-Farnos wrote: > >Hi, > >Problem solved. The following command in imagemagik does the job on each > >image. > >convert -size 1920x1080 xc:black -page +0+0 img001.jpg -layers flatten > >test.jpg > > oh god what, no no just use the pad video filter > > ffmpeg -i input.mp4 -filter:v 'pad=iw+300:ih:0:0' -c:a copy -c:v > libx264 -reset veryfast output.mp4 > s/reset/preset (or it won't work). -- ============================================================== Rodney Baker VK5ZTV rodney.baker at iinet.net.au ============================================================== From infos at madovsky.org Sat Feb 2 03:12:37 2013 From: infos at madovsky.org (Madovsky) Date: Fri, 1 Feb 2013 21:12:37 -0500 Subject: [FFmpeg-user] sync 2 live input streams Message-ID: <7A3B0E60F4234F28B6ACCA85CE4AE06D@e1705> Hi, I'm trying to resync 2 live input live streams asynced due to filter complex overlay with -itsoffset but unfortunately the audio from the second input doesn't follow the offset. is there any way to resync it with the new offset ? Thanks Franck From aruForum10 at deveritate.net Sat Feb 2 09:38:38 2013 From: aruForum10 at deveritate.net (frank10) Date: Sat, 02 Feb 2013 09:38:38 +0100 Subject: [FFmpeg-user] join two video files portions Message-ID: <510CD08E.40003@deveritate.net> I have two avi videos and I want to make a third one merged like this: videoC = the latest 5 sec of videoA + all the videoB Also, the videoA could be opened and recording from a webcam, so I could not know which is its length. How could I do this with ffmpeg? thank you From cehoyos at ag.or.at Sat Feb 2 10:06:03 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 09:06:03 +0000 (UTC) Subject: [FFmpeg-user] join two video files portions References: <510CD08E.40003@deveritate.net> Message-ID: frank10 deveritate.net> writes: > I have two avi videos and I want to make a third one merged like this: > videoC = the latest 5 sec of videoA + all the videoB There is a concat demuxer that should allow this combined with -ss > Also, the videoA could be opened and recording from a webcam, > so I could not know which is its length. I don't think this is possible (in one step). Carl Eugen From cehoyos at ag.or.at Sat Feb 2 10:10:37 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 09:10:37 +0000 (UTC) Subject: [FFmpeg-user] sync 2 live input streams References: <7A3B0E60F4234F28B6ACCA85CE4AE06D@e1705> Message-ID: Madovsky madovsky.org> writes: > I'm trying to resync 2 live input live streams asynced due > to filter complex overlay Is there a bug that we should know about? > with -itsoffset but unfortunately > the audio from the second input doesn't follow the offset. Failing command line together with complete, uncut console output missing / works fine here. Carl Eugen From aruForum10 at deveritate.net Sat Feb 2 10:18:19 2013 From: aruForum10 at deveritate.net (frank10) Date: Sat, 02 Feb 2013 10:18:19 +0100 Subject: [FFmpeg-user] join two video files portions In-Reply-To: References: <510CD08E.40003@deveritate.net> Message-ID: <510CD9DB.7040602@deveritate.net> Il 02/02/2013 10:06, Carl Eugen Hoyos ha scritto: > There is a concat demuxer that should allow this > combined with -ss I looked at the -ss option, but it seems to work with a start position while I need to count from the end of the video and I don't know its duration. > I don't think this is possible (in one step). > > It's ok also in more steps. It could be: 1) determine actual duration of video file 2) subtract 5sec from it and use it as a start position for -ss If needed I could use a c++ prog for it. frank From m.hefny at nilesat.com.eg Sat Feb 2 10:26:10 2013 From: m.hefny at nilesat.com.eg (mohamed hefny) Date: Sat, 2 Feb 2013 11:26:10 +0200 Subject: [FFmpeg-user] Captured video is not smooth (Help Please) Message-ID: Dear All, I managed successfully to capture SDI input a Decklink card using the following command: ffmpeg -f dshow -i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)" -y -s 720x576 -r 25 -aspect "4:3" -pix_fmt yuv420p -flags +cgop+ildct+ilme -top 1 -sc_threshold 1000000000 -g 12 -bf 2 -flags2 +sgop -vcodec mpeg2video -b:v 2800K -maxrate 2800K -minrate 2800K -bufsize 2000k -crf 23 -acodec mp2 -ab 128K -metadata service_provider="MHEFNY" "c:\\outx.m2t" And I have to adhere with above MPEG format since the file will be ingested to an MPEG playout server. The problem I am facing now is, when there is fast movments (or sudden change) in input video signal. Which are not smooth (looks like fading or shadwos exist) in the captured video. * Here is a link to a sample capture file: https://www.dropbox.com/s/csq85qf8x23w439/outx.m2t * Full log file is attached above * And this is the first output lines: ffmpeg version N-49044-g89afa63 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 19 2013 20:36:06 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib --enable-filter=frei0r libavutil 52. 15.100 / 52. 15.100 libavcodec 54. 89.100 / 54. 89.100 libavformat 54. 61.101 / 54. 61.101 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.101 / 3. 32.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [dshow @ 003ebd40] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, dshow, from 'video=Decklink Video Capture (2):audio=Decklink Audio Capture (2)': Duration: N/A, start: 0.059901, bitrate: 1536 kb/s Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 25 tbr, 10000k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Output #0, mpegts, to 'c:\\outx.m2t': Metadata: service_provider: MHEFNY encoder : Lavf54.61.101 Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 2800 kb/s, 90k tbn, 25 tbc Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg2video) Stream #0:1 -> #0:1 (pcm_s16le -> mp2) Press [q] to stop, [?] for help frame= 12 fps=0.0 q=2.5 size= 261kB time=00:00:00.47 bitrate=4462.1kbits/s frame= 25 fps= 25 q=4.7 size= 435kB time=00:00:00.98 bitrate=3622.5kbits/s real-time buffer 82% full! frame dropped! [dshow @ 003ebd40] real-time buffer 82% full! frame dropped! [dshow @ 003ebd40] real-time buffer 83% full! frame dropped! frame= 35 fps= 22 q=7.3 size= 583kB time=00:00:01.39 bitrate=3429.4kbits/s frame= 51 fps= 24 q=6.6 size= 859kB time=00:00:02.10 bitrate=3344.0kbits/s frame= 63 fps= 24 q=6.5 size= 1031kB time=00:00:02.58 bitrate=3267.6kbits/s frame= 76 fps= 24 q=8.1 size= 1231kB time=00:00:03.11 bitrate=3241.5kbits/s Thank you in advance. Mohamed Hefny -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: out.txt URL: From cehoyos at ag.or.at Sat Feb 2 10:38:51 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 09:38:51 +0000 (UTC) Subject: [FFmpeg-user] Captured video is not smooth (Help Please) References: Message-ID: mohamed hefny nilesat.com.eg> writes: > The problem I am facing now is, when there is fast > movments (or sudden change) in input video signal. > Which are not smooth (looks like fading or shadwos > exist) in the captured video. If you mean "combing", the effect shown by interlaced video, there are several de-interlacing filters in FFmpeg, yadif is recommended. (Don't use ildct and ilme on de-interlaced input.) Carl Eugen From m.hefny at nilesat.com.eg Sat Feb 2 11:45:03 2013 From: m.hefny at nilesat.com.eg (mohamed hefny) Date: Sat, 2 Feb 2013 12:45:03 +0200 Subject: [FFmpeg-user] Captured video is not smooth (Solved but Lip Sync Occur) References: Message-ID: Hello Carl, Thank you very much for your help. Motion is smooth now after using the following command (Removing +ilme+ildct) and Replacing (-Top 1 with -vf yadif=0:1): ffmpeg -f dshow -i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)" -y -s 720x576 -r 25 -aspect "4:3" -pix_fmt yuv420p -flags +cgop -vf yadif=0:1 -sc_threshold 1000000000 -g 12 -bf 2 -flags2 +sgop -vcodec mpeg2video -b:v 2800K -maxrate 2800K -minrate 2800K -bufsize 2000k -crf 23 -acodec mp2 -ab 128K -metadata service_provider="MHEFNY" "c:\\outx.m2t" But the audio is out of sync by about 0.3 Sec, Is it possible to overcome that lip sync. Thank you in advance Mohamed Hefny ________________________________ From: ffmpeg-user-bounces at ffmpeg.org on behalf of Carl Eugen Hoyos Sent: Sat 02-Feb-13 11:38 AM To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] Captured video is not smooth (Help Please) mohamed hefny nilesat.com.eg> writes: > The problem I am facing now is, when there is fast > movments (or sudden change) in input video signal. > Which are not smooth (looks like fading or shadwos > exist) in the captured video. If you mean "combing", the effect shown by interlaced video, there are several de-interlacing filters in FFmpeg, yadif is recommended. (Don't use ildct and ilme on de-interlaced input.) Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From pb at das-werkstatt.com Sat Feb 2 11:50:30 2013 From: pb at das-werkstatt.com (Peter B.) Date: Sat, 02 Feb 2013 11:50:30 +0100 Subject: [FFmpeg-user] Captured video is not smooth (Help Please) In-Reply-To: References: Message-ID: <510CEF76.5090403@das-werkstatt.com> On 02/02/2013 10:38 AM, Carl Eugen Hoyos wrote: > If you mean "combing", the effect shown by interlaced video, there are > several de-interlacing filters in FFmpeg, yadif is recommended. (Don't > use ildct and ilme on de-interlaced input.) Carl Eugen I've just looked at the video sample he uploaded and yes, it's resized and not properly deinterlaced, so Carl's right: Checkout the deinterlacing filters :) If you don't know what interlacing/deinterlacing is, you might want to take a look at "100fps.com" [1], a website which explains it pretty well. Regards, Pb == References: [1] http://www.100fps.com/ From cehoyos at ag.or.at Sat Feb 2 11:50:11 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 10:50:11 +0000 (UTC) Subject: [FFmpeg-user] Captured video is not smooth (Help Please) References: <510CEF76.5090403@das-werkstatt.com> Message-ID: Peter B. das-werkstatt.com> writes: > On 02/02/2013 10:38 AM, Carl Eugen Hoyos wrote: > > If you mean "combing", the effect shown by interlaced video, there are > > several de-interlacing filters in FFmpeg, yadif is recommended. (Don't > > use ildct and ilme on de-interlaced input.) Carl Eugen > > I've just looked at the video sample he uploaded and yes, it's resized Why do you think it is resized? I could not see that / I don't think it was. Carl Eugen From cehoyos at ag.or.at Sat Feb 2 11:53:47 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 10:53:47 +0000 (UTC) Subject: [FFmpeg-user] Captured video is not smooth (Solved but Lip Sync Occur) References: Message-ID: mohamed hefny nilesat.com.eg> writes: > Thank you very much for your help. Motion is smooth now after > using the following command (Removing +ilme+ildct) and > Replacing (-Top 1 with -vf yadif=0:1): > > ffmpeg -f dshow -i video="Decklink Video Capture (2)": > audio="Decklink Audio Capture (2)" -y -s 720x576 > -r 25 -aspect "4:3" -pix_fmt yuv420p -flags +cgop > -vf yadif=0:1 -sc_threshold 1000000000 -g 12 -bf 2 > -flags2 +sgop -vcodec mpeg2video -b:v 2800K > -maxrate 2800K -minrate 2800K -bufsize 2000k -crf 23 > -acodec mp2 -ab 128K -metadata service_provider="MHEFNY" > "c:\\outx.m2t" > > But the audio is out of sync by about 0.3 Sec Do you only see the A/V desync with your (complicated) command line or also with the following: $ ffmpeg -f dshow -i video=...:audio=... -qscale 2 out.avi $ ffmpeg -f dshow -i video=...:audio=... -qscale 2 -strict -2 out.mov $ ffmpeg -f dshow -i video=...:audio=... -qscale 2 -mbd 2 out.mpg Does ffplay -f dshow work? If yes, does it play the capture in sync or out-of-sync like ffmpeg? Please do not top-post here, Carl Eugen From nicolas.george at normalesup.org Sat Feb 2 11:56:26 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 2 Feb 2013 11:56:26 +0100 Subject: [FFmpeg-user] complicated audio channel mapping In-Reply-To: <51098872.7030307@sch.bme.hu> References: <51098872.7030307@sch.bme.hu> Message-ID: <20130202105626.GB16659@phare.normalesup.org> Le primidi 11 pluvi?se, an CCXXI, G?sz Zolt?n a ?crit?: > Here comes the idea. Why not amerge all the input channels and the > use mapping from the labeled "virtual stream": > > -filter_complex "[0:1] [0:2] [0:3] [0:4] amerge=inputs=8 [mylabel]" > > Now I have 8 channels in the "mylabel" stream, so map it to the 4 > output streams: > > -map [mylabel]:0.1 > -map [mylabel]:0.2 > -map [mylabel]:0.3 > -map [mylabel]:0.4 > > So far so good, but now I ended up with 4 8-channel-streams. > So I would like to use map_channel, somehow like this: > > -map_channel [mylabel].0.0:0.1 > -map_channel [mylabel].0.1:0.1 > -map_channel [mylabel].1.0:0.2 > -map_channel [mylabel].1.1:0.2 > -map_channel [mylabel].2.0:0.3 > -map_channel [mylabel].2.1:0.3 > -map_channel [mylabel].3.0:0.3 > -map_channel [mylabel].3.1:0.3 > > ... but there is no such thing :( I can not use map_channel with > amerge labeled "virtual streams". > > What is the best practice for this? I am not sure whether the docs tell it explicitly: are you aware that the -map_channel option is just a short cut to build the required amerge+pan filter chain. Therefore, if you are ready to use the -filter_complex feature, you can do it entirely there, with something like that: [0:1] [0:2] [0:3] [0:4] amerge=inputs=4 , asplit=3 [s1] [s2] [s3] ; [s1] pan=stereo:c0=c0:c1=c1 ; [s2] pan=stereo:c0=c2:c1=c3 ; [s3] pan=quad:c0=c4:c1=c5:c2=c6:c3=c7 Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From mario753 at yahoo.com Sat Feb 2 12:40:09 2013 From: mario753 at yahoo.com (Stu) Date: Sat, 2 Feb 2013 03:40:09 -0800 (PST) Subject: [FFmpeg-user] Decoding Raw YUV Frames From MPEG2 Message-ID: <1359805209.74119.YahooMailClassic@web120205.mail.ne1.yahoo.com> Hello, I know this sounds pretty obvious, but I'm having trouble getting accurate results when decoding a standard MPEG2 video file into its component raw YUV. My command line is simple (from the documentation page):- ffmpeg -i F:\ak.m2v output.yuv Looking at the output file in a hex editor, a significant percentage of samples are out of range (16-235). MPEG2 can't physically store samples like this, so I'm curious as to where they are coming from and if they can be clipped. This was run with the ffmpeg-20130202-git-985e93a-win64-static build, btw. Regards -------- Stu From andyqos at ukfsn.org Sat Feb 2 13:43:22 2013 From: andyqos at ukfsn.org (Andy Furniss) Date: Sat, 02 Feb 2013 12:43:22 +0000 Subject: [FFmpeg-user] Decoding Raw YUV Frames From MPEG2 In-Reply-To: <1359805209.74119.YahooMailClassic@web120205.mail.ne1.yahoo.com> References: <1359805209.74119.YahooMailClassic@web120205.mail.ne1.yahoo.com> Message-ID: <510D09EA.2080401@ukfsn.org> Stu wrote: > Hello, > > I know this sounds pretty obvious, but I'm having trouble getting accurate results when decoding a standard MPEG2 video file into its component raw YUV. > > My command line is simple (from the documentation page):- > ffmpeg -i F:\ak.m2v output.yuv > > Looking at the output file in a hex editor, a significant percentage of samples are out of range (16-235). uv are 16-240 IIRC and this is deliberately not a hard limit to allow for excursions during studio processing. MPEG2 can't physically store samples like this, It can - eg. this is deliberately full range (it's up to you to set up your player/hardware colour space conversion if you want to see it as full range on your screen). http://www.w6rz.net/ramp.zip >so I'm curious as to where they are coming from and if they can be clipped. How far out are they? From mario753 at yahoo.com Sat Feb 2 13:59:44 2013 From: mario753 at yahoo.com (Stu) Date: Sat, 2 Feb 2013 04:59:44 -0800 (PST) Subject: [FFmpeg-user] Decoding Raw YUV Frames From MPEG2 In-Reply-To: <510D09EA.2080401@ukfsn.org> Message-ID: <1359809984.82283.YahooMailClassic@web120206.mail.ne1.yahoo.com> Andy > How far out are they? Frequency analysis graph shows three spikes, at values 16, 128 and 234. But the full range is present, 0 accounting for over 32,000 samples and 255 for over 8,000. Is this what is usually passed to a hardware surface during playback? If so, I would presume that these out of range values are clipped. Can ffmpeg do this for me? Regards -------- Stu --- On Sat, 2/2/13, Andy Furniss wrote: > From: Andy Furniss > Subject: Re: [FFmpeg-user] Decoding Raw YUV Frames From MPEG2 > To: "FFmpeg user questions" > Cc: "Stu" > Date: Saturday, 2 February, 2013, 12:43 > Stu wrote: > > Hello, > > > > I know this sounds pretty obvious, but I'm having > trouble getting accurate results when decoding a standard > MPEG2 video file into its component raw YUV. > > > > My command line is simple (from the documentation > page):- > > ffmpeg -i F:\ak.m2v output.yuv > > > > Looking at the output file in a hex editor, a > significant percentage of samples are out of range > (16-235). > > uv are 16-240 IIRC and this is deliberately not a hard limit > to allow > for excursions during studio processing. > > ???MPEG2 can't physically store samples like > this, > > It can - eg. this is deliberately full range (it's up to you > to set up > your player/hardware colour space conversion if you want to > see it as > full range on your screen). > > http://www.w6rz.net/ramp.zip > > >so I'm curious as to where they are coming from and if > they can be clipped. > > How far out are they? > From pb at das-werkstatt.com Sat Feb 2 14:52:35 2013 From: pb at das-werkstatt.com (Peter B.) Date: Sat, 02 Feb 2013 14:52:35 +0100 Subject: [FFmpeg-user] Captured video is not smooth (Help Please) In-Reply-To: References: <510CEF76.5090403@das-werkstatt.com> Message-ID: <510D1A23.6060700@das-werkstatt.com> On 02/02/2013 11:50 AM, Carl Eugen Hoyos wrote: > Peter B. das-werkstatt.com> writes: > >> On 02/02/2013 10:38 AM, Carl Eugen Hoyos wrote: >>> If you mean "combing", the effect shown by interlaced video, there are >>> several de-interlacing filters in FFmpeg, yadif is recommended. (Don't >>> use ildct and ilme on de-interlaced input.) Carl Eugen >> I've just looked at the video sample he uploaded and yes, it's resized > Why do you think it is resized? > I could not see that / I don't think it was. > Sorry. My bad. Just watched it directly in the browser and silently assumed that it'd be played back 1:1 (which it didn't) Ignore the resizing comment ;) Pb From battistel at gmail.com Sat Feb 2 15:00:06 2013 From: battistel at gmail.com (Massimo Battistel) Date: Sat, 2 Feb 2013 15:00:06 +0100 Subject: [FFmpeg-user] [ffmpeg-user] Remove/reduce streaming errors Message-ID: hi, I'm streaming from a webcam this way: ffmpeg -re -f dshow -i video="Logitech QuickCam Communicate STX":audio="Logitech Mic (Communicate STX)" -vcodec libx264 -s 320x240 -g 15 -r 15 -q:v 1 -acodec libmp3lame -q:a 1 -f mpegts udp://192.168.0.27:1200 ffmpeg version N-48241-g9e04e11 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 27 2012 23:42:19 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.102 / 54. 50.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.101 / 3. 30.101 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [dshow @ 02499020] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, dshow, from 'video=Logitech QuickCam Communicate STX:audio=Logitech Mic (Communicate STX)': Duration: N/A, start: 16440.677000, bitrate: 1411 kb/s Stream #0:0: Video: rawvideo, bgr24, 320x240, 15 fps, 15 tbr, 10000k tbn, 15 tbc Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s [libx264 @ 025ad540] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 025ad540] profile High 4:4:4 Predictive, level 1.2, 4:4:4 8-bit Output #0, mpegts, to 'udp://192.168.0.27:1200': Metadata: encoder : Lavf54.50.102 Stream #0:0: Video: h264, yuv444p, 320x240, q=-1--1, 90k tbn, 15 tbc Stream #0:1: Audio: mp3, 44100 Hz, stereo, s16p Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> libmp3lame) Press [q] to stop, [?] for help First question: do I have to worry about: A. [dshow @ 02499020] Estimating duration from bitrate, this may be inaccurate B. Guessed Channel Layout for Input Stream #0.1 : stereo And if so, how to fix? ## phase 2: playing stream ## ffplay udp://192.168.0.27:1200 ffplay version N-48241-g9e04e11 Copyright (c) 2003-2012 the FFmpeg developers built on Dec 27 2012 23:42:19 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.102 / 54. 50.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.101 / 3. 30.101 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 02587e60] Unable to seek back to the start [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [h264 @ 02599840] non-existing PPS referenced [h264 @ 02599840] non-existing PPS 0 referenced [h264 @ 02599840] decode_slice_header error [h264 @ 02599840] no frame! [mpegts @ 02587e60] max_analyze_duration 5000000 reached at 5015467 [mpegts @ 02587e60] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from 'udp://192.168.0.27:1200': Duration: N/A, start: 35.563222, bitrate: 80 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (High 4:4:4 Predictive) ([27][0][0][0] / 0x001B), yuv444p, 320x240, 15 fps, 15 tbr, 90k tbn, 30 tbc Stream #0:1[0x101]: Audio: mp3 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16p, 80 kb/s [h264 @ 03627be0] reference picture missing during reorder Last message repeated 3 times [h264 @ 03627be0] Missing reference picture, default is 0 [h264 @ 03627be0] decode_slice_header error [h264 @ 03627be0] concealing 300 DC, 300 AC, 300 MV errors in P frame [h264 @ 035c2fc0] Missing reference picture, default is 65552 [h264 @ 0363a220] reference picture missing during reorder Last message repeated 1 times [h264 @ 0363a220] Missing reference picture, default is 65552 Last message repeated 1 times [h264 @ 03627be0] reference picture missing during reorder [h264 @ 03627be0] Missing reference picture, default is 65554 [h264 @ 035c2fc0] mmco: unref short failure Last message repeated 1 times Frame changed from size:0x0 to size:320x240 [mpegts @ 02587e60] PES packet size mismatch The stream, after the previous errors (they apper just before the video window is displayed), works well with no problems. Are all the previous messages shown because ffplay is waiting for key frame? How to make them disapper? thanks, Massimo From cehoyos at ag.or.at Sat Feb 2 15:25:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 14:25:38 +0000 (UTC) Subject: [FFmpeg-user] [ffmpeg-user] Remove/reduce streaming errors References: Message-ID: Massimo Battistel gmail.com> writes: > First question: do I have to worry about: > > A. [dshow @ 02499020] Estimating duration from bitrate, > this may be inaccurate > B. Guessed Channel Layout for Input Stream #0.1 : stereo No (assuming the audio stream really is stereo, if it is mono-mono - for example two different languages - you need to explicitely specify a filter). [...] > Are all the previous messages shown because ffplay > is waiting for key frame? I guess so, yes. > How to make them disapper? There is a loglevel option that allows to silence the executables. Carl Eugen From infos at madovsky.org Sat Feb 2 15:49:47 2013 From: infos at madovsky.org (Madovsky) Date: Sat, 2 Feb 2013 09:49:47 -0500 Subject: [FFmpeg-user] sync 2 live input streams References: <7A3B0E60F4234F28B6ACCA85CE4AE06D@e1705> Message-ID: ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Saturday, February 02, 2013 4:10 AM Subject: Re: [FFmpeg-user] sync 2 live input streams > Madovsky madovsky.org> writes: > >> I'm trying to resync 2 live input live streams asynced due >> to filter complex overlay > > Is there a bug that we should know about? > >> with -itsoffset but unfortunately >> the audio from the second input doesn't follow the offset. > > Failing command line together with complete, uncut > console output missing / works fine here. > > Carl Eugen I thought it was a normal behaviour as filter_complex needed a headroom to overlay... so theorically are 2 same input live overlayed streams must run without delay ? for latency test I use the same live source stream: ================== ffmpeg -re -i "rtmp://server/app/stream" -re -i "rtmp://server/app/stream" -i back.png -map 0:1 -map 1:0 -filter_complex "[0:0]pad=682:450:21:105[left];[left][1:0]overlay=341:105[base];[base][2:0]overlay=0:main_h-20; [0:1][1:1]amerge=inputs=2" -r 24 -tune zerolatency -ar 44100 -b:a 192k -b:v 768k -shortest -y output.mkv ffmpeg version N-49519-g99eedfc Copyright (c) 2000-2013 the FFmpeg developers built on Feb 1 2013 16:33:20 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.100 / 3. 35.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x2d12680] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from rtmp://server/app/stream': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 rtmp server sent error [flv @ 0x2d35dc0] Estimating duration from bitrate, this may be inaccurate Input #1, flv, from rtmp://server/app/stream': Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc Stream #1:1: Audio: speex, 16000 Hz, mono, s16 Input #2, image2, from 'neterviewBack.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #2:0: Video: png, rgb24, 80x20, 25 tbr, 25 tbn, 25 tbc [Parsed_amerge_3 @ 0x2dea1e0] Input channel layouts overlap: output layout will be determined by the number of distinct input channels [libx264 @ 0x2d48020] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 0x2d48020] profile High, level 3.0 [libx264 @ 0x2d48020] 264 - core 129 r2245 bc13772 - 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=4 lookahead_threads=4 sliced_threads=1 slices=4 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=abr mbtree=0 bitrate=768 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'output.mkv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 682x450, q=-1--1, 768 kb/s, 1k tbn, 24 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, stereo, fltp, 192 kb/s Stream mapping: Stream #0:0 (flv) -> pad Stream #0:1 (libspeex) -> amerge:in0 Stream #1:0 (flv) -> overlay:overlay Stream #1:1 (libspeex) -> amerge:in1 Stream #2:0 (png) -> overlay:overlay overlay -> Stream #0:0 (libx264) amerge -> Stream #0:1 (ac3) Press [q] to stop, [?] for help Buffer queue overflow=18.0 size= 645kB time=00:00:07.66 bitrate= 689.9kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 6 times Buffer queue overflow=20.0 size= 869kB time=00:00:10.13 bitrate= 702.3kbits/s dup=0 drop=12 Buffer queue overflow=20.0 size= 1093kB time=00:00:12.50 bitrate= 716.3kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 14 times Buffer queue overflow=21.0 size= 1093kB time=00:00:12.58 bitrate= 711.5kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 23 times Buffer queue overflow=21.0 size= 1093kB time=00:00:12.58 bitrate= 711.5kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 23 times Buffer queue overflow=21.0 size= 1093kB time=00:00:12.58 bitrate= 711.5kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 11 times Buffer queue overflow=21.0 size= 1157kB time=00:00:13.05 bitrate= 726.2kbits/s dup=0 drop=12 Buffer queue overflow=19.0 size= 1157kB time=00:00:13.66 bitrate= 693.5kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 54 times Buffer queue overflow=19.0 size= 1157kB time=00:00:14.99 bitrate= 631.9kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 82 times Buffer queue overflow=19.0 size= 1157kB time=00:00:15.62 bitrate= 606.6kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 23 times Buffer queue overflow=19.0 size= 1157kB time=00:00:15.62 bitrate= 606.6kbits/s dup=0 drop=12 [Parsed_amerge_3 @ 0x2dea1e0] Buffer queue overflow Last message repeated 2 times frame= 243 fps= 14 q=19.0 Lsize= 1277kB time=00:00:15.62 bitrate= 669.4kbits/s dup=0 drop=12 video:967kB audio:304kB subtitle:0 global headers:0kB muxing overhead 0.438866% [libx264 @ 0x2d48020] frame I:1 Avg QP:20.57 size: 7868 [libx264 @ 0x2d48020] frame P:242 Avg QP:11.39 size: 4055 [libx264 @ 0x2d48020] mb I I16..4: 67.8% 22.8% 9.5% [libx264 @ 0x2d48020] mb P I16..4: 0.8% 1.7% 0.6% P16..4: 16.2% 6.8% 5.7% 0.0% 0.0% skip:68.2% [libx264 @ 0x2d48020] final ratefactor: 21.68 [libx264 @ 0x2d48020] 8x8 transform intra:51.6% inter:43.2% [libx264 @ 0x2d48020] coded y,uvDC,uvAC intra: 49.9% 80.0% 74.5% inter: 11.2% 21.8% 14.2% [libx264 @ 0x2d48020] i16 v,h,dc,p: 56% 26% 11% 8% [libx264 @ 0x2d48020] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 17% 28% 2% 7% 6% 6% 4% 6% [libx264 @ 0x2d48020] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 21% 19% 3% 6% 5% 4% 3% 2% [libx264 @ 0x2d48020] i8c dc,h,v,p: 53% 12% 29% 5% [libx264 @ 0x2d48020] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x2d48020] ref P L0: 60.9% 4.7% 23.6% 10.7% [libx264 @ 0x2d48020] kb/s:781.66 ================ the "Buffer queue overflow" is due when I stopped the live stream so it's normal I think. so oddly the latency comes from the left stream , not the right overlayed at the end of the filter_complex. there are about 2.4 seconds delay Thanks Franck From 23liam at googlemail.com Sat Feb 2 15:52:43 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Sat, 2 Feb 2013 14:52:43 +0000 Subject: [FFmpeg-user] join two video files portions In-Reply-To: <510CD9DB.7040602@deveritate.net> References: <510CD08E.40003@deveritate.net> <510CD9DB.7040602@deveritate.net> Message-ID: >It's ok also in more steps. >It could be: >1) determine actual duration of video file >2) subtract 5sec from it and use it as a start position for -ss > >If needed I could use a c++ prog for it. c++ would probably be overkill, you could just write it up in a bash/batch script invoking ffprobe and ffmpeg. Hint: ffprobe input.mp4 2>&1 | sed -n '/Duration:/s/.*: \([0-9]*:[0-9]*:[0-9]*\.[0-9]*\).*/\1/p' ...will get you the duration of a video, assuming your system has sed. Actually working this into a script is off-topic for this mailing list, of course. From battistel at gmail.com Sat Feb 2 16:49:41 2013 From: battistel at gmail.com (Massimo Battistel) Date: Sat, 2 Feb 2013 16:49:41 +0100 Subject: [FFmpeg-user] [ffmpeg-user] Remove/reduce streaming errors In-Reply-To: References: Message-ID: > > Are all the previous messages shown because ffplay > > is waiting for key frame? > > I guess so, yes. > > > How to make them disapper? > > There is a loglevel option that allows to silence > the executables. > > Thanks for quick answers. I also would like to reduce the stream latency/delay. I tried (with success) reducing the value for -analyzeduration, but with too low values I get these error: [mpegts @ 01f37fc0] Could not find codec parameters for stream 0 (Video: h264 ([27][0][0][0] / 0x001B)): unspecified size [mpegts @ 02587fc0] Could not find codec parameters for stream 1 (Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p): unspecified frame size Is there any general rule to find the limit? -rtbufsize seems to be ignored (and documentation says it has drawbacks). -fflags nobuffer seems to have no effect on ffplay. -tune zerolatency on stream generation reduced delay a little Summarizing: Stream generation: ffmpeg -re -f dshow -i video="Logitech QuickCam Communicate STX":audio="Logitech Mic (Communicate STX)" -vcodec libx264 -s 320x240 -g 15 -r 15 -q:v 1 -acodec libmp3lame -q:a 1 -tune zerolatency -f mpegts udp:// 192.168.0.27:1200 Stream view: ffplay udp://192.168.0.27:1200 -analyzeduration 1000 With these parameters, the delay is a bit more than 1 second. Is it possible to do better? Thanks, Massimo From cehoyos at ag.or.at Sat Feb 2 19:03:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 18:03:09 +0000 (UTC) Subject: [FFmpeg-user] sync 2 live input streams References: <7A3B0E60F4234F28B6ACCA85CE4AE06D@e1705> Message-ID: Madovsky madovsky.org> writes: > ffmpeg -re -i "rtmp://server/app/stream" -re -i > "rtmp://server/app/stream" Is there a reason why you are not using the split filter? Carl Eugen From ssaoying at gmail.com Sat Feb 2 19:09:16 2013 From: ssaoying at gmail.com (Tony Song) Date: Sun, 3 Feb 2013 02:09:16 +0800 Subject: [FFmpeg-user] How to get the bitrates of every second Message-ID: Hi all, It seems ffmpeg and ffprobe can only get a average bitrate of video files. Is there a way can get the bitrate of every second by using ffmpeg or ffprobe? Thanks. -- laugh out loud. From ffmpeg at frank.haefemeier.eu Sat Feb 2 19:15:28 2013 From: ffmpeg at frank.haefemeier.eu (Frank =?ISO-8859-1?Q?H=E4femeier?=) Date: Sat, 02 Feb 2013 19:15:28 +0100 Subject: [FFmpeg-user] Help: transform 'asyncts=first_pts=0' into new 'aresample' filter In-Reply-To: <20130130000926.GK9626@arborea> References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <20130120223814.GP9458@arborea> <1359254229.15233.5.camel@mordor.haefemeier.eu> <1359311748.15233.13.camel@mordor.haefemeier.eu> <20130130000926.GK9626@arborea> Message-ID: <1359828928.4788.2.camel@mordor.haefemeier.eu> Am Mittwoch, den 30.01.2013, 01:09 +0100 schrieb Stefano Sabatini: > On date Sunday 2013-01-27 19:35:48 +0100, Frank H?femeier wrote: > > Am Sonntag, den 27.01.2013, 09:53 +0000 schrieb Carl Eugen Hoyos: > > > Frank H?femeier frank.haefemeier.eu> writes: > > > > > > > The conclusion is, I need more tests, how to configure > > > > the filter to get the correct result for my issues. > > > > > > Sorry if I missed (or forgot) an email, but > > > did you explain the "issues"? > > [...] > > Michael recently added a first_pts option to aresample which should > have the same behavior as asyncts, please check it out and > report. Related documentation is in ffmpeg-resampler(1), documentation > suggestions and patches are welcome. I test the latest version from git head and the filter works as expected. Thanks very much. Bye Frank From ffmpeg at frank.haefemeier.eu Sat Feb 2 19:18:41 2013 From: ffmpeg at frank.haefemeier.eu (Frank =?ISO-8859-1?Q?H=E4femeier?=) Date: Sat, 02 Feb 2013 19:18:41 +0100 Subject: [FFmpeg-user] Help: transform 'asyncts=first_pts=0' into new 'aresample' filter In-Reply-To: References: <1358717795.22895.9.camel@mordor.haefemeier.eu> Message-ID: <1359829121.4788.5.camel@mordor.haefemeier.eu> Am Sonntag, den 20.01.2013, 22:08 +0000 schrieb Carl Eugen Hoyos: > Frank H?femeier frank.haefemeier.eu> writes: > > > the latest ffmpeg version does not support the filter > > 'asyncts'. It is deprecated and it is recommended to > > use 'aresample' instead. > > > > Who know how to transform the filter > > 'asyncts=first_pts=0' into the new one? Is it possible? > > I am not familiar enough and searching an experienced user. > > Please provide a testcase, ie an input file that needs a > filter together with a command line including > complete, uncut console output. I can now provide a sample file (45 MB) and some logs. Where can I upload it? Bye Frank From cehoyos at ag.or.at Sat Feb 2 19:58:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 18:58:30 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Help=3A_transform_=27asyncts=3Dfirst=5Fpt?= =?utf-8?q?s=3D0=27_into_new_=27aresample=27_filter?= References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> Message-ID: Frank H?femeier frank.haefemeier.eu> writes: > > > Who know how to transform the filter > > > 'asyncts=first_pts=0' into the new one? Is it possible? > > > I am not familiar enough and searching an experienced user. > > > > Please provide a testcase, ie an input file that needs a > > filter together with a command line including > > complete, uncut console output. > > I can now provide a sample file (45 MB) and some logs. > Where can I upload it? Either upload to http://www.datafilehost.com/ or read http://ffmpeg.org/bugreports.html (there is no hard filesize limit). Allow me to repeat that I still haven't seen a sample that allows to reproduce the problem that was described in this thread and elsewhere, ie a sample that needs async but does not work correctly with it. Carl Eugen From tylerbwear at gmail.com Fri Feb 1 23:55:09 2013 From: tylerbwear at gmail.com (tyler wear) Date: Fri, 1 Feb 2013 14:55:09 -0800 Subject: [FFmpeg-user] libavcodec size Message-ID: So I am making an arm compiled build of MiniDLNA, which is using ffmpeg. And I am running into an issue where the image I'm trying to load is way to large. I'm severely limited in how much space I have to work with due to other libraries that I am using. I have found the main culprit to be libavcodec, which is about 11mb.... This is huge compared with the fact that all my other libs for MiniDLNA together are less than 3mb. Any help in reducing this size, or at least better understanding why it is so large would be much appreciated. -- Tyler B. Wear From cehoyos at ag.or.at Sat Feb 2 20:21:48 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 19:21:48 +0000 (UTC) Subject: [FFmpeg-user] libavcodec size References: Message-ID: tyler wear gmail.com> writes: > I have found the main culprit to be libavcodec, > which is about 11mb.... > This is huge compared with the fact that all my > other libs for MiniDLNA together are less than 3mb. > Any help in reducing this size, or at least better > understanding why it is so large would be much > appreciated. How does your configure line look? Which features of libavcodec do you need? Carl Eugen From andyqos at ukfsn.org Sat Feb 2 21:47:59 2013 From: andyqos at ukfsn.org (Andy Furniss) Date: Sat, 02 Feb 2013 20:47:59 +0000 Subject: [FFmpeg-user] Decoding Raw YUV Frames From MPEG2 In-Reply-To: <1359809984.82283.YahooMailClassic@web120206.mail.ne1.yahoo.com> References: <1359809984.82283.YahooMailClassic@web120206.mail.ne1.yahoo.com> Message-ID: <510D7B7F.5020708@ukfsn.org> Stu wrote: > Andy > >> How far out are they? > > Frequency analysis graph shows three spikes, at values 16, 128 and 234. > But the full range is present, 0 accounting for over 32,000 samples and 255 for over 8,000. > > Is this what is usually passed to a hardware surface during playback? I guess so - but then I don't really know, so don't take anything I say as fact. I just looked at the results of ffmpeg -i foo.xyz foo.yuy and they seem quite variable. Nearly all go over/under a bit some quite a lot and they include 0 and 255, it does seem like this is what the source provides - eg. there are (almost) perfectly behaved streams like ftp://ftp.tek.com/tv/test/streams/Element/MPEG-Video/625/100b_040.m2v Which at least indicates that ffmpeg isn't doing anything strange. Others in that dir are quite variable even between the 420 and 422 (*_400.m2v) variants of the same stream. I've looked at broadcast mpeg2/dvd and h264 and the results usually include out of range values. Even a raw reference stream which has never been encoded like - ftp://vqeg.its.bldrdoc.gov/HDTV/SVT_exports/SVT_Abekas_Exports_/NewMobCal_Abekas_1080i2997_/ goes over/under (that's assuming it's meant to be tv levels - it looks a bit washed out playing full range) > If so, I would presume that these out of range values are clipped. I think that's a decision for display time - and clamped rather than clipped. > Can ffmpeg do this for me? I don't know and I don't know if it would be better to just leave alone. From mario753 at yahoo.com Sat Feb 2 22:07:09 2013 From: mario753 at yahoo.com (Stu) Date: Sat, 2 Feb 2013 13:07:09 -0800 (PST) Subject: [FFmpeg-user] Decoding Raw YUV Frames From MPEG2 In-Reply-To: <510D7B7F.5020708@ukfsn.org> Message-ID: <1359839229.3722.YahooMailClassic@web120201.mail.ne1.yahoo.com> Andy Alright, was concerned as I wanted to resize the stream and thought that it might lead to more out of spec variance. Thanks for looking into this for me. :) Regards -------- Stu --- On Sat, 2/2/13, Andy Furniss wrote: > From: Andy Furniss > Subject: Re: [FFmpeg-user] Decoding Raw YUV Frames From MPEG2 > To: "FFmpeg user questions" > Cc: "Stu" > Date: Saturday, 2 February, 2013, 20:47 > Stu wrote: > > Andy > > > >> How far out are they? > > > > Frequency analysis graph shows three spikes, at values > 16, 128 and 234. > > But the full range is present, 0 accounting for over > 32,000 samples and 255 for over 8,000. > > > > Is this what is usually passed to a hardware surface > during playback? > > I guess so - but then I don't really know, so don't take > anything I say as fact. > > I just looked at the results of ffmpeg -i foo.xyz foo.yuy > and they seem quite variable. > > Nearly all go over/under a bit some quite a lot and they > include 0 and 255, it does seem like this is what the source > provides - eg. there are (almost) perfectly behaved streams > like > > ftp://ftp.tek.com/tv/test/streams/Element/MPEG-Video/625/100b_040.m2v > > Which at least indicates that ffmpeg isn't doing anything > strange. > > Others in that dir are quite variable even between the 420 > and 422 (*_400.m2v) variants of the same stream. > > I've looked at broadcast mpeg2/dvd and h264 and the results > usually include out of range values. > > Even a raw reference stream which has never been encoded > like - > > ftp://vqeg.its.bldrdoc.gov/HDTV/SVT_exports/SVT_Abekas_Exports_/NewMobCal_Abekas_1080i2997_/ > > goes over/under (that's assuming it's meant to be tv levels > - it looks a bit washed out playing full range) > > > If so, I would presume that these out of range values > are clipped. > > I think that's a decision for display time - and clamped > rather than clipped. > > > Can ffmpeg do this for me? > > I don't know and I don't know if it would be better to just > leave alone. > > From ffmpeg at frank.haefemeier.eu Sat Feb 2 22:14:13 2013 From: ffmpeg at frank.haefemeier.eu (Frank =?ISO-8859-1?Q?H=E4femeier?=) Date: Sat, 02 Feb 2013 22:14:13 +0100 Subject: [FFmpeg-user] Help: transform 'asyncts=first_pts=0' into new 'aresample' filter In-Reply-To: References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> Message-ID: <1359839653.4788.15.camel@mordor.haefemeier.eu> Am Samstag, den 02.02.2013, 18:58 +0000 schrieb Carl Eugen Hoyos: > Frank H?femeier frank.haefemeier.eu> writes: > > > > > Who know how to transform the filter > > > > 'asyncts=first_pts=0' into the new one? Is it possible? > > > > I am not familiar enough and searching an experienced user. > > > > > > Please provide a testcase, ie an input file that needs a > > > filter together with a command line including > > > complete, uncut console output. > > > > I can now provide a sample file (45 MB) and some logs. > > Where can I upload it? > > Either upload to http://www.datafilehost.com/ or read > http://ffmpeg.org/bugreports.html (there is no hard > filesize limit). > > Allow me to repeat that I still haven't seen a sample that > allows to reproduce the problem that was described in > this thread and elsewhere, ie a sample that needs async > but does not work correctly with it. Hi Carl, I am confused. Sorry, but I don't understand the sentence below. You asked previously for a testcase with ie an input sample. This is what I want to provide and asked for a place to upload. And at all, it is not a bug what I asked original. I asked for help to specify a filter which create same or similar result as the now deprecated filter asyntc. The sample should show the problem. But with the latest version of ffmpeg there is now the same parameter available for the filter aresample and with this I can fix my snyc problems. Bye Frank From cehoyos at ag.or.at Sat Feb 2 22:31:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 21:31:41 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Help=3A_transform_=27asyncts=3Dfirst=5Fpt?= =?utf-8?q?s=3D0=27_into_new_=27aresample=27_filter?= References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> <1359839653.4788.15.camel@mordor.haefemeier.eu> Message-ID: Frank H?femeier frank.haefemeier.eu> writes: > I am confused. Sorry, but I don't understand the sentence below. > You asked previously for a testcase with ie an input sample. This is > what I want to provide and asked for a place to upload. I just wanted to explain how anxiously I am awaiting a sample. Carl Eugen From bbutscheidt at yahoo.de Sat Feb 2 23:00:17 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sat, 2 Feb 2013 22:00:17 +0000 (GMT) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? Message-ID: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> Hello, I tried to find a way to reverse the PAL Speed up used by television broadcasts back to ntsc film using recent ffmpeg. The HD-Television stream like the one used in the example given below are actually broadcast with 50fps. The following command shows what I sorted out so far. The results were pretty convincing if I wouldn't need to add an offset of about 300ms to have the resulting video in sync with audio. The offset seems to be the same regardless of the source (different television stations or even DVD material) or the audio codec used (I tested with ac3 and libmp3). So I'd like to know if anyone has an opinion if what I am doing should have a chance of being successful at all and why this offset (+0.300/TB e.g.) is needed with using the audio filters asetpts and aresample. What, if needed at all, would be the right value? Here as already announced, a complete, uncut output: /extern07/ffmpeg_neu/ffmpeg/ffmpeg -y -i Sport_HD.ts -vsync 1 -map 0:0 -vcodec libx264 -preset veryfast -x264opts crf=12:videoformat=undef:force-cfr -map 0:4,0:0 -acodec ac3 -ab 448k -filter:v setpts=25025/24000*PTS,hqdn3d,delogo=60:48:126:46:5 -filter:a asetpts=25025/24000*PTS+0.300/TB,aresample=48000:async=1:min_comp=0.01:comp_duration=1:max_soft_comp=100000000:min_hard_comp=0.3 -f matroska -r 24000/1001 Sport_HD_ntsc.mkv ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers ? built on Jan 26 2013 19:21:36 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) ? configuration: --enable-avresample --enable-gpl --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r --enable-libsoxr --cpu=amd64 --arch=x86_64 ? libavutil????? 52. 16.100 / 52. 16.100 ? libavcodec???? 54. 91.100 / 54. 91.100 ? libavformat??? 54. 61.104 / 54. 61.104 ? libavdevice??? 54.? 3.102 / 54.? 3.102 ? libavfilter???? 3. 33.101 /? 3. 33.101 ? libswscale????? 2.? 2.100 /? 2.? 2.100 ? libswresample?? 0. 17.102 /? 0. 17.102 ? libpostproc??? 52.? 2.100 / 52.? 2.100 [mpegts @ 0x23be420] Stream #5: not enough frames to estimate rate; consider increasing probesize [NULL @ 0x23c5460] start time is not set in estimate_timings_from_pts?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? [mpegts @ 0x23be420] PES packet size mismatch?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??? Last message repeated 3 times Input #0, mpegts, from 'Sport_HD.ts': ? Duration: 00:01:54.01, start: 14959.428778, bitrate: 14382 kb/s ? Program 132 ??? Stream #0:0[0x17de]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc ??? Stream #0:1[0x17e8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s ??? Stream #0:2[0x17e9](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s ??? Stream #0:3[0x17eb](mul): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s ??? Stream #0:4[0x17ea](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s ??? Stream #0:5[0x17f3](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired) [libx264 @ 0x2ca4060] using SAR=1/1 [libx264 @ 0x2ca4060] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0x2ca4060] profile High, level 3.1 [libx264 @ 0x2ca4060] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=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 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=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=12.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'Sport_HD_ntsc.mkv': ? Metadata: ??? encoder???????? : Lavf54.61.104 ??? Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1k tbn, 23.98 tbc ??? Stream #0:1(deu): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (h264 -> libx264) ? Stream #0:4 -> #0:1 (ac3 -> ac3) Press [q] to stop, [?] for help PES packet size mismatch.0 size=? 137059kB time=00:01:58.36 bitrate=9486.0kbits/s dup=12 drop=2827??? [ac3 @ 0x23c4a80] incomplete frame frame= 2850 fps= 13 q=-1.0 Lsize=? 138583kB time=00:01:58.78 bitrate=9557.3kbits/s dup=12 drop=2831??? video:132054kB audio:6480kB subtitle:0 global headers:0kB muxing overhead 0.034916% [libx264 @ 0x2ca4060] frame I:15??? Avg QP: 9.57? size:251800 [libx264 @ 0x2ca4060] frame P:1024? Avg QP:12.64? size: 90507 [libx264 @ 0x2ca4060] frame B:1811? Avg QP:16.87? size: 21406 [libx264 @ 0x2ca4060] consecutive B-frames:? 6.5% 14.7% 35.2% 43.6% [libx264 @ 0x2ca4060] mb I? I16..4:? 5.3%? 8.7% 85.9% [libx264 @ 0x2ca4060] mb P? I16..4:? 2.6%? 1.2%? 1.7%? P16..4: 46.3% 20.6% 23.9%? 0.0%? 0.0%??? skip: 3.8% [libx264 @ 0x2ca4060] mb B? I16..4:? 0.2%? 0.1%? 0.1%? B16..8: 21.9% 11.5%? 4.5%? direct:20.4%? skip:41.1%? L0:22.9% L1:35.3% BI:41.7% [libx264 @ 0x2ca4060] 8x8 transform intra:19.5% inter:21.7% [libx264 @ 0x2ca4060] coded y,uvDC,uvAC intra: 76.0% 76.3% 63.6% inter: 39.5% 28.8% 11.1% [libx264 @ 0x2ca4060] i16 v,h,dc,p: 41% 32% 21%? 6% [libx264 @ 0x2ca4060] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 29% 28%? 2%? 5%? 4%? 5%? 3%? 5% [libx264 @ 0x2ca4060] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 26% 19%? 2%? 8%? 6%? 6%? 4%? 7% [libx264 @ 0x2ca4060] i8c dc,h,v,p: 47% 28% 17%? 7% [libx264 @ 0x2ca4060] Weighted P-Frames: Y:1.1% UV:1.1% [libx264 @ 0x2ca4060] kb/s:9100.66 From aruForum10 at deveritate.net Sat Feb 2 23:12:37 2013 From: aruForum10 at deveritate.net (frank10) Date: Sat, 02 Feb 2013 23:12:37 +0100 Subject: [FFmpeg-user] join two video files portions In-Reply-To: References: <510CD08E.40003@deveritate.net> <510CD9DB.7040602@deveritate.net> Message-ID: <510D8F55.90001@deveritate.net> > c++ would probably be overkill, you could just write it up in a bash/batch > script invoking ffprobe and ffmpeg. > > Hint: > ffprobe input.mp4 2>&1 | sed -n '/Duration:/s/.*: > \([0-9]*:[0-9]*:[0-9]*\.[0-9]*\).*/\1/p' I said c++ because I must call ffprobe/ffmpeg from there. I think with system() or ShellExecute(). Are there some tutorials with c++ and windows? I don't know about sed (I must use it on Windows), but I tried this line on the console: ffprobe -show_streams -count_frames -pretty Blob.avi and I got a Duration = N/A . The problem is the file is opened and recording from webcam... In fact, when recording is stopped, I get correct duration. Anyway I get: nb_frames =N/A nb_read_frames = 206 maybe I could determine the minutes and seconds with frames/fps. But I'm a bit unsure because there could be lost frames or variable fps due to the webcam's stream... it's difficult having always constant fps, I think. Is there some other way of getting directly the duration on file recording? From cehoyos at ag.or.at Sat Feb 2 23:22:18 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 22:22:18 +0000 (UTC) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> Message-ID: Bernd Butscheidt yahoo.de> writes: > /extern07/ffmpeg_neu/ffmpeg/ffmpeg -y -i Sport_HD.ts -vsync 1 > -map 0:0 -vcodec libx264 -preset veryfast -x264opts > crf=12:videoformat=undef:force-cfr -map 0:4,0:0 -acodec ac3 > -ab 448k -filter:v setpts=25025/24000*PTS,hqdn3d,delogo=60:48:126:46:5 > -filter:a asetpts=25025/24000*PTS+0.300 > TB,aresample=48000:async=1:min_comp=0.01:comp_duration=1: > max_soft_comp=100000000:min_hard_comp=0.3 > -f matroska -r 24000/1001 Sport_HD_ntsc.mkv Why do you need the setpts, the asetpts and the aresample filter and the extended map option in your example? Alternatively, please provide a sample. Carl Eugen From ffmpeg at frank.haefemeier.eu Sat Feb 2 23:41:59 2013 From: ffmpeg at frank.haefemeier.eu (Frank =?ISO-8859-1?Q?H=E4femeier?=) Date: Sat, 02 Feb 2013 23:41:59 +0100 Subject: [FFmpeg-user] Help: transform 'asyncts=first_pts=0' into new 'aresample' filter In-Reply-To: References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> <1359839653.4788.15.camel@mordor.haefemeier.eu> Message-ID: <1359844919.4788.25.camel@mordor.haefemeier.eu> Am Samstag, den 02.02.2013, 21:31 +0000 schrieb Carl Eugen Hoyos: > Frank H?femeier frank.haefemeier.eu> writes: > > > I am confused. Sorry, but I don't understand the sentence below. > > You asked previously for a testcase with ie an input sample. This is > > what I want to provide and asked for a place to upload. > > I just wanted to explain how anxiously I am > awaiting a sample. Now the time is comming to get the long awaited sample:-) The sample itself is in sync, but after converting it into h.264/aac in mp4 container the audio is out of sync. You can see and hear it if you are around 20s when you see people talk. As I currently understand, the first approx. 0.30s are the problem, because I found out during my tests (to get the sample), if you skip the first 0.40s or so (using -ss 00:00:00.40 after -i parameter) the audio is in sync without using a filter. 30s video sample: http://www.datafilehost.com/download-c12482c8.html Console output: http://www.datafilehost.com/download-cc9722d7.html Hope it helps. Bye Frank From cehoyos at ag.or.at Sun Feb 3 00:01:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 2 Feb 2013 23:01:20 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Help=3A_transform_=27asyncts=3Dfirst=5Fpt?= =?utf-8?q?s=3D0=27_into_new_=27aresample=27_filter?= References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> <1359839653.4788.15.camel@mordor.haefemeier.eu> <1359844919.4788.25.camel@mordor.haefemeier.eu> Message-ID: Frank H?femeier frank.haefemeier.eu> writes: > The sample itself is in sync, but after converting it into h.264/aac in > mp4 container the audio is out of sync. You can see and hear it if you > are around 20s when you see people talk. > As I currently understand, the first approx. 0.30s are the problem, > because I found out during my tests (to get the sample), if you skip the > first 0.40s or so (using -ss 00:00:00.40 after -i parameter) the audio > is in sync without using a filter. > > 30s video sample: > http://www.datafilehost.com/download-c12482c8.html I tested the following command lines: $ ffmpeg -async 1 -i video-sample.ts -qscale 2 out.avi $ ffmpeg -async 1 -i video-sample.ts -qscale 2 -vcodec mpeg4 -strict -2 out.mov Both out.avi and out.mov play in-sync, both when encoded with current FFmpeg and an older version. Thank you for the sample, Carl Eugen From 23liam at googlemail.com Sun Feb 3 01:04:11 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Sun, 3 Feb 2013 00:04:11 +0000 Subject: [FFmpeg-user] join two video files portions In-Reply-To: <510D8F55.90001@deveritate.net> References: <510CD08E.40003@deveritate.net> <510CD9DB.7040602@deveritate.net> <510D8F55.90001@deveritate.net> Message-ID: >and I got a Duration = N/A . The problem is the file is opened and recording from >webcam... >In fact, when recording is stopped, I get correct duration. Of course, ffprobe won't be able to get the duration of a file that is in the process of being created. That information can't be known, because it will be constantly changing. Or am I misunderstanding what you are asking for? From ffmpeg at frank.haefemeier.eu Sun Feb 3 01:12:09 2013 From: ffmpeg at frank.haefemeier.eu (Frank =?ISO-8859-1?Q?H=E4femeier?=) Date: Sun, 03 Feb 2013 01:12:09 +0100 Subject: [FFmpeg-user] Help: transform 'asyncts=first_pts=0' into new 'aresample' filter In-Reply-To: References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> <1359839653.4788.15.camel@mordor.haefemeier.eu> <1359844919.4788.25.camel@mordor.haefemeier.eu> Message-ID: <1359850329.4788.29.camel@mordor.haefemeier.eu> Am Samstag, den 02.02.2013, 23:01 +0000 schrieb Carl Eugen Hoyos: > Frank H?femeier frank.haefemeier.eu> writes: > > > The sample itself is in sync, but after converting it into h.264/aac in > > mp4 container the audio is out of sync. You can see and hear it if you > > are around 20s when you see people talk. > > As I currently understand, the first approx. 0.30s are the problem, > > because I found out during my tests (to get the sample), if you skip the > > first 0.40s or so (using -ss 00:00:00.40 after -i parameter) the audio > > is in sync without using a filter. > > > > 30s video sample: > > http://www.datafilehost.com/download-c12482c8.html > > I tested the following command lines: > $ ffmpeg -async 1 -i video-sample.ts -qscale 2 out.avi > $ ffmpeg -async 1 -i video-sample.ts -qscale 2 -vcodec mpeg4 -strict -2 out.mov > > Both out.avi and out.mov play in-sync, both when encoded > with current FFmpeg and an older version. What can I learn from your test? > > Thank you for the sample, Carl Eugen You are welcome. -- Frank From cehoyos at ag.or.at Sun Feb 3 01:21:55 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 00:21:55 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Help=3A_transform_=27asyncts=3Dfirst=5Fpt?= =?utf-8?q?s=3D0=27_into_new_=27aresample=27_filter?= References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> <1359839653.4788.15.camel@mordor.haefemeier.eu> <1359844919.4788.25.camel@mordor.haefemeier.eu> <1359850329.4788.29.camel@mordor.haefemeier.eu> Message-ID: Frank H?femeier frank.haefemeier.eu> writes: > > > 30s video sample: > > > http://www.datafilehost.com/download-c12482c8.html > > > > I tested the following command lines: > > $ ffmpeg -async 1 -i video-sample.ts -qscale 2 out.avi > > $ ffmpeg -async 1 -i video-sample.ts -qscale 2 -vcodec mpeg4 > > -strict -2 out.mov > > > > Both out.avi and out.mov play in-sync, both when encoded > > with current FFmpeg and an older version. > > What can I learn from your test? ffmpeg -async 1 has been the recommended way of fixing the A/V desync problems you are seeing with your input sample for several years (long before there was a aresample or asyncts filter). It still works fine and - afaict - there is nothing to "transform". (Your sample makes me believe that theoretically there are samples that will not work with -async 1 but without such samples to test, this problem is very, very difficult to fix as I hope everybody will understand.) Carl Eugen From subscriptions at znet.ca Sun Feb 3 02:37:15 2013 From: subscriptions at znet.ca (Subscriptions) Date: Sat, 02 Feb 2013 20:37:15 -0500 Subject: [FFmpeg-user] =?utf-8?q?ATSC_TS_live_transcode_on_DL360_G4=3F?= In-Reply-To: References: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> Message-ID: Hello Hank, Tom, and thanks for your advice. I did record half an hour ATSC mpeg2 stream into a file and tried to transcode it file-to-file. I also took the 'nice' out as anyway there is nothing else running, no need to prioritize this process. Results are below. Input #0, mpegts, from 'out.ts': Duration: 00:55:52.35, start: 16712.311489, bitrate: 15655 kb/s Program 1 Stream #0:0[0x44](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s16, 384 kb/s Stream #0:1[0x45]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 15000 kb/s, 59.94 fps, 60 tbr, 90k tbn, 119.88 tbc using cpu capabilities: MMX2 SSE2 SSE3 Cache64 profile Constrained Baseline, level 3.2 muxrate VBR, pcr every 6 pkts, sdt every 200, pat/pmt every 40 pkt Output #0, mpegts, to 'video.h264': Metadata: encoder : Lavf54.29.104 Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 60 tbc Stream #0:1(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 384 kb/s Results: A. -preset fast: ffmpeg -re -i out.ts -acodec copy -vcodec libx264 -preset fast -s:v hd720 -f mpegts video.h264 top - 16:57:50 up 23 days, 3:33, 4 users, load average: 5.81, 4.54, 2.34 B. -preset ultrafast: ffmpeg -re -i out.ts -acodec copy -vcodec libx264 -preset ultrafast -s:v hd720 -f mpegts video.h264 top - 17:03:24 up 23 days, 3:39, 4 users, load average: 4.16, 4.18, 2.84 Computer is DL 360 G4 at 3.4Ghz. As seen we are 'almost there' with -preset ultrafast, just slightly on the other side of the border. This is quite bad, as I need to transcode ~10 channels, and DL360 G4 is inexpensive and fast 64bit server. No luck, however. I did try another ATSC channel, same result as above. So, it really looks that 2 Xeon 64 bit @3.4Ghz can not transcode real-time ATSC ~20Mb/s to h264. If you wish I can put the file for download for yourself to test (6GB). All the best, george Le 2013-02-01 10:00, Henk D. Schoneveld a ?crit?: > On Feb 1, 2013, at 3:20 PM, Subscriptions > wrote: > >> Hello again, >> >> It simply looks that 2 double-core Xeon at 3.4Ghz (HP DL 360) can >> not transcode mpeg2 ts live stream coming at ~20 Mb/s to h264. Even >> with 'preset ultrafast' the load goes above 4 and the buffer overruns. >> The minimal processor that is able to do this up to now is a single >> Phenom 2 X6 Black at 3.4 Ghz, and it sometimes gets with load ~5 on >> it's six cores. > It looks a bit odd to me. I can encode 2 DVB-S 1080i h264-based > recordings to 720p with a 4-core i5-2500k not over clocked. > If you remove the nice statement and add -re statement before your > source like > ffmpeg -re -i udp etc should do the job. BTW. I do my encodings from > a file, not from a stream. Maybe an intermediate file will help, > although it adds a slight delay. > > Henk >> >> Thanks, George >> >> >> Hello, >> >> I want to reduce bit rate of ~18Mb/s ATSC live stream which I >> capture over the air with HDHomerun box, and it looks that an HP DL360 >> G4 server (two 64 bit double core Xeon processors) can not do the job. >> Is there some way to make this functional? My idea is to reduce the >> stream from 18Mb/s to about 4-5Mb/s at hd720. The problem is that >> processor load goes over 4 and starts to overrun the buffer. Is there >> a way to make the transcoding somehow work with x264 on that computer? >> >> Thanks, George. >> >> nice -n -20 ffmpeg -i >> "udp://239.255.254.1:1234?fifo_size=6000000&overrun_nonfatal=1&" >> -acodec copy -c:v libx264 -crf 22 -preset fast -f mpegts >> udp://239.255.254.240:1234 >> >> ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers >> built on Oct 16 2012 09:46:44 with gcc 4.7 (Debian 4.7.2-4) >> >> Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), >> yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 15000 kb/s, 63.81 fps, 59.94 >> tbr, 90k tbn, 119.88 tbc >> >> using cpu capabilities: MMX2 SSE2 SSE3 Cache64 >> Output #0, mpegts, to 'udp://239.255.254.240:1234': >> Metadata: >> encoder : Lavf54.29.104 >> Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], >> q=-1--1, 90k tbn, 59.94 tbc >> Stream #0:1(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, >> 5.1(side), 384 kb/s >> >> >> Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie >> %Cpu0 : 96.3 us, 1.0 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 2.3 >> si, 0.0 st >> %Cpu1 : 95.7 us, 1.0 sy, 0.0 ni, 1.0 id, 0.0 wa, 0.0 hi, 2.3 >> si, 0.0 st >> %Cpu2 : 97.7 us, 1.3 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 0.7 >> si, 0.0 st >> %Cpu3 : 96.0 us, 0.7 sy, 0.0 ni, 2.0 id, 0.0 wa, 0.0 hi, 1.3 >> si, 0.0 st >> KiB Mem: 3995312 total, 2685548 used, 1309764 free, 74516 >> buffers >> >> processor : 3 >> vendor_id : GenuineIntel >> cpu family : 15 >> model : 4 >> model name : Intel(R) Xeon(TM) CPU 3.40GHz >> >> _______________________________________________ >> 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 theindianmaiden at gmail.com Sun Feb 3 02:45:59 2013 From: theindianmaiden at gmail.com (Indian Maiden) Date: Sat, 2 Feb 2013 17:45:59 -0800 Subject: [FFmpeg-user] Adding Borders In-Reply-To: References: <20130130104949.366bad78@lrcd.com> <20130130124831.1328dd3f@lrcd.com> Message-ID: That worked! Thanks everybody for your help and instruction On Thu, Jan 31, 2013 at 12:43 PM, Liam Condron-Farnos <23liam at googlemail.com > wrote: > Use [0:v] or [0:0] instead of [in] for complex filtergraphs (since > filter_complex can take an arbitrary number of inputs, [in] is ambiguous). > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From infos at madovsky.org Sun Feb 3 05:26:06 2013 From: infos at madovsky.org (Madovsky) Date: Sat, 2 Feb 2013 23:26:06 -0500 Subject: [FFmpeg-user] speex to ac3 in mkv Message-ID: <96DD0751D97149938EE93D853E082309@e1705> I'm trying to convert the audio of an live rtmp but facing to cut every 5/8 sec and sample rate doesn't seems to be ok even if I use the same of speex ffmpeg -i rtmp://server/app/live -acodec -ar 48000 -b:a 128k -vcodec copy -y output.mkv However I'm sure that the live stream itself doesn't have audio cut... Thanks Franck From infos at madovsky.org Sun Feb 3 05:28:14 2013 From: infos at madovsky.org (Madovsky) Date: Sat, 2 Feb 2013 23:28:14 -0500 Subject: [FFmpeg-user] speex to ac3 in mkv References: <96DD0751D97149938EE93D853E082309@e1705> Message-ID: <467B064346044D83A1F59CBB0A6EC330@e1705> > I'm trying to convert the audio of an live rtmp > but facing to cut every 5/8 sec and sample rate doesn't seems to be ok > even if I use the same of speex > > ffmpeg -i rtmp://server/app/live -acodec -ar 48000 -b:a 128k -vcodec > copy -y output.mkv > > However I'm sure that the live stream itself doesn't have audio cut... > > Thanks > > Franck sorry ffmpeg -i rtmp://server/app/live -acodec ac3 -ar 48000 -b:a 128k -vcodec copy -y output.mkv From cehoyos at ag.or.at Sun Feb 3 09:22:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 08:22:49 +0000 (UTC) Subject: [FFmpeg-user] speex to ac3 in mkv References: <96DD0751D97149938EE93D853E082309@e1705> <467B064346044D83A1F59CBB0A6EC330@e1705> Message-ID: Madovsky madovsky.org> writes: > ffmpeg -i rtmp://server/app/live -acodec ac3 -ar 48000 > -b:a 128k -vcodec copy -y output.mkv Please always add complete, uncut console output when posting failing command lines here. Do the following also fail? $ ffmpeg -i rtmp://server/app/live -ar 48000 out.ac3 $ ffmpeg -i rtmp://server/app/live -ar 48000 out.mp2 Carl Eugen From cehoyos at ag.or.at Sun Feb 3 09:24:46 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 08:24:46 +0000 (UTC) Subject: [FFmpeg-user] ATSC TS live transcode on DL360 G4? References: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> Message-ID: Subscriptions znet.ca> writes: > Results are below. > > Input #0, mpegts, from 'out.ts': Please always post the complete, uncut console output (at least the first 50 and the last 50 lines), never post an extract of the console output. Carl Eugen From bbutscheidt at yahoo.de Sun Feb 3 11:08:35 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sun, 3 Feb 2013 10:08:35 +0000 (GMT) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? In-Reply-To: References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> Message-ID: <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> >________________________________ > From: Carl Eugen Hoyos >To: ffmpeg-user at ffmpeg.org >Sent: Saturday, February 2, 2013 11:22 PM >Subject: Re: [FFmpeg-user] Proper way to reverse PAL Speed up? > >Why do you need the setpts, the asetpts and the aresample >filter and the extended map option in your example? setpts/ asetpts: This is supposed to to the trick of slowing down the video to the desired frame rate of 23.976 fps. I don't want to skip frames but to alter the length of video and audio, hence to reverse PAL Speedup. aresample: Without it, the sound wasn't sound any more. I just get some broken pieces, silence, broken pieces and so on. Also I understood that aresample is the replacement for deprecated async - option ? extended map option: They are still there because of previous tries, but as far as I see they have no effect here. >Alternatively, please provide a sample. I uploaded a cut version of the source file - the original was 200MB. I choose this one although it is no film material (which means even myself wouldn't apply a speed down to ntsc ..) but because of the speakers one can try to catch the sync/desync the best of all samples I have. I also uploaded two resulting examples. Source file: http://www.datafilehost.com/download-4ab143a8.html Output without offset: http://www.datafilehost.com/download-1be30cba.html Output with offset: http://www.datafilehost.com/download-e25ee497.html Here as described commandline and output, this time without extended mapping: /extern07/ffmpeg_neu/ffmpeg/ffmpeg -y -i Sport_HD_CUT.ts -vsync 1 -map 0:0 -vcodec libx264 -preset veryfast -x264opts crf=12:videoformat=undef:force-cfr -map 0:4 -acodec ac3 -ab 448k -filter:v setpts=25025/24000*PTS,hqdn3d,delogo=60:48:126:46:5 -filter:a asetpts=25025/24000*PTS+0.0/TB,aresample=48000:async=1:min_comp=0.01:comp_duration=1:max_soft_comp=100000000:min_hard_comp=0.3 -f matroska -r 24000/1001 Sport_HD_CUT_ntsc_0.mkv ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers ? built on Jan 26 2013 19:21:36 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) ? configuration: --enable-avresample --enable-gpl --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r --enable-libsoxr --cpu=amd64 --arch=x86_64 ? libavutil????? 52. 16.100 / 52. 16.100 ? libavcodec???? 54. 91.100 / 54. 91.100 ? libavformat??? 54. 61.104 / 54. 61.104 ? libavdevice??? 54.? 3.102 / 54.? 3.102 ? libavfilter???? 3. 33.101 /? 3. 33.101 ? libswscale????? 2.? 2.100 /? 2.? 2.100 ? libswresample?? 0. 17.102 /? 0. 17.102 ? libpostproc??? 52.? 2.100 / 52.? 2.100 [mpegts @ 0x2b1f420] Stream #5: not enough frames to estimate rate; consider increasing probesize [NULL @ 0x2b26460] start time is not set in estimate_timings_from_pts [mpegts @ 0x2b1f420] PES packet size mismatch Input #0, mpegts, from 'Sport_HD_CUT.ts': ? Duration: 00:00:58.07, start: 14960.027511, bitrate: 14038 kb/s???????????????????????????????????????????????????????? ? Program 132???????????????????????????????????????????????????????????????????????????????????????????????????????????? ??? Stream #0:0[0x17de]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc??????????????????????????????????????????????????????????????????????????????????????????????????????? ??? Stream #0:1[0x17e8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s??????????????????????? ??? Stream #0:2[0x17e9](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s??????????????????????? ??? Stream #0:3[0x17eb](mul): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s??????????????????????? ??? Stream #0:4[0x17ea](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s??????????????????????? ??? Stream #0:5[0x17f3](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)?????????????????????????? [libx264 @ 0x2b47ee0] using SAR=1/1?????????????????????????????????????????????????????????????????????????????????????? [libx264 @ 0x2b47ee0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ?????????????????????????????????????????????????????? [libx264 @ 0x2b47ee0] profile High, level 3.1 [libx264 @ 0x2b47ee0] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=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 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=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=12.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'Sport_HD_CUT_ntsc_0.mkv': ? Metadata: ??? encoder???????? : Lavf54.61.104 ??? Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1k tbn, 23.98 tbc ??? Stream #0:1(deu): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (h264 -> libx264) ? Stream #0:4 -> #0:1 (ac3 -> ac3) Press [q] to stop, [?] for help frame= 1455 fps= 12 q=-1.0 Lsize=?? 64568kB time=00:01:00.60 bitrate=8728.0kbits/s dup=0 drop=1448??? video:61232kB audio:3311kB subtitle:0 global headers:0kB muxing overhead 0.038823% [libx264 @ 0x2b47ee0] frame I:8???? Avg QP:10.14? size:226948 [libx264 @ 0x2b47ee0] frame P:460?? Avg QP:12.64? size: 85182 [libx264 @ 0x2b47ee0] frame B:987?? Avg QP:16.55? size: 21988 [libx264 @ 0x2b47ee0] consecutive B-frames:? 6.7%? 1.4% 21.9% 70.1% [libx264 @ 0x2b47ee0] mb I? I16..4:? 3.2%? 9.2% 87.6% [libx264 @ 0x2b47ee0] mb P? I16..4:? 1.1%? 1.1%? 1.9%? P16..4: 45.1% 21.4% 26.0%? 0.0%? 0.0%??? skip: 3.4% [libx264 @ 0x2b47ee0] mb B? I16..4:? 0.2%? 0.1%? 0.1%? B16..8: 22.9% 11.7%? 4.5%? direct:20.2%? skip:40.2%? L0:23.0% L1:33.7% BI:43.3% [libx264 @ 0x2b47ee0] 8x8 transform intra:23.1% inter:25.0% [libx264 @ 0x2b47ee0] coded y,uvDC,uvAC intra: 86.0% 82.1% 65.9% inter: 38.4% 28.2% 8.1% [libx264 @ 0x2b47ee0] i16 v,h,dc,p: 34% 34% 24%? 8% [libx264 @ 0x2b47ee0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 29% 26%? 2%? 5%? 4%? 5%? 4%? 6% [libx264 @ 0x2b47ee0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 25% 17%? 3%? 9%? 6%? 7%? 5%? 7% [libx264 @ 0x2b47ee0] i8c dc,h,v,p: 43% 29% 18%? 9% [libx264 @ 0x2b47ee0] Weighted P-Frames: Y:0.4% UV:0.2% [libx264 @ 0x2b47ee0] kb/s:8265.67 ============== /extern07/ffmpeg_neu/ffmpeg/ffmpeg -y -i Sport_HD_CUT.ts -vsync 1 -map 0:0 -vcodec libx264 -preset veryfast -x264opts crf=12:videoformat=undef:force-cfr -map 0:4 -acodec ac3 -ab 448k -filter:v setpts=25025/24000*PTS,hqdn3d,delogo=60:48:126:46:5 -filter:a asetpts=25025/24000*PTS+0.250/TB,aresample=48000:async=1:min_comp=0.01:comp_duration=1:max_soft_comp=100000000:min_hard_comp=0.3 -f matroska -r 24000/1001 Sport_HD_CUT_ntsc_250.mkv ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers ? built on Jan 26 2013 19:21:36 with gcc 4.6.3 (Gentoo Hardened 4.6.3 p1.3, pie-0.5.2) ? configuration: --enable-avresample --enable-gpl --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libfaac --enable-frei0r --enable-libsoxr --cpu=amd64 --arch=x86_64 ? libavutil????? 52. 16.100 / 52. 16.100 ? libavcodec???? 54. 91.100 / 54. 91.100 ? libavformat??? 54. 61.104 / 54. 61.104 ? libavdevice??? 54.? 3.102 / 54.? 3.102 ? libavfilter???? 3. 33.101 /? 3. 33.101 ? libswscale????? 2.? 2.100 /? 2.? 2.100 ? libswresample?? 0. 17.102 /? 0. 17.102 ? libpostproc??? 52.? 2.100 / 52.? 2.100 [mpegts @ 0x15b6420] Stream #5: not enough frames to estimate rate; consider increasing probesize [NULL @ 0x15bd460] start time is not set in estimate_timings_from_pts [mpegts @ 0x15b6420] PES packet size mismatch Input #0, mpegts, from 'Sport_HD_CUT.ts': ? Duration: 00:00:58.07, start: 14960.027511, bitrate: 14038 kb/s ? Program 132 ??? Stream #0:0[0x17de]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc ??? Stream #0:1[0x17e8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s ??? Stream #0:2[0x17e9](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s ??? Stream #0:3[0x17eb](mul): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s ??? Stream #0:4[0x17ea](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 448 kb/s ??? Stream #0:5[0x17f3](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired) [libx264 @ 0x15deee0] using SAR=1/1 [libx264 @ 0x15deee0] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0x15deee0] profile High, level 3.1 [libx264 @ 0x15deee0] 264 - core 125 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=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 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=1 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=12.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'Sport_HD_CUT_ntsc_250.mkv': ? Metadata: ??? encoder???????? : Lavf54.61.104 ??? Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1k tbn, 23.98 tbc ??? Stream #0:1(deu): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 448 kb/s Stream mapping: ? Stream #0:0 -> #0:0 (h264 -> libx264) ? Stream #0:4 -> #0:1 (ac3 -> ac3) Press [q] to stop, [?] for help frame= 1455 fps= 12 q=-1.0 Lsize=?? 64582kB time=00:01:00.79 bitrate=8702.3kbits/s dup=0 drop=1448??? video:61232kB audio:3325kB subtitle:0 global headers:0kB muxing overhead 0.038899% [libx264 @ 0x15deee0] frame I:8???? Avg QP:10.14? size:226948 [libx264 @ 0x15deee0] frame P:460?? Avg QP:12.64? size: 85182 [libx264 @ 0x15deee0] frame B:987?? Avg QP:16.55? size: 21988 [libx264 @ 0x15deee0] consecutive B-frames:? 6.7%? 1.4% 21.9% 70.1% [libx264 @ 0x15deee0] mb I? I16..4:? 3.2%? 9.2% 87.6% [libx264 @ 0x15deee0] mb P? I16..4:? 1.1%? 1.1%? 1.9%? P16..4: 45.1% 21.4% 26.0%? 0.0%? 0.0%??? skip: 3.4% [libx264 @ 0x15deee0] mb B? I16..4:? 0.2%? 0.1%? 0.1%? B16..8: 22.9% 11.7%? 4.5%? direct:20.2%? skip:40.2%? L0:23.0% L1:33.7% BI:43.3% [libx264 @ 0x15deee0] 8x8 transform intra:23.1% inter:25.0% [libx264 @ 0x15deee0] coded y,uvDC,uvAC intra: 86.0% 82.1% 65.9% inter: 38.4% 28.2% 8.1% [libx264 @ 0x15deee0] i16 v,h,dc,p: 34% 34% 24%? 8% [libx264 @ 0x15deee0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 29% 26%? 2%? 5%? 4%? 5%? 4%? 6% [libx264 @ 0x15deee0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 25% 17%? 3%? 9%? 6%? 7%? 5%? 7% [libx264 @ 0x15deee0] i8c dc,h,v,p: 43% 29% 18%? 9% [libx264 @ 0x15deee0] Weighted P-Frames: Y:0.4% UV:0.2% [libx264 @ 0x15deee0] kb/s:8265.67 From belcampo at zonnet.nl Sun Feb 3 11:42:39 2013 From: belcampo at zonnet.nl (Henk D. Schoneveld) Date: Sun, 3 Feb 2013 11:42:39 +0100 Subject: [FFmpeg-user] ATSC TS live transcode on DL360 G4? In-Reply-To: References: <4d4f41dac925a684ced5ba347d9614dd@znet.ca> Message-ID: On Feb 3, 2013, at 2:37 AM, Subscriptions wrote: > > Hello Hank, Tom, and thanks for your advice. I did record half an hour ATSC mpeg2 stream into a file and tried to transcode it file-to-file. I also took the 'nice' out as anyway there is nothing else running, no need to prioritize this process. Results are below. > > Input #0, mpegts, from 'out.ts': > Duration: 00:55:52.35, start: 16712.311489, bitrate: 15655 kb/s > Program 1 > Stream #0:0[0x44](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s16, 384 kb/s > Stream #0:1[0x45]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 15000 kb/s, 59.94 fps, 60 tbr, 90k tbn, 119.88 tbc > using cpu capabilities: MMX2 SSE2 SSE3 Cache64 > profile Constrained Baseline, level 3.2 > muxrate VBR, pcr every 6 pkts, sdt every 200, pat/pmt every 40 pkt > Output #0, mpegts, to 'video.h264': > Metadata: > encoder : Lavf54.29.104 > Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 60 tbc > Stream #0:1(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), 384 kb/s > > > Results: > A. -preset fast: > ffmpeg -re -i out.ts -acodec copy -vcodec libx264 -preset fast -s:v hd720 -f mpegts video.h264 > top - 16:57:50 up 23 days, 3:33, 4 users, load average: 5.81, 4.54, 2.34 > > B. -preset ultrafast: > ffmpeg -re -i out.ts -acodec copy -vcodec libx264 -preset ultrafast -s:v hd720 -f mpegts video.h264 > top - 17:03:24 up 23 days, 3:39, 4 users, load average: 4.16, 4.18, 2.84 > > Computer is DL 360 G4 at 3.4Ghz. As seen we are 'almost there' with -preset ultrafast, just slightly on the other side of the border. > > This is quite bad, as I need to transcode ~10 channels, and DL360 G4 is inexpensive and fast 64bit server. No luck, however. Compare the used Xeon CPU from that DL360, I don't know which one is used, with more recent versions. Power-consumption of current CPU's is much lower and performance is much higher. Maybe you need half or less systems to get the same or more CPU-performance. Calculate the cost of energy maybe you conclude that the DL360 is very expensive after all. Henk > > I did try another ATSC channel, same result as above. So, it really looks that 2 Xeon 64 bit @3.4Ghz can not transcode real-time ATSC ~20Mb/s to h264. > > If you wish I can put the file for download for yourself to test (6GB). > > All the best, george > > Le 2013-02-01 10:00, Henk D. Schoneveld a ?crit : >> On Feb 1, 2013, at 3:20 PM, Subscriptions wrote: >> >>> Hello again, >>> >>> It simply looks that 2 double-core Xeon at 3.4Ghz (HP DL 360) can not transcode mpeg2 ts live stream coming at ~20 Mb/s to h264. Even with 'preset ultrafast' the load goes above 4 and the buffer overruns. The minimal processor that is able to do this up to now is a single Phenom 2 X6 Black at 3.4 Ghz, and it sometimes gets with load ~5 on it's six cores. >> It looks a bit odd to me. I can encode 2 DVB-S 1080i h264-based >> recordings to 720p with a 4-core i5-2500k not over clocked. >> If you remove the nice statement and add -re statement before your source like >> ffmpeg -re -i udp etc should do the job. BTW. I do my encodings from >> a file, not from a stream. Maybe an intermediate file will help, >> although it adds a slight delay. >> >> Henk >>> >>> Thanks, George >>> >>> >>> Hello, >>> >>> I want to reduce bit rate of ~18Mb/s ATSC live stream which I capture over the air with HDHomerun box, and it looks that an HP DL360 G4 server (two 64 bit double core Xeon processors) can not do the job. Is there some way to make this functional? My idea is to reduce the stream from 18Mb/s to about 4-5Mb/s at hd720. The problem is that processor load goes over 4 and starts to overrun the buffer. Is there a way to make the transcoding somehow work with x264 on that computer? >>> >>> Thanks, George. >>> >>> nice -n -20 ffmpeg -i "udp://239.255.254.1:1234?fifo_size=6000000&overrun_nonfatal=1&" -acodec copy -c:v libx264 -crf 22 -preset fast -f mpegts udp://239.255.254.240:1234 >>> >>> ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers >>> built on Oct 16 2012 09:46:44 with gcc 4.7 (Debian 4.7.2-4) >>> >>> Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 15000 kb/s, 63.81 fps, 59.94 tbr, 90k tbn, 119.88 tbc >>> >>> using cpu capabilities: MMX2 SSE2 SSE3 Cache64 >>> Output #0, mpegts, to 'udp://239.255.254.240:1234': >>> Metadata: >>> encoder : Lavf54.29.104 >>> Stream #0:0: Video: h264, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 90k tbn, 59.94 tbc >>> Stream #0:1(eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), 384 kb/s >>> >>> >>> Tasks: 82 total, 2 running, 80 sleeping, 0 stopped, 0 zombie >>> %Cpu0 : 96.3 us, 1.0 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 2.3 si, 0.0 st >>> %Cpu1 : 95.7 us, 1.0 sy, 0.0 ni, 1.0 id, 0.0 wa, 0.0 hi, 2.3 si, 0.0 st >>> %Cpu2 : 97.7 us, 1.3 sy, 0.0 ni, 0.3 id, 0.0 wa, 0.0 hi, 0.7 si, 0.0 st >>> %Cpu3 : 96.0 us, 0.7 sy, 0.0 ni, 2.0 id, 0.0 wa, 0.0 hi, 1.3 si, 0.0 st >>> KiB Mem: 3995312 total, 2685548 used, 1309764 free, 74516 buffers >>> >>> processor : 3 >>> vendor_id : GenuineIntel >>> cpu family : 15 >>> model : 4 >>> model name : Intel(R) Xeon(TM) CPU 3.40GHz >>> >>> _______________________________________________ >>> 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 imranhkhan1989 at gmail.com Sun Feb 3 13:30:24 2013 From: imranhkhan1989 at gmail.com (Imran Khan) Date: Sun, 3 Feb 2013 18:00:24 +0530 Subject: [FFmpeg-user] Decoding raw h264 frame using libavcodec Message-ID: Hello All I am trying to decode raw h264 frames that I got from h264 encoder. I have create decoder context by setting width , height and pixel format. when i am passing the frame array in avcodec_decode_video2() method it is not decompressing the frame. the program shows same size for decoded frame and encoded frame. Can anyone tell me the way I am creating AVCodecContext for decoder is correct or not. this is how I have created AVCodecContext... AVCodecContext avctx; AVCodec* codec; av_init_packet(&avpkt); codec = avcodec_find_decoder(codec_id); if(!codec){ return "codec not found"; } avctx = avcodec_alloc_context3(codec); if(!avctx){ return "can not allocate avcontext :: avocdec_alloc_context"; } avctx->width=640; avctx->height=480; avctx->pix_fmt=AV_PIX_FMT_YUV420P; error = avcodec_open2(avctx ,codec ,NULL); if(error < 0 ){ return "can not open codec :: avcodec_open2"; } what are other option that I should set to decode the raw frames. From aruForum10 at deveritate.net Sun Feb 3 14:03:33 2013 From: aruForum10 at deveritate.net (frank10) Date: Sun, 03 Feb 2013 14:03:33 +0100 Subject: [FFmpeg-user] join two video files portions In-Reply-To: References: <510CD08E.40003@deveritate.net> <510CD9DB.7040602@deveritate.net> <510D8F55.90001@deveritate.net> Message-ID: <510E6025.4020305@deveritate.net> > Of course, ffprobe won't be able to get the duration of a file that is in > the process of being created. That information can't be known, because it > will be constantly changing. Or am I misunderstanding what you are asking > for? Yes, that's the point. I must copy some frames from a file that is in recording mode. So I think the only way is using the nb_read_frames to get the total frames up to that moment. Subtract some frames, calculate the hh:mm:ss and insert this start time in the -ss cut method. But, at this point, could it work the ffmpeg -ss with a file in recording mode? In fact I tried this: ffmpeg -ss 00:00:20 Blob.avi 00:00:10 -c:v copy out.avi (with Blob.avi the file in recording mode) I got out.avi of 30'' instead of 10'' because it starts from the beginning of blob.avi instead of the 20?sec. When stopped and closed blob.avi and repeated the ffmpeg -ss I got correctly the 10'' video. So, the problem is that also -ss doesn't work with a file being recorded... This is due to the lack of duration tag, but it could work if -ss worked with frames, I think: for example it could set the beginning of video at frame 150. I'm able to do this with opencv in c++, but it's slow and must re-encode all frames... I was searching for a faster method maybe at file level without recompression. From cehoyos at ag.or.at Sun Feb 3 15:18:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 14:18:49 +0000 (UTC) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> Message-ID: Bernd Butscheidt yahoo.de> writes: > I tried to find a way to reverse the PAL Speed up used > by television broadcasts back to ntsc film using recent > ffmpeg. The HD-Television stream like the one used in > the example given below are actually broadcast with 50fps. (Disclaimer: It is absolutely possible that you know much more than I do about how this recording was actually produced, I can only write what I think - and I think that there are some indications that I am correct, but who knows.) Afaict, the sample you uploaded was recorded with a 50Hz camera: Either with a camera that records 50 progressive frames per second, or a camera that records 50 (true) fields per second, some post-processing was used to create 50fps progressive content (and I would expect that the camera has a higher horizontal resolution than 720 lines in this case) out of this 50 fields. If you need 25 / 24 / 23.9 fps output, you will have to drop frames or you have to radically (by a factor of two) change the playback speed of the stream. Note that I am not saying that there is anything wrong with your command line (it of course drops half of the input frames but that simply may be what you want) but given that I don't understand what you want to achieve, it is difficult for me to make suggestions. If you record a movie - I do that regularly with a very similar setup and very similar TV provider(s) as you - on the same channel the situation is of course different. But in this case, the safe variant is to specify -r 25 since you usually don't know if the sound was speed up in post-processing or not (so there is a good chance you damage the sound with your complicated filter chain). (This is of course different if you actually hear that the sound has been tampered with, in any case I would have expected that the output framerate hast to be exactly 24fps and not 24000/1001). Carl Eugen From cehoyos at ag.or.at Sun Feb 3 15:31:44 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 14:31:44 +0000 (UTC) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> Message-ID: Bernd Butscheidt yahoo.de> writes: > >Alternatively, please provide a sample. > > I uploaded a cut version of the source file - the > original was 200MB. I choose this one although it > is no film material So you intentionally did not upload a sample that allows to reproduce the original task - sorry, but I did not think of this possibility. I wanted to suggest you record Magnum on Thursday but it is only sent in German, so you probably have to choose a program that is originally German and not HD, perhaps "Notruf Hafenkante" at 10:30 (whatever that may be). Carl Eugen From infos at madovsky.org Sun Feb 3 15:43:30 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 09:43:30 -0500 Subject: [FFmpeg-user] speex to ac3 in mkv References: <96DD0751D97149938EE93D853E082309@e1705><467B064346044D83A1F59CBB0A6EC330@e1705> Message-ID: <32C635994C1747B59861ECD9A6AC6782@e1705> > Madovsky madovsky.org> writes: > >> ffmpeg -i rtmp://server/app/live -acodec ac3 -ar 48000 >> -b:a 128k -vcodec copy -y output.mkv > > Please always add complete, uncut console output when > posting failing command lines here. > Ok > Do the following also fail? > $ ffmpeg -i rtmp://server/app/live -ar 48000 out.ac3 works > $ ffmpeg -i rtmp://server/app/live -ar 48000 out.mp2 works > > Carl Eugen console log: =============== ffmpeg -i "rtmp://server/app/live live=1" -acodec ac3 -ar 48000 -b:a 128k -vcodec copy -y output.mkv ffmpeg version N-49519-g99eedfc Copyright (c) 2000-2013 the FFmpeg developers built on Feb 1 2013 16:33:20 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.100 / 3. 35.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x3559fe0] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://server/app/live live=1': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 Output #0, matroska, to 'output.mkv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: flv1 (FLV1 / 0x31564C46), yuv420p, 320x240, q=2-31, 1k tbn, 1k tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, mono, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (libspeex -> ac3) Press [q] to stop, [?] for help frame= 313 fps= 19 q=-1.0 Lsize= 949kB time=00:00:18.54 bitrate= 419.4kbits/s video:655kB audio:287kB subtitle:0 global headers:0kB muxing overhead 0.777962% Received signal 2: terminating. ============ fyi I use librtmp Thanks Franck From infos at madovsky.org Sun Feb 3 15:58:07 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 09:58:07 -0500 Subject: [FFmpeg-user] speex to ac3 in mkv Message-ID: <6C3412E2777E4F1FBB2DCAF489ECDF06@e1705> >> Madovsky madovsky.org> writes: >> >>> ffmpeg -i rtmp://server/app/live -acodec ac3 -ar 48000 >>> -b:a 128k -vcodec copy -y output.mkv >> >> Please always add complete, uncut console output when >> posting failing command lines here. >> > Ok > >> Do the following also fail? >> $ ffmpeg -i rtmp://server/app/live -ar 48000 out.ac3 > works > >> $ ffmpeg -i rtmp://server/app/live -ar 48000 out.mp2 > works > >> >> Carl Eugen > > > console log: > > =============== > > ffmpeg -i "rtmp://server/app/live live=1" -acodec ac3 -ar 48000 -b:a > 128k -vcodec copy -y output.mkv > ffmpeg version N-49519-g99eedfc Copyright (c) 2000-2013 the FFmpeg > developers > built on Feb 1 2013 16:33:20 with gcc 4.3.2 (GCC) 20081105 (Red Hat > 4.3.2-7) > configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac > --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp > --enable-runtime-cpudetect --enable-libfreetype > libavutil 52. 17.100 / 52. 17.100 > libavcodec 54. 91.100 / 54. 91.100 > libavformat 54. 61.104 / 54. 61.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 35.100 / 3. 35.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > rtmp server sent error > [flv @ 0x3559fe0] Estimating duration from bitrate, this may be inaccurate > Input #0, flv, from 'rtmp://server/app/live live=1': > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #0:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc > Stream #0:1: Audio: speex, 16000 Hz, mono, s16 > Output #0, matroska, to 'output.mkv': > Metadata: > encoder : Lavf54.61.104 > Stream #0:0: Video: flv1 (FLV1 / 0x31564C46), yuv420p, 320x240, q=2-31, > 1k tbn, 1k tbc > Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, mono, fltp, > 128 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (libspeex -> ac3) > Press [q] to stop, [?] for help > frame= 313 fps= 19 q=-1.0 Lsize= 949kB time=00:00:18.54 bitrate= > 419.4kbits/s > video:655kB audio:287kB subtitle:0 global headers:0kB muxing overhead > 0.777962% > Received signal 2: terminating. > > ============ > > fyi I use librtmp > > Thanks > > Franck however ffmpeg -i "rtmp://server/app/live live=1" -ar 48000 -y output.mkv works too From cehoyos at ag.or.at Sun Feb 3 16:15:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 15:15:30 +0000 (UTC) Subject: [FFmpeg-user] speex to ac3 in mkv References: <96DD0751D97149938EE93D853E082309@e1705><467B064346044D83A1F59CBB0A6EC330@e1705> <32C635994C1747B59861ECD9A6AC6782@e1705> Message-ID: Madovsky madovsky.org> writes: > > Do the following also fail? > > $ ffmpeg -i rtmp://server/app/live -ar 48000 out.ac3 > works > ffmpeg -i "rtmp://server/app/live live=1" -acodec ac3 > -ar 48000 -b:a 128k -vcodec copy -y output.mkv Please find out what the difference is between the two commands. Does it fail if you add -ab 128 to the first command? Does the second work with -vn? Carl Eugen From infos at madovsky.org Sun Feb 3 17:52:19 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 11:52:19 -0500 Subject: [FFmpeg-user] speex to ac3 in mkv References: <96DD0751D97149938EE93D853E082309@e1705><467B064346044D83A1F59CBB0A6EC330@e1705><32C635994C1747B59861ECD9A6AC6782@e1705> Message-ID: <51B5E2D9561B48CD88404E2B7E95FFD1@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Sunday, February 03, 2013 10:15 AM Subject: Re: [FFmpeg-user] speex to ac3 in mkv > Madovsky madovsky.org> writes: > >> > Do the following also fail? >> > $ ffmpeg -i rtmp://server/app/live -ar 48000 out.ac3 >> works > >> ffmpeg -i "rtmp://server/app/live live=1" -acodec ac3 >> -ar 48000 -b:a 128k -vcodec copy -y output.mkv > > Please find out what the difference is between the two commands. > > Does it fail if you add -ab 128 to the first command? > Does the second work with -vn? > > Carl Eugen the real problem is coming from the fact I use a USB webcam as video source and a min jack PC input as audio source. I confirm is all usb webcam I used with pc mic input cut the audio every 3/5 sec if I convert it together even with -vn But the sound is not cut if I convert audio only. Franck From bbutscheidt at yahoo.de Sun Feb 3 18:01:27 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sun, 3 Feb 2013 17:01:27 +0000 (GMT) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? In-Reply-To: References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> Message-ID: <1359910887.48506.YahooMailNeo@web133203.mail.ir2.yahoo.com> ----- Original Message ----- > From: Carl Eugen Hoyos > To: ffmpeg-user at ffmpeg.org > Cc: > Sent: Sunday, February 3, 2013 3:31 PM > Subject: Re: [FFmpeg-user] Proper way to reverse PAL Speed up? > > Bernd Butscheidt yahoo.de> writes: > >> >Alternatively, please provide a sample. >> >> I uploaded a cut version of the source file - the >> original was 200MB. I choose this one although it >> is no film material > > So you intentionally did not upload a sample that allows > to reproduce the original task - sorry, but I did not > think of this possibility. > Sorry, now I've lost you. The sample I provided is from the same source and the same task is done with it supplying the same behaviour. The only reason I cut the original test sample was due to the limitation of datafilehost.com which is 100 MB. The resulting videos are 23.976 fps with proper sound - so mainly it works. Still I wonder why I have to add an offset to the audio of about 250ms. Both results, without offset and with offset, I uploaded as well. Because I have to find the proper offset by trial and error, I feel uncomfortable and search for a logical reason where it derives from. If I missed something, please return to me with the things I need to supply additionally. From my point of view, everything I wanted to show can be seen and heard with the uploaded samples?! >...it of course drops half of the >input frames but that simply may be what you want) but >given that I don't understand what you want to achieve, >it is difficult for me to make suggestion The source is a German TV Recording (ZDF HD) broadcast in 50fps. I indeed want to speed down to double ntsc-frame rate (asetpts, setpts) and drop every second frame (-r 24000/1001) to achieve true ntsc film rate. The same command line also works with 25fps input, but no frames are dropped - and concerning the video-audio offset, it behaves the same to my experience. If it is of help I can record a small sample of a SD-station broadcasting in 25fps and apply the commands. Kind regards Bernd B. From infos at madovsky.org Sun Feb 3 18:21:49 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 12:21:49 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency Message-ID: <8F4136CA16644226A34F30F3565FC0A8@e1705> I tried to convert 2 rtmp live ipnut into one output file (mp4 or mkv) resulting in any case about 2.4 second delay between when I use filter_complex with amerge or/and overlay the first live rtmp and the second one ffmpeg -i "rtmp://server/app/live live=1" -itsoffset 2.437 -i "rtmp://server/app/live2 live=1" --filter_complex "[0:1]pan=stereo:c0=c0+c1; [1:1]pan=stereo:c0=c0+c1; [0:0]pad=682:450:21:105[left];[left][1:0]overlay=341:105" -ac 1 -acodec libspeex -ar 16000 -vcodec flv -tune zerolatency -shortest -y output.flv ffmpeg version N-49519-g99eedfc Copyright (c) 2000-2013 the FFmpeg developers built on Feb 1 2013 16:33:20 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.100 / 3. 35.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x2ad0640] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://server/app/live': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 rtmp server sent error [flv @ 0x2b6caa0] Estimating duration from bitrate, this may be inaccurate Input #1, flv, from server/app/live2: Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc Stream #1:1: Audio: speex, 16000 Hz, mono, s16 Input #2, image2, from 'neterviewBack.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #2:0: Video: png, rgb24, 80x20, 25 tbr, 25 tbn, 25 tbc Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono, s16, 27 kb/s Stream #0:1: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono, s16, 27 Stream #0:2: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 682x450, q=2-31, Stream mapping: Stream #0:0 (flv) -> pad Stream #0:1 (libspeex) -> pan Stream #1:0 (flv) -> overlay:overlay Stream #1:1 (libspeex) -> pan Stream #2:0 (png) -> overlay:overlay pan -> Stream #0:0 (libspeex) pan -> Stream #0:1 (libspeex) drawtext -> Stream #0:2 (flv) Press [q] to stop, [?] for help [flv @ 0x2b2c340] Warning: Speex stream has more than 8 frames per packet. Adobe Warning: Speex stream has more than 8 frames per packet. Adobe Flash Player cann [flv @ 0x2b2c340] Warning: Speex stream has more than 8 frames per packet. Adobe Last message repeated 1 times Warning: Speex stream has more than 8 frames per packet. Adobe Flash Player cann Warning: Speex stream has more than 8 frames per packet. Adobe Flash Player cann frame= 169 fps= 17 q=12.1 Lsize= 607kB time=00:00:18.15 bitrate= 273.9kbits video:497kB audio:87kB subtitle:0 global headers:0kB muxing overhead 3.899482% [libspeex @ 0x2b2a9e0] 1 frames left in the queue on closing [libspeex @ 0x2b38700] 1 frames left in the queue on closing Received signal 2: terminating. thanks Franck From cehoyos at ag.or.at Sun Feb 3 19:12:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 18:12:38 +0000 (UTC) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> <1359910887.48506.YahooMailNeo@web133203.mail.ir2.yahoo.com> Message-ID: Bernd Butscheidt yahoo.de> writes: > The source is a German TV Recording (ZDF HD) > broadcast in 50fps. I indeed want to speed down > to double ntsc-frame rate (asetpts, setpts) Why do you think that this is a good idea? Do you hear that playback is too fast / pitch too high when played at original speed? Carl Eugen From svnpenn at gmail.com Sun Feb 3 22:33:17 2013 From: svnpenn at gmail.com (Steven Penny) Date: Sun, 3 Feb 2013 15:33:17 -0600 Subject: [FFmpeg-user] Frame types Message-ID: I have searched ffmpeg-user archives as well as Wikipedia, I am still not quite clear on this. I have come across several terms for different frame types I-frame P-frame B-frame intra frame inter frame reference frame key frame It appears that I-frame intra frame key frame reference frame are synonymous while "inter frame" is synonymous with "non I-frame" or "P-frame and B-frame". Is this correct? Also any canonical sources of this information would be welcome as well. From infos at madovsky.org Sun Feb 3 22:48:24 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 16:48:24 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency Message-ID: <15928958D218486CB51F359E5B44B7E4@e1705> update: I just updated from git 10 mn ago and now the 2 live rtmp are well syncrhonized as long as the audio from second input is not "amerge" nor "pan" with filter_complex. Franck ----- Original Message ----- From: Madovsky To: FFmpeg user questions Sent: Sunday, February 03, 2013 12:21 PM Subject: multiple live rtmp inputs latency I tried to convert 2 rtmp live ipnut into one output file (mp4 or mkv) resulting in any case about 2.4 second delay between when I use filter_complex with amerge or/and overlay the first live rtmp and the second one ffmpeg -i "rtmp://server/app/live live=1" -itsoffset 2.437 -i "rtmp://server/app/live2 live=1" --filter_complex "[0:1]pan=stereo:c0=c0+c1; [1:1]pan=stereo:c0=c0+c1; [0:0]pad=682:450:21:105[left];[left][1:0]overlay=341:105" -ac 1 -acodec libspeex -ar 16000 -vcodec flv -tune zerolatency -shortest -y output.flv ffmpeg version N-49519-g99eedfc Copyright (c) 2000-2013 the FFmpeg developers built on Feb 1 2013 16:33:20 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.100 / 3. 35.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x2ad0640] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://server/app/live': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 rtmp server sent error [flv @ 0x2b6caa0] Estimating duration from bitrate, this may be inaccurate Input #1, flv, from server/app/live2: Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc Stream #1:1: Audio: speex, 16000 Hz, mono, s16 Input #2, image2, from 'neterviewBack.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #2:0: Video: png, rgb24, 80x20, 25 tbr, 25 tbn, 25 tbc Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono, s16, 27 kb/s Stream #0:1: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono, s16, 27 Stream #0:2: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 682x450, q=2-31, Stream mapping: Stream #0:0 (flv) -> pad Stream #0:1 (libspeex) -> pan Stream #1:0 (flv) -> overlay:overlay Stream #1:1 (libspeex) -> pan Stream #2:0 (png) -> overlay:overlay pan -> Stream #0:0 (libspeex) pan -> Stream #0:1 (libspeex) drawtext -> Stream #0:2 (flv) Press [q] to stop, [?] for help [flv @ 0x2b2c340] Warning: Speex stream has more than 8 frames per packet. Adobe Warning: Speex stream has more than 8 frames per packet. Adobe Flash Player cann [flv @ 0x2b2c340] Warning: Speex stream has more than 8 frames per packet. Adobe Last message repeated 1 times Warning: Speex stream has more than 8 frames per packet. Adobe Flash Player cann Warning: Speex stream has more than 8 frames per packet. Adobe Flash Player cann frame= 169 fps= 17 q=12.1 Lsize= 607kB time=00:00:18.15 bitrate= 273.9kbits video:497kB audio:87kB subtitle:0 global headers:0kB muxing overhead 3.899482% [libspeex @ 0x2b2a9e0] 1 frames left in the queue on closing [libspeex @ 0x2b38700] 1 frames left in the queue on closing Received signal 2: terminating. thanks Franck From cehoyos at ag.or.at Sun Feb 3 22:58:59 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 21:58:59 +0000 (UTC) Subject: [FFmpeg-user] Frame types References: Message-ID: Steven Penny gmail.com> writes: > It appears that > > I-frame > intra frame > key frame > reference frame > > are synonymous Not exactly. I-frames (intra frames) can be reference frames in all codecs that support non-key frames but they don't have to be reference frames. It probably makes more sense to call I-frames key frames if they are actually used as reference frames. P-frames and B-frames can also be reference frames in codecs that support this (at least h264). > while "inter frame" is synonymous with "non I-frame" or > "P-frame and B-frame". Yes, those are the frames that need reference frames to be decoded (correctly). Carl Eugen From cehoyos at ag.or.at Sun Feb 3 23:00:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 22:00:29 +0000 (UTC) Subject: [FFmpeg-user] multiple live rtmp inputs latency References: <15928958D218486CB51F359E5B44B7E4@e1705> Message-ID: Madovsky madovsky.org> writes: > I just updated from git 10 mn ago and now the 2 live rtmp > are well syncrhonized as long as the audio from second input is not "amerge" nor "pan" with filter_complex. This sounds as if the problem should also be reproducible with files or am I wrong? Carl Eugen From infos at madovsky.org Sun Feb 3 23:11:53 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 17:11:53 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency References: <15928958D218486CB51F359E5B44B7E4@e1705> Message-ID: <59189A2FF7854AAF9143FBF677DECD99@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Sunday, February 03, 2013 5:00 PM Subject: Re: [FFmpeg-user] multiple live rtmp inputs latency > Madovsky madovsky.org> writes: > >> I just updated from git 10 mn ago and now the 2 live rtmp >> are well syncrhonized as long as the audio from second > input is not "amerge" nor "pan" with filter_complex. > > This sounds as if the problem should also be reproducible > with files or am I wrong? > > Carl Eugen oddly not, with files everything is ok. does it come from the fact that rtmp buffer or other is managed differenlty if video device and sound device are from different source ? From bbutscheidt at yahoo.de Sun Feb 3 22:55:29 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sun, 3 Feb 2013 21:55:29 +0000 (GMT) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? In-Reply-To: References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> <1359910887.48506.YahooMailNeo@web133203.mail.ir2.yahoo.com> Message-ID: <1359928529.66948.YahooMailNeo@web133203.mail.ir2.yahoo.com> ----- Original Message ----- > From: Carl Eugen Hoyos > To: ffmpeg-user at ffmpeg.org > Cc: > Sent: Sunday, February 3, 2013 7:12 PM > Subject: Re: [FFmpeg-user] Proper way to reverse PAL Speed up? > > Bernd Butscheidt yahoo.de> writes: > >> The source is a German TV Recording (ZDF HD) >> broadcast in 50fps. I indeed want to speed down >> to double ntsc-frame rate (asetpts, setpts) !!! and then drop every second frame to result in standard ntsc film = 23.976? fps !!!! ? > Why do you think that this is a good idea? Cinema source is recorded at 24 fps, to make it broadcast due to PAL standard the television stations or all DVD releases of movies are speed up to 25 fps. So films on DVD or broadcasts of movies on PAL-television are about 4 percent shorter than the cinema version. You can reverse this effect e.g. with mencoder using the -speed option, but mencoder is not supposed to be the future as read in the mencoder user list frequently. Avidemux offers such a filter as well, still, the 2.6 version is already very promising but not ready in every point of view. Since ffmpeg offers new filters which look promising to do this task, I try to do video speedup/ speedown with it. Of course there is "no need" to do such things. But you could argue that it is better to read than to watch television as well .... The simple idea is to play the PAL recordings at the speed they originally were recorded. But maybe this gives the opportunity to put my question in another way: Is my way of using asetpts, setpts and aresample a proper way to do with ffmpeg what the option -speed can do in mencoder, which is speed up or down a video without dropping or duplicating frames. If so, am I right that an offset of about 250 ms is needed to be added to the audio? The samples I provided suggest this but to be honest this doesn't seem right to me. Kind regards Bernd From cehoyos at ag.or.at Mon Feb 4 00:00:35 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 23:00:35 +0000 (UTC) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> <1359910887.48506.YahooMailNeo@web133203.mail.ir2.yahoo.com> <1359928529.66948.YahooMailNeo@web133203.mail.ir2.yahoo.com> Message-ID: Bernd Butscheidt yahoo.de> writes: > >> The source is a German TV Recording (ZDF HD) > >> broadcast in 50fps. I indeed want to speed down > >> to double ntsc-frame rate (asetpts, setpts) > > !!! and then drop every second frame to result > in standard ntsc film = 23.976? fps !!!! > > > Why do you think that this is a good idea? > > Cinema source is recorded at 24 fps So why are you targeting a frame rate of 24000/1001 instead of 24fps? > to make it broadcast due to PAL standard the > television stations or all DVD releases of movies > are speed up to 25 fps. So films on DVD or > broadcasts of movies on PAL-television are > about 4 percent shorter than the cinema version. But are you sure that the pitch wasn't changed by 4% for tv transmission? Isn't it normally done (at least for non-B-movies) for DVD releases? (I am not saying this is really the case, I am just wondering how you can be sure it isn't. If you don't hear the difference, I wonder if it is a good idea to change the playback speed with FFmpeg, especially since you can change it at playback time anyway.) Carl Eugen From infos at madovsky.org Mon Feb 4 00:25:43 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 18:25:43 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency References: <15928958D218486CB51F359E5B44B7E4@e1705> Message-ID: <6BD3C330257D4598A770930A9AA5F08C@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Sunday, February 03, 2013 5:00 PM Subject: Re: [FFmpeg-user] multiple live rtmp inputs latency > Madovsky madovsky.org> writes: > >> I just updated from git 10 mn ago and now the 2 live rtmp >> are well syncrhonized as long as the audio from second > input is not "amerge" nor "pan" with filter_complex. > > This sounds as if the problem should also be reproducible > with files or am I wrong? > > Carl Eugen Sorry Carl I made so many test last days (maybe a thousand) I think I mixed up some rersults Now I splitted the tests in 2 for finest results and less confusion. Environment 2 live streaming from one USB cam (in as2/3 publisher 1 NetConnection, 2 NetStreams) containing 1 speex in each channel from the same device (builtin pc mic) video test: from a player I can see no latency at all between the live streams (audio/video ok) but if I overlay them in any format the video latency is occured command: ffmpeg -i "rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 live=1" -i back.png -filter_complex "[0:0]pad=682:450:21:105[left];[left][1:0]overlay=341:105[base]; [base][2:0]overlay=0:main_h-20" -an -vcodec flv -tune zerolatency -shortest -y output.flv audio test: same result as video. there are about 2.4 second latency between the 2 audio streams command ffmpeg -i "rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 live=1" -filter_complex "[0:1][1:1]amerge" -ac 1 -acodec libspeex -vn -tune zerolatency -shortest -y output.flv Franck From infos at madovsky.org Mon Feb 4 00:33:46 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 18:33:46 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency Message-ID: <9E0B9BA6B3F741F59AC863C629FB292A@e1705> >> Madovsky madovsky.org> writes: >> >>> I just updated from git 10 mn ago and now the 2 live rtmp >>> are well syncrhonized as long as the audio from second >> input is not "amerge" nor "pan" with filter_complex. >> >> This sounds as if the problem should also be reproducible >> with files or am I wrong? >> >> Carl Eugen > > Sorry Carl I made so many test last days (maybe a thousand) > I think I mixed up some rersults > > Now I splitted the tests in 2 for finest results and less confusion. > > Environment > 2 live streaming from one USB cam (in as2/3 publisher 1 NetConnection, 2 > NetStreams) > containing 1 speex in each channel from the same device (builtin pc mic) > > video test: > from a player I can see no latency at all between the live streams > (audio/video ok) > but if I overlay them in any format the video latency is occured > command: > ffmpeg -i "rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 > live=1" -i back.png -filter_complex > "[0:0]pad=682:450:21:105[left];[left][1:0]overlay=341:105[base]; > [base][2:0]overlay=0:main_h-20" -an -vcodec flv -tune > zerolatency -shortest -y output.flv > > audio test: > same result as video. there are about 2.4 second latency between the 2 > audio streams > command > ffmpeg -i "rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 > live=1" -filter_complex "[0:1][1:1]amerge" -ac 1 -acodec > libspeex -vn -tune zerolatency -shortest -y output.flv > > Franck Sorry I forgot console: video ======= ffmpeg -i "rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 live=1" -i back.png -filter_complex "[0:0]pad=682:450:21:105[left];[left][1:0]overlay=341:105[base]; [base][2:0]overlay=0:main_h-20" -an -vcodec flv -tune zerolatency -shortest -y output.flv ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x2086580] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 live=1' Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 rtmp server sent error [flv @ 0x211c2e0] Estimating duration from bitrate, this may be inaccurate Input #1, flv, from "rtmp://server/app/live1 live=1" -i 'rtmp://server/app/live2 live=1' Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc Stream #1:1: Audio: speex, 16000 Hz, mono, s16 Input #2, image2, from 'neterviewBack.png': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #2:0: Video: png, rgb24, 80x20, 25 tbr, 25 tbn, 25 tbc Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 682x450, q=2-31, 200 kb/s, 1k tbn, 16.58 tbc Stream mapping: Stream #0:0 (flv) -> pad Stream #1:0 (flv) -> overlay:overlay Stream #2:0 (png) -> overlay:overlay drawtext -> Stream #0:0 (flv) Press [q] to stop, [?] for help frame= 277 fps= 23 q=4.5 Lsize= 729kB time=00:00:16.70 bitrate= 357.5kbits/s dup=0 drop=7 video:724kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.626062% Received signal 2: terminating. audio ======= ffmpeg -i "rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 live=1" -filter_complex "[0:1][1:1]amerge" -ac 1 -acodec libspeex -vn -tune zerolatency -shortest -y output.flv ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x26a7c00] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from "rtmp://server/app/live1 live=1': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 rtmp server sent error [flv @ 0x273d700] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from "rtmp://server/app/live2 live=1': Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc Stream #1:1: Audio: speex, 16000 Hz, mono, s16 [Parsed_amerge_0 @ 0x26dbf40] Input channel layouts overlap: output layout will be determined by the number of distinct input channels Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono, s16, 27 kb/s Stream mapping: Stream #0:1 (libspeex) -> amerge:in0 Stream #1:1 (libspeex) -> amerge:in1 amerge -> Stream #0:0 (libspeex) Press [q] to stop, [?] for help size= 62kB time=00:00:16.85 bitrate= 29.9kbits/s video:0kB audio:50kB subtitle:0 global headers:0kB muxing overhead 23.096585% [libspeex @ 0x2769e40] 1 frames left in the queue on closing Received signal 2: terminating. From ffmpeg at frank.haefemeier.eu Mon Feb 4 00:39:30 2013 From: ffmpeg at frank.haefemeier.eu (Frank =?ISO-8859-1?Q?H=E4femeier?=) Date: Mon, 04 Feb 2013 00:39:30 +0100 Subject: [FFmpeg-user] Help: transform 'asyncts=first_pts=0' into new 'aresample' filter In-Reply-To: References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> <1359839653.4788.15.camel@mordor.haefemeier.eu> <1359844919.4788.25.camel@mordor.haefemeier.eu> <1359850329.4788.29.camel@mordor.haefemeier.eu> Message-ID: <1359934770.15271.3.camel@mordor.haefemeier.eu> Am Sonntag, den 03.02.2013, 00:21 +0000 schrieb Carl Eugen Hoyos: > Frank H?femeier frank.haefemeier.eu> writes: > > > > > 30s video sample: > > > > http://www.datafilehost.com/download-c12482c8.html > > > > > > I tested the following command lines: > > > $ ffmpeg -async 1 -i video-sample.ts -qscale 2 out.avi > > > $ ffmpeg -async 1 -i video-sample.ts -qscale 2 -vcodec mpeg4 > > > -strict -2 out.mov > > > > > > Both out.avi and out.mov play in-sync, both when encoded > > > with current FFmpeg and an older version. > > > > What can I learn from your test? > > ffmpeg -async 1 has been the recommended way > of fixing the A/V desync problems you are seeing > with your input sample for several years (long > before there was a aresample or asyncts filter). > It still works fine and - afaict - there is nothing > to "transform". > I will give it a try. But my previous solution was only follow the man page. It tells, async argument is deprecated and the filter asyncts respectively aresample should be used. You tell now async is the recommended way to fix desync problems. For me it sounds like a 'little' contradictory. What did I miss? Bye Frank From cehoyos at ag.or.at Mon Feb 4 00:46:58 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 3 Feb 2013 23:46:58 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?Help=3A_transform_=27asyncts=3Dfirst=5Fpt?= =?utf-8?q?s=3D0=27_into_new_=27aresample=27_filter?= References: <1358717795.22895.9.camel@mordor.haefemeier.eu> <1359829121.4788.5.camel@mordor.haefemeier.eu> <1359839653.4788.15.camel@mordor.haefemeier.eu> <1359844919.4788.25.camel@mordor.haefemeier.eu> <1359850329.4788.29.camel@mordor.haefemeier.eu> <1359934770.15271.3.camel@mordor.haefemeier.eu> Message-ID: Frank H?femeier frank.haefemeier.eu> writes: > But my previous solution was only follow the man page. > It tells, async argument is deprecated and the filter > asyncts respectively aresample should be used. > > You tell now async is the recommended way to fix desync > problems. For me it sounds like a 'little' contradictory. > What did I miss? Probably that I don't know aresample well enough and I don't know a sample yet that doesn't work with -async 1. Carl Eugen From infos at madovsky.org Mon Feb 4 03:56:53 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 21:56:53 -0500 Subject: [FFmpeg-user] mix 2 mp4 audio only Message-ID: <9875B908B02A47F892AA0F43319A671E@e1705> Hi, I'm trying to mix 2 streams without to decode reencode using audio only ffmpeg -i stream1.mp4 -i stream2.mp4 -vn -map 0:1 -map 1:1 -acodec copy out.mp4 but hear only one audio. Am I missed something ? Thanks From cehoyos at ag.or.at Mon Feb 4 04:08:21 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 4 Feb 2013 03:08:21 +0000 (UTC) Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705> Message-ID: Madovsky madovsky.org> writes: > I'm trying to mix 2 streams without to decode > reencode using audio only > > ffmpeg -i stream1.mp4 -i stream2.mp4 -vn > -map 0:1 -map 1:1 -acodec copy out.mp4 Please provide complete, uncut console output with every failing command line. Carl Eugen From jon77h at gmail.com Mon Feb 4 04:33:16 2013 From: jon77h at gmail.com (jon h) Date: Mon, 4 Feb 2013 13:33:16 +1000 Subject: [FFmpeg-user] Concat error - No such filter '[0,0]' Message-ID: Hope this attaches to the right thread. Tried to reply from Nabble, but it said my message didn't go through to the mailing list. ________________ In Mike Kavanagh's code: -filter_complex "concat=n=3:v=1:a=0 [a] [v]" a=0 should be a=1 It's the number of output streams, not a stream index. See the explanation here: http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files under the heading "Concatenation of files with different codecs". __________ Btw, the method given for concatenation of files with different codecs is useful somtimes when the codecs are the same. I was sent a ProRes file in 2 sections, with same codecs, and tried to join them by transcoding first then using mkvmerge or mp4box cat, which both gave imperfect results. When i used -filter_complex concat, the result was great. __________ About quoting on the Windows command line, this style worked for me (on Vista) -- :: double quotes around the filter string -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" :: then with -map, no quotes -map [v] -map [a] :: then elsewhere, no brackets -c:v libx264 -preset:v slow ... etc -c:a libvorbis ... etc -- j77h From infos at madovsky.org Mon Feb 4 05:08:03 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 23:08:03 -0500 Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705> Message-ID: ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Sunday, February 03, 2013 10:08 PM Subject: Re: [FFmpeg-user] mix 2 mp4 audio only > Madovsky madovsky.org> writes: > >> I'm trying to mix 2 streams without to decode >> reencode using audio only >> >> ffmpeg -i stream1.mp4 -i stream2.mp4 -vn >> -map 0:1 -map 1:1 -acodec copy out.mp4 > > Please provide complete, uncut console output > with every failing command line. > > Carl Eugen ok sorry I thought it was my mistake ==== ffmpeg -debug -i stream1.mp4 -i stream2.mp4 -vn -map 0:1 -map 1:1 -acodec copy -y output.mp4 ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 matched as AVOption 'debug' with argument '-i'. Reading option 'stream1.mp4' ... matched as output file. Reading option '-i' ... matched as input file with argument 'stream2.mp4'. Reading option '-vn' ... matched as option 'vn' (disable video) with argument '1'. Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:1'. Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '1:1'. Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'. Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'. Reading option 'output.mp4' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option y (overwrite output files) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file stream2.mp4. Successfully parsed a group of options. Opening an input file: stream2.mp4. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] ISO: File Type Major Brand: isom [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] File position before avformat_find_stream_info() is 15758205 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] File position after avformat_find_stream_info() is 16912 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stream2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 title : Twilight 4 Breaking Dawn encoder : Lavf54.59.106 Duration: 00:02:30.79, start: 0.000000, bitrate: 836 kb/s Stream #0:0(und), 1, 1/11988: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 960x408 [SAR 1:1 DAR 40:17], 125/5994, 740 kb/s, 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc Metadata: handler_name : VideoHandler Stream #0:1(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 91 kb/s Metadata: handler_name : SoundHandler Successfully opened the file. Parsing a group of options: output file stream1.mp4. Successfully parsed a group of options. Opening an output file: stream1.mp4. Successfully opened the file. Parsing a group of options: output file output.mp4. Applying option vn (disable video) with argument 1. Applying option map (set input stream mapping) with argument 0:1. Applying option map (set input stream mapping) with argument 1:1. Invalid input file index: 1. Statistics: 154203 bytes read, 2 seeks === thanks Franck From infos at madovsky.org Mon Feb 4 05:22:04 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 23:22:04 -0500 Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705> Message-ID: <5AB202FA201A429D9DFCBB7DC99B8039@e1705> > ----- Original Message ----- > From: "Carl Eugen Hoyos" > To: > Sent: Sunday, February 03, 2013 10:08 PM > Subject: Re: [FFmpeg-user] mix 2 mp4 audio only > > >> Madovsky madovsky.org> writes: >> >>> I'm trying to mix 2 streams without to decode >>> reencode using audio only >>> >>> ffmpeg -i stream1.mp4 -i stream2.mp4 -vn >>> -map 0:1 -map 1:1 -acodec copy out.mp4 >> >> Please provide complete, uncut console output >> with every failing command line. >> >> Carl Eugen > > ok sorry I thought it was my mistake > > ==== > > ffmpeg -debug -i stream1.mp4 -i stream2.mp4 -vn -map 0:1 -map 1:1 -acodec > copy -y output.mp4 > ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg > developers > built on Feb 3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat > 4.3.2-7) > configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac > --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp > --enable-runtime-cpudetect --enable-libfreetype > libavutil 52. 17.100 / 52. 17.100 > libavcodec 54. 91.100 / 54. 91.100 > libavformat 54. 61.104 / 54. 61.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 35.101 / 3. 35.101 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > matched as AVOption 'debug' with argument '-i'. > Reading option 'stream1.mp4' ... matched as output file. > Reading option '-i' ... matched as input file with argument 'stream2.mp4'. > Reading option '-vn' ... matched as option 'vn' (disable video) with > argument '1'. > Reading option '-map' ... matched as option 'map' (set input stream > mapping) with argument '0:1'. > Reading option '-map' ... matched as option 'map' (set input stream > mapping) with argument '1:1'. > Reading option '-acodec' ... matched as option 'acodec' (force audio codec > ('copy' to copy stream)) with argument 'copy'. > Reading option '-y' ... matched as option 'y' (overwrite output files) > with argument '1'. > Reading option 'output.mp4' ... matched as output file. > Finished splitting the commandline. > Parsing a group of options: global . > Applying option y (overwrite output files) with argument 1. > Successfully parsed a group of options. > Parsing a group of options: input file stream2.mp4. > Successfully parsed a group of options. > Opening an input file: stream2.mp4. > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] Format mov,mp4,m4a,3gp,3g2,mj2 > probed with size=2048 and score=100 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] ISO: File Type Major Brand: isom > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] File position before > avformat_find_stream_info() is 15758205 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] All info found > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] File position after > avformat_find_stream_info() is 16912 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stream2.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > title : Twilight 4 Breaking Dawn > encoder : Lavf54.59.106 > Duration: 00:02:30.79, start: 0.000000, bitrate: 836 kb/s > Stream #0:0(und), 1, 1/11988: Video: h264 (Constrained Baseline) (avc1 > / 0x31637661), yuv420p, 960x408 [SAR 1:1 DAR 40:17], 125/5994, 740 kb/s, > 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc > Metadata: > handler_name : VideoHandler > Stream #0:1(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 91 kb/s > Metadata: > handler_name : SoundHandler > Successfully opened the file. > Parsing a group of options: output file stream1.mp4. > Successfully parsed a group of options. > Opening an output file: stream1.mp4. > Successfully opened the file. > Parsing a group of options: output file output.mp4. > Applying option vn (disable video) with argument 1. > Applying option map (set input stream mapping) with argument 0:1. > Applying option map (set input stream mapping) with argument 1:1. > Invalid input file index: 1. > Statistics: 154203 bytes read, 2 seeks > > === > > > thanks > > Franck Arrgh, duno what's happened some test ate my movie test to 0 byte. that's why it didnt' work.... ok now I try it with rtmp stream Thanks Frankc From infos at madovsky.org Mon Feb 4 05:41:49 2013 From: infos at madovsky.org (Madovsky) Date: Sun, 3 Feb 2013 23:41:49 -0500 Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705> <5AB202FA201A429D9DFCBB7DC99B8039@e1705> Message-ID: <8C27D8006E8447F599D6EE9BAED37513@e1705> >>> Madovsky madovsky.org> writes: >>> >>>> I'm trying to mix 2 streams without to decode >>>> reencode using audio only >>>> >>>> ffmpeg -i stream1.mp4 -i stream2.mp4 -vn >>>> -map 0:1 -map 1:1 -acodec copy out.mp4 >>> >>> Please provide complete, uncut console output >>> with every failing command line. >>> >>> Carl Eugen >> >> ok sorry I thought it was my mistake >> >> ==== >> >> ffmpeg -debug -i stream1.mp4 -i stream2.mp4 -vn -map 0:1 -map 1:1 -acodec >> copy -y output.mp4 >> ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg >> developers >> built on Feb 3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat >> 4.3.2-7) >> configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac >> --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp >> --enable-runtime-cpudetect --enable-libfreetype >> libavutil 52. 17.100 / 52. 17.100 >> libavcodec 54. 91.100 / 54. 91.100 >> libavformat 54. 61.104 / 54. 61.104 >> libavdevice 54. 3.103 / 54. 3.103 >> libavfilter 3. 35.101 / 3. 35.101 >> libswscale 2. 2.100 / 2. 2.100 >> libswresample 0. 17.102 / 0. 17.102 >> libpostproc 52. 2.100 / 52. 2.100 >> matched as AVOption 'debug' with argument '-i'. >> Reading option 'stream1.mp4' ... matched as output file. >> Reading option '-i' ... matched as input file with argument >> 'stream2.mp4'. >> Reading option '-vn' ... matched as option 'vn' (disable video) with >> argument '1'. >> Reading option '-map' ... matched as option 'map' (set input stream >> mapping) with argument '0:1'. >> Reading option '-map' ... matched as option 'map' (set input stream >> mapping) with argument '1:1'. >> Reading option '-acodec' ... matched as option 'acodec' (force audio >> codec ('copy' to copy stream)) with argument 'copy'. >> Reading option '-y' ... matched as option 'y' (overwrite output files) >> with argument '1'. >> Reading option 'output.mp4' ... matched as output file. >> Finished splitting the commandline. >> Parsing a group of options: global . >> Applying option y (overwrite output files) with argument 1. >> Successfully parsed a group of options. >> Parsing a group of options: input file stream2.mp4. >> Successfully parsed a group of options. >> Opening an input file: stream2.mp4. >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] Format mov,mp4,m4a,3gp,3g2,mj2 >> probed with size=2048 and score=100 >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] ISO: File Type Major Brand: isom >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] File position before >> avformat_find_stream_info() is 15758205 >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] All info found >> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x211ab00] File position after >> avformat_find_stream_info() is 16912 >> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stream2.mp4': >> Metadata: >> major_brand : isom >> minor_version : 512 >> compatible_brands: isomiso2avc1mp41 >> title : Twilight 4 Breaking Dawn >> encoder : Lavf54.59.106 >> Duration: 00:02:30.79, start: 0.000000, bitrate: 836 kb/s >> Stream #0:0(und), 1, 1/11988: Video: h264 (Constrained Baseline) (avc1 >> / 0x31637661), yuv420p, 960x408 [SAR 1:1 DAR 40:17], 125/5994, 740 kb/s, >> 23.98 fps, 23.98 tbr, 11988 tbn, 47.95 tbc >> Metadata: >> handler_name : VideoHandler >> Stream #0:1(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 >> Hz, stereo, fltp, 91 kb/s >> Metadata: >> handler_name : SoundHandler >> Successfully opened the file. >> Parsing a group of options: output file stream1.mp4. >> Successfully parsed a group of options. >> Opening an output file: stream1.mp4. >> Successfully opened the file. >> Parsing a group of options: output file output.mp4. >> Applying option vn (disable video) with argument 1. >> Applying option map (set input stream mapping) with argument 0:1. >> Applying option map (set input stream mapping) with argument 1:1. >> Invalid input file index: 1. >> Statistics: 154203 bytes read, 2 seeks >> >> === >> >> >> thanks >> >> Franck > > Arrgh, duno what's happened some test ate my movie test to 0 byte. > that's why it didnt' work.... > ok now I try it with rtmp stream > > Thanks > > Frankc Here is the log of rtmp test ========= ffmpeg -i "rtmp://server/app/live live=1" -i "rtmp://rtmp://server/app/live2 live=1" -vn -map 0:1 -map 1:1 -y -acodec copy output.flv ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x2db5a00] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://server/app/live live=1': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 45.92 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: speex, 16000 Hz, mono, s16 rtmp server sent error [flv @ 0x2e4bd20] Estimating duration from bitrate, this may be inaccurate Input #1, flv, from 'rtmp://server/app/live': Duration: N/A, start: 0.000000, bitrate: N/A Stream #1:0: Video: flv1, yuv420p, 320x240, 16.58 tbr, 1k tbn, 1k tbc Stream #1:1: Audio: speex, 16000 Hz, mono, s16 Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono Stream #0:1: Audio: speex ([11][0][0][0] / 0x000B), 16000 Hz, mono Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #1:1 -> #0:1 (copy) Press [q] to stop, [?] for help size= 47kB time=00:00:11.48 bitrate= 33.3kbits/s video:0kB audio:34kB subtitle:0 global headers:0kB muxing overhead 37.255240% Received signal 2: terminating. ==== the listening result is like audio sliced and stretched if I change -map 0:1 -map 1:1 to -map 0:1 -map 1:0 everthing is ok but I get only the first audio Thanks Franck From cehoyos at ag.or.at Mon Feb 4 05:52:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 4 Feb 2013 04:52:41 +0000 (UTC) Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705> <5AB202FA201A429D9DFCBB7DC99B8039@e1705> <8C27D8006E8447F599D6EE9BAED37513@e1705> Message-ID: Madovsky madovsky.org> writes: > ffmpeg -i "rtmp://server/app/live live=1" > -i "rtmp://rtmp://server/app/live2 live=1" > -vn -map 0:1 -map 1:1 -y -acodec copy output.flv (Is this the same problem you reported originally?) Is your problem only reproducible with network input or also if you use two input files? Carl Eugen From klingerfranz827 at gmail.com Mon Feb 4 02:27:44 2013 From: klingerfranz827 at gmail.com (Franz Klinger) Date: Mon, 04 Feb 2013 02:27:44 +0100 Subject: [FFmpeg-user] Getting default settings of codec Message-ID: <510F0E90.6060509@googlemail.com> Hello, where can I find the default settings ffmpeg uses for a codec? Franz From mulargui at hotmail.com Mon Feb 4 05:20:02 2013 From: mulargui at hotmail.com (Mauricio Ulargui) Date: Sun, 3 Feb 2013 20:20:02 -0800 Subject: [FFmpeg-user] Transcoding PCM to AAC Message-ID: Hi,I'm transcoding several old videos to MP4/AAC/H264, most of them were recorded using digital cameras. I'm getting an error with those that have PCM audio, below is an output detail. Any suggestion/ideas? ffmpeg -i "video.AVI" -acodec aac -strict experimental -vcodec h264 "video.mp4"ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib 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 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, avi, from 'video.AVI': Duration: 00:00:18.00, start: 0.000000, bitrate: 1084 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 320x240, 10 tbr, 10 tbn, 10 tbc Metadata: title : FUJIFILM AVI STREAM 0100 Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 8000 Hz, mono, u8, 64 kb/s [libx264 @ 03608e00] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 03608e00] profile High, level 1.2 [libx264 @ 03608e00] 264 - core 129 r2245 bc13772 - 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=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 [aac @ 0360f720] Too many bits per frame requested Output #0, mp4, to 'video.mp4': Stream #0:0: Video: h264, yuvj420p, 320x240, q=-1--1, 90k tbn, 10 tbc Metadata: title : FUJIFILM AVI STREAM 0100 Stream #0:1: Audio: aac, 8000 Hz, mono, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Stream #0:1 -> #0:1 (pcm_u8 -> aac) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height From skenton at ou.edu Mon Feb 4 03:27:24 2013 From: skenton at ou.edu (Steve Kenton) Date: Sun, 03 Feb 2013 20:27:24 -0600 Subject: [FFmpeg-user] channel layout for raw pcm16le audio Message-ID: <510F1C8C.90104@ou.edu> I'm trying to understand a problem I'm having reading raw stereo pcm16le audio from a fifo. The channel_layout I specify seems to be ignored and always "guessed" and it always reads 5 seconds of data to probe the format even though I think I've specified everything. The example below uses /dev/zero instead of a fifo as a simple test case. When using real audio data it hangs for 5 seconds or so during the probe. Any idea how to specify the input so completely that the probe can be skipped? Thanks - Steve Kenton ~$ ffmpeg -f s16le -sample_rate 48000 -channels 2 -codec:a pcm_s16le -channel_layout stereo -i /dev/zero -f s16le -codec:a pcm_s16le -y xxx.pcm ffmpeg version git-2013-01-17-c345100 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 16 2013 20:52:04 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 15.100 / 52. 15.100 libavcodec 54. 89.100 / 54. 89.100 libavformat 54. 60.101 / 54. 60.101 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 [s16le @ 0x2b64340] max_analyze_duration 5000000 reached at 5013333 microseconds [s16le @ 0x2b64340] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.0 : stereo Input #0, s16le, from '/dev/zero': Duration: N/A, bitrate: 1536 kb/s Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Output #0, s16le, to 'xxx.pcm': Metadata: encoder : Lavf54.60.101 Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> pcm_s16le) Press [q] to stop, [?] for help size= 1735584kB time=02:34:16.44 bitrate=1536.0kbits/s video:0kB audio:1735584kB subtitle:0 global headers:0kB muxing overhead 0.000000% From onemda at gmail.com Mon Feb 4 12:50:55 2013 From: onemda at gmail.com (Paul B Mahol) Date: Mon, 4 Feb 2013 11:50:55 +0000 Subject: [FFmpeg-user] Getting default settings of codec In-Reply-To: <510F0E90.6060509@googlemail.com> References: <510F0E90.6060509@googlemail.com> Message-ID: On 2/4/13, Franz Klinger wrote: > Hello, > where can I find the default settings ffmpeg uses for a codec? avcodec context and private options, the last one are usually shown in ffmpeg -h full output, the first one are in source code. > Franz > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From soho123.2012 at gmail.com Mon Feb 4 14:00:56 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Mon, 4 Feb 2013 21:00:56 +0800 Subject: [FFmpeg-user] generate stream from WEBCam by ffmpeg Message-ID: Hi all , I try to use ffmpeg and ffserver to send video streaming from usb WEB Cam to remote client. When I try to use a mjpg webcam, and use the command: ffserver -f /etc/ffserver.conf ffmpeg -f video4linux2 -r 30 -s 1280x720 -i /dev/video0 -c copy http://localhost:8090/feed1.ffm it will cause out-of-memory after 3 seconds. I have questions: if there is no any client connect to ffserve, does ffmpeg occupy memory when ffmpeg get video frame from webcam? or in this condition, how about the behavior of fferver? It seems video frame occupy system memory when I start ffmpeg. the attached is ffserver config file, could you kindly give me some hints if there is any error in config file? -------------- next part -------------- A non-text attachment was scrubbed... Name: ffserver_mjpg.zip Type: application/zip Size: 1933 bytes Desc: not available URL: From bbutscheidt at yahoo.de Mon Feb 4 15:20:31 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Mon, 4 Feb 2013 14:20:31 +0000 (GMT) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? In-Reply-To: References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> <1359910887.48506.YahooMailNeo@web133203.mail.ir2.yahoo.com> <1359928529.66948.YahooMailNeo@web133203.mail.ir2.yahoo.com> Message-ID: <1359987631.74786.YahooMailNeo@web133206.mail.ir2.yahoo.com> >________________________________ > From: Carl Eugen Hoyos >To: ffmpeg-user at ffmpeg.org >Sent: Monday, February 4, 2013 12:00 AM >Subject: Re: [FFmpeg-user] Proper way to reverse PAL Speed up? > > >So why are you targeting a frame rate of 24000/1001 >instead of 24fps? Because from what I've learned even BluRay are actually 23.976 and not pure 24fps like cinema. However, 23.976 is nearly 24 fps, so even I don't bother the difference and ntsc film is a well spread standard. But I wouldn't assume that the audio offset I worry about derives from not choosing true 24pfs but 23.976? If you like, I can add examples targeting real 24 fps. >But are you sure that the pitch wasn't changed >by 4% for tv transmission? No, to my knowledge you can't be sure. Normally I would aspect the pitch not be changed but I wondered many times why American actors have these high voices ... > I wonder if it is >a good idea to change the playback speed with >FFmpeg, especially since you can change it at >playback time anyway.) I cannot change the speed on my hardware movie players. They only accept true PAL or ntsc input and play them at the speed proposed with it. And all I tried so far with vlc & Co which means changing speed during playback time lead to poor audio quality. And it would need quite a strong PC to be used to play movies like this. In addition I wouldn't wonder if the combination of asetpts and aresample keeps the pitch. Maybe speeding up or slowing down a video is a senseless task anyway. Still I wonder if I apply the filters setpts and asetpts the right way, which I thought could be applied for this. Kind regards Bernd From infos at madovsky.org Mon Feb 4 15:25:33 2013 From: infos at madovsky.org (Madovsky) Date: Mon, 4 Feb 2013 09:25:33 -0500 Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705><5AB202FA201A429D9DFCBB7DC99B8039@e1705><8C27D8006E8447F599D6EE9BAED37513@e1705> Message-ID: <22A9B94B41854805B9731598E10CAD34@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Sunday, February 03, 2013 11:52 PM Subject: Re: [FFmpeg-user] mix 2 mp4 audio only > Madovsky madovsky.org> writes: > >> ffmpeg -i "rtmp://server/app/live live=1" >> -i "rtmp://rtmp://server/app/live2 live=1" >> -vn -map 0:1 -map 1:1 -y -acodec copy output.flv > > (Is this the same problem you reported originally?) > > Is your problem only reproducible with network > input or also if you use two input files? > > Carl Eugen input files result as the first stream audible only with ffmpeg -i "stream2.mp4" -i "stream1.mp4" -vn -map 0:1 -map 1:1 -y -acodec copy output.mp4 console log ============= ffmpeg -i "stream1.mp4" -i "stream2.mp4" -vn -map 0:1 -map 1:1 -y -acodec copy output.mp4 ffmpeg version N-49564-gd106679 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 3 2013 16:11:33 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'stream1.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Duration: 00:02:34.04, start: 0.000000, bitrate: 811 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 715 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 91 kb/s Metadata: handler_name : SoundHandler Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'stream2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Duration: 00:02:30.79, start: 0.023220, bitrate: 871 kb/s Stream #1:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 776 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #1:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 90 kb/s Metadata: handler_name : SoundHandler Output #0, mp4, to 'output.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Stream #0:0(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 91 kb/s Metadata: handler_name : SoundHandler Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 90 kb/s Metadata: handler_name : SoundHandler Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #1:1 -> #0:1 (copy) Press [q] to stop, [?] for help size= 3489kB time=00:02:33.94 bitrate= 185.7kbits/s video:0kB audio:3386kB subtitle:0 global headers:0kB muxing overhead 3.047452% From cehoyos at ag.or.at Mon Feb 4 15:37:34 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 4 Feb 2013 14:37:34 +0000 (UTC) Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705><5AB202FA201A429D9DFCBB7DC99B8039@e1705><8C27D8006E8447F599D6EE9BAED37513@e1705> <22A9B94B41854805B9731598E10CAD34@e1705> Message-ID: Madovsky madovsky.org> writes: > ffmpeg -i "stream2.mp4" -i "stream1.mp4" -vn > -map 0:1 -map 1:1 -y -acodec copy output.mp4 So you have two input stereo files and one output file that contains two stereo streams. Am I correct that both ffplay ("a") and MPlayer ("#") allow to switch between the two stereo streams in the output file? (And I would assume QT allows you to choose between the two stereo audio streams or does that not work?) It appears that the command does not do what you want - please explain what it is that you want. Carl Eugen From infos at madovsky.org Mon Feb 4 16:23:53 2013 From: infos at madovsky.org (Madovsky) Date: Mon, 4 Feb 2013 10:23:53 -0500 Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705><5AB202FA201A429D9DFCBB7DC99B8039@e1705><8C27D8006E8447F599D6EE9BAED37513@e1705><22A9B94B41854805B9731598E10CAD34@e1705> Message-ID: <7A81A148EF264D128A6A203C5C400A97@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Monday, February 04, 2013 9:37 AM Subject: Re: [FFmpeg-user] mix 2 mp4 audio only > Madovsky madovsky.org> writes: > >> ffmpeg -i "stream2.mp4" -i "stream1.mp4" -vn >> -map 0:1 -map 1:1 -y -acodec copy output.mp4 > > So you have two input stereo files and one output > file that contains two stereo streams. > > Am I correct that both ffplay ("a") and MPlayer ("#") > allow to switch between the two stereo streams in > the output file? > > (And I would assume QT allows you to choose between > the two stereo audio streams or does that not work?) > > It appears that the command does not do what you > want - please explain what it is that you want. > > Carl Eugen my whole goal is to merge 2 rtmp network inputs to one output video/mono audio file without decode encode anything so I tried ffmpeg -i "rtmp://server/app/live1 live=1" -i "rtmp://server/app/live2 live=1" -i -filter_complex "[0:0]pad=682:450:21:105[left]; [left][1:0]overlay=341:105; [0:1][1:1]amerge" -shortest -y output.flv but as I use filter_complex I can't use -acodec copy to avoid decode encoding audio/video and also amerge above create 2.4 s latency between the first and second stream (if I remove amerge it's ok). so I try to figure out how toconcat audio first without encoding and after use a pipe to map it with the live streams with video only another idea ? Thanks Franck From motty.cruz at gmail.com Mon Feb 4 17:16:23 2013 From: motty.cruz at gmail.com (motty cruz) Date: Mon, 4 Feb 2013 08:16:23 -0800 Subject: [FFmpeg-user] ffmpeg x11grab on Mac 10.8.2 Message-ID: Hello I'm having difficouties install ffmpeg with x11grab, I get the following error: ERROR: X11 not found it:ffmpeg admin$ ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaa c --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab --enable-libvorbis ERROR: X11 not found If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem I confirm that I have X11 install: it:~ admin$ locate Xlib.h /System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/X11/Xlib.h /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xlib.h it:~ admin$ Please help me!!! From adamklobukowski at gmail.com Mon Feb 4 17:46:12 2013 From: adamklobukowski at gmail.com (=?UTF-8?B?QWRhbSBLxYJvYnVrb3dza2k=?=) Date: Mon, 04 Feb 2013 17:46:12 +0100 Subject: [FFmpeg-user] Problem with reencoded videos. Message-ID: <510FE5D4.6040808@gmail.com> Hello Executive summary first: I'm encoding videos with ffmpeg, to play them on my Sony Bravia TV via DLNA. They always stop at about 27m40s point and I'm unable to play them further (or rewind over that point. As I do not think I'm able to make Sony fix their firmware, I'm asking for help here. Long story: as Sony TV are a bit picky what they play, I created a bash script to reencode everything into a format that will play: mp4 with h264 video stream. Because I do not like wasting CPU cycles (and reduced quality), I made my script to use 'copy' is source video stream is already h264. Here is the most important part of this script: function encode() { NAME="$1" NEWNAME=${NAME%.*}".mp4" VCODEC="copy" ACODEC="copy" VTEST=`mplayer -msglevel identify=6 -frames 0 "$NAME" 2>&1 | grep -e "ID_VIDEO_FORMAT=H264"` ATEST=`mplayer -msglevel identify=6 -frames 0 "$NAME" 2>&1 | grep -e "ID_AUDIO_FORMAT=MP4A"` # if [ ! -n "$VTEST" ]; then TEST=`mplayer -msglevel identify=6 -frames 0 "$NAME" 2>&1 | grep -e "ID_VIDEO_BITRATE="` BITRATE=$(trim `echo "$TEST" | cut -d= -f2`) if [[ ${BITRATE%.*} -lt "1500000" ]]; then BITRATE=1500000 fi VCODEC='libx264 -b:v '${BITRATE} # fi if [ ! -n "$ATEST" ]; then TEST=`mplayer -msglevel identify=6 -frames 0 "$NAME" 2>&1 | grep -e "ID_AUDIO_BITRATE="` BITRATE=$(trim `echo "$TEST" | cut -d= -f2`) unset ATEST ATEST=`mplayer -msglevel identify=6 -frames 0 "$NAME" 2>&1 | grep -e "ID_AUDIO_FORMAT=8193"` if [ -n "$ATEST" ]; then BITRATE=$((BITRATE/4)) fi ACODEC='aac -ab '${BITRATE} fi ffmpeg -threads 4 -i "$NAME" -vcodec $VCODEC -acodec $ACODEC -strict experimental -f mp4 "$NEWNAME" } (I'm using mplayer because I found it's output easier to parse in shell script, then ffprobe). Aditional info: I tried few DLNA servers (all with transcoding off) and the effect is ok. Files play ok in totem or vlc. What I found out is, that when I force reencoding (always use -vcodec libx264), video will play just fine on my TV! Is it possible to make some 'fix' to have videos that my tv will be able to play and still use 'copy'? Now, an example: original video ffprobe output: ffprobe version git-2012-12-26-a2349dc Copyright (c) 2007-2012 the FFmpeg developers built on Dec 26 2012 19:55:46 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.102 / 54. 50.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.101 / 3. 30.101 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, matroska,webm, from 'file.mkv': Duration: 02:00:22.17, start: 0.000000, bitrate: 6492 kb/s Chapter #0.0: start 0.000000, end 759.759000 Metadata: title : 00:00:00.000 Chapter #0.1: start 759.759000, end 1176.092000 Metadata: title : 00:12:39.759 Chapter #0.2: start 1176.092000, end 1739.571000 Metadata: title : 00:19:36.092 Chapter #0.3: start 1739.571000, end 2568.608000 Metadata: title : 00:28:59.571 Chapter #0.4: start 2568.608000, end 3001.540000 Metadata: title : 00:42:48.608 Chapter #0.5: start 3001.540000, end 3600.055000 Metadata: title : 00:50:01.540 Chapter #0.6: start 3600.055000, end 4149.520000 Metadata: title : 01:00:00.055 Chapter #0.7: start 4149.520000, end 4786.824000 Metadata: title : 01:09:09.520 Chapter #0.8: start 4786.824000, end 5414.117000 Metadata: title : 01:19:46.824 Chapter #0.9: start 5414.117000, end 5940.852000 Metadata: title : 01:30:14.117 Chapter #0.10: start 5940.852000, end 6694.771000 Metadata: title : 01:39:00.852 Chapter #0.11: start 6694.771000, end 7222.173000 Metadata: title : 01:51:34.771 Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) Metadata: title : DTS Stream #0:2(eng): Subtitle: subrip (default) Metadata: title : English Stream #0:3(eng): Subtitle: subrip Metadata: title : English SDH Stream #0:4(eng): Subtitle: subrip Metadata: title : English Commentary ffmpeg with vcodec copy output (I took a liberty of removing most of frame= lines, there were no errors): $ ffmpeg -threads 4 -i file.mkv -vcodec copy -acodec aac -ab 384000 -strict experimental -f mp4 file.mp4 ffmpeg version git-2012-12-26-a2349dc Copyright (c) 2000-2012 the FFmpeg developers built on Dec 26 2012 19:55:46 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.102 / 54. 50.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.101 / 3. 30.101 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, matroska,webm, from 'file.mkv': Duration: 02:00:22.17, start: 0.000000, bitrate: 6492 kb/s Chapter #0.0: start 0.000000, end 759.759000 Metadata: title : 00:00:00.000 Chapter #0.1: start 759.759000, end 1176.092000 Metadata: title : 00:12:39.759 Chapter #0.2: start 1176.092000, end 1739.571000 Metadata: title : 00:19:36.092 Chapter #0.3: start 1739.571000, end 2568.608000 Metadata: title : 00:28:59.571 Chapter #0.4: start 2568.608000, end 3001.540000 Metadata: title : 00:42:48.608 Chapter #0.5: start 3001.540000, end 3600.055000 Metadata: title : 00:50:01.540 Chapter #0.6: start 3600.055000, end 4149.520000 Metadata: title : 01:00:00.055 Chapter #0.7: start 4149.520000, end 4786.824000 Metadata: title : 01:09:09.520 Chapter #0.8: start 4786.824000, end 5414.117000 Metadata: title : 01:19:46.824 Chapter #0.9: start 5414.117000, end 5940.852000 Metadata: title : 01:30:14.117 Chapter #0.10: start 5940.852000, end 6694.771000 Metadata: title : 01:39:00.852 Chapter #0.11: start 6694.771000, end 7222.173000 Metadata: title : 01:51:34.771 Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) Metadata: title : DTS Stream #0:2(eng): Subtitle: subrip (default) Metadata: title : English Stream #0:3(eng): Subtitle: subrip Metadata: title : English SDH Stream #0:4(eng): Subtitle: subrip Metadata: title : English Commentary Output #0, mp4, to 'file.mp4': Metadata: encoder : Lavf54.50.102 Chapter #0.0: start 0.000000, end 759.759000 Metadata: title : 00:00:00.000 Chapter #0.1: start 759.759000, end 1176.092000 Metadata: title : 00:12:39.759 Chapter #0.2: start 1176.092000, end 1739.571000 Metadata: title : 00:19:36.092 Chapter #0.3: start 1739.571000, end 2568.608000 Metadata: title : 00:28:59.571 Chapter #0.4: start 2568.608000, end 3001.540000 Metadata: title : 00:42:48.608 Chapter #0.5: start 3001.540000, end 3600.055000 Metadata: title : 00:50:01.540 Chapter #0.6: start 3600.055000, end 4149.520000 Metadata: title : 01:00:00.055 Chapter #0.7: start 4149.520000, end 4786.824000 Metadata: title : 01:09:09.520 Chapter #0.8: start 4786.824000, end 5414.117000 Metadata: title : 01:19:46.824 Chapter #0.9: start 5414.117000, end 5940.852000 Metadata: title : 01:30:14.117 Chapter #0.10: start 5940.852000, end 6694.771000 Metadata: title : 01:39:00.852 Chapter #0.11: start 6694.771000, end 7222.173000 Metadata: title : 01:51:34.771 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], q=2-31, 23.98 fps, 16k tbn, 1k tbc (default) Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: title : DTS Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (dca -> aac) Press [q] to stop, [?] for help frame= 152 fps=0.0 q=-1.0 size= 1310kB time=00:00:06.27 bitrate=1710.9kbits/s (...) frame=173160 fps=192 q=-1.0 Lsize= 4572079kB time=02:00:22.18 bitrate=5186.0kbits/s video:4391288kB audio:172523kB subtitle:0 global headers:0kB muxing overhead 0.181172% ffprobe output of file encoded with vcodec copy: ffprobe version git-2012-12-26-a2349dc Copyright (c) 2007-2012 the FFmpeg developers built on Dec 26 2012 19:55:46 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.102 / 54. 50.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.101 / 3. 30.101 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 'file.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.50.102 Duration: 02:00:22.22, start: 0.021333, bitrate: 5186 kb/s Chapter #0.0: start 0.000000, end 759.759000 Metadata: title : 00:00:00.000 Chapter #0.1: start 759.759000, end 1176.092000 Metadata: title : 00:12:39.759 Chapter #0.2: start 1176.092000, end 1739.571000 Metadata: title : 00:19:36.092 Chapter #0.3: start 1739.571000, end 2568.608000 Metadata: title : 00:28:59.571 Chapter #0.4: start 2568.608000, end 3001.540000 Metadata: title : 00:42:48.608 Chapter #0.5: start 3001.540000, end 3600.055000 Metadata: title : 00:50:01.540 Chapter #0.6: start 3600.055000, end 4149.520000 Metadata: title : 01:00:00.055 Chapter #0.7: start 4149.520000, end 4786.824000 Metadata: title : 01:09:09.520 Chapter #0.8: start 4786.824000, end 5414.117000 Metadata: title : 01:19:46.824 Chapter #0.9: start 5414.117000, end 5940.852000 Metadata: title : 01:30:14.117 Chapter #0.10: start 5940.852000, end 6694.771000 Metadata: title : 01:39:00.852 Chapter #0.11: start 6694.771000, end 7222.193667 Metadata: title : 01:51:34.771 Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], 4980 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 47.95 tbc Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 195 kb/s Metadata: handler_name : SoundHandler ffmpeg with vcodec libx264 output (I took a liberty of removing most of frame= lines, there were no errors): $ ffmpeg -threads 4 -i file.mkv -vcodec libx264 -b:v 1500000 -acodec aac -ab 384000 -strict experimental -f mp4 file.mp4 ffmpeg version git-2012-12-26-a2349dc Copyright (c) 2000-2012 the FFmpeg developers built on Dec 26 2012 19:55:46 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 12.100 / 52. 12.100 libavcodec 54. 81.100 / 54. 81.100 libavformat 54. 50.102 / 54. 50.102 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.101 / 3. 30.101 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, matroska,webm, from 'file.mkv': Duration: 02:00:22.17, start: 0.000000, bitrate: 6492 kb/s Chapter #0.0: start 0.000000, end 759.759000 Metadata: title : 00:00:00.000 Chapter #0.1: start 759.759000, end 1176.092000 Metadata: title : 00:12:39.759 Chapter #0.2: start 1176.092000, end 1739.571000 Metadata: title : 00:19:36.092 Chapter #0.3: start 1739.571000, end 2568.608000 Metadata: title : 00:28:59.571 Chapter #0.4: start 2568.608000, end 3001.540000 Metadata: title : 00:42:48.608 Chapter #0.5: start 3001.540000, end 3600.055000 Metadata: title : 00:50:01.540 Chapter #0.6: start 3600.055000, end 4149.520000 Metadata: title : 01:00:00.055 Chapter #0.7: start 4149.520000, end 4786.824000 Metadata: title : 01:09:09.520 Chapter #0.8: start 4786.824000, end 5414.117000 Metadata: title : 01:19:46.824 Chapter #0.9: start 5414.117000, end 5940.852000 Metadata: title : 01:30:14.117 Chapter #0.10: start 5940.852000, end 6694.771000 Metadata: title : 01:39:00.852 Chapter #0.11: start 6694.771000, end 7222.173000 Metadata: title : 01:51:34.771 Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) Metadata: title : DTS Stream #0:2(eng): Subtitle: subrip (default) Metadata: title : English Stream #0:3(eng): Subtitle: subrip Metadata: title : English SDH Stream #0:4(eng): Subtitle: subrip Metadata: title : English Commentary [libx264 @ 0x325ad60] using SAR=1/1 [libx264 @ 0x325ad60] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x325ad60] profile High, level 3.1 [libx264 @ 0x325ad60] 264 - core 129 r2 1cffe9f - 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=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'file.mp4': Metadata: encoder : Lavf54.50.102 Chapter #0.0: start 0.000000, end 759.759000 Metadata: title : 00:00:00.000 Chapter #0.1: start 759.759000, end 1176.092000 Metadata: title : 00:12:39.759 Chapter #0.2: start 1176.092000, end 1739.571000 Metadata: title : 00:19:36.092 Chapter #0.3: start 1739.571000, end 2568.608000 Metadata: title : 00:28:59.571 Chapter #0.4: start 2568.608000, end 3001.540000 Metadata: title : 00:42:48.608 Chapter #0.5: start 3001.540000, end 3600.055000 Metadata: title : 00:50:01.540 Chapter #0.6: start 3600.055000, end 4149.520000 Metadata: title : 01:00:00.055 Chapter #0.7: start 4149.520000, end 4786.824000 Metadata: title : 01:09:09.520 Chapter #0.8: start 4786.824000, end 5414.117000 Metadata: title : 01:19:46.824 Chapter #0.9: start 5414.117000, end 5940.852000 Metadata: title : 01:30:14.117 Chapter #0.10: start 5940.852000, end 6694.771000 Metadata: title : 01:39:00.852 Chapter #0.11: start 6694.771000, end 7222.173000 Metadata: title : 01:51:34.771 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x536 [SAR 1:1 DAR 160:67], q=-1--1, 1500 kb/s, 24k tbn, 23.98 tbc (default) Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, 5.1(side), fltp, 384 kb/s (default) Metadata: title : DTS Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (dca -> aac) Press [q] to stop, [?] for help frame= 59 fps=0.0 q=17.0 size= 1kB time=00:00:02.62 bitrate= 4.4kbits/s (...) frame=173160 fps= 15 q=32766.0 Lsize= 1485457kB time=02:00:22.18 bitrate=1684.9kbits/s video:1307036kB audio:172523kB subtitle:0 global headers:0kB muxing overhead 0.398641% [libx264 @ 0x325ad60] frame I:2648 Avg QP:20.55 size: 45677 [libx264 @ 0x325ad60] frame P:92447 Avg QP:22.99 size: 10427 [libx264 @ 0x325ad60] frame B:78065 Avg QP:24.23 size: 3247 [libx264 @ 0x325ad60] consecutive B-frames: 26.5% 36.8% 9.8% 26.9% [libx264 @ 0x325ad60] mb I I16..4: 13.6% 72.4% 14.0% [libx264 @ 0x325ad60] mb P I16..4: 2.6% 7.2% 0.7% P16..4: 43.0% 9.8% 6.0% 0.0% 0.0% skip:30.7% [libx264 @ 0x325ad60] mb B I16..4: 0.1% 0.4% 0.0% B16..8: 43.3% 2.4% 0.4% direct: 1.0% skip:52.4% L0:41.4% L1:55.4% BI: 3.2% [libx264 @ 0x325ad60] final ratefactor: 22.32 [libx264 @ 0x325ad60] 8x8 transform intra:70.2% inter:82.2% [libx264 @ 0x325ad60] coded y,uvDC,uvAC intra: 55.5% 63.9% 23.1% inter: 15.1% 19.5% 0.7% [libx264 @ 0x325ad60] i16 v,h,dc,p: 39% 20% 9% 32% [libx264 @ 0x325ad60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 24% 6% 7% 8% 7% 7% 6% [libx264 @ 0x325ad60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 17% 15% 6% 9% 9% 8% 6% 5% [libx264 @ 0x325ad60] i8c dc,h,v,p: 57% 18% 20% 5% [libx264 @ 0x325ad60] Weighted P-Frames: Y:2.4% UV:1.2% [libx264 @ 0x325ad60] ref P L0: 66.1% 13.6% 14.0% 6.2% 0.1% [libx264 @ 0x325ad60] ref B L0: 85.8% 12.6% 1.6% [libx264 @ 0x325ad60] ref B L1: 96.3% 3.7% [libx264 @ 0x325ad60] kb/s:1482.54 Please help. AdamK From eclipse7 at gmx.net Mon Feb 4 19:04:33 2013 From: eclipse7 at gmx.net (Alexander Strasser) Date: Mon, 4 Feb 2013 19:04:33 +0100 Subject: [FFmpeg-user] FFmpeg at Chemnitzer Linux-Tage Message-ID: <20130204180433.GA2330@akuma> We happily announce that FFmpeg will be represented at `Chemnitzer Linux-Tage' in Chemnitz, Germany. The event will take place on 16th and 17th of March. More information can be found here: http://chemnitzer.linux-tage.de/2013/info/index?cookielang=en We hereby invite you to visit us at our booth located in the Linux-Live area! There we will demonstrate usage of FFmpeg, answer your questions and listen to your problems and wishes. From tracey at archive.org Mon Feb 4 19:35:59 2013 From: tracey at archive.org (Tracey Jaquith) Date: Mon, 4 Feb 2013 10:35:59 -0800 Subject: [FFmpeg-user] ffmpeg x11grab on Mac 10.8.2 In-Reply-To: References: Message-ID: On Feb 4, 2013, at 8:16 AM, motty cruz wrote: > Hello > I'm having difficouties install ffmpeg with x11grab, I get the following > error: > ERROR: X11 not found > > it:ffmpeg admin$ ./configure --enable-gpl --enable-version3 > --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaa > c --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 > --enable-libxvid --enable-x11grab --enable-libvorbis > ERROR: X11 not found > > If you think configure made a mistake, make sure you are using the latest > version from Git. If the latest version fails, report the problem to the > ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. > Include the log file "config.log" produced by configure as this will help > solving the problem > > > I confirm that I have X11 install: > it:~ admin$ locate Xlib.h > /System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/X11/Xlib.h > /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xlib.h > it:~ admin$ pretty easily solvable, once you know! http://support.apple.com/kb/HT5293 -tracey From motty.cruz at gmail.com Mon Feb 4 21:52:08 2013 From: motty.cruz at gmail.com (motty cruz) Date: Mon, 4 Feb 2013 12:52:08 -0800 Subject: [FFmpeg-user] ffmpeg x11grab on Mac 10.8.2 In-Reply-To: References: Message-ID: Thanks replying as you can see in the error log below; X11 is already installed here is the beggining of config.log on /ffmpeg it:ffmpeg admin$ vi config.log # ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid --enable-x11grab --enable-libvorbis ALL_COMPONENTS=' here is the end of the file: 1 #include 2 int x; END /var/folders/1d/pz69mp_x34q6y_xc2x0zhl_80000gn/T//ffconf.VnIlD6Ag.c gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -mdynamic-no-pic -fomit-frame-pointer -fPIC -D_GNU_SOURCE=1 -D_THREAD_SAFE -I/opt/local/include/SDL -E -o /var/folders/1d/pz69mp_x34q6y_xc2x0zhl_80000gn/T//ffconf.x1OdhYAQ.o /var/folders/1d/pz69mp_x34q6y_xc2x0zhl_80000gn/T//ffconf.VnIlD6Ag.c /var/folders/1d/pz69mp_x34q6y_xc2x0zhl_80000gn/T//ffconf.VnIlD6Ag.c:1:22: error: X11/Xlib.h: No such file or directory ERROR: X11 not found when i do a locate X11: /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11 /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/X.h /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xatom.h /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xfuncproto.h /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xlib.h I think is looking in the wrong directory, I don't know how to fix that problem: Thanks, On Mon, Feb 4, 2013 at 10:35 AM, Tracey Jaquith wrote: > > > On Feb 4, 2013, at 8:16 AM, motty cruz wrote: > > > Hello > > I'm having difficouties install ffmpeg with x11grab, I get the following > > error: > > ERROR: X11 not found > > > > it:ffmpeg admin$ ./configure --enable-gpl --enable-version3 > > --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaa > > c --enable-libfaac --enable-libmp3lame --enable-libtheora > --enable-libx264 > > --enable-libxvid --enable-x11grab --enable-libvorbis > > ERROR: X11 not found > > > > If you think configure made a mistake, make sure you are using the latest > > version from Git. If the latest version fails, report the problem to the > > ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. > > Include the log file "config.log" produced by configure as this will help > > solving the problem > > > > > > I confirm that I have X11 install: > > it:~ admin$ locate Xlib.h > > /System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/X11/Xlib.h > > /System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/Xlib.h > > it:~ admin$ > > > pretty easily solvable, once you know! > > http://support.apple.com/kb/HT5293 > > -tracey > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From dark3251 at gmail.com Mon Feb 4 22:38:41 2013 From: dark3251 at gmail.com (Marty Sullivan) Date: Mon, 4 Feb 2013 16:38:41 -0500 Subject: [FFmpeg-user] Copying a rectangular area of an AVFrame Message-ID: I am trying to pull out a rectangular area of an AVFrame and have started on a function that will do so. I'm only interested in using AVFrames that are format PIX_FMT_RGB24. I may be reinventing the wheel a bit here too, so please jump in if there is already a function to do this. So far my function looks like this: AVFrame * getRGBsection(AVFrame *pFrameRGB, const int start_x, const int start_y, const int w, const int h) { AVFrame *pFrameSect; int numBytes; pFrameSect = avcodec_alloc_frame(); numBytes = avpicture_get_size(PIX_FMT_RGB24, w, h); mb_buffer = (uint8_t *) av_malloc(numBytes * sizeof(uint8_t)); avpicture_fill((AVPicture *) pFrameSect, mb_buffer, PIX_FMT_RGB24, w, h); int curY, curX, i = 0; for (curY = start_y ; curY < (start_y + h); curY++) { for (curX = start_x; curX < (start_x + w); curX++) { int curIndex = curX * 3 + curY * pFrameRGB->linesize[0]; pFrameSect->data[0][i] = pFrameRGB->data[0][curIndex]; pFrameSect->data[0][i + 1] = pFrameRGB->data[0][curIndex + 1]; pFrameSect->data[0][i + 2] = pFrameRGB->data[0][curIndex + 2]; i += 3; } } return pFrameSect; } The function seems to work when I start at (0,0) (I think) but when I move elsewhere in the image it outputs colors similar to what should be there but isn't right. I think I am very close here, can anyone offer guidance? From cehoyos at ag.or.at Tue Feb 5 00:58:22 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 4 Feb 2013 23:58:22 +0000 (UTC) Subject: [FFmpeg-user] Problem with reencoded videos. References: <510FE5D4.6040808@gmail.com> Message-ID: Adam K?obukowski gmail.com> writes: > Executive summary first: I'm encoding videos with ffmpeg, > to play them on my Sony Bravia TV via DLNA. They always > stop at about 27m40s point and I'm unable to play them > further Are there videos that play longer or could this be a general limitation? Carl Eugen From infos at madovsky.org Tue Feb 5 02:41:33 2013 From: infos at madovsky.org (Madovsky) Date: Mon, 4 Feb 2013 20:41:33 -0500 Subject: [FFmpeg-user] send variables to RTMP server like NetConnection Message-ID: <49860636069B4BF2BEE784B510F3AB11@e1705> Hi, I have a main.asc (FMS ssas) with 5 private vars received on the onConnect function so with a client NetConnection I do nc.connect("server", privateVar1,privateVar2,...) but how to do that with ffmpeg ? I tried ffmpeg -i "rtmp://server/app/live1?privateVar1=test live=1" -y output.flv -> bad ffmpeg -i "rtmp://server/app/live1 live=1 privateVar1=test" -y output.flv -> bad thanks Franck From soho123.2012 at gmail.com Tue Feb 5 03:15:53 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 5 Feb 2013 10:15:53 +0800 Subject: [FFmpeg-user] out of memory when using "copy" Message-ID: Hi All, I add a Stream in my ffserver config as below: Feed feed1.ffm Format mjpeg VideoFrameRate 30 VideoSize 1280x720 VideoBitRate 256 VideoBufferSize 400 #VideoGopSize 3 VideoIntraOnly #NoAudio #Strict -1 The out of memory was happened. Does someone have idea? the log that I capture below: [quote]# ffserver -d -f /etc/ffserver.conf& ffserver version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 4 2013 17:53:25 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=rsdk-linux- --arch=mips --target-os=linux --disable -w32threads --disable-os2threads --disable-ffplay --disable-postproc --disable-mips32r2 --disable-yasm --d isable-vis --disable-altivec --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small --pr efix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable -encoders --enable-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4 --disable-decoders --enable-d ecoder=mjpeg --enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo --enable-encoder=rawvid eo --enable-decoder=vorbis --enable-encoder=vorbis --disable-hwaccels --disable-muxers --disable-demuxers --enable-muxer=rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov --enable-muxer=yuv4mpe gpipe --enable-muxer=rtp --enable-muxer=flv --enable-muxer=rtsp --ena 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 # Tue Feb 5 07:26:07 2013 FFserver started. # ffmpeg -f video4linux2 -r 30 -s 1280x720 -i /dev/video0 -c copy -f mpegts http ://localhost:8090/feed1.ffm ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 4 2013 17:53:25 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=rsdk-linux- --arch=mips --target-os=linux --disable -w32threads --disable-os2threads --disable-ffplay --disable-postproc --disable-mips32r2 --disable-yasm --d isable-vis --disable-altivec --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small --pr efix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable -encoders --enable-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4 --disable-decoders --enable-d ecoder=mjpeg --enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo --enable-encoder=rawvid eo --enable-decoder=vorbis --enable-encoder=vorbis --disable-hwaccels --disable-muxers --disable-demuxers --enable-muxer=rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov --enable-muxer=yuv4mpe gpipe --enable-muxer=rtp --enable-muxer=flv --enable-muxer=rtsp --ena 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 [video4linux2,v4l2 @ 0x7d61c0] The driver changed the time per frame from 1/30 to 1/10 ffmpeg invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 uptime: 45031.34 44842.42 Call Trace:[<80015960>] 0x80015960 [<80005fb8>] 0x80005fb8 [<80005fb8>] 0x80005fb8 [<8003c864>] 0x8003c864 [<8002d9c8>] 0x8002d9c8 [<8003cb90>] 0x8003cb90 [<8001e93c>] 0x8001e93c [<8003cc3c>] 0x8003cc3c [<8003fd08>] 0x8003fd08 [<80054ee8>] 0x80054ee8 [<80054fdc>] 0x80054fdc [<801f182c>] 0x801f182c [<801f182c>] 0x801f182c [<80055108>] 0x80055108 [<801f182c>] 0x801f182c [<801f182c>] 0x801f182c [<80036d28>] 0x80036d28 [<801f2fc0>] 0x801f2fc0 [<80000420>] 0x80000420 [<8004a7c4>] 0x8004a7c4 [<801e6524>] 0x801e6524 [<8005d71c>] 0x8005d71c [<8004bbe4>] 0x8004bbe4 [<800f5960>] 0x800f5960 [<800f5d8c>] 0x800f5d8c [<800fdde4>] 0x800fdde4 [<80067d48>] 0x80067d48 [<800faf04>] 0x800faf04 [<800f422c>] 0x800f422c [<8003505c>] 0x8003505c [<80067df4>] 0x80067df4 [<8005880c>] 0x8005880c [<800086f4>] 0x800086f4 [<80001330>] 0x80001330 Mem-Info: Normal per-cpu: CPU 0: hi: 18, btch: 3 usd: 16 Active_anon:160 active_file:3 inactive_anon:147 inactive_file:0 unevictable:312 dirty:0 writeback:0 unstable:0 free:142 slab:2068 mapped:0 pagetables:36 bounce:0 Normal free:568kB min:1024kB low:512kB high:580kB active_anon:640kB inactive_anon:588kB active_file:12kB i nactive_file:0kB unevictable:1248kB present:65024kB pages_scanned:1779 all_unreclaimable? no lowmem_reserve[]: 0 0 Normal: 8*4kB 5*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 568kB 315 total pagecache pages 16384 pages RAM 2308 pages reserved 3 pages shared 13087 pages non-shared Out of memory: kill process 992 (ffmpeg) score 73 or a child Killed process 992 (ffmpeg) ffmpeg: page allocation failure. order:0, mode:0xd0 uptime: 45031.74 44842.42 Call Trace:[<80015960>] 0x80015960 [<80005fb8>] 0x80005fb8 [<80005fb8>] 0x80005fb8 [<8003fdb0>] 0x8003fdb0 [<80054ee8>] 0x80054ee8 [<80054fdc>] 0x80054fdc [<801f182c>] 0x801f182c [<801f182c>] 0x801f182c [<80055108>] 0x80055108 [<801f182c>] 0x801f182c [<801f182c>] 0x801f182c [<80036d28>] 0x80036d28 [<801f2fc0>] 0x801f2fc0 [<80000420>] 0x80000420 [<8004a7c4>] 0x8004a7c4 [<801e6524>] 0x801e6524 [<8005d71c>] 0x8005d71c [<8004bbe4>] 0x8004bbe4 [<800f5960>] 0x800f5960 [<800f5d8c>] 0x800f5d8c [<800fdde4>] 0x800fdde4 [<80067d48>] 0x80067d48 [<800faf04>] 0x800faf04 [<800f422c>] 0x800f422c [<8003505c>] 0x8003505c [<80067df4>] 0x80067df4 [<8005880c>] 0x8005880c [<800086f4>] 0x800086f4 [<80001330>] 0x80001330 Mem-Info: Normal per-cpu: CPU 0: hi: 18, btch: 3 usd: 0 Active_anon:160 active_file:3 inactive_anon:147 inactive_file:0 unevictable:312 dirty:0 writeback:0 unstable:0 free:0 slab:2068 mapped:0 pagetables:36 bounce:0 Normal free:0kB min:1024kB low:512kB high:580kB active_anon:640kB inactive_anon:588kB active_file:12kB ina ctive_file:0kB unevictable:1248kB present:65024kB pages_scanned:1779 all_unreclaimable? no lowmem_reserve[]: 0 0 Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB 315 total pagecache pages 16384 pages RAM 2308 pages reserved 3 pages shared 13245 pages non-shared ffmpeg: page allocation failure. order:0, mode:0xd0[/quote] Does someone have idae about why ffmpeg occpuy memory when ffmpeg get frame, but not release memory if no any client connected? From adamklobukowski at gmail.com Tue Feb 5 07:58:51 2013 From: adamklobukowski at gmail.com (Adam Klobukowski) Date: Tue, 5 Feb 2013 07:58:51 +0100 Subject: [FFmpeg-user] Problem with reencoded videos. In-Reply-To: References: <510FE5D4.6040808@gmail.com> Message-ID: 2013/2/5 Carl Eugen Hoyos > Adam K?obukowski gmail.com> writes: > > > Executive summary first: I'm encoding videos with ffmpeg, > > to play them on my Sony Bravia TV via DLNA. They always > > stop at about 27m40s point and I'm unable to play them > > further > > Are there videos that play longer or could this > be a general limitation? > There are videos that play longer (it seems that this affect only videos with 1h+ playing length, everything shorter plays just fine (and I'm unsure where the limiting point is)). I also just discovered that full reencoding (-vcodec libx264) doesn't always help - sometimes it does, sometimes it does not. -- Semper Fidelis Adam Klobukowski adamklobukowski at gmail.com From 1248283536 at qq.com Tue Feb 5 08:24:18 2013 From: 1248283536 at qq.com (=?gb18030?B?y66+ssH3ye4=?=) Date: Tue, 5 Feb 2013 15:24:18 +0800 Subject: [FFmpeg-user] grap microphone voice Message-ID: in my computer , aplay -l root at debian:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: ALC660-VD Analog [ALC660-VD Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 6: Si3054 Modem [Si3054 Modem] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: sc [madsn sc], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 why the command get nothing ? ffmpeg -f oss -i /dev/dsp wheer.mp3 From cehoyos at ag.or.at Tue Feb 5 09:32:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 08:32:20 +0000 (UTC) Subject: [FFmpeg-user] grap microphone voice References: Message-ID: ???? <1248283536 qq.com> writes: > root debian:~# aplay -l (Remember that the "a" in aplay stands for alsa) > why the command get nothing ? > > ffmpeg -f oss -i /dev/dsp wheer.mp3 Complete, uncut console output missing. Carl Eugen From cehoyos at ag.or.at Tue Feb 5 09:33:33 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 08:33:33 +0000 (UTC) Subject: [FFmpeg-user] Problem with reencoded videos. References: <510FE5D4.6040808@gmail.com> Message-ID: Adam Klobukowski gmail.com> writes: > I also just discovered that full reencoding (-vcodec libx264) > doesn't always help - sometimes it does, sometimes it does not. Then I suggest you "tune" / "profile" your encoding command to use less features that the screen does not understand. Carl Eugen From cehoyos at ag.or.at Tue Feb 5 09:35:02 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 08:35:02 +0000 (UTC) Subject: [FFmpeg-user] Transcoding PCM to AAC References: Message-ID: Mauricio Ulargui hotmail.com> writes: > [aac @ 0360f720] Too many bits per frame requested Set a lower bitrate (for example "-ab 64k") Carl Eugen From cehoyos at ag.or.at Tue Feb 5 09:39:51 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 08:39:51 +0000 (UTC) Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705><5AB202FA201A429D9DFCBB7DC99B8039@e1705><8C27D8006E8447F599D6EE9BAED37513@e1705><22A9B94B41854805B9731598E10CAD34@e1705> <7A81A148EF264D128A6A203C5C400A97@e1705> Message-ID: Madovsky madovsky.org> writes: > ffmpeg -i "rtmp://server/app/live1 live=1" > -i "rtmp://server/app/live2 live=1" -i > -filter_complex "[0:0]pad=682:450:21:105[left]; > [left][1:0]overlay=341:105; [0:1][1:1]amerge" > -shortest -y output.flv > > but as I use filter_complex I can't use -acodec copy > to avoid decode encoding audio/video Yes, this is correct. > and also amerge above create 2.4 s latency between > the first and second stream (if I remove amerge it's ok). Sorry if you already answered this: Is this problem (that there is an additional latency) also reproducible with two files as input? Carl Eugen From cehoyos at ag.or.at Tue Feb 5 09:36:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 08:36:56 +0000 (UTC) Subject: [FFmpeg-user] channel layout for raw pcm16le audio References: <510F1C8C.90104@ou.edu> Message-ID: Steve Kenton ou.edu> writes: > Any idea how to specify the input so completely that > the probe can be skipped? No (you can use -channel_layout stereo with a newer version but it will not help). But I suspect -probesize does what you need. Carl Eugen From adamklobukowski at gmail.com Tue Feb 5 10:05:26 2013 From: adamklobukowski at gmail.com (Adam Klobukowski) Date: Tue, 5 Feb 2013 10:05:26 +0100 Subject: [FFmpeg-user] Problem with reencoded videos. In-Reply-To: References: <510FE5D4.6040808@gmail.com> Message-ID: 2013/2/5 Carl Eugen Hoyos > Adam Klobukowski gmail.com> writes: > > > I also just discovered that full reencoding (-vcodec libx264) > > doesn't always help - sometimes it does, sometimes it does not. > > Then I suggest you "tune" / "profile" your encoding > command to use less features that the screen does > not understand. > > Any suggestions on what I should change? My best guess before was some kind of container problem (because problem happens always around 27m40s) but I do not know any tools to analyze that. -- Semper Fidelis Adam Klobukowski adamklobukowski at gmail.com From cehoyos at ag.or.at Tue Feb 5 10:28:59 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 09:28:59 +0000 (UTC) Subject: [FFmpeg-user] Problem with reencoded videos. References: <510FE5D4.6040808@gmail.com> Message-ID: Adam Klobukowski gmail.com> writes: > > Then I suggest you "tune" / "profile" your encoding > > command to use less features that the screen does > > not understand. > > > Any suggestions on what I should change? Force constrained baseline and a low video bitrate. > My best guess before was some kind of container > problem (because problem happens always around > 27m40s) but I do not know any tools to analyze that. (I thought some files play longer?) Did you already test with other software players (WMP, QT)? Carl Eugen From adamklobukowski at gmail.com Tue Feb 5 10:37:39 2013 From: adamklobukowski at gmail.com (Adam Klobukowski) Date: Tue, 5 Feb 2013 10:37:39 +0100 Subject: [FFmpeg-user] Problem with reencoded videos. In-Reply-To: References: <510FE5D4.6040808@gmail.com> Message-ID: 2013/2/5 Carl Eugen Hoyos > Adam Klobukowski gmail.com> writes: > > > > Then I suggest you "tune" / "profile" your encoding > > > command to use less features that the screen does > > > not understand. > > > > > Any suggestions on what I should change? > > Force constrained baseline and a low video bitrate. > > > My best guess before was some kind of container > > problem (because problem happens always around > > 27m40s) but I do not know any tools to analyze that. > > (I thought some files play longer?) > > Yes. All that are shorter then 1h and some that are longer then 1h30m (minority). All encoded with the same settings. > Did you already test with other software players > (WMP, QT)? I run only Linux, I tried Linux players. -- Semper Fidelis Adam Klobukowski adamklobukowski at gmail.com From asorti6 at gmail.com Tue Feb 5 11:31:37 2013 From: asorti6 at gmail.com (Owen Jones) Date: Tue, 5 Feb 2013 10:31:37 +0000 Subject: [FFmpeg-user] pts/dts error using reset_timestamps while splitting a DVD In-Reply-To: <34DCE8A9-11FE-4F71-8901-9F1B3F489249@gmail.com> References: <5DC04E53-99CC-499A-BBF2-F1F3FA1507C3@gmail.com> <34DCE8A9-11FE-4F71-8901-9F1B3F489249@gmail.com> Message-ID: On 23 Jan 2013, at 10:08, Carl Eugen Hoyos wrote: > If you use the segmenting on the original vob file, do > you see the same error? I've rebuilt ffmpeg again with I think the latest git version. I'm still getting the error running against the raw vob file copied from DVD. I've also tried using -ss instead and this works fine. I could use this as an alternative (with -t) but it will be very clumsy since I need to make a lot of splits. I'd still really appreciate a solution to the segmenting problem if there is one... beefy:Desktop riots$ ffmpeg -i VTS_01_1.VOB -codec copy -map 0 -f segment -segment_times 0:1:0 -reset_timestamps 1 split_%02d.mov ffmpeg version 1.1.git-103a2c2 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 09:17:52 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpeg @ 0x7fbdb3806600] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpeg, from 'VTS_01_1.VOB': Duration: 00:00:10.60, start: 0.235211, bitrate: 803800 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, 256 kb/s [mov @ 0x7fbdb3831c00] track 1: codec frame size is not set Output #0, segment, to 'split_%02d.mov': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 25 tbc Stream #0:1: Audio: ac3, 48000 Hz, stereo, 256 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mov @ 0x7fbdb3831c00] track 1: codec frame size is not set [mov @ 0x7fbdb3831c00] pts (-5376) < dts (384) in stream 1 av_interleaved_write_frame(): Invalid argument beefy:Desktop riots$ ffmpeg -i VTS_01_1.VOB -codec copy -ss 0:1:0 -y split.mov ffmpeg version 1.1.git-103a2c2 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 09:17:52 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpeg @ 0x7fde02006600] max_analyze_duration 5000000 reached at 5000000 microseconds Input #0, mpeg, from 'VTS_01_1.VOB': Duration: 00:00:10.60, start: 0.235211, bitrate: 803800 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, 256 kb/s [mov @ 0x7fde02033a00] track 1: codec frame size is not set Output #0, mov, to 'split.mov': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: mpeg2video (m2v1 / 0x3176326D), yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 90k tbc Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, 256 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=45549 fps=3009 q=-1.0 Lsize= 977861kB time=00:30:22.07 bitrate=4396.4kbits/s video:919682kB audio:56940kB subtitle:0 global headers:0kB muxing overhead 0.126961% Regards, Owen From battistel at gmail.com Tue Feb 5 12:20:42 2013 From: battistel at gmail.com (Massimo Battistel) Date: Tue, 5 Feb 2013 12:20:42 +0100 Subject: [FFmpeg-user] [ffmpeg-user] Unsupported color space Message-ID: hi, I'm having troubles capturing from decklink in HD (and some ntsc formats). PAL sd video has no problems. Command line: ffmpeg -f dshow -list_options true -i video="Decklink Video Capture (2)" Output: ffmpeg version N-49527-g985e93a Copyright (c) 2000-2013 the FFmpeg developers built on Feb 1 2013 18:49:49 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.100 / 3. 35.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [dshow @ 000000000048dd20] DirectShow video device options [dshow @ 000000000048dd20] Pin "Capture" [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=29.97 max s=720x486 fps=29.97 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=23.976 max s=720x486 fps=23.976 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x576 fps=25 max s=720x576 fps=25 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1920x1080 fps=23.976 max s=1920x1080 fps=23.976 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1920x1080 fps=24 max s=1920x1080 fps=24 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1920x1080 fps=25 max s=1920x1080 fps=25 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1920x1080 fps=30 max s=1920x1080 fps=30 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1280x720 fps=50 max s=1280x720 fps=50 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402 [dshow @ 000000000048dd20] unknown compression type 0x43594448 min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=720x486 fps=29.97 max s=720x486 fps=29.97 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=720x486 fps=23.976 max s=720x486 fps=23.976 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=720x576 fps=25 max s=720x576 fps=25 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1920x1080 fps=23.976 max s=1920x1080 fps=23.976 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1920x1080 fps=24 max s=1920x1080 fps=24 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1920x1080 fps=25 max s=1920x1080 fps=25 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1920x1080 fps=30 max s=1920x1080 fps=30 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1280x720 fps=50 max s=1280x720 fps=50 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402 [dshow @ 000000000048dd20] unknown compression type 0x30313276 min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002 video=Decklink Video Capture (2): Immediate exit requested ############# ffplay output #################### ffplay -f dshow -video_size 1920x1080 -i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)" ffplay version N-49527-g985e93a Copyright (c) 2003-2013 the FFmpeg developers built on Feb 1 2013 18:49:49 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 17.100 / 52. 17.100 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.100 / 3. 35.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [dshow @ 00000000006b5bc0] Unknown compression type. Please report verbose (-v 9) debug information. video=Decklink Video Capture (2):audio=Decklink Audio Capture (2): Not yet implemented in FFmpeg, patches welcome Using directshow tool graphstudio "type 0x43594448" seems to be an HDYC color space. Is it possibile to support it? thanks, Massimo From cehoyos at ag.or.at Tue Feb 5 13:19:28 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 12:19:28 +0000 (UTC) Subject: [FFmpeg-user] [ffmpeg-user] Unsupported color space References: Message-ID: Massimo Battistel gmail.com> writes: > I'm having troubles capturing from decklink in HD (and some > ntsc formats). PAL sd video has no problems. Does this patch help? http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/158268 Carl Eugen From infos at madovsky.org Tue Feb 5 15:04:59 2013 From: infos at madovsky.org (Madovsky) Date: Tue, 5 Feb 2013 09:04:59 -0500 Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705><5AB202FA201A429D9DFCBB7DC99B8039@e1705><8C27D8006E8447F599D6EE9BAED37513@e1705><22A9B94B41854805B9731598E10CAD34@e1705><7A81A148EF264D128A6A203C5C400A97@e1705> Message-ID: <7EB18DC62E9C433A970E94FD3955D82F@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Tuesday, February 05, 2013 3:39 AM Subject: Re: [FFmpeg-user] mix 2 mp4 audio only > Madovsky madovsky.org> writes: > >> ffmpeg -i "rtmp://server/app/live1 live=1" >> -i "rtmp://server/app/live2 live=1" -i >> -filter_complex "[0:0]pad=682:450:21:105[left]; >> [left][1:0]overlay=341:105; [0:1][1:1]amerge" >> -shortest -y output.flv >> >> but as I use filter_complex I can't use -acodec copy >> to avoid decode encoding audio/video > > Yes, this is correct. > >> and also amerge above create 2.4 s latency between >> the first and second stream (if I remove amerge it's ok). > Sorry if you already answered this: > Is this problem (that there is an additional latency) > also reproducible with two files as input? no, it's reproducible only with rtmp inputs thanks > Carl Eugen Franck From cehoyos at ag.or.at Tue Feb 5 15:47:52 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 14:47:52 +0000 (UTC) Subject: [FFmpeg-user] mix 2 mp4 audio only References: <9875B908B02A47F892AA0F43319A671E@e1705><5AB202FA201A429D9DFCBB7DC99B8039@e1705><8C27D8006E8447F599D6EE9BAED37513@e1705><22A9B94B41854805B9731598E10CAD34@e1705><7A81A148EF264D128A6A203C5C400A97@e1705> <7EB18DC62E9C433A970E94FD3955D82F@e1705> Message-ID: Madovsky madovsky.org> writes: > > Madovsky madovsky.org> writes: > > > >> ffmpeg -i "rtmp://server/app/live1 live=1" > >> -i "rtmp://server/app/live2 live=1" -i > >> -filter_complex "[0:0]pad=682:450:21:105[left]; > >> [left][1:0]overlay=341:105; [0:1][1:1]amerge" > >> -shortest -y output.flv > >> > >> but as I use filter_complex I can't use -acodec copy > >> to avoid decode encoding audio/video > > > > Yes, this is correct. > > > >> and also amerge above create 2.4 s latency between > >> the first and second stream (if I remove amerge it's ok). > > Sorry if you already answered this: > > Is this problem (that there is an additional latency) > > also reproducible with two files as input? > > no, it's reproducible only with rtmp inputs If you don't use amerge but remux the audio streams into separate mov streams, does the resulting file show the desync if you change streams at playback? ffmpeg -i rtmp... -i rtmp... -map 0:1 -map 1:1 -acodec copy out.mov Carl Eugen From acct_reg at fireslug.com Tue Feb 5 16:50:55 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Tue, 05 Feb 2013 21:20:55 +0530 Subject: [FFmpeg-user] need help encoding for HTML5 video and iphone Message-ID: <51112A5F.9000502@fireslug.com> Hello everyone, My client has raw uncompressed files that are about 1 GB per minute. Since these files are too big to upload to our server, I want him to create reasonably high quality versions that I can use as the master source file for creating ogv, webm and mp4 files for the web. What command should I recommend when asking him to do this? I want the video file he sends me to be of relatively high quality so that I can play around with it and get the best outcome for web delivery. For example, I am aiming for about 1 GB per 30 minutes. Also, what is the best format that he should give this to me in? Once I get the source file, I am thinking of running something like this to get an iphone compatible mp4: ffmpeg -y -i in.ext -filter:v scale=640:360 \ -c:v libx264 -preset:v slow -profile:v baseline \ -x264opts level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1 \ -b:v 500k -r:v 25/1 -force_fps -movflags faststart \ -c:a libfaac -b:a 80k -pass x out.mp4 The above is meant for ideal iOS (ipad, iphone, etc..) output. What are some good settings that I could use for ogv, webm and also perhaps another version of mp4 for web browsers. Your suggestions and advice is greatly appreciated! Best Regards, Antony From cehoyos at ag.or.at Tue Feb 5 17:01:59 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 16:01:59 +0000 (UTC) Subject: [FFmpeg-user] need help encoding for HTML5 video and iphone References: <51112A5F.9000502@fireslug.com> Message-ID: Antony Peiris fireslug.com> writes: > I want him to create reasonably high quality versions > that I can use as the master source file for creating > ogv, webm and mp4 files for the web. What command > should I recommend when asking him to do this? The following are mostly equivalent quality-wise, mpeg4 should produce smaller files than mpeg1: $ ffmpeg -i input -qscale 2 -acodec ac3 -ab 640k out.mpg $ ffmpeg -i input -qscale 2 -vcodec mpeg4 -ab 640k out.avi (And I am sure you will find mov and mkv equivalents) Carl Eugen From cehoyos at ag.or.at Tue Feb 5 17:54:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 16:54:41 +0000 (UTC) Subject: [FFmpeg-user] need help encoding for HTML5 video and iphone References: <51112A5F.9000502@fireslug.com> Message-ID: Carl Eugen Hoyos ag.or.at> writes: > The following are mostly equivalent quality-wise, mpeg4 > should produce smaller files than mpeg1: > $ ffmpeg -i input -qscale 2 -acodec ac3 -ab 640k out.mpg This should have been: $ ffmpeg -i input -qscale 2 -mbd 2 -acodec ac3 -ab 640k out.mpg > $ ffmpeg -i input -qscale 2 -vcodec mpeg4 -ab 640k out.avi Carl Eugen From jsalz1 at ymail.com Tue Feb 5 17:59:05 2013 From: jsalz1 at ymail.com (Josh Salz) Date: Tue, 5 Feb 2013 08:59:05 -0800 (PST) Subject: [FFmpeg-user] can ffmpeg use acm codecs Message-ID: <1360083545.9644.YahooMailNeo@web142501.mail.bf1.yahoo.com> hi i want to use acm mp3 codec i have paid for and stream mic audio via RTP is it posable to do that via ffmpeg and if so how thanks josh From cehoyos at ag.or.at Tue Feb 5 18:36:34 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 17:36:34 +0000 (UTC) Subject: [FFmpeg-user] can ffmpeg use acm codecs References: <1360083545.9644.YahooMailNeo@web142501.mail.bf1.yahoo.com> Message-ID: Josh Salz ymail.com> writes: > i want to use acm mp3 codec i have paid for and > stream mic audio via RTP is it posable to do that > via ffmpeg and if so how FFmpeg contains a (actually two) mp3 decoder. If you find any problems with it, please report them! (A patch that adds support for dynamic loading of binary decoders may be accepted, but I don't think mp3 is a good reason to work on such a patch, it does not look like a usecase that even remotely makes sense.) Carl Eugen From jsalz1 at ymail.com Tue Feb 5 18:42:51 2013 From: jsalz1 at ymail.com (Josh Salz) Date: Tue, 5 Feb 2013 09:42:51 -0800 (PST) Subject: [FFmpeg-user] can ffmpeg use acm codecs In-Reply-To: References: <1360083545.9644.YahooMailNeo@web142501.mail.bf1.yahoo.com> Message-ID: <1360086171.30338.YahooMailNeo@web142503.mail.bf1.yahoo.com> well i am trying to encode live mp3 with a hardware codec that emulates a acm codec and stream it via rtp? i can stream via shoutcast and icecast but i want to do a muticast rtp stream josh ________________________________ From: Carl Eugen Hoyos To: ffmpeg-user at ffmpeg.org Sent: Tuesday, February 5, 2013 12:36 PM Subject: Re: [FFmpeg-user] can ffmpeg use acm codecs Josh Salz ymail.com> writes: > i want to use acm mp3 codec i have paid for and > stream mic audio via RTP is it posable to do that > via ffmpeg and if so how FFmpeg contains a (actually two) mp3 decoder. If you find any problems with it, please report them! (A patch that adds support for dynamic loading of binary decoders may be accepted, but I don't think mp3 is a good reason to work on such a patch, it does not look like a usecase that even remotely makes sense.) Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From stephane.erard at gmail.com Tue Feb 5 18:57:13 2013 From: stephane.erard at gmail.com (=?ISO-8859-1?Q?St=E9phane?=) Date: Tue, 5 Feb 2013 18:57:13 +0100 Subject: [FFmpeg-user] Using ffmpeg as replacement of mp4split Message-ID: Hello Is it possible ? Generating self contained chunked mp4 video, ismv and m3u8 fies to use with apache mod smooth streaming ? Thank you ! Le 5 f?vr. 2013 18:37, "Carl Eugen Hoyos" a ?crit : > Josh Salz ymail.com> writes: > > > i want to use acm mp3 codec i have paid for and > > stream mic audio via RTP is it posable to do that > > via ffmpeg and if so how > > FFmpeg contains a (actually two) mp3 decoder. > If you find any problems with it, please report them! > > (A patch that adds support for dynamic loading of > binary decoders may be accepted, but I don't think > mp3 is a good reason to work on such a patch, it does > not look like a usecase that even remotely makes sense.) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From vadimkantorov at gmail.com Tue Feb 5 20:42:52 2013 From: vadimkantorov at gmail.com (Vadim Kantorov) Date: Tue, 5 Feb 2013 20:42:52 +0100 Subject: [FFmpeg-user] Visualize / extract motion vectors for VP8 Message-ID: Hi, I've learned to visualize motion vectors through "ffplay -vismv 1 video.avi" or to extract them through the "motion_val" field. However, neither of the methods work when I use a VP8 video. I selected the ffvp8 decoder through "avcodec_find_decoder_by_name". Both "motion_val" and "mb_type" fields are empty. Is there a way to access the motion vectors without hacking into ffvp8? Thanks, -- Vadim Kantorov From vvubin at gmail.com Tue Feb 5 23:23:54 2013 From: vvubin at gmail.com (Wu-bin Zhen) Date: Tue, 5 Feb 2013 17:23:54 -0500 Subject: [FFmpeg-user] hardware acceleration for h264 decoding Message-ID: Hello ffmpeg, I was trying to compile ffmpeg for both Intel and nVidia GPUs. In the configuration result as below, I can see both libva and libvdpau are enabled. I am confused because "h264_vdpau" exists in both "decoders" and "hwaccels" sections, but "h264_vaapi" only exists in the "hwaccels" section. Intel GPU machine and nVidia GPU machine are showing the same result. I wonder if it is normal for vaapi, and hw acceleration will be activated when there is an Intel GPU. My another question is whether vdpau and vaapi would be helpful without "displaying". In other words, I hope that ffmpeg could use vdpau/vaapi to make transcoding faster, at least for the decoding part. But, I googled that someone says "vdpau and vaapi are useful for decoding when you want to display that decoded content. It's not a usable API, eg for decoding video as a step for subsequently re-encoding it"( http://ffmpeg-users.933282.n4.nabble.com/how-to-enable-hardware-acceleration-in-ffmpeg-td4438476.html), so just want to make sure if it is true. Any advise will be appreciated. ----- > ./configuration install prefix /usr/local source path . C compiler gcc ARCH x86 (generic) big-endian no runtime cpu detection yes yasm yes MMX enabled yes MMXEXT enabled yes 3DNow! enabled yes 3DNow! extended enabled yes SSE enabled yes SSSE3 enabled yes AVX enabled yes FMA4 enabled yes CMOV enabled yes CMOV is fast yes EBX available yes EBP 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 yes libdxva2 enabled no libva enabled yes libvdpau enabled yes AVISynth enabled no frei0r enabled no gnutls enabled no libaacplus enabled no libass enabled no libcaca enabled no libcdio support no libcelt enabled no libdc1394 support no libfaac enabled no libfdk-aac enabled no libgsm enabled no libiec61883 support no libilbc enabled no libmodplug enabled no libmp3lame enabled no libnut enabled no libopencore-amrnb support no libopencore-amrwb support no libopencv support no libopenjpeg enabled no libopus enabled no libpulse enabled no librtmp enabled no libschroedinger enabled no libsoxr enabled no libspeex enabled no libstagefright-h264 enabled no libtheora enabled no libtwolame enabled no libutvideo enabled no libv4l2 enabled no libvo-aacenc support no libvo-amrwbenc support no libvorbis enabled no libvpx enabled no libx264 enabled no libxavs enabled no libxvid enabled no openal enabled no openssl enabled no zlib enabled yes bzlib enabled yes texi2html enabled no perl enabled yes pod2man enabled yes makeinfo enabled no Enabled decoders: aac c93 indeo2 aac_latm cavs indeo3 aasc cdgraphics indeo4 ac3 cdxl indeo5 adpcm_4xm cinepak interplay_dpcm adpcm_adx cljr interplay_video adpcm_afc cllc jacosub adpcm_ct comfortnoise jpeg2000 adpcm_ea cook jpegls adpcm_ea_maxis_xa cpia jv adpcm_ea_r1 cscd kgv1 adpcm_ea_r2 cyuv kmvc adpcm_ea_r3 dca lagarith adpcm_ea_xas dfa loco adpcm_g722 dirac mace3 adpcm_g726 dnxhd mace6 adpcm_ima_amv dpx mdec adpcm_ima_apc dsicinaudio microdvd adpcm_ima_dk3 dsicinvideo mimic adpcm_ima_dk4 dvbsub mjpeg adpcm_ima_ea_eacs dvdsub mjpegb adpcm_ima_ea_sead dvvideo mlp adpcm_ima_iss dxa mmvideo adpcm_ima_oki dxtory motionpixels adpcm_ima_qt eac3 movtext adpcm_ima_smjpeg eacmv mp1 adpcm_ima_wav eamad mp1float adpcm_ima_ws eatgq mp2 adpcm_ms eatgv mp2float adpcm_sbpro_2 eatqi mp3 adpcm_sbpro_3 eightbps mp3adu adpcm_sbpro_4 eightsvx_exp mp3adufloat adpcm_swf eightsvx_fib mp3float adpcm_thp escape124 mp3on4 adpcm_xa escape130 mp3on4float adpcm_yamaha evrc mpc7 alac exr mpc8 als ffv1 mpeg1_vdpau amrnb ffvhuff mpeg1video amrwb ffwavesynth mpeg2video amv flac mpeg4 anm flashsv mpeg4_vdpau ansi flashsv2 mpeg_vdpau ape flic mpegvideo ass flv mpl2 asv1 fourxm msa1 asv2 fraps msmpeg4v1 atrac1 frwu msmpeg4v2 atrac3 g723_1 msmpeg4v3 aura g729 msrle aura2 gif mss1 avrn gsm mss2 avrp gsm_ms msvideo1 avs h261 mszh avui h263 mts2 ayuv h263i mvc1 bethsoftvid h263p mvc2 bfi h264 mxpeg bink h264_vdpau nellymoser binkaudio_dct huffyuv nuv binkaudio_rdft iac paf_audio bintext idcin paf_video bmp idf pam bmv_audio iff_byterun1 pbm bmv_video iff_ilbm pcm_alaw brender_pix imc pcm_bluray pcm_dvd roq v408 pcm_f32be roq_dpcm v410 pcm_f32le rpza vb pcm_f64be rv10 vble pcm_f64le rv20 vc1 pcm_lxf rv30 vc1_vdpau pcm_mulaw rv40 vc1image pcm_s16be s302m vcr1 pcm_s16be_planar sami vima pcm_s16le sanm vmdaudio pcm_s16le_planar sgi vmdvideo pcm_s24be sgirle vmnc pcm_s24daud shorten vorbis pcm_s24le sipr vp3 pcm_s24le_planar smackaud vp5 pcm_s32be smacker vp6 pcm_s32le smc vp6a pcm_s32le_planar snow vp6f pcm_s8 sol_dpcm vp8 pcm_s8_planar sonic vplayer pcm_u16be sp5x vqa pcm_u16le srt wavpack pcm_u24be subrip webvtt pcm_u24le subviewer wmalossless pcm_u32be subviewer1 wmapro pcm_u32le sunrast wmav1 pcm_u8 svq1 wmav2 pcm_zork svq3 wmavoice pcx tak wmv1 pgm targa wmv2 pgmyuv targa_y216 wmv3 pgssub text wmv3_vdpau pictor theora wmv3image pjs thp wnv1 png tiertexseqvideo ws_snd1 ppm tiff xan_dpcm prores tmv xan_wc3 prores_lgpl truehd xan_wc4 ptx truemotion1 xbin qcelp truemotion2 xbm qdm2 truespeech xface qdraw tscc xl qpeg tscc2 xsub qtrle tta xwd r10k twinvq y41p r210 txd yop ra_144 ulti yuv4 ra_288 utvideo zero12v ralf v210 zerocodec rawvideo v210x zlib realtext v308 zmbv rl2 Enabled encoders: a64multi jpeg2000 pgmyuv a64multi5 jpegls png aac ljpeg ppm ac3 mjpeg prores ac3_fixed movtext prores_anatoliy adpcm_adx mp2 prores_kostya adpcm_g722 mpeg1video qtrle adpcm_g726 mpeg2video r10k adpcm_ima_qt mpeg4 r210 adpcm_ima_wav msmpeg4v2 ra_144 adpcm_ms msmpeg4v3 rawvideo adpcm_swf msvideo1 roq adpcm_yamaha nellymoser roq_dpcm alac pam rv10 amv pbm rv20 ass pcm_alaw sgi asv1 pcm_f32be snow asv2 pcm_f32le sonic avrp pcm_f64be sonic_ls avui pcm_f64le srt ayuv pcm_mulaw subrip bmp pcm_s16be sunrast cljr pcm_s16be_planar svq1 comfortnoise pcm_s16le targa dca pcm_s16le_planar tiff dnxhd pcm_s24be utvideo dpx pcm_s24daud v210 dvbsub pcm_s24le v308 dvdsub pcm_s24le_planar v408 dvvideo pcm_s32be v410 eac3 pcm_s32le vorbis ffv1 pcm_s32le_planar wmav1 ffvhuff pcm_s8 wmav2 flac pcm_s8_planar wmv1 flashsv pcm_u16be wmv2 flashsv2 pcm_u16le xbm flv pcm_u24be xface g723_1 pcm_u24le xsub gif pcm_u32be xwd h261 pcm_u32le y41p h263 pcm_u8 yuv4 h263p pcx zlib huffyuv pgm zmbv Enabled hwaccels: h263_vaapi mpeg2_vaapi vc1_vaapi h263_vdpau mpeg2_vdpau vc1_vdpau h264_vaapi mpeg4_vaapi wmv3_vaapi h264_vdpau mpeg4_vdpau wmv3_vdpau mpeg1_vdpau Enabled parsers: aac dvdsub mpegvideo aac_latm flac png ac3 gsm pnm adx h261 rv30 bmp h263 rv40 cavsvideo h264 tak cook mjpeg vc1 dca mlp vorbis dirac mpeg4video vp3 dnxhd mpegaudio vp8 dvbsub Enabled demuxers: aac idf pcm_u24le ac3 iff pcm_u32be act ilbc pcm_u32le adf image2 pcm_u8 adx image2pipe pjs aea ingenient pmp afc ipmovie pva aiff ircam pvf amr iss qcp anm iv8 r3d apc ivf rawvideo ape jacosub realtext aqtitle jv rl2 asf latm rm ass lmlm4 roq ast loas rpl au lvf rso avi lxf rtp avr m4v rtsp avs matroska sami bethsoftvid mgsts sap bfi microdvd sbg bink mjpeg sdp bintext mlp segafilm bit mm shorten bmv mmf siff brstm mov smacker c93 mp3 smjpeg caf mpc smush cavsvideo mpc8 sol cdg mpegps sox cdxl mpegts spdif concat mpegtsraw srt daud mpegvideo str dfa mpl2 subviewer dirac mpsub subviewer1 dnxhd msnwc_tcp swf dsicin mtv tak dts mv tedcaptions dtshd mvi thp dv mxf tiertexseq dxa mxg tmv ea nc truehd ea_cdata nistsphere tta eac3 nsv tty epaf nut txd ffm nuv vc1 ffmetadata ogg vc1t filmstrip oma vivo flac paf vmd flic pcm_alaw vobsub flv pcm_f32be voc fourxm pcm_f32le vplayer frm pcm_f64be vqf g722 pcm_f64le w64 g723_1 pcm_mulaw wav g729 pcm_s16be wc3 gif pcm_s16le webvtt gsm pcm_s24be wsaud gxf pcm_s24le wsvqa h261 pcm_s32be wtv h263 pcm_s32le wv h264 pcm_s8 xa hls pcm_u16be xbin ico pcm_u16le xmv idcin pcm_u24be xwma yop yuv4mpegpipe Enabled muxers: a64 image2pipe pcm_s16be ac3 ipod pcm_s16le adts ircam pcm_s24be adx ismv pcm_s24le aiff ivf pcm_s32be amr jacosub pcm_s32le asf latm pcm_s8 asf_stream m4v pcm_u16be ass matroska pcm_u16le ast matroska_audio pcm_u24be au md5 pcm_u24le avi microdvd pcm_u32be avm2 mjpeg pcm_u32le bit mkvtimestamp_v2 pcm_u8 caf mlp psp cavsvideo mmf rawvideo crc mov rm daud mp2 roq dirac mp3 rso dnxhd mp4 rtp dts mpeg1system rtsp dv mpeg1vcd sap eac3 mpeg1video segment f4v mpeg2dvd smjpeg ffm mpeg2svcd smoothstreaming ffmetadata mpeg2video sox filmstrip mpeg2vob spdif flac mpegts srt flv mpjpeg stream_segment framecrc mxf swf framemd5 mxf_d10 tg2 g722 null tgp g723_1 nut truehd gif ogg vc1t gxf oma voc h261 pcm_alaw w64 h263 pcm_f32be wav h264 pcm_f32le webm hls pcm_f64be wtv ico pcm_f64le wv ilbc pcm_mulaw yuv4mpegpipe image2 Enabled protocols: applehttp gopher pipe cache hls rtmp concat http rtmpt crypto httpproxy rtp data md5 srtp ffrtmphttp mmsh tcp file mmst udp Enabled filters: aconvert channelsplit nullsrc aevalsrc color overlay afade concat pad aformat copy pan allpass crop pixdesctest alphaextract deshake removelogo alphamerge drawbox rgbtestsrc amerge earwax scale amix edgedetect select amovie equalizer sendcmd anull fade setdar anullsink field setfield anullsrc fieldorder setpts apad format setsar aresample fps settb aselect framestep showinfo asendcmd gradfun showspectrum asetnsamples hflip showwaves asetpts highpass silencedetect asettb idet smptebars ashowinfo join split asplit life swapuv astreamsync lowpass testsrc atempo lut thumbnail bandpass lutrgb tile bandreject lutyuv transpose bass mandelbrot treble bbox movie unsharp biquad negate vflip blackdetect noformat volume cellauto null volumedetect channelmap nullsink Enabled bsfs: aac_adtstoasc mjpeg2jpeg mp3_header_decompress chomp mjpega_dump_header noise dump_extradata mov2textsub remove_extradata h264_mp4toannexb mp3_header_compress text2movsub imx_dump_header Enabled indevs: alsa fbdev oss dv1394 lavfi v4l2 Enabled outdevs: alsa oss sdl From cehoyos at ag.or.at Wed Feb 6 00:44:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 23:44:49 +0000 (UTC) Subject: [FFmpeg-user] hardware acceleration for h264 decoding References: Message-ID: Wu-bin Zhen gmail.com> writes: > My another question is whether vdpau and vaapi would be > helpful without "displaying". (I can only comment on VDPAU:) No, unfortunately not. Carl Eugen From stefasab at gmail.com Wed Feb 6 00:50:23 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 6 Feb 2013 00:50:23 +0100 Subject: [FFmpeg-user] pts/dts error using reset_timestamps while splitting a DVD In-Reply-To: References: <5DC04E53-99CC-499A-BBF2-F1F3FA1507C3@gmail.com> <34DCE8A9-11FE-4F71-8901-9F1B3F489249@gmail.com> Message-ID: <20130205235023.GC13058@arborea> On date Tuesday 2013-02-05 10:31:37 +0000, Owen Jones wrote: > > On 23 Jan 2013, at 10:08, Carl Eugen Hoyos wrote: > > > If you use the segmenting on the original vob file, do > > you see the same error? > > I've rebuilt ffmpeg again with I think the latest git version. I'm > still getting the error running against the raw vob file copied from > DVD. > > I've also tried using -ss instead and this works fine. I could use > this as an alternative (with -t) but it will be very clumsy since I > need to make a lot of splits. I'd still really appreciate a solution > to the segmenting problem if there is one... I confirm this is a bug. Please try the attached patch, and report if it works for you. -- FFmpeg = Forgiving and Fierce Minimalistic Practical Ecumenical Guru -------------- next part -------------- A non-text attachment was scrubbed... Name: 0006-lavf-segment-fix-DTS-inconsistencies-with-reset_time.patch Type: text/x-diff Size: 2900 bytes Desc: not available URL: From daniel at danieloberhoff.de Wed Feb 6 00:47:30 2013 From: daniel at danieloberhoff.de (Daniel Oberhoff) Date: Wed, 6 Feb 2013 00:47:30 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing Message-ID: Hi, We need to fuse live streams from two cameras, so that frames always come in corresponding pairs. We have had some success using ffmpeg like so: ffmpeg -rtsp_transport tcp -r 25 -i rtsp://user:password at 192.168.178.91:554/axis-media/media.amp \ -rtsp_transport tcp -r 25 -i rtsp://user:password at 192.168.178.92:554/axis-media/media.amp \ -filter_complex "[0:0]pad=iw*2:ih[a];[a][1:0]overlay=w" ... which arranges the two streams side by side. but the problem is, that ffmpeg seems to start the streams at different times, but assigns the first stream from frame a to the first frame from frame b etc. which means the streams forever remain time shifted to each other by the starting delay. now we know the streams are time stamped correctly using the pts (in an h264 stream). can ffmpeg somehow use the pts to avoid the shift? help much appreaciated! Daniel From cehoyos at ag.or.at Wed Feb 6 00:47:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 23:47:05 +0000 (UTC) Subject: [FFmpeg-user] [ffmpeg-user] Unsupported color space References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > Massimo Battistel gmail.com> writes: > > > I'm having troubles capturing from decklink in HD (and some > > ntsc formats). PAL sd video has no problems. > > Does this patch help? The relevant patch(es) were applied, so the question is now: Is thist still reproducible with current git head? Carl Eugen From stefasab at gmail.com Wed Feb 6 01:01:56 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 6 Feb 2013 01:01:56 +0100 Subject: [FFmpeg-user] Using ffmpeg as replacement of mp4split In-Reply-To: References: Message-ID: <20130206000156.GD13058@arborea> On date Tuesday 2013-02-05 18:57:13 +0100, St?phane wrote: > Hello > > Is it possible ? > Generating self contained chunked mp4 video, ismv and m3u8 fies to use > with apache mod smooth streaming ? Check segment and hls muxers. > > Thank you ! > Le 5 f?vr. 2013 18:37, "Carl Eugen Hoyos" a ?crit : > > > Josh Salz ymail.com> writes: [...] You top-posted and hijacked a thread, read the mailing-list posting guidelines and next time don't do it again. From cehoyos at ag.or.at Wed Feb 6 00:46:01 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 5 Feb 2013 23:46:01 +0000 (UTC) Subject: [FFmpeg-user] can ffmpeg use acm codecs References: <1360083545.9644.YahooMailNeo@web142501.mail.bf1.yahoo.com> <1360086171.30338.YahooMailNeo@web142503.mail.bf1.yahoo.com> Message-ID: Josh Salz ymail.com> writes: > well i am trying to encode live mp3 Sorry, I misunderstood. The recommended (and working) mp3 encoder is libmp3lame (or "lame"). Please do not top-post on this mailing list. Carl Eugen From gosbrut at yahoo.es Tue Feb 5 20:51:43 2013 From: gosbrut at yahoo.es (Alejandro) Date: Tue, 5 Feb 2013 19:51:43 +0000 (GMT) Subject: [FFmpeg-user] create video from dng images results in smaller resolution Message-ID: <1360093903.8551.YahooMailClassic@web171505.mail.ir2.yahoo.com> Hi,Im trying to make a video from tiff images that are dng pictures.The problem is that the resulting video that ffmpeg creates, have a resolution slower than the original pictures I tried with image2 but no luck. This is from a set of CinemaDNG images. I converted to dng with adobe dng converter. Then i need to change the extension to .tif cause ffmpeg said that no video for the original or the converted ones with .dng extension.With the extensions changed to .tif, ffmpeg is able to create a video but the resolution is super small.? Why ?(Cause the original files are 2K resolution) How can i accomplish the goal of make a video from cinemadng images ? Following is the console ouputs of 3 escenarios A) THIS CREATES A VIDEO OF 236MB BUT BAD & WITH SMALL RESOLUTION d:/>ffmpeg -f image2 -start_number 00101600 -i D:/temp/dng/conv2/00%3d.tif copy -qscale 1 D:/temp/dng/conv2/temp/11.aviversion N-49527-g985e93a Copyright (c) 2000-2013 the FFmpeg developers?on Feb ?1 2013 18:41:39 with gcc 4.7.2 (GCC)guration: --enable-gpl --enable-version3 --disable-w32threads --enable-a--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --ibopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --ibspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --ebvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enabls --enable-libxvid --enable-zlibutil ? ? ?52. 17.100 / 52. 17.100codec ? ? 54. 91.100 / 54. 91.100format ? ?54. 61.104 / 54. 61.104device ? ?54. ?3.103 / 54. ?3.103filter ? ? 3. 35.100 / ?3. 35.100scale ? ? ?2. ?2.100 / ?2. ?2.100resample ? 0. 17.102 / ?0. 17.102stproc ? ?52. ?2.100 / 52. ?2.100?@ 03811820] Stream #0: not enough frames to estimate rate; consider incprobesize0, image2, from 'D:/temp/dng/conv2/00%3d.tif':ion: 00:00:02.00, start: 0.000000, bitrate: N/Aeam #0:0: Video: tiff, rgb24, 256x137, 25 tbr, 25 tbn, 25 tbcuse -q:a or -q:v, -qscale is ambiguous:/temp/dng/conv2/temp/11.avi' already exists. Overwrite ? [y/N] y#0, avi, to 'D:/temp/dng/conv2/temp/11.avi':ata:T ? ? ? ? ? ?: Lavf54.61.104eam #0:0: Video: tiff, rgb24, 256x137, q=2-31, 25 tbn, 25 tbcmapping:m #0:0 -> #0:0 (copy)q] to stop, [?] for help? ?9 fps=0.0 q=-1.0 size= ? 43538kB time=00:00:00.36 bitrate=990732.5kbi? 14 fps= 12 q=-1.0 size= ? 67744kB time=00:00:00.56 bitrate=991004.4kbi? 20 fps= 12 q=-1.0 size= ? 96792kB time=00:00:00.80 bitrate=991152.9kbi? 26 fps= 12 q=-1.0 size= ?125840kB time=00:00:01.04 bitrate=991231.0kbi? 32 fps= 12 q=-1.0 size= ?154889kB time=00:00:01.28 bitrate=991287.4kbi? 38 fps= 11 q=-1.0 size= ?183936kB time=00:00:01.52 bitrate=991319.5kbi? 44 fps= 11 q=-1.0 size= ?212983kB time=00:00:01.76 bitrate=991339.3kbi? 50 fps= 11 q=-1.0 size= ?242041kB time=00:00:02.00 bitrate=991399.0kbi? 50 fps= 11 q=-1.0 Lsize= ?242042kB time=00:00:02.00 bitrate=991402.2kb 42035kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.002777 B) THIS CREATES A VIDEO OF 80KB WITH A SUPER SLOW RESOLUTION D:\temp>ffmpeg -f image2 -start_number 10105113 -i D:/temp/dng/A-CamCinemaDNGBdobeDNGConv/%03d.tif D:/temp/dng/A-CamCinemaDNGByAdobeDNGConv/temp/a.mpgffmpeg version N-49527-g985e93a Copyright (c) 2000-2013 the FFmpeg developers? built on Feb ?1 2013 18:41:39 with gcc 4.7.2 (GCC)? configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enle-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-lism --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb -nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger -nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enab-libxavs --enable-libxvid --enable-zlib? libavutil ? ? ?52. 17.100 / 52. 17.100? libavcodec ? ? 54. 91.100 / 54. 91.100? libavformat ? ?54. 61.104 / 54. 61.104? libavdevice ? ?54. ?3.103 / 54. ?3.103? libavfilter ? ? 3. 35.100 / ?3. 35.100? libswscale ? ? ?2. ?2.100 / ?2. ?2.100? libswresample ? 0. 17.102 / ?0. 17.102? libpostproc ? ?52. ?2.100 / 52. ?2.100Input #0, image2, from 'D:/temp/dng/A-CamCinemaDNGByAdobeDNGConv/%03d.tif':? Duration: 00:00:01.24, start: 0.000000, bitrate: N/A? ? Stream #0:0: Video: tiff, rgb24, 256x137, 25 fps, 25 tbr, 25 tbn, 25 tbcFile 'D:/temp/dng/A-CamCinemaDNGByAdobeDNGConv/temp/a.mpg' already exists. Overite ? [y/N] YVBV buffer size not set, muxing may failOutput #0, mpeg, to 'D:/temp/dng/A-CamCinemaDNGByAdobeDNGConv/temp/a.mpg':? Metadata:? ? encoder ? ? ? ? : Lavf54.61.104? ? Stream #0:0: Video: mpeg1video, yuv420p, 256x137, q=2-31, 200 kb/s, 90k tb?25 tbcStream mapping:? Stream #0:0 -> #0:0 (tiff -> mpeg1video)Press [q] to stop, [?] for helpframe= ? 20 fps=0.0 q=4.9 size= ? ? ?54kB time=00:00:00.72 bitrate= 614.4kbitsframe= ? 31 fps=0.0 q=6.6 Lsize= ? ? ?80kB time=00:00:01.20 bitrate= 546.1kbitsvideo:77kB audio:0kB subtitle:0 global headers:0kB muxing overhead 3.294791% C) AND IF A USE THE ORIGINAL .DNG FILES I CAN'T CREATE A VIDEO D:\temp>ffmpeg -f image2 -start_number 10105113 -i D:/temp/dng/A-CamCinemaDNG/%d.DNG /tmp/a.mpgffmpeg version N-49527-g985e93a Copyright (c) 2000-2013 the FFmpeg developers? built on Feb ?1 2013 18:41:39 with gcc 4.7.2 (GCC)? configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib? libavutil ? ? ?52. 17.100 / 52. 17.100? libavcodec ? ? 54. 91.100 / 54. 91.100? libavformat ? ?54. 61.104 / 54. 61.104? libavdevice ? ?54. ?3.103 / 54. ?3.103? libavfilter ? ? 3. 35.100 / ?3. 35.100? libswscale ? ? ?2. ?2.100 / ?2. ?2.100? libswresample ? 0. 17.102 / ?0. 17.102? libpostproc ? ?52. ?2.100 / 52. ?2.100[image2 @ 024ac1a0] Stream #0: not enough frames to estimate rate; consider increasing probesize[image2 @ 024ac1a0] Could not find codec parameters for stream 0 (Video: none):unspecified sizeConsider increasing the value for the 'analyzeduration' and 'probesize' optionsD:/temp/dng/A-CamCinemaDNG/%d.DNG: could not find codec parameters From tylerbwear at gmail.com Wed Feb 6 03:11:46 2013 From: tylerbwear at gmail.com (tyler wear) Date: Tue, 5 Feb 2013 18:11:46 -0800 Subject: [FFmpeg-user] libavcodec size too large Message-ID: So I'm compiling ffmpeg for use with MiniDLNA. I'm building it for an arm system which is running an android kernal. I'm running into an issue where the image size is way larger than what I expected (~14mb). I don't have to much ram space for the package, so this is an issue. I determined that libavcodec is the prime culprit, using around 11mb of space. Compared to the 3mb of the lib on my linux machine, it seems that I am doing something wrong. I'm compiling using bitbake. Configure line for ffmpeg: ./configure --enable-cross-compile --cross-prefix=/pkg/asw/compilers/codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi- \ --cc=/pkg/asw/compilers/codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi-gcc \ --arch=arm --target-os=linux --enable-armv5te --disable-armv6 --disable-mmx \ --enable-shared --disable-doc --disable-htmlpages --disable-manpages --disable-podpages \ --disable-txtpages --disable-avdevice --disable-swresample --disable-swscale \ --disable-postproc --disable-avfilter --disable-optimizations --disable-debug --disable-ffserver --disable-ffplay Compiled lib shows as: libavcodec.so.54.86.100: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, stripped any help would be much appreciated. Thanks, Tyler From infos at madovsky.org Wed Feb 6 03:42:34 2013 From: infos at madovsky.org (Madovsky) Date: Tue, 5 Feb 2013 21:42:34 -0500 Subject: [FFmpeg-user] pcmu and mp4 not recognized in rtmp input Message-ID: Assuming a rtmp live stream in flv with audio pcmu/pcma codec and video H264 codec ffmpeg -i "rtmp://server/app/mp4:live1 live=1" output.flv result: ======= ffmpeg version N-49621-g68dfe53 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 20:04:30 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x32b6fc0] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from "rtmp://server/app/mp4:live1 live=1" Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 10 tbr, 1k tbn, 20 tbc Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 10 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> flv) Press [q] to stop, [?] for help [h264 @ 0x32a2b00] concealing 57 DC, 57 AC, 57 MV errors in I frame frame= 2 fps=0.0 q=2.0 Lsize= 21kB time=00:00:00.20 bitrate= 856.8kbits/s dup=0 drop=42 video:21kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.152302% ffmpeg -i "rtmp://server/app/mp4:live1 live=1" -c copy output.flv result: ======= ffmpeg version N-49621-g68dfe53 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 20:04:30 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x29c1fc0] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from "rtmp://server/app/mp4:live1 live=1" Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 10 tbr, 1k tbn, 20 tbc Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 1k tbn, 1k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 46 fps=0.0 q=-1.0 Lsize= 128kB time=00:00:00.00 bitrate=1045424.0kbits/s video:126kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.936153% ffmpeg -f flv -i "rtmp://server/app/mp4:live1 live=1" output.flv result: ========= ffmpeg version N-49621-g68dfe53 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 20:04:30 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7) configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 rtmp server sent error [flv @ 0x2d06fc0] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from '"rtmp://server/app/mp4:live1 live=1": Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 10 tbr, 1k tbn, 20 tbc Output #0, flv, to 'output.flv': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 10 tbc Stream mapping: Stream #0:0 -> #0:0 (h264 -> flv) Press [q] to stop, [?] for help frame= 64 fps=0.0 q=8.3 Lsize= 252kB time=00:00:06.50 bitrate= 317.6kbits/s dup=0 drop=63 video:251kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.481290% ========= with speex everything is working even if the output container must be flv for flash live mp4 input (should it be mp4 ?) thanks Franck From phpdev at ehrhardt.nl Wed Feb 6 05:48:37 2013 From: phpdev at ehrhardt.nl (Jan Ehrhardt) Date: Wed, 06 Feb 2013 05:48:37 +0100 Subject: [FFmpeg-user] pts/dts error using reset_timestamps while splitting a DVD References: <5DC04E53-99CC-499A-BBF2-F1F3FA1507C3@gmail.com> <34DCE8A9-11FE-4F71-8901-9F1B3F489249@gmail.com> <20130205235023.GC13058@arborea> Message-ID: <90o3h85gh4jh76653p1suuulju9kv4ij4a@4ax.com> Stefano Sabatini in gmane.comp.video.ffmpeg.user (Wed, 6 Feb 2013 00:50:23 +0100): >I confirm this is a bug. > >Please try the attached patch, and report if it works for you. I could reproduce the error and can confirm that the patch works for ffmpeg, built for Windows x86 and x64. Jan From infos at madovsky.org Wed Feb 6 06:14:21 2013 From: infos at madovsky.org (Madovsky) Date: Wed, 6 Feb 2013 00:14:21 -0500 Subject: [FFmpeg-user] force video format Message-ID: Hi, I'm trying to overlay 2 streams but sometimes one stream or bot contains audio only. as I'm making an overlay so it fails saying that :0 has no stream. is there any way to tell ffmpeg to force a video format like -f flv -i .... and put a 1 frame image in case of there is no video ? or is it need a script condition for that ? Thanks Franck From stephane.erard at gmail.com Wed Feb 6 10:14:29 2013 From: stephane.erard at gmail.com (=?ISO-8859-1?Q?St=E9phane?=) Date: Wed, 6 Feb 2013 10:14:29 +0100 Subject: [FFmpeg-user] Using ffmpeg as replacement of mp4split In-Reply-To: <20130206000156.GD13058@arborea> References: <20130206000156.GD13058@arborea> Message-ID: I am sorry, did not mean to hijack anything. From cehoyos at ag.or.at Wed Feb 6 10:53:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 09:53:38 +0000 (UTC) Subject: [FFmpeg-user] libavcodec size too large References: Message-ID: tyler wear gmail.com> writes: > I'm building it for an arm system which is running an > android kernal. I'm running into an issue where the > image size is way larger than what I expected (~14mb). What happens if you remove --disable-optimizations from your configure line? (And why don't you use --enable-small?) Carl Eugen From cehoyos at ag.or.at Wed Feb 6 10:59:46 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 09:59:46 +0000 (UTC) Subject: [FFmpeg-user] create video from dng images results in smaller resolution References: <1360093903.8551.YahooMailClassic@web171505.mail.ir2.yahoo.com> Message-ID: Alejandro yahoo.es> writes: > Hi,Im trying to make a video from tiff images > that are dng pictures. I don't think FFmpeg supports DNG. Afaict, no samples were ever provided, no ticket exists. > The problem is that the resulting video > that ffmpeg creates, have a resolution slower > than the original pictures DNG images contain a small preview of the original image, that is all that FFmpeg can currently decode. Carl Eugen From cehoyos at ag.or.at Wed Feb 6 11:01:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 10:01:19 +0000 (UTC) Subject: [FFmpeg-user] syncing live streams when mosaicing References: Message-ID: Daniel Oberhoff danieloberhoff.de> writes: > now we know the streams are time stamped correctly > using the pts (in an h264 stream). can ffmpeg > somehow use the pts to avoid the shift? Could you try to verify if FFmpeg's H264 decoder actually correctly decodes the pts? Carl Eugen From cehoyos at ag.or.at Wed Feb 6 11:03:24 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 10:03:24 +0000 (UTC) Subject: [FFmpeg-user] pcmu and mp4 not recognized in rtmp input References: Message-ID: Madovsky madovsky.org> writes: > Assuming a rtmp live stream in flv with audio > pcmu/pcma codec and video H264 codec I don't think we have a "pcmu/pcma in flv" sample, please provide one. Carl Eugen From daniel at danieloberhoff.de Wed Feb 6 11:11:50 2013 From: daniel at danieloberhoff.de (Daniel Oberhoff) Date: Wed, 6 Feb 2013 11:11:50 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing References: Message-ID: On 2013-02-06 10:01:19 +0000, Carl Eugen Hoyos said: > Daniel Oberhoff danieloberhoff.de> writes: > >> now we know the streams are time stamped correctly >> using the pts (in an h264 stream). can ffmpeg >> somehow use the pts to avoid the shift? > > Could you try to verify if FFmpeg's H264 > decoder actually correctly decodes the pts? > > Carl Eugen Hey, thanks for te reply. Can I do that somehow with the command line? I haven't really done much with libav directly?. From daniel at danieloberhoff.de Wed Feb 6 11:20:26 2013 From: daniel at danieloberhoff.de (Daniel Oberhoff) Date: Wed, 6 Feb 2013 11:20:26 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing References: Message-ID: On 2013-02-06 10:01:19 +0000, Carl Eugen Hoyos said: > Daniel Oberhoff danieloberhoff.de> writes: > >> now we know the streams are time stamped correctly >> using the pts (in an h264 stream). can ffmpeg >> somehow use the pts to avoid the shift? > > Could you try to verify if FFmpeg's H264 > decoder actually correctly decodes the pts? > > Carl Eugen Ok, so I just ran a few filters with setpts (https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video), and ffmpeg did not complain, so I guess that proves there is a valid PTS? Daniel From daniel at danieloberhoff.de Wed Feb 6 11:46:23 2013 From: daniel at danieloberhoff.de (Daniel Oberhoff) Date: Wed, 6 Feb 2013 11:46:23 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing References: Message-ID: On 2013-02-06 10:01:19 +0000, Carl Eugen Hoyos said: > Daniel Oberhoff danieloberhoff.de> writes: > >> now we know the streams are time stamped correctly >> using the pts (in an h264 stream). can ffmpeg >> somehow use the pts to avoid the shift? > > Could you try to verify if FFmpeg's H264 > decoder actually correctly decodes the pts? > > Carl Eugen Ok, when I run with -loglevel debug I get outputs like this (on a single stream): [force CFR for input from stream 0:0 @ 0x2d88ba0] N:159 PTS:572505 T:22900.200000 POS:nan INTERLACED:0 -> PTS:159 T:6.360000 [force CFR for input from stream 0:0 @ 0x2d88ba0] N:160 PTS:576106 T:23044.240000 POS:nan INTERLACED:0 -> PTS:160 T:6.400000 [force CFR for input from stream 0:0 @ 0x2d88ba0] N:161 PTS:579707 T:23188.280000 POS:nan INTERLACED:0 -> PTS:161 T:6.440000 N:162 PTS:583308 T:23332.320000 POS:nan INTERLACED:0 -> PTS:162 T:6.480000 N:163 PTS:586908 T:23476.320000 POS:nan INTERLACED:0 -> PTS:163 T:6.520000kbits/s and for two streams: [force CFR for input from stream 1:0 @ 0x2c95600] N:101 PTS:392473 T:15698.920000 POS:nan INTERLACED:0 -> PTS:101 T:4.040000 [force CFR for input from stream 0:0 @ 0x2a72de0] N:100 PTS:360068 T:14402.720000 POS:nan INTERLACED:0 -> PTS:100 T:4.000000 [Parsed_showinfo_2 @ 0x2a719c0] n:100 pts:100 pts_time:4 pos:-1 fmt:yuv420p sar:1/1 s:2560x800 i:P iskey:0 type:P checksum:A7BECDB7 plane_checksum:[6B83E2B5 01BEBCE0 05052E13] [force CFR for input from stream 1:0 @ 0x2c95600] N:102 PTS:396072 T:15842.880000 POS:nan INTERLACED:0 -> PTS:102 T:4.080000 [force CFR for input from stream 0:0 @ 0x2a72de0] N:101 PTS:363673 T:14546.920000 POS:nan INTERLACED:0 -> PTS:101 T:4.040000 where you can see that the pts is not aligned From cehoyos at ag.or.at Wed Feb 6 12:42:30 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 11:42:30 +0000 (UTC) Subject: [FFmpeg-user] syncing live streams when mosaicing References: Message-ID: Daniel Oberhoff danieloberhoff.de> writes: > On 2013-02-06 10:01:19 +0000, Carl Eugen Hoyos ag.or.at> said: > > > Daniel Oberhoff danieloberhoff.de> writes: > > > >> now we know the streams are time stamped correctly > >> using the pts (in an h264 stream). (Note that this sentence made me think you would immediately see if the pts in FFmpeg are correct or not.) > >> can ffmpeg > >> somehow use the pts to avoid the shift? > > > > Could you try to verify if FFmpeg's H264 > > decoder actually correctly decodes the pts? > > Ok, when I run with -loglevel debug I get outputs like this (on a > single stream): You can also use -debug_ts, it should print all relevant timestamp information. Carl Eugen From soho123.2012 at gmail.com Wed Feb 6 13:58:02 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 6 Feb 2013 20:58:02 +0800 Subject: [FFmpeg-user] out of memory when using "copy" In-Reply-To: References: Message-ID: Hi All, Does someone have idea about out-of memory issue when I try to use ffmpeg to feed stream for ffser? Thanks a lot for any input!! Best Regards, Soho 2013/2/5 Soho Soho123 : > Hi All, > I add a Stream in my ffserver config as below: > > Feed feed1.ffm > Format mjpeg > > VideoFrameRate 30 > VideoSize 1280x720 > VideoBitRate 256 > VideoBufferSize 400 > #VideoGopSize 3 > VideoIntraOnly > #NoAudio > #Strict -1 > > > The out of memory was happened. Does someone have idea? > the log that I capture below: > > [quote]# ffserver -d -f /etc/ffserver.conf& > ffserver version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 4 2013 17:53:25 with gcc 4.4.5-1.5.5p4 (GCC) > configuration: --enable-cross-compile --cross-prefix=rsdk-linux- > --arch=mips --target-os=linux --disable > -w32threads --disable-os2threads --disable-ffplay --disable-postproc > --disable-mips32r2 --disable-yasm --d > isable-vis --disable-altivec --disable-mipsdspr1 --disable-mipsdspr2 > --disable-mipsfpu --enable-small --pr > efix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable > -encoders --enable-encoder=mjpeg --enable-encoder=flv > --enable-encoder=mpeg4 --disable-decoders --enable-d > ecoder=mjpeg --enable-decoder=flv --enable-decoder=mpeg4 > --enable-decoder=rawvideo --enable-encoder=rawvid > eo --enable-decoder=vorbis --enable-encoder=vorbis --disable-hwaccels > --disable-muxers --disable-demuxers > --enable-muxer=rawvideo --enable-muxer=mpegts --enable-muxer=ffm > --enable-muxer=mov --enable-muxer=yuv4mpe > gpipe --enable-muxer=rtp --enable-muxer=flv --enable-muxer=rtsp --ena > 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 > # Tue Feb 5 07:26:07 2013 FFserver started. > > # ffmpeg -f video4linux2 -r 30 -s 1280x720 -i /dev/video0 -c copy -f mpegts http > ://localhost:8090/feed1.ffm > ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 4 2013 17:53:25 with gcc 4.4.5-1.5.5p4 (GCC) > configuration: --enable-cross-compile --cross-prefix=rsdk-linux- > --arch=mips --target-os=linux --disable > -w32threads --disable-os2threads --disable-ffplay --disable-postproc > --disable-mips32r2 --disable-yasm --d > isable-vis --disable-altivec --disable-mipsdspr1 --disable-mipsdspr2 > --disable-mipsfpu --enable-small --pr > efix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable > -encoders --enable-encoder=mjpeg --enable-encoder=flv > --enable-encoder=mpeg4 --disable-decoders --enable-d > ecoder=mjpeg --enable-decoder=flv --enable-decoder=mpeg4 > --enable-decoder=rawvideo --enable-encoder=rawvid > eo --enable-decoder=vorbis --enable-encoder=vorbis --disable-hwaccels > --disable-muxers --disable-demuxers > --enable-muxer=rawvideo --enable-muxer=mpegts --enable-muxer=ffm > --enable-muxer=mov --enable-muxer=yuv4mpe > gpipe --enable-muxer=rtp --enable-muxer=flv --enable-muxer=rtsp --ena > 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 > [video4linux2,v4l2 @ 0x7d61c0] The driver changed the time per frame > from 1/30 to 1/10 > ffmpeg invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 > uptime: 45031.34 44842.42 > Call Trace:[<80015960>] 0x80015960 > [<80005fb8>] 0x80005fb8 > [<80005fb8>] 0x80005fb8 > [<8003c864>] 0x8003c864 > [<8002d9c8>] 0x8002d9c8 > [<8003cb90>] 0x8003cb90 > [<8001e93c>] 0x8001e93c > [<8003cc3c>] 0x8003cc3c > [<8003fd08>] 0x8003fd08 > [<80054ee8>] 0x80054ee8 > [<80054fdc>] 0x80054fdc > [<801f182c>] 0x801f182c > [<801f182c>] 0x801f182c > [<80055108>] 0x80055108 > [<801f182c>] 0x801f182c > [<801f182c>] 0x801f182c > [<80036d28>] 0x80036d28 > [<801f2fc0>] 0x801f2fc0 > [<80000420>] 0x80000420 > [<8004a7c4>] 0x8004a7c4 > [<801e6524>] 0x801e6524 > [<8005d71c>] 0x8005d71c > [<8004bbe4>] 0x8004bbe4 > [<800f5960>] 0x800f5960 > [<800f5d8c>] 0x800f5d8c > [<800fdde4>] 0x800fdde4 > [<80067d48>] 0x80067d48 > [<800faf04>] 0x800faf04 > [<800f422c>] 0x800f422c > [<8003505c>] 0x8003505c > [<80067df4>] 0x80067df4 > [<8005880c>] 0x8005880c > [<800086f4>] 0x800086f4 > [<80001330>] 0x80001330 > > Mem-Info: > Normal per-cpu: > CPU 0: hi: 18, btch: 3 usd: 16 > Active_anon:160 active_file:3 inactive_anon:147 > inactive_file:0 unevictable:312 dirty:0 writeback:0 unstable:0 > free:142 slab:2068 mapped:0 pagetables:36 bounce:0 > Normal free:568kB min:1024kB low:512kB high:580kB active_anon:640kB > inactive_anon:588kB active_file:12kB i > nactive_file:0kB unevictable:1248kB present:65024kB pages_scanned:1779 > all_unreclaimable? no > lowmem_reserve[]: 0 0 > Normal: 8*4kB 5*8kB 1*16kB 1*32kB 1*64kB 1*128kB 1*256kB 0*512kB > 0*1024kB 0*2048kB 0*4096kB = 568kB > 315 total pagecache pages > 16384 pages RAM > 2308 pages reserved > 3 pages shared > 13087 pages non-shared > Out of memory: kill process 992 (ffmpeg) score 73 or a child > Killed process 992 (ffmpeg) > ffmpeg: page allocation failure. order:0, mode:0xd0 > uptime: 45031.74 44842.42 > Call Trace:[<80015960>] 0x80015960 > [<80005fb8>] 0x80005fb8 > [<80005fb8>] 0x80005fb8 > [<8003fdb0>] 0x8003fdb0 > [<80054ee8>] 0x80054ee8 > [<80054fdc>] 0x80054fdc > [<801f182c>] 0x801f182c > [<801f182c>] 0x801f182c > [<80055108>] 0x80055108 > [<801f182c>] 0x801f182c > [<801f182c>] 0x801f182c > [<80036d28>] 0x80036d28 > [<801f2fc0>] 0x801f2fc0 > [<80000420>] 0x80000420 > [<8004a7c4>] 0x8004a7c4 > [<801e6524>] 0x801e6524 > [<8005d71c>] 0x8005d71c > [<8004bbe4>] 0x8004bbe4 > [<800f5960>] 0x800f5960 > [<800f5d8c>] 0x800f5d8c > [<800fdde4>] 0x800fdde4 > [<80067d48>] 0x80067d48 > [<800faf04>] 0x800faf04 > [<800f422c>] 0x800f422c > [<8003505c>] 0x8003505c > [<80067df4>] 0x80067df4 > [<8005880c>] 0x8005880c > [<800086f4>] 0x800086f4 > [<80001330>] 0x80001330 > > Mem-Info: > Normal per-cpu: > CPU 0: hi: 18, btch: 3 usd: 0 > Active_anon:160 active_file:3 inactive_anon:147 > inactive_file:0 unevictable:312 dirty:0 writeback:0 unstable:0 > free:0 slab:2068 mapped:0 pagetables:36 bounce:0 > Normal free:0kB min:1024kB low:512kB high:580kB active_anon:640kB > inactive_anon:588kB active_file:12kB ina > ctive_file:0kB unevictable:1248kB present:65024kB pages_scanned:1779 > all_unreclaimable? no > lowmem_reserve[]: 0 0 > Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB > 0*1024kB 0*2048kB 0*4096kB = 0kB > 315 total pagecache pages > 16384 pages RAM > 2308 pages reserved > 3 pages shared > 13245 pages non-shared > ffmpeg: page allocation failure. order:0, mode:0xd0[/quote] > > > > Does someone have idae about why ffmpeg occpuy memory when ffmpeg get > frame, but not release memory if no any client connected? From infos at madovsky.org Wed Feb 6 15:57:21 2013 From: infos at madovsky.org (Madovsky) Date: Wed, 6 Feb 2013 09:57:21 -0500 Subject: [FFmpeg-user] pcmu and mp4 not recognized in rtmp input References: Message-ID: <6F146DC7F33E4935B3EE57CBB171E92C@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Wednesday, February 06, 2013 5:03 AM Subject: Re: [FFmpeg-user] pcmu and mp4 not recognized in rtmp input > Madovsky madovsky.org> writes: > >> Assuming a rtmp live stream in flv with audio >> pcmu/pcma codec and video H264 codec > > I don't think we have a "pcmu/pcma in flv" sample, > please provide one. > > Carl Eugen forget it, I even can't record it with FMS (bug?) :( I can live stream it but not record. From daniel at danieloberhoff.de Wed Feb 6 16:10:11 2013 From: daniel at danieloberhoff.de (Daniel Oberhoff) Date: Wed, 6 Feb 2013 16:10:11 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing References: Message-ID: On 2013-02-06 11:42:30 +0000, Carl Eugen Hoyos said: > Daniel Oberhoff danieloberhoff.de> writes: > >> On 2013-02-06 10:01:19 +0000, Carl Eugen Hoyos ag.or.at> said: >> >>> Daniel Oberhoff danieloberhoff.de> writes: >>> >>>> now we know the streams are time stamped correctly >>>> using the pts (in an h264 stream). > > (Note that this sentence made me think you would > immediately see if the pts in FFmpeg are correct or not.) > >>>> can ffmpeg >>>> somehow use the pts to avoid the shift? >>> >>> Could you try to verify if FFmpeg's H264 >>> decoder actually correctly decodes the pts? >> >> Ok, when I run with -loglevel debug I get outputs like this (on a >> single stream): > > You can also use -debug_ts, it should print all > relevant timestamp information. > > Carl Eugen Ok, I must confess I am not so proficient in timestamps and video format internals. I am currenlty under the impression, that the problem cannot be solved the way I hoped. The streams nor the rtsp commnunication do not seem to contain any absolute time values (the pts seems to be relative to the stream start). So the only hope would be that ffmpeg somehow measures the stream start delays and compensates them. Until then we will just hope the delay is constant and compensate it manually. Any better ideas? Best, and thanks for the attention Daniel From cehoyos at ag.or.at Wed Feb 6 16:23:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 15:23:05 +0000 (UTC) Subject: [FFmpeg-user] pcmu and mp4 not recognized in rtmp input References: <6F146DC7F33E4935B3EE57CBB171E92C@e1705> Message-ID: Madovsky madovsky.org> writes: > >> Assuming a rtmp live stream in flv with audio > >> pcmu/pcma codec and video H264 codec > > > > I don't think we have a "pcmu/pcma in flv" sample, > > please provide one. > > forget it, I even can't record it with FMS (bug?) :( > I can live stream it but not record. Could you dump the stream? If it can be streamed, FFmpeg should support it, but this will need some help from you. Does -loglevel 99 show anything out of the ordinary? Carl Eugen From nicolas.george at normalesup.org Wed Feb 6 16:42:33 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 6 Feb 2013 16:42:33 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing In-Reply-To: References: Message-ID: <20130206154232.GA11513@phare.normalesup.org> L'octidi 18 pluvi?se, an CCXXI, Daniel Oberhoff a ?crit?: > The streams nor the rtsp > commnunication do not seem to contain any absolute time values (the > pts seems to be relative to the stream start). I suggest you use ffprobe -show_streams to be absolutely sure of that. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From vvubin at gmail.com Wed Feb 6 17:38:11 2013 From: vvubin at gmail.com (Wu-bin Zhen) Date: Wed, 6 Feb 2013 11:38:11 -0500 Subject: [FFmpeg-user] hardware acceleration for h264 decoding In-Reply-To: References: Message-ID: On Tue, Feb 5, 2013 at 6:44 PM, Carl Eugen Hoyos wrote: > Wu-bin Zhen gmail.com> writes: > > > My another question is whether vdpau and vaapi would be > > helpful without "displaying". > > (I can only comment on VDPAU:) > No, unfortunately not. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thanks for the quick reply. It saddens me, but at least I don't need to worry about hw accels for transcoding. -w From soho123.2012 at gmail.com Wed Feb 6 17:49:33 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 7 Feb 2013 00:49:33 +0800 Subject: [FFmpeg-user] FFmpeg stream copy fail Message-ID: Hi All, I see the document from ffmpeg website, it says tream copy is: It makes ffmpeg omit the decoding and encoding step for the specified stream, so it does only demuxing and muxing But I can NOT get the function work normally, it will cause out of memory, does anyone have get normally function about stream copy? for example: ffserver.conf for Stream: Feed feed1.ffm Format mjpeg VideoFrameRate 30 VideoSize 1280x720 VideoBitRate 256 VideoBufferSize 400 #VideoGopSize 3 VideoIntraOnly NoAudio #Strict -1 ffserver command: ffserver -d -f /etc/ffserver.conf& ffmpeg command: ffmpeg -f video4linux2 -r 30 -s 1280x720 -i /dev/video0 -c copy -f mpegts http://localhost:8090/feed1.ffm Is something wrong in command of ffmpeg? Is something wrong in ffserver.conf? Thanks a lot for your input! Best Regards, Soho From thomasenterprise41 at gmail.com Wed Feb 6 17:58:51 2013 From: thomasenterprise41 at gmail.com (Duane Thomas) Date: Wed, 6 Feb 2013 11:58:51 -0500 Subject: [FFmpeg-user] Encoding /Decoding Message-ID: Hello all, I am trying to find the switch combination and syntax for forcing a recording to skip the trans-coding process altogether and just upload the file as TS (Mpeg-2) Has anyone had to do this and can give me an example to use? Thanks; From tom.sheffler at gmail.com Wed Feb 6 18:18:51 2013 From: tom.sheffler at gmail.com (Tom Sheffler) Date: Wed, 6 Feb 2013 09:18:51 -0800 Subject: [FFmpeg-user] is there a limit to the number of files in the concat filter? Message-ID: Hello, I've had good success with the concat filter: ffmpeg -i concat:"file1|file2|file3" ... and have used it with a variety of container formats. My questions are about whether there is a limit to how many files I can concatenate this way. - Is there a limit to the number of files inside the ffmpeg code? - Is there a practical limit due to a command-line limit in the Linux shell? (I'm using Bash) - Is there a way to script ffmpeg using a file instead of the command-line? Thanks in advance, Tom S. From 23liam at googlemail.com Wed Feb 6 18:43:15 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Wed, 6 Feb 2013 17:43:15 +0000 Subject: [FFmpeg-user] Encoding /Decoding In-Reply-To: References: Message-ID: So, you just want to remux the streams into a new mpegts container? ffmpeg -i input.mp4 -c copy output.ts ...should do it. If you have h.264 video, you'll have to use a bit stream filter: ffmpeg -i input.mp4 -bsf:v h264_mp4toannexb -c copy output.ts From tylerbwear at gmail.com Wed Feb 6 19:46:50 2013 From: tylerbwear at gmail.com (tyler wear) Date: Wed, 6 Feb 2013 10:46:50 -0800 Subject: [FFmpeg-user] libavcodec size too large In-Reply-To: References: Message-ID: thanks, --enable-small managed to reduce the size to ~3mb. Not sure how I didn't see this option. Tyler On Wed, Feb 6, 2013 at 1:53 AM, Carl Eugen Hoyos wrote: > tyler wear gmail.com> writes: > > > I'm building it for an arm system which is running an > > android kernal. I'm running into an issue where the > > image size is way larger than what I expected (~14mb). > > What happens if you remove --disable-optimizations > from your configure line? > (And why don't you use --enable-small?) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Tyler B. Wear Qualcomm - Software Engineer From thomasenterprise41 at gmail.com Wed Feb 6 20:00:57 2013 From: thomasenterprise41 at gmail.com (Duane Thomas) Date: Wed, 6 Feb 2013 14:00:57 -0500 Subject: [FFmpeg-user] Encoding /Decoding In-Reply-To: References: Message-ID: Liam, Thanks for the reply, I'll try it. On Wed, Feb 6, 2013 at 12:43 PM, Liam Condron-Farnos <23liam at googlemail.com>wrote: > So, you just want to remux the streams into a new mpegts container? > > ffmpeg -i input.mp4 -c copy output.ts > > ...should do it. If you have h.264 video, you'll have to use a bit stream > filter: > > ffmpeg -i input.mp4 -bsf:v h264_mp4toannexb -c copy output.ts > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stefasab at gmail.com Wed Feb 6 23:08:51 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 6 Feb 2013 23:08:51 +0100 Subject: [FFmpeg-user] pts/dts error using reset_timestamps while splitting a DVD In-Reply-To: <90o3h85gh4jh76653p1suuulju9kv4ij4a@4ax.com> References: <5DC04E53-99CC-499A-BBF2-F1F3FA1507C3@gmail.com> <34DCE8A9-11FE-4F71-8901-9F1B3F489249@gmail.com> <20130205235023.GC13058@arborea> <90o3h85gh4jh76653p1suuulju9kv4ij4a@4ax.com> Message-ID: <20130206220851.GJ13058@arborea> On date Wednesday 2013-02-06 05:48:37 +0100, Jan Ehrhardt wrote: > Stefano Sabatini in gmane.comp.video.ffmpeg.user (Wed, 6 Feb 2013 > 00:50:23 +0100): > >I confirm this is a bug. > > > >Please try the attached patch, and report if it works for you. > > I could reproduce the error and can confirm that the patch works for > ffmpeg, built for Windows x86 and x64. Pushed, thanks for reporting/testing. -- FFmpeg = Funny Fancy Magical Pacific Elaborated Gymnast From stefasab at gmail.com Wed Feb 6 23:10:24 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 6 Feb 2013 23:10:24 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing In-Reply-To: References: Message-ID: <20130206221024.GK13058@arborea> On date Wednesday 2013-02-06 16:10:11 +0100, Daniel Oberhoff wrote: [...] > Ok, I must confess I am not so proficient in timestamps and video > format internals. I am currenlty under the impression, that the > problem cannot be solved the way I hoped. The streams nor the rtsp > commnunication do not seem to contain any absolute time values (the > pts seems to be relative to the stream start). So the only hope > would be that ffmpeg somehow measures the stream start delays and > compensates them. Until then we will just hope the delay is constant > and compensate it manually. > > Any better ideas? setpts=PTS-STARTPTS > Best, and thanks for the attention -- FFmpeg = Fiendish Fascinating Merciless Peaceful Easy Gangster From stefasab at gmail.com Wed Feb 6 23:12:50 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 6 Feb 2013 23:12:50 +0100 Subject: [FFmpeg-user] is there a limit to the number of files in the concat filter? In-Reply-To: References: Message-ID: <20130206221250.GL13058@arborea> On date Wednesday 2013-02-06 09:18:51 -0800, Tom Sheffler wrote: > Hello, > > I've had good success with the concat filter: I suppose you mean the concat *protocol*. > > ffmpeg -i concat:"file1|file2|file3" ... > > and have used it with a variety of container formats. My questions are > about whether there is a limit to how many files I can concatenate this way. > > - Is there a limit to the number of files inside the ffmpeg code? No, it will fail when you reach memory limits. > - Is there a practical limit due to a command-line limit in the Linux > shell? (I'm using Bash) Yes, depends on the maximum command-line size. > - Is there a way to script ffmpeg using a file instead of the command-line? Not at the moment, we could have some variant concatfile:FILE or some concat pattern, unfortunately it's not so easy to pass options to a protocol at the moment. -- FFmpeg = Fiendish Formidable Minimalistic Perfectionist Extensive Geek From cehoyos at ag.or.at Wed Feb 6 23:16:02 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 22:16:02 +0000 (UTC) Subject: [FFmpeg-user] libavcodec size too large References: Message-ID: tyler wear gmail.com> writes: > thanks, --enable-small managed to reduce the size to ~3mb. > Not sure how I didn't see this option. Out of curiosity: Is --enable-optimizations smaller or --disable-optimizations? Please do not top-post here. Carl Eugen From motty.cruz at gmail.com Wed Feb 6 23:19:37 2013 From: motty.cruz at gmail.com (motty cruz) Date: Wed, 6 Feb 2013 14:19:37 -0800 Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 Message-ID: Hello, I'm trying to install ffmpeg on Mountain Lion Mac OS, when I ran the command ./configure it looks for X11 and X11 is install on /opt/X11 but ./configure does not find it, I created a ln -s /opt/X11 X11 not luck can someone help me? From h.reindl at thelounge.net Wed Feb 6 23:23:13 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 06 Feb 2013 23:23:13 +0100 Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 In-Reply-To: References: Message-ID: <5112D7D1.7010201@thelounge.net> Am 06.02.2013 23:19, schrieb motty cruz: > Hello, I'm trying to install ffmpeg on Mountain Lion Mac OS, when I ran the > command ./configure it looks for X11 and X11 is install on /opt/X11 but > ./configure does not find it, I created a ln -s /opt/X11 X11 not luck > can someone help me? how should someone without any iinformations about your configure-line and without any outputs? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From motty.cruz at gmail.com Wed Feb 6 23:38:42 2013 From: motty.cruz at gmail.com (motty cruz) Date: Wed, 6 Feb 2013 14:38:42 -0800 Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 In-Reply-To: <5112D7D1.7010201@thelounge.net> References: <5112D7D1.7010201@thelounge.net> Message-ID: I apologize here is the command: it:ffmpeg admin$ ./configure --prefix=/usr --enable-shared --enable-libmp3lame --enable-gpl --enable-x11grab --enable-libx264 --enable-libtheora --disable-stripping --enable-avfilter ERROR: X11 not found If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. it:ffmpeg admin$ I know X11 exist here: it:X11 admin$ pwd /opt/X11/include/X11 it:X11 admin$ When I look at the config.log, I see the following error: error: X11/Xlib.h: No such file or directory ERROR: X11 not found So I know is looking in the wrong location, I edited the configure file in /ffmpeg to reflect the location of X11 /opt/X11 but no luck. Thanks On Wed, Feb 6, 2013 at 2:23 PM, Reindl Harald wrote: > > > Am 06.02.2013 23:19, schrieb motty cruz: > > Hello, I'm trying to install ffmpeg on Mountain Lion Mac OS, when I ran > the > > command ./configure it looks for X11 and X11 is install on /opt/X11 but > > ./configure does not find it, I created a ln -s /opt/X11 X11 not luck > > can someone help me? > > how should someone without any iinformations about > your configure-line and without any outputs? > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From cehoyos at ag.or.at Wed Feb 6 23:40:04 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 6 Feb 2013 22:40:04 +0000 (UTC) Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 References: Message-ID: motty cruz gmail.com> writes: > Hello, I'm trying to install ffmpeg on Mountain Lion Mac OS, > when I ran the command ./configure it looks for X11 and X11 > is install on /opt/X11 but ./configure does not find it I absolutely may miss something but why do you want X11 support? Carl Eugen From motty.cruz at gmail.com Wed Feb 6 23:42:57 2013 From: motty.cruz at gmail.com (motty cruz) Date: Wed, 6 Feb 2013 14:42:57 -0800 Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 In-Reply-To: References: Message-ID: I'm trying to screen video capture with ffmpeg ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg I used QuickTime screen recording but videos are not as clear as i want, Thanks in Advance! On Wed, Feb 6, 2013 at 2:40 PM, Carl Eugen Hoyos wrote: > motty cruz gmail.com> writes: > > > Hello, I'm trying to install ffmpeg on Mountain Lion Mac OS, > > when I ran the command ./configure it looks for X11 and X11 > > is install on /opt/X11 but ./configure does not find it > > I absolutely may miss something but why > do you want X11 support? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From jrich at laika.com Thu Feb 7 00:29:36 2013 From: jrich at laika.com (Jeanne Rich) Date: Wed, 6 Feb 2013 15:29:36 -0800 (PST) Subject: [FFmpeg-user] How to prevent timecode tracks in quicktime movies In-Reply-To: <301150721.6740604.1360192496681.JavaMail.root@laika.com> Message-ID: <1005975744.6749600.1360193376085.JavaMail.root@laika.com> I am converting a DNxHD 36 quicktime movie to h.264 quicktime movie using ffmpeg 1.1. I noticed that ffmpeg is adding a timecode track even though I haven't requested it, is there anyway to prevent this from happening. When I run the same command in version 0.8.4 I do not get the timecode track in the resulting movie. Here is the conversion command and the output of the conversion 'ffmpeg' '-threads' '4' '-i' testgray.mov '-f' 'mov' '-vcodec' 'libx264' '-crf' '14' '-r' '24.0' '-s' '720x406' '-aspect' '1.77339901478' -preset slow -profile:v main -pix_fmt yuv420p '-acodec' 'libfaac' '-ab' '288k' testgrayh264.mov ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 12:37:35 with gcc 4.1.2 (GCC) configuration: --prefix=/local/prod/b3p/2.0/ffmpeg/1.1 --enable-gpl --enable-nonfree --enable-pthreads --enable-static --enable-shared --enable-postproc --disable-debug --enable-avfilter --enable-zlib --enable-libvorbis --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-filter=movie --enable-libfreetype --extra-cflags='-I/local/prod/b3p/2.0/faac/1.28/include -I/local/prod/b3p/2.0/x264/r2245/include -I/local/prod/b3p/2.0/lame/3.98.4/include -I/local/prod/b3p/2.0/libogg/1.3.0/include -I/local/prod/b3p/2.0/libvpx/1.1.0/include -I/local/prod/b3p/2.0/libvorbis/1.3.2/include -fPIC' --extra-ldflags='-L/local/prod/b3p/2.0/faac/1.28/lib -L/local/prod/b3p/2.0/x264/r2245/lib -L/local/prod/b3p/2.0/lame/3.98.4/lib -L/local/prod/b3p/2.0/libogg/1.3.0/lib -L/local/prod/b3p/2.0/libvpx/1.1.0/lib -L/local/prod/b3p/2.0/libvorbis/1.3.2/lib -fPIC' 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 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testgray.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-02-22 21:35:14 timecode : 01:00:00:00 Duration: 00:03:17.96, start: 0.000000, bitrate: 37712 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 : 2012-02-22 21:35:14 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2012-02-22 21:35:14 handler_name : Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-02-22 21:37:56 handler_name : Apple Alias Data Handler timecode : 01:00:00:00 [libx264 @ 0x10aab40] using SAR=1/1 [libx264 @ 0x10aab40] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x10aab40] profile Main, level 3.0 [libx264 @ 0x10aab40] 264 - core 118 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 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=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=14.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mov, to 'testgrayh264.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 01:00:00:00 encoder : Lavf54.59.106 Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x406 [SAR 1:1 DAR 360:203], q=-1--1, 12288 tbn, 24 tbc Metadata: creation_time : 2012-02-22 21:35:14 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 288 kb/s Metadata: creation_time : 2012-02-22 21:35:14 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (dnxhd -> libx264) Stream #0:1 -> #0:1 (pcm_s16be -> libfaac) Press [q] to stop, [?] for help frame= 62 fps=0.0 q=19.0 size= 29kB time=00:00:01.64 bitrate= 143.8kbits/frame= 111 fps=111 q=19.0 size= 195kB time=00:00:03.66 bitrate= 434.3kbits/frame= 153 fps=101 q=19.0 size= 445kB time=00:00:05.39 bitrate= 674.7kbits/frame= 198 fps= 98 q=19.0 size= 633kB time=00:00:07.29 bitrate= 710.3kbits/frame= 229 fps= 90 q=19.0 size= 820kB time=00:00:08.57 bitrate= 783.7kbits/frame= 257 fps= 84 q=19.0 size= 1156kB time=00:00:09.72 bitrate= 973.2kbits/frame= 293 fps= 82 q=19.0 size= 1370kB time=00:00:11.24 bitrate= 998.2kbits/frame= 335 fps= 82 q=19.0 size= 1663kB time=00:00:13.01 bitrate=1046.7kbits/frame= 378 fps= 83 q=19.0 size= 2016kB time=00:00:14.76 bitrate=1118.8kbits/frame= 430 fps= 85 q=19.0 size= 2205kB time=00:00:16.93 bitrate=1066.4kbits/frame= 483 fps= 86 q=19.0 size= 2422kB time=00:00:19.15 bitrate=1035.6kbits/frame= 539 fps= 89 q=19.0 size= 2621kB time=00:00:21.48 bitrate= 999.5kbits/frame= 593 fps= 90 q=19.0 size= 2762kB time=00:00:23.74 bitrate= 952.9kbits/frame= 642 fps= 91 q=19.0 size= 2982kB time=00:00:25.77 bitrate= 948.1kbits/frame= 663 fps= 87 q=19.0 size= 3575kB time=00:00:26.64 bitrate=1099.3kbits/frame= 684 fps= 84 q=19.0 size= 4212kB time=00:00:27.52 bitrate=1253.7kbits/frame= 701 fps= 81 q=19.0 size= 4790kB time=00:00:28.24 bitrate=1389.2kbits/frame= 718 fps= 78 q=19.0 size= 5431kB time=00:00:28.94 bitrate=1536.8kbits/frame= 730 fps= 75 q=19.0 size= 5887kB time=00:00:29.44 bitrate=1638.2kbits/frame= 744 fps= 73 q=19.0 size= 6452kB time=00:00:30.03 bitrate=1759.6kbits/frame= 762 fps= 71 q=19.0 size= 7083kB time=00:00:30.78 bitrate=1884.8kbits/frame= 780 fps= 69 q=19.0 size= 7756kB time=00:00:31.53 bitrate=2015.0kbits/frame= 799 fps= 68 q=19.0 size= 8332kB time=00:00:32.32 bitrate=2111.8kbits/frame= 819 fps= 67 q=16.0 size= 8811kB time=00:00:33.15 bitrate=2177.3kbits/frame= 885 fps= 69 q=19.0 size= 9084kB time=00:00:35.90 bitrate=2072.7kbits/frame= 950 fps= 72 q=19.0 size= 9316kB time=00:00:38.61 bitrate=1976.3kbits/frame= 1018 fps= 74 q=19.0 size= 9401kB time=00:00:41.45 bitrate=1857.9kbits/frame= 1089 fps= 76 q=19.0 size= 9547kB time=00:00:44.39 bitrate=1761.7kbits/frame= 1154 fps= 78 q=19.0 size= 9741kB time=00:00:47.10 bitrate=1694.1kbits/frame= 1217 fps= 80 q=19.0 size= 9948kB time=00:00:49.72 bitrate=1638.8kbits/frame= 1271 fps= 81 q=19.0 size= 10107kB time=00:00:51.98 bitrate=1592.6kbits/frame= 1329 fps= 82 q=19.0 size= 10301kB time=00:00:54.40 bitrate=1551.2kbits/frame= 1391 fps= 83 q=19.0 size= 10448kB time=00:00:57.00 bitrate=1501.5kbits/frame= 1430 fps= 83 q=19.0 size= 10641kB time=00:00:58.58 bitrate=1488.1kbits/frame= 1488 fps= 84 q=19.0 size= 10773kB time=00:01:01.03 bitrate=1445.9kbits/frame= 1550 fps= 85 q=19.0 size= 10982kB time=00:01:03.59 bitrate=1414.6kbits/frame= 1616 fps= 86 q=19.0 size= 11167kB time=00:01:06.36 bitrate=1378.4kbits/frame= 1684 fps= 87 q=19.0 size= 11330kB time=00:01:09.20 bitrate=1341.1kbits/frame= 1755 fps= 89 q=19.0 size= 11416kB time=00:01:12.14 bitrate=1296.2kbits/frame= 1817 fps= 89 q=19.0 size= 11585kB time=00:01:14.73 bitrate=1270.0kbits/frame= 1879 fps= 90 q=19.0 size= 11741kB time=00:01:17.31 bitrate=1244.1kbits/frame= 1946 fps= 91 q=19.0 size= 11954kB time=00:01:20.10 bitrate=1222.5kbits/frame= 2007 fps= 92 q=19.0 size= 12170kB time=00:01:22.64 bitrate=1206.3kbits/frame= 2063 fps= 92 q=19.0 size= 12374kB time=00:01:24.99 bitrate=1192.6kbits/frame= 2114 fps= 93 q=19.0 size= 12514kB time=00:01:27.10 bitrate=1176.9kbits/frame= 2168 fps= 93 q=19.0 size= 12752kB time=00:01:29.34 bitrate=1169.2kbits/frame= 2232 fps= 94 q=19.0 size= 12923kB time=00:01:32.03 bitrate=1150.3kbits/frame= 2300 fps= 94 q=19.0 size= 13074kB time=00:01:34.86 bitrate=1128.9kbits/frame= 2364 fps= 95 q=19.0 size= 13272kB time=00:01:37.53 bitrate=1114.7kbits/frame= 2427 fps= 96 q=19.0 size= 13478kB time=00:01:40.16 bitrate=1102.4kbits/frame= 2486 fps= 96 q=19.0 size= 13668kB time=00:01:42.61 bitrate=1091.1kbits/frame= 2563 fps= 97 q=19.0 size= 13742kB time=00:01:45.83 bitrate=1063.6kbits/frame= 2629 fps= 98 q=19.0 size= 13908kB time=00:01:48.56 bitrate=1049.5kbits/frame= 2703 fps= 99 q=19.0 size= 13991kB time=00:01:51.65 bitrate=1026.4kbits/frame= 2770 fps= 99 q=19.0 size= 14162kB time=00:01:54.45 bitrate=1013.7kbits/frame= 2825 fps=100 q=19.0 size= 14475kB time=00:01:56.73 bitrate=1015.8kbits/frame= 2897 fps=100 q=19.0 size= 14609kB time=00:01:59.74 bitrate= 999.4kbits/frame= 2957 fps=101 q=19.0 size= 14751kB time=00:02:02.26 bitrate= 988.4kbits/frame= 3012 fps=101 q=19.0 size= 14886kB time=00:02:04.52 bitrate= 979.3kbits/frame= 3076 fps=101 q=19.0 size= 15114kB time=00:02:07.18 bitrate= 973.5kbits/frame= 3147 fps=102 q=19.0 size= 15193kB time=00:02:10.15 bitrate= 956.2kbits/frame= 3218 fps=103 q=19.0 size= 15386kB time=00:02:13.12 bitrate= 946.9kbits/frame= 3287 fps=103 q=19.0 size= 15560kB time=00:02:15.97 bitrate= 937.4kbits/frame= 3352 fps=103 q=19.0 size= 15753kB time=00:02:18.70 bitrate= 930.3kbits/frame= 3424 fps=104 q=19.0 size= 15911kB time=00:02:21.69 bitrate= 919.9kbits/frame= 3496 fps=105 q=19.0 size= 16055kB time=00:02:24.70 bitrate= 908.9kbits/frame= 3555 fps=105 q=19.0 size= 16285kB time=00:02:27.15 bitrate= 906.6kbits/frame= 3607 fps=105 q=19.0 size= 16577kB time=00:02:29.31 bitrate= 909.5kbits/frame= 3668 fps=105 q=19.0 size= 16747kB time=00:02:31.87 bitrate= 903.3kbits/frame= 3730 fps=105 q=19.0 size= 16950kB time=00:02:34.45 bitrate= 899.0kbits/frame= 3794 fps=106 q=19.0 size= 17046kB time=00:02:37.12 bitrate= 888.7kbits/frame= 3860 fps=106 q=19.0 size= 17149kB time=00:02:39.87 bitrate= 878.8kbits/frame= 3930 fps=106 q=19.0 size= 17279kB time=00:02:42.77 bitrate= 869.6kbits/frame= 3999 fps=107 q=16.0 size= 17329kB time=00:02:45.65 bitrate= 857.0kbits/frame= 4062 fps=107 q=19.0 size= 17473kB time=00:02:48.29 bitrate= 850.5kbits/frame= 4135 fps=108 q=19.0 size= 17671kB time=00:02:51.32 bitrate= 845.0kbits/frame= 4208 fps=108 q=19.0 size= 17780kB time=00:02:54.37 bitrate= 835.3kbits/frame= 4280 fps=109 q=19.0 size= 17843kB time=00:02:57.36 bitrate= 824.1kbits/frame= 4355 fps=109 q=19.0 size= 17907kB time=00:03:00.48 bitrate= 812.8kbits/frame= 4424 fps=109 q=19.0 size= 18089kB time=00:03:03.36 bitrate= 808.2kbits/frame= 4490 fps=110 q=19.0 size= 18297kB time=00:03:06.11 bitrate= 805.4kbits/frame= 4543 fps=110 q=19.0 size= 18534kB time=00:03:08.35 bitrate= 806.1kbits/frame= 4592 fps=110 q=19.0 size= 18751kB time=00:03:10.35 bitrate= 807.0kbits/frame= 4657 fps=110 q=19.0 size= 18977kB time=00:03:13.04 bitrate= 805.3kbits/frame= 4716 fps=110 q=19.0 size= 19158kB time=00:03:15.52 bitrate= 802.7kbits/frame= 4751 fps=109 q=-1.0 Lsize= 19584kB time=00:03:17.97 bitrate= 810.4kbits/s video:16592kB audio:2886kB subtitle:0 global headers:0kB muxing overhead 0.541383% [libx264 @ 0x10aab40] frame I:82 Avg QP: 5.73 size: 50498 [libx264 @ 0x10aab40] frame P:4186 Avg QP:17.31 size: 1933 [libx264 @ 0x10aab40] frame B:483 Avg QP:18.87 size: 9848 [libx264 @ 0x10aab40] consecutive B-frames: 85.3% 2.0% 4.0% 8.7% [libx264 @ 0x10aab40] mb I I16..4: 52.2% 0.0% 47.8% [libx264 @ 0x10aab40] mb P I16..4: 1.1% 0.0% 1.4% P16..4: 2.0% 0.6% 0.5% 0.0% 0.0% skip:94.2% [libx264 @ 0x10aab40] mb B I16..4: 2.9% 0.0% 3.2% B16..8: 17.8% 12.1% 6.9% direct: 1.8% skip:55.2% L0:44.9% L1:38.0% BI:17.2% [libx264 @ 0x10aab40] direct mvs spatial:99.2% temporal:0.8% [libx264 @ 0x10aab40] coded y,uvDC,uvAC intra: 45.1% 1.2% 1.1% inter: 2.7% 0.0% 0.0% [libx264 @ 0x10aab40] i16 v,h,dc,p: 2% 96% 1% 0% [libx264 @ 0x10aab40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 30% 10% 6% 8% 8% 8% 7% 10% [libx264 @ 0x10aab40] i8c dc,h,v,p: 90% 10% 0% 0% [libx264 @ 0x10aab40] Weighted P-Frames: Y:0.4% UV:0.0% [libx264 @ 0x10aab40] ref P L0: 53.4% 4.2% 17.3% 6.7% 4.3% 14.0% 0.0% [libx264 @ 0x10aab40] ref B L0: 70.7% 17.4% 8.2% 3.8% [libx264 @ 0x10aab40] ref B L1: 92.2% 7.8% [libx264 @ 0x10aab40] kb/s:686.60 This is the output of ffprobe from the resulting h.264 ffprobe -show_streams testgrayh264.mov ffprobe version 1.1 Copyright (c) 2007-2013 the FFmpeg developers built on Feb 5 2013 12:37:35 with gcc 4.1.2 (GCC) configuration: --prefix=/local/prod/b3p/2.0/ffmpeg/1.1 --enable-gpl --enable-nonfree --enable-pthreads --enable-static --enable-shared --enable-postproc --disable-debug --enable-avfilter --enable-zlib --enable-libvorbis --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-filter=movie --enable-libfreetype --extra-cflags='-I/local/prod/b3p/2.0/faac/1.28/include -I/local/prod/b3p/2.0/x264/r2245/include -I/local/prod/b3p/2.0/lame/3.98.4/include -I/local/prod/b3p/2.0/libogg/1.3.0/include -I/local/prod/b3p/2.0/libvpx/1.1.0/include -I/local/prod/b3p/2.0/libvorbis/1.3.2/include -fPIC' --extra-ldflags='-L/local/prod/b3p/2.0/faac/1.28/lib -L/local/prod/b3p/2.0/x264/r2245/lib -L/local/prod/b3p/2.0/lame/3.98.4/lib -L/local/prod/b3p/2.0/libogg/1.3.0/lib -L/local/prod/b3p/2.0/libvpx/1.1.0/lib -L/local/prod/b3p/2.0/libvorbis/1.3.2/lib -fPIC' 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 'testgrayh264.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.59.106 Duration: 00:03:17.98, start: 0.021333, bitrate: 810 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x406 [SAR 1:1 DAR 360:203], 686 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : DataHandler timecode : 01:00:00:00 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 119 kb/s Metadata: handler_name : DataHandler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: handler_name : DataHandler timecode : 01:00:00:00 Unsupported codec with id 0 for input stream 2 [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 codec_tag_string=avc1 codec_tag=0x31637661 width=720 height=406 has_b_frames=2 sample_aspect_ratio=1:1 display_aspect_ratio=360:203 pix_fmt=yuv420p level=30 timecode=N/A is_avc=1 nal_length_size=4 id=N/A r_frame_rate=24/1 avg_frame_rate=24/1 time_base=1/12288 start_pts=0 start_time=0.000000 duration_ts=2432512 duration=197.958333 bit_rate=686626 nb_frames=4751 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] [STREAM] index=1 codec_name=aac codec_long_name=AAC (Advanced Audio Coding) profile=unknown codec_type=audio codec_time_base=1/48000 codec_tag_string=mp4a codec_tag=0x6134706d sample_fmt=fltp sample_rate=48000 channels=2 bits_per_sample=0 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_pts=-1024 start_time=-0.021333 duration_ts=9503024 duration=197.979667 bit_rate=119426 nb_frames=9281 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 [/STREAM] [STREAM] index=2 codec_name=unknown codec_long_name=unknown profile=unknown codec_type=data codec_time_base=1/24 codec_tag_string=tmcd codec_tag=0x64636d74 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/12288 start_pts=0 start_time=0.000000 duration_ts=2432512 duration=197.958333 bit_rate=N/A nb_frames=1 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] From infos at madovsky.org Thu Feb 7 00:58:10 2013 From: infos at madovsky.org (Madovsky) Date: Wed, 6 Feb 2013 18:58:10 -0500 Subject: [FFmpeg-user] git compilation error Message-ID: On Fedora 18 64bits ./configure --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype libavcodec/libavcodec.a(dv.o): In function `dv_guess_qnos': /home/src/ffmpeg/libavcodec/dv.c:616: undefined reference to `ff_dv_quant_offset' /home/src/ffmpeg/libavcodec/dv.c:616: undefined reference to `ff_dv_quant_shifts' libavcodec/libavcodec.a(dv.o): In function `ff_dv_init_dynamic_tables': /home/src/ffmpeg/libavcodec/dv.c:207: undefined reference to `ff_dv_iweight_720_c' /home/src/ffmpeg/libavcodec/dv.c:207: undefined reference to `ff_dv_iweight_720_y' /home/src/ffmpeg/libavcodec/dv.c:207: undefined reference to `ff_dv_iweight_1080_c' /home/src/ffmpeg/libavcodec/dv.c:207: undefined reference to `ff_dv_iweight_1080_y' /home/src/ffmpeg/libavcodec/dv.c:212: undefined reference to `ff_dv_iweight_88' /home/src/ffmpeg/libavcodec/dv.c:226: undefined reference to `ff_dv_quant_shifts' /home/src/ffmpeg/libavcodec/dv.c:223: undefined reference to `ff_dv_iweight_248' libavcodec/libavcodec.a(ac3dec.o): In function `parse_frame_header': /home/src/ffmpeg/libavcodec/ac3dec.c:293: undefined reference to `ff_eac3_parse_header' libavcodec/libavcodec.a(ac3dec.o): In function `decode_transform_coeffs': /home/src/ffmpeg/libavcodec/ac3dec.c:530: undefined reference to `ff_eac3_decode_transform_coeffs_aht_ch' libavcodec/libavcodec.a(ac3dec.o): In function `decode_audio_block': /home/src/ffmpeg/libavcodec/ac3dec.c:1223: undefined reference to `ff_eac3_apply_spectral_extension' libavcodec/libavcodec.a(ac3dec.o): In function `decode_transform_coeffs': /home/src/ffmpeg/libavcodec/ac3dec.c:530: undefined reference to `ff_eac3_decode_transform_coeffs_aht_ch' libavcodec/libavcodec.a(allcodecs.o): In function `avcodec_register_all': /home/src/ffmpeg/libavcodec/allcodecs.c:133: undefined reference to `ff_dvvideo_decoder' /home/src/ffmpeg/libavcodec/allcodecs.c:452: undefined reference to `ff_dvbsub_decoder' /home/src/ffmpeg/libavcodec/allcodecs.c:453: undefined reference to `ff_dvdsub_decoder' collect2: error: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 thanks From tylerbwear at gmail.com Thu Feb 7 01:11:10 2013 From: tylerbwear at gmail.com (tyler wear) Date: Wed, 6 Feb 2013 16:11:10 -0800 Subject: [FFmpeg-user] libavcodec size too large In-Reply-To: References: Message-ID: Enable is smaller by 2kb... So really it doesn't matter. On Feb 6, 2013 2:17 PM, "Carl Eugen Hoyos" wrote: > tyler wear gmail.com> writes: > > > thanks, --enable-small managed to reduce the size to ~3mb. > > Not sure how I didn't see this option. > > Out of curiosity: > Is --enable-optimizations smaller or --disable-optimizations? > > Please do not top-post here. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From jrich at laika.com Thu Feb 7 01:15:14 2013 From: jrich at laika.com (Jeanne Rich) Date: Wed, 6 Feb 2013 16:15:14 -0800 (PST) Subject: [FFmpeg-user] How to prevent timecode tracks in quicktime movies In-Reply-To: <1005975744.6749600.1360193376085.JavaMail.root@laika.com> Message-ID: <1461254828.6759910.1360196114358.JavaMail.root@laika.com> One other thing, the source dnxhd movie has a timecode track, but the Timecode Start is set to NA, not 01:00:00:00, I'm not sure were that timecode is coming from, could be in the DNxHD metadata itself. I am getting this info from the Quicktime Player version 7 movie properties, but below is the ffprobe of the movie, it seems to thinkl the timecode track has a timecode Tag of 01:00:00:00 ffprobe -show_streams testgray.mov ffprobe version 1.1 Copyright (c) 2007-2013 the FFmpeg developers built on Feb 5 2013 12:37:35 with gcc 4.1.2 (GCC) configuration: --prefix=/local/prod/b3p/2.0/ffmpeg/1.1 --enable-gpl --enable-nonfree --enable-pthreads --enable-static --enable-shared --enable-postproc --disable-debug --enable-avfilter --enable-zlib --enable-libvorbis --enable-libfaac --enable-libx264 --enable-libmp3lame --enable-libvpx --enable-filter=movie --enable-libfreetype --extra-cflags='-I/local/prod/b3p/2.0/faac/1.28/include -I/local/prod/b3p/2.0/x264/r2245/include -I/local/prod/b3p/2.0/lame/3.98.4/include -I/local/prod/b3p/2.0/libogg/1.3.0/include -I/local/prod/b3p/2.0/libvpx/1.1.0/include -I/local/prod/b3p/2.0/libvorbis/1.3.2/include -fPIC' --extra-ldflags='-L/local/prod/b3p/2.0/faac/1.28/lib -L/local/prod/b3p/2.0/x264/r2245/lib -L/local/prod/b3p/2.0/lame/3.98.4/lib -L/local/prod/b3p/2.0/libogg/1.3.0/lib -L/local/prod/b3p/2.0/libvpx/1.1.0/lib -L/local/prod/b3p/2.0/libvorbis/1.3.2/lib -fPIC' 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 'testgray.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-02-22 21:35:14 timecode : 01:00:00:00 Duration: 00:03:17.96, start: 0.000000, bitrate: 37712 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 : 2012-02-22 21:35:14 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2012-02-22 21:35:14 handler_name : Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-02-22 21:37:56 handler_name : Apple Alias Data Handler timecode : 01:00:00:00 Unsupported codec with id 0 for input stream 2 [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=4751000 duration=197.958333 bit_rate=36175872 nb_frames=4751 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=2012-02-22 21:35:14 TAG:language=eng TAG:handler_name=Apple Alias Data Handler [/STREAM] [STREAM] index=1 codec_name=pcm_s16be codec_long_name=PCM signed 16-bit big-endian profile=unknown codec_type=audio codec_time_base=1/48000 codec_tag_string=twos codec_tag=0x736f7774 sample_fmt=s16 sample_rate=48000 channels=2 bits_per_sample=16 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_pts=0 start_time=0.000000 duration_ts=9502000 duration=197.958333 bit_rate=1536000 nb_frames=9502000 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=2012-02-22 21:35:14 TAG:language=eng TAG:handler_name=Apple Alias Data Handler [/STREAM] [STREAM] index=2 codec_name=unknown codec_long_name=unknown profile=unknown codec_type=data codec_time_base=1/24 codec_tag_string=tmcd codec_tag=0x64636d74 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/24000 start_pts=0 start_time=0.000000 duration_ts=4751000 duration=197.958333 bit_rate=N/A nb_frames=1 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=2012-02-22 21:37:56 TAG:language=eng TAG:handler_name=Apple Alias Data Handler TAG:timecode=01:00:00:00 [/STREAM] ----- Original Message ----- > I am converting a DNxHD 36 quicktime movie to h.264 quicktime movie > using ffmpeg 1.1. I noticed that ffmpeg is adding a timecode track > even though I haven't requested it, is there anyway to prevent this > from happening. > > When I run the same command in version 0.8.4 I do not get the > timecode track in the resulting movie. > > Here is the conversion command and the output of the conversion > > 'ffmpeg' '-threads' '4' '-i' testgray.mov '-f' 'mov' '-vcodec' > 'libx264' '-crf' '14' '-r' '24.0' '-s' '720x406' '-aspect' > '1.77339901478' -preset slow -profile:v main -pix_fmt yuv420p > '-acodec' 'libfaac' '-ab' '288k' testgrayh264.mov > ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 5 2013 12:37:35 with gcc 4.1.2 (GCC) > configuration: --prefix=/local/prod/b3p/2.0/ffmpeg/1.1 --enable-gpl > --enable-nonfree --enable-pthreads --enable-static --enable-shared > --enable-postproc --disable-debug --enable-avfilter --enable-zlib > --enable-libvorbis --enable-libfaac --enable-libx264 > --enable-libmp3lame --enable-libvpx --enable-filter=movie > --enable-libfreetype > --extra-cflags='-I/local/prod/b3p/2.0/faac/1.28/include > -I/local/prod/b3p/2.0/x264/r2245/include > -I/local/prod/b3p/2.0/lame/3.98.4/include > -I/local/prod/b3p/2.0/libogg/1.3.0/include > -I/local/prod/b3p/2.0/libvpx/1.1.0/include > -I/local/prod/b3p/2.0/libvorbis/1.3.2/include -fPIC' > --extra-ldflags='-L/local/prod/b3p/2.0/faac/1.28/lib > -L/local/prod/b3p/2.0/x264/r2245/lib > -L/local/prod/b3p/2.0/lame/3.98.4/lib > -L/local/prod/b3p/2.0/libogg/1.3.0/lib > -L/local/prod/b3p/2.0/libvpx/1.1.0/lib > -L/local/prod/b3p/2.0/libvorbis/1.3.2/lib -fPIC' > 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 > Guessed Channel Layout for Input Stream #0.1 : stereo > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testgray.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > creation_time : 2012-02-22 21:35:14 > timecode : 01:00:00:00 > Duration: 00:03:17.96, start: 0.000000, bitrate: 37712 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 : 2012-02-22 21:35:14 > handler_name : Apple Alias Data Handler > Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, > stereo, s16, 1536 kb/s > Metadata: > creation_time : 2012-02-22 21:35:14 > handler_name : Apple Alias Data Handler > Stream #0:2(eng): Data: none (tmcd / 0x64636D74) > Metadata: > creation_time : 2012-02-22 21:37:56 > handler_name : Apple Alias Data Handler > timecode : 01:00:00:00 > [libx264 @ 0x10aab40] using SAR=1/1 > [libx264 @ 0x10aab40] using cpu capabilities: MMX2 SSE2Fast SSSE3 > FastShuffle SSE4.2 > [libx264 @ 0x10aab40] profile Main, level 3.0 > [libx264 @ 0x10aab40] 264 - core 118 - H.264/MPEG-4 AVC codec - > Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: > cabac=1 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1 > psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 > 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 > threads=6 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=250 > keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf > mbtree=1 crf=14.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 > aq=1:1.00 > Output #0, mov, to 'testgrayh264.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > timecode : 01:00:00:00 > encoder : Lavf54.59.106 > Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x406 > [SAR 1:1 DAR 360:203], q=-1--1, 12288 tbn, 24 tbc > Metadata: > creation_time : 2012-02-22 21:35:14 > handler_name : Apple Alias Data Handler > Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, > s16, 288 kb/s > Metadata: > creation_time : 2012-02-22 21:35:14 > handler_name : Apple Alias Data Handler > Stream mapping: > Stream #0:0 -> #0:0 (dnxhd -> libx264) > Stream #0:1 -> #0:1 (pcm_s16be -> libfaac) > Press [q] to stop, [?] for help > frame= 62 fps=0.0 q=19.0 size= 29kB time=00:00:01.64 bitrate= > 143.8kbits/frame= 111 fps=111 q=19.0 size= 195kB time=00:00:03.66 > bitrate= 434.3kbits/frame= 153 fps=101 q=19.0 size= 445kB > time=00:00:05.39 bitrate= 674.7kbits/frame= 198 fps= 98 q=19.0 size= > 633kB time=00:00:07.29 bitrate= 710.3kbits/frame= 229 fps= 90 q=19.0 > size= 820kB time=00:00:08.57 bitrate= 783.7kbits/frame= 257 fps= 84 > q=19.0 size= 1156kB time=00:00:09.72 bitrate= 973.2kbits/frame= 293 > fps= 82 q=19.0 size= 1370kB time=00:00:11.24 bitrate= > 998.2kbits/frame= 335 fps= 82 q=19.0 size= 1663kB time=00:00:13.01 > bitrate=1046.7kbits/frame= 378 fps= 83 q=19.0 size= 2016kB > time=00:00:14.76 bitrate=1118.8kbits/frame= 430 fps= 85 q=19.0 size= > 2205kB time=00:00:16.93 bitrate=1066.4kbits/frame= 483 fps= 86 > q=19.0 size= 2422kB time=00:00:19.15 bitrate=1035.6kbits/frame= 539 > fps= 89 q=19.0 size= 2621kB time=00:00:21.48 bitrate= > 999.5kbits/frame= 593 fps= 90 q=19.0 size= 2762kB time=00:00:23.74 > bitrate= 952.9kbits/frame= 64 > 2 fps= 91 q=19.0 size= 2982kB time=00:00:25.77 bitrate= > 948.1kbits/frame= 663 fps= 87 q=19.0 size= 3575kB time=00:00:26.64 > bitrate=1099.3kbits/frame= 684 fps= 84 q=19.0 size= 4212kB > time=00:00:27.52 bitrate=1253.7kbits/frame= 701 fps= 81 q=19.0 > size= 4790kB time=00:00:28.24 bitrate=1389.2kbits/frame= 718 fps= > 78 q=19.0 size= 5431kB time=00:00:28.94 bitrate=1536.8kbits/frame= > 730 fps= 75 q=19.0 size= 5887kB time=00:00:29.44 > bitrate=1638.2kbits/frame= 744 fps= 73 q=19.0 size= 6452kB > time=00:00:30.03 bitrate=1759.6kbits/frame= 762 fps= 71 q=19.0 > size= 7083kB time=00:00:30.78 bitrate=1884.8kbits/frame= 780 fps= > 69 q=19.0 size= 7756kB time=00:00:31.53 bitrate=2015.0kbits/frame= > 799 fps= 68 q=19.0 size= 8332kB time=00:00:32.32 > bitrate=2111.8kbits/frame= 819 fps= 67 q=16.0 size= 8811kB > time=00:00:33.15 bitrate=2177.3kbits/frame= 885 fps= 69 q=19.0 > size= 9084kB time=00:00:35.90 bitrate=2072.7kbits/frame= 950 fps= > 72 q=19.0 size= 9316kB time=00:00:38.61 bitrate=1976.3kbits/frame= > 101 > 8 fps= 74 q=19.0 size= 9401kB time=00:00:41.45 > bitrate=1857.9kbits/frame= 1089 fps= 76 q=19.0 size= 9547kB > time=00:00:44.39 bitrate=1761.7kbits/frame= 1154 fps= 78 q=19.0 > size= 9741kB time=00:00:47.10 bitrate=1694.1kbits/frame= 1217 fps= > 80 q=19.0 size= 9948kB time=00:00:49.72 bitrate=1638.8kbits/frame= > 1271 fps= 81 q=19.0 size= 10107kB time=00:00:51.98 > bitrate=1592.6kbits/frame= 1329 fps= 82 q=19.0 size= 10301kB > time=00:00:54.40 bitrate=1551.2kbits/frame= 1391 fps= 83 q=19.0 > size= 10448kB time=00:00:57.00 bitrate=1501.5kbits/frame= 1430 fps= > 83 q=19.0 size= 10641kB time=00:00:58.58 bitrate=1488.1kbits/frame= > 1488 fps= 84 q=19.0 size= 10773kB time=00:01:01.03 > bitrate=1445.9kbits/frame= 1550 fps= 85 q=19.0 size= 10982kB > time=00:01:03.59 bitrate=1414.6kbits/frame= 1616 fps= 86 q=19.0 > size= 11167kB time=00:01:06.36 bitrate=1378.4kbits/frame= 1684 fps= > 87 q=19.0 size= 11330kB time=00:01:09.20 bitrate=1341.1kbits/frame= > 1755 fps= 89 q=19.0 size= 11416kB time=00:01:12.14 bitrate=1 > 296.2kbits/frame= 1817 fps= 89 q=19.0 size= 11585kB time=00:01:14.73 > bitrate=1270.0kbits/frame= 1879 fps= 90 q=19.0 size= 11741kB > time=00:01:17.31 bitrate=1244.1kbits/frame= 1946 fps= 91 q=19.0 > size= 11954kB time=00:01:20.10 bitrate=1222.5kbits/frame= 2007 fps= > 92 q=19.0 size= 12170kB time=00:01:22.64 bitrate=1206.3kbits/frame= > 2063 fps= 92 q=19.0 size= 12374kB time=00:01:24.99 > bitrate=1192.6kbits/frame= 2114 fps= 93 q=19.0 size= 12514kB > time=00:01:27.10 bitrate=1176.9kbits/frame= 2168 fps= 93 q=19.0 > size= 12752kB time=00:01:29.34 bitrate=1169.2kbits/frame= 2232 fps= > 94 q=19.0 size= 12923kB time=00:01:32.03 bitrate=1150.3kbits/frame= > 2300 fps= 94 q=19.0 size= 13074kB time=00:01:34.86 > bitrate=1128.9kbits/frame= 2364 fps= 95 q=19.0 size= 13272kB > time=00:01:37.53 bitrate=1114.7kbits/frame= 2427 fps= 96 q=19.0 > size= 13478kB time=00:01:40.16 bitrate=1102.4kbits/frame= 2486 fps= > 96 q=19.0 size= 13668kB time=00:01:42.61 bitrate=1091.1kbits/frame= > 2563 fps= 97 q=19.0 size= 13742kB t > ime=00:01:45.83 bitrate=1063.6kbits/frame= 2629 fps= 98 q=19.0 size= > 13908kB time=00:01:48.56 bitrate=1049.5kbits/frame= 2703 fps= 99 > q=19.0 size= 13991kB time=00:01:51.65 bitrate=1026.4kbits/frame= > 2770 fps= 99 q=19.0 size= 14162kB time=00:01:54.45 > bitrate=1013.7kbits/frame= 2825 fps=100 q=19.0 size= 14475kB > time=00:01:56.73 bitrate=1015.8kbits/frame= 2897 fps=100 q=19.0 > size= 14609kB time=00:01:59.74 bitrate= 999.4kbits/frame= 2957 > fps=101 q=19.0 size= 14751kB time=00:02:02.26 bitrate= > 988.4kbits/frame= 3012 fps=101 q=19.0 size= 14886kB > time=00:02:04.52 bitrate= 979.3kbits/frame= 3076 fps=101 q=19.0 > size= 15114kB time=00:02:07.18 bitrate= 973.5kbits/frame= 3147 > fps=102 q=19.0 size= 15193kB time=00:02:10.15 bitrate= > 956.2kbits/frame= 3218 fps=103 q=19.0 size= 15386kB > time=00:02:13.12 bitrate= 946.9kbits/frame= 3287 fps=103 q=19.0 > size= 15560kB time=00:02:15.97 bitrate= 937.4kbits/frame= 3352 > fps=103 q=19.0 size= 15753kB time=00:02:18.70 bitrate= > 930.3kbits/frame= 3424 fps=1 > 04 q=19.0 size= 15911kB time=00:02:21.69 bitrate= 919.9kbits/frame= > 3496 fps=105 q=19.0 size= 16055kB time=00:02:24.70 bitrate= > 908.9kbits/frame= 3555 fps=105 q=19.0 size= 16285kB > time=00:02:27.15 bitrate= 906.6kbits/frame= 3607 fps=105 q=19.0 > size= 16577kB time=00:02:29.31 bitrate= 909.5kbits/frame= 3668 > fps=105 q=19.0 size= 16747kB time=00:02:31.87 bitrate= > 903.3kbits/frame= 3730 fps=105 q=19.0 size= 16950kB > time=00:02:34.45 bitrate= 899.0kbits/frame= 3794 fps=106 q=19.0 > size= 17046kB time=00:02:37.12 bitrate= 888.7kbits/frame= 3860 > fps=106 q=19.0 size= 17149kB time=00:02:39.87 bitrate= > 878.8kbits/frame= 3930 fps=106 q=19.0 size= 17279kB > time=00:02:42.77 bitrate= 869.6kbits/frame= 3999 fps=107 q=16.0 > size= 17329kB time=00:02:45.65 bitrate= 857.0kbits/frame= 4062 > fps=107 q=19.0 size= 17473kB time=00:02:48.29 bitrate= > 850.5kbits/frame= 4135 fps=108 q=19.0 size= 17671kB > time=00:02:51.32 bitrate= 845.0kbits/frame= 4208 fps=108 q=19.0 > size= 17780kB time=00:02:54.37 bitrate= 835 > .3kbits/frame= 4280 fps=109 q=19.0 size= 17843kB time=00:02:57.36 > bitrate= 824.1kbits/frame= 4355 fps=109 q=19.0 size= 17907kB > time=00:03:00.48 bitrate= 812.8kbits/frame= 4424 fps=109 q=19.0 > size= 18089kB time=00:03:03.36 bitrate= 808.2kbits/frame= 4490 > fps=110 q=19.0 size= 18297kB time=00:03:06.11 bitrate= > 805.4kbits/frame= 4543 fps=110 q=19.0 size= 18534kB > time=00:03:08.35 bitrate= 806.1kbits/frame= 4592 fps=110 q=19.0 > size= 18751kB time=00:03:10.35 bitrate= 807.0kbits/frame= 4657 > fps=110 q=19.0 size= 18977kB time=00:03:13.04 bitrate= > 805.3kbits/frame= 4716 fps=110 q=19.0 size= 19158kB > time=00:03:15.52 bitrate= 802.7kbits/frame= 4751 fps=109 q=-1.0 > Lsize= 19584kB time=00:03:17.97 bitrate= 810.4kbits/s > video:16592kB audio:2886kB subtitle:0 global headers:0kB muxing > overhead 0.541383% > [libx264 @ 0x10aab40] frame I:82 Avg QP: 5.73 size: 50498 > [libx264 @ 0x10aab40] frame P:4186 Avg QP:17.31 size: 1933 > [libx264 @ 0x10aab40] frame B:483 Avg QP:18.87 size: 9848 > [libx264 @ 0x10aab40] consecutive B-frames: 85.3% 2.0% 4.0% 8.7% > [libx264 @ 0x10aab40] mb I I16..4: 52.2% 0.0% 47.8% > [libx264 @ 0x10aab40] mb P I16..4: 1.1% 0.0% 1.4% P16..4: 2.0% 0.6% > 0.5% 0.0% 0.0% skip:94.2% > [libx264 @ 0x10aab40] mb B I16..4: 2.9% 0.0% 3.2% B16..8: 17.8% 12.1% > 6.9% direct: 1.8% skip:55.2% L0:44.9% L1:38.0% BI:17.2% > [libx264 @ 0x10aab40] direct mvs spatial:99.2% temporal:0.8% > [libx264 @ 0x10aab40] coded y,uvDC,uvAC intra: 45.1% 1.2% 1.1% inter: > 2.7% 0.0% 0.0% > [libx264 @ 0x10aab40] i16 v,h,dc,p: 2% 96% 1% 0% > [libx264 @ 0x10aab40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 30% 10% 6% > 8% 8% 8% 7% 10% > [libx264 @ 0x10aab40] i8c dc,h,v,p: 90% 10% 0% 0% > [libx264 @ 0x10aab40] Weighted P-Frames: Y:0.4% UV:0.0% > [libx264 @ 0x10aab40] ref P L0: 53.4% 4.2% 17.3% 6.7% 4.3% 14.0% 0.0% > [libx264 @ 0x10aab40] ref B L0: 70.7% 17.4% 8.2% 3.8% > [libx264 @ 0x10aab40] ref B L1: 92.2% 7.8% > [libx264 @ 0x10aab40] kb/s:686.60 > > This is the output of ffprobe from the resulting h.264 > ffprobe -show_streams testgrayh264.mov > ffprobe version 1.1 Copyright (c) 2007-2013 the FFmpeg developers > built on Feb 5 2013 12:37:35 with gcc 4.1.2 (GCC) > configuration: --prefix=/local/prod/b3p/2.0/ffmpeg/1.1 --enable-gpl > --enable-nonfree --enable-pthreads --enable-static --enable-shared > --enable-postproc --disable-debug --enable-avfilter --enable-zlib > --enable-libvorbis --enable-libfaac --enable-libx264 > --enable-libmp3lame --enable-libvpx --enable-filter=movie > --enable-libfreetype > --extra-cflags='-I/local/prod/b3p/2.0/faac/1.28/include > -I/local/prod/b3p/2.0/x264/r2245/include > -I/local/prod/b3p/2.0/lame/3.98.4/include > -I/local/prod/b3p/2.0/libogg/1.3.0/include > -I/local/prod/b3p/2.0/libvpx/1.1.0/include > -I/local/prod/b3p/2.0/libvorbis/1.3.2/include -fPIC' > --extra-ldflags='-L/local/prod/b3p/2.0/faac/1.28/lib > -L/local/prod/b3p/2.0/x264/r2245/lib > -L/local/prod/b3p/2.0/lame/3.98.4/lib > -L/local/prod/b3p/2.0/libogg/1.3.0/lib > -L/local/prod/b3p/2.0/libvpx/1.1.0/lib > -L/local/prod/b3p/2.0/libvorbis/1.3.2/lib -fPIC' > 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 'testgrayh264.mov': > Metadata: > major_brand : qt > minor_version : 512 > compatible_brands: qt > encoder : Lavf54.59.106 > Duration: 00:03:17.98, start: 0.021333, bitrate: 810 kb/s > Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, > 720x406 [SAR 1:1 DAR 360:203], 686 kb/s, 24 fps, 24 tbr, 12288 tbn, > 48 tbc > Metadata: > handler_name : DataHandler > timecode : 01:00:00:00 > Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, > fltp, 119 kb/s > Metadata: > handler_name : DataHandler > Stream #0:2(eng): Data: none (tmcd / 0x64636D74) > Metadata: > handler_name : DataHandler > timecode : 01:00:00:00 > Unsupported codec with id 0 for input stream 2 > [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 > codec_tag_string=avc1 > codec_tag=0x31637661 > width=720 > height=406 > has_b_frames=2 > sample_aspect_ratio=1:1 > display_aspect_ratio=360:203 > pix_fmt=yuv420p > level=30 > timecode=N/A > is_avc=1 > nal_length_size=4 > id=N/A > r_frame_rate=24/1 > avg_frame_rate=24/1 > time_base=1/12288 > start_pts=0 > start_time=0.000000 > duration_ts=2432512 > duration=197.958333 > bit_rate=686626 > nb_frames=4751 > 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] > [STREAM] > index=1 > codec_name=aac > codec_long_name=AAC (Advanced Audio Coding) > profile=unknown > codec_type=audio > codec_time_base=1/48000 > codec_tag_string=mp4a > codec_tag=0x6134706d > sample_fmt=fltp > sample_rate=48000 > channels=2 > bits_per_sample=0 > id=N/A > r_frame_rate=0/0 > avg_frame_rate=0/0 > time_base=1/48000 > start_pts=-1024 > start_time=-0.021333 > duration_ts=9503024 > duration=197.979667 > bit_rate=119426 > nb_frames=9281 > 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 > [/STREAM] > [STREAM] > index=2 > codec_name=unknown > codec_long_name=unknown > profile=unknown > codec_type=data > codec_time_base=1/24 > codec_tag_string=tmcd > codec_tag=0x64636d74 > id=N/A > r_frame_rate=0/0 > avg_frame_rate=0/0 > time_base=1/12288 > start_pts=0 > start_time=0.000000 > duration_ts=2432512 > duration=197.958333 > bit_rate=N/A > nb_frames=1 > 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] > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Thu Feb 7 01:25:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 7 Feb 2013 00:25:40 +0000 (UTC) Subject: [FFmpeg-user] git compilation error References: Message-ID: Madovsky madovsky.org> writes: > ./configure --enable-static --enable-gpl --enable-nonfree > --enable-libfaac --enable-libx264 --enable-pthreads > --enable-postproc --enable-libspeex --enable-librtmp > --enable-runtime-cpudetect --enable-libfreetype (Unrelated: The following configure options have no effect: --enable-pthreads, --enable-postproc.) > libavcodec/libavcodec.a(dv.o): In function `dv_guess_qnos': > /home/src/ffmpeg/libavcodec/dv.c:616: > undefined reference to `ff_dv_quant_offset' Since this is not reproducible here please provide the version number (git log) and confirm that you did "make distclean" before running configure. Carl Eugen From cehoyos at ag.or.at Thu Feb 7 01:26:43 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 7 Feb 2013 00:26:43 +0000 (UTC) Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 References: Message-ID: motty cruz gmail.com> writes: > I'm trying to screen video capture with ffmpeg > > ffmpeg -f x11grab -s cif -i :0.0 /tmp/out.mpg Please post the last lines of config.log Please do not top-post here, Carl Eugen From matthieu.bouron at gmail.com Thu Feb 7 10:58:51 2013 From: matthieu.bouron at gmail.com (Matthieu Bouron) Date: Thu, 7 Feb 2013 10:58:51 +0100 Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 In-Reply-To: References: <5112D7D1.7010201@thelounge.net> Message-ID: On Wed, Feb 6, 2013 at 11:38 PM, motty cruz wrote: > I apologize here is the command: > it:ffmpeg admin$ ./configure --prefix=/usr --enable-shared > --enable-libmp3lame --enable-gpl --enable-x11grab --enable-libx264 > --enable-libtheora --disable-stripping --enable-avfilter > ERROR: X11 not found > > If you think configure made a mistake, make sure you are using the latest > version from Git. If the latest version fails, report the problem to the > ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. > Include the log file "config.log" produced by configure as this will help > solving the problem. > it:ffmpeg admin$ > > > I know X11 exist here: > it:X11 admin$ pwd > /opt/X11/include/X11 > it:X11 admin$ > > > When I look at the config.log, I see the following error: > error: X11/Xlib.h: No such file or directory ERROR: X11 not found > > So I know is looking in the wrong location, I edited the configure file in > /ffmpeg to reflect the location of X11 /opt/X11 but no luck. Have you tried to install xquartz ? X11 is not supported anymore by osx mountain lion (http://support.apple.com/kb/HT5293) Regards, Matthieu [...] From james.darnley at gmail.com Thu Feb 7 12:59:10 2013 From: james.darnley at gmail.com (James Darnley) Date: Thu, 07 Feb 2013 12:59:10 +0100 Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 In-Reply-To: References: <5112D7D1.7010201@thelounge.net> Message-ID: <5113970E.3040409@gmail.com> On 2013-02-06 23:38, motty cruz wrote: > I know X11 exist here: > it:X11 admin$ pwd > /opt/X11/include/X11 > it:X11 admin$ If you want gcc to find X11 in that directory (and assuming the libs are under lib), try: --extra-cflags=-I/opt/X11/include --extra-ldflags=-L/opt/X11/lib -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From pk.hariprasad at gmail.com Thu Feb 7 15:05:51 2013 From: pk.hariprasad at gmail.com (Hari) Date: Thu, 7 Feb 2013 14:05:51 -0000 Subject: [FFmpeg-user] Playing YUV420 raw video using ffplay Message-ID: <019101ce053c$3fe98bd0$bfbca370$@gmail.com> Hi, Could someone let me know what is the command line to play YUV420(planar) raw video using ffplay? Thanks, Hari From razielukain at gmail.com Thu Feb 7 16:35:33 2013 From: razielukain at gmail.com (Miguel Matos) Date: Thu, 7 Feb 2013 15:35:33 +0000 Subject: [FFmpeg-user] Measuring received stream quality Message-ID: <98E926DE-5AAF-4FAC-9B3B-4B4ED4E2D317@gmail.com> Hi, I'm using ffmpeg as a client for an udp stream ( with ffmpeg -report -vstats -i udp://localhost:60001 output_drops.mpg -loglevel verbose ). The log produced when the stream received is not 'perfect' contains a bunch of errors like "end mismatch left=4677 147B52" and "concealing 520 DC, 520 AC, 520 MV errors in P frame". I would like some pointers or explanation on the meaning of these errors, namely what they semantically mean and what's behind values like 520 DC and so on. Ideally, I would like to have some kind of measurement of the quality of the received stream and answer some questions like: - does no errors reported imply the stream was played crystal clear ? - is it possible to create a mapping of the errors/amount of errors to a better metric like the number of unplayable/unviewable frames ? Note that visual inspection of the video does not work because we need some quantifiable metric, just a 'looks good' is not enough. Thanks in advance, Miguel Matos From motty.cruz at gmail.com Thu Feb 7 17:19:42 2013 From: motty.cruz at gmail.com (motty cruz) Date: Thu, 7 Feb 2013 08:19:42 -0800 Subject: [FFmpeg-user] FFMPEG on Mac Mountain Lion 10.8.2 In-Reply-To: <5113970E.3040409@gmail.com> References: <5112D7D1.7010201@thelounge.net> <5113970E.3040409@gmail.com> Message-ID: Thank you very much! I tried it and it worked: ./configure --prefix=/usr --enable-shared --enable-libmp3lame --extra-cflags=-I/opt/X11/include --extra-ldflags=-L/opt/X11/lib --enable-gpl --enable-x11grab --enable-libtheora --disable-stripping --enable-avfilter --enable-libschroedinger --enable-libopencore-amrnb --enable-libopencore_amrnb --enable-version3 Thanks On Thu, Feb 7, 2013 at 3:59 AM, James Darnley wrote: > On 2013-02-06 23:38, motty cruz wrote: > > I know X11 exist here: > > it:X11 admin$ pwd > > /opt/X11/include/X11 > > it:X11 admin$ > > If you want gcc to find X11 in that directory (and assuming the libs are > under lib), try: > --extra-cflags=-I/opt/X11/include --extra-ldflags=-L/opt/X11/lib > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From cehoyos at ag.or.at Thu Feb 7 18:55:07 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 7 Feb 2013 17:55:07 +0000 (UTC) Subject: [FFmpeg-user] Measuring received stream quality References: <98E926DE-5AAF-4FAC-9B3B-4B4ED4E2D317@gmail.com> Message-ID: Miguel Matos gmail.com> writes: > The log produced when the stream received is not 'perfect' > contains a bunch of errors like "end mismatch left=4677 147B52" > and "concealing 520 DC, 520 AC, 520 MV errors in P frame". > > I would like some pointers or explanation on the meaning of > these errors, namely what they semantically mean and what's > behind values like 520 DC and so on. I can only tell you that MV probably stands for motion vector. > Ideally, I would like to have some kind of measurement of the > quality of the received stream and answer some questions like: > - does no errors reported imply the stream was played crystal > clear ? Please define "crystal clear". > - is it possible to create a mapping of the errors/amount of > errors to a better metric like the number of > unplayable/unviewable frames ? The number should be 0 in nearly all cases because FFmpeg by default uses error concealment. (I believe you get a specific error if a frame gets completely lost.) > Note that visual inspection of the video does not work > because we need some quantifiable metric, just a 'looks good' > is not enough. I don't think what you want is currently implemented in FFmpeg, but I am not completely sure that it is possible in general (in a way that actually makes sense). Your transport layer should easily allow to tell you about lost information though. Carl Eugen From asorti6 at gmail.com Thu Feb 7 19:03:17 2013 From: asorti6 at gmail.com (asorti6 at gmail.com) Date: Thu, 7 Feb 2013 18:03:17 +0000 Subject: [FFmpeg-user] pts/dts error using reset_timestamps while splitting a DVD In-Reply-To: <20130206220851.GJ13058@arborea> References: <5DC04E53-99CC-499A-BBF2-F1F3FA1507C3@gmail.com> <34DCE8A9-11FE-4F71-8901-9F1B3F489249@gmail.com> <20130205235023.GC13058@arborea> <90o3h85gh4jh76653p1suuulju9kv4ij4a@4ax.com> <20130206220851.GJ13058@arborea> Message-ID: <62165299-2F41-4D43-83BB-50499D8E4B74@gmail.com> On 6 Feb 2013, at 22:08, Stefano Sabatini wrote: > On date Wednesday 2013-02-06 05:48:37 +0100, Jan Ehrhardt wrote: >> Stefano Sabatini in gmane.comp.video.ffmpeg.user (Wed, 6 Feb 2013 >> 00:50:23 +0100): >> >> I could reproduce the error and can confirm that the patch works for >> ffmpeg, built for Windows x86 and x64. > > Pushed, thanks for reporting/testing. Thank you very much indeed. I will rebuild on my mac in next few days and report back. From zstardustn1 at gmail.com Thu Feb 7 09:33:04 2013 From: zstardustn1 at gmail.com (Ziggy Stardust) Date: Thu, 7 Feb 2013 09:33:04 +0100 Subject: [FFmpeg-user] ffmpeg: h264 encoding excessive memory usage (leakage?) and max_alloc Message-ID: Hi guys, I noticed a possible memory leak in h264 encoder, and if not so at least a huge memory usage. I feed ffmpeg from a named pipe, and the command line is: ffmpeg -y -r 5 -g 20 -max_alloc 100000000 -an -pix_fmt rgb32 -s 1298x994 -f rawvideo -i \\.\Pipe\VideoCapture.00000dec.00000000.rw -f flv -vcodec h264 ".\\video.flv" The amount of memory raises quickly (in some seconds) to 300MB of RAM, and then stays nearby. I need to limit it around 50-75MB because I am using a low resources appliance. Trying to limit the maximum allocation with "-max_alloc 100000000" option has no effect, also limiting the I-frame frequency with low gop setting does not help. As a reference if I use flv codec instead of h264, the memory usage is about 50MB (6x less). Can you please gimme some hints? Thanks in advance! From msmadi at rim.com Thu Feb 7 20:07:58 2013 From: msmadi at rim.com (Mohammed Smadi) Date: Thu, 7 Feb 2013 19:07:58 +0000 Subject: [FFmpeg-user] ffmpeg behavior for corrupted or missing Message-ID: Assuming we have a sequence of encoded H.264 stream (e.g. IPPPPIPPPP....) which - again for simplicity - is packaged one video frame per NALU. Assume that a given NALU is missed due to poor channel conditions and the typical transport (TCP/UDP) and MAC layer retry/correction mechanisms were not sufficient to transfer it across. 1- What is the expected behavior of ffmpeg in this case (e.g. is it completely skipped or the previous frame gets replayed, etc...)? a. Would this behavior depend on the type on the frame type? 2- Assuming the missed frame arrives significantly past its display time (i.e. it will not be display), would it still be used in anyway? a. Again, would this behavior depend on the type on the frame type? Thanks --------------------------------------------------------------------- This transmission (including any attachments) may contain confidential information, privileged material (including material protected by the solicitor-client or other applicable privileges), or constitute non-public information. Any use of this information by anyone other than the intended recipient is prohibited. If you have received this transmission in error, please immediately reply to the sender and delete this information from your system. Use, dissemination, distribution, or reproduction of this transmission by unintended recipients is not authorized and may be unlawful. From mulargui at hotmail.com Thu Feb 7 20:15:14 2013 From: mulargui at hotmail.com (Mauricio Ulargui) Date: Thu, 7 Feb 2013 11:15:14 -0800 Subject: [FFmpeg-user] Transcoding PCM to AAC In-Reply-To: References: Message-ID: Hi, I'm transcoding several old videos to MP4/AAC/H264, most of them were recorded using digital cameras. I'm getting an error with those that have PCM audio, below is an output detail. Any suggestion/ideas? ffmpeg -i "video.AVI" -acodec aac -strict experimental -vcodec h264 "video.mp4" ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib 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 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, avi, from 'video.AVI': Duration: 00:00:18.00, start: 0.000000, bitrate: 1084 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 320x240, 10 tbr, 10 tbn, 10 tbc Metadata: title : FUJIFILM AVI STREAM 0100 Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 8000 Hz, mono, u8, 64 kb/s [libx264 @ 03608e00] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 03608e00] profile High, level 1.2 [libx264 @ 03608e00] 264 - core 129 r2245 bc13772 - 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=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 [aac @ 0360f720] Too many bits per frame requested Output #0, mp4, to 'video.mp4': Stream #0:0: Video: h264, yuvj420p, 320x240, q=-1--1, 90k tbn, 10 tbc Metadata: title : FUJIFILM AVI STREAM 0100 Stream #0:1: Audio: aac, 8000 Hz, mono, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Stream #0:1 -> #0:1 (pcm_u8 -> aac) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height From jrich at laika.com Thu Feb 7 21:21:01 2013 From: jrich at laika.com (Jeanne Rich) Date: Thu, 7 Feb 2013 12:21:01 -0800 (PST) Subject: [FFmpeg-user] How to prevent timecode tracks in quicktime movies In-Reply-To: <1461254828.6759910.1360196114358.JavaMail.root@laika.com> Message-ID: <1737825898.6997705.1360268461345.JavaMail.root@laika.com> So in playing around I found that if I use the following option: -metadata timecode= that is not specifying the timecode it seems to do the trick. Is this just a fluke or is this the way it's supposed to work? -jeanne From infos at madovsky.org Thu Feb 7 22:23:26 2013 From: infos at madovsky.org (Madovsky) Date: Thu, 7 Feb 2013 16:23:26 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency References: <15928958D218486CB51F359E5B44B7E4@e1705> Message-ID: <790231B1F8C84D4FAF15B8D70F800AFC@e1705> >> I just updated from git 10 mn ago and now the 2 live rtmp >> are well syncrhonized as long as the audio from second > input is not "amerge" nor "pan" with filter_complex. > > This sounds as if the problem should also be reproducible > with files or am I wrong? > > Carl Eugen Ok I understood the problem. the fact that ffmpeg connect to the first stream first (live rtmp) so there are about 3 seconds before the seond stream is started. So the great thing would be to start to record the first stream once the second start. how to do that ? Thanks Franck From infos at madovsky.org Thu Feb 7 22:31:42 2013 From: infos at madovsky.org (Madovsky) Date: Thu, 7 Feb 2013 16:31:42 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency References: <15928958D218486CB51F359E5B44B7E4@e1705> Message-ID: <4070830C403B4428ACCC7D294D9B1DB3@e1705> ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Sunday, February 03, 2013 5:00 PM Subject: Re: [FFmpeg-user] multiple live rtmp inputs latency > Madovsky madovsky.org> writes: > >> I just updated from git 10 mn ago and now the 2 live rtmp >> are well syncrhonized as long as the audio from second > input is not "amerge" nor "pan" with filter_complex. > > This sounds as if the problem should also be reproducible > with files or am I wrong? > > Carl Eugen Carl, My goal is tto overlay 2 live webcam with the respect of natural latency between them to make possible a dialog. Thanks Franck From infos at madovsky.org Thu Feb 7 23:11:20 2013 From: infos at madovsky.org (Madovsky) Date: Thu, 7 Feb 2013 17:11:20 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency Message-ID: >> Madovsky madovsky.org> writes: >> >>> I just updated from git 10 mn ago and now the 2 live rtmp >>> are well syncrhonized as long as the audio from second >> input is not "amerge" nor "pan" with filter_complex. >> >> This sounds as if the problem should also be reproducible >> with files or am I wrong? >> >> Carl Eugen > > Carl, > My goal is tto overlay 2 live webcam with > the respect of natural latency between them to > make possible a dialog. > > Thanks > > Franck I noticed this message Stream discovered after head already parsed when i stop and restart a live stream quickly Thanks Franck From cehoyos at ag.or.at Thu Feb 7 23:49:52 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 7 Feb 2013 22:49:52 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffmpeg=3A_h264_encoding_excessive_memory_?= =?utf-8?q?usage_=28leakage=3F=29_and_max=5Falloc?= References: Message-ID: Ziggy Stardust gmail.com> writes: > I noticed a possible memory leak in h264 encoder, This would need valgrind output > and if not so at least a huge memory usage. This is possible. > I feed ffmpeg from a named pipe, and the command line is: > > ffmpeg -y -r 5 -g 20 -max_alloc 100000000 -an > -pix_fmt rgb32 -s 1298x994 -f rawvideo > -i \\.\Pipe\VideoCapture.00000dec.00000000.rw -f flv > -vcodec h264 ".\\video.flv" There is no indication that this is a FFmpeg problem. (Note that FFmpeg does not contain a native h264 encoder.) Carl Eugen From cehoyos at ag.or.at Thu Feb 7 23:51:42 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 7 Feb 2013 22:51:42 +0000 (UTC) Subject: [FFmpeg-user] Playing YUV420 raw video using ffplay References: <019101ce053c$3fe98bd0$bfbca370$@gmail.com> Message-ID: Hari gmail.com> writes: > Could someone let me know what is the command line > to play YUV420(planar) raw video using ffplay? $ ffplay -s cif -pix_fmt yuv420p -f rawvideo yourfile Carl Eugen From cehoyos at ag.or.at Thu Feb 7 23:54:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 7 Feb 2013 22:54:57 +0000 (UTC) Subject: [FFmpeg-user] Transcoding PCM to AAC References: Message-ID: Mauricio Ulargui hotmail.com> writes: > [aac @ 0360f720] Too many bits per frame requested Set a lower bitrate (for example "-ab 64k") Carl Eugen From nlewis at mail.crawford.com Fri Feb 8 00:23:17 2013 From: nlewis at mail.crawford.com (Nathan Lewis) Date: Thu, 7 Feb 2013 18:23:17 -0500 Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 Message-ID: I've run into an issue using the most recent ffmpeg version from git. I'm attempting to do 2 pass encoding but I get a failure on -pass 1 (see below). The strange thing is that the exact same command executes fine using ffmpeg 1.0.3 build I have on a different machine (see further below). Any thoughts? ============== failure with -pass 1 ===================== > ffmpeg -i "Split Track Audio Sample.mov" -c:v libx264 -f mov -pass 1 /dev/null ffmpeg version N-49695-g4e2c636 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 7 2013 06:31:52 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --prefix=/usr/local/ffmpeg --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fno-math-errno' --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --enable-nonfree --enable-libtheora --enable-swscale libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Split Track Audio Sample.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-05 16:19:36 timecode : 00:00:00;00 Duration: 00:01:05.26, start: -13.881563, bitrate: 14364 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x486, 10302 kb/s, SAR 10:11 DAR 400:297, 29.97 fps, 29.97 tbr, 2997 tbn, 5994 tbc Metadata: creation_time : 2013-02-05 16:19:36 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler timecode : 00:00:00;00 Stream #0:2(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler Stream #0:3(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: creation_time : 2013-02-05 16:20:04 handler_name : Apple Alias Data Handler File '/dev/null' already exists. Overwrite ? [y/N] y using SAR=10/11 [libx264 @ 0xa07cc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0xa07cc0] ratecontrol_init: can't open stats file Output #0, mov, to '/dev/null': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:00:00;00 Stream #0:0(eng): Video: h264, yuv420p, 720x486 [SAR 10:11 DAR 400:297], q=-1--1, pass 1, 90k tbn, 29.97 tbc Metadata: creation_time : 2013-02-05 16:19:36 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: none, 48000 Hz, mono, s16, 128 kb/s Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:2 -> #0:1 (pcm_s16be -> libfaac) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height ============ success with -pass 1 =============== From nlewis at mail.crawford.com Fri Feb 8 00:38:01 2013 From: nlewis at mail.crawford.com (Nathan Lewis) Date: Thu, 7 Feb 2013 18:38:01 -0500 Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 In-Reply-To: References: Message-ID: On Thu, Feb 7, 2013 at 6:23 PM, Nathan Lewis wrote: > I've run into an issue using the most recent ffmpeg version from git. I'm > attempting to do 2 pass encoding but I get a failure on -pass 1 (see > below). The strange thing is that the exact same command executes fine > using ffmpeg 1.0.3 build I have on a different machine (see further below). > > Apologies. I failed to paste the uncut output for my successful -pass 1. Here it is: =============== successful -pass 1 ============== ffmpeg -i "Split Track Audio Sample.mov" -c:v libx264 -f mov -pass 1 /dev/null ffmpeg version 1.0.3 Copyright (c) 2000-2012 the FFmpeg developers built on Jan 27 2013 20:54:24 with llvm-gcc 4.2.1 (LLVM build 2336.1.00) configuration: --enable-nonfree --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libvpx --enable-pthreads --enable-libx264 --enable-version3 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 Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Split Track Audio Sample.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-05 16:19:36 timecode : 00:00:00;00 Duration: 00:01:05.26, start: -13.881563, bitrate: 14364 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x486, 10302 kb/s, SAR 10:11 DAR 400:297, 29.97 fps, 29.97 tbr, 2997 tbn, 5994 tbc Metadata: creation_time : 2013-02-05 16:19:36 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler timecode : 00:00:00;00 Stream #0:2(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler Stream #0:3(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: creation_time : 2013-02-05 16:20:04 handler_name : Apple Alias Data Handler File '/dev/null' already exists. Overwrite ? [y/N] y using SAR=10/11 [libx264 @ 0x7f865984ae00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0x7f865984ae00] profile Main, level 3.1 [libx264 @ 0x7f865984ae00] 264 - core 129 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=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, mov, to '/dev/null': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:00:00;00 encoder : Lavf54.29.104 Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x486 [SAR 10:11 DAR 400:297], q=-1--1, pass 1, 2997 tbn, 29.97 tbc Metadata: creation_time : 2013-02-05 16:19:36 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, s16, 128 kb/s Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:2 -> #0:1 (pcm_s16be -> libfaac) Press [q] to stop, [?] for help frame= 943 fps=188 q=0.0 Lsize= 0kB time=00:00:31.39 bitrate= 0.0kbits/s From cehoyos at ag.or.at Fri Feb 8 00:48:55 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 7 Feb 2013 23:48:55 +0000 (UTC) Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 References: Message-ID: Nathan Lewis mail.crawford.com> writes: > ============== failure with -pass 1 ===================== > > > ffmpeg -i "Split Track Audio Sample.mov" -c:v libx264 > -f mov -pass 1 /dev/null While the following command works fine here, I think two-pass encoding without a bitrate does not make sense. $ ./ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -acodec aac -pass 1 -strict -2 -f mov /dev/null Carl Eugen From nlewis at mail.crawford.com Fri Feb 8 00:57:03 2013 From: nlewis at mail.crawford.com (Nathan Lewis) Date: Thu, 7 Feb 2013 18:57:03 -0500 Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 In-Reply-To: References: Message-ID: On Thu, Feb 7, 2013 at 6:48 PM, Carl Eugen Hoyos wrote: > Nathan Lewis mail.crawford.com> writes: > > > ============== failure with -pass 1 ===================== > > > > > ffmpeg -i "Split Track Audio Sample.mov" -c:v libx264 > > -f mov -pass 1 /dev/null > > While the following command works fine here, I > think two-pass encoding without a bitrate does > not make sense. > > $ ./ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov > -acodec aac -pass 1 -strict -2 -f mov /dev/null > > Carl Eugen > Hi Carl, Agreed. My end goal is to declare -b:v 2000k but due to the error I am getting I kept removing switches to see if I could get a successful -pass 1 using current version from git. So, you are able to get your command to run with success using the most current version? Any ideas why I am get the error that I do? thanks, Nathan From cehoyos at ag.or.at Fri Feb 8 01:15:11 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 8 Feb 2013 00:15:11 +0000 (UTC) Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 References: Message-ID: Nathan Lewis mail.crawford.com> writes: > > > > ffmpeg -i "Split Track Audio Sample.mov" -c:v libx264 > > > -f mov -pass 1 /dev/null > > > > While the following command works fine here, I > > think two-pass encoding without a bitrate does > > not make sense. > > > > $ ./ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov > > -acodec aac -pass 1 -strict -2 -f mov /dev/null > > Agreed. My end goal is to declare -b:v 2000k but due to the error I am > getting I kept removing switches to see if I could get a successful -pass 1 > using current version from git. Good idea! > So, you are able to get your command to > run with success using the most current version? The following commands work as expected, both with and without -an: $ ./ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -pass 1 -strict -2 -b:v 200k -f mov /dev/null $ ./ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -pass 2 -strict -2 -b:v 200k out.mov Carl Eugen From infos at madovsky.org Fri Feb 8 01:35:38 2013 From: infos at madovsky.org (Madovsky) Date: Thu, 7 Feb 2013 19:35:38 -0500 Subject: [FFmpeg-user] drawtext behind video Message-ID: Is it possible to drawtext and covert it with an overlay ? Thanks Franck From infos at madovsky.org Fri Feb 8 04:53:17 2013 From: infos at madovsky.org (Madovsky) Date: Thu, 7 Feb 2013 22:53:17 -0500 Subject: [FFmpeg-user] multiple live rtmp inputs latency References: <15928958D218486CB51F359E5B44B7E4@e1705> Message-ID: ----- Original Message ----- From: "Carl Eugen Hoyos" To: Sent: Sunday, February 03, 2013 5:00 PM Subject: Re: [FFmpeg-user] multiple live rtmp inputs latency > Madovsky madovsky.org> writes: > >> I just updated from git 10 mn ago and now the 2 live rtmp >> are well syncrhonized as long as the audio from second > input is not "amerge" nor "pan" with filter_complex. > > This sounds as if the problem should also be reproducible > with files or am I wrong? > here is the best command I found to sync 2 rtmp live stream ffmpeg -filter:a apad -i "rtmp://node250.boophone.com/dvr/mp4:live1 live=1 buffer=0 flashver=11,4,0,0" -filter:a apad -i "rtmp://node250.boophone.com/dvr/mp4:live2 live=1 buffer=0 flashver=11,4,0,0" -i neterviewBack.png -map 0:0 -map 1:1 -filter_complex "[0:v]setpts=PTS[left]; [1:v]setpts=(PTS+4367)[right]; [left]pad=(iw*2)+42:ih+210:20:105:#000000[base];[base][right]overlay=(w+22):105,fade=in:0:230:alpha=0,drawtext=fontsize=10:fontcolor=#D8D8D8:fontfile=/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf:text='Strong Tiger from Nil':x=((main_w-640)/2)+10:y=((main_h-240)/2)+228,drawtext=fontsize=10:fontcolor=#D8D8D8:fontfile=/usr/share/fonts/dejavu/DejaVuSans-Bold.ttf:text='Great Eagle from gold mountain':x=(w/2)+10:y=((main_h-240)/2)+228[cams];[cams][2:0]overlay=0:main_h-20;[0:1][1:1]amix" -r 24 -threads 4 -acodec libspeex -tune zerolatency -y test.flv but I don't feel it very robust :( if you have a better idea I will be happy to know it Franck From palani at i-waves.com Fri Feb 8 07:27:43 2013 From: palani at i-waves.com (Palaniappan N) Date: Fri, 8 Feb 2013 11:57:43 +0530 Subject: [FFmpeg-user] Requesting General Guidance Message-ID: Hi, We have Linux web server where we have hosted our application, we would like to know if we should Install FFMPEG in the same server or Can we have the FFMPEG Installed in a dedicated server for Video conversion? We are expecting a high CPU utilization and load in our server when we have both application and FFMPEG in the same server. Please suggest us to have a clear Idea about having FFMPEG. Thanks, Palaniappan From h.reindl at thelounge.net Fri Feb 8 07:40:12 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 08 Feb 2013 07:40:12 +0100 Subject: [FFmpeg-user] Requesting General Guidance In-Reply-To: References: Message-ID: <51149DCC.40003@thelounge.net> Am 08.02.2013 07:27, schrieb Palaniappan N: > We have Linux web server where we have hosted our application, we would > like to know if we should Install FFMPEG in the same server or Can we have > the FFMPEG Installed in a dedicated server for Video conversion? > > We are expecting a high CPU utilization and load in our server when we have > both application and FFMPEG in the same server. > > Please suggest us to have a clear Idea about having FFMPEG it is more a question about your applications logic than about ffmpeg if you are able to move source videos to another machine and after proceed them move the target files back to the webserver -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From hinavinmath at gmail.com Fri Feb 8 08:07:21 2013 From: hinavinmath at gmail.com (Navin Math) Date: Fri, 8 Feb 2013 12:37:21 +0530 Subject: [FFmpeg-user] Can ffmpeg restream data from another ffmpeg Message-ID: Hi Can FFmpeg stream the data came from another FFmepg. for example I am streaming sample mp4 file in one system (IP: 10.10.10.1) ffserver -f ffserver.conf ffmpeg -i /home/sample.mp4 http://10.10.10.1:8090/feed1.ffm so in system-2(10.10.10.2) using ffplay i play the stream data ffplay http://10.10.10.1:8090/test.mpg Instead of playing this stream here in system-2, i want to use ffmppeg to re-stream it again. ffmpeg -i http://10.10.10.1:8090/test.mpg http://10.10.10.2:feed1.ffm 1. is possible to restream the input stream?? 2. Do I need to start ffserver and ffmpeg to stream the incoming stream in the system 2. ffserver.conf: # Port on which the server is listening. You must select a different # port from your standard HTTP web server if it is running on the same # computer. Port 8090 # Address on which the server is bound. Only useful if you have # several network interfaces. BindAddress 0.0.0.0 # Number of simultaneous HTTP connections that can be handled. It has # to be defined *before* the MaxClients parameter, since it defines the # MaxClients maximum limit. MaxHTTPConnections 2000 # Number of simultaneous requests that can be handled. Since FFServer # is very fast, it is more likely that you will want to leave this high # and use MaxBandwidth, below. MaxClients 1000 # This the maximum amount of kbit/sec that you are prepared to # consume when streaming to clients. MaxBandwidth 1000 # Port on which the server is listening. You must select a different # port from your standard HTTP web server if it is running on the same # computer. RTSPPort 7654 # Address on which the server is bound. Only useful if you have # several network interfaces. RTSPBindAddress 0.0.0.0 # Number of simultaneous requests that can be handled. Since FFServer # is very fast, it is more likely that you will want to leave this high # and use MaxBandwidth, below. MaxClients 1000 # This the maximum amount of kbit/sec that you are prepared to # consume when streaming to clients. MaxBandwidth 1000 File /sdcard/feed1.ffm # Access log file (uses standard Apache log file format) # '-' is the standard output. CustomLog - # Suppress that if you want to launch ffserver as a daemon. NoDaemon Feed feed1.ffm Format h264 NoAudio VideoCodec mpeg4 VideoFrameRate 30 VideoBitRate 366 VideoSize cif VideoBufferSize 40 VideoGopSize 12 VideoQMin 25 # #Format rtp # Format rtp File "/sdcard/1.mp4" Format rtp File "/sdcard/1.mp3" Thanks Math From hinavinmath at gmail.com Fri Feb 8 08:17:41 2013 From: hinavinmath at gmail.com (Navin Math) Date: Fri, 8 Feb 2013 12:47:41 +0530 Subject: [FFmpeg-user] is it possible to play stream data more than two ffplay clients Message-ID: Hi I am not able to play the video in more than two clients (ffplay). When I start using the ffplay in the third system. it throws error like: http://10.10.10.3:8090/test.mpg: Unknown format Let me know what change is required to support multiple clients?? I have started ffserver and ffmpeg in a system. consider the ip is 10.10.10.1 ffserver -f fffserver.conf ffmpeg -i /home/1.mp4 http://10.10.10.1:8090/feed1.ffm I can successfully play the stream in two system successfully: system1(10.10.10.1): ffplay http://10.10.10.1:8090/test.mpg system2 (10.10.10.2): ffplay http://10.10.10.1:8090/test.mpg system3 (10.10.10.3) ---- gives error ffplay http://10.10.10.1:8090/test.mpg ffplay http://10.10.42.87:8090/test.mpg FFplay version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.2, Copyright (c) 2003-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.9-0ubuntu0.10.04.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Dec 18 2012 18:02:54, gcc: 4.4.3 http://10.10.42.87:8090/test.mpg: Unknown format Thanks Math From mulargui at hotmail.com Fri Feb 8 09:23:03 2013 From: mulargui at hotmail.com (Mauricio Ulargui) Date: Fri, 8 Feb 2013 00:23:03 -0800 Subject: [FFmpeg-user] Transcoding PCM to AAC In-Reply-To: References: , , Message-ID: Thank you Carl, it worked pretty well for many files!I observed that the ones it didn't worked are at less than 16000Hz. I tried to fix it using -ar 8000 but it didn't work. Any suggestion? ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib 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 Guessed Channel Layout for Input Stream #0.1 : mono Input #0, avi, from 'video.avi': Metadata: encoder : Lavf54.59.106 Duration: 00:00:51.60, start: 0.000000, bitrate: 6907 kb/s Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc Stream #0:1: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, mono, s16, 64 kb/s [libx264 @ 03190000] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 03190000] profile High, level 3.0 [libx264 @ 03190000] 264 - core 129 r2245 bc13772 - 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=25 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 [aac @ 0035ce00] Too many bits per frame requested Output #0, mp4, to 'video.mp4': Metadata: encoder : Lavf54.59.106 Stream #0:0: Video: h264, yuvj420p, 640x480, q=-1--1, 90k tbn, 30 tbc Stream #0:1: Audio: aac, 8000 Hz, mono, fltp, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Stream #0:1 -> #0:1 (pcm_mulaw -> aac) Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height Mauricio @ Ulargui .com | +1 425 449 3825 > To: ffmpeg-user at ffmpeg.org > From: cehoyos at ag.or.at > Date: Thu, 7 Feb 2013 22:54:57 +0000 > Subject: Re: [FFmpeg-user] Transcoding PCM to AAC > > Mauricio Ulargui hotmail.com> writes: > > > [aac @ 0360f720] Too many bits per frame requested > > Set a lower bitrate (for example "-ab 64k") > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Fri Feb 8 10:49:06 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 8 Feb 2013 09:49:06 +0000 (UTC) Subject: [FFmpeg-user] is it possible to play stream data more than two ffplay clients References: Message-ID: Navin Math gmail.com> writes: > FFplay version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.2, > Copyright (c) 2003-2009 Fabrice Bellard, et al. This is antique and not supported. Carl Eugen From cehoyos at ag.or.at Fri Feb 8 11:03:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 8 Feb 2013 10:03:09 +0000 (UTC) Subject: [FFmpeg-user] Transcoding PCM to AAC References: , , Message-ID: Mauricio Ulargui hotmail.com> writes: > [aac @ 0035ce00] Too many bits per frame requested Consider setting a lower bitrate (for example "-ab 32k"). Please do not top-post here, Carl Eugen From onemda at gmail.com Fri Feb 8 11:24:04 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 8 Feb 2013 10:24:04 +0000 Subject: [FFmpeg-user] Playing YUV420 raw video using ffplay In-Reply-To: References: <019101ce053c$3fe98bd0$bfbca370$@gmail.com> Message-ID: On 2/7/13, Carl Eugen Hoyos wrote: > Hari gmail.com> writes: > >> Could someone let me know what is the command line >> to play YUV420(planar) raw video using ffplay? > > $ ffplay -s cif -pix_fmt yuv420p -f rawvideo yourfile Where "-s cif" is actual size of frames. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From pk.hariprasad at gmail.com Fri Feb 8 12:03:41 2013 From: pk.hariprasad at gmail.com (Hari) Date: Fri, 8 Feb 2013 11:03:41 -0000 Subject: [FFmpeg-user] Playing YUV420 raw video using ffplay In-Reply-To: References: <019101ce053c$3fe98bd0$bfbca370$@gmail.com> Message-ID: <045c01ce05eb$f514fd50$df3ef7f0$@gmail.com> Hi Carl, Thanks. When I run this command, I get a window displayed but its completely black with a tiny spec of green in the top left corner. I don't see the video getting displayed. Am running in Ubuntu. What could be the reason for this? Regards, Hari -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos Sent: 07 February 2013 22:52 To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] Playing YUV420 raw video using ffplay Hari gmail.com> writes: > Could someone let me know what is the command line to play > YUV420(planar) raw video using ffplay? $ ffplay -s cif -pix_fmt yuv420p -f rawvideo yourfile Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From karim at kurst.co.uk Fri Feb 8 12:05:42 2013 From: karim at kurst.co.uk (Karim Beyrouti) Date: Fri, 8 Feb 2013 11:05:42 +0000 Subject: [FFmpeg-user] Offsetting a PNG sequence.. In-Reply-To: References: <019101ce053c$3fe98bd0$bfbca370$@gmail.com> Message-ID: Hello FFMPEG, First post? loving FFMPEG so far. I am having some issues offsetting a PNG sequence on a video. I am currently using "-itsoffset" to shift the sequence 13 seconds - however it is giving me strange wrapping issues. I am not sure it is the right command to achieve this. This is the command I am using: ffmpeg -i Mobile.flv -itsoffset 00:00:13.00 -i C:\exports\t\%d.png -filter_complex overlay -r 25 C:\exports\Test.mp4 Any pointers would be greatly appreciated? Best Karim Beyrouti From hinavinmath at gmail.com Fri Feb 8 13:01:15 2013 From: hinavinmath at gmail.com (Navin Math) Date: Fri, 8 Feb 2013 17:31:15 +0530 Subject: [FFmpeg-user] is it possible to play stream data more than two ffplay clients In-Reply-To: References: Message-ID: Ok fine, But I want to play the stream in multiple systems. In three different systems with VLC. In third system VLC does not play at all. Does it mean, we cant stream the content more than two systems irrespective players, ffplay, vlc, mdeia player? Thanks Math On Fri, Feb 8, 2013 at 3:19 PM, Carl Eugen Hoyos wrote: > Navin Math gmail.com> writes: > > > FFplay version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.2, > > Copyright (c) 2003-2009 Fabrice Bellard, et al. > > This is antique and not supported. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Fri Feb 8 14:25:04 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 8 Feb 2013 13:25:04 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg behavior for corrupted or missing References: Message-ID: Mohammed Smadi rim.com> writes: > Assuming we have a sequence of encoded H.264 stream > (e.g. IPPPPIPPPP....) which - again for simplicity - is > packaged one video frame per NALU. > > Assume that a given NALU is missed due to poor channel > conditions and the typical transport (TCP/UDP) and MAC > layer retry/correction mechanisms were not sufficient to > transfer it across. I wonder how likely it is that (exactly) a whole NALU gets lost on transport... [...] > This transmission (including any attachments) may contain > confidential information Please note that this sentence makes no sense when sending an email to a public mailing list (that is mirrored many times on the internet). Carl Eugen From ronramsay at peervyne.com Fri Feb 8 17:14:57 2013 From: ronramsay at peervyne.com (Ronald Ramsay) Date: Fri, 8 Feb 2013 11:14:57 -0500 Subject: [FFmpeg-user] Parameters and files not transferring to pop up window Message-ID: <9729067B-7886-4419-95FE-EC12EBBCCEC8@peervyne.com> Hi All, I am posting video to my site in a modal. When I post I have a second pop up window opening where the video is uploaded and processed and shows a progress bar. This enables my users to continue using the site. The files and parameters are not being transferred from the modal to the second pop up window. Does anyone have any idea about the best way to implement this? Ron From razielukain at gmail.com Fri Feb 8 17:24:56 2013 From: razielukain at gmail.com (Miguel Matos) Date: Fri, 8 Feb 2013 16:24:56 +0000 Subject: [FFmpeg-user] Measuring received stream quality In-Reply-To: References: <98E926DE-5AAF-4FAC-9B3B-4B4ED4E2D317@gmail.com> Message-ID: Hi Carl, On 7 Feb 2013, at 17:55, Carl Eugen Hoyos wrote: > Miguel Matos gmail.com> writes: > >> The log produced when the stream received is not 'perfect' >> contains a bunch of errors like "end mismatch left=4677 147B52" >> and "concealing 520 DC, 520 AC, 520 MV errors in P frame". >> >> I would like some pointers or explanation on the meaning of >> these errors, namely what they semantically mean and what's >> behind values like 520 DC and so on. > > I can only tell you that MV probably stands for motion vector. > >> Ideally, I would like to have some kind of measurement of the >> quality of the received stream and answer some questions like: >> - does no errors reported imply the stream was played crystal >> clear ? > > Please define "crystal clear". A stream that played perfectly for instance without packet losses and/or late packets. In short, the equivalent of playing from a local file. > >> - is it possible to create a mapping of the errors/amount of >> errors to a better metric like the number of >> unplayable/unviewable frames ? > > The number should be 0 in nearly all cases because FFmpeg by > default uses error concealment. > (I believe you get a specific error if a frame gets completely > lost.) I see. I'll do some more tests to check if that's the case. > > >> Note that visual inspection of the video does not work >> because we need some quantifiable metric, just a 'looks good' >> is not enough. > > I don't think what you want is currently implemented in FFmpeg, > but I am not completely sure that it is possible in general > (in a way that actually makes sense). > > Your transport layer should easily allow to tell you about lost > information though. Yes, the thing is that we are precisely tinkering with the transport layer, lost packets are unlikely, but late packets may happen. We need some kind of metric for the video quality so that we are able to adjust the parameters at the transport level. Thanks for the feedback. Regards, Miguel Matos > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From infos at madovsky.org Fri Feb 8 17:30:59 2013 From: infos at madovsky.org (Madovsky) Date: Fri, 8 Feb 2013 11:30:59 -0500 Subject: [FFmpeg-user] bass filter Message-ID: Is there any example with bass filter somewhere ? Thanks Franck From motty.cruz at gmail.com Fri Feb 8 17:46:57 2013 From: motty.cruz at gmail.com (motty cruz) Date: Fri, 8 Feb 2013 08:46:57 -0800 Subject: [FFmpeg-user] ffmpeg Could not open X display Message-ID: Hello, I'm trying to screen capture video with ffmpeg. I get the follwoing command: ffmpeg -f x11grab -s wuxga -vf crop=1024:768 -r 25 -i :0.0 /tmp/cdb.mpg it:~ admin$ ffmpeg -f x11grab -r 24 -i :0.0 out.mpg ffmpeg version N-49669-gd11ac64 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 7 2013 09:43:01 with Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libfreetype --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --extra-cflags=-I/opt/X11/include --extra-ldflags=-L/opt/X11/lib --enable-gpl --enable-x11grab --enable-postproc --enable-libx264 --enable-libxvid libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.101 / 54. 91.101 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [x11grab @ 0x7fd238838800] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 640 height: 480 [x11grab @ 0x7fd238838800] Could not open X display. :0.0: Input/output error it:~ admin$ any help is appreciate! Thanks in advance. From asorti6 at gmail.com Fri Feb 8 18:35:18 2013 From: asorti6 at gmail.com (Owen Jones) Date: Fri, 8 Feb 2013 17:35:18 +0000 Subject: [FFmpeg-user] pts/dts error using reset_timestamps while splitting a DVD In-Reply-To: <20130206220851.GJ13058@arborea> References: <5DC04E53-99CC-499A-BBF2-F1F3FA1507C3@gmail.com> <34DCE8A9-11FE-4F71-8901-9F1B3F489249@gmail.com> <20130205235023.GC13058@arborea> <90o3h85gh4jh76653p1suuulju9kv4ij4a@4ax.com> <20130206220851.GJ13058@arborea> Message-ID: On 6 Feb 2013, at 22:08, Stefano Sabatini wrote: > On date Wednesday 2013-02-06 05:48:37 +0100, Jan Ehrhardt wrote: >> Stefano Sabatini in gmane.comp.video.ffmpeg.user (Wed, 6 Feb 2013 >> 00:50:23 +0100): >>> I confirm this is a bug. >>> >>> Please try the attached patch, and report if it works for you. >> >> I could reproduce the error and can confirm that the patch works for >> ffmpeg, built for Windows x86 and x64. > > Pushed, thanks for reporting/testing. I've rebuilt the latest git version on my mac and it works perfectly. Thanks very much again, this has really helped. From mulargui at hotmail.com Fri Feb 8 18:52:42 2013 From: mulargui at hotmail.com (Mauricio Ulargui) Date: Fri, 8 Feb 2013 09:52:42 -0800 Subject: [FFmpeg-user] Transcoding PCM to AAC In-Reply-To: References: , , , , , , Message-ID: It worked Carl! thanks a lot for your help. Mauricio @ Ulargui .com | +1 425 449 3825 From mulargui at hotmail.com Fri Feb 8 19:16:30 2013 From: mulargui at hotmail.com (Mauricio Ulargui) Date: Fri, 8 Feb 2013 10:16:30 -0800 Subject: [FFmpeg-user] Transcoding H264/1080p to H264/720p In-Reply-To: References: , , , , , , Message-ID: Hi,I'm transcoding a hi res H264/1080p video to H254/720p in order to be able to see it in low res devices (ie iPad2). The simple command I used (below) failed to provide a valid output and gets a warning. I also tried using -vsync 2 as suggested but didn't work either, the file produced doesn't play the video, only de audio. Checked this last output with ffprobe, looks like the video stream is there but it doesn't show with a player (tried several). Suggestions? ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib 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 'video.mp4': Metadata: major_brand : 3gp4 minor_version : 512 compatible_brands: 3gp4 Duration: 00:00:43.44, start: 0.000000, bitrate: 12053 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s Metadata: handler_name : SoundHandler Stream #0:1(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 11934 kb/s, 29.76 fps, 10k tbr, 10k tbn, 20k tbc Metadata: handler_name : VideoHandler [mp4 @ 03e28020] Frame rate very high for a muxer not efficiently supporting it. Please consider specifying a lower framerate, a different muxer or -vsync 2 [libx264 @ 0248e8c0] MB rate (36000000) > level limit (2073600) [libx264 @ 0248e8c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 0248e8c0] profile High, level 5.2 [libx264 @ 0248e8c0] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 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 '.\to\video.mp4': Metadata: major_brand : 3gp4 minor_version : 512 compatible_brands: 3gp4 encoder : Lavf54.59.106 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1--1, 10k tbn, 10k tbc Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s Metadata: handler_name : SoundHandler Stream mapping: Stream #0:1 -> #0:0 (h264 -> libx264) Stream #0:0 -> #0:1 (aac -> aac) Press [q] to stop, [?] for help frame= 666 fps= 68 q=33.0 size= 526kB time=00:00:00.11 bitrate=37119.6kbits/s dup=665 drop=0 frame= 1003 fps= 64 q=33.0 size= 778kB time=00:00:00.18 bitrate=34325.9kbits/s dup=1001 drop=0 frame= 1682 fps= 79 q=33.0 size= 1462kB time=00:00:00.20 bitrate=57304.5kbits/s dup=1678 drop=0 frame= 1682 fps= 62 q=33.0 size= 1462kB time=00:00:00.23 bitrate=51572.9kbits/s dup=1678 drop=0 frame= 2016 fps= 62 q=33.0 size= 1706kB time=00:00:00.27 bitrate=50176.5kbits/s dup=2011 drop=0 frame= 2850 fps= 71 q=33.0 size= 2377kB time=00:00:00.27 bitrate=69601.7kbits/s dup=2843 drop=0 frame= 2850 fps= 60 q=33.0 size= 2584kB time=00:00:00.30 bitrate=70128.9kbits/s dup=2843 drop=0 Received signal 2: terminating. Mauricio @ Ulargui .com | +1 425 449 3825 From onemda at gmail.com Fri Feb 8 19:49:05 2013 From: onemda at gmail.com (Paul B Mahol) Date: Fri, 8 Feb 2013 18:49:05 +0000 Subject: [FFmpeg-user] bass filter In-Reply-To: References: Message-ID: On 2/8/13, Madovsky wrote: > Is there any example with bass filter somewhere ? No, but something like: ffmpeg -i input -af bass=g=3 out Note g(gain) is useful between -20 and 20 but beware of cliping when using higher values. (So if clipping happens try treble=g=-15) For more advanced stuff you can experiment changing f(frequency) and w(width): ffmpeg -i input -af bass=g=3:f=110:w=0.6 out > > Thanks > > Franck > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From motty.cruz at gmail.com Fri Feb 8 22:53:16 2013 From: motty.cruz at gmail.com (motty cruz) Date: Fri, 8 Feb 2013 13:53:16 -0800 Subject: [FFmpeg-user] ffmpeg XQuartz Message-ID: I'm trying to screen capture video with FFMPEG, with the following command: it:Desktop admin$ ffmpeg -f x11grab -s wuxga -s 1024x768 -r 25 -i :0.0 -q:v 0 test.mpg in the recorded video test.mpg i get blackscreen only it does not record my desktop or rdp connection to windows server. according to man pages :0.0 is the screen if you using XQuartz. please help! Thanks, From lou at lrcd.com Fri Feb 8 22:53:56 2013 From: lou at lrcd.com (Lou) Date: Fri, 8 Feb 2013 12:53:56 -0900 Subject: [FFmpeg-user] Parameters and files not transferring to pop up window In-Reply-To: <9729067B-7886-4419-95FE-EC12EBBCCEC8@peervyne.com> References: <9729067B-7886-4419-95FE-EC12EBBCCEC8@peervyne.com> Message-ID: <20130208125356.11dfc838@lrcd.com> On Fri, 8 Feb 2013 11:14:57 -0500 Ronald Ramsay wrote: > Hi All, > > I am posting video to my site in a modal. When I post I have a second pop up window opening where the video is uploaded and processed and shows a progress bar. This enables my users to continue using the site. The files and parameters are not being transferred from the modal to the second pop up window. Does anyone have any idea about the best way to implement this? > > > Ron How does this relate to FFmpeg? From dave at dlasley.net Fri Feb 8 23:46:13 2013 From: dave at dlasley.net (Dave Lasley) Date: Fri, 8 Feb 2013 14:46:13 -0800 Subject: [FFmpeg-user] ffmpeg `error while opening encoder for output stream` (Windows) Message-ID: Hello,**** I am getting the error**** error while opening encoder for output stream #0:0 -**** maybe incorrect parameters such as bit_rate, rate, width, or height*** * When I run the below command on Windows ffmpeg-20130205-git-c2dd5a1-win64-static** Z:Programs\\Windows\\ffmpeg-20130205-git-c2dd5a1-win64-static\\usr\\bin\\ffmpeg.exe -i ^**** "Z:\\2-renamed\\Abduction.mkv" -passlogfile "Abduction.mkv.log" -b:v 13845000 ^**** -level 41 -vcodec libx264 -an -preset veryslow -sn -y -tune film -pass 1 ^** ** -f rawvideo -y NUL**** I have searched around, and the universal solution is that you have to specify the audio/video bit rates along with the audio/video codecs when using two pass encoding. Unfortunately, I am already doing this with the `-an` (no audio), `-b:v 13845000`, and `-vcodec libx264`. ** >From the stream number, I am thinking that this is the video stream that is failing. I figured that ffmpeg wasn't able to find my x264 binary, but the command works if I remove `-pass 1`. An additional note - this command works with no issues on my Ubuntu box, and the failure is consistent between files on the Windows box. Any help would be greatly appreciated, hopefully it?s just my stupidity with Windows ;) Thank you,**** David Lasley From lou at lrcd.com Fri Feb 8 23:57:31 2013 From: lou at lrcd.com (Lou) Date: Fri, 8 Feb 2013 13:57:31 -0900 Subject: [FFmpeg-user] ffmpeg `error while opening encoder for output stream` (Windows) In-Reply-To: References: Message-ID: <20130208135731.06ca3f3e@lrcd.com> On Fri, 8 Feb 2013 14:46:13 -0800 Dave Lasley wrote: > Hello,**** > > I am getting the error**** > > error while opening encoder for output stream #0:0 -**** > > maybe incorrect parameters such as bit_rate, rate, width, or height*** Please include the complete ffmpeg console output. From ronramsay at peervyne.com Sat Feb 9 00:01:40 2013 From: ronramsay at peervyne.com (Ronald Ramsay) Date: Fri, 8 Feb 2013 18:01:40 -0500 Subject: [FFmpeg-user] Parameters and files not transferring to pop up window In-Reply-To: <20130208125356.11dfc838@lrcd.com> References: <9729067B-7886-4419-95FE-EC12EBBCCEC8@peervyne.com> <20130208125356.11dfc838@lrcd.com> Message-ID: <5D901362-60C5-4076-A6E4-3980F85973FB@peervyne.com> We are using FFMeg to convert the video. Is there a way to do this in a separate pop up window with a progress bar? On Feb 8, 2013, at 4:53 PM, Lou wrote: > On Fri, 8 Feb 2013 11:14:57 -0500 > Ronald Ramsay wrote: > >> Hi All, >> >> I am posting video to my site in a modal. When I post I have a second pop up window opening where the video is uploaded and processed and shows a progress bar. This enables my users to continue using the site. The files and parameters are not being transferred from the modal to the second pop up window. Does anyone have any idea about the best way to implement this? >> >> >> Ron > > How does this relate to FFmpeg? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sat Feb 9 01:16:52 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 9 Feb 2013 00:16:52 +0000 (UTC) Subject: [FFmpeg-user] Transcoding H264/1080p to H264/720p References: , , , , , , Message-ID: Mauricio Ulargui hotmail.com> writes: > looks like the video stream is there but it doesn't show > with a player (tried several) (which ones?) > [mp4 @ 03e28020] Frame rate very high for a muxer > not efficiently supporting it. Use -r 30000/1001 (or -r 25 or similar) If you believe this is a regression, please provide a sample. Please avoid thread-hijacking (including your own), this is considered rude (everywhere). Carl Eugen From dave at dlasley.net Sat Feb 9 01:52:36 2013 From: dave at dlasley.net (Dave Lasley) Date: Fri, 8 Feb 2013 16:52:36 -0800 Subject: [FFmpeg-user] ffmpeg `error while opening encoder for output stream` (Windows) In-Reply-To: <20130208135731.06ca3f3e@lrcd.com> References: <20130208135731.06ca3f3e@lrcd.com> Message-ID: Thank you for your quick response; apologies for not having included the entire output in my original message: C:\Windows\system32>Z:Programs\\Windows\\ffmpeg-20130205-git-c2dd5a1-win64-stati c\\bin\\ffmpeg.exe -i "Z:\\2-renamed\\A Very Harold And Kumar Christmas.mkv" -pa sslogfile "A Very Harold And Kumar Christmas.mkv.log" -b:v 94250 -level 41 -vcod ec libx264 -an -preset veryslow -sn -y -tune film -pass 1 -f rawvideo -y NUL ffmpeg version N-49610-gc2dd5a1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 5 2013 13:26:02 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e nable-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. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [matroska,webm @ 0000000003c321a0] max_analyze_duration 5000000 reached at 50050 00 microseconds [matroska,webm @ 0000000003c321a0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, matroska,webm, from 'Z:\\2-renamed\\A Very Harold And Kumar Christmas. mkv': Metadata: title : A_Very_Harold_and_Kumar_Christmas CREATION_TIME : 2012-05-13 02:50:10 ENCODER : Lavf54.6.101 Duration: 01:29:40.38, start: 0.000000, bitrate: 16032 kb/s Chapter #0.0: start 0.000000, end 571.779533 Metadata: title : Chapter 00 Chapter #0.1: start 571.779533, end 1304.594956 Metadata: title : Chapter 01 Chapter #0.2: start 1304.594956, end 1848.555022 Metadata: title : Chapter 02 Chapter #0.3: start 1848.555022, end 2363.027333 Metadata: title : Chapter 03 Chapter #0.4: start 2363.027333, end 2967.798156 Metadata: title : Chapter 04 Chapter #0.5: start 2967.798156, end 3644.349022 Metadata: title : Chapter 05 Chapter #0.6: start 3644.349022, end 4149.186689 Metadata: title : Chapter 06 Chapter #0.7: start 4149.186689, end 4878.164956 Metadata: title : Chapter 07 Chapter #0.8: start 4878.164956, end 5380.330000 Metadata: title : Chapter 08 Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (de fault) Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle (default) [libx264 @ 00000000045da020] using SAR=1/1 [libx264 @ 00000000045da020] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShu ffle SSE4.2 AVX [libx264 @ 00000000045da020] ratecontrol_init: can't open stats file Output #0, rawvideo, to 'NUL': Metadata: title : A_Very_Harold_and_Kumar_Christmas ENCODER : Lavf54.6.101 Chapter #0.0: start 0.000000, end 571.779533 Metadata: title : Chapter 00 Chapter #0.1: start 571.779533, end 1304.594956 Metadata: title : Chapter 01 Chapter #0.2: start 1304.594956, end 1848.555022 Metadata: title : Chapter 02 Chapter #0.3: start 1848.555022, end 2363.027333 Metadata: title : Chapter 03 Chapter #0.4: start 2363.027333, end 2967.798156 Metadata: title : Chapter 04 Chapter #0.5: start 2967.798156, end 3644.349022 Metadata: title : Chapter 05 Chapter #0.6: start 3644.349022, end 4149.186689 Metadata: title : Chapter 06 Chapter #0.7: start 4149.186689, end 4878.164956 Metadata: title : Chapter 07 Chapter #0.8: start 4878.164956, end 5380.330000 Metadata: title : Chapter 08 Stream #0:0(eng): Video: h264, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1-- 1, pass 1, 94 kb/s, 90k tbn, 23.98 tbc (default) Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height On Fri, Feb 8, 2013 at 2:57 PM, Lou wrote: > On Fri, 8 Feb 2013 14:46:13 -0800 > Dave Lasley wrote: > > > Hello,**** > > > > I am getting the error**** > > > > error while opening encoder for output stream #0:0 -**** > > > > maybe incorrect parameters such as bit_rate, rate, width, or > height*** > > Please include the complete ffmpeg console output. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sat Feb 9 02:29:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 9 Feb 2013 01:29:19 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffmpeg_=60error_while_opening_encoder_for?= =?utf-8?q?_output_stream=60_=28Windows=29?= References: <20130208135731.06ca3f3e@lrcd.com> Message-ID: Dave Lasley dlasley.net> writes: > [libx264 @ 00000000045da020] ratecontrol_init: can't open stats file It should not make a difference, but could you test ccf9dd0 ? Carl Eugen From cehoyos at ag.or.at Sat Feb 9 12:51:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 9 Feb 2013 11:51:29 +0000 (UTC) Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 References: Message-ID: Nathan Lewis mail.crawford.com> writes: > I've run into an issue using the most recent ffmpeg version > from git. I'm attempting to do 2 pass encoding but I get a > failure on -pass 1 (see below). The strange thing is that > the exact same command executes fine using ffmpeg 1.0.3 > build I have on a different machine (see further below). Could you test ccf9dd0 on the failing machine to clarify if this is a regression? Thank you, Carl Eugen From bbutscheidt at yahoo.de Sat Feb 9 16:05:12 2013 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sat, 9 Feb 2013 15:05:12 +0000 (GMT) Subject: [FFmpeg-user] Proper way to reverse PAL Speed up? In-Reply-To: <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> References: <1359842417.4488.YahooMailNeo@web133204.mail.ir2.yahoo.com> <1359886115.87072.YahooMailNeo@web133202.mail.ir2.yahoo.com> Message-ID: <1360422312.33835.YahooMailNeo@web133206.mail.ir2.yahoo.com> So maybe I answer myself. Further tries seem to implicate, that the linear transformation I am heading to needs the first pts to be zero. At least, this is way I seem to get rid of this video/audio offset I tried to describe. So I replaced PTS with (PTS-STARTPTS) . To sum up: To speed down a video, eg. from PAL (either 50fps or 25fps) to ntsc film (23.976 fps), I see two possibilities: Example 1: Using asetps (which changes the pitch of the audio as well): ffmpeg -i PAL_video.ts -vcodec libx264 -preset veryfast -x264opts crf=12:videoformat=undef:force-cfr -acodec ac3 -ab 448k -filter:v setpts='25025/24000*(PTS-STARTPTS)' -filter:a asetpts='25025/24000*(PTS-STARTPTS)',aresample=48000:async=1:min_comp=0.01:comp_duration=1:max_soft_comp=100000000:min_hard_comp=0.3 -f matroska -r 24000/1001 NTSC_video.mkv Without adding aresample to the audio filter, my audio get distorted. Example 2: Using atempo (which seems to keep the pitch of the original audio): ffmpeg -i PAL_video.ts -vcodec libx264 -preset veryfast -x264opts crf=12:videoformat=undef:force-cfr -acodec ac3 -ab 448k -filter:v setpts='25025/24000*(PTS-STARTPTS)' -filter:a asetpts='PTS-STARTPTS',atempo=0.959040959 -f matroska -r 24000/1001 Sport_HD_CUT_ntsc.mkv Using atempo, aresample doesn't seem to be needed in addition, at least to my experiences up to now. But it seems to do no harm as well if added. Of course, the encoders and containers used are just considered to be an example as well and I don't think them to be mandatory as long as video and audio is reencoded at all. And, if someone can add any judgements or additions about these tries I am still fond of hearing them. From richmh58 at gmail.com Sat Feb 9 20:45:23 2013 From: richmh58 at gmail.com (Richard Hubbard) Date: Sat, 9 Feb 2013 11:45:23 -0800 Subject: [FFmpeg-user] Encoded NAL data changes when creating mp4 Message-ID: Hello, I am trying to use ffmpeg to generate an mp4 from an elementary stream. I do not want the encoded NAL data to change, but it seems to be getting changed. I can view the NAL data from gdb/lldb, the application that I have that parses the elementary stream shows different NAL data then the application that parses the mp4. I tried the sameq option but that didn't help. Prior to adding the profile and level options, I noticed that ffmpeg also changed the profile to high. I added the "-profile main -level 30" and I am getting the desired profile and level now. What option should I provide to place the elementary stream into an mp4 container unchanged? ffmpeg -i cama1_vtc_c.avc -sameq -vcodec libx264 -profile main -level 30 -an cama1_vtc_c_ffmpegMain30_sameq.mp4 ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 14 2013 07:24:27 with clang 4.0 ((tags/Apple/clang-421.0.60)) configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libopenjpeg --enable-libvpx --enable-libspeex --disable-libopencore-amrnb --disable-libopencore-amrwb --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 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 [h264 @ 0x7feed981e600] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2) Input #0, h264, from 'cama1_vtc_c.avc': Duration: N/A, bitrate: N/A Stream #0.0: Video: h264 (Main), yuv420p, 720x480, 25 fps, 25 tbr, 1200k tbn, 50 tbc [buffer @ 0x7feed942c400] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [libx264 @ 0x7feed9818200] Default settings detected, using medium profile [libx264 @ 0x7feed9818200] using cpu capabilities: none! [libx264 @ 0x7feed9818200] profile Main, level 3.0 [libx264 @ 0x7feed9818200] 264 - core 119 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=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 'cama1_vtc_c_ffmpegMain30_sameq.mp4': Metadata: encoder : Lavf52.111.0 Stream #0.0: Video: libx264, yuv420p, 720x480, q=2-31, 200 kb/s, 50 tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help frame= 4 fps= 0 q=28.0 Lsize= 79kB time=00:00:00.08 bitrate=8093.9kbits/s video:78kB audio:0kB global headers:0kB muxing overhead 1.089088% frame I:1 Avg QP:27.29 size: 41381 [libx264 @ 0x7feed9818200] frame P:2 Avg QP:29.62 size: 15152 [libx264 @ 0x7feed9818200] frame B:1 Avg QP:30.64 size: 7692 [libx264 @ 0x7feed9818200] consecutive B-frames: 50.0% 50.0% 0.0% 0.0% [libx264 @ 0x7feed9818200] mb I I16..4: 8.6% 0.0% 91.4% [libx264 @ 0x7feed9818200] mb P I16..4: 1.1% 0.0% 7.7% P16..4: 22.8% 22.1% 9.7% 0.0% 0.0% skip:36.5% [libx264 @ 0x7feed9818200] mb B I16..4: 0.2% 0.0% 0.2% B16..8: 31.3% 14.1% 5.3% direct: 6.1% skip:42.8% L0:36.4% L1:32.6% BI:31.0% [libx264 @ 0x7feed9818200] coded y,uvDC,uvAC intra: 91.6% 72.7% 43.9% inter: 27.7% 24.8% 8.7% [libx264 @ 0x7feed9818200] i16 v,h,dc,p: 35% 19% 8% 39% [libx264 @ 0x7feed9818200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 31% 14% 7% 7% 5% 9% 5% 9% [libx264 @ 0x7feed9818200] i8c dc,h,v,p: 47% 23% 22% 8% [libx264 @ 0x7feed9818200] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x7feed9818200] ref P L0: 87.4% 9.5% 3.1% [libx264 @ 0x7feed9818200] kb/s:3968.85 From nlewis at mail.crawford.com Sat Feb 9 21:26:04 2013 From: nlewis at mail.crawford.com (Nathan Lewis) Date: Sat, 9 Feb 2013 15:26:04 -0500 Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 In-Reply-To: References: Message-ID: On Sat, Feb 9, 2013 at 6:51 AM, Carl Eugen Hoyos wrote: > Nathan Lewis mail.crawford.com> writes: > > > I've run into an issue using the most recent ffmpeg version > > from git. I'm attempting to do 2 pass encoding but I get a > > failure on -pass 1 (see below). The strange thing is that > > the exact same command executes fine using ffmpeg 1.0.3 > > build I have on a different machine (see further below). > > Could you test ccf9dd0 on the failing machine to clarify if > this is a regression? > > Hi Carl, I'd be glad to test this, but I'm no exactly sure how to do this. Do I just replace the code from this git commit: https://github.com/FFmpeg/FFmpeg/commit/ccf9dd00da055e94117b56cead4af80ff331b00e with the code at the same location in ffmpeg_opts.c ? Do I need to recompile afterward? Or if none of the above, could you point me to some resource so that I can learn the procedure? thanks, Nathan From h.reindl at thelounge.net Sat Feb 9 21:32:05 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 09 Feb 2013 21:32:05 +0100 Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 In-Reply-To: References: Message-ID: <5116B245.7010606@thelounge.net> Am 09.02.2013 21:26, schrieb Nathan Lewis: > I'd be glad to test this, but I'm no exactly sure how to do this. Do I > just replace the code from this git commit: > https://github.com/FFmpeg/FFmpeg/commit/ccf9dd00da055e94117b56cead4af80ff331b00e > with the code at the same location in ffmpeg_opts.c ? Do I need to > recompile afterward? > > Or if none of the above, could you point me to some resource so that I can > learn the procedure? http://ffmpeg.org/releases/ http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 you have to re-compile because if the source changes it needs naturally a re-compile - how else should the binary change? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From kody.j.kurtz at gmail.com Sun Feb 10 08:46:35 2013 From: kody.j.kurtz at gmail.com (Kody Kurtz) Date: Sat, 9 Feb 2013 23:46:35 -0800 Subject: [FFmpeg-user] Audio/Video slowly desync while using ffmpeg's x11grab Message-ID: Hello I'm trying to capture some gameplay footage from video games for purposes of review and commentary, and to do this, I am using ffmpeg's x11grab tool. When I go to capture the footage, everything starts out recording properly synced, but as the video goes on, the audio slowly drifts behind the video by several seconds. While I'm capturing, ffmpeg reports no dropped frames, and I don't see any during playback, so that does not appear to be the cause of my problem. My CPU usage while recording is 50%, and that's accounting for both CPU usage from the game itself and CPU usage from capturing the video and audio, so I doubt that could be the cause, either. The command I use to capture is ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 640x480 -i :0.0+256,256 -acodec pcm_s16le -vcodec libx264 -crf 0 -preset ultrafast -threads 0 -y Capture.mkv and a video demonstrating the issue I am having can be found at http://youtu.be/9qnkaw_HP-I I thank anyone who can assist me in advance. Kody From cehoyos at ag.or.at Sun Feb 10 10:47:22 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 10 Feb 2013 09:47:22 +0000 (UTC) Subject: [FFmpeg-user] Audio/Video slowly desync while using ffmpeg's x11grab References: Message-ID: Kody Kurtz gmail.com> writes: > My CPU usage while recording is 50%, and that's > accounting for both CPU usage from the game itself > and CPU usage from capturing the video and audio, > so I doubt that could be the cause, either. Single-core cpu? In any case, test -r 10 > The command I use to capture is > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 > -s 640x480 -i :0.0+256,256 -acodec pcm_s16le > -vcodec libx264 -crf 0 -preset ultrafast > -threads 0 -y Capture.mkv (If your cpu really is single-core, I would expect -threads 1 to perform better.) Complete, uncut console output missing. Carl Eugen From cehoyos at ag.or.at Sun Feb 10 10:50:18 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 10 Feb 2013 09:50:18 +0000 (UTC) Subject: [FFmpeg-user] Encoded NAL data changes when creating mp4 References: Message-ID: Richard Hubbard gmail.com> writes: > I am trying to use ffmpeg to generate an mp4 from > an elementary stream. I do not want the encoded NAL > data to change, but it seems to be getting changed. With -vcodec libx264, they have to change, use -vcodec copy if you want them unchanged. [...] > ffmpeg -i cama1_vtc_c.avc -sameq -vcodec libx264 > -profile main -level 30 -an cama1_vtc_c_ffmpegMain30_sameq.mp4 > > ffmpeg version 0.7.13, Copyright (c) 2000-2011 the FFmpeg developers This is too old now (hundreds of bugs have been fixed since), please update to current git head. Unrelated: -sameq does not (nearly) do what you expect, remove it, the option has been removed in later versions. Carl Eugen From james.darnley at gmail.com Sun Feb 10 11:49:28 2013 From: james.darnley at gmail.com (James Darnley) Date: Sun, 10 Feb 2013 11:49:28 +0100 Subject: [FFmpeg-user] Audio/Video slowly desync while using ffmpeg's x11grab In-Reply-To: References: Message-ID: <51177B38.5030105@gmail.com> On 2013-02-10 10:47, Carl Eugen Hoyos wrote: >> The command I use to capture is >> >> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 >> -s 640x480 -i :0.0+256,256 -acodec pcm_s16le >> -vcodec libx264 -crf 0 -preset ultrafast >> -threads 0 -y Capture.mkv > > (If your cpu really is single-core, I would expect > -threads 1 to perform better.) Fortunately x264 is aware of this too and will use just a single thread. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From werner.robitza at gmail.com Sun Feb 10 22:40:13 2013 From: werner.robitza at gmail.com (Werner Robitza) Date: Sun, 10 Feb 2013 22:40:13 +0100 Subject: [FFmpeg-user] VBR Encoding with libopus Message-ID: libopus lets us supply -vbr with the values "off", "on" and "constrained". In the latter two modes, how does one choose the quality level? -q:a does not seem to have any effect, and Opus falls back to 96 kBit/s. Without any option other than -vbr on, it also uses CBR encoding. Furthermore, the source code ( https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/libopusenc.c) mentions a "compression_level" option, but how can I set this as a user? ----------- ffmpeg -i in.mp4 -c:a libopus -vn -vbr on out.opus ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 8 2013 22:55:29 with Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/1.1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-ffplay --enable-libfdk-aac --enable-libopus --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' 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 'in.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2012-01-08 11:16:19 encoder : Lavf53.24.0 Duration: 00:03:31.58, start: 0.000000, bitrate: 2359 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2229 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: creation_time : 2012-01-08 11:16:19 handler_name : VideoHandler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s Metadata: creation_time : 2012-01-08 11:16:19 handler_name : SoundHandler [libopus @ 0x7f8eb383a000] No bit rate set. Defaulting to 96000 bps. Output #0, ogg, to 'out.opus': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.59.106 Stream #0:0(eng): Audio: opus, 48000 Hz, stereo, flt, 96 kb/s Metadata: creation_time : 2012-01-08 11:16:19 handler_name : SoundHandler Stream mapping: Stream #0:1 -> #0:0 (aac -> libopus) Press [q] to stop, [?] for help size= 2464kB time=00:03:31.59 bitrate= 95.4kbits/s video:0kB audio:2441kB subtitle:0 global headers:0kB muxing overhead 0.943813% From james.darnley at gmail.com Sun Feb 10 23:04:37 2013 From: james.darnley at gmail.com (James Darnley) Date: Sun, 10 Feb 2013 23:04:37 +0100 Subject: [FFmpeg-user] VBR Encoding with libopus In-Reply-To: References: Message-ID: <51181975.2030409@gmail.com> On 2013-02-10 22:40, Werner Robitza wrote: > libopus lets us supply -vbr with the values "off", "on" and "constrained". > In the latter two modes, how does one choose the quality level? > > -q:a does not seem to have any effect, and Opus falls back to 96 kBit/s. > Without any option other than -vbr on, it also uses CBR encoding. Perhaps nobody has added that yet. I certainly can't see anything like what is used with libmp3lame or libvorbis. > Furthermore, the source code ( > https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/libopusenc.c) > mentions a "compression_level" option, but how can I set this as a user? -compression_level X where X is between 0 and 10 (inclusive) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From werner.robitza at gmail.com Sun Feb 10 23:26:54 2013 From: werner.robitza at gmail.com (Werner Robitza) Date: Sun, 10 Feb 2013 23:26:54 +0100 Subject: [FFmpeg-user] VBR Encoding with libopus In-Reply-To: <51181975.2030409@gmail.com> References: <51181975.2030409@gmail.com> Message-ID: > > Perhaps nobody has added that yet. I certainly can't see anything like > what is used with libmp3lame or libvorbis. > That makes me wonder why the option was included (even in a stable release) if it doesn't do anything :) > > Furthermore, the source code ( > > https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/libopusenc.c) > > mentions a "compression_level" option, but how can I set this as a user? > > -compression_level X where X is between 0 and 10 (inclusive) > Thanks. Should've mentioned I already tried that?this option unfortunately has no effect. I get "No bit rate set. Defaulting to 96000 bps." The simple explanation would be that there's no interface yet (as indicated by "ffmpeg -h full"), but maybe a dev can confirm this. From 23liam at googlemail.com Mon Feb 11 00:31:01 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Sun, 10 Feb 2013 23:31:01 +0000 Subject: [FFmpeg-user] VBR Encoding with libopus In-Reply-To: References: <51181975.2030409@gmail.com> Message-ID: The impression I have - mostly from the opusenc man page - is that opusenc (and therefore libopus) doesn't have a VBR quality-targeting mode in the same way that libmp3lame or libvorbis do. I mean that it doesn't work the same way: with libopus, you simply provide a target bit rate, and the encoder tries to use that as the average bit rate. It's confusing because you normally only supply a bit rate for the CBR mode of a given encoder, but libopus just works differently, I think. opusenc man page: https://mf4.xiph.org/jenkins/view/opus/job/opus-tools/ws/man/opusenc.html From mulargui at hotmail.com Mon Feb 11 04:57:03 2013 From: mulargui at hotmail.com (mulargui) Date: Sun, 10 Feb 2013 19:57:03 -0800 Subject: [FFmpeg-user] Transcoding H264/1080p to H264/720p Message-ID: It worked. Thank you for your help. Mauricio?@?Ulargui?.com |?+1 425 449 3825 From werner.robitza at gmail.com Mon Feb 11 08:26:52 2013 From: werner.robitza at gmail.com (Werner Robitza) Date: Mon, 11 Feb 2013 08:26:52 +0100 Subject: [FFmpeg-user] VBR Encoding with libopus In-Reply-To: References: <51181975.2030409@gmail.com> Message-ID: > The impression I have - mostly from the opusenc man page - is that opusenc > (and therefore libopus) doesn't have a VBR quality-targeting mode in the > same way that libmp3lame or libvorbis do. > Interesting. Now that you mention it, there's really no setting for this other than enabling VBR. > I mean that it doesn't work the same way: with libopus, you simply provide > a target bit rate, and the encoder tries to use that as the average bit > rate. It's confusing because you normally only supply a bit rate for the > CBR mode of a given encoder, but libopus just works differently, I think. > I tried encoding with "-b:a 128k" and got different average bit rates with the VBR option set to "off", "on" and "constrained", respectively. Will probably have to do a little more testing. From lou at lrcd.com Mon Feb 11 10:17:57 2013 From: lou at lrcd.com (Lou) Date: Mon, 11 Feb 2013 00:17:57 -0900 Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 In-Reply-To: References: Message-ID: <1360574277.28498.140661189717209.55A53B00@webmail.messagingengine.com> On Sat, Feb 9, 2013, at 11:26 AM, Nathan Lewis wrote: > I'd be glad to test this, but I'm no exactly sure how to do this. Do I > just replace the code from this git commit: > https://github.com/FFmpeg/FFmpeg/commit/ccf9dd00da055e94117b56cead4af80ff331b00e > with the code at the same location in ffmpeg_opts.c ? Do I need to > recompile afterward? 1. Uninstall ffmpeg if you installed it to your system 2. Navigate to your ffmpeg source directory 3. make distclean 4. git pull 5. git checkout ccf9dd00da055e94117b56cead4af80ff331b00e 6. ./configure, make, etc From cehoyos at ag.or.at Mon Feb 11 10:23:42 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 11 Feb 2013 09:23:42 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffmpeg_=60error_while_opening_encoder_for?= =?utf-8?q?_output_stream=60_=28Windows=29?= References: <20130208135731.06ca3f3e@lrcd.com> Message-ID: Carl Eugen Hoyos ag.or.at> writes: > Dave Lasley dlasley.net> writes: > > > [libx264 @ 00000000045da020] ratecontrol_init: can't open stats file > > It should not make a difference, but could > you test ccf9dd0 ? Sorry, this was a typo, it should have been: Could you test a127879 Thank you, Carl Eugen From cehoyos at ag.or.at Mon Feb 11 10:28:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 11 Feb 2013 09:28:40 +0000 (UTC) Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 References: <5116B245.7010606@thelounge.net> Message-ID: Reindl Harald thelounge.net> writes: > > Or if none of the above, could you point me to some > > resource so that I can learn the procedure? > > http://ffmpeg.org/releases/ > http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 Both links do not help finding the required version... Carl Eugen From cehoyos at ag.or.at Mon Feb 11 10:27:42 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 11 Feb 2013 09:27:42 +0000 (UTC) Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 References: <1360574277.28498.140661189717209.55A53B00@webmail.messagingengine.com> Message-ID: Lou lrcd.com> writes: > 1. Uninstall ffmpeg if you installed it to your system Please don't! The FFmpeg build system by default produces a static standalone binary that you do not have to install to run it. (I never install.) > 2. Navigate to your ffmpeg source directory > 3. make distclean > 4. git pull > 5. git checkout ccf9dd00da055e94117b56cead4af80ff331b00e Sorry, there was a typo in my email, please test a127879 The following link is simpler to get this version: http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=a127879;sf=tgz > 6. ./configure, make, etc Thank you, Carl Eugen From battistel at gmail.com Mon Feb 11 12:02:05 2013 From: battistel at gmail.com (Massimo Battistel) Date: Mon, 11 Feb 2013 12:02:05 +0100 Subject: [FFmpeg-user] [ffmpeg-user] Unsupported color space In-Reply-To: References: Message-ID: > > The relevant patch(es) were applied, so the question is now: > Is thist still reproducible with current git head? > > Not very well... It seems that colorspace is now recognized: ffmpeg -f dshow -list_options true -i video="Decklink Video Capture (2)" ffmpeg version N-49757-g969039e Copyright (c) 2000-2013 the FFmpeg developers built on Feb 9 2013 20:36:04 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [dshow @ 000000000048dd20] DirectShow video device options [dshow @ 000000000048dd20] Pin "Capture" [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=29.97 max s=720x486 fps=29.97 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x486 fps=23.976 max s=720x486 fps=23.976 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=720x576 fps=25 max s=720x576 fps=25 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=23.976 max s=1920x1080 fps=23.976 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=24 max s=1920x1080 fps=24 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=25 max s=1920x1080 fps=25 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1920x1080 fps=30 max s=1920x1080 fps=30 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1280x720 fps=50 max s=1280x720 fps=50 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402 [dshow @ 000000000048dd20] pixel_format=uyvy422 min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002 [dshow @ 000000000048dd20] vcodec=v210 min s=720x486 fps=29.97 max s=720x486 fps=29.97 [dshow @ 000000000048dd20] vcodec=v210 min s=720x486 fps=23.976 max s=720x486 fps=23.976 [dshow @ 000000000048dd20] vcodec=v210 min s=720x576 fps=25 max s=720x576 fps=25 [dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=23.976 max s=1920x1080 fps=23.976 [dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=24 max s=1920x1080 fps=24 [dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=25 max s=1920x1080 fps=25 [dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97 [dshow @ 000000000048dd20] vcodec=v210 min s=1920x1080 fps=30 max s=1920x1080 fps=30 [dshow @ 000000000048dd20] vcodec=v210 min s=1280x720 fps=50 max s=1280x720 fps=50 [dshow @ 000000000048dd20] vcodec=v210 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402 [dshow @ 000000000048dd20] vcodec=v210 min s=1280x720 fps=60.0002 max s=1280x720 fps=60.0002 video=Decklink Video Capture (2): Immediate exit requested but if I try to play: ffplay -f dshow -video_size 1920x1080 -r 25 -i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)" ffplay version N-49757-g969039e Copyright (c) 2003-2013 the FFmpeg developers built on Feb 9 2013 20:36:04 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Failed to set value '25' for option 'r' The "-r 25" is essential because if not, it defaults to 23.97 fps which is not correct for me. And if I try to record, I get tons of errors (dropped frames, bad audio...). ffmpeg -f dshow -video_size 1920x1080 -r 25 -i video="Decklink Video Capture (2)":audio="Decklink Audio Capture (2)" -vcodec libx264 -q:v 1 -acodec libvo_aacenc -q:a 1 -y cap.mkv ffmpeg version N-49757-g969039e Copyright (c) 2000-2013 the FFmpeg developers built on Feb 9 2013 20:36:04 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [dshow @ 000000000077b800] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, dshow, from 'video=Decklink Video Capture (2):audio=Decklink Audio Capture (2)': Duration: N/A, start: 0.104009, bitrate: 1536 kb/s Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1920x1080, 25 tbr, 10000k tbn, 25 tbc Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s [libx264 @ 000000000077a7e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 000000000077a7e0] profile High 4:2:2, level 4.0, 4:2:2 8-bit [libx264 @ 000000000077a7e0] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec - Copyright 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 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, matroska, to 'cap.mkv': Metadata: encoder : Lavf54.62.100 Stream #0:0: Video: h264 (H264 / 0x34363248), yuv422p, 1920x1080, q=-1--1, 1k tbn, 25 tbc Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> libvo_aacenc) Press [q] to stop, [?] for help [dshow @ 000000000077b800] real-time buffer 136% full! frame dropped! Last message repeated 2 times frame= 13 fps=0.0 q=0.0 size= 1kB time=00:00:00.52 bitrate= 9.6kbits/s real-time buffer 136% full! frame dropped! [dshow @ 000000000077b800] real-time buffer 136% full! frame dropped! Last message repeated 3 times frame= 26 fps= 26 q=0.0 size= 1kB time=00:00:01.00 bitrate= 5.0kbits/s real-time buffer 136% full! frame dropped! [dshow @ 000000000077b800] real-time buffer 136% full! frame dropped! Last message repeated 4 times frame= 38 fps= 25 q=0.0 size= 1kB time=00:00:01.51 bitrate= 3.3kbits/s real-time buffer 136% full! frame dropped! [dshow @ 000000000077b800] real-time buffer 136% full! frame dropped! Last message repeated 21 times frame= 47 fps= 21 q=0.0 size= 1kB time=00:00:01.72 bitrate= 2.9kbits/s real-time buffer 136% full! frame dropped! [dshow @ 000000000077b800] real-time buffer 136% full! frame dropped! Last message repeated 16 times frame= 55 fps= 20 q=28.0 size= 161kB time=00:00:02.37 bitrate= 553.8kbits/s real-time buffer 136% full! frame dropped! [dshow @ 000000000077b800] real-time buffer 136% full! frame dropped! Last message repeated 195 times frame= 56 fps=8.2 q=-1.0 Lsize= 906kB time=00:00:02.84 bitrate=2612.2kbits/s video:883kB audio:21kB subtitle:0 global headers:0kB muxing overhead 0.162665% [libx264 @ 000000000077a7e0] frame I:2 Avg QP:22.80 size:132162 [libx264 @ 000000000077a7e0] frame P:15 Avg QP:24.30 size: 29650 [libx264 @ 000000000077a7e0] frame B:39 Avg QP:25.03 size: 4988 [libx264 @ 000000000077a7e0] consecutive B-frames: 5.4% 3.6% 5.4% 85.7% [libx264 @ 000000000077a7e0] mb I I16..4: 36.2% 52.1% 11.7% [libx264 @ 000000000077a7e0] mb P I16..4: 2.0% 2.3% 2.4% P16..4: 28.4% 7.6% 6.1% 0.0% 0.0% skip:51.3% [libx264 @ 000000000077a7e0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 20.2% 0.8% 0.1% direct: 1.0% skip:77.8% L0:44.1% L1:53.2% BI: 2.6% [libx264 @ 000000000077a7e0] 8x8 transform intra:46.5% inter:83.8% [libx264 @ 000000000077a7e0] coded y,uvDC,uvAC intra: 54.5% 63.1% 36.3% inter: 7.7% 12.7% 0.4% [libx264 @ 000000000077a7e0] i16 v,h,dc,p: 68% 22% 3% 6% [libx264 @ 000000000077a7e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 20% 16% 5% 7% 8% 7% 7% 7% [libx264 @ 000000000077a7e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 68% 5% 2% 2% 3% 2% 2% 2% [libx264 @ 000000000077a7e0] i8c dc,h,v,p: 45% 28% 21% 6% [libx264 @ 000000000077a7e0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 000000000077a7e0] ref P L0: 58.9% 9.5% 20.7% 10.9% [libx264 @ 000000000077a7e0] ref B L0: 80.0% 16.6% 3.4% [libx264 @ 000000000077a7e0] ref B L1: 91.7% 8.3% [libx264 @ 000000000077a7e0] kb/s:3227.13 [dshow @ 000000000077b800] real-time buffer 136% full! frame dropped! Thanks, Massimo From un1x0nly at gmail.com Mon Feb 11 16:37:58 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Mon, 11 Feb 2013 16:37:58 +0100 Subject: [FFmpeg-user] How to correctly split and then concatenate video (without reencoding) Message-ID: Hey all, I am trying to find a way how to split and then later concatenate video so that no artefacts (glitches, pauses, cracks) would appear in the resulting video. So far I have tried two methods for splitting video: 1) ffmpeg -i video.mp4 -vcodec copy -acodec copy \ -ss 00:00:00 -t 00:00:02 out01.mp4 \ -ss 00:00:02 -t 00:00:04 out02.mp4 \ -ss 00:00:04 -t 00:00:04 out03.mp4 ... 2) ffmpeg -i video mp4 -f segment -c copy -segment_time 2 -map 0 out%03d.mp4 Notice that I am trying to split video into segments so that durations of each segment would be roughly 2 seconds. After splitting I try to concatenate with: ffmpeg -f concat -i list.tmp -c copy joined.mp4 here 'list.tmp' contains all the segments (in an ascending order). Results of each split-concat series are: 1) Smooth audio, but choppy video (frame drops) at splitting points, see http://www.youtube.com/watch?v=wlVt4mYutqs 2) Cracks (pauses) at splitting points (both audio and video), however none of the frames were lost (or dropped?). Increased duration of overall video. ffprobe reported some STTS errors, VLC reported that duration of is 8 seconds (probably headers were wrong), but after performing: ffmpeg -i joined.mp4 -c copy fixed.mp4 VLC reported duration correctly. You can see the resulting video here: http://www.youtube.com/watch?v=D-rTWzrnIwU My remarks/questions: 1) Am I doing something wrong? What would be the the correct ffmpeg usage for such use-case? 2) I think there might be a bug somewhere in '-f segment' module. Could it be that way? Regards, ?ygimantas From richard_get_iplayer at richsim900.plus.com Mon Feb 11 17:00:40 2013 From: richard_get_iplayer at richsim900.plus.com (richard_get_iplayer) Date: Mon, 11 Feb 2013 16:00:40 +0000 Subject: [FFmpeg-user] FFmpeg creates m4a files that don't play on Marantz CD6003 Message-ID: <1360598440.2107.15.camel@ubuntu-desktop> I raised this issue sometime ago, it was fixed, but has at some stage regressed. Previous post: http://ffmpeg.org/pipermail/ffmpeg-user/2011-April/000374.html Previous fix: http://git.videolan.org/?p=ffmpeg.git;a=commit;h=0ba8485666f532f2dbab716f74e1be1189102c89 The problem is caused if ffmpeg sets the average bit rate (avgBitrate ) in the DecoderConfigDescriptor within the esds atom to zero. Where the avgBitrate is a non zero value, the m4a files play OK. Noticed the problem last week when I changed from Ubuntu 10.04 (Lucid) to Ubuntu 12.04 (Precise). Ubuntu 10.04 (Lucid) ffmpeg 4:0.5.9-0ubuntu0.10.04.3 Ubuntu 12.04 (Precise) fmpeg 4:0.8.5-0ubuntu0.12.04.1 Can you please refix? From dave at dlasley.net Mon Feb 11 17:35:58 2013 From: dave at dlasley.net (Dave Lasley) Date: Mon, 11 Feb 2013 08:35:58 -0800 Subject: [FFmpeg-user] ffmpeg `error while opening encoder for output stream` (Windows) In-Reply-To: References: <20130208135731.06ca3f3e@lrcd.com> Message-ID: <011f01ce0875$dfb41540$9f1c3fc0$@dlasley.net> Hi Carl, So I hate to admit it, but I am having the worst time compiling this from source on my Windows box. In my testing, I downloaded the shared binary of the same release (20130205-git-c2dd5a1-win64) from Zeranoe's builds, and I do not have the issue. I went ahead and re-downloaded the static version because this really didn't make any sense, and it seems to be working fine. At this point, I guess we can attribute this to an incomplete download on my end and close the issue. Sorry about the hassle :( Thank you, David Lasley -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Carl Eugen Hoyos Sent: Monday, February 11, 2013 1:24 AM To: ffmpeg-user at ffmpeg.org Subject: Re: [FFmpeg-user] ffmpeg `error while opening encoder for output stream` (Windows) Carl Eugen Hoyos ag.or.at> writes: > Dave Lasley dlasley.net> writes: > > > [libx264 @ 00000000045da020] ratecontrol_init: can't open stats file > > It should not make a difference, but could you test ccf9dd0 ? Sorry, this was a typo, it should have been: Could you test a127879 Thank you, Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From phil_rhodes at rocketmail.com Mon Feb 11 17:55:25 2013 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Mon, 11 Feb 2013 08:55:25 -0800 (PST) Subject: [FFmpeg-user] ffmpeg `error while opening encoder for output stream` (Windows) In-Reply-To: <011f01ce0875$dfb41540$9f1c3fc0$@dlasley.net> References: <20130208135731.06ca3f3e@lrcd.com> <011f01ce0875$dfb41540$9f1c3fc0$@dlasley.net> Message-ID: <1360601725.79550.YahooMailNeo@web121105.mail.ne1.yahoo.com> >?So I hate to admit it, but I am having the worst time compiling this from >?source on my Windows box. Don't worry, you're having the same experience as everyone else. P From tinker123 at gmail.com Mon Feb 11 18:57:33 2013 From: tinker123 at gmail.com (Steve) Date: Mon, 11 Feb 2013 12:57:33 -0500 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 Message-ID: Hi, I tried making a clip from an MP4 with the command below: ffmpeg -ss 00:00:15 -t 00:00:10 -i input.mp4 -c:v copy -c:a copy output.mp4 I'm running Kubuntu 11.10 The resulting clip had a file size, but everything I tried to play it in gave me an error message of one sort or another, claiming it was unplayable. Any help will be greatly appreciated Thanks Steve From cehoyos at ag.or.at Mon Feb 11 20:12:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 11 Feb 2013 19:12:20 +0000 (UTC) Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 References: Message-ID: Steve gmail.com> writes: > I tried making a clip from an MP4 with the command below: > > ffmpeg -ss 00:00:15 -t 00:00:10 -i input.mp4 -c:v copy -c:a copy output.mp4 (Completely unrelated: -t is an output option and should be specified in front of an output file name, not an input file.) Complete, uncut console output missing. > I'm running Kubuntu 11.10 > > The resulting clip had a file size, but everything > I tried to play it in gave me an error message of > one sort or another everything? Carl Eugen From 23liam at googlemail.com Mon Feb 11 20:16:54 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Mon, 11 Feb 2013 19:16:54 +0000 Subject: [FFmpeg-user] FFmpeg creates m4a files that don't play on Marantz CD6003 In-Reply-To: <1360598440.2107.15.camel@ubuntu-desktop> References: <1360598440.2107.15.camel@ubuntu-desktop> Message-ID: The 'ffmpeg' in the Ubuntu repositories is actually not ffmpeg from FFmpeg, but rather a deliberately crippled version from the Libav fork (they want you to use their tool, avconv, instead). Look here for a recent ffmpeg build: http://ffmpeg.org/download.html Or compile the latest git head from source (this is the option I'd recommend), see instructions for compiling on Ubuntu on the ffmpeg wiki: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide If the problem can be reproduced on an up-to-date real ffmpeg, then ask again here. From cehoyos at ag.or.at Mon Feb 11 20:17:59 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 11 Feb 2013 19:17:59 +0000 (UTC) Subject: [FFmpeg-user] FFmpeg creates m4a files that don't play on Marantz CD6003 References: <1360598440.2107.15.camel@ubuntu-desktop> Message-ID: richard_get_iplayer richsim900.plus.com> writes: > I raised this issue sometime ago, it was fixed, > but has at some stage regressed. Although I cannot test, to the best of my knowledge, the problem should still be fixed. > Previous post: > http://ffmpeg.org/pipermail/ffmpeg-user/2011-April/000374.html > > The problem is caused if ffmpeg sets the average bit > rate (avgBitrate) in the DecoderConfigDescriptor > within the esds atom to zero. I don't think it does. > Where the avgBitrate is a non zero value, the m4a > files play OK. > > Noticed the problem last week when I changed from Ubuntu 10.04 (Lucid) > to Ubuntu 12.04 (Precise). > > Ubuntu 10.04 (Lucid) ffmpeg 4:0.5.9-0ubuntu0.10.04.3 > Ubuntu 12.04 (Precise) fmpeg 4:0.8.5-0ubuntu0.12.04.1 Please add complete, uncut console output to be sure, but this does not look like FFmpeg, it is instead an intentionally broken version of FFmpeg that contains several hundred known bugs not present in FFmpeg - you only found one. Since many of these bugs are security relevant, we cannot support this version. Please see http://ffmpeg.org/download.html for supported versions, current git head is always recommended. Carl Eugen From nlewis at mail.crawford.com Mon Feb 11 21:36:34 2013 From: nlewis at mail.crawford.com (Nathan Lewis) Date: Mon, 11 Feb 2013 15:36:34 -0500 Subject: [FFmpeg-user] error attempting 2 pass encoding using libx264 In-Reply-To: References: <1360574277.28498.140661189717209.55A53B00@webmail.messagingengine.com> Message-ID: On Mon, Feb 11, 2013 at 4:27 AM, Carl Eugen Hoyos wrote: > > Sorry, there was a typo in my email, please test a127879 > > The following link is simpler to get this version: > http://git.videolan.org/?p=ffmpeg.git;a=snapshot;h=a127879;sf=tgz > > > 6. ./configure, make, etc > > Thanks for the clarification. I built and tested with a127879 and I've run into the same error. See below. I'm glad to run additional tests if it will help resolve the issue. Thanks, Nathan > ffmpeg -i Split\ Track\ Audio\ Sample.mov -pass 1 -an -c:v libx264 -b:v 2000k -f mov /dev/null ffmpeg version 1.1.git-a127879 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 11 2013 08:12:57 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --prefix=/usr/local/ffmpeg --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm -std=c99 -fno-math-errno' --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --enable-nonfree --enable-libtheora --enable-swscale libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Guessed Channel Layout for Input Stream #0.2 : mono Guessed Channel Layout for Input Stream #0.3 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Split Track Audio Sample.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-05 16:19:36 timecode : 00:00:00;00 Duration: 00:01:05.26, start: -13.881563, bitrate: 14364 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x486, 10302 kb/s, SAR 10:11 DAR 400:297, 29.97 fps, 29.97 tbr, 2997 tbn, 5994 tbc Metadata: creation_time : 2013-02-05 16:19:36 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler timecode : 00:00:00;00 Stream #0:2(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: creation_time : 2013-02-05 16:20:02 handler_name : Apple Alias Data Handler Stream #0:3(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768 kb/s Metadata: creation_time : 2013-02-05 16:20:04 handler_name : Apple Alias Data Handler File '/dev/null' already exists. Overwrite ? [y/N] y using SAR=10/11 [libx264 @ 0x20847e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x20847e0] ratecontrol_init: can't open stats file Output #0, mov, to '/dev/null': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:00:00;00 Stream #0:0(eng): Video: h264, yuv420p, 720x486 [SAR 10:11 DAR 400:297], q=-1--1, pass 1, 2000 kb/s, 90k tbn, 29.97 tbc Metadata: creation_time : 2013-02-05 16:19:36 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height From tylerbwear at gmail.com Mon Feb 11 22:37:37 2013 From: tylerbwear at gmail.com (tyler wear) Date: Mon, 11 Feb 2013 13:37:37 -0800 Subject: [FFmpeg-user] Disable decoder for shared library Message-ID: Hey, I am trying to disable the decoders, but when I add --disable-decoders to the configure line, compilation fails. It works fine when I just want the static libraries but I need the shared ones also. any help would be appreciated. Thanks, Tyler From vvubin at gmail.com Mon Feb 11 23:10:04 2013 From: vvubin at gmail.com (Wu-bin Zhen) Date: Mon, 11 Feb 2013 17:10:04 -0500 Subject: [FFmpeg-user] Converting from h264(yuvj420p) to h264(yuv420p) without transcoding Message-ID: Hello ffmpeg, I have a weird device that only generates h264 video stream with yuv"J"420p pixel format. Unfortunately the chrome browser does not support the pixel format, so I have no choice but transcoding every frame from yuvj420p to yuv420p. It costs a lot of time, and should be lose some quality because each frame is going to be encoded again. I googled that there is an user modified the gpac MP4Box to manipulate VUI property. I remember it is "fullrange" flag. https://github.com/golgol7777/gpac/commit/913c0081d6882a713d66764c43827b6f3d05f925 And it seems the trick is working for some users: https://blendervse.wordpress.com/2012/04/02/waiving-the-fullrange-flag/ My machine is not able to compile his gpac, and the old gpac has some limitations. So I wonder if there is a "ffmpeg" way to change the pixel format without transcoding every frame. I tried "-vcodec copy -pix_fmt=yuv420p" options but it is not working, and the output file still uses the yuv"J"420p pixel format. Any advise will be appreciated. -w From tylerbwear at gmail.com Mon Feb 11 23:16:09 2013 From: tylerbwear at gmail.com (tyler wear) Date: Mon, 11 Feb 2013 14:16:09 -0800 Subject: [FFmpeg-user] Disable decoder for shared library In-Reply-To: References: Message-ID: sorry, the error I'm getting is: | libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_neon' | libavcodec/libavcodec.so: undefined reference to `ff_fft_fixed_calc_neon' | libavcodec/libavcodec.so: undefined reference to `ff_fft_permute_neon' Tyler On Mon, Feb 11, 2013 at 1:37 PM, tyler wear wrote: > Hey, > > I am trying to disable the decoders, but when I add --disable-decoders to > the configure line, compilation fails. It works fine when I just want the > static libraries but I need the shared ones also. > > any help would be appreciated. > > Thanks, > Tyler > -- Tyler B. Wear Qualcomm - Software Engineer From james.darnley at gmail.com Mon Feb 11 23:33:18 2013 From: james.darnley at gmail.com (James Darnley) Date: Mon, 11 Feb 2013 23:33:18 +0100 Subject: [FFmpeg-user] Converting from h264(yuvj420p) to h264(yuv420p) without transcoding In-Reply-To: References: Message-ID: <511971AE.1000809@gmail.com> On 2013-02-11 23:10, Wu-bin Zhen wrote: > Hello ffmpeg, > > I have a weird device that only generates h264 video stream with yuv"J"420p > pixel format. Unfortunately the chrome browser does not support the pixel > format, so I have no choice but transcoding every frame from yuvj420p to > yuv420p. It costs a lot of time, and should be lose some quality because > each frame is going to be encoded again. > > I googled that there is an user modified the gpac MP4Box to manipulate VUI > property. I remember it is "fullrange" flag. > https://github.com/golgol7777/gpac/commit/913c0081d6882a713d66764c43827b6f3d05f925 > > And it seems the trick is working for some users: > https://blendervse.wordpress.com/2012/04/02/waiving-the-fullrange-flag/ > > My machine is not able to compile his gpac, and the old gpac has some > limitations. So I wonder if there is a "ffmpeg" way to change the pixel > format without transcoding every frame. I tried "-vcodec copy > -pix_fmt=yuv420p" options but it is not working, and the output file still > uses the yuv"J"420p pixel format. TO alter the fullrange flag (without encoding) someone would need to write a bitstream filter for ffmpeg, somewhat similar to the mp4toannexb filter. Regardless, if that is true, that is a major issue with chrome. It should play the video even if it doesn't know about the fullrange flag and wouldn't convert to RGB properly. The only issue would be exaggerated contrast. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From vvubin at gmail.com Tue Feb 12 01:15:06 2013 From: vvubin at gmail.com (Wu-bin Zhen) Date: Mon, 11 Feb 2013 19:15:06 -0500 Subject: [FFmpeg-user] Converting from h264(yuvj420p) to h264(yuv420p) without transcoding In-Reply-To: <511971AE.1000809@gmail.com> References: <511971AE.1000809@gmail.com> Message-ID: On Mon, Feb 11, 2013 at 5:33 PM, James Darnley wrote: > On 2013-02-11 23:10, Wu-bin Zhen wrote: > > Hello ffmpeg, > > > > I have a weird device that only generates h264 video stream with > yuv"J"420p > > pixel format. Unfortunately the chrome browser does not support the pixel > > format, so I have no choice but transcoding every frame from yuvj420p to > > yuv420p. It costs a lot of time, and should be lose some quality because > > each frame is going to be encoded again. > > > > I googled that there is an user modified the gpac MP4Box to manipulate > VUI > > property. I remember it is "fullrange" flag. > > > https://github.com/golgol7777/gpac/commit/913c0081d6882a713d66764c43827b6f3d05f925 > > > > And it seems the trick is working for some users: > > https://blendervse.wordpress.com/2012/04/02/waiving-the-fullrange-flag/ > > > > My machine is not able to compile his gpac, and the old gpac has some > > limitations. So I wonder if there is a "ffmpeg" way to change the pixel > > format without transcoding every frame. I tried "-vcodec copy > > -pix_fmt=yuv420p" options but it is not working, and the output file > still > > uses the yuv"J"420p pixel format. > > TO alter the fullrange flag (without encoding) someone would need to > write a bitstream filter for ffmpeg, somewhat similar to the mp4toannexb > filter. > > Thanks. Then is there any open source tool on linux can do something like this? > Regardless, if that is true, that is a major issue with chrome. It > should play the video even if it doesn't know about the fullrange flag > and wouldn't convert to RGB properly. The only issue would be > exaggerated contrast. > > http://code.google.com/p/chromium/issues/detail?id=117368 The pixel format issue seems to be fixed few days ago. But I wonder if and when google will push the fix. Right now I would not put too much hope on something is not publicly available. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From cehoyos at ag.or.at Tue Feb 12 01:59:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 12 Feb 2013 00:59:05 +0000 (UTC) Subject: [FFmpeg-user] Disable decoder for shared library References: Message-ID: tyler wear gmail.com> writes: > sorry, the error I'm getting is: > | libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_neon' > | libavcodec/libavcodec.so: undefined reference to `ff_fft_fixed_calc_neon' > | libavcodec/libavcodec.so: undefined reference to `ff_fft_permute_neon' When you see build problems with "make", please do the following: run make, run make again (you should see identical errors) run "make V=1" (you should see the same error) Please post the complete, uncut console output of the last "make V=1" call. (Please do never post the complete, uncut console output of an initial make call.) And please add your complete configure line. Please do not top-post here, Carl Eugen From bqsjhaha at yahoo.com Tue Feb 12 11:57:26 2013 From: bqsjhaha at yahoo.com (Bqsj Sjbq) Date: Tue, 12 Feb 2013 02:57:26 -0800 (PST) Subject: [FFmpeg-user] can't concatenate the flv file Message-ID: <1360666646.78357.YahooMailNeo@web160606.mail.bf1.yahoo.com> There is a file named input.txt file '/home/1.flv' file '/home/2.flv' I can use the command to Concatenate 1.flv and 2.flv into a mp4 file. ffmpeg -f concat -i input.txt -c copy output.mp4 #there are two files in output.mp4 When i use the following command ffmpeg -i "concat:1.flv|2.flv" -c copy output.mp4 #can run ,but wrong result ,only one file 1.flv in the output.mp4? why? From 23liam at googlemail.com Tue Feb 12 13:49:13 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Tue, 12 Feb 2013 12:49:13 +0000 Subject: [FFmpeg-user] can't concatenate the flv file In-Reply-To: <1360666646.78357.YahooMailNeo@web160606.mail.bf1.yahoo.com> References: <1360666646.78357.YahooMailNeo@web160606.mail.bf1.yahoo.com> Message-ID: The flv container format doesn't support file-level concatenation; only a few container file types do. So the concat protocol won't work on them. The concat demuxer, as its name suggests, demuxes the input streams from their container and then concatenates them, so it doesn't care about what the input container is (and if the codecs are all the same w/ similar characteristics, you can actually concatenate files of different container formats). From dave at dericed.com Tue Feb 12 18:53:27 2013 From: dave at dericed.com (Dave Rice) Date: Tue, 12 Feb 2013 12:53:27 -0500 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error Message-ID: Hi all, I'm producing an ffv1 version 3 test file via this command: ffmpeg -y -f lavfi -i mandelbrot -t 1 -c:v ffv1 -level 3 -strict -2 mandel_ffv1_v3.mov ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 10:28:33 with Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libass --enable-ffplay --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [lavfi @ 0x7fc80183d800] Estimating duration from bitrate, this may be inaccurate Input #0, lavfi, from 'mandelbrot': 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 [ffv1 @ 0x7fc801886c00] Storing alpha plane, this will require a recent FFV1 decoder to playback! [mov @ 0x7fc801863a00] Using MS style video codec tag, the file may be unplayable! Output #0, mov, to 'mandel_ffv1_v3.mov': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: ffv1, bgra, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 12800 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> ffv1) Press [q] to stop, [?] for help frame= 25 fps=3.0 q=0.0 Lsize= 6002kB time=00:00:01.00 bitrate=49166.2kbits/s video:6001kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.013816% When I then try to read the file I get many read_quant_table errors and the file will not play back in ffplay. ffmpeg -i mandel_ffv1_v3.mov -f null - ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 10:28:33 with Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libass --enable-ffplay --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [ffv1 @ 0x7ff1e086ba00] read_quant_table error Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mandel_ffv1_v3.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.63.100 Duration: 00:00:01.00, start: 0.000000, bitrate: 49166 kb/s Stream #0:0(eng): Video: ffv1 (FFV1 / 0x31564646), yuva444p, 640x480, 49159 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc Metadata: handler_name : DataHandler Output #0, null, to 'pipe:': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.63.100 Stream #0:0(eng): Video: rawvideo (Y4[0][8] / 0x8003459), yuva444p, 640x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc Metadata: handler_name : DataHandler Stream mapping: Stream #0:0 -> #0:0 (ffv1 -> rawvideo) Press [q] to stop, [?] for help [ffv1 @ 0x7ff1e086ba00] read_quant_table error Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] read_quant_table error Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x7ff1e086ba00] read_quant_table error Error while decoding stream #0:0: Invalid data found when processing input frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead -inf% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Am I doing something wrong? Dave Rice Archivist | Digital Systems Manager City University of New York | CUNY TV 365 5th Ave New York, NY 10016 From onemda at gmail.com Tue Feb 12 18:58:57 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 12 Feb 2013 17:58:57 +0000 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: References: Message-ID: On 2/12/13, Dave Rice wrote: > Hi all, > > I'm producing an ffv1 version 3 test file via this command: > > ffmpeg -y -f lavfi -i mandelbrot -t 1 -c:v ffv1 -level 3 -strict -2 > mandel_ffv1_v3.mov > ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 12 2013 10:28:33 with Apple clang version 3.1 > (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) > configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared > --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree > --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= > --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame > --enable-libxvid --enable-libfreetype --enable-libass --enable-ffplay > --enable-libopenjpeg > --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' > libavutil 52. 17.101 / 52. 17.101 > libavcodec 54. 91.103 / 54. 91.103 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 37.101 / 3. 37.101 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [lavfi @ 0x7fc80183d800] Estimating duration from bitrate, this may be > inaccurate > Input #0, lavfi, from 'mandelbrot': > 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 > [ffv1 @ 0x7fc801886c00] Storing alpha plane, this will require a recent FFV1 > decoder to playback! > [mov @ 0x7fc801863a00] Using MS style video codec tag, the file may be > unplayable! > Output #0, mov, to 'mandel_ffv1_v3.mov': > Metadata: > encoder : Lavf54.63.100 > Stream #0:0: Video: ffv1, bgra, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 > kb/s, 12800 tbn, 25 tbc > Stream mapping: > Stream #0:0 -> #0:0 (rawvideo -> ffv1) > Press [q] to stop, [?] for help > frame= 25 fps=3.0 q=0.0 Lsize= 6002kB time=00:00:01.00 > bitrate=49166.2kbits/s > video:6001kB audio:0kB subtitle:0 global headers:0kB muxing overhead > 0.013816% > > When I then try to read the file I get many read_quant_table errors and the > file will not play back in ffplay. > > ffmpeg -i mandel_ffv1_v3.mov -f null - > ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 12 2013 10:28:33 with Apple clang version 3.1 > (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) > configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared > --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree > --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= > --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame > --enable-libxvid --enable-libfreetype --enable-libass --enable-ffplay > --enable-libopenjpeg > --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' > libavutil 52. 17.101 / 52. 17.101 > libavcodec 54. 91.103 / 54. 91.103 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 37.101 / 3. 37.101 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [ffv1 @ 0x7ff1e086ba00] read_quant_table error > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mandel_ffv1_v3.mov': > Metadata: > major_brand : qt > minor_version : 512 > compatible_brands: qt > encoder : Lavf54.63.100 > Duration: 00:00:01.00, start: 0.000000, bitrate: 49166 kb/s > Stream #0:0(eng): Video: ffv1 (FFV1 / 0x31564646), yuva444p, 640x480, > 49159 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc > Metadata: > handler_name : DataHandler > Output #0, null, to 'pipe:': > Metadata: > major_brand : qt > minor_version : 512 > compatible_brands: qt > encoder : Lavf54.63.100 > Stream #0:0(eng): Video: rawvideo (Y4[0][8] / 0x8003459), yuva444p, > 640x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc > Metadata: > handler_name : DataHandler > Stream mapping: > Stream #0:0 -> #0:0 (ffv1 -> rawvideo) > Press [q] to stop, [?] for help > [ffv1 @ 0x7ff1e086ba00] read_quant_table error > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] read_quant_table error > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] Cannot decode non-keyframe without valid keyframe > Error while decoding stream #0:0: Invalid data found when processing input > [ffv1 @ 0x7ff1e086ba00] read_quant_table error > Error while decoding stream #0:0: Invalid data found when processing input > frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A > video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead -inf% > Output file is empty, nothing was encoded (check -ss / -t / -frames > parameters if used) > > Am I doing something wrong? I can't reproduce this with HEAD. From charleszivko at gmail.com Tue Feb 12 19:12:39 2013 From: charleszivko at gmail.com (Charles Zivko) Date: Tue, 12 Feb 2013 10:12:39 -0800 Subject: [FFmpeg-user] auto sync 2 audio waveforms Message-ID: Hello, Is it possible with any feature in ffmpeg given audio file A and audio file B to get a timestamp from each where their waveforms match in order to calculate the offset to get them to align and sync. Currently I have two files and they are off by about 1 - 2 seconds but need to calculate this automatically. Or if anyone is aware of any other library that may help me achieve this either programmatically or via CLI that would be great. Thanks, Charles. From tylerbwear at gmail.com Tue Feb 12 19:26:00 2013 From: tylerbwear at gmail.com (tyler wear) Date: Tue, 12 Feb 2013 10:26:00 -0800 Subject: [FFmpeg-user] Disable decoder for shared library In-Reply-To: References: Message-ID: On Mon, Feb 11, 2013 at 4:59 PM, Carl Eugen Hoyos wrote: > tyler wear gmail.com> writes: > > > sorry, the error I'm getting is: > > | libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_neon' > > | libavcodec/libavcodec.so: undefined reference to > `ff_fft_fixed_calc_neon' > > | libavcodec/libavcodec.so: undefined reference to `ff_fft_permute_neon' > > When you see build problems with "make", please do > the following: > run make, run make again (you should see identical errors) > run "make V=1" (you should see the same error) > Please post the complete, uncut console output of the > last "make V=1" call. > (Please do never post the complete, uncut console output > of an initial make call.) > > And please add your complete configure line. > > Please do not top-post here, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Full print from make V=1 /pkg/asw/compilers/codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi-gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--as-needed -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample -o ffprobe_g ffprobe.o cmdutils.o -lavformat -lavcodec -lavutil -lm -pthread -lrt libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_neon' libavcodec/libavcodec.so: undefined reference to `ff_fft_fixed_calc_neon' libavcodec/libavcodec.so: undefined reference to `ff_fft_permute_neon' collect2: ld returned 1 exit status make: *** [ffprobe_g] Error 1 full configure command: ./configure --enable-cross-compile --cross-prefix=/pkg/asw/compilers/codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi- --cc=/pkg/asw/compilers/codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi-gcc --arch=arm --target-os=linux --enable-armv5te --disable-armv6 --disable-mmx --enable-shared --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-avdevice --disable-swresample --disable-swscale --disable-postproc --enable-small --disable-avfilter --disable-debug --disable-ffserver --disable-ffplay --extra-cflags=-fPIC --enable-gpl --disable-network --disable-zlib --disable-ffmpeg --disable-encoders --disable-decoders Tyler From dave at dericed.com Tue Feb 12 19:34:33 2013 From: dave at dericed.com (Dave Rice) Date: Tue, 12 Feb 2013 13:34:33 -0500 Subject: [FFmpeg-user] auto sync 2 audio waveforms In-Reply-To: References: Message-ID: <66576EDC-0D78-466D-885E-17C97095BC2C@dericed.com> Hi Charles, On Feb 12, 2013, at 1:12 PM, Charles Zivko wrote: > Is it possible with any feature in ffmpeg given audio file A and audio file B to get a timestamp from each where their waveforms match in order to calculate the offset to get them to align and sync. Currently I have two files and they are off by about 1 - 2 seconds but need to calculate this automatically. > > Or if anyone is aware of any other library that may help me achieve this either programmatically or via CLI that would be great. I remember hearing development of a utility called PCMAlign but I'm uncertain if it was ever released. Dave Rice From i.yaropolov at rian.ru Tue Feb 12 10:31:56 2013 From: i.yaropolov at rian.ru (i.yaropolov at rian.ru) Date: Tue, 12 Feb 2013 09:31:56 +0000 Subject: [FFmpeg-user] Pixel Format 10-bit YUV (v210) and 10-bit RGB (r210) Message-ID: <7E8465492F04F0478F9611F7639A5DEE04BBAA@exchange-mb2.msk.rian> Hello Is it possible to add additional Pixel Format 10-bit YUV (v210) and 10-bit RGB (r210) to ffmpeg? A problem description is below: I am trying to capture Decklink Card. ffmpeg -list_options true -f dshow -i video="Decklink Video Capture" DirectShow video device options Pin "Capture" pixel_format=uyvy422 min s=720x486 fps=29.97 max s=720x486 fps=29.97 pixel_format=uyvy422 min s=720x576 fps=25 max s=720x576 fps=25 unknown compression type 0x43594448 min s=1920x1080 fps=25 max s=1920x1080 fps=25 unknown compression type 0x43594448 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97 unknown compression type 0x43594448 min s=1280x720 fps=50 max s=1280x720 fps=50 unknown compression type 0x43594448 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402 unknown compression type 0x30313276 min s=720x486 fps=29.97 max s=720x486 fps=29.97 unknown compression type 0x30313276 min s=720x576 fps=25 max s=720x576 fps=25 unknown compression type 0x30313276 min s=1920x1080 fps=25 max s=1920x1080 fps=25 unknown compression type 0x30313276 min s=1920x1080 fps=29.97 max s=1920x1080 fps=29.97 unknown compression type 0x30313276 min s=1280x720 fps=50 max s=1280x720 fps=50 unknown compression type 0x30313276 min s=1280x720 fps=59.9402 max s=1280x720 fps=59.9402 The problem is with unknown compression type - pixel_format!!!! Can you help with? Below is answer from BlackMagic support: Thanks for your inquiry. The DeckLink Video Capture supports pixel formats native to DeckLink capture devices. The supported pixel formats are 8-bit YUV (UYVY), 10-bit YUV (v210) and 10-bit RGB (r210). ffmpeg -pix_fmts Pixel formats: I.... = Supported Input format for conversion .O... = Supported Output format for conversion ..H.. = Hardware accelerated format ...P. = Paletted format ....B = Bitstream format FLAGS NAME NB_COMPONENTS BITS_PER_PIX ----- IO... yuv420p 3 12 IO... yuyv422 3 16 IO... rgb24 3 24 IO... bgr24 3 24 IO... yuv422p 3 16 IO... yuv444p 3 24 IO... yuv410p 3 9 IO... yuv411p 3 12 IO... gray 1 8 IO..B monow 1 1 IO..B monob 1 1 I..P. pal8 1 8 IO... yuvj420p 3 12 IO... yuvj422p 3 16 IO... yuvj444p 3 24 ..H.. xvmcmc 0 0 ..H.. xvmcidct 0 0 IO... uyvy422 3 16 ..... uyyvyy411 3 12 IO... bgr8 3 8 .O..B bgr4 3 4 IO... bgr4_byte 3 4 IO... rgb8 3 8 .O..B rgb4 3 4 IO... rgb4_byte 3 4 IO... nv12 3 12 IO... nv21 3 12 IO... argb 4 32 IO... rgba 4 32 IO... abgr 4 32 IO... bgra 4 32 IO... gray16be 1 16 IO... gray16le 1 16 IO... yuv440p 3 16 IO... yuvj440p 3 16 IO... yuva420p 4 20 ..H.. vdpau_h264 0 0 ..H.. vdpau_mpeg1 0 0 ..H.. vdpau_mpeg2 0 0 ..H.. vdpau_wmv3 0 0 ..H.. vdpau_vc1 0 0 IO... rgb48be 3 48 IO... rgb48le 3 48 IO... rgb565be 3 16 IO... rgb565le 3 16 IO... rgb555be 3 15 IO... rgb555le 3 15 IO... bgr565be 3 16 IO... bgr565le 3 16 IO... bgr555be 3 15 IO... bgr555le 3 15 ..H.. vaapi_moco 0 0 ..H.. vaapi_idct 0 0 ..H.. vaapi_vld 0 0 IO... yuv420p16le 3 24 IO... yuv420p16be 3 24 IO... yuv422p16le 3 32 IO... yuv422p16be 3 32 IO... yuv444p16le 3 48 IO... yuv444p16be 3 48 ..H.. vdpau_mpeg4 0 0 ..H.. dxva2_vld 0 0 IO... rgb444le 3 12 IO... rgb444be 3 12 IO... bgr444le 3 12 IO... bgr444be 3 12 I.... gray8a 2 16 IO... bgr48be 3 48 IO... bgr48le 3 48 IO... yuv420p9be 3 13 IO... yuv420p9le 3 13 IO... yuv420p10be 3 15 IO... yuv420p10le 3 15 IO... yuv422p10be 3 20 IO... yuv422p10le 3 20 IO... yuv444p9be 3 27 IO... yuv444p9le 3 27 IO... yuv444p10be 3 30 IO... yuv444p10le 3 30 IO... yuv422p9be 3 18 IO... yuv422p9le 3 18 ..H.. vda_vld 0 0 IO... gbrp 3 24 IO... gbrp9be 3 27 IO... gbrp9le 3 27 IO... gbrp10be 3 30 IO... gbrp10le 3 30 I.... gbrp16be 3 48 I.... gbrp16le 3 48 IO... yuva420p9be 4 22 IO... yuva420p9le 4 22 IO... yuva422p9be 4 27 IO... yuva422p9le 4 27 IO... yuva444p9be 4 36 IO... yuva444p9le 4 36 IO... yuva420p10be 4 25 IO... yuva420p10le 4 25 IO... yuva422p10be 4 30 IO... yuva422p10le 4 30 IO... yuva444p10be 4 40 IO... yuva444p10le 4 40 IO... yuva420p16be 4 40 IO... yuva420p16le 4 40 IO... yuva422p16be 4 48 IO... yuva422p16le 4 48 IO... yuva444p16be 4 64 IO... yuva444p16le 4 64 ..H.. vdpau 0 0 I.... rgba64be 4 64 I.... rgba64le 4 64 ..... bgra64be 4 64 ..... bgra64le 4 64 IO... 0rgb 3 24 IO... rgb0 3 24 IO... 0bgr 3 24 IO... bgr0 3 24 IO... yuva444p 4 32 IO... yuva422p 4 24 IO... yuv420p12be 3 18 IO... yuv420p12le 3 18 IO... yuv420p14be 3 21 IO... yuv420p14le 3 21 IO... yuv422p12be 3 24 IO... yuv422p12le 3 24 IO... yuv422p14be 3 28 IO... yuv422p14le 3 28 IO... yuv444p12be 3 36 IO... yuv444p12le 3 36 IO... yuv444p14be 3 42 IO... yuv444p14le 3 42 IO... gbrp12be 3 36 IO... gbrp12le 3 36 IO... gbrp14be 3 42 IO... gbrp14le 3 42 c:\ffmpeg\bin> Looking forward to hearing from you Regards, Ilya Yaropolov ________________________________ ?????????? ? ?????? ????????? ??????????? ????? ? ????????? ? ???? ????????????? ????????????? ??? ????????????? ? ????????????????? ????????????? ???????????? ????????????. ????????????? ??????? ????????? ? ???????? ? ???? ?? ???????????? ????? ?? ???????????. ???? ?? ?? ????????? ??????????? ???????????, ?? ?? ?????? ??????, ????????????, ??????????, ?????????? ??? ???? ??????? ?????????????? ??? ????????? ? ???????? ? ????. ??????????, ???? ?? ???????? ??? ????????? ?? ??????, ????????? ??? ????? ? ??????? ??? ????? ????????? ? ???????? ? ???? ?? ????? ???????. ???????. This e-mail and any files sent with it are confidential and intended solely for the use of the named addressee. Use of this e-mail or any attachments for non-work-related purposes is strictly prohibited. If you are not the intended recipient of this e-mail, do not read, use, copy, resend or otherwise distribute the e-mail or any files sent with it. If you received this e-mail by mistake, please notify the sender by e-mail and delete all copies of the e-mail and attachments from your system. Thank you. From charleszivko at gmail.com Tue Feb 12 20:10:29 2013 From: charleszivko at gmail.com (Charles Zivko) Date: Tue, 12 Feb 2013 11:10:29 -0800 Subject: [FFmpeg-user] auto sync 2 audio waveforms In-Reply-To: <66576EDC-0D78-466D-885E-17C97095BC2C@dericed.com> References: <66576EDC-0D78-466D-885E-17C97095BC2C@dericed.com> Message-ID: Thanks Dave! Googling around for PCMAlign has not returned any fruitful results so far. Charles. On Feb 12, 2013, at 10:34 AM, Dave Rice wrote: Hi Charles, On Feb 12, 2013, at 1:12 PM, Charles Zivko wrote: > Is it possible with any feature in ffmpeg given audio file A and audio file B to get a timestamp from each where their waveforms match in order to calculate the offset to get them to align and sync. Currently I have two files and they are off by about 1 - 2 seconds but need to calculate this automatically. > > Or if anyone is aware of any other library that may help me achieve this either programmatically or via CLI that would be great. I remember hearing development of a utility called PCMAlign but I'm uncertain if it was ever released. Dave Rice _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From pb at das-werkstatt.com Tue Feb 12 21:08:35 2013 From: pb at das-werkstatt.com (Peter B.) Date: Tue, 12 Feb 2013 21:08:35 +0100 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: References: Message-ID: <511AA143.6070400@das-werkstatt.com> On 02/12/2013 06:58 PM, Paul B Mahol wrote: > I can't reproduce this with HEAD. I can reproduce it with current git HEAD: //---------------------------------- $ ffmpeg_git -y -f lavfi -i mandelbrot -t 1 -c:v ffv1 -level 3 -strict -2 mandel_ffv1_v3.mov //---------------------------------- ffmpeg version N-49843-g1ecce26 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 20:44:43 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [lavfi @ 0x2f161e0] Estimating duration from bitrate, this may be inaccurate Input #0, lavfi, from 'mandelbrot': 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 [ffv1 @ 0x2f33f80] Storing alpha plane, this will require a recent FFV1 decoder to playback! [mov @ 0x2f33780] Using MS style video codec tag, the file may be unplayable! Output #0, mov, to 'mandel_ffv1_v3.mov': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: ffv1, bgra, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 12800 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> ffv1) Press [q] to stop, [?] for help frame= 25 fps=0.0 q=0.0 Lsize= 6002kB time=00:00:01.00 bitrate=49166.2kbits/s video:6001kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.013816% //---------------------------------- $ ffmpeg_git -i mandel_ffv1_v3.mov -f null - //---------------------------------- ffmpeg version N-49843-g1ecce26 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 20:44:43 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [ffv1 @ 0x1d247a0] read_quant_table error Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mandel_ffv1_v3.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.63.100 Duration: 00:00:01.00, start: 0.000000, bitrate: 49166 kb/s Stream #0:0(eng): Video: ffv1 (FFV1 / 0x31564646), yuva444p, 640x480, 49159 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc Metadata: handler_name : DataHandler Output #0, null, to 'pipe:': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.63.100 Stream #0:0(eng): Video: rawvideo (Y4[0][8] / 0x8003459), yuva444p, 640x480, q=2-31, 200 kb/s, 90k tbn, 25 tbc Metadata: handler_name : DataHandler Stream mapping: Stream #0:0 -> #0:0 (ffv1 -> rawvideo) Press [q] to stop, [?] for help [ffv1 @ 0x1d247a0] read_quant_table error Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] read_quant_table error Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] Cannot decode non-keyframe without valid keyframe Error while decoding stream #0:0: Invalid data found when processing input [ffv1 @ 0x1d247a0] read_quant_table error Error while decoding stream #0:0: Invalid data found when processing input frame= 0 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.00 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead -inf% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Also ffprobe returns a "read_quant_table error": //---------------------------------- $ ffprobe_git mandel_ffv1_v3.mov //---------------------------------- ffprobe version N-49843-g1ecce26 Copyright (c) 2007-2013 the FFmpeg developers built on Feb 12 2013 20:44:43 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [ffv1 @ 0x2f14c80] read_quant_table error Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mandel_ffv1_v3.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.63.100 Duration: 00:00:01.00, start: 0.000000, bitrate: 49166 kb/s Stream #0:0(eng): Video: ffv1 (FFV1 / 0x31564646), yuva444p, 640x480, 49159 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc Metadata: handler_name : DataHandler ------------ I've tried to use AVI as output container (instead of MOV) and it works fine, btw. (also playback with ffprobe (git HEAD) is working). ------------ What I found interesting is, that the initial encoding says that its output is: "FFV1, bgra" - which matches the input source which is rawvideo "RGBA, rgba" But when trying to open the output video, both ffmpeg and ffprobe say it's "ffv1, yuva444p". Regards, Pb From onemda at gmail.com Tue Feb 12 21:14:40 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 12 Feb 2013 20:14:40 +0000 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: <511AA143.6070400@das-werkstatt.com> References: <511AA143.6070400@das-werkstatt.com> Message-ID: On 2/12/13, Peter B. wrote: > On 02/12/2013 06:58 PM, Paul B Mahol wrote: >> I can't reproduce this with HEAD. > I can reproduce it with current git HEAD: > Yes me too. I used nut for some reason first time.... From cehoyos at ag.or.at Tue Feb 12 23:32:09 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 12 Feb 2013 22:32:09 +0000 (UTC) Subject: [FFmpeg-user] Pixel Format 10-bit YUV (v210) and 10-bit RGB (r210) References: <7E8465492F04F0478F9611F7639A5DEE04BBAA@exchange-mb2.msk.rian> Message-ID: rian.ru> writes: > Is it possible to add additional Pixel Format > 10-bit YUV (v210) and 10-bit RGB (r210) to ffmpeg? > > A problem description is below: > > I am trying to capture Decklink Card. > ffmpeg -list_options true -f dshow -i video="Decklink Video Capture" Complete, uncut console output missing / please test latest git head before reporting problems. > This e-mail and any files sent with it are confidential Please note that this sentence makes no sense in an email sent to a public mailing list (that is mirrored many times on the internet). Carl Eugen From cehoyos at ag.or.at Tue Feb 12 23:35:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 12 Feb 2013 22:35:50 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffv1_version_3_read=5Fquant=5Ftable_error?= References: Message-ID: Dave Rice dericed.com> writes: > ffmpeg -y -f lavfi -i mandelbrot -t 1 -c:v ffv1 > -level 3 -strict -2 mandel_ffv1_v3.mov This is a duplicate of ticket #2202, I sent a patch to the mailing list, it is still waiting for somebody who can test with AVID dnxhd decoder installed. Carl Eugen From pb at das-werkstatt.com Wed Feb 13 00:56:33 2013 From: pb at das-werkstatt.com (Peter B.) Date: Wed, 13 Feb 2013 00:56:33 +0100 Subject: [FFmpeg-user] RGB uncompressed: Which format to use? Message-ID: <511AD6B1.1040908@das-werkstatt.com> Hello, I'm trying to convert the SGI image sequences from SVT (from VQEG's FTP [1]) to video files and convert them to different bits-per-pixel RGB pix_fmts (Source is rgb48be). Is there any uncompressed codec and container capable of containing the following pix_fmts? PIX_FMTS_RGB8="rgb0 rgb24 bgr0 bgr24" PIX_FMTS_RGB16="bgr48le bgr48be rgb48le rgb48be" I've tried using vcodec=rawvideo and AVI as container (*), but with rgb48be trying to ffplay the resulting file displays the following error message: //------------------------------ $ ffplay_git test.avi //------------------------------ ffplay version N-49843-g1ecce26 Copyright (c) 2003-2013 the FFmpeg developers built on Feb 12 2013 20:44:43 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-bzlib --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-zlib --enable-libopenjpeg --enable-decoder=png --enable-encoder=png --enable-libfreetype --enable-libschroedinger libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [rawvideo @ 0x1b74b20] Pixel format was not specified and cannot be detected Last message repeated 1 times Input #0, avi, from 'test.avi': Metadata: encoder : Lavf54.63.100 Duration: 00:00:20.00, start: 0.000000, bitrate: 1105926 kb/s Stream #0:0: Video: rawvideo, 1280x720, 25 tbr, 25 tbn, 25 tbc [rawvideo @ 0x1b74b20] Pixel format was not specified and cannot be detected test.avi: could not open codecs -9223372036854774784.00 A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 //------------------------------ (*) The file was encoded using the following commandline: $ ffmpeg_git -f image2 -start_number 7111 -i 1_CrowdRun_720p50_CgrLevels_SINC_FILTER_SVTdec05_/%05d.sgi -an -vcodec rawvideo -f avi test.avi Thanks for any hints, Pb == References: [1] ftp://vqeg.its.bldrdoc.gov/HDTV/SVT_MultiFormat/ From dave at dericed.com Wed Feb 13 01:08:28 2013 From: dave at dericed.com (Dave Rice) Date: Tue, 12 Feb 2013 19:08:28 -0500 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: References: Message-ID: On Feb 12, 2013, at 5:35 PM, Carl Eugen Hoyos wrote: > Dave Rice dericed.com> writes: > >> ffmpeg -y -f lavfi -i mandelbrot -t 1 -c:v ffv1 >> -level 3 -strict -2 mandel_ffv1_v3.mov > > This is a duplicate of ticket #2202, I sent a patch > to the mailing list, it is still waiting for somebody > who can test with AVID dnxhd decoder installed. I have ffmpeg compiled with your patch and the AVID dnxhd quicktime component installed. What is the test? Dave Rice From tinker123 at gmail.com Wed Feb 13 01:13:17 2013 From: tinker123 at gmail.com (Steve) Date: Tue, 12 Feb 2013 19:13:17 -0500 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 In-Reply-To: References: Message-ID: Hi Carl, Before I go to the trouble of learning how to compile ffmpeg and distribute in my system myself I thought I would update my system ( Kubuntu 11.10 ) and give it one last try, as well as report back to make sure I am using ffmpeg correctly to make an mp4 clip. Here are the contents of my directory starting off: ==================================================== ~/Downloads/BMARchive/temp$ ls -l total 419472 -rwxrwxrwx 1 steve steve 429527887 2012-11-10 07:16 input.mp4 -rwxrwxrwx 1 steve steve 177 2013-02-12 18:47 notes.txt ~/Downloads/BMARchive/temp$ ==================================================== Here is the command I used: ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy output.mp4 Here is the output of that command: ~/Downloads/BMARchive/temp$ ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy output.mp4 ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, Copyright (c) 2000-2011 the Libav developers built on Jan 24 2013 19:25:26 with gcc 4.6.1 configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static WARNING: library configuration mismatch avutil configuration: --extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avcodec configuration: --extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avformat configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avdevice configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avfilter configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay swscale configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay postproc configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavutil 51. 7. 0 / 51. 7. 0 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 3. 0 / 53. 3. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 52. 0. 0 / 52. 0. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isom creation_time : 2012-11-10 07:11:19 Duration: 00:57:51.40, start: 0.000000, bitrate: 989 kb/s Stream #0.0(und): Video: h264 (High), yuv420p, 720x404, 857 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc Metadata: creation_time : 2012-11-10 06:47:49 Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 127 kb/s Metadata: creation_time : 2012-11-10 07:11:34 Output #0, mp4, to 'output.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isom creation_time : 2012-11-10 07:11:19 encoder : Lavf53.3.0 Stream #0.0(und): Video: libx264, yuv420p, 720x404, q=2-31, 857 kb/s, 30k tbn, 29.97 tbc Metadata: creation_time : 2012-11-10 06:47:49 Stream #0.1(und): Audio: libfaac, 48000 Hz, stereo, 127 kb/s Metadata: creation_time : 2012-11-10 07:11:34 Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press ctrl-c to stop encoding frame= 0 fps= 0 q=-1.0 Lsize= 0kB time=10000000000.00 bitrate= 0.0kbits/s video:0kB audio:0kB global headers:0kB muxing overhead inf% :~/Downloads/BMARchive/temp$ Here are the directory contents afterward: ~/Downloads/BMARchive/temp$ ls -l total 419476 -rwxrwxrwx 1 steve steve 429527887 2012-11-10 07:16 input.mp4 -rwxrwxrwx 1 steve steve 177 2013-02-12 18:47 notes.txt -rwxrwxrwx 1 steve steve 259 2013-02-12 19:05 output.mp4 ~/Downloads/BMARchive/temp$ Lastly, here is the output when I try to play it with VLC: ~/Downloads/BMARchive/temp$ vlc output.mp4 VLC media player 1.1.12 The Luggage (revision exported) Warning: call to srand(1360714101) Warning: call to rand() Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x9cb6914] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. Blocked: call to setlocale(6, "") Warning: call to srand(1360714101) Warning: call to rand() Warning: call to srand(1360714101) Warning: call to rand() Warning: call to srand(1360714101) Warning: call to rand() Warning: call to srand(1360714101) Warning: call to rand() TagLib: MP4: No audio tracks Blocked: call to setlocale(6, "") [0xa05bb34] mp4 demux error: cannot find any /moov/trak [0xa05bb34] es demux error: cannot peek TagLib: MP4: No audio tracks [0x9d6787c] mp4 demux error: cannot find any /moov/trak [0x9d6787c] es demux error: cannot peek TagLib: MP4: No audio tracks ~/Downloads/BMARchive/temp$ Here is the ouput for ffmpeg -version ~/Downloads/BMARchive/temp$ ffmpeg -version ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, Copyright (c) 2000-2011 the Libav developers built on Jan 24 2013 19:25:26 with gcc 4.6.1 configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static WARNING: library configuration mismatch avutil configuration: --extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avcodec configuration: --extra-version='4:0.7.6ubuntu0.11.10.3+medibuntu1' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdirac --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libopencore-amrnb --enable-version3 --enable-libopencore-amrwb --enable-version3 --enable-libvo-aacenc --enable-version3 --enable-libvo-amrwbenc --enable-version3 --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avformat configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avdevice configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay avfilter configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay swscale configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay postproc configuration: --extra-version='4:0.7.6-0ubuntu0.11.10.3' --arch=i386 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay libavutil 51. 7. 0 / 51. 7. 0 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 3. 0 / 53. 3. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 52. 0. 0 / 52. 0. 0 ffmpeg 0.7.6-4:0.7.6-0ubuntu0.11.10.3 libavutil 51. 7. 0 / 51. 7. 0 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 3. 0 / 53. 3. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 52. 0. 0 / 52. 0. 0 ~/Downloads/BMARchive/temp$ Please let me know if the issue is something other than having a bad copy of ffmpeg Thanks Steve From cehoyos at ag.or.at Wed Feb 13 01:24:04 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 13 Feb 2013 00:24:04 +0000 (UTC) Subject: [FFmpeg-user] RGB uncompressed: Which format to use? References: <511AD6B1.1040908@das-werkstatt.com> Message-ID: Peter B. das-werkstatt.com> writes: > Is there any uncompressed codec and container capable > of containing the following pix_fmts? > PIX_FMTS_RGB8="rgb0 rgb24 bgr0 bgr24" > PIX_FMTS_RGB16="bgr48le bgr48be rgb48le rgb48be" > > I've tried using vcodec=rawvideo and AVI as > container (*), but with rgb48be nut should allow you to save all rawvideo formats. (I suspect avi is older than rgb48 and in any case, it only supports a limited set of rawvideo formats.) Carl Eugen From cehoyos at ag.or.at Wed Feb 13 01:26:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 13 Feb 2013 00:26:56 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffv1_version_3_read=5Fquant=5Ftable_error?= References: Message-ID: Dave Rice dericed.com> writes: > > This is a duplicate of ticket #2202, I sent a patch > > to the mailing list, it is still waiting for somebody > > who can test with AVID dnxhd decoder installed. > > I have ffmpeg compiled with your patch and the AVID > dnxhd quicktime component installed. What is the test? Encode the sample from ticket #2190 to dnxhd both with and without my patch (and verify that the files are different: one should contain a fiel atom, one not). The question is if both can be decoded with QuickTime. Thank you! Carl Eugen From lou at lrcd.com Wed Feb 13 01:32:41 2013 From: lou at lrcd.com (Lou) Date: Tue, 12 Feb 2013 15:32:41 -0900 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 In-Reply-To: References: Message-ID: <20130212153241.1ae96903@lrcd.com> On Tue, 12 Feb 2013 19:13:17 -0500 Steve wrote: > ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, Copyright (c) 2000-2011 > the Libav developers This is not ffmpeg from FFmpeg. See: http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html http://stackoverflow.com/a/9477756/1109017 > Please let me know if the issue is something other than having a bad > copy of ffmpeg That is an important issue. Upstream for this ffmpeg is not from the FFmpeg project. I know it is confusing, but this is the result of others (Libav and Debian/Ubuntu specifically) misrepresenting the name "ffmpeg". Please compile ffmpeg if you want help here, or if that is not a possibility you can use a static build from "burek" or "relaxed": http://ffmpeg.org/download.html#LinuxBuilds From cehoyos at ag.or.at Wed Feb 13 01:38:07 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 13 Feb 2013 00:38:07 +0000 (UTC) Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 References: Message-ID: Steve gmail.com> writes: > ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, > Copyright (c) 2000-2011 the Libav developers This is an intentionally broken version of FFmpeg. It contains several hundred known bugs, some of them are security relevant, please understand that we therefore cannot support this version. While in theory all versions from http://ffmpeg.org/download.html should be supported, we strongly recommend using the git snapshot, it contains more features and less bugs than any release. (Or in other words: Please understand that time is the only limiting factor both when developing FFmpeg and when offering user support. Imo, it makes much more sense to use the limited time testing supported versions than versions that are known - and intended - to be broken anyways.) Carl Eugen From h.reindl at thelounge.net Wed Feb 13 01:44:10 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 13 Feb 2013 01:44:10 +0100 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 In-Reply-To: References: Message-ID: <511AE1DA.6090709@thelounge.net> Am 13.02.2013 01:38, schrieb Carl Eugen Hoyos: > Steve gmail.com> writes: > >> ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, >> Copyright (c) 2000-2011 the Libav developers > > This is an intentionally broken version of FFmpeg to say it clear: Libav != ffmpeg, it is a fork of people even said in the public "ffmpeg is no longer developed" and some distributions like ubuntu does NOT ship ffmpeg at all -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From dave at dericed.com Wed Feb 13 01:48:03 2013 From: dave at dericed.com (Dave Rice) Date: Tue, 12 Feb 2013 19:48:03 -0500 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: References: Message-ID: On Feb 12, 2013, at 7:26 PM, Carl Eugen Hoyos wrote: > Dave Rice dericed.com> writes: > >>> This is a duplicate of ticket #2202, I sent a patch >>> to the mailing list, it is still waiting for somebody >>> who can test with AVID dnxhd decoder installed. >> >> I have ffmpeg compiled with your patch and the AVID >> dnxhd quicktime component installed. What is the test? > > Encode the sample from ticket #2190 to dnxhd both with > and without my patch With patch: ./ffmpeg -i clip.yuv -c:v dnxhd -s 1920x1080 -b:v 175M with_patch.mov ffmpeg version N-49846-ge1219cd Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 19:06:28 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [yuv4mpegpipe @ 0x7f88e400f200] Estimating duration from bitrate, this may be inaccurate Input #0, yuv4mpegpipe, from 'clip.yuv': Duration: N/A, bitrate: N/A Stream #0:0: Video: rawvideo (Y41B / 0x42313459), yuv411p, 720x480, SAR 10:11 DAR 15:11, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Output #0, mov, to 'with_patch.mov': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080 [SAR 135:176 DAR 15:11], q=2-1024, 175000 kb/s, 30k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> dnxhd) Press [q] to stop, [?] for help frame= 3 fps=0.0 q=1.0 Lsize= 2689kB time=00:00:00.10 bitrate=220060.1kbits/s video:2688kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.035967% Without patch: ffmpeg -i clip.yuv -c:v dnxhd -s 1920x1080 -b:v 175M without_patch.mov ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 19:07:29 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [yuv4mpegpipe @ 0x7fc768836e00] Estimating duration from bitrate, this may be inaccurate Input #0, yuv4mpegpipe, from 'clip.yuv': Duration: N/A, bitrate: N/A Stream #0:0: Video: rawvideo (Y41B / 0x42313459), yuv411p, 720x480, SAR 10:11 DAR 15:11, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Output #0, mov, to 'without_patch.mov': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080 [SAR 135:176 DAR 15:11], q=2-1024, 175000 kb/s, 30k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> dnxhd) Press [q] to stop, [?] for help frame= 3 fps=0.0 q=1.0 Lsize= 2689kB time=00:00:00.10 bitrate=220059.3kbits/s video:2688kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.035604% > (and verify that the files are > different: one should contain a fiel atom, one not). This is true. I can find the fiel atom in with_patch.mov but not in without_patch.mov, but I am only discovering this with a hexdump of each file. Dumpster doesn't reveal the fiel atom, nor does mediainfo --inform='Details;1'. Is there another atom parser to use? > The question is if both can be decoded with QuickTime. Both appear to operate appropriately and identically within QuickTime 7.6 and QuickTime X. > Thank you! Thanks too, Dave From cehoyos at ag.or.at Wed Feb 13 01:50:52 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 13 Feb 2013 00:50:52 +0000 (UTC) Subject: [FFmpeg-user] Disable decoder for shared library References: Message-ID: tyler wear gmail.com> writes: > libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_neon' > libavcodec/libavcodec.so: undefined reference to `ff_fft_fixed_calc_neon' > libavcodec/libavcodec.so: undefined reference to `ff_fft_permute_neon' I know this isn't your fault, but all ia32 and intel64 compilers / linkers I ever tested reported in which object files they found unresolved symbols... > collect2: ld returned 1 exit status > make: *** [ffprobe_g] Error 1 > > full configure command: > > ./configure --enable-cross-compile > --cross-prefix=.../codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi- > --cc=.../codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi-gcc (100% unrelated: Is it really necessary to specify both a cross-prefix and an identical complete path to gcc? I never used cross-compilation.) > --arch=arm --target-os=linux --enable-armv5te --disable-armv6 > --disable-mmx --enable-shared --disable-doc --disable-htmlpages > --disable-manpages --disable-podpages --disable-txtpages > --disable-avdevice --disable-swresample --disable-swscale > --disable-postproc --enable-small --disable-avfilter --disable-debug > --disable-ffserver --disable-ffplay --extra-cflags=-fPIC > --enable-gpl --disable-network --disable-zlib > --disable-ffmpeg --disable-encoders --disable-decoders It is absolutely possible (and even likely) that there is a bug, but since I honestly don't see how this configure line makes any sense and I cannot reproduce the problem on intel64, I suggest you simply add --enable-fft. If you want to fix this yourself, search for the file in libavcodec/arm that is missing an "#if CONFIG_FFT" and add it there, don't forget to send a patch. Carl Eugen From cehoyos at ag.or.at Wed Feb 13 02:04:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 13 Feb 2013 01:04:49 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?ffv1_version_3_read=5Fquant=5Ftable_error?= References: Message-ID: Dave Rice dericed.com> writes: > > (and verify that the files are > > different: one should contain a fiel atom, one not). > > This is true. I can find the fiel atom in with_patch.mov > but not in without_patch.mov, but I am only discovering > this with a hexdump of each file. Dumpster doesn't reveal > the fiel atom, nor does mediainfo > --inform='Details;1'. Is there another atom parser to use? You can remove the comment ("//") in front of #define DEBUG on top of libavformat/mov.c and use -loglevel something but I prefer hexdump -C (I thought ticket #1881 was from you, but I was wrong: It shows that at least Dumpster isn't always useful.) > > The question is if both can be decoded with QuickTime. > > Both appear to operate appropriately and identically > within QuickTime 7.6 and QuickTime X. If you could do one more test, search for a svq3 file - Vertical400kbit.sorenson3.mov - remux it with unpatched FFmpeg and verify that video still plays with QuickTime, then use my patch and replace movenc.c line 1135 ("if (track->enc->field_order != AV_FIELD_UNKNOWN)") with something like "track->enc->field_order = AV_FIELD_BB" and remux again. If the file changed but still decodes, the patch should really be sufficiently tested;-) Thank you, Carl Eugen From tinker123 at gmail.com Wed Feb 13 02:10:34 2013 From: tinker123 at gmail.com (Steve) Date: Tue, 12 Feb 2013 20:10:34 -0500 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 In-Reply-To: <20130212153241.1ae96903@lrcd.com> References: <20130212153241.1ae96903@lrcd.com> Message-ID: On Tue, Feb 12, 2013 at 7:32 PM, Lou wrote: > On Tue, 12 Feb 2013 19:13:17 -0500 > Steve wrote: > >> ffmpeg version 0.7.6-4:0.7.6-0ubuntu0.11.10.3, Copyright (c) 2000-2011 >> the Libav developers > > This is not ffmpeg from FFmpeg. See: > > http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html > http://stackoverflow.com/a/9477756/1109017 THanks > >> Please let me know if the issue is something other than having a bad >> copy of ffmpeg > > That is an important issue. Upstream for this ffmpeg is not from the > FFmpeg project. I know it is confusing, but this is the result of > others (Libav and Debian/Ubuntu specifically) misrepresenting the > name "ffmpeg". > > Please compile ffmpeg if you want help here, or if that is not a > possibility you can use a static build from "burek" or "relaxed": > > http://ffmpeg.org/download.html#LinuxBuilds Thanks, it has been a while since I dealt with C. I will give it a shot this weekend. Steve From dave at dericed.com Wed Feb 13 02:51:19 2013 From: dave at dericed.com (Dave Rice) Date: Tue, 12 Feb 2013 20:51:19 -0500 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: References: Message-ID: <73210402-19FC-4AAD-9F93-033BAB56E52D@dericed.com> On Feb 12, 2013, at 8:04 PM, Carl Eugen Hoyos wrote: > Dave Rice dericed.com> writes: > >>> (and verify that the files are >>> different: one should contain a fiel atom, one not). >> >> This is true. I can find the fiel atom in with_patch.mov >> but not in without_patch.mov, but I am only discovering >> this with a hexdump of each file. Dumpster doesn't reveal >> the fiel atom, nor does mediainfo >> --inform='Details;1'. Is there another atom parser to use? > > You can remove the comment ("//") in front of #define DEBUG > on top of libavformat/mov.c and use -loglevel something This method also does not reveal the fiel atom. See below. Btw thanks for pointing this feature out, it's very helpful for inspection. ./ffmpeg -i with_patch.mov -loglevel debug -f null - ffmpeg version N-49846-ge1219cd Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 19:06:28 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 Splitting the commandline. Reading option '-i' ... matched as input file with argument 'with_patch.mov'. Reading option '-loglevel' ... matched as option 'loglevel' (set libav* logging level) with argument 'debug'. Reading option '-f' ... matched as option 'f' (force format) with argument 'null'. Reading option '-' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option loglevel (set libav* logging level) with argument debug. Successfully parsed a group of options. Parsing a group of options: input file with_patch.mov. Successfully parsed a group of options. Opening an input file: with_patch.mov. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 70797466 'ftyp' parent:'root' sz: 20 8 2753502 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] ISO: File Type Major Brand: qt [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 65646977 'wide' parent:'root' sz: 8 28 2753502 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 7461646d 'mdat' parent:'root' sz: 2752520 36 2753502 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 766f6f6d 'moov' parent:'root' sz: 954 2752556 2753502 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 6468766d 'mvhd' parent:'moov' sz: 108 8 946 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] time scale = 1000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 6b617274 'trak' parent:'moov' sz: 805 116 946 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 64686b74 'tkhd' parent:'trak' sz: 92 8 797 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 73746465 'edts' parent:'trak' sz: 36 100 797 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 74736c65 'elst' parent:'edts' sz: 28 8 28 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] track[0].edit_count = 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] duration=101 time=0 rate=1.000000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 6169646d 'mdia' parent:'trak' sz: 601 136 797 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 6468646d 'mdhd' parent:'mdia' sz: 32 8 593 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 726c6468 'hdlr' parent:'mdia' sz: 45 40 593 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] ctype= mhlr (0x726c686d) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stype= vide [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 666e696d 'minf' parent:'mdia' sz: 516 85 593 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 64686d76 'vmhd' parent:'minf' sz: 20 8 508 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 726c6468 'hdlr' parent:'minf' sz: 44 28 508 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] ctype= dhlr (0x726c6864) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stype= url [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 666e6964 'dinf' parent:'minf' sz: 36 72 508 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 66657264 'dref' parent:'dinf' sz: 28 8 28 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type url size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 6c627473 'stbl' parent:'minf' sz: 408 108 508 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 64737473 'stsd' parent:'stbl' sz: 300 8 400 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] size=284 4CC= AVdn codec_type=0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] depth 24, ctab id 65535 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 524c4341 'ACLR' parent:'stsd' sz: 24 8 198 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 47525041 'APRG' parent:'stsd' sz: 24 32 198 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 53455241 'ARES' parent:'stsd' sz: 120 56 198 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 0a000000 '' parent:'stsd' sz: 0 176 198 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 73747473 'stts' parent:'stbl' sz: 24 308 400 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] track[0].stts.entries = 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] sample_count=3, sample_duration=1001 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 63737473 'stsc' parent:'stbl' sz: 28 332 400 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] track[0].stsc.entries = 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 7a737473 'stsz' parent:'stbl' sz: 20 360 400 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] sample_size = 917504 sample_count = 3 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 6f637473 'stco' parent:'stbl' sz: 28 380 400 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 74706174 'tapt' parent:'trak' sz: 68 737 797 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] AVIndex stream 0, sample 0, offset 24, dts 0, size 917504, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] AVIndex stream 0, sample 1, offset e0024, dts 1001, size 917504, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] AVIndex stream 0, sample 2, offset 1c0024, dts 2002, size 917504, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 61746475 'udta' parent:'moov' sz: 33 921 946 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] type: 727773a9 '?swr' parent:'udta' sz: 25 8 25 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] lang "und" tag "encoder" value "Lavf54.63.100" atom "?swr" 13 13 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] on_parse_exit_offset=2753502 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] File position before avformat_find_stream_info() is 2753502 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stream 0, sample 0, dts 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stream 0, pts 0, dts 0, pos 0x24, duration 1001 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] File position after avformat_find_stream_info() is 917540 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'with_patch.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.63.100 Duration: 00:00:00.10, start: 0.000000, bitrate: 218099 kb/s Stream #0:0(eng), 1, 1/30000: Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080, 1/30000, 219980 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc Metadata: handler_name : DataHandler Successfully opened the file. Parsing a group of options: output file -. Applying option f (force format) with argument null. Successfully parsed a group of options. Opening an output file: -. Successfully opened the file. [buffer @ 0x7f99a9c12c60] Setting entry with key 'video_size' to value '1920x1080' [buffer @ 0x7f99a9c12c60] Setting entry with key 'pix_fmt' to value '4' [buffer @ 0x7f99a9c12c60] Setting entry with key 'time_base' to value '1/30000' [buffer @ 0x7f99a9c12c60] Setting entry with key 'pixel_aspect' to value '0/1' [buffer @ 0x7f99a9c12c60] Setting entry with key 'sws_param' to value 'flags=2' [buffer @ 0x7f99a9c12c60] Setting entry with key 'frame_rate' to value '30000/1001' [graph 0 input from stream 0:0 @ 0x7f99a9c11600] w:1920 h:1080 pixfmt:yuv422p tb:1/30000 fr:30000/1001 sar:0/1 sws_param:flags=2 [dnxhd @ 0x7f99aa00f800] detected 4 logical cores Output #0, null, to 'pipe:': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf54.63.100 Stream #0:0(eng), 0, 1/90000: Video: rawvideo (Y42B / 0x42323459), yuv422p, 1920x1080, 1001/30000, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Metadata: handler_name : DataHandler Stream mapping: Stream #0:0 -> #0:0 (dnxhd -> rawvideo) Press [q] to stop, [?] for help [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stream 0, sample 1, dts 33367 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stream 0, pts 1001, dts 1001, pos 0xe0024, duration 1001 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stream 0, sample 2, dts 66733 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f99aa00f200] stream 0, pts 2002, dts 2002, pos 0x1c0024, duration 1001 [output stream 0:0 @ 0x7f99a9c12e80] EOF on sink link output stream 0:0:default. [null @ 0x7f99aa013000] Encoder did not produce proper pts, making some up. No more output streams to write to, finishing. frame= 3 fps=0.0 q=0.0 Lsize=N/A time=00:00:00.10 bitrate=N/A video:0kB audio:0kB subtitle:0 global headers:0kB muxing overhead -107.638889% Statistics: 2786234 bytes read, 2 seeks > but I prefer hexdump -C hexdump -C with_patch.mov [ ... ] 002a0270 50 52 47 30 30 30 31 00 00 00 01 00 00 00 00 00 |PRG0001.........| 002a0280 00 00 78 41 52 45 53 41 52 45 53 30 30 30 31 00 |..xARESARES0001.| 002a0290 00 04 d6 00 00 07 80 00 00 04 38 00 00 00 01 00 |..........8.....| 002a02a0 00 00 00 00 00 00 05 00 00 00 00 00 00 00 00 00 |................| 002a02b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 002a02f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0a 66 |...............f| 002a0300 69 65 6c 02 0e 00 00 00 10 70 61 73 70 00 00 00 |iel......pasp...| 002a0310 87 00 00 00 b0 00 00 00 18 73 74 74 73 00 00 00 |.........stts...| 002a0320 00 00 00 00 01 00 00 00 03 00 00 03 e9 00 00 00 |................| 002a0330 1c 73 74 73 63 00 00 00 00 00 00 00 01 00 00 00 |.stsc...........| 002a0340 01 00 00 00 01 00 00 00 01 00 00 00 14 73 74 73 |.............sts| > (I thought ticket #1881 was from you, but I was wrong: > It shows that at least Dumpster isn't always useful.) You might be thinking of http://ffmpeg.org/trac/ffmpeg/ticket/867. I am interested in in24 in mov. >>> The question is if both can be decoded with QuickTime. >> >> Both appear to operate appropriately and identically >> within QuickTime 7.6 and QuickTime X. > > If you could do one more test, search for a svq3 file - > Vertical400kbit.sorenson3.mov - remux it with unpatched > FFmpeg ffmpeg -i Vertical400kbit.sorenson3.mov -map 0 -c copy svq3_without_patch.mov ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 19:07:29 with Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-ffplay --enable-libopenjpeg --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1/include/openjpeg-1.5 ' libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f8403036e00] max_analyze_duration 5000000 reached at 5000998 microseconds Guessed Channel Layout for Input Stream #0.1 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Vertical400kbit.sorenson3.mov': Metadata: creation_time : 2001-03-20 16:17:18 title : Vertical Online SV3 Demo title-eng : Vertical Online SV3 Demo artist : Logan Kelsey artist-eng : Logan Kelsey copyright : ? Vertical Online 2001 copyright-eng : ? Vertical Online 2001 encoder : Sorenson Video 3 encoder-eng : Sorenson Video 3 Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, mono, s16p, 176 kb/s Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Output #0, mov, to 'svq3_without_patch.mov': Metadata: encoder-eng : Sorenson Video 3 title : Vertical Online SV3 Demo title-eng : Vertical Online SV3 Demo artist : Logan Kelsey artist-eng : Logan Kelsey copyright : ? Vertical Online 2001 copyright-eng : ? Vertical Online 2001 encoder : Lavf54.63.100 Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240, q=2-31, 391 kb/s, 30.02 fps, 19200 tbn, 600 tbc Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, mono, 176 kb/s Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1308 fps=0.0 q=-1.0 Lsize= 3121kB time=00:00:43.57 bitrate= 586.7kbits/s video:2085kB audio:997kB subtitle:0 global headers:0kB muxing overhead 1.250231% > and verify that video still plays with QuickTime, For Vertical400kbit.sorenson3.mov QuickTime 7.6: video plays fine, audio plays fine QuickTime X: video plays fine, audio plays fine For svq3_without_patch.mov QuickTime 7.6: video plays fine, audio does not play QuickTime X: gives error "The document 'svq3_without_patch.mov' could not be opened. This media may be damaged." > then use my patch and replace movenc.c line 1135 > ("if (track->enc->field_order != AV_FIELD_UNKNOWN)") > with something like "track->enc->field_order = AV_FIELD_BB" > and remux again. ./ffmpeg -i Vertical400kbit.sorenson3.mov -map 0 -c copy svq3_with_patch.mov ffmpeg version N-49847-g4f12791 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 12 2013 20:48:24 with llvm-gcc 4.2.1 (LLVM build 2336.11.00) configuration: libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbff380f200] max_analyze_duration 5000000 reached at 5000998 microseconds Guessed Channel Layout for Input Stream #0.1 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Vertical400kbit.sorenson3.mov': Metadata: creation_time : 2001-03-20 16:17:18 title : Vertical Online SV3 Demo title-eng : Vertical Online SV3 Demo artist : Logan Kelsey artist-eng : Logan Kelsey copyright : ? Vertical Online 2001 copyright-eng : ? Vertical Online 2001 encoder : Sorenson Video 3 encoder-eng : Sorenson Video 3 Duration: 00:00:43.58, start: 0.000000, bitrate: 580 kb/s Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, mono, s16p, 176 kb/s Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Output #0, mov, to 'svq3_with_patch.mov': Metadata: encoder-eng : Sorenson Video 3 title : Vertical Online SV3 Demo title-eng : Vertical Online SV3 Demo artist : Logan Kelsey artist-eng : Logan Kelsey copyright : ? Vertical Online 2001 copyright-eng : ? Vertical Online 2001 encoder : Lavf54.63.100 Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240, q=2-31, 391 kb/s, 30.02 fps, 19200 tbn, 600 tbc Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, mono, 176 kb/s Metadata: creation_time : 2001-03-20 16:17:18 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1308 fps=0.0 q=-1.0 Lsize= 3121kB time=00:00:43.57 bitrate= 586.7kbits/s video:2085kB audio:997kB subtitle:0 global headers:0kB muxing overhead 1.250547% For svq3_with_patch.mov QuickTime 7.6: video plays fine, audio does not play QuickTime X: gives error "The document 'svq3_without_patch.mov' could not be opened. This media may be damaged." Same result before and after line 1135. > If the file changed but still decodes, the patch should > really be sufficiently tested;-) :-P Dave From dave at dericed.com Wed Feb 13 02:55:29 2013 From: dave at dericed.com (Dave Rice) Date: Tue, 12 Feb 2013 20:55:29 -0500 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: References: Message-ID: <3F4811EB-5DEC-465B-BA03-D9759A359657@dericed.com> On Feb 12, 2013, at 5:35 PM, Carl Eugen Hoyos wrote: > Dave Rice dericed.com> writes: > >> ffmpeg -y -f lavfi -i mandelbrot -t 1 -c:v ffv1 >> -level 3 -strict -2 mandel_ffv1_v3.mov > > This is a duplicate of ticket #2202, I sent a patch > to the mailing list, it is still waiting for somebody > who can test with AVID dnxhd decoder installed. I can confirm that Carl's patch does fix the bgra ffv1 version 3 issue I had at the beginning of this thread. Dave From uday at yandex.com Wed Feb 13 06:57:25 2013 From: uday at yandex.com (=?koi8-r?B?RyB1ZGF5mmtyaXNobmE=?=) Date: Wed, 13 Feb 2013 11:27:25 +0530 Subject: [FFmpeg-user] DPX to YUV convertion Message-ID: <843201360735045@web16e.yandex.ru> Dear All, I have set of DPX files like image1.dpx, image2.dpx..........imageN.dpx, I want to convert these files into yuv420 format. Is it possible with ffmpeg. I tries with some commands but failed to convert. Please suggest for solution. Thanks in Advance. From dave at dericed.com Wed Feb 13 07:25:22 2013 From: dave at dericed.com (Dave Rice) Date: Wed, 13 Feb 2013 01:25:22 -0500 Subject: [FFmpeg-user] DPX to YUV convertion In-Reply-To: <843201360735045@web16e.yandex.ru> References: <843201360735045@web16e.yandex.ru> Message-ID: On Feb 13, 2013, at 12:57 AM, G uday krishna wrote: > Dear All, > I have set of DPX files like image1.dpx, image2.dpx..........imageN.dpx, I want to convert these files into yuv420 format. Is it possible with ffmpeg. I tries with some commands but failed to convert. Please suggest for solution. There's really not enough information to understand what you want, but this should output a yuv420p format: ffmpeg -start_number 1 -i image%1d.dpx -pix_fmt yuv420p -c:v libx264 fromdpx.mp4 Dave Rice From uday at yandex.com Wed Feb 13 09:28:54 2013 From: uday at yandex.com (=?koi8-r?B?RyB1ZGF5mmtyaXNobmE=?=) Date: Wed, 13 Feb 2013 13:58:54 +0530 Subject: [FFmpeg-user] DPX to YUV convertion In-Reply-To: References: <843201360735045@web16e.yandex.ru> Message-ID: <1051691360744134@web20g.yandex.ru> Hi Dave, The syntax what you have shared, I tried with with it. But i got the image1.dpx: Unknown format. To elobrate my problem, I have 100 dpx files which i have downloaded for my project. Each file is a single image which i want to merge as a single DPX file and convert the whole file int yuv420p raw video format. 13.02.2013, 11:55, "Dave Rice" : > On Feb 13, 2013, at 12:57 AM, G uday krishna wrote: > >> ?Dear All, >> ????I have set of DPX files like image1.dpx, image2.dpx..........imageN.dpx, I want to convert these files into yuv420 format. Is it possible with ffmpeg. I tries with some commands but failed to convert. Please suggest for solution. > > There's really not enough information to understand what you want, but this should output a yuv420p format: > > ffmpeg -start_number 1 -i image%1d.dpx -pix_fmt yuv420p -c:v libx264 fromdpx.mp4 > > Dave Rice > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Feb 13 09:54:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 13 Feb 2013 08:54:41 +0000 (UTC) Subject: [FFmpeg-user] DPX to YUV convertion References: <843201360735045@web16e.yandex.ru> <1051691360744134@web20g.yandex.ru> Message-ID: G uday?krishna yandex.com> writes: > But i got the image1.dpx: Unknown format. Please post the command line you tested together with the complete, uncut console output. Carl Eugen From uday at yandex.com Wed Feb 13 10:28:06 2013 From: uday at yandex.com (=?koi8-r?B?RyB1ZGF5mmtyaXNobmE=?=) Date: Wed, 13 Feb 2013 14:58:06 +0530 Subject: [FFmpeg-user] DPX to YUV convertion In-Reply-To: References: <843201360735045@web16e.yandex.ru> <1051691360744134@web20g.yandex.ru> Message-ID: <42061360747686@web29g.yandex.ru> C:\Documents and Settings\udaykrishnag>F:\ffmpeg-0.5\ffmpeg-0.5\ffmpeg.exe -i "C:\Documents and Settings\udaykrishnag\Desktop\DPX\4k_Lupo_candlelight_0001.dpx" -pix_fmt yuv444p -c:v libx264 "C:\Documents and Settings\udaykrishnag\Desktop\DPX\4k_Lupo_candlelight_0001.mp4" FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-avisynth --enable-libfaac - -enable-libfaad --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-memalign-hack libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 0 / 52.20. 0 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 16 2009 16:09:18, gcc: 4.2.4 [Sherpya] C:\Documents and Settings\udaykrishnag\Desktop\DPX\4k_Lupo_candlelight_0001.dpx: Unknown format 13.02.2013, 14:25, "Carl Eugen Hoyos" : > G uday?krishna yandex.com> writes: > >> ?But i got the image1.dpx: Unknown format. > > Please post the command line you tested 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 From cehoyos at ag.or.at Wed Feb 13 11:30:15 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 13 Feb 2013 10:30:15 +0000 (UTC) Subject: [FFmpeg-user] DPX to YUV convertion References: <843201360735045@web16e.yandex.ru> <1051691360744134@web20g.yandex.ru> <42061360747686@web29g.yandex.ru> Message-ID: G uday?krishna yandex.com> writes: > FFmpeg version 0.5 Please update to current git head (which supports dpx). See http://ffmpeg.org/download.html Please do not top-post here, it is considered rude. Carl Eugen From daniel at danieloberhoff.de Wed Feb 13 19:16:58 2013 From: daniel at danieloberhoff.de (Daniel Oberhoff) Date: Wed, 13 Feb 2013 19:16:58 +0100 Subject: [FFmpeg-user] syncing live streams when mosaicing References: <20130206221024.GK13058@arborea> Message-ID: On 2013-02-06 22:10:24 +0000, Stefano Sabatini said: > On date Wednesday 2013-02-06 16:10:11 +0100, Daniel Oberhoff wrote: > [...] >> Ok, I must confess I am not so proficient in timestamps and video >> format internals. I am currenlty under the impression, that the >> problem cannot be solved the way I hoped. The streams nor the rtsp >> commnunication do not seem to contain any absolute time values (the >> pts seems to be relative to the stream start). So the only hope >> would be that ffmpeg somehow measures the stream start delays and >> compensates them. Until then we will just hope the delay is constant >> and compensate it manually. >> >> Any better ideas? > > setpts=PTS-STARTPTS > >> Best, and thanks for the attention Thanks for that. Though I would really need the absolute start time of the stream. According to the documentation this would be RTCSTART/(1000000*TB), but this is no longer supported. The documentation says something obscure about "use time(0) instead", but just writing time(0) does not work, and I cannot find any further documentation or code regarding this. Can anyone point me in the right direction here. From mulargui at hotmail.com Wed Feb 13 20:05:27 2013 From: mulargui at hotmail.com (Mauricio Ulargui) Date: Wed, 13 Feb 2013 11:05:27 -0800 Subject: [FFmpeg-user] rotating a video losses quality In-Reply-To: References: , , , , , , , , Message-ID: Hi, I want to rotate a video recorded with an iPhone and keep its quality. Below is the command that I use, but it losses quality. Suggestions? The file before rotating is 189,889 Kb The file after rotating is 78,866 Kb ffmpeg -i "kendama.mp4" -acodec copy -vf "transpose=2" "kendama2.mp4" ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --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-libx264 --enable-libxavs --enable-libxvid --enable-zlib 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 'kendama.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.59.106 Duration: 00:02:24.28, start: 0.000000, bitrate: 10781 kb/s Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 10713 kb/s, 29.92 fps, 30 tbr, 19200 tbn, 38400 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 63 kb/s Metadata: handler_name : SoundHandler [libx264 @ 03eb6ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 03eb6ba0] profile High, level 3.1 [libx264 @ 03eb6ba0] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 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 'kendama2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.59.106 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x1280, q=-1--1, 15360 tbn, 30 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, mono, 63 kb/s Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 46 fps=0.0 q=0.0 size= 0kB time=00:00:01.67 bitrate= 0.2kbits/s frame= 56 fps= 45 q=29.0 size= 157kB time=00:00:01.99 bitrate= 643.5kbits/s frame= 63 fps= 35 q=29.0 size= 238kB time=00:00:02.22 bitrate= 875.3kbits/s frame= 72 fps= 31 q=29.0 size= 361kB time=00:00:02.53 bitrate=1169.8kbits/s frame= 80 fps= 27 q=29.0 size= 471kB time=00:00:02.80 bitrate=1372.1kbits/s frame= 90 fps= 25 q=29.0 size= 581kB time=00:00:03.16 bitrate=1502.7kbits/s frame= 100 fps= 24 q=29.0 size= 693kB time=00:00:03.44 bitrate=1648.1kbits/s dup=1 drop=0 frame= 111 fps= 24 q=29.0 size= 784kB time=00:00:03.81 bitrate=1683.6kbits/s dup=1 drop=0 frame= 120 fps= 23 q=29.0 size= 874kB time=00:00:04.11 bitrate=1739.7kbits/s dup=1 drop=0 frame= 131 fps= 23 q=29.0 size= 986kB time=00:00:04.48 bitrate=1799.3kbits/s dup=1 drop=0 . . . . . . . . .frame= 4296 fps= 13 q=29.0 size= 75536kB time=00:02:23.34 bitrate=4316.6kbits/s dup=11 drop=0 frame= 4300 fps= 13 q=29.0 size= 75719kB time=00:02:23.48 bitrate=4322.9kbits/s dup=11 drop=0 frame= 4306 fps= 13 q=29.0 size= 75966kB time=00:02:23.67 bitrate=4331.4kbits/s dup=11 drop=0 frame= 4313 fps= 13 q=29.0 size= 76260kB time=00:02:23.90 bitrate=4341.2kbits/s dup=11 drop=0 frame= 4319 fps= 13 q=29.0 size= 76520kB time=00:02:24.11 bitrate=4349.6kbits/s dup=11 drop=0 frame= 4327 fps= 13 q=-1.0 Lsize= 78866kB time=00:02:24.27 bitrate=4477.9kbits/s dup=11 drop=0 video:77590kB audio:1126kB subtitle:0 global headers:0kB muxing overhead 0.190978% [libx264 @ 03eb6ba0] frame I:33 Avg QP:23.21 size:105464 [libx264 @ 03eb6ba0] frame P:2450 Avg QP:25.97 size: 26543 [libx264 @ 03eb6ba0] frame B:1844 Avg QP:29.81 size: 5933 [libx264 @ 03eb6ba0] consecutive B-frames: 16.3% 79.3% 4.2% 0.3% [libx264 @ 03eb6ba0] mb I I16..4: 14.7% 49.2% 36.1% [libx264 @ 03eb6ba0] mb P I16..4: 1.2% 4.2% 1.7% P16..4: 49.9% 17.8% 11.3% 0.0% 0.0% skip:14.0% [libx264 @ 03eb6ba0] mb B I16..4: 0.1% 0.3% 0.2% B16..8: 49.4% 5.2% 1.2% direct: 1.5% skip:42.0% L0:45.0% L1:47.0% BI: 8.0% [libx264 @ 03eb6ba0] 8x8 transform intra:57.2% inter:55.1% [libx264 @ 03eb6ba0] coded y,uvDC,uvAC intra: 73.9% 71.2% 25.3% inter: 24.8% 23.9% 1.0% [libx264 @ 03eb6ba0] i16 v,h,dc,p: 31% 27% 11% 31% [libx264 @ 03eb6ba0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 18% 15% 5% 8% 9% 8% 8% 8% [libx264 @ 03eb6ba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 23% 16% 6% 8% 7% 8% 6% 6% [libx264 @ 03eb6ba0] i8c dc,h,v,p: 51% 19% 22% 8% [libx264 @ 03eb6ba0] Weighted P-Frames: Y:5.1% UV:0.8% [libx264 @ 03eb6ba0] ref P L0: 74.9% 16.6% 6.0% 2.3% 0.1% [libx264 @ 03eb6ba0] ref B L0: 97.1% 2.9% 0.0% [libx264 @ 03eb6ba0] ref B L1: 99.4% 0.6% [libx264 @ 03eb6ba0] kb/s:4406.81 Mauricio @ Ulargui .com | +1 425 449 3825 From onemda at gmail.com Wed Feb 13 20:23:42 2013 From: onemda at gmail.com (Paul B Mahol) Date: Wed, 13 Feb 2013 19:23:42 +0000 Subject: [FFmpeg-user] rotating a video losses quality In-Reply-To: References: Message-ID: On 2/13/13, Mauricio Ulargui wrote: > Hi, I want to rotate a video recorded with an iPhone and keep its quality. > Below is the command that I use, but it losses quality. Suggestions? > The file before rotating is 189,889 Kb > The file after rotating is 78,866 Kb > > ffmpeg -i "kendama.mp4" -acodec copy -vf "transpose=2" "kendama2.mp4" > Transcoding do affect quality. The only way to not lose quality it to use lossless preset. From mulargui at hotmail.com Wed Feb 13 20:30:13 2013 From: mulargui at hotmail.com (Mauricio Ulargui) Date: Wed, 13 Feb 2013 11:30:13 -0800 Subject: [FFmpeg-user] adding a picture at the front of a video In-Reply-To: References: , , , , , , , , , Message-ID: Hi,I have a video recorded with an iphone and I want to add a picture (also taken with the iphone) at the front for 3 seconds. I saw many entries online about how to produce a short video from a set of pictures but nothing useful to do what I want. Suggestions? Mauricio @ Ulargui .com | +1 425 449 3825 From richard_get_iplayer at richsim900.plus.com Wed Feb 13 22:03:32 2013 From: richard_get_iplayer at richsim900.plus.com (richard_get_iplayer) Date: Wed, 13 Feb 2013 21:03:32 +0000 Subject: [FFmpeg-user] FFmpeg creates m4a files that don't play on Marantz CD6003 In-Reply-To: Message-ID: <1360789412.2206.5.camel@ubuntu-desktop> You are right. The Ubuntu repositories are libav fork or from prior to the fix. The fix hasn't regressed. Tested with a build from FFmpeg git head and it was OK. Thanks for pointing me in the right direction. From tinker123 at gmail.com Thu Feb 14 03:50:54 2013 From: tinker123 at gmail.com (Steve) Date: Wed, 13 Feb 2013 21:50:54 -0500 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 In-Reply-To: References: Message-ID: Hi all, I'm still on kubuntu 11.10 I followed the directions at this link to uninstall the Ubuntu ffmpeg and put in a newer one. https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide Running the command to get the ffmpeg version gets me this output =================================================== ~/Downloads/BMARchive/temp$ ffmpeg -version ffmpeg version git-2013-02-14-a08ebf0 built on Feb 13 2013 21:20:54 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --enable-libopus --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 ~/Downloads/BMARchive/temp$ These are the contents of my working directory starting off ================================================== :~/Downloads/BMARchive/temp$ ls -l total 419476 -rwxrwxrwx 1 steve steve 429527887 2012-11-10 07:16 input.mp4 -rwxrwxrwx 1 steve steve 176 2013-02-13 20:48 notes.txt -rwxrwxrwx 1 steve steve 259 2013-02-12 19:05 output.mp4 :~/Downloads/BMARchive/temp$ These are the two commands I tried: ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy output.mp4 ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 output.mp4 Both gave me this message: Invalid duration specification for t: 00:06:97 This is the output from the 1st command: ~/Downloads/BMARchive/temp$ ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy output.mp4 ffmpeg version git-2013-02-14-a08ebf0 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 13 2013 21:20:54 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --enable-libopus --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isom creation_time : 2012-11-10 07:11:19 Duration: 00:57:51.40, start: 0.000000, bitrate: 989 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x404, 857 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc Metadata: creation_time : 2012-11-10 06:47:49 handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s Metadata: creation_time : 2012-11-10 07:11:34 handler_name : GPAC ISO Audio Handler Invalid duration specification for t: 00:06:97 ~/Downloads/BMARchive/temp$ Basically, I'm trying to make a clip from an mp4 that starts about 6 minuets in and has a duration of a little more than 6 minutes. Any ideas on what I am doing wrong? Thanks much in advance Steve From lou at lrcd.com Thu Feb 14 04:01:57 2013 From: lou at lrcd.com (Lou) Date: Wed, 13 Feb 2013 18:01:57 -0900 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 In-Reply-To: References: Message-ID: <20130213180157.3e974462@lrcd.com> On Wed, 13 Feb 2013 21:50:54 -0500 Steve wrote: > ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy > output.mp4 > > Both gave me this message: > Invalid duration specification for t: 00:06:97 Use a value in seconds or hours:minutes:seconds.milliseconds. 6 minutes and 97 seconds is 00:07:37. From tylerbwear at gmail.com Thu Feb 14 04:32:11 2013 From: tylerbwear at gmail.com (tyler wear) Date: Wed, 13 Feb 2013 19:32:11 -0800 Subject: [FFmpeg-user] Disable decoder for shared library In-Reply-To: References: Message-ID: not exactly sure what the --enable-fft flag is doing, but it worked. For the question about cross compiling, it is necessary when the CC is looking for a different command with that prefix. Thanks for all the help. Tyler On Tue, Feb 12, 2013 at 4:50 PM, Carl Eugen Hoyos wrote: > tyler wear gmail.com> writes: > > > libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_neon' > > libavcodec/libavcodec.so: undefined reference to `ff_fft_fixed_calc_neon' > > libavcodec/libavcodec.so: undefined reference to `ff_fft_permute_neon' > > I know this isn't your fault, but all ia32 and > intel64 compilers / linkers I ever tested reported > in which object files they found unresolved symbols... > > > collect2: ld returned 1 exit status > > make: *** [ffprobe_g] Error 1 > > > > full configure command: > > > > ./configure --enable-cross-compile > > --cross-prefix=.../codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi- > > --cc=.../codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi-gcc > > (100% unrelated: Is it really necessary to specify > both a cross-prefix and an identical complete path > to gcc? I never used cross-compilation.) > > > --arch=arm --target-os=linux --enable-armv5te --disable-armv6 > > --disable-mmx --enable-shared --disable-doc --disable-htmlpages > > --disable-manpages --disable-podpages --disable-txtpages > > --disable-avdevice --disable-swresample --disable-swscale > > --disable-postproc --enable-small --disable-avfilter --disable-debug > > --disable-ffserver --disable-ffplay --extra-cflags=-fPIC > > --enable-gpl --disable-network --disable-zlib > > --disable-ffmpeg --disable-encoders --disable-decoders > > It is absolutely possible (and even likely) that there > is a bug, but since I honestly don't see how this > configure line makes any sense and I cannot reproduce > the problem on intel64, I suggest you simply add > --enable-fft. > > If you want to fix this yourself, search for the file in > libavcodec/arm that is missing an "#if CONFIG_FFT" and > add it there, don't forget to send a patch. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Tyler B. Wear Qualcomm - Software Engineer From tinker123 at gmail.com Thu Feb 14 05:23:33 2013 From: tinker123 at gmail.com (Steve) Date: Wed, 13 Feb 2013 23:23:33 -0500 Subject: [FFmpeg-user] Empty File: Trouble Making A Clip From An MP4 In-Reply-To: <20130213180157.3e974462@lrcd.com> References: <20130213180157.3e974462@lrcd.com> Message-ID: On Wed, Feb 13, 2013 at 10:01 PM, Lou wrote: > On Wed, 13 Feb 2013 21:50:54 -0500 > Steve wrote: > > > ffmpeg -i input.mp4 -ss 00:06:48 -t 00:06:97 -vcodec copy -acodec copy > > output.mp4 > > > > Both gave me this message: > > Invalid duration specification for t: 00:06:97 > > Use a value in seconds or hours:minutes:seconds.milliseconds. 6 minutes > and 97 seconds is 00:07:37. > That worked! Thanks much Steve From acct_reg at fireslug.com Thu Feb 14 11:02:30 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Thu, 14 Feb 2013 15:32:30 +0530 Subject: [FFmpeg-user] Need help encoding a specific video for HTML5 In-Reply-To: References: <20130206221024.GK13058@arborea> Message-ID: <511CB636.4000408@fireslug.com> Hi Everyone, I have the following video to encode into the 3 video formats required by HTML5: === ffmpeg -i test_h264_3000Kbps_480p.mov ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers built on Apr 13 2012 18:39:51 with gcc 4.4.6 20110731 (Red Hat 4.4.6-3) configuration: libavutil 51. 35.100 / 51. 35.100 libavcodec 53. 61.100 / 53. 61.100 libavformat 53. 32.100 / 53. 32.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test_h264_3000Kbps_480p.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-02 19:09:54 Duration: 00:26:49.67, start: 0.000000, bitrate: 2960 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 171 kb/s Metadata: creation_time : 2013-02-02 19:09:54 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 638x476 [SAR 1:1 DAR 319:238], 2800 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 59.94 tbc Metadata: creation_time : 2013-02-02 19:09:54 handler_name : ?Apple Alias Data Handler === I want to create a .mp4, .ogv and .webm suitable for playing on the web, and especially mobile devices running Apple iOS (iPad). I was recommended the following command for the .mp4, but I need help with the others as well: ffmpeg-y-i in.mov-filter:v scale=640:360 \ -c:v libx264-preset:v slow-profile:v baseline \ -x264opts level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1 \ -b:v 500k-r:v25/1 -force_fps-movflags faststart \ -c:a libfaac-b:a 80k-pass x out.mp4 Is the above command the best solution for what I am trying to accomplish (Apple iOS compatibility and mobile support)? Also, what commands should I run for webm and ogv? Your assistance is greatly appreciated! Thank you in advance! Best Regards, Tony From nichot20 at yahoo.com Thu Feb 14 15:27:16 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Thu, 14 Feb 2013 14:27:16 +0000 Subject: [FFmpeg-user] ffv1 version 3 read_quant_table error In-Reply-To: References: Message-ID: <511CF444.1030604@yahoo.com> On 13/02/13 00:48, Dave Rice wrote: > > On Feb 12, 2013, at 7:26 PM, Carl Eugen Hoyos wrote: > >> Dave Rice dericed.com> writes: >> >>>> [...] > > This is true. I can find the fiel atom in with_patch.mov but not in without_patch.mov, but I am only discovering this with a hexdump of each file. Dumpster doesn't reveal the fiel atom, nor does mediainfo --inform='Details;1'. Is there another atom parser to use? > Just for the record there is atom inspector, available from the Apple developer website, and movdump, part of the bmxlib project, so compilable on most things... >> [...] -- Tim From yoda_26 at hotmail.fr Thu Feb 14 16:06:16 2013 From: yoda_26 at hotmail.fr (Yoda Yoda) Date: Thu, 14 Feb 2013 16:06:16 +0100 Subject: [FFmpeg-user] ffmpeg with -vf "ass=..." and -ss options (windows static version 32 bits version) Message-ID: Hello Everybody, I face a trouble with ffmpeg (last static 32 bit version, and other old versions too) with hard subtitle and with a start time value. When encoding the video with subtitle, it works well, but when adding a start time value with the -ss option, the subtitle is omitted. Is there a tip to overcome this problem ? Other than to re-encode a second time to split the video ? Basically : ffmpeg.exe -i "INPUIT" -vf "ass=file.ass" -map 0:0 -map 0:1 -vcodec libx264 b:v 5000k -acodec libvo_aacenc -b:a 192k -ac 2 -f mp4 OUTPUT -> WORKS FINE But : ffmpeg.exe -ss 00:01:00 -i "INPUIT"-vf "ass=file.ass" -map 0:0 -map 0:1 -vcodec libx264 b:v 5000k -acodec libvo_aacenc -b:a 192k -ac 2 -f mp4 OUTPUT -> No subtitle. Any tip ? best regards From tfmackey at gmail.com Thu Feb 14 16:24:33 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Thu, 14 Feb 2013 15:24:33 +0000 Subject: [FFmpeg-user] Slideshow Transitions Message-ID: I am using FFmpeg to produce a slide show from a group of jpg files. It is working perfectly in that the size, resolution, format etc are as required. A question - is there any way to introduce a transition between slides. I have it encoded at one frame each five seconds and obviously it jumps directly from one frame to the next. It would look smoother if there was a cross-fade between slides. From northmedia1 at the.forthnet.gr Thu Feb 14 16:34:22 2013 From: northmedia1 at the.forthnet.gr (Vangelis forthnet) Date: Thu, 14 Feb 2013 17:34:22 +0200 Subject: [FFmpeg-user] Remux to a "brand mp42" MP4 file Message-ID: <66567361A4EC46149E5014E23C83D4CE@vasonote> Hello people :-) , this is my first post on the list, please be patient/lenient, apologies if my following query has been previously answered somewhere inside the vastness of the mail archives... I have an FLV file downloaded by RTMPdump 2.4; video is AVC Main at L3.0, audio is HE-AAC / LC (aka HE-AACv1 or aacp or AAC+SBR). I want to use FFmpeg to remux losslessly into the MP4 container, preferably with a one-step-process, but I want the ftyp atom of the mp4 file to be mp42. "mp42" means a "compatible brand" "MP4 v2 [ISO 14496-14]". I am on WindowsVista SP2 x86 & using the static win32 build of FFmpeg 1.1.1 from the Zeranoe repository at http://ffmpeg.zeranoe.com/builds/win32/static/ When I run the remuxing command: ffmpeg -i "foo.flv" -c copy -f mp4 "foo.mp4" the resulting file always has (mediainfo report): Format profile : Base Media Codec ID : isom i.e. ftype code 'isom' (means a "compatible brand" "MP4 Base Media v1 [IS0 14496-12:2003]"). Is there something I could add to the command so that the generated mp4 file reports: Format profile : Base Media / Version 2 Codec ID : mp42 Before posting here, I have searched for about 30min on the web, found nothing conclusive... Right now, the only way to accomplish this is to demux the raw streams from the FLV (either via FLVExtractCL.exe or via FFmpeg.exe, Video: ffmpeg -i foo.flv -f h264 -an -c:v copy -bsf:v h264_mp4toannexb Video.h264 Audio: ffmpeg -i foo.flv -f adts -vn -c:a copy Audio.aac and then remux them to mp4 with MP4Box: MP4Box -brand mp42 -delay 1=1 -add "Video.264:name=AVC Video Stream:lang=en:fps=25.000" -add "Audio.aac:name=HE-AAC Audio Stream:lang=en:sbr:mpeg4" -itags tool="MP4Box-0.4.6-dev-ir5-x86-shared.Kurtnoise.12-Jun-2010" "Remux-mp42.mp4" And while I am at it, is there a way for ffmpeg to flag the aac audio stream as being HE-AAC? When I play back with Quicktime the mp4 FFmpeg creates, Quicktime reports that the audio stream is AAC LC, not HE-AAC (which is the correct type). However, MP4Box does have the switch --sbr, so the mp4 file IT creates is correctly recognised by Quicktime as having a HE-AAC audio stream and the sampling rate is correctly displayed @ 48.0kHz, not at half that value (24.0 kHz), which is the case with the ffmpeg created one... Many thanks in advance! From onemda at gmail.com Thu Feb 14 16:44:21 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 14 Feb 2013 15:44:21 +0000 Subject: [FFmpeg-user] Slideshow Transitions In-Reply-To: References: Message-ID: On 2/14/13, Tom Mackey wrote: > I am using FFmpeg to produce a slide show from a group of jpg files. It is > working perfectly in that the size, resolution, format etc are as required. > A question - is there any way to introduce a transition between slides. I > have it encoded at one frame each five seconds and obviously it jumps > directly from one frame to the next. It would look smoother if there was > a cross-fade between slides. There is fade in/out to black - not much useful. I'm working on generic blend filter. _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tfmackey at gmail.com Thu Feb 14 16:49:03 2013 From: tfmackey at gmail.com (Tom Mackey) Date: Thu, 14 Feb 2013 15:49:03 +0000 Subject: [FFmpeg-user] Slideshow Transitions In-Reply-To: References: Message-ID: Thanks for reply. You are correct. I am looking for a fade from one slide to the next. I have looked at some programs that convert a series of image to a slide shoe on DVD but the quality of the original images is lost in the conversion. FFmpeg is giving the full resolution of the original images. From 23liam at googlemail.com Thu Feb 14 17:05:18 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Thu, 14 Feb 2013 16:05:18 +0000 Subject: [FFmpeg-user] ffmpeg with -vf "ass=..." and -ss options (windows static version 32 bits version) In-Reply-To: References: Message-ID: You could maybe try using -ss as an output option - it'll be much slower, since then ffmpeg has to decode up to that point before it starts encoding, but it *might* work. From 23liam at googlemail.com Thu Feb 14 17:11:44 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Thu, 14 Feb 2013 16:11:44 +0000 Subject: [FFmpeg-user] Remux to a "brand mp42" MP4 file In-Reply-To: <66567361A4EC46149E5014E23C83D4CE@vasonote> References: <66567361A4EC46149E5014E23C83D4CE@vasonote> Message-ID: You could try using '-tag:v mp42' (you may need to use -vtag for older versions). From northmedia1 at the.forthnet.gr Thu Feb 14 17:43:37 2013 From: northmedia1 at the.forthnet.gr (Vangelis forthnet) Date: Thu, 14 Feb 2013 18:43:37 +0200 Subject: [FFmpeg-user] Remux to a "brand mp42" MP4 file In-Reply-To: Message-ID: On Thu Feb 14 17:11:44 CET 2013, Liam Condron-Farnos wrote: >You could try using '-tag:v mp42' (you may need to use -vtag for older >versions). Thanks for your reply Liam... However, this was one of the first things I tried :-( I think that the -tag:v switch does not apply to the MP4 container in my case, I know that it does apply to the AVI container to change the FourCC format (from, say, DX50 to Xvid), feel free to correct me here... This is the Command Prompt window output I get with your suggestion: C:\Program Files\WinFF>"C:\Program Files\WinFF\ffmpeg.exe" -i "The Sun King.flv" -f mp4 -c copy -tag:v mp42 "The Sun King.mp4" ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:05:28 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable -libxavs --enable-libxvid --enable-zlib 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, flv, from 'The Sun King.flv': Metadata: moovPosition : 32 avcprofile : 77 avclevel : 30 aacaot : 2 videoframerate : 25 audiochannels : 2 Duration: 00:20:08.62, start: 0.000000, bitrate: 1502 kb/s Stream #0:0: Video: h264 (Main), yuv420p, 832x468 [SAR 117:117 DAR 16:9], 25 tbr, 1k tbn, 50 tbc Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp [mp4 @ 03590960] Tag mp42/0x3234706d incompatible with output codec id '28' ([33 ][0][0][0]) Output #0, mp4, to 'The Sun King.mp4': Metadata: moovPosition : 32 avcprofile : 77 avclevel : 30 aacaot : 2 videoframerate : 25 audiochannels : 2 Stream #0:0: Video: h264 (mp42 / 0x3234706D), yuv420p, 832x468 [SAR 117:117 DAR 16:9], q=2-31, 90k tbn, 1k tbc Stream #0:1: Audio: aac, 48000 Hz, stereo 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 ?): Invalid data found when processing input ... and I get a 0 byte .mp4 file :-( Any other suggestions from everyone are most welcome! Cheers, Vangelis From cehoyos at ag.or.at Thu Feb 14 19:50:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 14 Feb 2013 18:50:05 +0000 (UTC) Subject: [FFmpeg-user] Remux to a "brand mp42" MP4 file References: <66567361A4EC46149E5014E23C83D4CE@vasonote> Message-ID: Vangelis forthnet the.forthnet.gr> writes: > I want to use FFmpeg to remux losslessly into the > MP4 container, preferably with a one-step-process, but > I want the ftyp atom of the mp4 file to be > mp42. I don't think this is currently possible. Could you explain your use-case, so we would know what to test? (Why is mp41 not godd enough?) Carl Eugen From cehoyos at ag.or.at Thu Feb 14 19:53:01 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 14 Feb 2013 18:53:01 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg with -vf "ass=..." and -ss options (windows static version 32 bits version) References: Message-ID: Yoda Yoda hotmail.fr> writes: > When encoding the video with subtitle, it works well, > but when adding a start time value with the -ss option, > the subtitle is omitted. I suspect this is ticket #2235, feel free to add yourself to CC. Carl Eugen From stuart at klymiarven.co.uk Thu Feb 14 21:04:46 2013 From: stuart at klymiarven.co.uk (Stuart) Date: Thu, 14 Feb 2013 20:04:46 +0000 Subject: [FFmpeg-user] Converting MPEG-TS to MKV with hard coded subtitles produces error message Message-ID: <511D435E.4080308@klymiarven.co.uk> Hello, I want to convert an MPEG-TS from a Humax PVR to a MKV with H.264 encoded video with hard coded DVB subtitles. Unfortunately, having downloaded a build from ffmpeg.zeranoe.com, instead of hard coded subtitles I am getting "sub2video: rectangle overflowing" messages. I've tweaked ffmpeg.c to display the parameters causing the message and built a cut down ffmpeg. (I have built a toolchain using Zeranoe's build script and built libogg, libvorbis, libx264 and pthreads-win32 from source). The message is output because the video stream is 704x576 but the subtitle rectangles are 720 wide. If I tweak function sub2video_prepare in ffmpeg_filter.c to hard code the canvas width and height to be 720 and 576 respectively then I can produce an MKV with hard coded DVB subtitles with the command: ffmpeg -i in.TS -filter_complex "[0:v]pad=720:576[main];[main][0:s]overlay" -sn out.MKV I've tried cropping the subtitle stream before overlaying but still get the "sub2video: rectangle overflowing" messages with the Zeranoe build. I've also tried scaling the video stream and padding the video stream. I think the canvas size is assigned equal to the video stream size before applying the filters. Hence, scaling or padding the video stream doesn't increase the canvas size to match the subtitle rectangle dimensions. Is there a filter sequence that would accommodate the subtitle rectangle dimensions being larger than the video stream dimensions? Or does the sub2video "hack" not cater for this situation? Many thanks, Stu -------------- next part -------------- ffmpeg started on 2013-02-11 at 20:04:30 Report written to "ffmpeg-20130211-200430.log" Command line: "ffmpeg-20130104-git-498e1c6-win64-shared\\bin\\ffmpeg.exe" -report -i Suburgatory-20121110-1024.TS -filter_complex "[0:v][0:s]overlay" -sn sub.mkv ffmpeg version N-48459-g498e1c6 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 4 2013 17:36:11 with gcc 4.7.2 (GCC) configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 85.101 / 54. 85.101 libavformat 54. 59.103 / 54. 59.103 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 30.104 / 3. 30.104 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Splitting the commandline. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option '-i' ... matched as input file with argument 'Suburgatory-20121110-1024.TS'. Reading option '-filter_complex' ... matched as option 'filter_complex' (create a complex filtergraph) with argument '[0:v][0:s]overlay'. Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'. Reading option 'sub.mkv' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Applying option filter_complex (create a complex filtergraph) with argument [0:v][0:s]overlay. Successfully parsed a group of options. Parsing a group of options: input file Suburgatory-20121110-1024.TS. Successfully parsed a group of options. Opening an input file: Suburgatory-20121110-1024.TS. [mpegts @ 000000000068fa60] Format mpegts probed with size=2048 and score=100 [mpegts @ 000000000068fa60] stream=0 stream_type=2 pid=b0a prog_reg_desc= [mpegts @ 000000000068fa60] stream=1 stream_type=4 pid=b0b prog_reg_desc= [mpegts @ 000000000068fa60] stream=2 stream_type=4 pid=b0d prog_reg_desc= [mpegts @ 000000000068fa60] stream=3 stream_type=6 pid=b0c prog_reg_desc= [mpegts @ 000000000068fa60] stream=4 stream_type=b pid=8b7 prog_reg_desc= [mpegts @ 000000000068fa60] stream=5 stream_type=b pid=8b8 prog_reg_desc= [mpegts @ 000000000068fa60] stream=6 stream_type=b pid=8b9 prog_reg_desc= [mpegts @ 000000000068fa60] stream=7 stream_type=5 pid=bb9 prog_reg_desc= [mpegts @ 000000000068fa60] File position before avformat_find_stream_info() is 0 [mpegts @ 000000000068fa60] parser not found for codec none, packets or times may be invalid. [mpegts @ 000000000068fa60] parser not found for codec none, packets or times may be invalid. [mpegts @ 000000000068fa60] parser not found for codec none, packets or times may be invalid. [mpegts @ 000000000068fa60] parser not found for codec none, packets or times may be invalid. [mpeg2video @ 000000000052e900] mpeg_decode_postinit() failure [mpeg2video @ 000000000052e900] mpeg_decode_postinit() failure [mpeg2video @ 000000000052e900] mpeg_decode_postinit() failure [mpeg2video @ 000000000052e900] mpeg_decode_postinit() failure [mpeg2video @ 000000000052e900] mpeg_decode_postinit() failure [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpeg2video @ 000000000052e900] mpeg_decode_postinit() failure [mpeg2video @ 000000000052e900] mpeg_decode_postinit() failure [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419072365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419504365 in the queue [mpegts @ 000000000068fa60] max_analyze_duration 5000000 reached at 5016000 [mpegts @ 000000000068fa60] Could not find codec parameters for stream 2 (Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p): unspecified frame size Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 000000000068fa60] Could not find codec parameters for stream 4 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 000000000068fa60] Could not find codec parameters for stream 5 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 000000000068fa60] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [mpegts @ 000000000068fa60] Could not find codec parameters for stream 7 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options [NULL @ 0000000000538be0] start time is not set in estimate_timings_from_pts [NULL @ 000000000053f820] start time is not set in estimate_timings_from_pts [NULL @ 000000000053fea0] start time is not set in estimate_timings_from_pts [NULL @ 00000000005a2300] start time is not set in estimate_timings_from_pts [NULL @ 00000000005a84e0] start time is not set in estimate_timings_from_pts [NULL @ 00000000005ae880] start time is not set in estimate_timings_from_pts [mpegts @ 000000000068fa60] PES packet size mismatch [mpegts @ 000000000068fa60] PES packet size mismatch [mpegts @ 000000000068fa60] File position after avformat_find_stream_info() is 0 Input #0, mpegts, from 'Suburgatory-20121110-1024.TS': Duration: 00:35:58.16, start: 26878.341833, bitrate: 3916 kb/s Program 8325 Metadata: service_name : ITV2 service_provider: Program 8384 Metadata: service_name : Channel 4 service_provider: Program 8452 Metadata: service_name : Channel 4+1 service_provider: Program 8448 Metadata: service_name : E4 service_provider: Program 8442 Metadata: service_name : More 4 service_provider: Program 8577 Metadata: service_name : Gay Rabbit service_provider: Program 8500 Metadata: service_name : Channel 5 service_provider: Program 8262 Metadata: service_name : ITV1 service_provider: Program 8642 Metadata: service_name : Rabbit service_provider: Program 8362 Metadata: service_name : ITV1 +1 service_provider: No Program Stream #0:0[0xb0a], 129, 1/90000: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0xb0b](eng), 211, 1/90000: Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s Stream #0:2[0xb0d](eng), 0, 1/90000: Audio: mp3 ([4][0][0][0] / 0x0004), 0 channels, s16p (visual impaired) Stream #0:3[0xb0c](eng), 0, 1/90000: Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:4[0x8b7], 0, 1/90000: Unknown: none ([11][0][0][0] / 0x000B) Stream #0:5[0x8b8], 0, 1/90000: Unknown: none ([11][0][0][0] / 0x000B) Stream #0:6[0x8b9], 0, 1/90000: Unknown: none ([11][0][0][0] / 0x000B) Stream #0:7[0xbb9], 0, 1/90000: Unknown: none ([5][0][0][0] / 0x0005) Successfully openened the file. Parsing a group of options: output file sub.mkv. Applying option sn (disable subtitle) with argument 1. Successfully parsed a group of options. Opening an output file: sub.mkv. [buffer @ 000000000052cce0] Setting entry with key 'video_size' to value '704x576' [buffer @ 000000000052cce0] Setting entry with key 'pix_fmt' to value '0' [buffer @ 000000000052cce0] Setting entry with key 'time_base' to value '1/90000' [buffer @ 000000000052cce0] Setting entry with key 'pixel_aspect' to value '16/11' [buffer @ 000000000052cce0] Setting entry with key 'sws_param' to value 'flags=2' [buffer @ 000000000052cce0] Setting entry with key 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 00000000005455c0] w:704 h:576 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:16/11 sws_param:flags=2 [mpegts @ 000000000068fa60] sub2video: using 704x576 canvas [buffer @ 000000000052cba0] Setting entry with key 'video_size' to value '704x576' [buffer @ 000000000052cba0] Setting entry with key 'pix_fmt' to value '0' [buffer @ 000000000052cba0] Setting entry with key 'time_base' to value '1/90000' [buffer @ 000000000052cba0] Setting entry with key 'pixel_aspect' to value '0/1' [buffer @ 000000000052cba0] Setting entry with key 'sws_param' to value 'flags=2' [graph 0 input from stream 0:3 @ 00000000005454a0] w:704 h:576 pixfmt:yuv420p tb:1/90000 fr:0/1 sar:0/1 sws_param:flags=2 Successfully openened the file. [scale @ 000000000052cf60] Setting 'w' to value '0' [scale @ 000000000052cf60] Setting 'h' to value '0' [auto-inserted scaler 0 @ 0000000000545800] w:0 h:0 flags:'' interl:0 [Parsed_overlay_0 @ 0000000000545540] auto-inserting filter 'auto-inserted scaler 0' between the filter 'graph 0 input from stream 0:3' and the filter 'Parsed_overlay_0' [auto-inserted scaler 0 @ 0000000000545800] w:704 h:576 fmt:yuv420p sar:0/1 -> w:704 h:576 fmt:yuva420p sar:0/1 flags:0x2 [Parsed_overlay_0 @ 0000000000545540] main w:704 h:576 fmt:yuv420p overlay x:0 y:0 w:704 h:576 fmt:yuva420p [abuffer @ 000000000052d280] Setting entry with key 'time_base' to value '1/48000' [abuffer @ 000000000052d280] Setting entry with key 'sample_rate' to value '48000' [abuffer @ 000000000052d280] Setting entry with key 'sample_fmt' to value 's16p' [abuffer @ 000000000052d280] Setting entry with key 'channel_layout' to value '0x3' [graph 1 input from stream 0:1 @ 0000000000545920] tb:1/48000 samplefmt:s16p samplerate:48000 chlayout:0x3 [aformat @ 0000000000529760] Setting entry with key 'sample_fmts' to value 'fltp' [audio format for output stream 0:1 @ 0000000000545380] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1' [auto-inserted resampler 0 @ 0000000000543ac0] chl:stereo fmt:s16p r:48000Hz -> chl:stereo fmt:fltp r:48000Hz [libx264 @ 000000000283cc00] using mv_range_thread = 40 [libx264 @ 000000000283cc00] using SAR=16/11 [libx264 @ 000000000283cc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX [libx264 @ 000000000283cc00] profile High, level 3.0 [libx264 @ 000000000283cc00] 264 - core 129 r2230 1cffe9f - 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=25 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 [mpeg2video @ 000000000052e900] detected 4 logical cores Output #0, matroska, to 'sub.mkv': Metadata: encoder : Lavf54.59.103 Stream #0:0, 0, 1/1000: Video: h264, yuv420p, 704x576 [SAR 16:11 DAR 16:9], q=-1--1, 1k tbn, 25 tbc Stream #0:1(eng), 0, 1/1000: Audio: vorbis, 48000 Hz, stereo, fltp Stream mapping: Stream #0:0 (mpeg2video) -> overlay:main (graph 0) Stream #0:3 (dvbsub) -> overlay:overlay (graph 0) overlay (graph 0) -> Stream #0:0 (libx264) Stream #0:1 -> #0:1 (mp2 -> libvorbis) Press [q] to stop, [?] for help [auto-inserted scaler 0 @ 0000000000545800] w:704 h:576 fmt:bgra sar:0/1 -> w:704 h:576 fmt:yuva420p sar:0/1 flags:0x2 [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419061565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419072365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419072365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419072365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419072365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419083165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419083165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419083165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419083165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419093965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419093965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419093965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419093965 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419104765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419104765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419104765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419104765 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419115565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419115565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419115565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419115565 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419126365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419126365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419126365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419126365 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419137165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419137165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419137165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419137165 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419147965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419147965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419147965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419147965 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419158765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419158765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419158765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419158765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419169565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419169565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419169565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419169565 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419180365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419180365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419180365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419180365 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419191165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419191165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419191165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419191165 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419201965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419201965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419201965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419201965 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419212765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419212765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419212765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419212765 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419223565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419223565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419223565 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419223565 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419234365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419234365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419234365 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419234365 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) frame= 47 fps=0.0 q=0.0 size= 5kB time=00:00:02.08 bitrate= 17.8kbits/s first_dts 2419050765 not matching first dts 2419245165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419245165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419245165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419245165 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419255965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419255965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419255965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419255965 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 0 QP=25.73 NAL=3 Slice:I Poc:0 I:1584 P:0 SKIP:0 size=88501 bytes [matroska @ 00000000028110a0] Writing block at offset 4653, size 45, pts 0, dts 0, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 4704, size 62, pts 3, dts 3, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 4772, size 68, pts 6, dts 6, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 4846, size 65, pts 8, dts 8, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 4917, size 268, pts 11, dts 11, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 5192, size 261, pts 23, dts 23, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 5460, size 253, pts 44, dts 44, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 5720, size 264, pts 66, dts 66, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 5991, size 262, pts 87, dts 87, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 6260, size 267, pts 108, dts 108, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 6534, size 262, pts 130, dts 130, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 6803, size 263, pts 151, dts 151, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 7073, size 265, pts 172, dts 172, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 7345, size 253, pts 194, dts 194, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 7605, size 257, pts 215, dts 215, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 7869, size 263, pts 236, dts 236, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 8139, size 257, pts 258, dts 258, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 8403, size 271, pts 279, dts 279, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 8681, size 275, pts 300, dts 300, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 8963, size 273, pts 322, dts 322, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 9243, size 262, pts 343, dts 343, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 9512, size 259, pts 364, dts 364, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 9778, size 269, pts 386, dts 386, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 10054, size 264, pts 407, dts 407, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 10325, size 264, pts 428, dts 428, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 10596, size 267, pts 450, dts 450, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 10870, size 272, pts 471, dts 471, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 11149, size 257, pts 492, dts 492, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 11413, size 263, pts 514, dts 514, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 11683, size 262, pts 535, dts 535, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 11952, size 258, pts 556, dts 556, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 12217, size 263, pts 578, dts 578, duration 21, flags 128 [matroska @ 00000000028110a0] Starting new cluster at offset 12487 bytes, pts 683 [matroska @ 00000000028110a0] Writing block at offset 12503, size 270, pts 599, dts 599, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 12780, size 89190, pts 683, dts 603, duration 40, flags 128 [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 1 QP=25.82 NAL=2 Slice:P Poc:4 I:23 P:1357 SKIP:204 size=18220 bytes [matroska @ 00000000028110a0] Writing block at offset 101979, size 259, pts 620, dts 620, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 102245, size 265, pts 642, dts 642, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 102517, size 18220, pts 763, dts 643, duration 40, flags 0 [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 2 QP=31.47 NAL=0 Slice:B Poc:2 I:0 P:992 SKIP:569 size=3033 bytes [matroska @ 00000000028110a0] Writing block at offset 120745, size 270, pts 663, dts 663, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 121022, size 3033, pts 723, dts 683, duration 40, flags 0 [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419266765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419266765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419266765 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2419266765 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 3 QP=25.82 NAL=2 Slice:P Poc:8 I:28 P:1511 SKIP:45 size=27377 bytes [matroska @ 00000000028110a0] Writing block at offset 124062, size 273, pts 684, dts 684, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 124342, size 263, pts 706, dts 706, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 124612, size 27377, pts 843, dts 723, duration 40, flags 0 [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 354 QP=21.60 NAL=2 Slice:B Poc:78 I:2 P:38 SKIP:1544 size=83 bytes [matroska @ 00000000028110a0] Writing block at offset 2420842, size 243, pts 14743, dts 14743, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2421092, size 83, pts 14843, dts 14763, duration 40, flags 0 [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420487165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420487165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420487165 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420487165 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 355 QP=19.00 NAL=0 Slice:B Poc:76 I:3 P:23 SKIP:1558 size=65 bytes [matroska @ 00000000028110a0] Writing block at offset 2421181, size 252, pts 14764, dts 14764, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2421440, size 235, pts 14786, dts 14786, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2421682, size 65, pts 14803, dts 14803, duration 40, flags 0 sub2video: rectangle overflowing [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420497965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420497965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420497965 in the queue [mpegts @ 000000000068fa60] first_dts 2419050765 not matching first dts 2420497965 in the queue [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 356 QP=19.00 NAL=0 Slice:B Poc:80 I:2 P:19 SKIP:1563 size=57 bytes [matroska @ 00000000028110a0] Writing block at offset 2421753, size 256, pts 14807, dts 14807, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2422016, size 251, pts 14828, dts 14828, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2422274, size 57, pts 14883, dts 14843, duration 40, flags 0 [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 436 QP=25.94 NAL=2 Slice:P Poc:24 I:391 P:1044 SKIP:149 size=11500 bytes [matroska @ 00000000028110a0] Writing block at offset 2575659, size 207, pts 18023, dts 18023, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2575873, size 11500, pts 18163, dts 18043, duration 40, flags 0 [Parsed_overlay_0 @ 0000000000545540] Copying data in avfilter (have perms 5, need 7, reject 0) [libx264 @ 000000000283cc00] frame= 437 QP=28.69 NAL=0 Slice:B Poc:22 I:59 P:784 SKIP:716 size=4541 bytes [matroska @ 00000000028110a0] Writing block at offset 2587380, size 212, pts 18044, dts 18044, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2587599, size 215, pts 18066, dts 18066, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2587821, size 4541, pts 18123, dts 18083, duration 40, flags 0 [libx264 @ 000000000283cc00] scene cut at 484 Icost:1272763 Pcost:1249842 ratio:0.0180 bias:0.1453 gop:59 (imb:1313 pmb:115) [libx264 @ 000000000283cc00] frame= 438 QP=25.76 NAL=2 Slice:P Poc:28 I:447 P:1026 SKIP:111 size=14204 bytes [matroska @ 00000000028110a0] Writing block at offset 2592369, size 211, pts 18087, dts 18087, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2592587, size 205, pts 18108, dts 18108, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2592799, size 14204, pts 18243, dts 18123, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 439 QP=28.42 NAL=0 Slice:B Poc:26 I:122 P:622 SKIP:788 size=5868 bytes [matroska @ 00000000028110a0] Writing block at offset 2607010, size 205, pts 18130, dts 18130, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2607222, size 212, pts 18151, dts 18151, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2607441, size 5868, pts 18203, dts 18163, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 440 QP=25.16 NAL=2 Slice:P Poc:32 I:488 P:912 SKIP:184 size=15493 bytes [matroska @ 00000000028110a0] Writing block at offset 2613316, size 219, pts 18172, dts 18172, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2613542, size 57, pts 18194, dts 18194, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2613605, size 15493, pts 18323, dts 18203, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 441 QP=29.92 NAL=0 Slice:B Poc:30 I:75 P:699 SKIP:765 size=5685 bytes [matroska @ 00000000028110a0] Writing block at offset 2629105, size 64, pts 18206, dts 18206, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629175, size 58, pts 18208, dts 18208, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629239, size 63, pts 18211, dts 18211, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629308, size 61, pts 18214, dts 18214, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629375, size 63, pts 18216, dts 18216, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629444, size 60, pts 18219, dts 18219, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629510, size 62, pts 18222, dts 18222, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629578, size 65, pts 18224, dts 18224, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629649, size 283, pts 18227, dts 18227, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2629939, size 259, pts 18239, dts 18239, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2630205, size 5685, pts 18283, dts 18243, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 442 QP=25.34 NAL=2 Slice:P Poc:36 I:184 P:1179 SKIP:221 size=11289 bytes [matroska @ 00000000028110a0] Writing block at offset 2635897, size 266, pts 18260, dts 18260, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2636170, size 271, pts 18282, dts 18282, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2636448, size 11289, pts 18403, dts 18283, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 443 QP=29.82 NAL=0 Slice:B Poc:34 I:30 P:819 SKIP:708 size=3551 bytes [matroska @ 00000000028110a0] Writing block at offset 2647744, size 289, pts 18303, dts 18303, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2648040, size 3551, pts 18363, dts 18323, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 444 QP=24.96 NAL=2 Slice:P Poc:38 I:177 P:1170 SKIP:237 size=10799 bytes [matroska @ 00000000028110a0] Writing block at offset 2651598, size 63, pts 18324, dts 18324, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2651667, size 70, pts 18336, dts 18336, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2651743, size 82, pts 18339, dts 18339, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2651831, size 290, pts 18342, dts 18342, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2652128, size 265, pts 18354, dts 18354, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2652400, size 10799, pts 18443, dts 18363, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 445 QP=25.89 NAL=2 Slice:P Poc:44 I:222 P:1141 SKIP:221 size=10986 bytes [matroska @ 00000000028110a0] Writing block at offset 2663206, size 263, pts 18375, dts 18375, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2663476, size 258, pts 18396, dts 18396, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2663741, size 10986, pts 18563, dts 18403, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 446 QP=29.26 NAL=2 Slice:B Poc:42 I:7 P:808 SKIP:738 size=2491 bytes [matroska @ 00000000028110a0] Writing block at offset 2674734, size 266, pts 18418, dts 18418, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2675007, size 267, pts 18439, dts 18439, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2675281, size 2491, pts 18523, dts 18443, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 447 QP=29.58 NAL=0 Slice:B Poc:40 I:8 P:833 SKIP:720 size=2710 bytes [matroska @ 00000000028110a0] Writing block at offset 2677779, size 260, pts 18460, dts 18460, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2678046, size 256, pts 18482, dts 18482, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2678309, size 2710, pts 18483, dts 18483, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 448 QP=25.42 NAL=2 Slice:P Poc:48 I:521 P:985 SKIP:78 size=13611 bytes [matroska @ 00000000028110a0] Writing block at offset 2681026, size 250, pts 18503, dts 18503, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2681283, size 13611, pts 18643, dts 18523, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 449 QP=29.61 NAL=0 Slice:B Poc:46 I:13 P:927 SKIP:605 size=4324 bytes [matroska @ 00000000028110a0] Writing block at offset 2694901, size 255, pts 18524, dts 18524, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2695163, size 257, pts 18546, dts 18546, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2695427, size 4324, pts 18603, dts 18563, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 450 QP=25.73 NAL=2 Slice:P Poc:52 I:332 P:1113 SKIP:139 size=12840 bytes [matroska @ 00000000028110a0] Writing block at offset 2699758, size 254, pts 18567, dts 18567, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2700019, size 259, pts 18588, dts 18588, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2700285, size 12840, pts 18723, dts 18603, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 451 QP=29.06 NAL=0 Slice:B Poc:50 I:135 P:632 SKIP:748 size=4963 bytes [matroska @ 00000000028110a0] Writing block at offset 2713132, size 57, pts 18610, dts 18610, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713195, size 67, pts 18622, dts 18622, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713268, size 63, pts 18624, dts 18624, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713337, size 56, pts 18627, dts 18627, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713399, size 54, pts 18630, dts 18630, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713459, size 63, pts 18632, dts 18632, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713528, size 69, pts 18635, dts 18635, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713603, size 58, pts 18638, dts 18638, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713667, size 55, pts 18640, dts 18640, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2713728, size 4963, pts 18683, dts 18643, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 452 QP=25.59 NAL=2 Slice:P Poc:56 I:424 P:961 SKIP:199 size=11745 bytes [matroska @ 00000000028110a0] Writing block at offset 2718698, size 61, pts 18643, dts 18643, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2718765, size 59, pts 18646, dts 18646, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2718830, size 283, pts 18648, dts 18648, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2719120, size 255, pts 18660, dts 18660, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2719382, size 265, pts 18682, dts 18682, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2719654, size 11745, pts 18803, dts 18683, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 453 QP=29.75 NAL=0 Slice:B Poc:54 I:45 P:759 SKIP:743 size=3920 bytes [matroska @ 00000000028110a0] Writing block at offset 2731406, size 272, pts 18703, dts 18703, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2731685, size 3920, pts 18763, dts 18723, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 454 QP=25.54 NAL=2 Slice:P Poc:60 I:371 P:1135 SKIP:78 size=12209 bytes [matroska @ 00000000028110a0] Writing block at offset 2735612, size 268, pts 18724, dts 18724, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2735887, size 276, pts 18746, dts 18746, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2736170, size 12209, pts 18883, dts 18763, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 455 QP=28.93 NAL=0 Slice:B Poc:58 I:50 P:850 SKIP:659 size=3854 bytes [matroska @ 00000000028110a0] Writing block at offset 2748386, size 256, pts 18767, dts 18767, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2748649, size 257, pts 18788, dts 18788, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2748913, size 3854, pts 18843, dts 18803, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 456 QP=24.28 NAL=2 Slice:P Poc:62 I:420 P:988 SKIP:176 size=14442 bytes [matroska @ 00000000028110a0] Writing block at offset 2752774, size 268, pts 18810, dts 18810, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2753049, size 258, pts 18831, dts 18831, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2753314, size 14442, pts 18923, dts 18843, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 457 QP=25.39 NAL=2 Slice:P Poc:68 I:134 P:1203 SKIP:247 size=9387 bytes [matroska @ 00000000028110a0] Writing block at offset 2767763, size 255, pts 18852, dts 18852, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2768025, size 258, pts 18874, dts 18874, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2768290, size 9387, pts 19043, dts 18883, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 458 QP=30.67 NAL=2 Slice:B Poc:66 I:4 P:693 SKIP:876 size=1698 bytes [matroska @ 00000000028110a0] Writing block at offset 2777684, size 258, pts 18895, dts 18895, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2777949, size 267, pts 18916, dts 18916, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2778223, size 1698, pts 19003, dts 18923, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 459 QP=30.32 NAL=0 Slice:B Poc:64 I:1 P:795 SKIP:780 size=1810 bytes [matroska @ 00000000028110a0] Writing block at offset 2779928, size 262, pts 18938, dts 18938, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2780197, size 253, pts 18959, dts 18959, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2780457, size 1810, pts 18963, dts 18963, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 460 QP=23.21 NAL=2 Slice:P Poc:74 I:960 P:578 SKIP:46 size=17911 bytes [matroska @ 00000000028110a0] Writing block at offset 2782274, size 250, pts 18980, dts 18980, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2782531, size 246, pts 19002, dts 19002, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2782784, size 17911, pts 19163, dts 19003, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 461 QP=30.11 NAL=2 Slice:B Poc:72 I:2 P:678 SKIP:896 size=1478 bytes [matroska @ 00000000028110a0] Writing block at offset 2800703, size 252, pts 19023, dts 19023, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2800962, size 1478, pts 19123, dts 19043, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 462 QP=29.97 NAL=0 Slice:B Poc:70 I:0 P:868 SKIP:706 size=1655 bytes [matroska @ 00000000028110a0] Writing block at offset 2802447, size 245, pts 19044, dts 19044, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2802699, size 247, pts 19066, dts 19066, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2802953, size 1655, pts 19083, dts 19083, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 463 QP=23.55 NAL=2 Slice:P Poc:82 I:85 P:1287 SKIP:212 size=9062 bytes [matroska @ 00000000028110a0] Writing block at offset 2804615, size 249, pts 19087, dts 19087, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2804871, size 259, pts 19108, dts 19108, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2805137, size 9062, pts 19323, dts 19123, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 464 QP=27.22 NAL=2 Slice:B Poc:78 I:4 P:806 SKIP:763 size=2009 bytes [matroska @ 00000000028110a0] Writing block at offset 2814206, size 49, pts 19130, dts 19130, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814261, size 46, pts 19142, dts 19142, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814313, size 57, pts 19144, dts 19144, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814376, size 47, pts 19147, dts 19147, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814429, size 50, pts 19150, dts 19150, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814485, size 48, pts 19152, dts 19152, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814539, size 60, pts 19155, dts 19155, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814605, size 53, pts 19158, dts 19158, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814664, size 62, pts 19160, dts 19160, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2814732, size 2009, pts 19243, dts 19163, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 465 QP=30.23 NAL=0 Slice:B Poc:76 I:1 P:666 SKIP:915 size=1338 bytes [matroska @ 00000000028110a0] Writing block at offset 2816748, size 50, pts 19163, dts 19163, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2816804, size 61, pts 19166, dts 19166, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2816871, size 63, pts 19168, dts 19168, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2816940, size 63, pts 19171, dts 19171, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817009, size 62, pts 19174, dts 19174, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817077, size 63, pts 19176, dts 19176, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817146, size 63, pts 19179, dts 19179, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817215, size 63, pts 19182, dts 19182, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817284, size 58, pts 19184, dts 19184, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817348, size 61, pts 19187, dts 19187, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817415, size 60, pts 19190, dts 19190, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817481, size 254, pts 19192, dts 19192, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2817742, size 1338, pts 19203, dts 19203, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 466 QP=28.33 NAL=0 Slice:B Poc:80 I:2 P:671 SKIP:906 size=1179 bytes [matroska @ 00000000028110a0] Writing block at offset 2819087, size 257, pts 19204, dts 19204, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2819351, size 248, pts 19226, dts 19226, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2819606, size 1179, pts 19283, dts 19243, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 467 QP=23.99 NAL=2 Slice:P Poc:90 I:37 P:1181 SKIP:366 size=6961 bytes [matroska @ 00000000028110a0] Writing block at offset 2820792, size 266, pts 19247, dts 19247, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2821065, size 64, pts 19268, dts 19268, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2821135, size 59, pts 19280, dts 19280, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2821200, size 6961, pts 19483, dts 19283, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 468 QP=26.65 NAL=2 Slice:B Poc:86 I:8 P:639 SKIP:933 size=1163 bytes [matroska @ 00000000028110a0] Writing block at offset 2828168, size 46, pts 19283, dts 19283, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828220, size 47, pts 19286, dts 19286, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828273, size 43, pts 19288, dts 19288, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828322, size 47, pts 19291, dts 19291, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828375, size 46, pts 19294, dts 19294, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828427, size 65, pts 19296, dts 19296, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828498, size 63, pts 19299, dts 19299, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828567, size 65, pts 19302, dts 19302, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828638, size 63, pts 19304, dts 19304, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828707, size 62, pts 19307, dts 19307, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828775, size 61, pts 19310, dts 19310, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828842, size 67, pts 19312, dts 19312, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828915, size 60, pts 19315, dts 19315, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2828981, size 68, pts 19318, dts 19318, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2829055, size 64, pts 19320, dts 19320, duration 3, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2829125, size 1163, pts 19403, dts 19323, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 469 QP=29.90 NAL=0 Slice:B Poc:84 I:0 P:497 SKIP:1086 size=639 bytes [matroska @ 00000000028110a0] Writing block at offset 2830295, size 273, pts 19323, dts 19323, duration 12, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2830575, size 258, pts 19335, dts 19335, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2830840, size 259, pts 19356, dts 19356, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2831106, size 639, pts 19363, dts 19363, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 470 QP=29.20 NAL=0 Slice:B Poc:88 I:0 P:413 SKIP:1171 size=434 bytes [matroska @ 00000000028110a0] Writing block at offset 2831752, size 262, pts 19378, dts 19378, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2832021, size 260, pts 19399, dts 19399, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2832288, size 434, pts 19443, dts 19403, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 471 QP=23.03 NAL=2 Slice:P Poc:98 I:234 P:1120 SKIP:230 size=9353 bytes [matroska @ 00000000028110a0] Writing block at offset 2832729, size 247, pts 19420, dts 19420, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2832983, size 255, pts 19442, dts 19442, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2833245, size 9353, pts 19643, dts 19443, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 472 QP=25.67 NAL=2 Slice:B Poc:94 I:0 P:593 SKIP:990 size=528 bytes [matroska @ 00000000028110a0] Writing block at offset 2842605, size 265, pts 19463, dts 19463, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2842877, size 528, pts 19563, dts 19483, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 473 QP=26.29 NAL=0 Slice:B Poc:92 I:3 P:528 SKIP:1053 size=444 bytes [matroska @ 00000000028110a0] Writing block at offset 2843412, size 256, pts 19484, dts 19484, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2843675, size 263, pts 19506, dts 19506, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2843945, size 444, pts 19523, dts 19523, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 474 QP=24.85 NAL=0 Slice:B Poc:96 I:0 P:352 SKIP:1232 size=310 bytes [matroska @ 00000000028110a0] Writing block at offset 2844396, size 255, pts 19527, dts 19527, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2844658, size 253, pts 19548, dts 19548, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2844918, size 310, pts 19603, dts 19563, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 475 QP=21.13 NAL=2 Slice:P Poc:106 I:13 P:431 SKIP:1140 size=1636 bytes [matroska @ 00000000028110a0] Writing block at offset 2845235, size 241, pts 19570, dts 19570, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2845483, size 247, pts 19591, dts 19591, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2845737, size 1636, pts 19803, dts 19603, duration 40, flags 0 [libx264 @ 000000000283cc00] frame= 476 QP=21.88 NAL=2 Slice:B Poc:102 I:1 P:294 SKIP:1289 size=479 bytes [libx264 @ 000000000283cc00] frame= 477 QP=25.18 NAL=0 Slice:B Poc:100 I:0 P:241 SKIP:1343 size=205 bytes [libx264 @ 000000000283cc00] frame= 478 QP=25.43 NAL=0 Slice:B Poc:104 I:0 P:174 SKIP:1410 size=193 bytes [libx264 @ 000000000283cc00] frame= 479 QP=21.64 NAL=2 Slice:P Poc:114 I:1 P:73 SKIP:1510 size=192 bytes [libx264 @ 000000000283cc00] frame= 480 QP=21.92 NAL=2 Slice:B Poc:110 I:0 P:118 SKIP:1466 size=155 bytes [libx264 @ 000000000283cc00] frame= 481 QP=26.02 NAL=0 Slice:B Poc:108 I:0 P:61 SKIP:1523 size=86 bytes [libx264 @ 000000000283cc00] frame= 482 QP=25.15 NAL=0 Slice:B Poc:112 I:0 P:56 SKIP:1528 size=87 bytes [libx264 @ 000000000283cc00] frame= 483 QP=21.11 NAL=2 Slice:P Poc:116 I:0 P:31 SKIP:1553 size=83 bytes [libx264 @ 000000000283cc00] frame= 484 QP=23.89 NAL=3 Slice:I Poc:0 I:1584 P:0 SKIP:0 size=44194 bytes [libx264 @ 000000000283cc00] frame= 485 QP=29.93 NAL=2 Slice:P Poc:4 I:4 P:425 SKIP:1155 size=849 bytes [libx264 @ 000000000283cc00] frame= 486 QP=30.13 NAL=0 Slice:B Poc:2 I:0 P:496 SKIP:1087 size=625 bytes [matroska @ 00000000028110a0] Writing block at offset 2847380, size 249, pts 19612, dts 19612, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2847636, size 251, pts 19634, dts 19634, duration 21, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2847894, size 479, pts 19723, dts 19643, duration 40, flags 0 [libvorbis @ 000000000283df40] Trying to remove 704 more samples than there are in the queue [matroska @ 00000000028110a0] Writing block at offset 2848380, size 254, pts 19655, dts 19655, duration 21, flags 128 Writing block at offset 2848641, size 250, pts 19676, dts 19676, duration 7, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2848898, size 205, pts 19683, dts 19683, duration 40, flags 0 [matroska @ 00000000028110a0] Writing block at offset 2849110, size 193, pts 19763, dts 19723, duration 40, flags 0 [matroska @ 00000000028110a0] Writing block at offset 2849310, size 192, pts 19963, dts 19763, duration 40, flags 0 [matroska @ 00000000028110a0] Writing block at offset 2849509, size 155, pts 19883, dts 19803, duration 40, flags 0 [matroska @ 00000000028110a0] Writing block at offset 2849671, size 86, pts 19843, dts 19843, duration 40, flags 0 [matroska @ 00000000028110a0] Writing block at offset 2849763, size 87, pts 19923, dts 19883, duration 40, flags 0 [matroska @ 00000000028110a0] Writing block at offset 2849856, size 83, pts 20003, dts 19923, duration 40, flags 0 [matroska @ 00000000028110a0] Starting new cluster at offset 2849945 bytes, pts 20043 [matroska @ 00000000028110a0] Writing block at offset 2849961, size 44194, pts 20043, dts 19963, duration 40, flags 128 [matroska @ 00000000028110a0] Writing block at offset 2894163, size 849, pts 20123, dts 20003, duration 40, flags 0 [matroska @ 00000000028110a0] Writing block at offset 2895019, size 625, pts 20083, dts 20043, duration 40, flags 0 [matroska @ 00000000028110a0] end duration = 20163 frame= 487 fps= 60 q=-1.0 Lsize= 2828kB time=00:00:20.08 bitrate=1153.7kbits/s video:2581kB audio:232kB subtitle:0 global headers:4kB muxing overhead 0.398881% [libx264 @ 000000000283cc00] frame I:12 Avg QP:19.79 size: 46061 [libx264 @ 000000000283cc00] frame P:192 Avg QP:22.75 size: 8870 [libx264 @ 000000000283cc00] frame B:283 Avg QP:24.75 size: 1365 [libx264 @ 000000000283cc00] consecutive B-frames: 10.3% 31.6% 15.4% 42.7% [libx264 @ 000000000283cc00] mb I I16..4: 26.2% 63.8% 10.0% [libx264 @ 000000000283cc00] mb P I16..4: 2.1% 4.6% 0.7% P16..4: 30.6% 11.7% 7.5% 0.0% 0.0% skip:42.8% [libx264 @ 000000000283cc00] mb B I16..4: 0.1% 0.3% 0.0% B16..8: 21.7% 2.2% 0.5% direct: 1.1% skip:74.1% L0:37.6% L1:49.1% BI:13.4% [libx264 @ 000000000283cc00] 8x8 transform intra:62.8% inter:80.1% [libx264 @ 000000000283cc00] coded y,uvDC,uvAC intra: 58.5% 63.8% 41.7% inter: 12.6% 14.6% 3.5% [libx264 @ 000000000283cc00] i16 v,h,dc,p: 71% 16% 6% 7% [libx264 @ 000000000283cc00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 20% 26% 3% 3% 5% 3% 6% 5% [libx264 @ 000000000283cc00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 15% 10% 4% 4% 6% 4% 5% 3% [libx264 @ 000000000283cc00] i8c dc,h,v,p: 53% 18% 23% 6% [libx264 @ 000000000283cc00] Weighted P-Frames: Y:0.5% UV:0.0% [libx264 @ 000000000283cc00] ref P L0: 62.4% 18.5% 14.4% 4.7% 0.0% [libx264 @ 000000000283cc00] ref B L0: 83.7% 14.8% 1.5% [libx264 @ 000000000283cc00] ref B L1: 95.4% 4.6% [libx264 @ 000000000283cc00] kb/s:1085.00 [AVIOContext @ 00000000005287e0] Statistics: 12570768 bytes read, 3 seeks From lou at lrcd.com Thu Feb 14 21:13:04 2013 From: lou at lrcd.com (Lou) Date: Thu, 14 Feb 2013 11:13:04 -0900 Subject: [FFmpeg-user] Need help encoding a specific video for HTML5 In-Reply-To: <511CB636.4000408@fireslug.com> References: <20130206221024.GK13058@arborea> <511CB636.4000408@fireslug.com> Message-ID: <20130214111304.66952636@lrcd.com> On Thu, 14 Feb 2013 15:32:30 +0530 Antony Peiris wrote: > ffmpeg version 0.10.2 Copyright (c) 2000-2012 the FFmpeg developers 0.10.2 is considered old here. Using ffmpeg from git head is usually recommended for general users. > configuration: Your configuration is blank meaning you will be unable to encode with libx264, libvpx, and libvorbis. You will need to configure with: --enable-gpl --enable-libvorbis --enable-libvpx --enable-libx264 ...this does not include any external AAC encoding library that you may want to use instead of the native FFmpeg AAC encoder (aac). > I want to create a .mp4, .ogv and .webm suitable for playing on the web, > and especially mobile devices running Apple iOS (iPad). I was > recommended the following command for the .mp4, but I need help with the > others as well: > > ffmpeg-y-i in.mov-filter:v scale=640:360 \ > -c:v libx264-preset:v slow-profile:v baseline \ > -x264opts level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1 \ > -b:v 500k-r:v25/1 -force_fps-movflags faststart \ > -c:a libfaac-b:a 80k-pass x out.mp4 Your command is missing some spaces between options. I don't think you should force a frame size of 640x360: instead you can use 640:-1 to allow ffmpeg to automatically select a height that will preserve aspect. If the returned value is negative, then libx264 will complain and you can use "scale=640:trunc(ow/a/2)*2" instead. You probably don't need to change the frame rate from the original. If you're targeting iPad (and iPhone 4 and later) then you can use main profile, level 3.1 instead of baseline. For highest compatibility if you are also supporting old iPhone and iPod touch you can use baseline profile, level 3.0. See the "Preparing Media for Delivery to iOS-Based Devices" section of: It deals with live streaming, but I assume the "Preparing Media" section should be the same or similar for progressive download or whatever. > Is the above command the best solution for what I am trying to > accomplish (Apple iOS compatibility and mobile support)? Also, what > commands should I run for webm and ogv? ffmpeg -i input -c:v libvpx -c:a libvorbis -q:a 3 output.webm You should add your desired bitrate or quality for the video. I see no reason to use Theora video and Vorbis audio in ogv if you're going to supply VP8 video and Vorbis audio in webm. Please do not reply to an existing message and make a new subject for new questions. This is called "thread hijacking", and in clients that support a threaded view your new question will be buried under older stuff and therefore more likely to be ignored. From nicolas.george at normalesup.org Thu Feb 14 21:27:37 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 14 Feb 2013 21:27:37 +0100 Subject: [FFmpeg-user] Converting MPEG-TS to MKV with hard coded subtitles produces error message In-Reply-To: <511D435E.4080308@klymiarven.co.uk> References: <511D435E.4080308@klymiarven.co.uk> Message-ID: <20130214202737.GA32411@phare.normalesup.org> Le sextidi 26 pluvi?se, an CCXXI, Stuart a ?crit?: > I've tried cropping the subtitle stream before overlaying but still > get the "sub2video: rectangle overflowing" messages with the Zeranoe > build. I've also tried scaling the video stream and padding the video > stream. I think the canvas size is assigned equal to the video > stream size before applying the filters. Hence, scaling or padding > the video stream doesn't increase the canvas size to match the > subtitle rectangle dimensions. That is exactly that. Except if the resolution of the canvas for the subtitles is known, which can happen for vobsub or pgssub. Normally, you should be able to specify the resolution using the -s option: "-s:s 720x576" should do the trick. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From motty.cruz at gmail.com Fri Feb 15 00:52:25 2013 From: motty.cruz at gmail.com (motty cruz) Date: Thu, 14 Feb 2013 15:52:25 -0800 Subject: [FFmpeg-user] shell script for ffmpeg Message-ID: hello All, is there a utility to start ffmpeg and stop when video screen capturing? i'm not good at scripts and would like to automate start recording and stop recording. Thanks From lou at lrcd.com Fri Feb 15 01:11:03 2013 From: lou at lrcd.com (Lou) Date: Thu, 14 Feb 2013 15:11:03 -0900 Subject: [FFmpeg-user] shell script for ffmpeg In-Reply-To: References: Message-ID: <20130214151103.1a5bb07f@lrcd.com> On Thu, 14 Feb 2013 15:52:25 -0800 motty cruz wrote: > hello All, is there a utility to start ffmpeg and stop when video screen > capturing? i'm not good at scripts and would like to automate start > recording and stop recording. Thanks I don't totally understand your question, but you can "pause" a current recording by "suspending the job" with crtl+z (with the focus on the current console window), and then when you are ready to continue enter "fg" into the same console. From nichot20 at yahoo.com Fri Feb 15 12:17:43 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Fri, 15 Feb 2013 11:17:43 +0000 Subject: [FFmpeg-user] 404 error on webpage Message-ID: <511E1957.4060503@yahoo.com> http://ffmpeg.org/ffmpeg.html#See-Also has a link to:- http://ffmpeg.org/ffmpeg-bitstream-filters Which is currently giving a 404. -- Tim From chris.bouchard at framestore.com Fri Feb 15 12:50:18 2013 From: chris.bouchard at framestore.com (Chris Bouchard) Date: Fri, 15 Feb 2013 11:50:18 +0000 (UTC) Subject: [FFmpeg-user] RGB-YUV color shift References: <24B3E9BB-DF05-45F6-87A4-7F24DE15854D@glpf.net> <507FE35B.4090500@yahoo.com> <597BF29A-95B0-4116-9352-246F6C1962C0@glpf.net> <5B6EBE3B-2A87-4760-9B17-48C27C11796F@glpf.net> Message-ID: > > Is your original problem only reproducible when encoding > > to prores or also if you encode with a yuv420p encoder? > > (For example -vcodec mpeg4 -qscale 2) I have found the same colour shift, and that using -vf colormatrix=bt601:bt709 will fix the colours to be almost 100% accurate for conversions from RGB to YUV. Let's say 98% accurate; most people wouldn't notice. However there is definitely something else going on with ffmpeg's pixel format conversions: specifically when converting to yuv420p. I have noticed a very slight green tint being applied when you convert pixel formats from e.g. yuv422p to yuv420p. NO COLOUR SHIFT: -pix_fmt yuv422p -vcodec libx264 SUBTLE GREEN TINT: -pix_fmt yuv420p -vcodec libx264 Whatever options you use a grey image will go slightly green when ffmpeg converts it to 420. The problem seems to get worse if you scale the video down as well as convert pixel formats, so it could be an issue in the scaler. Definitely something dodgy with the pixel format conversion to 420. It's interesting that YouTube doesn't exhibit this problem, so their engineers have somehow got around it. But other video sites like Vimeo and my ffmpeg encodes do have this issue... Any thoughts from experts would be very welcome! From cehoyos at ag.or.at Fri Feb 15 15:16:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 15 Feb 2013 14:16:40 +0000 (UTC) Subject: [FFmpeg-user] RGB-YUV color shift References: <24B3E9BB-DF05-45F6-87A4-7F24DE15854D@glpf.net> <507FE35B.4090500@yahoo.com> <597BF29A-95B0-4116-9352-246F6C1962C0@glpf.net> <5B6EBE3B-2A87-4760-9B17-48C27C11796F@glpf.net> Message-ID: Chris Bouchard framestore.com> writes: > Whatever options you use a grey image will go slightly > green when ffmpeg converts it to 420. Can you reproduce this with -f lavfi -i testsrc or -i color as input and format=gray as first filter? If yes, please provide a command line together with complete, uncut console output. Carl Eugen From motty.cruz at gmail.com Fri Feb 15 15:54:42 2013 From: motty.cruz at gmail.com (motty cruz) Date: Fri, 15 Feb 2013 06:54:42 -0800 Subject: [FFmpeg-user] shell script for ffmpeg In-Reply-To: <20130214151103.1a5bb07f@lrcd.com> References: <20130214151103.1a5bb07f@lrcd.com> Message-ID: my question was if there is a shell script to start ffmpeg. for instance i use the following command to capture video from command line: ffmpeg -f x11grab -r 25 -q:v 0 out.mpg I was hoping some one will have a script to start that command without using the command line. Thanks, On Thu, Feb 14, 2013 at 4:11 PM, Lou wrote: > On Thu, 14 Feb 2013 15:52:25 -0800 > motty cruz wrote: > > > hello All, is there a utility to start ffmpeg and stop when video screen > > capturing? i'm not good at scripts and would like to automate start > > recording and stop recording. Thanks > > I don't totally understand your question, but you can "pause" a current > recording by "suspending the job" with crtl+z (with the focus on the > current console window), and then when you are ready to continue enter > "fg" into the same console. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From 23liam at googlemail.com Fri Feb 15 17:41:45 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Fri, 15 Feb 2013 16:41:45 +0000 Subject: [FFmpeg-user] shell script for ffmpeg In-Reply-To: References: <20130214151103.1a5bb07f@lrcd.com> Message-ID: > ffmpeg -f x11grab -r 25 -q:v 0 out.mpg This is not a working command-line, see here: https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20grab%20the%20desktop%20%28screen%29%20with%20FFmpeg > I was hoping some one will have a script to start that command without > using the command line. > > Thanks, A script along the lines of #!/bin/bash ffmpeg -f x11grab -r 25 -i :0.0 -q:v 0 out.mpg exit 0 will start the ffmpeg command. Just save the script, mark it as executable (chmod u+x filename - or you can use whatever GUI way your desktop environment supports) and you should be able to click on the script to. Stopping ffmpeg without the command-line is another issue, of course :v You could probably do something with kill or killall in a separate script to end the ffmpeg instance. From epkuson at gmail.com Fri Feb 15 17:55:44 2013 From: epkuson at gmail.com (ulf johansson) Date: Fri, 15 Feb 2013 11:55:44 -0500 Subject: [FFmpeg-user] ffmpeg stalls when trying to transcode live content from HD PVR Message-ID: Hi, I need some help with ffmpeg. I'm trying to configure ffmpeg to provide live TV HLS streaming and transcoding to my Ipad in my home. Project: Objective to stream live TV (HD) transcoded to my IPAD both in my house and using the 3G Data network. Input: Video source: Hauppauge HD PVR - analogue Component + OPTICAL => h264 AAC mpegts As soon as I'm trying to transcode the live TV stream it seems that the ffmeg just stops or stalls. Please see 1) and 2) below. 1). Stream from hauppauge - transcode to ipad format with lower bitrate and size - segment (HLS) streaming=> FFMPEG stalls!! $ ffmpeg -i /dev/video0 -vcodec h264 -b:v 256k -s 320x240 -bsf h264_mp4toannexb -flags -global_header -map 0 -f segment -segment_time 4 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 10 -segment_format mpegts -acodec libmp3lame -ab 128k stream%05d.ts ffmpeg version git-2013-02-12-7ff1a4b Copyright (c) 2000-2013 the FFmpeg developers built on Feb 11 2013 23:08:44 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x2b577c0] max_analyze_duration 5000000 reached at 5013333 microseconds [mpegts @ 0x2b577c0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from '/dev/video0': Duration: N/A, start: 0.387044, bitrate: 127 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (Main) (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: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s [libx264 @ 0x2bbfb60] using SAR=4/3 [libx264 @ 0x2bbfb60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x2bbfb60] profile High, level 1.3 [segment @ 0x2b5cc80] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x2b5cc80] Codec for stream 1 does not use global headers but container format requires global headers Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf54.62.100 Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=-1--1, 256 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libmp3lame) Press [q] to stop, [?] for help frame= 155 fps= 60 q=29.0 size=N/A time=00:00:05.20 bitrate=N/A dup=1 drop=0 ^C^C^CReceived signal 2: terminating OBS!! After ~ 150 fps the box stop streaming, and ffmeg just stops and I have to terminate it with multiple Ctrl Cs. The segment file, (stream00000.ts) even if it does not contain a lot of content it looks like properly transcoded content. 2). Stream from hauppauge - transcode to ipad format with lower bitrate and size - store in mpegts file, =>ffmpeg/transcoding- stalls!! $ ffmpeg -i /dev/video0 -vcodec h264 -b:v 256k -s 320x240 -bsf h264_mp4toannexb -flags -global_header -map 0 -acodec libmp3lame -ab 128k -f mpegts -y ~/Desktop/recorded_stream_transcoded.ts ffmpeg version git-2013-02-12-7ff1a4b Copyright (c) 2000-2013 the FFmpeg developers built on Feb 11 2013 23:08:44 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x36ea2c0] max_analyze_duration 5000000 reached at 5013333 microseconds [mpegts @ 0x36ea2c0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from '/dev/video0': Duration: N/A, start: 0.387044, bitrate: 122 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (Main) (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: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 122 kb/s [libx264 @ 0x36f01c0] using SAR=4/3 [libx264 @ 0x36f01c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x36f01c0] profile High, level 1.3 Output #0, mpegts, to '/home/jocho/Desktop/recorded_stream_transcoded.ts': Metadata: encoder : Lavf54.62.100 Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=-1--1, 256 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libmp3lame) Press [q] to stop, [?] for help frame= 165 fps= 54 q=31.0 size= 219kB time=00:00:05.52 bitrate= 324.7kbits/s dup=1 drop=0 Received signal 2: terminating OBS!! After ~ 150 fps the box stop streaming, and ffmeg just stops and I have to terminate it with multiple Ctrl Cs. This time no segment file created. 3. If I break up the task, i.e. to record a file and then later transcode the recorded file it is successful! 3.1 Record file in mpegts $ ffmpeg -i /dev/video0 -vcodec copy -acodec copy -y ~/Desktop/recorded_stream.ts ffmpeg version git-2013-02-12-7ff1a4b Copyright (c) 2000-2013 the FFmpeg developers built on Feb 11 2013 23:08:44 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x31b0020] max_analyze_duration 5000000 reached at 5013333 microseconds [mpegts @ 0x31b0020] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from '/dev/video0': Duration: N/A, start: 0.387044, bitrate: 189 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (Main) (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: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 189 kb/s Output #0, mpegts, to '/home/jocho/Desktop/recorded_stream.ts': Metadata: encoder : Lavf54.62.100 Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 189 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 6109 fps= 63 q=-1.0 Lsize= 89793kB time=00:01:41.97 bitrate=7213.5kbits/s video:80929kB audio:1626kB subtitle:0 global headers:0kB muxing overhead 8.767737% jocho at HTPC:/var/www/tv$ 3.2). Transcode recording file to ipad format with lower bitrate and size - segment (HLS) streaming- successful!! $ ffmpeg -i ~/Desktop/recorded_stream.ts -vcodec h264 -b:v 1024k -s 320x240 -bsf h264_mp4toannexb -flags -global_header -map 0 -f segment -segment_time 4 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 10 -segment_format mpegts -acodec libmp3lame -ab 128k stream%05d.ts ffmpeg version git-2013-02-12-7ff1a4b Copyright (c) 2000-2013 the FFmpeg developers built on Feb 11 2013 23:08:44 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x32c97c0] max_analyze_duration 5000000 reached at 5003333 microseconds Input #0, mpegts, from '/home/jocho/Desktop/recorded_stream.ts': Duration: 00:01:42.02, start: 1.400000, bitrate: 7210 kb/s Program 1 Metadata: service_name : Service01 service_provider: FFmpeg Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 59.94 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 135 kb/s [libx264 @ 0x32d0100] using SAR=4/3 [libx264 @ 0x32d0100] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x32d0100] profile High, level 2.0 [segment @ 0x32cf660] Codec for stream 0 does not use global headers but container format requires global headers [segment @ 0x32cf660] Codec for stream 1 does not use global headers but container format requires global headers Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf54.62.100 Stream #0:0: Video: h264, yuv420p, 320x240 [SAR 4:3 DAR 16:9], q=-1--1, 1024 kb/s, 90k tbn, 29.97 tbc Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libmp3lame) Press [q] to stop, [?] for help frame= 3058 fps= 60 q=32766.0 Lsize=N/A time=00:01:41.97 bitrate=N/A dup=4 drop=0 video:12710kB audio:1594kB subtitle:0 global headers:0kB muxing overhead -100.000150% [libx264 @ 0x32d0100] frame I:82 Avg QP:11.29 size: 17961 [libx264 @ 0x32d0100] frame P:1248 Avg QP:13.38 size: 6984 [libx264 @ 0x32d0100] frame B:1728 Avg QP:14.50 size: 1636 [libx264 @ 0x32d0100] consecutive B-frames: 13.8% 29.7% 8.3% 48.1% [libx264 @ 0x32d0100] mb I I16..4: 11.2% 45.3% 43.5% [libx264 @ 0x32d0100] mb P I16..4: 4.1% 11.6% 7.0% P16..4: 27.6% 19.2% 16.7% 0.0% 0.0% skip:13.8% [libx264 @ 0x32d0100] mb B I16..4: 0.4% 0.6% 0.5% B16..8: 23.3% 7.5% 3.9% direct: 8.7% skip:55.0% L0:36.6% L1:42.0% BI:21.4% [libx264 @ 0x32d0100] final ratefactor: 10.93 [libx264 @ 0x32d0100] 8x8 transform intra:49.2% inter:47.5% [libx264 @ 0x32d0100] coded y,uvDC,uvAC intra: 84.2% 88.6% 81.8% inter: 31.0% 28.7% 15.6% [libx264 @ 0x32d0100] i16 v,h,dc,p: 41% 40% 4% 15% [libx264 @ 0x32d0100] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 17% 13% 5% 6% 9% 5% 10% 7% [libx264 @ 0x32d0100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 8% 5% 8% 10% 6% 9% 6% [libx264 @ 0x32d0100] i8c dc,h,v,p: 44% 23% 23% 9% [libx264 @ 0x32d0100] Weighted P-Frames: Y:7.7% UV:4.2% [libx264 @ 0x32d0100] ref P L0: 67.5% 12.0% 14.3% 6.0% 0.3% [libx264 @ 0x32d0100] ref B L0: 84.8% 13.6% 1.6% [libx264 @ 0x32d0100] ref B L1: 96.3% 3.7% [libx264 @ 0x32d0100] kb/s:1020.41 jocho at HTPC:/var/www/tv$ 4. When not using any transcoding which result in approx >7 Mbit/s bitrate... everything works like a charm. ffmpeg -i /dev/video0 -c copy -map 0 -f segment -segment_time 4 -segment_list test.m3u8 -segment_list_flags live -segment_list_size 10 -segment_format mpegts -acodec libmp3lame -ab 128k stream%05d.ts ffmpeg version git-2013-02-12-7ff1a4b Copyright (c) 2000-2013 the FFmpeg developers built on Feb 11 2013 23:08:44 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.102 / 54. 91.102 libavformat 54. 62.100 / 54. 62.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.101 / 3. 37.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mpegts @ 0x1c466c0] max_analyze_duration 5000000 reached at 5013333 microseconds [mpegts @ 0x1c466c0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from '/dev/video0': Duration: N/A, start: 0.387044, bitrate: 130 kb/s Program 1 Stream #0:0[0x1011]: Video: h264 (Main) (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: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 130 kb/s Output #0, segment, to 'stream%05d.ts': Metadata: encoder : Lavf54.62.100 Stream #0:0: Video: h264 (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (aac -> libmp3lame) Press [q] to stop, [?] for help frame=15621 fps= 61 q=-1.0 Lsize=N/A time=00:04:20.64 bitrate=N/A video:206825kB audio:4073kB subtitle:0 global headers:0kB muxing overhead -100.000010% Additional inf: After enabling debug of Hauppage HDPVR driver, there is flow on-going until it just stops (reading buffer)i.e. to me (novice) it indicate that FFMEG stops reading the buffer!?! I believe the hauppauge is currently set to VBR but this was all configured when I configured mythtv. I've been searching for information for hours and I would truly appreciate some help or guidance of what could be done to resolve this or what next plan of action should be. Best regards uffe From me at renecalles.de Fri Feb 15 18:29:52 2013 From: me at renecalles.de (=?utf-8?Q?Ren=C3=A9_Calles?=) Date: Fri, 15 Feb 2013 18:29:52 +0100 Subject: [FFmpeg-user] ffmpeg stalls when trying to transcode live content from HD PVR In-Reply-To: References: Message-ID: Hi uffe, as your Input is a live signal you should use the -re option in front of -i to indicate ffmpeg the live signal and not process it faster than real time. Best Regards, Ren? From motty.cruz at gmail.com Fri Feb 15 19:13:45 2013 From: motty.cruz at gmail.com (motty cruz) Date: Fri, 15 Feb 2013 10:13:45 -0800 Subject: [FFmpeg-user] shell script for ffmpeg In-Reply-To: References: <20130214151103.1a5bb07f@lrcd.com> Message-ID: Thank you very much! script below worked fine. Thanks On Fri, Feb 15, 2013 at 8:41 AM, Liam Condron-Farnos <23liam at googlemail.com>wrote: > > ffmpeg -f x11grab -r 25 -q:v 0 out.mpg > > This is not a working command-line, see here: > > > https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20grab%20the%20desktop%20%28screen%29%20with%20FFmpeg > > > I was hoping some one will have a script to start that command without > > using the command line. > > > > Thanks, > > A script along the lines of > > #!/bin/bash > ffmpeg -f x11grab -r 25 -i :0.0 -q:v 0 out.mpg > exit 0 > > will start the ffmpeg command. Just save the script, mark it as > executable (chmod u+x filename - or you can use whatever GUI way your > desktop environment supports) and you should be able to click on the > script to. Stopping ffmpeg without the command-line is another issue, > of course :v > > You could probably do something with kill or killall in a separate > script to end the ffmpeg instance. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stefasab at gmail.com Fri Feb 15 19:13:56 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 15 Feb 2013 19:13:56 +0100 Subject: [FFmpeg-user] 404 error on webpage In-Reply-To: <511E1957.4060503@yahoo.com> References: <511E1957.4060503@yahoo.com> Message-ID: <20130215181356.GA7809@arborea> On date Friday 2013-02-15 11:17:43 +0000, Tim Nicholson wrote: > http://ffmpeg.org/ffmpeg.html#See-Also has a link to:- > > http://ffmpeg.org/ffmpeg-bitstream-filters > > Which is currently giving a 404. Should be fixed as long as the documentation is updated on the website, which will be around tonight. Thanks for reporting. From epkuson at gmail.com Fri Feb 15 19:39:26 2013 From: epkuson at gmail.com (ulf johansson) Date: Fri, 15 Feb 2013 13:39:26 -0500 Subject: [FFmpeg-user] ffmpeg stalls when trying to transcode live content from HD PVR In-Reply-To: References: Message-ID: Hi Ren?, Truly appreciate the prompt reply. I've tried -re option, but I believe I never tried to put it in front of -i. Didn't realize the importance of the specific sequence until now. I will try this as soon as I get home this evening. Thanks again, ulf On Fri, Feb 15, 2013 at 12:29 PM, Ren? Calles wrote: > Hi uffe, > > as your Input is a live signal you should use the -re option in front of > -i to indicate ffmpeg the live signal and not process it faster than real > time. > > Best Regards, > Ren? > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mohancloudworld at gmail.com Fri Feb 15 20:51:01 2013 From: mohancloudworld at gmail.com (Mohan G) Date: Fri, 15 Feb 2013 13:51:01 -0600 Subject: [FFmpeg-user] webm: issues with firefox Message-ID: Hi I am encoding some video files into webm format for streaming on my test web-server. I am using ffmpeg to convert avi files to webm format, using ffmpeg -i inp.avi -f webm out.webm or ffmpeg -i inp.avi -codec:v libvpx -codec:a libvorbis out.webm But these webm files can be played on chrome browser but fail on firefox. Firefox buffers all the video and then control goes to the end of the video. If I drag the control to the beginning, then video starts playing. While chrome starts playing the video automatically while the video is still buffering. Here are the details of the webm files generated, Stream 0: Type: Video Codec: Google/On2's VP8 Video (VP80) Stream 1: Type: Audio Codec: Verbis Audio (vorb) Channels: Stereo encoder: Lavc54.59.100 If I disable audio in the output stream using "-an" option then firefox plays video automatically ( like chrome). There some other webm files which I downloaded from youtube and they play fine on both chrome and firefox. Their only difference form the above webm files (that fail to play on firefox) is that they don't have "encoder: LavcXXXXX" in the output audio stream. So can anyone suggest me how to convert any video into a webm (not ogv) format which is compatible with firefox and chrome. Regards, Mohan From stuart at klymiarven.co.uk Fri Feb 15 20:59:18 2013 From: stuart at klymiarven.co.uk (Stuart) Date: Fri, 15 Feb 2013 19:59:18 +0000 Subject: [FFmpeg-user] Converting MPEG-TS to MKV with hard coded subtitles produces error message In-Reply-To: <20130214202737.GA32411@phare.normalesup.org> References: <20130214202737.GA32411@phare.normalesup.org> Message-ID: <511E9396.6020607@klymiarven.co.uk> Hello Nicolas, Thank you for the reply. I've now tried adding the "-s:s 720x576" option as you suggested but the result has not changed. Is the position significant? The command is now: ffmpeg -i Suburgatory-20121110-1024.TS -s:s 720x576 -filter_complex "[0:v][0:s]overlay" -sn sub.mkv The canvas does not appear to have changed size and I still get the "sub2video: rectangle overflowing" messages. The output contains: [mpegts @ 000000000068fa60] sub2video: using 704x576 canvas Having found the "-s" option in the documentation I wonder if the optiononly applies to video streams? Many thanks, Stuart From lou at lrcd.com Fri Feb 15 22:13:31 2013 From: lou at lrcd.com (Lou) Date: Fri, 15 Feb 2013 12:13:31 -0900 Subject: [FFmpeg-user] webm: issues with firefox In-Reply-To: References: Message-ID: <20130215121331.09b828d9@lrcd.com> On Fri, 15 Feb 2013 13:51:01 -0600 Mohan G wrote: > Hi > > I am encoding some video files into webm format for streaming on my test > web-server. > > I am using ffmpeg to convert avi files to webm format, using > > ffmpeg -i inp.avi -f webm out.webm > > or > > ffmpeg -i inp.avi -codec:v libvpx -codec:a libvorbis out.webm You should include the complete ffmpeg console output that results from your ffmpeg commands. From jp4work at gmail.com Sat Feb 16 00:41:47 2013 From: jp4work at gmail.com (JIA Pei) Date: Fri, 15 Feb 2013 15:41:47 -0800 Subject: [FFmpeg-user] Revisit FFmpeg Frame Lost Message-ID: Hi, all: Sorry to bug all of you. This is actually a very old topic, but I still would like to mention it again. Actually what I've done so far is: 1) using the following 2 commands to create 2 video files from the same image sequence (268 images in total) *ffmpeg -i %3d video.mpg* *ffmpeg ii %3d video.mp4* 2) trying to use the following patch of code to decode these 2 video files --- in the following patch, I just count the number of frames in these 2 video files. int e = ERROR_NONE; AVPacket pkt; av_init_packet(&pkt); if( av_read_frame(this->m_pFormatCtxDec, &pkt) < 0) { return (e = ERROR_ENDOFFILE); } if(pkt.stream_index == this->m_iVideoStreamIdx) { int got_picture = 0; int len = avcodec_decode_video2(this->m_pCodecCtxDecVideo, this->m_pVideoFrame, &got_picture, &pkt); if(!got_picture) return (e = ERROR_GOTPICTUREPTR); if(len < 0) return (e = ERROR_VIDEODECODING); ++this->m_iNbOfFrames; } As mentioned in *av_read_frame()* documentation, *For video, the packet contains * exactly one frame* So, what I've been expecting is: this->m_iNbOfFrames should be equal to 268 (total number of frames inside video files. ) However, for .mpg, I got 267 images after decoding; (lack of 1 frame) for .mp4, I got 260 images after decoding (lack of 8 frames) It seems http://ffmpeg.org/doxygen/trunk/api-example_8c-source.html is able to handle the "frame lost" issue, but it uses* fread()* instead of * av_read_frame()*. If I insist on using *av_read_frame()*, how can I avoid this "frame lost" issue? Please do help.. Thank you very much. -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From mohancloudworld at gmail.com Sat Feb 16 01:13:17 2013 From: mohancloudworld at gmail.com (Mohan G) Date: Fri, 15 Feb 2013 18:13:17 -0600 Subject: [FFmpeg-user] webm: issues with firefox In-Reply-To: <20130215121331.09b828d9@lrcd.com> References: <20130215121331.09b828d9@lrcd.com> Message-ID: Here is the console output, along with the command. *ffmpeg -i inp.avi -codec:v libvpx -qmin 10 -qmax 42 -codec:a libvorbis -ac 2 out.webm* ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers built on Dec 4 2012 08:14:17 with gcc 4.7.2 (GCC) 20121109 (Red Hat 4.7.2-8) 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 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-libass --enable-libcdio --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-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect 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 [avi @ 0xfbc780] non-interleaved AVI Input #0, avi, from 'inp.avi': Metadata: encoder : AVI-Mux GUI 1.17.7, Aug 8 2006 20:59:17 JUNK : Duration: 02:42:25.31, start: 0.000000, bitrate: 595 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 624x256 [SAR 1:1 DAR 39:16], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 32000 Hz, stereo, s16, 80 kb/s Metadata: title : VTS_01_1 T89 DELAY 0ms [libvpx @ 0xfb9660] v1.1.0 Output #0, webm, to 'out.webm': Metadata: JUNK : encoder : Lavf54.29.104 Stream #0:0: Video: vp8, yuv420p, 624x256 [SAR 1:1 DAR 39:16], q=10-42, 200 kb/s, 1k tbn, 23.98 tbc Stream #0:1: Audio: vorbis, 32000 Hz, stereo, flt Metadata: title : VTS_01_1 T89 DELAY 0ms Stream mapping: Stream #0:0 -> #0:0 (mpeg4 -> libvpx) Stream #0:1 -> #0:1 (mp3 -> libvorbis) Press [q] to stop, [?] for help frame= 2154 fps= 46 q=0.0 Lsize= 3347kB time=00:01:30.65 bitrate= 302.4kbits/s Regards, Mohan On Fri, Feb 15, 2013 at 3:13 PM, Lou wrote: > On Fri, 15 Feb 2013 13:51:01 -0600 > Mohan G wrote: > > > Hi > > > > I am encoding some video files into webm format for streaming on my test > > web-server. > > > > I am using ffmpeg to convert avi files to webm format, using > > > > ffmpeg -i inp.avi -f webm out.webm > > > > or > > > > ffmpeg -i inp.avi -codec:v libvpx -codec:a libvorbis out.webm > > You should include the complete ffmpeg console output that results from > your ffmpeg commands. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From kody.j.kurtz at gmail.com Sat Feb 16 01:44:13 2013 From: kody.j.kurtz at gmail.com (Kody Kurtz) Date: Fri, 15 Feb 2013 16:44:13 -0800 Subject: [FFmpeg-user] Audio/Video slowly desync while using ffmpeg's x11grab In-Reply-To: References: Message-ID: Quad core. I use a Core2 Quad Q9550. Lowering the framerate to 15 or lower seems to resolve the issue of desync, but at the expense of making the video too choppy to watch. I did a rerecording at 30fps (the cpu usage this time seemed to be around 30-35% on average) and this was ffmpeg's output: http://pastebin.com/dJWLyfGC ffmpeg's output for 10fps (which also seemed to use 30-35% of my CPU) was this: http://pastebin.com/wzUCGwDR So now I have three questions: 1. Why does ffmpeg break the output so many times above 10fps (it broke it at 15fps too, but I forgot to save the output from that) 2. Why does it use the same CPU no matter the framerate? -threads 0 should let it use as many threads as it needs and however much CPU it needs, correct? That shouldn't be a problem since I'm on quad core. 3. Why is it desyncing? Any help whatsoever would be massively appreciated. Kody On Sun, Feb 10, 2013 at 1:47 AM, Carl Eugen Hoyos wrote: > Kody Kurtz gmail.com> writes: > > > My CPU usage while recording is 50%, and that's > > accounting for both CPU usage from the game itself > > and CPU usage from capturing the video and audio, > > so I doubt that could be the cause, either. > > Single-core cpu? > > In any case, test -r 10 > > > The command I use to capture is > > > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 > > -s 640x480 -i :0.0+256,256 -acodec pcm_s16le > > -vcodec libx264 -crf 0 -preset ultrafast > > -threads 0 -y Capture.mkv > > (If your cpu really is single-core, I would expect > -threads 1 to perform better.) > > Complete, uncut console output missing. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From epkuson at gmail.com Sat Feb 16 03:34:25 2013 From: epkuson at gmail.com (ulf johansson) Date: Fri, 15 Feb 2013 21:34:25 -0500 Subject: [FFmpeg-user] ffmpeg stalls when trying to transcode live content from HD PVR In-Reply-To: References: Message-ID: Hi Ren?, I tried with -re before the -i but unfortunately the result is the same. :-( Br Uffe On Friday, February 15, 2013, ulf johansson wrote: > Hi Ren?, > > Truly appreciate the prompt reply. I've tried -re option, but I believe I > never tried to put it in front of -i. Didn't realize the importance of the > specific sequence until now. > I will try this as soon as I get home this evening. > Thanks again, > ulf > > > > On Fri, Feb 15, 2013 at 12:29 PM, Ren? Calles > > wrote: > >> Hi uffe, >> >> as your Input is a live signal you should use the -re option in front of >> -i to indicate ffmpeg the live signal and not process it faster than real >> time. >> >> Best Regards, >> Ren? >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org > 'ffmpeg-user at ffmpeg.org');> >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From boris.rousseau at powedia.com Fri Feb 15 15:46:26 2013 From: boris.rousseau at powedia.com (Boris Rousseau) Date: Fri, 15 Feb 2013 15:46:26 +0100 Subject: [FFmpeg-user] ERROR: libx264 not found Message-ID: <094F2A5E-3A8B-4034-B385-17B68C7BD3C0@powedia.com> Hi all, I have tried to configure the latest version of ffmpeg from git using the following tutorial: http://www.martinlos.com/?p=41 I have Mac OS X Lion 10.7.5 and downloaded all latest libraries However, I faced 2 issues: 1/ ./configure --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-gpl --enable-nonfree --enable-shared --disable-mmx --arch=x86_64 --cpu=core2 --enable-libx264 --enable-static Returns the error :Unknown option "--enable-libfaad". Despite the fact that this is already installed 2/ ./configure --enable-libmp3lame --enable-libfaac --enable-gpl --enable-nonfree --enable-shared --disable-mmx --arch=x86_64 --cpu=core2 --enable-libx264 --enable-static ERROR: libx264 not found Once again x264 is installed Can you please tell me what I might be doing wrong ? I was using MacPort before updating to the latest ffmpeg version 1.1.2. Thanks Boris From klingerfranz827 at gmail.com Fri Feb 15 02:03:24 2013 From: klingerfranz827 at gmail.com (Franz Klinger) Date: Fri, 15 Feb 2013 02:03:24 +0100 Subject: [FFmpeg-user] mpeg2 half pixel and partitioning parameter Message-ID: <511D895C.5070907@googlemail.com> Hi, I heard there are some differences between mpeg1 and mpeg2, what concerns analysis. Someof them should be that mpeg2 supports half pixel motion estimation and 16x8 partitions. When I use subq 0,1 or 2 I don't get any different results. Which is the right parameter? Is the different partitioning only relevant for interlaced material? Best Regards, Franz From lou at lrcd.com Sat Feb 16 03:57:14 2013 From: lou at lrcd.com (Lou) Date: Fri, 15 Feb 2013 17:57:14 -0900 Subject: [FFmpeg-user] ERROR: libx264 not found In-Reply-To: <094F2A5E-3A8B-4034-B385-17B68C7BD3C0@powedia.com> References: <094F2A5E-3A8B-4034-B385-17B68C7BD3C0@powedia.com> Message-ID: <20130215175714.792bfa5f@lrcd.com> On Fri, 15 Feb 2013 15:46:26 +0100 Boris Rousseau wrote: > Hi all, > > I have tried to configure the latest version of ffmpeg from git using the following tutorial: > http://www.martinlos.com/?p=41 Outdated guide. > Returns the error :Unknown option "--enable-libfaad". Despite the fact that this is already installed libfaad support was dropped from ffmpeg on 2010-06-20. Anything that tells you that faad is a requirement for installing ffmpeg should be avoided. > 2/ ./configure --enable-libmp3lame --enable-libfaac --enable-gpl --enable-nonfree --enable-shared --disable-mmx --arch=x86_64 --cpu=core2 --enable-libx264 --enable-static > ERROR: libx264 not found > Once again x264 is installed What does the tail of config.log show? Also, I hope you weren't trying to install ffmpeg from SVN as that terribly outdated guide suggests. Did you know recent static builds are available? http://www.evermeet.cx/ffmpeg/snapshots/ From lou at lrcd.com Sat Feb 16 04:01:58 2013 From: lou at lrcd.com (Lou) Date: Fri, 15 Feb 2013 18:01:58 -0900 Subject: [FFmpeg-user] webm: issues with firefox In-Reply-To: References: <20130215121331.09b828d9@lrcd.com> Message-ID: <20130215180158.01d6952e@lrcd.com> On Fri, 15 Feb 2013 18:13:17 -0600 Mohan G wrote: > Here is the console output, along with the command. > > *ffmpeg -i inp.avi -codec:v libvpx -qmin 10 -qmax 42 -codec:a libvorbis -ac > 2 out.webm* Then what? You didn't provide enough information for anyone to duplicate this issue such as how you're providing the video to the browsers, your browser versions, your platform, etc. Remember that top-posting is not recommended on this mailing list. From mohancloudworld at gmail.com Sat Feb 16 04:56:43 2013 From: mohancloudworld at gmail.com (Mohan G) Date: Fri, 15 Feb 2013 21:56:43 -0600 Subject: [FFmpeg-user] webm: issues with firefox In-Reply-To: <20130215180158.01d6952e@lrcd.com> References: <20130215121331.09b828d9@lrcd.com> <20130215180158.01d6952e@lrcd.com> Message-ID: > Then what? You didn't provide enough information for anyone to > duplicate this issue such as how you're providing the video to the > browsers, your browser versions, your platform, etc. > > After generating the webm file, I am streaming it with nginx (Ver 1.2.6) webserver. To view it on my local machine, I am using firefox (Ver. 17.0.1) and chrome (Ver. 24.0.1312.52). Instead of streaming with nginx, I also tried copying the file to my local machine and opened it directly using the browser. Still the webm file doesn't play automatically on firefox. Firefox just buffers the video and control goes to the end. I had to manually move the control to the beginning, to play it. But on chrome, it plays automatically. My server has Intel-64 bit processor with Fedora-18. The webm file is generated on this machine, using ffmpeg (Ver 1.0.1). My local machine has Intel-32 bit processor with Fedora-16. From thilo.borgmann at googlemail.com Sat Feb 16 09:34:22 2013 From: thilo.borgmann at googlemail.com (Thilo Borgmann) Date: Sat, 16 Feb 2013 09:34:22 +0100 Subject: [FFmpeg-user] Revisit FFmpeg Frame Lost In-Reply-To: References: Message-ID: <511F448E.6060302@googlemail.com> Hi, > Sorry to bug all of you. This is actually a very old topic, but I still > would like to mention it again. > [...] > As mentioned in *av_read_frame()* documentation, > *For video, the packet contains * exactly one frame* > [...] > However, > for .mpg, I got 267 images after decoding; (lack of 1 frame) > for .mp4, I got 260 images after decoding (lack of 8 frames) > It seems http://ffmpeg.org/doxygen/trunk/api-example_8c-source.html is able > to handle the "frame lost" issue, but it uses* fread()* instead of * > av_read_frame()*. If I insist on using *av_read_frame()*, how can I avoid > this "frame lost" issue? The difference is that the example calls avcodec_decode_video2() in a loop until the frame is found which is also what I alway do: if (packet.stream_index == format_video_stream_idx) { avcodec_get_frame_defaults(&frame); got_frame = 0; while (!got_frame) { if ((ret = avcodec_decode_video2(codec_ctx, &frame, &got_frame, &packet)) < 0) { av_free_packet(&packet); return false; } } } Maybe you give it a try. -Thilo From nicolas.george at normalesup.org Sat Feb 16 10:32:57 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 16 Feb 2013 10:32:57 +0100 Subject: [FFmpeg-user] Revisit FFmpeg Frame Lost In-Reply-To: <511F448E.6060302@googlemail.com> References: <511F448E.6060302@googlemail.com> Message-ID: <20130216093257.GA4648@phare.normalesup.org> L'octidi 28 pluvi?se, an CCXXI, Thilo Borgmann a ?crit?: > if (packet.stream_index == format_video_stream_idx) { > avcodec_get_frame_defaults(&frame); This is unrelated to the current discussion, but this part looks suspicious to me. How do you define frame here? The size of AVFrame is not part of the ABI, therefore, declaring anything with type AVFrame directly is discouraged. > got_frame = 0; I believe avcodec_decode_video2() is guaranteed to init this to 0. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From bobm-ffmpeg at burner.com Sat Feb 16 10:51:43 2013 From: bobm-ffmpeg at burner.com (Bob Maple) Date: Sat, 16 Feb 2013 02:51:43 -0700 Subject: [FFmpeg-user] RGB-YUV color shift In-Reply-To: References: <24B3E9BB-DF05-45F6-87A4-7F24DE15854D@glpf.net> <507FE35B.4090500@yahoo.com> <597BF29A-95B0-4116-9352-246F6C1962C0@glpf.net> <5B6EBE3B-2A87-4760-9B17-48C27C11796F@glpf.net> Message-ID: <511F56AF.3010800@burner.com> On 2/15/2013 4:50 AM, Chris Bouchard wrote: > I have found the same colour shift, and that using > -vf colormatrix=bt601:bt709 will fix the colours to > be almost 100% accurate for conversions from RGB to YUV. > Let's say 98% accurate; most people wouldn't notice. Could I ask how you are testing this? I am getting quite the opposite result converting a TGA codec Quicktime to ProRes or h264 using that colormatrix conversion, the results are very different from the original. Bob From me at renecalles.de Sat Feb 16 11:10:18 2013 From: me at renecalles.de (=?iso-8859-1?Q?Ren=E9_Calles?=) Date: Sat, 16 Feb 2013 11:10:18 +0100 Subject: [FFmpeg-user] ffmpeg stalls when trying to transcode live content from HD PVR In-Reply-To: References: Message-ID: Hi Ulf, too bad i have no Haupauge to test it on my self. Btw. why are you transcoding to mp3 and not using the aac audio which you already get? BR Ren? Am 16.02.2013 um 03:34 schrieb ulf johansson : > Hi Ren?, > I tried with -re before the -i but unfortunately the result is the same. :-( > Br > Uffe > > On Friday, February 15, 2013, ulf johansson wrote: > >> Hi Ren?, >> >> Truly appreciate the prompt reply. I've tried -re option, but I believe I >> never tried to put it in front of -i. Didn't realize the importance of the >> specific sequence until now. >> I will try this as soon as I get home this evening. >> Thanks again, >> ulf >> >> >> >> On Fri, Feb 15, 2013 at 12:29 PM, Ren? Calles >>> wrote: >> >>> Hi uffe, >>> >>> as your Input is a live signal you should use the -re option in front of >>> -i to indicate ffmpeg the live signal and not process it faster than real >>> time. >>> >>> Best Regards, >>> Ren? >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >> '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 thilo.borgmann at googlemail.com Sat Feb 16 11:12:43 2013 From: thilo.borgmann at googlemail.com (Thilo Borgmann) Date: Sat, 16 Feb 2013 11:12:43 +0100 Subject: [FFmpeg-user] Revisit FFmpeg Frame Lost In-Reply-To: <20130216093257.GA4648@phare.normalesup.org> References: <511F448E.6060302@googlemail.com> <20130216093257.GA4648@phare.normalesup.org> Message-ID: <511F5B9B.2060402@googlemail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 16.02.13 10:32, schrieb Nicolas George: > L'octidi 28 pluvi?se, an CCXXI, Thilo Borgmann a ?crit : >> if (packet.stream_index == format_video_stream_idx) { >> avcodec_get_frame_defaults(&frame); > > This is unrelated to the current discussion, but ... I'm pretty sure I got that handling frames from our filter video example. BTT... >> got_frame = 0; > > I believe avcodec_decode_video2() is guaranteed to init this to 0. It's basically just a hint to the loop not the optimized best solution that humanity can think of... - -Thilo -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRH1ubAAoJEC1B5kuEo2KzsksH+wRustF7ddGD8oTyD4qRSrOc GIEHNQyldy0+ZUzrJGqj5pXzdjFZDMZfSSpNiLro8bJhGmSdHH/fxveqgNE2ZRl5 xNjyE55bmNo19Bs0zZqlCuyMaUEY9YmsdeefDynAgTNpoDd5Ktllp8C7lkSHT+vR wbeW7nYJqVubQKuoCbPlUz2BDIWzXNpOjtw8BsyCNAKlIdrzAs9qfoiWIuqQIA6M YCMax/OI65hCpJzChxxxOACRmJb+b0/I5yoVsBPOtOuoYHMmdgCdPtHdEfYzC8Hb CinybOrJ9EyVJc39lC+8FuISG/9Ld8zZ0XLfeMni5SSJCbJyu2a/T7k+eS31ZHA= =/udq -----END PGP SIGNATURE----- From nicolas.george at normalesup.org Sat Feb 16 11:37:46 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 16 Feb 2013 11:37:46 +0100 Subject: [FFmpeg-user] Revisit FFmpeg Frame Lost In-Reply-To: <511F5B9B.2060402@googlemail.com> References: <511F448E.6060302@googlemail.com> <20130216093257.GA4648@phare.normalesup.org> <511F5B9B.2060402@googlemail.com> Message-ID: <20130216103746.GA13420@phare.normalesup.org> L'octidi 28 pluvi?se, an CCXXI, Thilo Borgmann a ?crit?: > I'm pretty sure I got that handling frames from our filter video example. BTT... You are right. I just sent a patch to fix that. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From jon.riches73 at gmail.com Sat Feb 16 23:29:21 2013 From: jon.riches73 at gmail.com (Jonathan Riches) Date: Sat, 16 Feb 2013 22:29:21 +0000 Subject: [FFmpeg-user] Compile failure - standard ffmpeg on Ubuntu 12.10 Message-ID: Hi. I intend to create Ffmpeg binary including LAME to use on my Galaxy S3, but first tried compiling ffmpeg-android straight from GIT to test, however it failed. Can anyone help? It might be a problem with the NDK install, haven't used either the SDK or NDK for anything else yet, so can't confirm it's working properly. Details as follows: - Freshly re-installed Ubuntu 12 Fresh install latest Android SDK & NDK Fresh install GIT Commands entered: - git clone https://github.com/guardianproject/android-ffmpeg.git (OK) cd android-ffmpeg (OK) git submodule init (OK) git submodule update (OK) NDK_BASE=~/android/android-ndk-r8d ./configure_make_everything.sh (FAILED) I attached both the config.log from the ffmpeg directory and all the text from the terminal as I ran all the commands. Thanks in advance Jonathan -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 110682 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Terminal-Ffmpeg Type: application/octet-stream Size: 32423 bytes Desc: not available URL: From jp4work at gmail.com Sun Feb 17 04:09:59 2013 From: jp4work at gmail.com (JIA Pei) Date: Sat, 16 Feb 2013 19:09:59 -0800 Subject: [FFmpeg-user] Revisit FFmpeg Frame Lost In-Reply-To: <20130216103746.GA13420@phare.normalesup.org> References: <511F448E.6060302@googlemail.com> <20130216093257.GA4648@phare.normalesup.org> <511F5B9B.2060402@googlemail.com> <20130216103746.GA13420@phare.normalesup.org> Message-ID: Hi, Thanks for your reply.. Thank you so much !!! Now, I've got only 1 extra question, Thilo: Why do I have to do * av_free_packet(&packet);* ? This seems to be incorrect. Anyway, thank you and Nicolas.... cheers On Sat, Feb 16, 2013 at 2:37 AM, Nicolas George < nicolas.george at normalesup.org> wrote: > L'octidi 28 pluvi?se, an CCXXI, Thilo Borgmann a ?crit : > > I'm pretty sure I got that handling frames from our filter video > example. BTT... > > You are right. I just sent a patch to fix that. > > Regards, > > -- > Nicolas George > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.12 (GNU/Linux) > > iEYEARECAAYFAlEfYXoACgkQsGPZlzblTJOrlwCeKnFDVdLdsqkzXMvuM+234rz/ > KmUAoK7pDvurb3IR0x9iALO3pD2w0BCo > =CdOP > -----END PGP SIGNATURE----- > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From lbrtchx at gmail.com Sun Feb 17 09:47:15 2013 From: lbrtchx at gmail.com (Albretch Mueller) Date: Sun, 17 Feb 2013 03:47:15 -0500 Subject: [FFmpeg-user] How do you display a progress bar in mplayer and change its conf? Message-ID: ~ Pressing (the letter) "o" you toggle OSD/show video played/length ~ I want for the progress bar to appear on all videos I watched with mplayer with a smaller font on the lower-right corner (instead of the upper-left one) ... ~ lbrtchx From pb at das-werkstatt.com Sun Feb 17 10:52:47 2013 From: pb at das-werkstatt.com (Peter B.) Date: Sun, 17 Feb 2013 10:52:47 +0100 Subject: [FFmpeg-user] RGB uncompressed: Which format to use? In-Reply-To: References: <511AD6B1.1040908@das-werkstatt.com> Message-ID: <5120A86F.20909@das-werkstatt.com> On 02/13/2013 01:24 AM, Carl Eugen Hoyos wrote: > Peter B. das-werkstatt.com> writes: > >> Is there any uncompressed codec and container capable >> of containing the following pix_fmts? >> PIX_FMTS_RGB8="rgb0 rgb24 bgr0 bgr24" >> PIX_FMTS_RGB16="bgr48le bgr48be rgb48le rgb48be" >> >> I've tried using vcodec=rawvideo and AVI as >> container (*), but with rgb48be > nut should allow you to save all rawvideo formats. > (I suspect avi is older than rgb48 and in any case, > it only supports a limited set of rawvideo formats.) NUT works fine for all the above mentioned RGB pix_fmts. Thank you very much for the tip. There seems to be a problem with bgrp10le being converted to rgb444le, and decoded to false colors. Nothing urgent (for me), but I thought I'd still create a trac-ticket (#2274) for this [1]. Sounded a bit like issue #1058 [2]. Regards, Pb == References: [1] http://ffmpeg.org/trac/ffmpeg/ticket/2274 [2] http://ffmpeg.org/trac/ffmpeg/ticket/1058 From chris at vp44.net Sun Feb 17 11:38:27 2013 From: chris at vp44.net (Chris) Date: Sun, 17 Feb 2013 11:38:27 +0100 Subject: [FFmpeg-user] Scaling down resolution, reduce framerate and record video from IP camera Message-ID: <401404270e2934da6cd6964169617cc5@hasty.vp44.net> Hi all. I have a question for you guys: I have recently installed a Ubiquity Aircam and I would like to record a daily video. The camera streams via rtsp at 720p resolution with 30fps and I obviously don't want to record it that way. I would like to reduce the resolution by half to 640x360 and cut the framerate to let's say 1-2 fps. I'm already using ffmpeg to grab a frame every minute (it's a public weather cam) but it's full size and I can't just do that every second: /home/manager/ffmpeg/ffmpeg -i rtsp://aircam/live/ch00_0 -y -f image2 -ss 8 -sameq -t 0.001 /var/www/webcam/aircam-full.jpg Is there any way to setup ffmpeg to capture the stream with the settings I require? Thanks -Chris From 23liam at googlemail.com Sun Feb 17 13:05:42 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Sun, 17 Feb 2013 12:05:42 +0000 Subject: [FFmpeg-user] Scaling down resolution, reduce framerate and record video from IP camera In-Reply-To: <401404270e2934da6cd6964169617cc5@hasty.vp44.net> References: <401404270e2934da6cd6964169617cc5@hasty.vp44.net> Message-ID: >I would like to reduce the resolution by half to 640x360 You could use the scale filter: -filter:v 'scale=-1:360' or you could use -s like so: -s 640x360 - this can be used either as an input or output option. >and cut the framerate to let's say 1-2 fps. use -r 2 (or -r 1 for 1 fps). >-sameq You shouldn't use this here. There are a lot of guides online that wrongly call it 'same quality', but it actually doesn't mean that at all, and there are only a handful of cases where it will be useful. Something like this will do what you need: ffmpeg -r 2 -s 640x360 -i rtsp://aircam/live/ch00_0 -c:v libx264 outvid.mp4 If that doesn't work, try: ffmpeg -i rtsp://aircam/live/ch00_0 -r 2 -s 640x360 -c:v libx264 outvid.mp4 From tonybefree at yahoo.com Sun Feb 17 15:08:19 2013 From: tonybefree at yahoo.com (anthony wright) Date: Sun, 17 Feb 2013 06:08:19 -0800 (PST) Subject: [FFmpeg-user] problem fixed Message-ID: <1361110099.88562.YahooMailNeo@web164603.mail.gq1.yahoo.com> hello,Im writting to request that you discontinue sending email to my email address as i have found a solution to my problem,thank you for your assistence. From nicolas.george at normalesup.org Sun Feb 17 16:15:05 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Sun, 17 Feb 2013 16:15:05 +0100 Subject: [FFmpeg-user] Converting MPEG-TS to MKV with hard coded subtitles produces error message In-Reply-To: <511E9396.6020607@klymiarven.co.uk> References: <20130214202737.GA32411@phare.normalesup.org> <511E9396.6020607@klymiarven.co.uk> Message-ID: <20130217151505.GB31703@phare.normalesup.org> Le septidi 27 pluvi?se, an CCXXI, Stuart a ?crit?: > Thank you for the reply. I've now tried adding the "-s:s 720x576" > option as you suggested but the result has not changed. Is the > position significant? The command is now: > > ffmpeg -i Suburgatory-20121110-1024.TS > -s:s 720x576 > -filter_complex "[0:v][0:s]overlay" > -sn sub.mkv > > The canvas does not appear to have changed size and I still get the > "sub2video: rectangle overflowing" messages. The output contains: The -s:s option should have been before the -i option, but it would not have worked, I remembered wrong how it applies. There is right now no way of setting the canvas size so that it will work like that. I will try to think of something not too ugly. In the meantime, you can try to remux your input file with an additional video stream with resolution 720x576 that will only just be used to set the canvas size. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From cehoyos at ag.or.at Sun Feb 17 16:42:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 17 Feb 2013 15:42:38 +0000 (UTC) Subject: [FFmpeg-user] How do you display a progress bar in mplayer and change its conf? References: Message-ID: Albretch Mueller gmail.com> writes: > I want for the progress bar to appear on all > videos I watched with mplayer Wrong mailing list? Carl Eugen From rob at medipix.com Sun Feb 17 17:03:04 2013 From: rob at medipix.com (Rob Keown) Date: Sun, 17 Feb 2013 11:03:04 -0500 Subject: [FFmpeg-user] How do you display a progress bar in mplayer and change its conf? In-Reply-To: References: Message-ID: <5369418F-79B5-4BFD-99AA-A00B93A329DD@medipix.com> Digest Sent from my iPhone On Feb 17, 2013, at 10:42 AM, Carl Eugen Hoyos wrote: > Albretch Mueller gmail.com> writes: > >> I want for the progress bar to appear on all >> videos I watched with mplayer > > Wrong mailing list? > > 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 Feb 17 17:33:45 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 17 Feb 2013 16:33:45 +0000 (UTC) Subject: [FFmpeg-user] RGB uncompressed: Which format to use? References: <511AD6B1.1040908@das-werkstatt.com> <5120A86F.20909@das-werkstatt.com> Message-ID: Peter B. das-werkstatt.com> writes: > There seems to be a problem with bgrp10le being > converted to rgb444le, and decoded to false colors. > Nothing urgent (for me), but I thought I'd still > create a trac-ticket (#2274) for this [1]. > Sounded a bit like issue #1058 [2]. It is very similar to #1058 but I fear that #1058 was already documented in the nut documentation when the ticket was opened, but this may not be the case for your ticket. (Honestly: I did not check...) Thank you for opening the ticket! Carl Eugen From cehoyos at ag.or.at Sun Feb 17 17:36:05 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 17 Feb 2013 16:36:05 +0000 (UTC) Subject: [FFmpeg-user] Disable decoder for shared library References: Message-ID: tyler wear gmail.com> writes: > | libavcodec/libavcodec.so: undefined reference to `ff_fft_calc_neon' > | libavcodec/libavcodec.so: undefined reference to `ff_fft_fixed_calc_neon' > | libavcodec/libavcodec.so: undefined reference to `ff_fft_permute_neon' Should be fixed, but note ticket #2253. Thank you for the report, Carl Eugen From cehoyos at ag.or.at Sun Feb 17 17:58:14 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 17 Feb 2013 16:58:14 +0000 (UTC) Subject: [FFmpeg-user] Compile failure - standard ffmpeg on Ubuntu 12.10 References: Message-ID: Jonathan Riches gmail.com> writes: > git clone https://github.com/guardianproject/android-ffmpeg.git (OK) FFmpeg developers have put a lot of effort into the configure script and I believe it works well in many / all cases, see http://fate.ffmpeg.org/ that includes several arm builds. If you have problems with the configure script, please report them (here). Please understand that we cannot support third- party scripts on this mailing list. Carl Eugen From kody.j.kurtz at gmail.com Sun Feb 17 20:16:27 2013 From: kody.j.kurtz at gmail.com (Kody Kurtz) Date: Sun, 17 Feb 2013 11:16:27 -0800 Subject: [FFmpeg-user] problem fixed In-Reply-To: <1361110099.88562.YahooMailNeo@web164603.mail.gq1.yahoo.com> References: <1361110099.88562.YahooMailNeo@web164603.mail.gq1.yahoo.com> Message-ID: You need to unsubscribe from the mailing list. I believe you received an email when you first signed up for the mailing list? There's a link in there that lets you unsubscribe. On Sun, Feb 17, 2013 at 6:08 AM, anthony wright wrote: > hello,Im writting to request that you discontinue sending email to my > email address as i have found a solution to my problem,thank you for your > assistence. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From steven.fawcett at gmail.com Sun Feb 17 16:38:24 2013 From: steven.fawcett at gmail.com (Steven Fawcett) Date: Sun, 17 Feb 2013 09:38:24 -0600 Subject: [FFmpeg-user] Failed configure of ffmpeg on Ubuntu 10.04 server Message-ID: I keep getting the following error msg; ERROR: libvpx decoder version must be >=0.9.1 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. I have ran the command several times, deleted and redownloaded the files but with no luck. Any help is appreciated. -- *Steven Fawcett *CompTIA A+ certified 821 6th Ave. West Owen Sound, ON N4K 5G3 Cell: (519) 477-9271 Home: (519) 372-0544 "As we look ahead into the next century, leaders will be those who empower others." - Bill Gates -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 182955 bytes Desc: not available URL: From h.reindl at thelounge.net Sun Feb 17 22:20:40 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 17 Feb 2013 22:20:40 +0100 Subject: [FFmpeg-user] problem fixed In-Reply-To: References: <1361110099.88562.YahooMailNeo@web164603.mail.gq1.yahoo.com> Message-ID: <512149A8.9010908@thelounge.net> he posted even the link http://ffmpeg.org/mailman/listinfo/ffmpeg-user in his message as any message does contain it maybe all mailing-lists should remove the list-footer to save bandwith because the users are not take any notice and sending blindly "remove me from the list" mails Am 17.02.2013 20:16, schrieb Kody Kurtz: > You need to unsubscribe from the mailing list. I believe you received an > email when you first signed up for the mailing list? There's a link in > there that lets you unsubscribe. > > > On Sun, Feb 17, 2013 at 6:08 AM, anthony wright wrote: > >> hello,Im writting to request that you discontinue sending email to my >> email address as i have found a solution to my problem,thank you for your >> assistence. >> _______________________________________________ >> 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: 263 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Sun Feb 17 22:29:15 2013 From: lou at lrcd.com (Lou) Date: Sun, 17 Feb 2013 12:29:15 -0900 Subject: [FFmpeg-user] Failed configure of ffmpeg on Ubuntu 10.04 server In-Reply-To: References: Message-ID: <20130217122915.78b6eed3@lrcd.com> On Sun, 17 Feb 2013 09:38:24 -0600 Steven Fawcett wrote: > I keep getting the following error msg; > > ERROR: libvpx decoder version must be >=0.9.1 This error can show up if ffmpeg can not find libvpx, such as if you did not actually install it. Excuse the obvious question, but did you actually install libvpx successfully? Check to see if you have: /usr/include/vpx/vpx_decoder.h or /usr/local/include/vpx/vpx_decoder.h or wherever you decided to install it. From h.reindl at thelounge.net Sun Feb 17 22:34:09 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 17 Feb 2013 22:34:09 +0100 Subject: [FFmpeg-user] Failed configure of ffmpeg on Ubuntu 10.04 server In-Reply-To: <20130217122915.78b6eed3@lrcd.com> References: <20130217122915.78b6eed3@lrcd.com> Message-ID: <51214CD1.7000104@thelounge.net> Am 17.02.2013 22:29, schrieb Lou: > On Sun, 17 Feb 2013 09:38:24 -0600 > Steven Fawcett wrote: > >> I keep getting the following error msg; >> >> ERROR: libvpx decoder version must be >=0.9.1 > > This error can show up if ffmpeg can not find libvpx, such as if you > did not actually install it. Excuse the obvious question, but did you > actually install libvpx successfully? > > Check to see if you have: > /usr/include/vpx/vpx_decoder.h > or > /usr/local/include/vpx/vpx_decoder.h > or wherever you decided to install it to be exact you need libvpx-DEVEL or however your distribution calls development-packages and not only libvpx -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From lyman.hurd at gmail.com Sun Feb 17 22:47:01 2013 From: lyman.hurd at gmail.com (Lyman Hurd) Date: Sun, 17 Feb 2013 13:47:01 -0800 Subject: [FFmpeg-user] format used by bmp encoder Message-ID: I am using ffmpeg to render a movie into individual frames, e.g.: ffmpeg -i test2.mov -f image2 /mnt/cbsvolume2/test2/test%06d.bmp for certain videos I get back a sequence of 24-bit bgr frames (which is what I want) and the output stream is identified as: Stream #0:0(eng): Video: bmp, bgr24, 1280x720, q=2-31, 200 kb/s, 90k tbn, 25 tbc for other videos it encodes the frames as indexed color 8-bit BMP images and identifies the output stream as: Stream #0:0(eng): Video: bmp, bgr8, 720x480, q=2-31, 200 kb/s, 90k tbn, 23.98 tbc My question is how I can be more specific in my command line to ensure that I get behavior one instead of behavior two. I am also curious how ffmpeg makes the determination of the default behavior but the important issue for me is how to always get 24-bit results. Thanks, Lyman PS I am running on an Ubuntu system: ffmpeg version git-2012-12-14-ecebf6f Copyright (c) 2000-2012 the FFmpeg developers built on Dec 14 2012 17:36:48 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) -- Lyman Hurd (770) 309-8351 (mobile) (267) 390-1546 (fax) From onemda at gmail.com Sun Feb 17 22:53:03 2013 From: onemda at gmail.com (Paul B Mahol) Date: Sun, 17 Feb 2013 21:53:03 +0000 Subject: [FFmpeg-user] format used by bmp encoder In-Reply-To: References: Message-ID: On 2/17/13, Lyman Hurd wrote: > I am using ffmpeg to render a movie into individual frames, e.g.: > > ffmpeg -i test2.mov -f image2 /mnt/cbsvolume2/test2/test%06d.bmp ffmpeg -i test2.mov -f image2 -pix_fmt bgr24 /mnt/cbsvolume2/test2/test%06d.bmp > > for certain videos I get back a sequence of 24-bit bgr frames (which is > what I want) and the output stream is identified as: > > Stream #0:0(eng): Video: bmp, bgr24, 1280x720, q=2-31, 200 kb/s, 90k tbn, > 25 tbc > > for other videos it encodes the frames as indexed color 8-bit BMP images > and identifies the output stream as: > > Stream #0:0(eng): Video: bmp, bgr8, 720x480, q=2-31, 200 kb/s, 90k tbn, > 23.98 tbc > > My question is how I can be more specific in my command line to ensure that > I get behavior one instead of behavior two. I am also curious how ffmpeg > makes the determination of the default behavior but the important issue for > me is how to always get 24-bit results. > > Thanks, > > Lyman > > PS I am running on an Ubuntu system: > > ffmpeg version git-2012-12-14-ecebf6f Copyright (c) 2000-2012 the FFmpeg > developers > built on Dec 14 2012 17:36:48 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) > > -- > Lyman Hurd > (770) 309-8351 (mobile) > (267) 390-1546 (fax) > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Sun Feb 17 22:52:49 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 17 Feb 2013 21:52:49 +0000 (UTC) Subject: [FFmpeg-user] format used by bmp encoder References: Message-ID: Lyman Hurd gmail.com> writes: > for other videos it encodes the frames as indexed > color 8-bit BMP images and identifies the output > stream as: > > Stream #0:0(eng): Video: bmp, bgr8, 720x480, q=2-31, > 200 kb/s, 90k tbn, 23.98 tbc Please provide the command line you are using for encoding together with the complete, uncut console output. Carl Eugen From lou at lrcd.com Sun Feb 17 23:01:43 2013 From: lou at lrcd.com (Lou) Date: Sun, 17 Feb 2013 13:01:43 -0900 Subject: [FFmpeg-user] Failed configure of ffmpeg on Ubuntu 10.04 server In-Reply-To: <51214CD1.7000104@thelounge.net> References: <20130217122915.78b6eed3@lrcd.com> <51214CD1.7000104@thelounge.net> Message-ID: <20130217130143.1abae3be@lrcd.com> On Sun, 17 Feb 2013 22:34:09 +0100 Reindl Harald wrote: > to be exact you need libvpx-DEVEL or however your distribution > calls development-packages and not only libvpx I was referring to compiling libvpx because libvpx-dev from the 10.04 repository is, unfortunately, too old and will result in: ERROR: libvpx encoder version must be >=0.9.7 From lyman.hurd at gmail.com Sun Feb 17 23:10:05 2013 From: lyman.hurd at gmail.com (Lyman Hurd) Date: Sun, 17 Feb 2013 14:10:05 -0800 Subject: [FFmpeg-user] format used by bmp encoder In-Reply-To: References: Message-ID: Many thanks. That nailed it! Cheers, Lyman On Sun, Feb 17, 2013 at 1:53 PM, Paul B Mahol wrote: > On 2/17/13, Lyman Hurd wrote: > > I am using ffmpeg to render a movie into individual frames, e.g.: > > > > ffmpeg -i test2.mov -f image2 /mnt/cbsvolume2/test2/test%06d.bmp > > ffmpeg -i test2.mov -f image2 -pix_fmt bgr24 > /mnt/cbsvolume2/test2/test%06d.bmp > > > > > for certain videos I get back a sequence of 24-bit bgr frames (which is > > what I want) and the output stream is identified as: > > > > Stream #0:0(eng): Video: bmp, bgr24, 1280x720, q=2-31, 200 kb/s, 90k tbn, > > 25 tbc > > > > for other videos it encodes the frames as indexed color 8-bit BMP images > > and identifies the output stream as: > > > > Stream #0:0(eng): Video: bmp, bgr8, 720x480, q=2-31, 200 kb/s, 90k tbn, > > 23.98 tbc > > > > My question is how I can be more specific in my command line to ensure > that > > I get behavior one instead of behavior two. I am also curious how ffmpeg > > makes the determination of the default behavior but the important issue > for > > me is how to always get 24-bit results. > > > > Thanks, > > > > Lyman > > > > PS I am running on an Ubuntu system: > > > > ffmpeg version git-2012-12-14-ecebf6f Copyright (c) 2000-2012 the FFmpeg > > developers > > built on Dec 14 2012 17:36:48 with gcc 4.7 (Ubuntu/Linaro > 4.7.2-2ubuntu1) > > > > -- > > Lyman Hurd > > (770) 309-8351 (mobile) > > (267) 390-1546 (fax) > > _______________________________________________ > > 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 > -- Lyman Hurd (770) 309-8351 (mobile) (267) 390-1546 (fax) From h.reindl at thelounge.net Sun Feb 17 23:41:32 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 17 Feb 2013 23:41:32 +0100 Subject: [FFmpeg-user] Failed configure of ffmpeg on Ubuntu 10.04 server In-Reply-To: <20130217130143.1abae3be@lrcd.com> References: <20130217122915.78b6eed3@lrcd.com> <51214CD1.7000104@thelounge.net> <20130217130143.1abae3be@lrcd.com> Message-ID: <51215C9C.4040809@thelounge.net> Am 17.02.2013 23:01, schrieb Lou: > On Sun, 17 Feb 2013 22:34:09 +0100 > Reindl Harald wrote: > >> to be exact you need libvpx-DEVEL or however your distribution >> calls development-packages and not only libvpx > > I was referring to compiling libvpx because libvpx-dev from the 10.04 > repository is, unfortunately, too old and will result in: > > ERROR: libvpx encoder version must be >=0.9.7 if you do not like to break your system over the long you are strongly recommended to build a deb or rpm package (depending on your distribution) and not blindly make && make install in this case you get the same devel package if you build a package conform to your distribution these are mine libvpx as example [root at buildserver:~]$ rpm -qa | grep libvpx libvpx-1.0.0-3.fc17.20121214.rh.x86_64 libvpx-utils-1.0.0-3.fc17.20121214.rh.x86_64 libvpx-devel-1.0.0-3.fc17.20121214.rh.x86_64 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From soho123.2012 at gmail.com Mon Feb 18 06:43:03 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Mon, 18 Feb 2013 13:43:03 +0800 Subject: [FFmpeg-user] runtime frame rate is not identical as -r option of ffmpeg Message-ID: Hi All, I try to get video frame and send to remote client. When I use the config for ffserver and command line of ffmpeg as the log below. the frame is very low. it is 6~8 fps only. But the frame rate option and config is 30fps. does anyone have idea: Why the runtime frame is very low? ffserver.conf: ==================== Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 10 MaxBandwidth 100000 CustomLog - File /tmp/feed1.ffm FileMaxSize 20M ACL allow 127.0.0.1 Feed feed1.ffm Format mjpeg VideoSize 640x480 VideoFrameRate 30 VideoBitRate 20000 VideoQMin 1 VideoQMax 10 Noaudio ==================== ffserver command line: ==================== ffserver -f /etc/ffserver.conf & ==================== the log of ffserver: ====================== # ffserver version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 8 2013 14:39:10 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=rsdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --d isable-os2threads --disable-ffplay --disable-postproc --disable-mips32r2 --disable-yasm --disable-vis --di sable-altivec --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable-encoders --ena ble-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4 --disable-decoders --enable-decoder=mjpeg -- enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo --enable-encoder=rawvideo --enable-dec oder=vorbis --enable-encoder=vorbis --disable-hwaccels --disable-muxers --disable-demuxers --enable-muxer= rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov 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 Mon Feb 18 12:52:42 2013 FFserver started. ========================================== the command of ffmpeg: ========================================== ffmpeg -v verbose -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video 0 http://localhost:8090/feed1.ffm ========================================== the log of ffmpeg: ========================================== ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 8 2013 14:39:10 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=rsdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --d isable-os2threads --disable-ffplay --disable-postproc --disable-mips32r2 --disable-yasm --disable-vis --di sable-altivec --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable-encoders --enable-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4 --disable-decoders --enable-decoder=mjpeg -- enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo --enable-encoder=rawvideo --enable-dec oder=vorbis --enable-encoder=vorbis --disable-hwaccels --disable-muxers --disable-demuxers --enable-muxer= rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov 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 [video4linux2,v4l2 @ 0x810230] [3]Capabilities: 4000001 [video4linux2,v4l2 @ 0x810230] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1361187540.410000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 640x480, -5 kb/s, 30 tbr, 1000k tbn, 30 tbc Mon Feb 18 11:39:00 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175 [graph 0 input from stream 0:0 @ 0x814d90] w:640 h:480 pixfmt:yuvj422p tb:1/30 fr:30/1 sar:0/1 sws_param:f lags=2 [scaler for output stream 0:0 @ 0x8157b0] w:640 h:480 flags:'0x4' interl:0 [graph 0 input from stream 0:0 @ 0x814d90] TB:0.033333 FRAME_RATE:30.000000 SAMPLE_RATE:nan [scaler for output stream 0:0 @ 0x8157b0] w:640 h:480 fmt:yuvj422p sar:0/1 -> w:640 h:480 fmt:yuvj422p sar :0/1 flags:0x4 Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now encoder : Lavf54.59.106 Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=1-10, 20000 kb/s, 1000k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> mjpeg) Press [q] to stop, [?] for help frame= 96 fps=7.2 q=1.6 size= 3744kB time=00:00:03.20 bitrate=9584.6kbits/s ========================================== From nichot20 at yahoo.com Mon Feb 18 08:48:14 2013 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 18 Feb 2013 07:48:14 +0000 Subject: [FFmpeg-user] 404 error on webpage In-Reply-To: <20130215181356.GA7809@arborea> References: <511E1957.4060503@yahoo.com> <20130215181356.GA7809@arborea> Message-ID: <5121DCBE.4060100@yahoo.com> On 15/02/13 18:13, Stefano Sabatini wrote: > On date Friday 2013-02-15 11:17:43 +0000, Tim Nicholson wrote: >> http://ffmpeg.org/ffmpeg.html#See-Also has a link to:- >> >> http://ffmpeg.org/ffmpeg-bitstream-filters >> >> Which is currently giving a 404. > > Should be fixed as long as the documentation is updated on the > website, which will be around tonight. > Working now. > Thanks for reporting. > [..] -- Tim From daniel at danieloberhoff.de Mon Feb 18 12:18:41 2013 From: daniel at danieloberhoff.de (Daniel Oberhoff) Date: Mon, 18 Feb 2013 12:18:41 +0100 Subject: [FFmpeg-user] wall clock time(s) in setpts filter (RTCSTART deprecated?) Message-ID: Hi, Starting a new thread for this as the old one seems to have died. I have a problem with synchronizing live streams in a mosaic. I have been pointed towards the stpts filter. But since the stream itself is missing any reference to wall clock time, I would like to use what is documented as RTCSTART. In the doc it says this should be the start time of the stream, and it even documents this as the solution: setpts='(RTCTIME - RTCSTART) / (TB * 1000000)' but it also says that RTCTIME is deprecated, and indeed both RTCTIME and RTCSTART are no longer valid (also confirmed by looking at sources). It also makes a reference to time(0) which should be used instead, but this is not documented, and I could not find anything in the sources either. Any pointers? Using ffmpeg built from source on January second (hash 5ed5e90f2ae299cbec66996860d794771a85fee8 commited on january 1st). Best Daniel From prajwalrk123 at gmail.com Mon Feb 18 12:52:55 2013 From: prajwalrk123 at gmail.com (prajwal kulkarni) Date: Mon, 18 Feb 2013 17:22:55 +0530 Subject: [FFmpeg-user] Fwd: Adding a text on top of video using libavfilter API. In-Reply-To: <970323B16C1E1749A4B642AEFA048E28085BB297@INFHYDEX10MB2.corp.infotech-enterprises.com> References: <970323B16C1E1749A4B642AEFA048E28085BB297@INFHYDEX10MB2.corp.infotech-enterprises.com> Message-ID: Hi all, I am trying to add a visible text ?sampletext? on a video and store in another file called ?myvideo.mp4? Below is my code.(developed from *doc/examples/filtering_video.c *example). * * *#define _XOPEN_SOURCE 600 /* for usleep */* *#include * * * *#include * *#include * *#include * *#include * *#include * *#include * * * *const char *filter_descr = "drawtext=fontcolor=white:fontfile=/usr/share/fonts/liberation/LiberationMono-Bold.ttf:text='samleptext'"; * * * *static AVFormatContext *fmt_ctx;* *static AVCodecContext *dec_ctx;* *AVFilterContext *buffersink_ctx;* *AVFilterContext *buffersrc_ctx;* *AVFilterGraph *filter_graph;* *static int video_stream_index = -1;* *static int64_t last_pts = AV_NOPTS_VALUE;* * * *static int open_input_file(const char *filename)* *{* * int ret;* * AVCodec *dec;* * * * if ((ret = avformat_open_input(&fmt_ctx, filename, NULL, NULL)) < 0) {* * av_log(NULL, AV_LOG_ERROR, "Cannot open input file\n");* * return ret;* * }* * * * if ((ret = avformat_find_stream_info(fmt_ctx, NULL)) < 0) {* * av_log(NULL, AV_LOG_ERROR, "Cannot find stream information\n");* * return ret;* * }* * * * /* select the video stream */* * ret = av_find_best_stream(fmt_ctx, AVMEDIA_TYPE_VIDEO, -1, -1, &dec, 0);* * if (ret < 0) {* * av_log(NULL, AV_LOG_ERROR, "Cannot find a video stream in the input file\n");* * return ret;* * }* * video_stream_index = ret;* * dec_ctx = fmt_ctx->streams[video_stream_index]->codec;* * * * /* init the video decoder */* * if ((ret = avcodec_open2(dec_ctx, dec, NULL)) < 0) {* * av_log(NULL, AV_LOG_ERROR, "Cannot open video decoder\n");* * return ret;* * }* * * * return 0;* *}* * * *static int init_filters(const char *filters_descr)* *{* * char args[512];* * int ret;* * AVFilter *buffersrc = avfilter_get_by_name("buffer");* * AVFilter *buffersink = avfilter_get_by_name("ffbuffersink");* * AVFilterInOut *outputs = avfilter_inout_alloc();* * AVFilterInOut *inputs = avfilter_inout_alloc();* * enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE };* * AVBufferSinkParams *buffersink_params;* * * * filter_graph = avfilter_graph_alloc();* * * * /* buffer video source: the decoded frames from the decoder will be inserted here. */* * snprintf(args, sizeof(args),* * "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",* * dec_ctx->width, dec_ctx->height, dec_ctx->pix_fmt,* * dec_ctx->time_base.num, dec_ctx->time_base.den,* * dec_ctx->sample_aspect_ratio.num, dec_ctx->sample_aspect_ratio.den);* * * * ret = avfilter_graph_create_filter(&buffersrc_ctx, buffersrc, "in",* * args, NULL, filter_graph);* * if (ret < 0) {* * av_log(NULL, AV_LOG_ERROR, "Cannot create buffer source\n");* * return ret;* * }* * * * /* buffer video sink: to terminate the filter chain. */* * buffersink_params = av_buffersink_params_alloc();* * buffersink_params->pixel_fmts = pix_fmts;* * ret = avfilter_graph_create_filter(&buffersink_ctx, buffersink, "out",* * NULL, buffersink_params, filter_graph);* * av_free(buffersink_params);* * if (ret < 0) {* * av_log(NULL, AV_LOG_ERROR, "Cannot create buffer sink\n");* * return ret;* * }* * * * /* Endpoints for the filter graph. */* * outputs->name = av_strdup("in");* * outputs->filter_ctx = buffersrc_ctx;* * outputs->pad_idx = 0;* * outputs->next = NULL;* * * * inputs->name = av_strdup("out");* * inputs->filter_ctx = buffersink_ctx;* * inputs->pad_idx = 0;* * inputs->next = NULL;* * * * if ((ret = avfilter_graph_parse(filter_graph, filters_descr,* * &inputs, &outputs, NULL)) < 0)* * return ret;* * * * if ((ret = avfilter_graph_config(filter_graph, NULL)) < 0)* * return ret;* * return 0;* *}* * * *static void save_picref(AVFilterBufferRef *picref, AVRational time_base)* *{* * int x, y;* * uint8_t *p0, *p;* * int64_t delay;* * FILE *pFile;* * char szFilename[32]="myvideo.mp4";* * * * // Open file* * pFile=fopen(szFilename, "wb");* * if(pFile==NULL)* * return;* * * * if (picref->pts != AV_NOPTS_VALUE) {* * if (last_pts != AV_NOPTS_VALUE) {* * /* sleep roughly the right amount of time;* * * usleep is in microseconds, just like AV_TIME_BASE. */* * delay = av_rescale_q(picref->pts - last_pts,* * time_base, AV_TIME_BASE_Q);* * if (delay > 0 && delay < 1000000)* * usleep(delay);* * }* * last_pts = picref->pts;* * }* * fprintf(pFile, "P6\n%d %d\n255\n", picref->video->w, picref->video->h);* * // Write pixel data* * for(y=0; yvideo->w; y++)* * fwrite(picref->data[0], 1, picref->video->w*3, pFile);* * * * // Close file* * fclose(pFile);* * * *}* * * *int main(int argc, char **argv)* *{* * int ret;* * AVPacket packet;* * AVFrame frame;* * int got_frame;* * * * if (argc != 2) {* * fprintf(stderr, "Usage: %s file\n", argv[0]);* * exit(1);* * }* * * * avcodec_register_all();* * av_register_all();* * avfilter_register_all();* * * * if ((ret = open_input_file(argv[1])) < 0)* * goto end;* * if ((ret = init_filters(filter_descr)) < 0)* * goto end;* * * * /* read all packets */* * while (1) {* * AVFilterBufferRef *picref;* * if ((ret = av_read_frame(fmt_ctx, &packet)) < 0)* * break;* * * * if (packet.stream_index == video_stream_index) {* * avcodec_get_frame_defaults(&frame);* * got_frame = 0;* * ret = avcodec_decode_video2(dec_ctx, &frame, &got_frame, &packet);* * if (ret < 0) {* * av_log(NULL, AV_LOG_ERROR, "Error decoding video\n");* * break;* * }* * * * if (got_frame) {* * frame.pts = av_frame_get_best_effort_timestamp(&frame);* * * * /* push the decoded frame into the filtergraph */* * if (av_buffersrc_add_frame(buffersrc_ctx, &frame, 0) < 0) { * * av_log(NULL, AV_LOG_ERROR, "Error while feeding the filtergraph\n");* * break;* * }* * * * /* pull filtered pictures from the filtergraph */* * while (1) {* * ret = av_buffersink_get_buffer_ref(buffersink_ctx, &picref, 0);* * if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)* * break;* * if (ret < 0)* * goto end;* * * * if (picref) {* * save_picref(picref, buffersink_ctx->inputs[0]->time_base);* * avfilter_unref_bufferp(&picref);* * }* * }* * }* * }* * av_free_packet(&packet);* * }* *end:* * avfilter_graph_free(&filter_graph);* * if (dec_ctx)* * avcodec_close(dec_ctx);* * avformat_close_input(&fmt_ctx);* * * * if (ret < 0 && ret != AVERROR_EOF) {* * char buf[1024];* * av_strerror(ret, buf, sizeof(buf));* * fprintf(stderr, "Error occurred: %s\n", buf);* * exit(1);* * }* * * * exit(0);* *}* * * After compilation and execution, when I try to play the video using *ffplay myvideo.mp4 * I am getting the following error. *myvideo.mp4: Invalid data found when processing input* * * i am unable to resolve the error,can anyone pls help me out in solving the error. * * * * ------------------------------ DISCLAIMER: This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech and delete the original message. From tevans.uk at googlemail.com Mon Feb 18 12:58:23 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 18 Feb 2013 11:58:23 +0000 Subject: [FFmpeg-user] Scaling down resolution, reduce framerate and record video from IP camera In-Reply-To: <401404270e2934da6cd6964169617cc5@hasty.vp44.net> References: <401404270e2934da6cd6964169617cc5@hasty.vp44.net> Message-ID: On Sun, Feb 17, 2013 at 10:38 AM, Chris wrote: > Hi all. > > I have a question for you guys: I have recently installed a Ubiquity Aircam and > I would like to record a daily video. The camera streams via rtsp at 720p > resolution with 30fps and I obviously don't want to record it that way. > I would like to reduce the resolution by half to 640x360 and cut the framerate > to let's say 1-2 fps. > I'm already using ffmpeg to grab a frame every minute (it's a public weather > cam) but it's full size and I can't just do that every second: > > /home/manager/ffmpeg/ffmpeg -i rtsp://aircam/live/ch00_0 -y -f image2 -ss 8 > -sameq -t 0.001 /var/www/webcam/aircam-full.jpg > > Is there any way to setup ffmpeg to capture the stream with the settings I > require? > > Thanks > -Chris > Use the scale filter to resize - half the iw (input width) and scale height appropriately - and the select filter to pull out a single frame each second from the source and set the frame rate on the output: ffmpeg -i rtsp://... -vf "select='not(mod(n,25)),scale=iw/2:-1'" -r 1 -c:v libx264 -an out.ts This will produce 1 hour of 1 fps footage for every hour of footage shot, ie it is snapshots in real time. If you were instead hoping for a sped up timeshift effect, then something like this should work: ffmpeg -i rtsp://... -vf "select='not(mod(n,25)),scale=iw/2:-1,setpts=0.04*PTS" -c:v libx264 -an out.ts This works by dropping 24 out of the 25 frames each second, and speeding up the result 25 times. You may need to different calculations if your source is not PAL, or if that is too fast a speedup. For added bonus, you could use segmenter to also chop up the video automatically into appropriate day/hour sized chunks! Cheers Tom PS: The select filter is probably not strictly necessary in either case, but will avoid frame drops being reported, since you are explicitly dropping them! From 254017183 at qq.com Mon Feb 18 03:21:29 2013 From: 254017183 at qq.com (=?gbk?B?uPDBwQ==?=) Date: Mon, 18 Feb 2013 10:21:29 +0800 Subject: [FFmpeg-user] libstagefright_h264 not found Message-ID: cc1plus: warning: command line option "-std=c99" is valid for C/ObjC but not for C++ In file included from ../android-source/frameworks/base/include/binder/IBinder.h:23, from ../android-source/frameworks/base/include/binder/ProcessState.h:20, from /tmp//ffconf.4emoAFLT.cpp:1: ../android-source/frameworks/base/include/utils/Vector.h:20:15: error: new: No such file or directory ERROR: libstagefright_h264 not found ffmpeg 1.1 -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 279236 bytes Desc: not available URL: From cjandash at gmail.com Tue Feb 19 01:53:26 2013 From: cjandash at gmail.com (CJ Myers) Date: Mon, 18 Feb 2013 19:53:26 -0500 Subject: [FFmpeg-user] Issue trimming an AVI Message-ID: I am trying to trim a long AVI file into episodes. I do not want to re-encode, so I use the copy feature when I identify the codecs. I can successfully get the chunk I want, but it doesn't play properly in WMP or VLC. ffplay works fine. Originally, when I attempted to play the trimmed file, the video and audio was garbled and unwatchable. I installed a new codec pack, and that helped, but didn't fix it. Now in WMP, the video seems fine, but the audio doesn't play except for random "clicks" In VLC, the audio plays along with the video, but it is MUCH faster than the video. (It's like listening to the chipmunks). When I take the file and upload it to YouTube, it works fine in YouTube! Here is the command I used: ffmpeg -i "java 2013-02-09 15-27-08-331.avi" -t 0:38:19.90 -c:v copy -c:a copy -map 0 Ep1test.avi (I also tried the above with just -c copy, with identical results) Here is the output I get when I run the command: ffmpeg version N-49997-gb9c5448 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 16 2013 02:32:10 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-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. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.103 / 3. 37.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [avi @ 000000000030c140] non-interleaved AVI Input #0, avi, from 'java 2013-02-09 15-27-08-331.avi': Metadata: encoder : BandiAviMuxer 1.0 Duration: 03:01:48.46, start: 0.000000, bitrate: 2694 kb/s Stream #0:0: Video: mpeg1video (MPEG / 0x4745504D), yuv420p, 1224x720 [SAR 1:1 DAR 17:10], 104857 kb/s, 30 tbr, 30 tbn, 30 tbc Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 160 kb/s [NULL @ 00000000003301a0] requested bits_per_coded_sample (16) and actually stored (0) differ Output #0, avi, to 'Ep1test.avi': Metadata: ISFT : Lavf54.63.100 Stream #0:0: Video: mpeg1video (mpg1 / 0x3167706D), yuv420p, 1224x720 [SAR 1:1 DAR 17:10], q=2-31, 104857 kb/s, 30 tbn, 30 tbc Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 160 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=68998 fps=2789 q=-1.0 Lsize= 756917kB time=00:38:19.93 bitrate=2696.0kbits/s video:708103kB audio:44920kB subtitle:0 global headers:0kB muxing overhead 0.517093% And here is the header info on the source and dest files: D:\Media\Videos\BandiCam\Minecraft Edited>ffmpeg -i "java 2013-02-09 15-27-08-331.avi" ffmpeg version N-49997-gb9c5448 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 16 2013 02:32:10 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-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. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.103 / 3. 37.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [avi @ 000000000030bd20] non-interleaved AVI Input #0, avi, from 'java 2013-02-09 15-27-08-331.avi': Metadata: encoder : BandiAviMuxer 1.0 Duration: 03:01:48.46, start: 0.000000, bitrate: 2694 kb/s Stream #0:0: Video: mpeg1video (MPEG / 0x4745504D), yuv420p, 1224x720 [SAR 1:1 DAR 17:10], 104857 kb/s, 30 tbr, 30 tbn, 30 tbc Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 160 kb/s At least one output file must be specified D:\Media\Videos\BandiCam\Minecraft Edited>ffplay -i Ep1test.avi ffplay version N-49997-gb9c5448 Copyright (c) 2003-2013 the FFmpeg developers built on Feb 16 2013 02:32:10 with gcc 4.7.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --e nable-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. 17.101 / 52. 17.101 libavcodec 54. 91.103 / 54. 91.103 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 37.103 / 3. 37.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [avi @ 00000000020932e0] sample size (1) != block align (1152)0KB sq= 0B f=0/0 [avi @ 00000000020932e0] non-interleaved AVIaq= 0KB vq= 0KB sq= 0B f=0/0 [mpeg1video @ 00000000020a5340] sequence header damagedvq= 0KB sq= 0B f=0/0 -922Input #0, avi, from 'Ep1test.avi':= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 3372 Metadata: 0368 encoder : 5477Lavf54.63.1005808 .00 A Duration: -V: 00:38:19.93 0.0, start: 00 f0.000000d= , bitrate: 0 a2696 kb/sq= 0KB Stream #0:0 vq= : Video: mpeg1video (mpg1 / 0x3167706D), yuv420p, 1224x720 [SAR 1:1 DAR 17:10], 104857 kb/s 0, 30 tbrKB s, 30 tbnq= , 30 tbc 0B Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, 160 kb/s [mpeg1video @ 00000000020a5340] sequence header damaged 1.82 A-V: -0.424 fd= 0 aq= 37KB vq= 12KB sq= 0B f=0/0 Thanks for the help! ~CJ From francois.visagie at gmail.com Tue Feb 19 08:49:38 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 19 Feb 2013 09:49:38 +0200 Subject: [FFmpeg-user] Issue trimming an AVI In-Reply-To: References: Message-ID: <003b01ce0e75$addbaaa0$0992ffe0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of CJ Myers > Sent: 19 February 2013 02:53 > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] Issue trimming an AVI > > I am trying to trim a long AVI file into episodes. I do not want to re-encode, > so I use the copy feature when I identify the codecs. I can successfully get > the chunk I want, but it doesn't play properly in WMP or VLC. ffplay works > fine. > > Originally, when I attempted to play the trimmed file, the video and audio > was garbled and unwatchable. I installed a new codec pack, and that helped, > but didn't fix it. Now in WMP, the video seems fine, but the audio doesn't > play except for random "clicks" In VLC, the audio plays along with the video, > but it is MUCH faster than the video. (It's like listening to the chipmunks). My guess it's a keyframe issue. You instructed ffmpeg NOT to re-encode any frames, but did you ensure the trim starts on a keyframe? Put differently, I'm unsure what ffmpeg does when instructed to copy and encoding starts on a non-keyframe. > When I take the file and upload it to YouTube, it works fine in YouTube! > > Here is the command I used: > ffmpeg -i "java 2013-02-09 15-27-08-331.avi" -t 0:38:19.90 -c:v copy -c:a copy - > map 0 Ep1test.avi Besides the point, but is the -map parameter superfluous here? > (I also tried the above with just -c copy, with identical results) > > Here is the output I get when I run the command: > ffmpeg version N-49997-gb9c5448 Copyright (c) 2000-2013 the FFmpeg > developers > built on Feb 16 2013 02:32:10 with gcc 4.7.2 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads -- > enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable- > gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable- > libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore- > amrnb --enable-libopencore-amrwb --e nable-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. 17.101 / 52. 17.101 > libavcodec 54. 91.103 / 54. 91.103 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 37.103 / 3. 37.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [avi @ 000000000030c140] non-interleaved AVI Input #0, avi, from 'java 2013- > 02-09 15-27-08-331.avi': > Metadata: > encoder : BandiAviMuxer 1.0 > Duration: 03:01:48.46, start: 0.000000, bitrate: 2694 kb/s > Stream #0:0: Video: mpeg1video (MPEG / 0x4745504D), yuv420p, 1224x720 > [SAR 1:1 DAR 17:10], 104857 kb/s, 30 tbr, 30 tbn, 30 tbc > Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, > 160 kb/s > [NULL @ 00000000003301a0] requested bits_per_coded_sample (16) and > actually stored (0) differ Output #0, avi, to 'Ep1test.avi': > Metadata: > ISFT : Lavf54.63.100 > Stream #0:0: Video: mpeg1video (mpg1 / 0x3167706D), yuv420p, 1224x720 > [SAR 1:1 DAR 17:10], q=2-31, 104857 kb/s, 30 tbn, 30 tbc > Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, 160 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame=68998 fps=2789 q=-1.0 Lsize= 756917kB time=00:38:19.93 > bitrate=2696.0kbits/s video:708103kB audio:44920kB subtitle:0 global > headers:0kB muxing overhead 0.517093% > > And here is the header info on the source and dest files: > D:\Media\Videos\BandiCam\Minecraft Edited>ffmpeg -i "java 2013-02-09 15- > 27-08-331.avi" > ffmpeg version N-49997-gb9c5448 Copyright (c) 2000-2013 the FFmpeg > developers > built on Feb 16 2013 02:32:10 with gcc 4.7.2 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads -- > enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable- > gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable- > libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore- > amrnb --enable-libopencore-amrwb --e nable-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. 17.101 / 52. 17.101 > libavcodec 54. 91.103 / 54. 91.103 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 37.103 / 3. 37.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [avi @ 000000000030bd20] non-interleaved AVI Input #0, avi, from 'java 2013- > 02-09 15-27-08-331.avi': > Metadata: > encoder : BandiAviMuxer 1.0 > Duration: 03:01:48.46, start: 0.000000, bitrate: 2694 kb/s > Stream #0:0: Video: mpeg1video (MPEG / 0x4745504D), yuv420p, 1224x720 > [SAR 1:1 DAR 17:10], 104857 kb/s, 30 tbr, 30 tbn, 30 tbc > Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, > 160 kb/s > At least one output file must be specified > > D:\Media\Videos\BandiCam\Minecraft Edited>ffplay -i Ep1test.avi ffplay > version N-49997-gb9c5448 Copyright (c) 2003-2013 the FFmpeg developers > built on Feb 16 2013 02:32:10 with gcc 4.7.2 (GCC) > configuration: --enable-gpl --enable-version3 --disable-w32threads -- > enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable- > gnutls --enab le-libass --enable-libbluray --enable-libcaca --enable- > libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore- > amrnb --enable-libopencore-amrwb --e nable-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. 17.101 / 52. 17.101 > libavcodec 54. 91.103 / 54. 91.103 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 37.103 / 3. 37.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [avi @ 00000000020932e0] sample size (1) != block align (1152)0KB sq= 0B > f=0/0 > [avi @ 00000000020932e0] non-interleaved AVIaq= 0KB vq= 0KB sq= 0B > f=0/0 > [mpeg1video @ 00000000020a5340] sequence header damagedvq= 0KB sq= > 0B > f=0/0 > -922Input #0, avi, from 'Ep1test.avi':= 0 aq= 0KB vq= 0KB sq= 0B > f=0/0 > 3372 Metadata: > 0368 encoder : 5477Lavf54.63.1005808 > .00 A Duration: -V: 00:38:19.93 0.0, start: 00 f0.000000d= , bitrate: 0 > a2696 kb/sq= > 0KB Stream #0:0 vq= : Video: mpeg1video (mpg1 / 0x3167706D), yuv420p, > 1224x720 [SAR 1:1 DAR 17:10], 104857 kb/s 0, 30 tbrKB s, 30 tbnq= , 30 > tbc 0B > Stream #0:1: Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz, stereo, s16p, > 160 kb/s > [mpeg1video @ 00000000020a5340] sequence header damaged > 1.82 A-V: -0.424 fd= 0 aq= 37KB vq= 12KB sq= 0B f=0/0 > > Thanks for the help! > > ~CJ > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Tue Feb 19 09:42:07 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 08:42:07 +0000 (UTC) Subject: [FFmpeg-user] Issue trimming an AVI References: Message-ID: CJ Myers gmail.com> writes: > [avi @ 000000000030c140] non-interleaved AVI Difficult to say without a sample but this may be the culprit. Carl Eugen From jh.moon.cs at yonsei.ac.kr Tue Feb 19 10:02:26 2013 From: jh.moon.cs at yonsei.ac.kr (=?UTF-8?B?66y47KSA7ZiV?=) Date: Tue, 19 Feb 2013 18:02:26 +0900 (KST) Subject: [FFmpeg-user] =?utf-8?q?=5Bffmpeg-user_mailing_list=5D_Questionin?= =?utf-8?q?g_about_encoded_file_size_with_various_motion_estimation?= =?utf-8?q?_algorithms_in_H=2E263_codec?= Message-ID: <512343733fef_@_imoxion.com> Dear, all I'm Junhyung Moon, who is a Ph.D. student in Yonsei University. Thesedays, I'm doing some video encoding experiments with ffmpeg-1.1.1 for my research. I got result files after encodings with same parameters (quantization level, GOP size), only changing motion estimation algorithms (epzs, full search, diamond search, etc.) As I know, encoded file size for full search is smaller than that for any other motion estimation algorithm. However, I found that file size for full search is the biggest !! So, I was confused about this result. If you can comment about this result, it will be very appreciated and helpful for my research. Thanks million in advance, Junhyung Moon From un1x0nly at gmail.com Tue Feb 19 10:19:14 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Tue, 19 Feb 2013 10:19:14 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? Message-ID: Hey guys! Is there a way I could split the video into segments and later join them together back into a single _smooth_ video file using ffmpeg? Regards, ?ygimantas From cehoyos at ag.or.at Tue Feb 19 10:40:03 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 09:40:03 +0000 (UTC) Subject: [FFmpeg-user] How to split and then concatenate a video file? References: Message-ID: ?ygimantas Bruzgys gmail.com> writes: > Is there a way I could split the video into segments > and later join them together back into a single > _smooth_ video file using ffmpeg? Did you test the segment muxer? Carl Eugen From cehoyos at ag.or.at Tue Feb 19 10:41:38 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 09:41:38 +0000 (UTC) Subject: [FFmpeg-user] [ffmpeg-user mailing list] Questioning about encoded file size with various motion estimation algorithms in H.263 codec References: <512343733fef_@_imoxion.com> Message-ID: ??? yonsei.ac.kr> writes: > I got result files after encodings with same parameters > (quantization level, GOP size), only changing motion > estimation algorithms (epzs, full search, diamond search, > etc.) > > As I know, encoded file size for full search is smaller > than that for any other motion estimation algorithm. > > However, I found that file size for full search is the > biggest !! Could you add some information so whoever is interested could try to reproduce? Carl Eugen From acct_reg at fireslug.com Tue Feb 19 11:01:00 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Tue, 19 Feb 2013 15:31:00 +0530 Subject: [FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS Message-ID: <51234D5C.2030504@fireslug.com> Hello Everyone, My desired output is an iOS compatible mp4 file, using H.264 Level 3.0 baseline. I've tried several commands, but always end up with a failure. I posted a question in regards to this previously on a thread titled 'Need help encoding a specific video for HTML5' -- but appears that unknowingly I had hijacked another thread by clicking the reply button and changing the subject (my apologies, still new to mailing lists). Therefore, I decided to start this question all over again, I hope that's okay. As suggested, I have recompiled ffmpeg with the required codecs. My source file is as follows: == # ffmpeg -i test.mov ffmpeg version N-50077-g71ae8d5 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 18 2013 08:42:45 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-02 19:09:54 Duration: 00:26:49.68, start: 0.000000, bitrate: 2960 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 171 kb/s Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 638x476 [SAR 1:1 DAR 319:238], 2800 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 59.94 tbc Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler == Based on this input file, what command should I run to get the best possible mp4 output with 100% iOS compatibility? Running the following command failed: ffmpeg -i test.mov -s qvga -b:v 384k -vcodec libx264 -r 23.976 -acodec libfaac -ac 2 -ar 44100 -ab 64k -vpre baseline -crf 22 -deinterlace test_new.mp4 Error: File for preset 'baseline' not found Previously, I had tried: ffmpeg -y -i in.mov -filter:v scale=640:-1 \ -c:v libx264-preset:v slow-profile:v baseline \ -x264opts level=3.0:vbv -maxrate=750:vbv -bufsize=3750:ref=1 \ -b:v 500k-r:v25/1 -force_fps -movflags faststart \ -c:a libfaac-b:a 80k-pass x out.mp4 Error: Unrecognized option 'maxrate=750:vbv' I need help understanding this, what am I doing wrong and how can I get it to work? Your advice and help is greatly appreciated, thank you so much in advance. Best Regards, Tony From james.darnley at gmail.com Tue Feb 19 12:21:07 2013 From: james.darnley at gmail.com (James Darnley) Date: Tue, 19 Feb 2013 12:21:07 +0100 Subject: [FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS In-Reply-To: <51234D5C.2030504@fireslug.com> References: <51234D5C.2030504@fireslug.com> Message-ID: <51236023.8080502@gmail.com> On 2013-02-19 11:01, Antony Peiris wrote: > ffmpeg -y -i in.mov -filter:v scale=640:-1 \ > > -c:v libx264-preset:v slow-profile:v baseline \ > > -x264opts level=3.0:vbv -maxrate=750:vbv -bufsize=3750:ref=1 \ > > -b:v 500k-r:v25/1 -force_fps -movflags faststart \ > > -c:a libfaac-b:a 80k-pass x out.mp4 > > > Error: Unrecognized option 'maxrate=750:vbv' You have an absolute mess of a command line there. Spaces where there shouldn't be spaces and no spaces where there should be one. Try this: > ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v slow -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X out.mp4 (Ugh. The ffmpeg syntax is horrible like this.) > ffmpeg -y -i in.mov -vf scale=640:-1 -vcodec libx264 -vpreset slow -vprofile baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -vb 500k -r 25/1 -force_fps -movflags faststart -acodec libfaac -ab 80k -pass X out.mp4 (A bit better) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From acct_reg at fireslug.com Tue Feb 19 12:32:28 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Tue, 19 Feb 2013 17:02:28 +0530 Subject: [FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS In-Reply-To: <51236023.8080502@gmail.com> References: <51234D5C.2030504@fireslug.com> <51236023.8080502@gmail.com> Message-ID: <512362CC.4010802@fireslug.com> Thank you, I totally agree that's a lot better. I did not come up with the command myself, had some help. > ffmpeg -y -i in.mov -vf scale=640:-1 -vcodec libx264 -vpreset slow -vprofile baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -vb 500k -r 25/1 -force_fps -movflags faststart -acodec libfaac -ab 80k -pass X out.mp4 Tired what you recommend, but this gave me the following error: Unrecognized option 'vpreset'. Have I compiled ffmpeg incorrectly? On 19/02/2013 4:51 PM, James Darnley wrote: > On 2013-02-19 11:01, Antony Peiris wrote: >> ffmpeg -y -i in.mov -filter:v scale=640:-1 \ >> >> -c:v libx264-preset:v slow-profile:v baseline \ >> >> -x264opts level=3.0:vbv -maxrate=750:vbv -bufsize=3750:ref=1 \ >> >> -b:v 500k-r:v25/1 -force_fps -movflags faststart \ >> >> -c:a libfaac-b:a 80k-pass x out.mp4 >> >> >> Error: Unrecognized option 'maxrate=750:vbv' > You have an absolute mess of a command line there. Spaces where there > shouldn't be spaces and no spaces where there should be one. > > Try this: >> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v slow -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X out.mp4 > (Ugh. The ffmpeg syntax is horrible like this.) > >> ffmpeg -y -i in.mov -vf scale=640:-1 -vcodec libx264 -vpreset slow -vprofile baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -vb 500k -r 25/1 -force_fps -movflags faststart -acodec libfaac -ab 80k -pass X out.mp4 > (A bit better) > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From un1x0nly at gmail.com Tue Feb 19 12:40:33 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Tue, 19 Feb 2013 12:40:33 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: Message-ID: On Tue, Feb 19, 2013 at 10:40 AM, Carl Eugen Hoyos wrote: > ?ygimantas Bruzgys gmail.com> writes: > >> Is there a way I could split the video into segments >> and later join them together back into a single >> _smooth_ video file using ffmpeg? > > Did you test the segment muxer? Do you mean it's when you 'force format' with '-f segment'? if so, yes, I'v tried it. It cuts the video quite nicely. However, '-f concat' then have troubles joining them: - reports negative STTS errors - ffprobe reports shorter duration of an concatenated video (it also reports STTS errors) - the actual video is longer than the original clip, because - there are slight pauses in between split points I think there might be a bug in this '-f segment' that has to do with timestamp calculation, but I'm not sure about that. I've uploaded the concatenated video to youtube for a demonstration: http://www.youtube.com/watch?v=D-rTWzrnIwU This video was firstly split into segments of roughly 2 seconds. Regards, ?ygimantas From jh.moon.cs at yonsei.ac.kr Tue Feb 19 12:47:16 2013 From: jh.moon.cs at yonsei.ac.kr (=?UTF-8?B?66y47KSA7ZiV?=) Date: Tue, 19 Feb 2013 20:47:16 +0900 (KST) Subject: [FFmpeg-user] =?utf-8?q?=5Bffmpeg-user_mailing_list=5D_Questionin?= =?utf-8?q?g_aboutencoded_file_size_with_various_motion_estimation_?= =?utf-8?q?algorithmsin_H=2E263_codec?= Message-ID: <512366503feb_@_imoxion.com> As we know, we can change motion estimation algorithm by specifying "-dia_size" option value. I got following result file sizes. When full search (dia_size > 1024), encoded file size is 258,908 bytes. When funny diamond search (dia_size == -1), encoded file size is 244,926 bytes. When sab diamond search (dia_size 768 && dia_size512 && dia_size256 && dia_size2 && dia_size ????: ffmpeg-user at ffmpeg.org ????: 2013-02-19 18:41:38 GMT +0900 (Asia/Seoul) ??: Re: [FFmpeg-user] [ffmpeg-user mailing list] Questioning aboutencoded file size with various motion estimation algorithmsin H.263 codec ??? yonsei.ac.kr> writes: > I got result files after encodings with same parameters > (quantization level, GOP size), only changing motion > estimation algorithms (epzs, full search, diamond search, > etc.) > > As I know, encoded file size for full search is smaller > than that for any other motion estimation algorithm. > > However, I found that file size for full search is the > biggest !! Could you add some information so whoever is interested could try to reproduce? 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 Feb 19 12:54:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 11:54:40 +0000 (UTC) Subject: [FFmpeg-user] How to split and then concatenate a video file? References: Message-ID: ?ygimantas Bruzgys gmail.com> writes: > > Did you test the segment muxer? > > Do you mean it's when you 'force format' with '-f segment'? > if so, yes, I'v tried it. It cuts the video quite nicely. > However, '-f concat' then have troubles joining them: Command lines and complete, uncut console output missing. Carl Eugen From james.darnley at gmail.com Tue Feb 19 12:57:31 2013 From: james.darnley at gmail.com (James Darnley) Date: Tue, 19 Feb 2013 12:57:31 +0100 Subject: [FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS In-Reply-To: <512362CC.4010802@fireslug.com> References: <51234D5C.2030504@fireslug.com> <51236023.8080502@gmail.com> <512362CC.4010802@fireslug.com> Message-ID: <512368AB.50601@gmail.com> On 2013-02-19 12:32, Antony Peiris wrote: > Thank you, I totally agree that's a lot better. I did not come up with > the command myself, had some help. > >> ffmpeg -y -i in.mov -vf scale=640:-1 -vcodec libx264 -vpreset slow >> -vprofile baseline -x264opts >> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -vb 500k -r 25/1 >> -force_fps -movflags faststart -acodec libfaac -ab 80k -pass X out.mp4 > > > Tired what you recommend, but this gave me the following error: > Unrecognized option 'vpreset'. Did you try the other one (the first one) I posted? >>> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v >>> slow -profile:v baseline -x264opts >>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v >>> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X >>> out.mp4 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Tue Feb 19 12:55:50 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 11:55:50 +0000 (UTC) Subject: [FFmpeg-user] [ffmpeg-user mailing list] Questioning aboutencoded file size with various motion estimation algorithmsin H.263 codec References: <512366503feb_@_imoxion.com> Message-ID: ??? yonsei.ac.kr> writes: > > Could you add some information so whoever is interested > > could try to reproduce? I meant command lines, complete, uncut console output. Please do not top-post here and please fix your quoting. Carl Eugen From acct_reg at fireslug.com Tue Feb 19 13:08:14 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Tue, 19 Feb 2013 17:38:14 +0530 Subject: [FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS In-Reply-To: <512368AB.50601@gmail.com> References: <51234D5C.2030504@fireslug.com> <51236023.8080502@gmail.com> <512362CC.4010802@fireslug.com> <512368AB.50601@gmail.com> Message-ID: <51236B2E.4000804@fireslug.com> > Did you try the other one (the first one) I posted? > >>>> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v >>>> slow -profile:v baseline -x264opts >>>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v >>>> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X >>>> out.mp4 Not at first, but I did try now. Initially I got an error about -pass since it is expecting a number and not X. So I changed the command like so: ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v slow -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k*-pass 2* out.mp4 Just to see if it would work. I assume 2 passes? Next, I got the following error: Unknown encoder 'libfaac' Does this mean I have to recompile ffmpeg with libfaac, and if so how? I previously followed these instructions to compile: http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide Is there a compatible encoder that I can use other than libfaac, alternatively? Thank you so much once again! On 19/02/2013 5:27 PM, James Darnley wrote: > On 2013-02-19 12:32, Antony Peiris wrote: >> Thank you, I totally agree that's a lot better. I did not come up with >> the command myself, had some help. >> >>> ffmpeg -y -i in.mov -vf scale=640:-1 -vcodec libx264 -vpreset slow >>> -vprofile baseline -x264opts >>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -vb 500k -r 25/1 >>> -force_fps -movflags faststart -acodec libfaac -ab 80k -pass X out.mp4 >> >> Tired what you recommend, but this gave me the following error: >> Unrecognized option 'vpreset'. > Did you try the other one (the first one) I posted? > >>>> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v >>>> slow -profile:v baseline -x264opts >>>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v >>>> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X >>>> out.mp4 > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From giulianoc at catrasoftware.it Tue Feb 19 13:09:03 2013 From: giulianoc at catrasoftware.it (Giuliano Catrambone) Date: Tue, 19 Feb 2013 13:09:03 +0100 Subject: [FFmpeg-user] Adobe segmented files? Message-ID: <51236B5F.9000302@catrasoftware.it> Hi, do you know if ffmpeg is able to encode and generates segments plus manifest file using the Adobe format? So it should generate files like Manifest.f4m, bootstrap.bin and the segments like Seg1-Frag1086, Seg1-Frag1087... Thanks giu From un1x0nly at gmail.com Tue Feb 19 13:15:46 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Tue, 19 Feb 2013 13:15:46 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: Message-ID: On Tue, Feb 19, 2013 at 12:54 PM, Carl Eugen Hoyos wrote: > Command lines and complete, uncut console output > missing. No problems, here you go: 1) Splitting the video: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -c copy -segment_time 2 -map 0 out%03d.mp4 ffmpeg version N-49277-g7003d65 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.100 Duration: 00:01:00.00, start: 0.000000, bitrate: 1361 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1239 kb/s, 24 fps, 24 tbr, 16k tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s Metadata: handler_name : SoundHandler Output #0, segment, to 'out%03d.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 1239 kb/s, 24 fps, 90k tbn, 24 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 128 kb/s Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1424 fps=0.0 q=-1.0 Lsize=N/A time=00:01:00.00 bitrate=N/A video:8974kB audio:938kB subtitle:0 global headers:0kB muxing overhead -100.000217% 2) Concatenating the video: zybru at hp-6530b-bs:~/Desktop$ cat concat.lst | head -n 2; cat concat.lst | tail -n 2 file 'out000.mp4' file 'out001.mp4' file 'out028.mp4' file 'out029.mp4' zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -c copy joined.mp4 ffmpeg version N-49277-g7003d65 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x1760f80] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: 00:00:00.67, start: 0.000000, bitrate: 6 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1496 kb/s, 20.63 fps, 24 tbr, 12288 tbn, 48 tbc Stream #0:1: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s Output #0, mp4, to 'joined.mp4': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 1496 kb/s, 20.63 fps, 12288 tbn, 12288 tbc Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 126 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help Invalid SampleDelta in STTS -56250 9096kB time=00:01:02.29 bitrate=1196.1kbits/s frame= 1424 fps=389 q=-1.0 Lsize= 9970kB time=00:01:07.42 bitrate=1211.3kbits/s video:8974kB audio:938kB subtitle:0 global headers:0kB muxing overhead 0.588816% zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 ffprobe version N-49277-g7003d65 Copyright (c) 2007-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x202b460] Invalid SampleDelta in STTS -729599 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x202b460] Invalid SampleDelta in STTS -2617339 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Duration: 00:00:08.05, start: 0.000000, bitrate: 10142 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1101 kb/s, 21.34 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 113 kb/s Metadata: handler_name : SoundHandler 3) Mind the duration. So, I've later tried to fix the clip performing a simple command: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i joined.mp4 -c copy fixed.mp4 ffmpeg version N-49277-g7003d65 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1409f40] Invalid SampleDelta in STTS -729599 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1409f40] Invalid SampleDelta in STTS -2617339 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Duration: 00:00:08.05, start: 0.000000, bitrate: 10142 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1101 kb/s, 21.34 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 113 kb/s Metadata: handler_name : SoundHandler Output #0, mp4, to 'fixed.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 1101 kb/s, 21.34 fps, 12288 tbn, 12288 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 113 kb/s Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1424 fps=0.0 q=-1.0 Lsize= 9970kB time=00:01:07.42 bitrate=1211.3kbits/s video:8974kB audio:938kB subtitle:0 global headers:0kB muxing overhead 0.588816% After this, ffprobe reports: zybru at hp-6530b-bs:~/Desktop$ ffprobe fixed.mp4 ffprobe version N-49277-g7003d65 Copyright (c) 2007-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x19fe460] Invalid SampleDelta in STTS -8183 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fixed.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Duration: 00:01:07.40, start: 0.000000, bitrate: 1211 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1101 kb/s, 21.34 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 113 kb/s Metadata: handler_name : SoundHandler I may upload small.mp4 if needed. ?ygimantas From james.darnley at gmail.com Tue Feb 19 13:21:32 2013 From: james.darnley at gmail.com (James Darnley) Date: Tue, 19 Feb 2013 13:21:32 +0100 Subject: [FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS In-Reply-To: <51236B2E.4000804@fireslug.com> References: <51234D5C.2030504@fireslug.com> <51236023.8080502@gmail.com> <512362CC.4010802@fireslug.com> <512368AB.50601@gmail.com> <51236B2E.4000804@fireslug.com> Message-ID: <51236E4C.3060805@gmail.com> On 2013-02-19 13:08, Antony Peiris wrote: >> Did you try the other one (the first one) I posted? >> >>>>> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v >>>>> slow -profile:v baseline -x264opts >>>>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v >>>>> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X >>>>> out.mp4 > > Not at first, but I did try now. Initially I got an error about -pass > since it is expecting a number and not X. So I changed the command like so: > > > ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v > slow -profile:v baseline -x264opts > "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v > 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k*-pass 2* > out.mp4 You need to run with -pass 1 first then -pass 2 > Just to see if it would work. I assume 2 passes? Next, I got the > following error: Unknown encoder 'libfaac' > > Does this mean I have to recompile ffmpeg with libfaac, and if so how? I > previously followed these instructions to compile: > > http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide > > Is there a compatible encoder that I can use other than libfaac, > alternatively? There's just 'aac' but that is pretty poor in terms of quality. There are also other AAC encoder libraries available. It doesn't look like they were enabled either. If you're going to compile, have a look at ./configure --help to see what is available -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From acct_reg at fireslug.com Tue Feb 19 13:38:24 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Tue, 19 Feb 2013 18:08:24 +0530 Subject: [FFmpeg-user] having trouble encoding mov to mp4 H.264 level 3.0 baseline for HTML5 iOS In-Reply-To: <51236E4C.3060805@gmail.com> References: <51234D5C.2030504@fireslug.com> <51236023.8080502@gmail.com> <512362CC.4010802@fireslug.com> <512368AB.50601@gmail.com> <51236B2E.4000804@fireslug.com> <51236E4C.3060805@gmail.com> Message-ID: <51237240.9070106@fireslug.com> > There's just 'aac' but that is pretty poor in terms of quality. There > are also other AAC encoder libraries available. It doesn't look like > they were enabled either. If you're going to compile, have a look at > ./configure --help to see what is available libfaac is not installed on my system though. I tried looking it up, but can't seem to find any reliable information on this. I am wondering if I will run into these issues when trying to create ogg/ogv files later on, also for the HTML5 video. I installed this: |http://downloads.sourceforge.net/faac/faac-1.28.tar.gz| However, I still get the message that libfaac is not found. Also did enable nonfree. On 19/02/2013 5:51 PM, James Darnley wrote: > On 2013-02-19 13:08, Antony Peiris wrote: >>> Did you try the other one (the first one) I posted? >>> >>>>>> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v >>>>>> slow -profile:v baseline -x264opts >>>>>> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v >>>>>> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k -pass X >>>>>> out.mp4 >> Not at first, but I did try now. Initially I got an error about -pass >> since it is expecting a number and not X. So I changed the command like so: >> >> >> ffmpeg -y -i in.mov -filter:v scale=640:-1 -c:v libx264 -preset:v >> slow -profile:v baseline -x264opts >> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v >> 25/1 -force_fps -movflags faststart -c:a libfaac -b:a 80k*-pass 2* >> out.mp4 > You need to run with -pass 1 first then -pass 2 > >> Just to see if it would work. I assume 2 passes? Next, I got the >> following error: Unknown encoder 'libfaac' >> >> Does this mean I have to recompile ffmpeg with libfaac, and if so how? I >> previously followed these instructions to compile: >> >> http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide >> >> Is there a compatible encoder that I can use other than libfaac, >> alternatively? > There's just 'aac' but that is pretty poor in terms of quality. There > are also other AAC encoder libraries available. It doesn't look like > they were enabled either. If you're going to compile, have a look at > ./configure --help to see what is available > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Tue Feb 19 14:28:26 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 13:28:26 +0000 (UTC) Subject: [FFmpeg-user] How to split and then concatenate a video file? References: Message-ID: ?ygimantas Bruzgys gmail.com> writes: > zybru hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 > -f segment -c copy -segment_time 2 -map 0 out%03d.mp4 Does it work if you reencode (instead of -c copy)? Does it work with higher values for segmet_time? Carl Eugen From cjandash at gmail.com Tue Feb 19 14:32:51 2013 From: cjandash at gmail.com (CJ Myers) Date: Tue, 19 Feb 2013 08:32:51 -0500 Subject: [FFmpeg-user] Issue trimming an AVI In-Reply-To: References: Message-ID: I'm attaching a link to a small sample, Carl. It has the same problem. Is there anyway to overcome that, without re-encoding? Francois, how would I go about assigning or finding a new keyframe? Do I just need to re-encode it? I'm trying to preserve as much quality as possible because it will get reencoded again when it's uploaded. Thanks all!! https://dl.dropbox.com/u/27674054/TestUpload.avi On Tue, Feb 19, 2013 at 7:44 AM, CJ Myers wrote: > I'm uploading a small sample, Carl. It has the same problem. Is there > anyway to overcome that? > > Francois, how would I go about assigning or finding a new keyframe? Do I > just need to re-encode it? I'm trying to preserve as much quality as > possible because it will get reencoded again when it's uploaded. > > Thanks!! > > ~CJ > > > On Tue, Feb 19, 2013 at 3:42 AM, Carl Eugen Hoyos wrote: > >> CJ Myers gmail.com> writes: >> >> > [avi @ 000000000030c140] non-interleaved AVI >> >> Difficult to say without a sample but this >> may be the culprit. >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From jp4work at gmail.com Tue Feb 19 14:35:44 2013 From: jp4work at gmail.com (JIA Pei) Date: Tue, 19 Feb 2013 05:35:44 -0800 Subject: [FFmpeg-user] How to analyse a pure audio file by ffmpeg commands? Message-ID: Hi, all: Is there a ffmpeg command to analyse an audio file? 1) How many samples are in this audio file? 2) How many audio channels are in this audio file? 1 or 2? Cheers -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From jp4work at gmail.com Tue Feb 19 14:35:44 2013 From: jp4work at gmail.com (JIA Pei) Date: Tue, 19 Feb 2013 05:35:44 -0800 Subject: [FFmpeg-user] How to analyse a pure audio file by ffmpeg commands? Message-ID: Hi, all: Is there a ffmpeg command to analyse an audio file? 1) How many samples are in this audio file? 2) How many audio channels are in this audio file? 1 or 2? Cheers -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From francois.visagie at gmail.com Tue Feb 19 14:38:45 2013 From: francois.visagie at gmail.com (Francois Visagie) Date: Tue, 19 Feb 2013 15:38:45 +0200 Subject: [FFmpeg-user] Issue trimming an AVI In-Reply-To: References: Message-ID: <009d01ce0ea6$736f7f50$5a4e7df0$@gmail.com> > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of CJ Myers > Sent: 19 February 2013 15:33 > To: FFmpeg user questions > Subject: Re: [FFmpeg-user] Issue trimming an AVI > > I'm attaching a link to a small sample, Carl. It has the same problem. Is there > anyway to overcome that, without re-encoding? > > Francois, how would I go about assigning or finding a new keyframe? Do I > just need to re-encode it? I'm trying to preserve as much quality as possible > because it will get reencoded again when it's uploaded. There probably is a way in ffmpeg, but I use tools like Avidemux or VirtualDub to find the keyframe closest to the cut I want to make. Then use its position as the starting offset in your ffmpeg command line. If you don't do this, ffmpeg will either re-encode up to the first keyframe (not too bad), or faithfully copy the first keyframe-less frames frames (quite bad). The latter will either cause your output to play with garbage at the start, or a more intelligent player might ignore all content until it reaches the first keyframe. > Thanks all!! > > https://dl.dropbox.com/u/27674054/TestUpload.avi > > > On Tue, Feb 19, 2013 at 7:44 AM, CJ Myers wrote: > > > I'm uploading a small sample, Carl. It has the same problem. Is > > there anyway to overcome that? > > > > Francois, how would I go about assigning or finding a new keyframe? > > Do I just need to re-encode it? I'm trying to preserve as much > > quality as possible because it will get reencoded again when it's uploaded. > > > > Thanks!! > > > > ~CJ > > > > > > On Tue, Feb 19, 2013 at 3:42 AM, Carl Eugen Hoyos > wrote: > > > >> CJ Myers gmail.com> writes: > >> > >> > [avi @ 000000000030c140] non-interleaved AVI > >> > >> Difficult to say without a sample but this may be the culprit. > >> > >> 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 cehoyos at ag.or.at Tue Feb 19 14:39:06 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 13:39:06 +0000 (UTC) Subject: [FFmpeg-user] How to analyse a pure audio file by ffmpeg commands? References: Message-ID: JIA Pei gmail.com> writes: > Is there a ffmpeg command to analyse an audio file? > > 1) How many samples are in this audio file? I may misunderstand, but the following often helps: $ ffmpeg -i file -f null - > 2) How many audio channels are in this audio file? 1 or 2? $ ffmpeg -i file Carl Eugen From cehoyos at ag.or.at Tue Feb 19 14:48:51 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 13:48:51 +0000 (UTC) Subject: [FFmpeg-user] Issue trimming an AVI References: Message-ID: CJ Myers gmail.com> writes: > https://dl.dropbox.com/u/27674054/TestUpload.avi You have to re-encode audio for this particular sample, remuxing audio is impossible. Please do not top-post here, Carl Eugen From jp4work at gmail.com Tue Feb 19 14:51:58 2013 From: jp4work at gmail.com (JIA Pei) Date: Tue, 19 Feb 2013 05:51:58 -0800 Subject: [FFmpeg-user] How to analyse a pure audio file by ffmpeg commands? In-Reply-To: References: Message-ID: Thank you so much Carl... My test.ogg is produced/recorded by Audacity And, I tried your method, but it seems *"how many samples"* are in this audio file is not produced: ~/Desktop$ ffmpeg -i test.ogg -f null - ffmpeg version N-49571-gb5f544a Copyright (c) 2000-2013 the FFmpeg developers built on Feb 3 2013 21:52:30 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1) configuration: --prefix=/usr --enable-gpl --enable-version3 --enable-shared --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libdc1394 --enable-libflite --enable-libfreetype --enable-libgsm --enable-libiec61883 --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-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-openal WARNING: library configuration mismatch swscale configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.5-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static postproc configuration: --arch=i386 --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.5-0ubuntu0.12.10.1' --libdir=/usr/lib/i386-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-gnutls --enable-libgsm --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --shlibdir=/usr/lib/i386-linux-gnu/i686/cmov --cpu=i686 --enable-shared --disable-static libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 1. 0 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 0. 0 Input #0, ogg, from 'test.ogg': Duration: 00:00:0*6.15*, start: 0.000000, bitrate: 85 kb/s Stream #0:0: Audio: vorbis, 44100 Hz, mono, fltp, 96 kb/s Output #0, null, to 'pipe:': Metadata: encoder : Lavf54.61.104 Stream #0:0: Audio: pcm_s16le, 44100 Hz, *mono*, s16, 705 kb/s Stream mapping: Stream #0:0 -> #0:0 (vorbis -> pcm_s16le) Press [q] to stop, [?] for help size=N/A time=00:00:0*6.16* bitrate=N/A video:0kB audio:531kB subtitle:0 global headers:0kB muxing overhead -100.004045% I can tell this audio file is mono, namely, 1 channel. But, how many samples in total? Or, I've got to estimate by myself ??? Say: (85kb/s*6.15s) = 522750 bits. That is 65343.75 bytes, 32671.875 short integers, namely, 32671.875 samples? Cheers Pei On Tue, Feb 19, 2013 at 5:39 AM, Carl Eugen Hoyos wrote: > JIA Pei gmail.com> writes: > > > Is there a ffmpeg command to analyse an audio file? > > > > 1) How many samples are in this audio file? > > I may misunderstand, but the following often helps: > $ ffmpeg -i file -f null - > > > 2) How many audio channels are in this audio file? 1 or 2? > > $ ffmpeg -i file > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From soho123.2012 at gmail.com Tue Feb 19 14:58:18 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 19 Feb 2013 21:58:18 +0800 Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Soho Soho123 Date: 2013/2/19 Subject: ffmpeg stream copy fail when video size 1280x720 To: ffserver-user at ffmpeg.org hi all, I have install v4l2-ctl in my target system, the output of v4l2-ctl --list-formats-ext is : ================================== # v4l2-ctl --list-formats-ext ioctl: VIDIOC_ENUM_FMT Index : 0 Type : Video Capture Pixel Format: 'YUYV' Name : YUV 4:2:2 (YUYV) Size: Discrete 1280x720 Interval: Discrete 0.100 s (10.000 fps) Size: Discrete 160x120 Interval: Discrete 0.033 s (30.000 fps) Size: Discrete 320x240 Interval: Discrete 0.033 s (30.000 fps) Size: Discrete 640x480 Interval: Discrete 0.033 s (30.000 fps) Size: Discrete 1280x800 Interval: Discrete 0.100 s (10.000 fps) Index : 1 Type : Video Capture Pixel Format: 'MJPG' (compressed) Name : MJPEG Size: Discrete 1280x720 Interval: Discrete 0.033 s (30.000 fps) Interval: Discrete 0.040 s (25.000 fps) Interval: Discrete 0.050 s (20.000 fps) Interval: Discrete 0.067 s (15.000 fps) Size: Discrete 160x120 Interval: Discrete 0.033 s (30.000 fps) Size: Discrete 320x240 Interval: Discrete 0.033 s (30.000 fps) Size: Discrete 640x480 Interval: Discrete 0.033 s (30.000 fps) Size: Discrete 1280x800 Interval: Discrete 0.033 s (30.000 fps) Interval: Discrete 0.040 s (25.000 fps) Interval: Discrete 0.050 s (20.000 fps) Interval: Discrete 0.067 s (15.000 fps) ================================= The webcam can support 1280x720, 30fps. but the ffmpeg command can not work, since it will cause out-of-memory ffmpeg -f video4linux2 -r 30 -s 1280x720 -input_format mjpeg -i /dev/video0 -c copy http://localhost:8090/feed1.ffm Does anyone use 1280x720 by ffmpeg? Does anyone have idea about out-of-memory when 1280x720? From cehoyos at ag.or.at Tue Feb 19 15:13:02 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 14:13:02 +0000 (UTC) Subject: [FFmpeg-user] Issue trimming an AVI References: Message-ID: CJ Myers gmail.com> writes: > I do not want to re-encode, so I use the copy feature > when I identify the codecs. I can successfully get the > chunk I want, but it doesn't play properly in WMP or VLC. > ffplay works fine. I don't think this is correct: Both the original and the remuxed file show heavy desync with ffplay... I opened ticket #2285. Thank you for the sample, Carl Eugen From cehoyos at ag.or.at Tue Feb 19 15:16:20 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 19 Feb 2013 14:16:20 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 References: Message-ID: Soho Soho123 gmail.com> writes: > ffmpeg -f video4linux2 -r 30 -s 1280x720 -input_format mjpeg > -i /dev/video0 -c copy http://localhost:8090/feed1.ffm (Complete, uncut console output missing.) Does it work if you use a file instead of the ffm feed? Carl Eugen From jp4work at gmail.com Tue Feb 19 16:14:30 2013 From: jp4work at gmail.com (JIA Pei) Date: Tue, 19 Feb 2013 07:14:30 -0800 Subject: [FFmpeg-user] Is swr_convert() able to resample the audio from 1 channel to 2 channels? Message-ID: Hi, all: Sorry for my naive questions. I'm trying to decode audio stream using avcodec_decode_audio4(). After I obtained the audio frame by avcodec_decode_audio4(), I'd love to resample audio signals using swr_convert() ---- its definition is pasted as follows: int swr_convert(struct SwrContext *s, uint8_t **out, int out_count, const uint8_t **in , int in_count); Now, my question: 1) is swr_convert() able to convert audio signals from 1 channel to 2 channels ???? 2) for swr_convert(), if there are 2 audio channels (stereo audio signals), how is the data organized in unit8_t **out? Does out[0] only contain the left channel audio signals? Does out[1] contain the right channel audio signals? Why in my case, out[1] always points to NULL ? Please do help... Thank you... Best Regards -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From jp4work at gmail.com Tue Feb 19 16:14:30 2013 From: jp4work at gmail.com (JIA Pei) Date: Tue, 19 Feb 2013 07:14:30 -0800 Subject: [FFmpeg-user] Is swr_convert() able to resample the audio from 1 channel to 2 channels? Message-ID: Hi, all: Sorry for my naive questions. I'm trying to decode audio stream using avcodec_decode_audio4(). After I obtained the audio frame by avcodec_decode_audio4(), I'd love to resample audio signals using swr_convert() ---- its definition is pasted as follows: int swr_convert(struct SwrContext *s, uint8_t **out, int out_count, const uint8_t **in , int in_count); Now, my question: 1) is swr_convert() able to convert audio signals from 1 channel to 2 channels ???? 2) for swr_convert(), if there are 2 audio channels (stereo audio signals), how is the data organized in unit8_t **out? Does out[0] only contain the left channel audio signals? Does out[1] contain the right channel audio signals? Why in my case, out[1] always points to NULL ? Please do help... Thank you... Best Regards -- Pei JIA Email: jp4work at gmail.com cell: +1 604-362-5816 Welcome to Vision Open http://www.visionopen.com From un1x0nly at gmail.com Tue Feb 19 16:49:16 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Tue, 19 Feb 2013 16:49:16 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: Message-ID: On Tue, Feb 19, 2013 at 2:28 PM, Carl Eugen Hoyos wrote: > Does it work if you reencode (instead of -c copy)? With reencoding, segment produced less files (14, instead of 30). And still contained glitches between split points. Output: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4 ffmpeg version N-49277-g7003d65 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.100 Duration: 00:01:00.00, start: 0.000000, bitrate: 1361 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1239 kb/s, 24 fps, 24 tbr, 16k tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s Metadata: handler_name : SoundHandler [libx264 @ 0xdb8e60] using SAR=1/1 [libx264 @ 0xdb8e60] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0xdb8e60] profile High, level 4.0 [libx264 @ 0xdb8e60] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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 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, segment, to 'out%03d.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Stream #0:0(und): Video: h264, yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=-1--1, 90k tbn, 24 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3, 44100 Hz, stereo, fltp Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libmp3lame) Press [q] to stop, [?] for help frame= 1440 fps=9.9 q=28.0 Lsize=N/A time=00:01:00.00 bitrate=N/A dup=16 drop=0 video:11561kB audio:938kB subtitle:0 global headers:0kB muxing overhead -100.000172% [libx264 @ 0xdb8e60] frame I:16 Avg QP:15.08 size: 37096 [libx264 @ 0xdb8e60] frame P:1016 Avg QP:20.03 size: 9881 [libx264 @ 0xdb8e60] frame B:408 Avg QP:23.28 size: 2954 [libx264 @ 0xdb8e60] consecutive B-frames: 59.2% 5.7% 9.8% 25.3% [libx264 @ 0xdb8e60] mb I I16..4: 42.5% 47.1% 10.4% [libx264 @ 0xdb8e60] mb P I16..4: 7.7% 10.0% 0.3% P16..4: 23.7% 4.5% 1.2% 0.0% 0.0% skip:52.5% [libx264 @ 0xdb8e60] mb B I16..4: 0.7% 0.7% 0.0% B16..8: 26.8% 1.1% 0.1% direct: 0.4% skip:70.3% L0:51.2% L1:47.9% BI: 0.9% [libx264 @ 0xdb8e60] 8x8 transform intra:54.6% inter:86.7% [libx264 @ 0xdb8e60] coded y,uvDC,uvAC intra: 22.8% 29.1% 2.1% inter: 4.7% 6.6% 0.0% [libx264 @ 0xdb8e60] i16 v,h,dc,p: 32% 30% 16% 22% [libx264 @ 0xdb8e60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 34% 3% 3% 3% 4% 3% 3% [libx264 @ 0xdb8e60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 21% 19% 5% 6% 6% 5% 4% 3% [libx264 @ 0xdb8e60] i8c dc,h,v,p: 72% 14% 13% 2% [libx264 @ 0xdb8e60] Weighted P-Frames: Y:0.4% UV:0.2% [libx264 @ 0xdb8e60] ref P L0: 78.4% 8.7% 9.7% 3.2% 0.0% [libx264 @ 0xdb8e60] ref B L0: 90.6% 8.1% 1.2% [libx264 @ 0xdb8e60] ref B L1: 95.0% 5.0% [libx264 @ 0xdb8e60] kb/s:1578.34 zybru at hp-6530b-bs:~/Desktop$ cat concat.lst | head -n 2; cat concat.lst | tail -n 2 file 'out000.mp4' file 'out001.mp4' file 'out012.mp4' file 'out013.mp4' zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -c copy joined.mp4 ffmpeg version N-49277-g7003d65 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x2424f80] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: 00:00:00.03, start: 0.000000, bitrate: 76 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1371 kb/s, 21.52 fps, 24 tbr, 12288 tbn, 48 tbc Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 126 kb/s Output #0, mp4, to 'joined.mp4': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 1371 kb/s, 21.52 fps, 12288 tbn, 12288 tbc Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 126 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1440 fps=0.0 q=-1.0 Lsize= 12560kB time=00:01:03.50 bitrate=1620.2kbits/s video:11561kB audio:938kB subtitle:0 global headers:0kB muxing overhead 0.490097% zybru at hp-6530b-bs:~/Desktop$ vlc joined.mp4 VLC media player 2.0.5 Twoflower (revision 2.0.5-0-g1661b7d) [0xd59108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 ffprobe version N-49277-g7003d65 Copyright (c) 2007-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Duration: 00:01:03.51, start: 0.000000, bitrate: 1620 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1491 kb/s, 22.69 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 128 kb/s Metadata: handler_name : SoundHandler I've also tried to reencode while concatenating: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -vcodec h264 -acodec mp3 joined-reencoded.mp4 ffmpeg version N-49277-g7003d65 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x1518fc0] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: 00:00:00.03, start: 0.000000, bitrate: 76 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1371 kb/s, 21.52 fps, 24 tbr, 12288 tbn, 48 tbc Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 126 kb/s [libx264 @ 0x1540cc0] using SAR=1/1 [libx264 @ 0x1540cc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x1540cc0] profile High, level 4.0 [libx264 @ 0x1540cc0] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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 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, mp4, to 'joined-reencoded.mp4': Metadata: encoder : Lavf54.61.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=-1--1, 12288 tbn, 24 tbc Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, s16p Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (mp3 -> libmp3lame) Press [q] to stop, [?] for help frame= 152`1=28.0 Lsize= 12475kB time=00:01:03.50 bitrate=1609.1kbits/s dup=84 drop=0 video:11473kB audio:938kB subtitle:0 global headers:0kB muxing overhead 0.507187% [libx264 @ 0x1540cc0] frame I:16 Avg QP:12.73 size: 41454 [libx264 @ 0x1540cc0] frame P:978 Avg QP:19.91 size: 9912 [libx264 @ 0x1540cc0] frame B:530 Avg QP:23.35 size: 2624 [libx264 @ 0x1540cc0] consecutive B-frames: 50.9% 4.9% 10.4% 33.9% [libx264 @ 0x1540cc0] mb I I16..4: 41.5% 46.6% 12.0% [libx264 @ 0x1540cc0] mb P I16..4: 7.5% 10.2% 0.3% P16..4: 26.1% 4.0% 1.1% 0.0% 0.0% skip:50.9% [libx264 @ 0x1540cc0] mb B I16..4: 0.5% 0.6% 0.0% B16..8: 23.6% 0.9% 0.1% direct: 0.4% skip:74.1% L0:50.8% L1:48.2% BI: 1.0% [libx264 @ 0x1540cc0] 8x8 transform intra:55.7% inter:89.8% [libx264 @ 0x1540cc0] coded y,uvDC,uvAC intra: 22.8% 31.1% 2.3% inter: 4.1% 6.8% 0.0% [libx264 @ 0x1540cc0] i16 v,h,dc,p: 32% 30% 16% 22% [libx264 @ 0x1540cc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 34% 3% 3% 3% 4% 3% 3% [libx264 @ 0x1540cc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 22% 19% 4% 6% 6% 5% 4% 3% [libx264 @ 0x1540cc0] i8c dc,h,v,p: 71% 14% 14% 2% [libx264 @ 0x1540cc0] Weighted P-Frames: Y:0.4% UV:0.2% [libx264 @ 0x1540cc0] ref P L0: 77.0% 8.9% 10.5% 3.6% 0.0% [libx264 @ 0x1540cc0] ref B L0: 87.9% 10.4% 1.7% [libx264 @ 0x1540cc0] ref B L1: 94.7% 5.3% [libx264 @ 0x1540cc0] kb/s:1480.08 zybru at hp-6530b-bs:~/Desktop$ ffprobe joined-reencoded.mp4 ffprobe version N-49277-g7003d65 Copyright (c) 2007-2013 the FFmpeg developers built on Jan 25 2013 14:08:54 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-shared --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-libxvid --enable-libmp3lame --enable-libtheora --enable-libopenjpeg --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 15.103 / 52. 15.103 libavcodec 54. 90.100 / 54. 90.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 33.100 / 3. 33.100 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined-reencoded.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.104 Duration: 00:01:03.53, start: 0.025057, bitrate: 1608 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1480 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 120 kb/s Metadata: handler_name : SoundHandler > Does it work with higher values for segmet_time? I have not tried it yet, but I suppose the result will be the same. ?ygimantas From cjandash at gmail.com Tue Feb 19 16:50:34 2013 From: cjandash at gmail.com (CJ Myers) Date: Tue, 19 Feb 2013 10:50:34 -0500 Subject: [FFmpeg-user] Issue trimming an AVI In-Reply-To: References: Message-ID: Sorry, what do you mean by top-posting. I just hit reply in gmail. Should I do something different? Sorry, I'm new to mailing lists as well as ffmpeg. I guess what I meant by ffplay working fine is it played for me without any visual or audio distortion. I'll try to -vcodec copy and re-encode the audio to see what happens. Thanks for your help! On Tue, Feb 19, 2013 at 9:13 AM, Carl Eugen Hoyos wrote: > CJ Myers gmail.com> writes: > >> I do not want to re-encode, so I use the copy feature >> when I identify the codecs. I can successfully get the >> chunk I want, but it doesn't play properly in WMP or VLC. > >> ffplay works fine. > > I don't think this is correct: > Both the original and the remuxed file show heavy > desync with ffplay... > > I opened ticket #2285. > > Thank you for the sample, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From onemda at gmail.com Tue Feb 19 16:59:42 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 19 Feb 2013 15:59:42 +0000 Subject: [FFmpeg-user] Is swr_convert() able to resample the audio from 1 channel to 2 channels? In-Reply-To: References: Message-ID: On 2/19/13, JIA Pei wrote: > Hi, all: > > Sorry for my naive questions. I'm trying to decode audio stream using > avcodec_decode_audio4(). After I obtained the audio frame by > avcodec_decode_audio4(), I'd love to resample audio signals using > swr_convert() ---- > > its definition is pasted as follows: > > int swr_convert(struct SwrContext *s, uint8_t **out, int out_count, > > const uint8_t **in , int in_count); > > > > Now, my question: > 1) is swr_convert() able to convert audio signals from 1 channel to 2 > channels ???? Yes, if you give rights args to swr_alloc_set_opts() prior to calling swr_convert > 2) for swr_convert(), if there are 2 audio channels (stereo audio signals), > how is the data organized in unit8_t **out? > Does out[0] only contain the left channel audio signals? > Does out[1] contain the right channel audio signals? > Why in my case, out[1] always points to NULL ? It depends on sample format you set in swr_alloc_set_opts(). For planar sample formats out[x] have x channel For interleaved sample formats there is out[0] only and it have all channels interleaved: ABABABABAB -> stereo: A is 1st and B 2nd channel. > > > Please do help... Thank you... > > > Best Regards > > -- > > Pei JIA > > Email: jp4work at gmail.com > cell: +1 604-362-5816 > > Welcome to Vision Open > http://www.visionopen.com > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From acct_reg at fireslug.com Tue Feb 19 19:07:46 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Tue, 19 Feb 2013 23:37:46 +0530 Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' Message-ID: <5123BF72.3030700@fireslug.com> Running the following command, I get the following error... ffmpeg -y -i test.mov -filter:v -c:v libx264 -preset:v slow -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a 80k -pass 2 test_new.mp4 [NULL @ 0x326eb40] Unable to find a suitable output format for 'libx264' libx264: Invalid argument From h.reindl at thelounge.net Tue Feb 19 19:27:39 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 19 Feb 2013 19:27:39 +0100 Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' In-Reply-To: <5123BF72.3030700@fireslug.com> References: <5123BF72.3030700@fireslug.com> Message-ID: <5123C41B.6010206@thelounge.net> Am 19.02.2013 19:07, schrieb Antony Peiris: > Running the following command, I get the following error... > > ffmpeg -y -i test.mov -filter:v -c:v libx264 -preset:v slow -profile:v baseline -x264opts > "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a > 80k -pass 2 test_new.mp4 > > > [NULL @ 0x326eb40] Unable to find a suitable output format for 'libx264' > libx264: Invalid argument * which ffmpeg version * where is the uncutted output * how was ffmpeg built -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From acct_reg at fireslug.com Tue Feb 19 19:33:00 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Wed, 20 Feb 2013 00:03:00 +0530 Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' In-Reply-To: <5123C41B.6010206@thelounge.net> References: <5123BF72.3030700@fireslug.com> <5123C41B.6010206@thelounge.net> Message-ID: <5123C55C.1000404@fireslug.com> > * which ffmpeg version > * where is the uncutted output > * how was ffmpeg built All requested information as follows: ffmpeg version N-50077-g71ae8d5 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 18 2013 08:42:45 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-02 19:09:54 Duration: 00:26:49.68, start: 0.000000, bitrate: 2960 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 171 kb/s Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 638x476 [SAR 1:1 DAR 319:238], 2800 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 59.94 tbc Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler [NULL @ 0x3437b40] Unable to find a suitable output format for 'libx264' libx264: Invalid argument I followed this guide to compile: http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide On 19/02/2013 11:57 PM, Reindl Harald wrote: > > Am 19.02.2013 19:07, schrieb Antony Peiris: >> Running the following command, I get the following error... >> >> ffmpeg -y -i test.mov -filter:v -c:v libx264 -preset:v slow -profile:v baseline -x264opts >> "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a >> 80k -pass 2 test_new.mp4 >> >> >> [NULL @ 0x326eb40] Unable to find a suitable output format for 'libx264' >> libx264: Invalid argument > * which ffmpeg version > * where is the uncutted output > * how was ffmpeg built > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lou at lrcd.com Tue Feb 19 19:40:10 2013 From: lou at lrcd.com (Lou) Date: Tue, 19 Feb 2013 09:40:10 -0900 Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' In-Reply-To: <5123BF72.3030700@fireslug.com> References: <5123BF72.3030700@fireslug.com> Message-ID: <20130219094010.51887e1f@lrcd.com> On Tue, 19 Feb 2013 23:37:46 +0530 Antony Peiris wrote: > Running the following command, I get the following error... > > ffmpeg -y -i test.mov -filter:v -c:v libx264 -preset:v slow -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a 80k -pass 2 test_new.mp4 You include "-filter:v", yet have no filter is named causing ffmpeg to assume that your output file is named "libx264". For future reference you will get an answer faster if you include the complete console output. From Chris.Bouchard at framestore.com Tue Feb 19 12:46:26 2013 From: Chris.Bouchard at framestore.com (Chris Bouchard) Date: Tue, 19 Feb 2013 11:46:26 +0000 (GMT) Subject: [FFmpeg-user] color shift in swscale - slight green tint In-Reply-To: <373086360.2852125.1361200426990.JavaMail.root@framestore.com> Message-ID: <535984357.3171566.1361274386782.JavaMail.root@framestore.com> I'm getting a colour shift when converting from a 422 pixel format to yuv420p. For example, encoding a grey card (R=128,G=128,B=128) results in a subtle green tint on output (R=126,G=128,B=125). The workaround to avoid color shift is to use " -sws_flags bilinear" or use -sws_flags lanczos+accurate_rnd This might be a fault in swscale or the default scaling used Default behavior results in color shift . visible as a slight green tint if you encode a plain grey card. Green tint apparent: ffmpeg -i 18percent_greyPR.mov -pix_fmt yuv420p -f mp4 -vcodec libx264 -crf 23 -s 1280x720 -report default_sws720.mp4 ffmpeg started on 2013-02-18 at 13:46:14 Report written to "ffmpeg-20130218-134614.log" ffmpeg version N-49601-g8f7e3e6 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 13 2013 19:03:28 with gcc 4.4.5 (Debian 4.4.5-12) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-libfaac --enable-libxvid libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '18percent_greyPR.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-18 12:42:38 Duration: 00:00:02.08, start: 0.000000, bitrate: 9121 kb/s Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, 9117 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc Metadata: creation_time : 2013-02-18 12:42:38 handler_name : Apple Alias Data Handler [graph 0 input from stream 0:0 @ 0x2195f60] w:1920 h:1080 pixfmt:yuv422p10le tb:1/2400 fr:24/1 sar:0/1 sws_param:flags=2 [scaler for output stream 0:0 @ 0x218fb80] w:1280 h:720 flags:'0x4' interl:0 [scaler for output stream 0:0 @ 0x218fb80] w:1920 h:1080 fmt:yuv422p10le sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x4 [libx264 @ 0x219eb00] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0x219eb00] profile High, level 3.1 [libx264 @ 0x219eb00] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=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, mp4, to 'default_sws720.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf54.61.104 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1--1, 12288 tbn, 24 tbc Metadata: creation_time : 2013-02-18 12:42:38 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> libx264) Press [q] to stop, [?] for help No more output streams to write to, finishing.=00:00:00.00 bitrate=N/A frame= 50 fps= 18 q=-1.0 Lsize= 8kB time=00:00:02.00 bitrate= 34.7kbits/s video:7kB audio:0kB subtitle:0 global headers:0kB muxing overhead 19.223889% [libx264 @ 0x219eb00] frame I:1 Avg QP:10.32 size: 4236 [libx264 @ 0x219eb00] frame P:13 Avg QP:12.62 size: 73 [libx264 @ 0x219eb00] frame B:36 Avg QP:18.67 size: 38 [libx264 @ 0x219eb00] consecutive B-frames: 4.0% 0.0% 0.0% 96.0% [libx264 @ 0x219eb00] mb I I16..4: 95.2% 2.2% 2.5% [libx264 @ 0x219eb00] mb P I16..4: 0.2% 0.0% 0.0% P16..4: 0.8% 0.0% 0.0% 0.0% 0.0% skip:99.0% [libx264 @ 0x219eb00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0:25.0% L1:75.0% BI: 0.0% [libx264 @ 0x219eb00] 8x8 transform intra:2.2% inter:0.0% [libx264 @ 0x219eb00] coded y,uvDC,uvAC intra: 2.8% 0.1% 0.0% inter: 0.0% 0.2% 0.0% [libx264 @ 0x219eb00] i16 v,h,dc,p: 95% 1% 5% 0% [libx264 @ 0x219eb00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 59% 2% 39% 0% 0% 0% 0% 0% 0% [libx264 @ 0x219eb00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 17% 22% 5% 5% 4% 3% 6% 3% [libx264 @ 0x219eb00] i8c dc,h,v,p: 100% 0% 0% 0% [libx264 @ 0x219eb00] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x219eb00] kb/s:25.11 CORRECT COLOUR was achieved by forcing "-sws_flags bilinear" which resulted in: R=127,G=127,B=127 as follows: ffmpeg -i 18percent_greyPR.mov -pix_fmt yuv420p -sws_flags bilinear -f mp4 -vcodec libx264 -s 1280x720 -crf 23 -report bilinear_sws720.mp4 ffmpeg started on 2013-02-18 at 13:47:36 Report written to "ffmpeg-20130218-134736.log" ffmpeg version N-49601-g8f7e3e6 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 13 2013 19:03:28 with gcc 4.4.5 (Debian 4.4.5-12) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-libfaac --enable-libxvid libavutil 52. 17.101 / 52. 17.101 libavcodec 54. 91.100 / 54. 91.100 libavformat 54. 61.104 / 54. 61.104 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 35.101 / 3. 35.101 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '18percent_greyPR.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-18 12:42:38 Duration: 00:00:02.08, start: 0.000000, bitrate: 9121 kb/s Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, 9117 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc Metadata: creation_time : 2013-02-18 12:42:38 handler_name : Apple Alias Data Handler [graph 0 input from stream 0:0 @ 0x353d1e0] w:1920 h:1080 pixfmt:yuv422p10le tb:1/2400 fr:24/1 sar:0/1 sws_param:flags=2 [scaler for output stream 0:0 @ 0x352dbc0] w:1280 h:720 flags:'0x2' interl:0 [scaler for output stream 0:0 @ 0x352dbc0] w:1920 h:1080 fmt:yuv422p10le sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x2 [libx264 @ 0x353cc80] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0x353cc80] profile High, level 3.1 [libx264 @ 0x353cc80] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=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, mp4, to 'bilinear_sws720.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf54.61.104 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=-1--1, 12288 tbn, 24 tbc Metadata: creation_time : 2013-02-18 12:42:38 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> libx264) Press [q] to stop, [?] for help No more output streams to write to, finishing.=00:00:00.00 bitrate=N/A frame= 50 fps= 22 q=-1.0 Lsize= 8kB time=00:00:02.00 bitrate= 32.3kbits/s video:6kB audio:0kB subtitle:0 global headers:0kB muxing overhead 20.916305% [libx264 @ 0x353cc80] frame I:1 Avg QP:15.19 size: 3953 [libx264 @ 0x353cc80] frame P:13 Avg QP:16.07 size: 49 [libx264 @ 0x353cc80] frame B:36 Avg QP:19.67 size: 38 [libx264 @ 0x353cc80] consecutive B-frames: 4.0% 0.0% 0.0% 96.0% [libx264 @ 0x353cc80] mb I I16..4: 97.5% 0.0% 2.5% [libx264 @ 0x353cc80] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0% [libx264 @ 0x353cc80] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0: 0.0% L1:100.0% BI: 0.0% [libx264 @ 0x353cc80] 8x8 transform intra:0.0% inter:100.0% [libx264 @ 0x353cc80] coded y,uvDC,uvAC intra: 1.7% 0.0% 0.0% inter: 0.0% 0.0% 0.0% [libx264 @ 0x353cc80] i16 v,h,dc,p: 97% 1% 2% 0% [libx264 @ 0x353cc80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 21% 22% 5% 6% 4% 3% 7% 4% [libx264 @ 0x353cc80] i8c dc,h,v,p: 100% 0% 0% 0% [libx264 @ 0x353cc80] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x353cc80] ref B L1: 83.3% 16.7% [libx264 @ 0x353cc80] kb/s:22.85 I also tried lanczos which produced a colour shift. I found that only 'bilinear' and 'fast_bilinear' appear to preserve source colour values. If using lanczos I had to also force 'accurate_rnd' to get perfect colour: -sws_flags lanczos+accurate_rnd Source files was a 10bit ProRes grey card R=128, G=128, B=128 Colour was measured in Shake, but is visible to human eye as a slight green tint. Thanks! From filippo.righi at me.com Tue Feb 19 17:37:12 2013 From: filippo.righi at me.com (Filippo Righi) Date: Tue, 19 Feb 2013 16:37:12 +0000 (GMT) Subject: [FFmpeg-user] ffmpeg h.264 long gop encoding and interlaced encoding Message-ID: <1e67cba6-6391-46ab-b4fa-f6bdb03e5290@me.com> Hi there, i am trying to convert a MOV video into a MP4 (progressive). I would like to maintain the same GOP settings codification. This are metadata of my video: fil at fil-ubuntu:~/Scrivania$ mediainfo 720p_50p_full.MOV General Complete name : 720p_50p_full.MOV Format : MPEG-4 Format profile : QuickTime Codec ID : qt File size : 81.3 MiB Duration : 8s 560ms Overall bit rate mode : Variable Overall bit rate : 79.7 Mbps Encoded date : UTC 2013-02-15 13:08:12 Tagged date : UTC 2013-02-15 13:08:12 Copyright : http://www.technophil.sm com.apple.quicktime.make : Canon com.apple.quicktime.model : Canon EOS 6D com.apple.quicktime.author : TechnoPhil Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High at L5.1 Format settings, CABAC : No Format settings, ReFrames : 1 frame Format settings, GOP : N=1 Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 8s 560ms Bit rate mode : Variable Bit rate : 78.0 Mbps Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 50.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 1.693 Stream size : 79.6 MiB (98%) Language : English Encoded date : UTC 2013-02-15 13:08:12 Tagged date : UTC 2013-02-15 13:08:12 Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 I am using this script: for i in *.MOV; do newname=`basename $i .MOV`.mp4; ffmpeg -i $i -s 1280x720 -b 5000k -bt 10000k -aspect 16:9 -r 50 -vcodec libx264 -ac 2 -ar 48000 -ab 256k -threads 4 $newname; done The result is: fil at fil-ubuntu:~/Scrivania$ mediainfo 720p_50p_full.mp4 General Complete name : 720p_50p_full.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 5.29 MiB Duration : 8s 576ms Overall bit rate : 5 170 Kbps Encoded date : UTC 2013-02-15 13:08:12 Tagged date : UTC 2013-02-15 13:08:12 Writing application : Lavf53.21.1 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main at L3.2 Format settings, CABAC : Yes Format settings, ReFrames : 3 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 8s 560ms Bit rate : 5 000 Kbps Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 50.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.109 Stream size : 5.01 MiB (95%) Writing library : x264 core 123 r2189 35cf912 Encoding settings : 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=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=0 / open_gop=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=5000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.25 / aq=1:1.00 Language : English Encoded date : UTC 2013-02-15 13:08:12 Tagged date : UTC 2013-02-15 13:08:12 How can i maintain the same GOP settings codification for both progressive and interlaced video files? And how can i change the "scan type" into interlaced? How can i change the "scan order" (Bottom Field First - Top Field First) fot interlaced encoding? ... Complete name : 109G0135_01_1080i.MP4 Format : MPEG-4 Commercial name : XDCAM EX 35 Format profile : Base Media / Version 2 Codec ID : mp42 File size : 59.2 MiB Duration : 13s 920ms Overall bit rate mode : Variable Overall bit rate : 35.7 Mbps Encoded date : UTC 2012-01-21 23:51:10 Tagged date : UTC 2012-01-21 23:51:10 Video ID : 1 Format : MPEG Video Commercial name : XDCAM EX 35 Format version : Version 2 Format profile : Main at High Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=12 Codec ID : 61 Duration : 13s 920ms Bit rate mode : Variable Bit rate : 34.0 Mbps Maximum bit rate : 35.0 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 25.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Interlaced Scan order : Top Field First Compression mode : Lossy ... ?Best rgards. Filippo From mustafaatay00 at gmail.com Tue Feb 19 16:04:31 2013 From: mustafaatay00 at gmail.com (mustafa atay) Date: Tue, 19 Feb 2013 17:04:31 +0200 Subject: [FFmpeg-user] ffmpeg License Message-ID: Hello, I really do not have any idea how ffmpeg license is. We are planning to develop a software for a product for a company. We think we can sell this product max. 10 units in a year. Our software uses ffmpeg to get video from linux /dev/video0 and compress video to MPEG-4 as an avi file or uses libx264 to save it. What will we do to use ffmpeg in our products? We do not want to distribute our software to customer. We did not do any change on the ffmpeg libraries. Thanks for your helps. Best Regards. Mustafa ATAY ELectronics Engineer. ByTechnology Turkey From acct_reg at fireslug.com Tue Feb 19 19:48:38 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Wed, 20 Feb 2013 00:18:38 +0530 Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' In-Reply-To: <20130219094010.51887e1f@lrcd.com> References: <5123BF72.3030700@fireslug.com> <20130219094010.51887e1f@lrcd.com> Message-ID: <5123C906.90807@fireslug.com> Thank you so much for the help, truly appreciate it. Actually, that filter was for scale, like so: -filter:v scale=640:-1 This command did not work, so I tired "scale=640:trunc(ow/a/2)*2" as you had suggested to me in a previous thread (Need help encoding a specific video for HTML5) This also failed. I am assuming I have just messed up the syntax/format... but I also tried this: scale="trunc(oh*a*2)/2:640" For future reference, could you please help me figure out exactly how to write this filter for scale? Thanks a million in advance! On 20/02/2013 12:10 AM, Lou wrote: > On Tue, 19 Feb 2013 23:37:46 +0530 > Antony Peiris wrote: > >> Running the following command, I get the following error... >> >> ffmpeg -y -i test.mov -filter:v -c:v libx264 -preset:v slow -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a 80k -pass 2 test_new.mp4 > You include "-filter:v", yet have no filter is named causing ffmpeg to > assume that your output file is named "libx264". > > For future reference you will get an answer faster if you include the > complete console output. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lou at lrcd.com Tue Feb 19 19:53:48 2013 From: lou at lrcd.com (Lou) Date: Tue, 19 Feb 2013 09:53:48 -0900 Subject: [FFmpeg-user] Issue trimming an AVI In-Reply-To: References: Message-ID: <20130219095348.14b17596@lrcd.com> On Tue, 19 Feb 2013 10:50:34 -0500 CJ Myers wrote: > Sorry, what do you mean by top-posting. I just hit reply in gmail. > Should I do something different? Did you search this term? Here's a good link: http://www.idallen.com/topposting.html Whatever Gmail is doing to your messages (you're not the only one) you can still view your message how most clients should see it via the archives: http://ffmpeg.org/pipermail/ffmpeg-user/2013-February/013591.html As you can see your messages are top-posted which goes against the mailing list convention and disrupts the flow of the discussion. Lou From onemda at gmail.com Tue Feb 19 19:57:20 2013 From: onemda at gmail.com (Paul B Mahol) Date: Tue, 19 Feb 2013 18:57:20 +0000 Subject: [FFmpeg-user] color shift in swscale - slight green tint In-Reply-To: <535984357.3171566.1361274386782.JavaMail.root@framestore.com> References: <373086360.2852125.1361200426990.JavaMail.root@framestore.com> <535984357.3171566.1361274386782.JavaMail.root@framestore.com> Message-ID: On 2/19/13, Chris Bouchard wrote: > I'm getting a colour shift when converting from a 422 pixel format to > yuv420p. For example, encoding a grey card (R=128,G=128,B=128) results in a > subtle green tint on output (R=126,G=128,B=125). The workaround to avoid > color shift is to use " -sws_flags bilinear" or use -sws_flags > lanczos+accurate_rnd > > This might be a fault in swscale or the default scaling used > > Default behavior results in color shift . visible as a slight green tint if > you encode a plain grey card. > > Green tint apparent: > ffmpeg -i 18percent_greyPR.mov -pix_fmt yuv420p -f mp4 -vcodec libx264 -crf > 23 -s 1280x720 -report default_sws720.mp4 > ffmpeg started on 2013-02-18 at 13:46:14 > Report written to "ffmpeg-20130218-134614.log" > ffmpeg version N-49601-g8f7e3e6 Copyright (c) 2000-2013 the FFmpeg > developers > built on Feb 13 2013 19:03:28 with gcc 4.4.5 (Debian 4.4.5-12) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-nonfree --enable-version3 --enable-libfaac --enable-libxvid > libavutil 52. 17.101 / 52. 17.101 > libavcodec 54. 91.100 / 54. 91.100 > libavformat 54. 61.104 / 54. 61.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 35.101 / 3. 35.101 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '18percent_greyPR.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > creation_time : 2013-02-18 12:42:38 > Duration: 00:00:02.08, start: 0.000000, bitrate: 9121 kb/s > Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, > 9117 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc > Metadata: > creation_time : 2013-02-18 12:42:38 > handler_name : Apple Alias Data Handler > [graph 0 input from stream 0:0 @ 0x2195f60] w:1920 h:1080 pixfmt:yuv422p10le > tb:1/2400 fr:24/1 sar:0/1 sws_param:flags=2 > [scaler for output stream 0:0 @ 0x218fb80] w:1280 h:720 flags:'0x4' interl:0 > > [scaler for output stream 0:0 @ 0x218fb80] w:1920 h:1080 fmt:yuv422p10le > sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x4 > [libx264 @ 0x219eb00] using cpu capabilities: MMX2 SSE2Slow SlowCTZ > [libx264 @ 0x219eb00] profile High, level 3.1 > [libx264 @ 0x219eb00] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec > - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 > ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 > mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 > fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 > sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 > constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 > weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=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, mp4, to 'default_sws720.mp4': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > encoder : Lavf54.61.104 > Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, > q=-1--1, 12288 tbn, 24 tbc > Metadata: > creation_time : 2013-02-18 12:42:38 > handler_name : Apple Alias Data Handler > Stream mapping: > Stream #0:0 -> #0:0 (prores -> libx264) > Press [q] to stop, [?] for help > No more output streams to write to, finishing.=00:00:00.00 bitrate=N/A > frame= 50 fps= 18 q=-1.0 Lsize= 8kB time=00:00:02.00 bitrate= 34.7kbits/s > video:7kB audio:0kB subtitle:0 global headers:0kB muxing overhead 19.223889% > > [libx264 @ 0x219eb00] frame I:1 Avg QP:10.32 size: 4236 > [libx264 @ 0x219eb00] frame P:13 Avg QP:12.62 size: 73 > [libx264 @ 0x219eb00] frame B:36 Avg QP:18.67 size: 38 > [libx264 @ 0x219eb00] consecutive B-frames: 4.0% 0.0% 0.0% 96.0% > [libx264 @ 0x219eb00] mb I I16..4: 95.2% 2.2% 2.5% > [libx264 @ 0x219eb00] mb P I16..4: 0.2% 0.0% 0.0% P16..4: 0.8% 0.0% 0.0% > 0.0% 0.0% skip:99.0% > [libx264 @ 0x219eb00] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% > direct: 0.0% skip:100.0% L0:25.0% L1:75.0% BI: 0.0% > [libx264 @ 0x219eb00] 8x8 transform intra:2.2% inter:0.0% > [libx264 @ 0x219eb00] coded y,uvDC,uvAC intra: 2.8% 0.1% 0.0% inter: 0.0% > 0.2% 0.0% > [libx264 @ 0x219eb00] i16 v,h,dc,p: 95% 1% 5% 0% > [libx264 @ 0x219eb00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 59% 2% 39% 0% 0% 0% 0% > 0% 0% > [libx264 @ 0x219eb00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 34% 17% 22% 5% 5% 4% 3% > 6% 3% > [libx264 @ 0x219eb00] i8c dc,h,v,p: 100% 0% 0% 0% > [libx264 @ 0x219eb00] Weighted P-Frames: Y:0.0% UV:0.0% > [libx264 @ 0x219eb00] kb/s:25.11 > > CORRECT COLOUR was achieved by forcing "-sws_flags bilinear" which resulted > in: R=127,G=127,B=127 as follows: > > ffmpeg -i 18percent_greyPR.mov -pix_fmt yuv420p -sws_flags bilinear -f mp4 > -vcodec libx264 -s 1280x720 -crf 23 -report bilinear_sws720.mp4 > ffmpeg started on 2013-02-18 at 13:47:36 > Report written to "ffmpeg-20130218-134736.log" > ffmpeg version N-49601-g8f7e3e6 Copyright (c) 2000-2013 the FFmpeg > developers > built on Feb 13 2013 19:03:28 with gcc 4.4.5 (Debian 4.4.5-12) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 > --enable-nonfree --enable-version3 --enable-libfaac --enable-libxvid > libavutil 52. 17.101 / 52. 17.101 > libavcodec 54. 91.100 / 54. 91.100 > libavformat 54. 61.104 / 54. 61.104 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 35.101 / 3. 35.101 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '18percent_greyPR.mov': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > creation_time : 2013-02-18 12:42:38 > Duration: 00:00:02.08, start: 0.000000, bitrate: 9121 kb/s > Stream #0:0(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, > 9117 kb/s, 24 fps, 24 tbr, 2400 tbn, 2400 tbc > Metadata: > creation_time : 2013-02-18 12:42:38 > handler_name : Apple Alias Data Handler > [graph 0 input from stream 0:0 @ 0x353d1e0] w:1920 h:1080 pixfmt:yuv422p10le > tb:1/2400 fr:24/1 sar:0/1 sws_param:flags=2 > [scaler for output stream 0:0 @ 0x352dbc0] w:1280 h:720 flags:'0x2' interl:0 > > [scaler for output stream 0:0 @ 0x352dbc0] w:1920 h:1080 fmt:yuv422p10le > sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x2 > [libx264 @ 0x353cc80] using cpu capabilities: MMX2 SSE2Slow SlowCTZ > [libx264 @ 0x353cc80] profile High, level 3.1 > [libx264 @ 0x353cc80] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec > - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 > ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 > mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 > fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 > sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 > constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 > weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=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, mp4, to 'bilinear_sws720.mp4': > Metadata: > major_brand : qt > minor_version : 537199360 > compatible_brands: qt > encoder : Lavf54.61.104 > Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, > q=-1--1, 12288 tbn, 24 tbc > Metadata: > creation_time : 2013-02-18 12:42:38 > handler_name : Apple Alias Data Handler > Stream mapping: > Stream #0:0 -> #0:0 (prores -> libx264) > Press [q] to stop, [?] for help > No more output streams to write to, finishing.=00:00:00.00 bitrate=N/A > frame= 50 fps= 22 q=-1.0 Lsize= 8kB time=00:00:02.00 bitrate= 32.3kbits/s > video:6kB audio:0kB subtitle:0 global headers:0kB muxing overhead 20.916305% > > [libx264 @ 0x353cc80] frame I:1 Avg QP:15.19 size: 3953 > [libx264 @ 0x353cc80] frame P:13 Avg QP:16.07 size: 49 > [libx264 @ 0x353cc80] frame B:36 Avg QP:19.67 size: 38 > [libx264 @ 0x353cc80] consecutive B-frames: 4.0% 0.0% 0.0% 96.0% > [libx264 @ 0x353cc80] mb I I16..4: 97.5% 0.0% 2.5% > [libx264 @ 0x353cc80] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% > 0.0% 0.0% skip:100.0% > [libx264 @ 0x353cc80] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% > direct: 0.0% skip:100.0% L0: 0.0% L1:100.0% BI: 0.0% > [libx264 @ 0x353cc80] 8x8 transform intra:0.0% inter:100.0% > [libx264 @ 0x353cc80] coded y,uvDC,uvAC intra: 1.7% 0.0% 0.0% inter: 0.0% > 0.0% 0.0% > [libx264 @ 0x353cc80] i16 v,h,dc,p: 97% 1% 2% 0% > [libx264 @ 0x353cc80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 21% 22% 5% 6% 4% 3% > 7% 4% > [libx264 @ 0x353cc80] i8c dc,h,v,p: 100% 0% 0% 0% > [libx264 @ 0x353cc80] Weighted P-Frames: Y:0.0% UV:0.0% > [libx264 @ 0x353cc80] ref B L1: 83.3% 16.7% > [libx264 @ 0x353cc80] kb/s:22.85 > > I also tried lanczos which produced a colour shift. > I found that only 'bilinear' and 'fast_bilinear' appear to preserve source > colour values. If using lanczos I had to also force 'accurate_rnd' to get > perfect colour: > > -sws_flags lanczos+accurate_rnd > > Source files was a 10bit ProRes grey card R=128, G=128, B=128 > > Colour was measured in Shake, but is visible to human eye as a slight green > tint. > > Thanks! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > If this is bug report it to bug tracker. From lou at lrcd.com Tue Feb 19 20:21:01 2013 From: lou at lrcd.com (Lou) Date: Tue, 19 Feb 2013 10:21:01 -0900 Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' In-Reply-To: <5123C906.90807@fireslug.com> References: <5123BF72.3030700@fireslug.com> <20130219094010.51887e1f@lrcd.com> <5123C906.90807@fireslug.com> Message-ID: <20130219102101.478b6db7@lrcd.com> On Wed, 20 Feb 2013 00:18:38 +0530 Antony Peiris wrote: > Thank you so much for the help, truly appreciate it. > > Actually, that filter was for scale, like so: -filter:v scale=640:-1 > > This command did not work, so I tired "did not work" is one of the most common error messages here. Providing the ffmpeg command and the complete ffmpeg console output is much more useful. > "scale=640:trunc(ow/a/2)*2" > > This also failed. I am assuming I have just messed up the syntax/format Please provide the ffmpeg command and the complete ffmpeg console output. > ... but I also tried this: > scale="trunc(oh*a*2)/2:640" Please provide the ffmpeg command and the complete ffmpeg console output. Remember that top-posting is not recommended in this mailing list. From compuvision.sr at gmail.com Tue Feb 19 21:44:40 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Tue, 19 Feb 2013 17:44:40 -0300 Subject: [FFmpeg-user] How to code audio AAC in CBR (Constant BitRate) Message-ID: Hi there, I would like to have my audio encoded in CBR in stead of the default VBR. I use now: /usr/local/bin/ffmpeg -i /home/test/test.mpg -y -c:v libx264 -b:v 2000k -vf scale=-1:480 -flags +ildct+ilme -x264opts tff=1 -strict -2 -c:a aac -strict experimental -b:a 128k /home/test-result.mp4 There is no info on http://ffmpeg.org/ffmpeg.html some people on this website: http://forum.videohelp.com/threads/320928-Need-CBR-MP3-in-FFMPEG-encode-can-you-helpare talking about an option: --cbr Who can tell more? Thanks in advance Albert From soho123.2012 at gmail.com Wed Feb 20 02:52:37 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 09:52:37 +0800 Subject: [FFmpeg-user] why ffmpeg would like to occupy the console? Message-ID: why ffmpeg would like to occupy the console? And When I add "&" in the end of command line, "ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -c copy http://localhost:8090/feed1.ffm &" it can not work normally. Does anyone have idea about this issue? From dave at dlasley.net Wed Feb 20 03:44:30 2013 From: dave at dlasley.net (Dave Lasley) Date: Tue, 19 Feb 2013 18:44:30 -0800 Subject: [FFmpeg-user] why ffmpeg would like to occupy the console? In-Reply-To: References: Message-ID: <5797140060494093584@unknownmsgid> You need to pipe all outputs, try $command > /dev/null 2>&1 & -Dave Lasley On Feb 19, 2013, at 5:52 PM, Soho Soho123 wrote: > why ffmpeg would like to occupy the console? > And When I add "&" in the end of command line, > "ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i > /dev/video0 -c copy http://localhost:8090/feed1.ffm &" > it can not work normally. > Does anyone have idea about this issue? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From phamsyquybk at gmail.com Wed Feb 20 05:45:39 2013 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Wed, 20 Feb 2013 13:45:39 +0900 Subject: [FFmpeg-user] How to get time stamp of closet k-frame before a given timestamp with ffmpeg? Message-ID: I want a ffmpeg seeking command that fast and accurate. I found this The solution is that we apply -ss for both input (fast seeking) and output (accurate seeking). The question is that if the input seeking is not accurate how can we be sure that the seeking position is accurate. For example: as the example used in the link, if we want to seek to 00:03:00, the command is something likes ffmpeg -ss 00:02:30 -i ... -ss 00:00:30 As said, the first seeking will seek to somewhere else not 00:02:30, say 00:02:31. and after applying second seek, the final result would be 00:03:01- NOT what we want. Is that correct? Where does fist seeking seek to? Does it seek to k-frame that closet to 00:02:30? If so, here is my thought, correct me if i'm wrong: after first seeking, we get the timestamp of the result (in this example: 00:02:31), then we apply second seeking with appropriate time, in this case 00:00:29. Question is how do we get time stamp of first seeking's result? From phamsyquybk at gmail.com Wed Feb 20 05:48:00 2013 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Wed, 20 Feb 2013 13:48:00 +0900 Subject: [FFmpeg-user] [ffmpeg-users] How to get time stamp of closet k-frame before a given timestamp with ffmpeg? Message-ID: I want a ffmpeg seeking command that fast and accurate. I found this The solution is that we apply -ss for both input (fast seeking) and output (accurate seeking). The question is that if the input seeking is not accurate how can we be sure that the seeking position is accurate. For example: as the example used in the link, if we want to seek to 00:03:00, the command is something likes ffmpeg -ss 00:02:30 -i ... -ss 00:00:30 As said, the first seeking will seek to somewhere else not 00:02:30, say 00:02:31. and after applying second seek, the final result would be 00:03:01- NOT what we want. Is that correct? Where does fist seeking seek to? Does it seek to k-frame that closet to 00:02:30? If so, here is my thought, correct me if i'm wrong: after first seeking, we get the timestamp of the result (in this example: 00:02:31), then we apply second seeking with appropriate time, in this case 00:00:29. Question is how do we get time stamp of first seeking's result? From basco0 at gmail.com Wed Feb 20 06:31:21 2013 From: basco0 at gmail.com (ricky galbino) Date: Wed, 20 Feb 2013 01:31:21 -0400 Subject: [FFmpeg-user] FFplay work different in 0.5 version than next versions Message-ID: I use ffplay from ffmpeg 0.5 linux version , in x86 or arm , in slow or fast computer and plays videos (plays all the frames) especialy on slow computer. Version 0.5 plays like mplayer . Ok the thing its that newer version like the 1.1 the same videos in slow comp. get like freeze or take too much time to start . My question is what change ? Where its the change? Could I compile the new version with changes that make perform like the old one? Thanks! From soho123.2012 at gmail.com Wed Feb 20 07:19:31 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 14:19:31 +0800 Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 In-Reply-To: References: Message-ID: Hi, Carl Eugen When I try the command line: ffmpeg -f video4linux2 -r 2 -s 1280x720 -i /dev/video0 /tmp/usb/sda1/out.avi it still get out-of-memory. The log is : # ffmpeg -f video4linux2 -r 2 -s 1280x720 -i /dev/video0 /tmp/usb/sda1/out.avi ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 10:20:48 with gcc 4.4.7 (Realtek RSDK-1.5.8p1 Build 1050) configuration: --enable-cross-compile --cross-prefix=rsdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --d isable-os2threads --disable-ffplay --disable-postproc --disable-mips32r2 --disable-yasm --disable-vis --di sable-altivec --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable-encoders --ena ble-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4 --disable-decoders --enable-decoder=mjpeg -- enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo --enable-encoder=rawvideo --enable-dec oder=vorbis --enable-encoder=vorbis --disable-hwaccels --disable-muxers --disable-demuxers --enable-muxer= rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov 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 [video4linux2,v4l2 @ 0x8101a0] The driver changed the time per frame from 1/2 to 1/10 ffmpeg invoked oom-killer: gfp_mask=0xd0, order=0, oomkilladj=0 uptime: 1816.68 1772.01 Call Trace:[<800157c8>] 0x800157c8 2013/2/19 Carl Eugen Hoyos : > Soho Soho123 gmail.com> writes: > >> ffmpeg -f video4linux2 -r 30 -s 1280x720 -input_format mjpeg >> -i /dev/video0 -c copy http://localhost:8090/feed1.ffm > > (Complete, uncut console output missing.) > Does it work if you use a file instead of the ffm feed? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From soho123.2012 at gmail.com Wed Feb 20 07:38:14 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 14:38:14 +0800 Subject: [FFmpeg-user] why ffmpeg would like to occupy the console? In-Reply-To: <5797140060494093584@unknownmsgid> References: <5797140060494093584@unknownmsgid> Message-ID: Hi Dave, It can work! Thank you very much!!! Best Regards, Soho 2013/2/20 Dave Lasley : > You need to pipe all outputs, try > $command > /dev/null 2>&1 & > > > -Dave Lasley > > On Feb 19, 2013, at 5:52 PM, Soho Soho123 wrote: > >> why ffmpeg would like to occupy the console? >> And When I add "&" in the end of command line, >> "ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i >> /dev/video0 -c copy http://localhost:8090/feed1.ffm &" >> it can not work normally. >> Does anyone have idea about this issue? >> _______________________________________________ >> 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 jh.moon.cs at yonsei.ac.kr Wed Feb 20 08:07:39 2013 From: jh.moon.cs at yonsei.ac.kr (=?UTF-8?B?66y47KSA7ZiV?=) Date: Wed, 20 Feb 2013 16:07:39 +0900 (KST) Subject: [FFmpeg-user] =?utf-8?q?File_sizes_for_full_search=2C_epzs=2C_and?= =?utf-8?q?_other_motion_estimation_algorithms?= Message-ID: <512479d93fe6_@_imoxion.com> I measured file sizes after encoding with H.263 codec, changing motion estimation algorithms I fixed quantization value 10, GOP size 10 in my experiments. Followings are commands that I used full search : ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 -dia_size 1285 -qmin 10 -qmax 10 full_foreman_dia1285.avi epzs : ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 -qmin 10 -qmax 10 epzs_foreman.avi As I know, encoding with full search takes the longest time but has the smallest file size. However, encoding with epzs takes shorter time than encoding with full search and encoded file size with epzs is smaller than encoded file size with full search. Also psnr with epzs is almost same as psnr with full search. Please let me know anything about this result.... Thanks in advance !! From soho123.2012 at gmail.com Wed Feb 20 09:30:42 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 16:30:42 +0800 Subject: [FFmpeg-user] system freeze when running ffserver and ffmpeg, it is not stable Message-ID: Hi all, When I try to MJPG Streamer to send video frame from usb webcam to remote client, it is stable for long time in my target system But when I try to use ffserver and ffmpeg to do the same thing, the system is not stable for a few minutes. the system will freeze after a few minutes. Does someone have idea about the stable issue? ffserver.conf: ==================== Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 10 MaxBandwidth 100000 CustomLog - File /tmp/feed1.ffm FileMaxSize 5M ACL allow 127.0.0.1 Feed feed1.ffm Format mjpeg VideoSize 640x480 VideoFrameRate 30 VideoBitRate 20000 VideoQMin 1 VideoQMax 10 Noaudio ==================== ffserver command line: ==================== ffserver -f /etc/ffserver.conf & ==================== the log of ffserver: ====================== # ffserver version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 8 2013 14:39:10 with gcc 4.4.5-1.5.5p4 (GCC) configuration: --enable-cross-compile --cross-prefix=rsdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --d isable-os2threads --disable-ffplay --disable-postproc --disable-mips32r2 --disable-yasm --disable-vis --di sable-altivec --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable-encoders --ena ble-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4 --disable-decoders --enable-decoder=mjpeg -- enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo --enable-encoder=rawvideo --enable-dec oder=vorbis --enable-encoder=vorbis --disable-hwaccels --disable-muxers --disable-demuxers --enable-muxer= rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov 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 Mon Feb 18 12:52:42 2013 FFserver started. ========================================== the command of ffmpeg: ========================================== ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -c copy http://localhost:8090/feed1.ffm ========================================== the log of ffmpeg: ========================================== # ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -c copy http://localhost:8090/feed1.ffm ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers configuration: --enable-cross-compile --cross-prefix=rsdk-linux- --arch=mips --target-os=linux --disable -doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-w32threads --d isable-os2threads --disable-ffplay --disable-postproc --disable-mips32r2 --disable-yasm --disable-vis --di sable-altivec --disable-mipsdspr1 --disable-mipsdspr2 --disable-mipsfpu --enable-small --prefix=/ffmpeg-1.1.1/romfs --bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable-encoders --ena ble-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4 --disable-decoders --enable-decoder=mjpeg -- enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo --enable-encoder=rawvideo --enable-dec oder=vorbis --enable-encoder=vorbis --disable-hwaccels --disable-muxers --disable-demuxers --enable-muxer= rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov 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 [video4linux2,v4l2 @ 0x811210] Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2,v4l2, from '/dev/video0': Duration: N/A, start: 1361374794.360000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj422p, 640x480, -5 kb/s, 30 tbr, 1000k tbn, 30 tbc Wed Feb 20 15:39:54 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175 Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: creation_time : now encoder : Lavf54.59.106 Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=1-10, -5 kb/s, 1000k tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help ========================================== From cehoyos at ag.or.at Wed Feb 20 09:48:37 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 08:48:37 +0000 (UTC) Subject: [FFmpeg-user] system freeze when running ffserver and ffmpeg, it is not stable References: Message-ID: Soho Soho123 gmail.com> writes: > But when I try to use ffserver and ffmpeg to do the same thing, > > the system is not stable for a few minutes. > the system will freeze after a few minutes. > Does someone have idea about the stable issue? You will have to provide a backtrace of the frozen application. Carl Eugen From cehoyos at ag.or.at Wed Feb 20 09:49:25 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 08:49:25 +0000 (UTC) Subject: [FFmpeg-user] File sizes for full search, epzs, and other motion estimation algorithms References: <512479d93fe6_@_imoxion.com> Message-ID: ??? yonsei.ac.kr> writes: > Followings are commands that I used Please add the complete, uncut console output together with the commands you used. Carl Eugen From soho123.2012 at gmail.com Wed Feb 20 09:51:55 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 16:51:55 +0800 Subject: [FFmpeg-user] system freeze when running ffserver and ffmpeg, it is not stable In-Reply-To: References: Message-ID: Hi Carl Eugen, per your opinion, what is backtrace? what kind of log I should provide? Thanks! Soho 2013/2/20 Carl Eugen Hoyos : > Soho Soho123 gmail.com> writes: > >> But when I try to use ffserver and ffmpeg to do the same thing, >> >> the system is not stable for a few minutes. >> the system will freeze after a few minutes. >> Does someone have idea about the stable issue? > > You will have to provide a backtrace of the > frozen application. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Feb 20 09:50:24 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 08:50:24 +0000 (UTC) Subject: [FFmpeg-user] FFplay work different in 0.5 version than next versions References: Message-ID: ricky galbino gmail.com> writes: > Version 0.5 plays like mplayer . Ok the thing its that > newer version like the 1.1 the same videos in slow comp. > get like freeze or take too much time to start . Please provide your command line together with complete, uncut console output. Carl Eugen From cehoyos at ag.or.at Wed Feb 20 09:57:56 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 08:57:56 +0000 (UTC) Subject: [FFmpeg-user] system freeze when running ffserver and ffmpeg, it is not stable References: Message-ID: Soho Soho123 gmail.com> writes: > what is backtrace? gdb provides a backtrace: http://ffmpeg.org/bugreports.html Please do not top-post here, Carl Eugen From cehoyos at ag.or.at Wed Feb 20 09:57:04 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 08:57:04 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 References: Message-ID: Soho Soho123 gmail.com> writes: > # ffmpeg -f video4linux2 -r 2 -s 1280x720 > -i /dev/video0 /tmp/usb/sda1/out.avi [...] > [video4linux2,v4l2 @ 0x8101a0] The driver changed > the time per frame from 1/2 to 1/10 > ffmpeg invoked oom-killer: gfp_mask=0xd0, order=0, > oomkilladj=0 uptime: 1816.68 1772.01 > Call Trace:[<800157c8>] 0x800157c8 Am I correct that the following command line is sufficient to trigger the OOM? $ ffmpeg -f video4linux2 -r 2 -s 1280x720 -i /dev/video0 (What about different values for -r ?) If yes, you could add a few av_logs to find out where exactly it goes OOM but I would expect the problem is not FFmpeg-related. Please do not top-post here, it is considered rude, Carl Eugen From cehoyos at ag.or.at Wed Feb 20 09:54:02 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 08:54:02 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg License References: Message-ID: mustafa atay gmail.com> writes: > I really do not have any idea how ffmpeg license is. Please read the GPL and the LGPL (they are distributed together with the FFmpeg source code) and please see http://ffmpeg.org/legal.html > We think we can sell this product max. 10 units in a year. > We do not want to distribute our software to customer. This is - imo - contradicting: Are you planning to sell 10 units of your software (that includes FFmpeg in some way)? Or is the software (that includes FFmpeg) only used inside your company and never distributed to your customers? (Don't forget that "usage" of FFmpeg is not limited in any way, only binary distribution is.) Carl Eugen From soho123.2012 at gmail.com Wed Feb 20 10:15:11 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 17:15:11 +0800 Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 In-Reply-To: References: Message-ID: Excuse me! Could you explain for detail : "Please do not top-post here, it is considered rude" Where is wrong about my post? ==== And Could you give me some hints about how to enable av_log when I try to get more information? by set loglevel option or other method? Thanks! 2013/2/20 Carl Eugen Hoyos : > Soho Soho123 gmail.com> writes: > >> # ffmpeg -f video4linux2 -r 2 -s 1280x720 >> -i /dev/video0 /tmp/usb/sda1/out.avi > > > [...] > >> [video4linux2,v4l2 @ 0x8101a0] The driver changed >> the time per frame from 1/2 to 1/10 >> ffmpeg invoked oom-killer: gfp_mask=0xd0, order=0, >> oomkilladj=0 uptime: 1816.68 1772.01 >> Call Trace:[<800157c8>] 0x800157c8 > > Am I correct that the following command line is sufficient > to trigger the OOM? > $ ffmpeg -f video4linux2 -r 2 -s 1280x720 -i /dev/video0 > (What about different values for -r ?) > > If yes, you could add a few av_logs to find out where > exactly it goes OOM but I would expect the problem is > not FFmpeg-related. > > 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 soho123.2012 at gmail.com Wed Feb 20 10:17:07 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 17:17:07 +0800 Subject: [FFmpeg-user] Which version is stable version of ffmpeg Message-ID: Hi all, I check ffmpeg.git, Which version of ffmpeg is stable version master release/0.8 release/1.1 release/0.7 release/0.11 release/1.0 release/0.5 release/0.10 release/0.9 release/0.6 Does anyone have any suggestion? From soho123.2012 at gmail.com Wed Feb 20 10:19:15 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 17:19:15 +0800 Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 In-Reply-To: References: Message-ID: Hi, the frame rate does not have any influence. I set -r 2 will get the same result as -r 30 when run 1280x720 2013/2/20 Carl Eugen Hoyos : > Soho Soho123 gmail.com> writes: > >> # ffmpeg -f video4linux2 -r 2 -s 1280x720 >> -i /dev/video0 /tmp/usb/sda1/out.avi > > > [...] > >> [video4linux2,v4l2 @ 0x8101a0] The driver changed >> the time per frame from 1/2 to 1/10 >> ffmpeg invoked oom-killer: gfp_mask=0xd0, order=0, >> oomkilladj=0 uptime: 1816.68 1772.01 >> Call Trace:[<800157c8>] 0x800157c8 > > Am I correct that the following command line is sufficient > to trigger the OOM? > $ ffmpeg -f video4linux2 -r 2 -s 1280x720 -i /dev/video0 > (What about different values for -r ?) > > If yes, you could add a few av_logs to find out where > exactly it goes OOM but I would expect the problem is > not FFmpeg-related. > > 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 cehoyos at ag.or.at Wed Feb 20 10:25:57 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 09:25:57 +0000 (UTC) Subject: [FFmpeg-user] Which version is stable version of ffmpeg References: Message-ID: Soho Soho123 gmail.com> writes: > I check ffmpeg.git, > Which version of ffmpeg is stable version Current git head is considered stable, you should use it if you are an end user (and not a distributor). Carl Eugen From soho123.2012 at gmail.com Wed Feb 20 10:31:06 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 17:31:06 +0800 Subject: [FFmpeg-user] Which version is stable version of ffmpeg In-Reply-To: References: Message-ID: Is there any difference about the version for end-user and distributor? 2013/2/20 Carl Eugen Hoyos : > Soho Soho123 gmail.com> writes: > >> I check ffmpeg.git, >> Which version of ffmpeg is stable version > > Current git head is considered stable, you > should use it if you are an end user > (and not a distributor). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Feb 20 10:34:23 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 09:34:23 +0000 (UTC) Subject: [FFmpeg-user] Which version is stable version of ffmpeg References: Message-ID: Soho Soho123 gmail.com> writes: > Is there any difference about the version for > end-user and distributor? Distributors have the disadvantage that they often cannot use git head, they typically must use a release. Please stop top-posting! Carl Eugen From acct_reg at fireslug.com Wed Feb 20 10:38:17 2013 From: acct_reg at fireslug.com (Antony Peiris) Date: Wed, 20 Feb 2013 15:08:17 +0530 Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' In-Reply-To: <20130219102101.478b6db7@lrcd.com> References: <5123BF72.3030700@fireslug.com> <20130219094010.51887e1f@lrcd.com> <5123C906.90807@fireslug.com> <20130219102101.478b6db7@lrcd.com> Message-ID: <51249989.3010302@fireslug.com> > Please provide the ffmpeg command and the complete ffmpeg console > output. Thank you for your response, and my most sincere apologies about not providing enough info. My bad, won't happen again! Here is the full console output: === # ffmpeg -y -i test.mov -filter:v scale=640:-1 -c:v libx264 -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a 80k -pass 1 -strict -2 test_new.mp4 ffmpeg version N-50077-g71ae8d5 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 18 2013 08:42:45 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-gpl --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-02 19:09:54 Duration: 00:26:49.68, start: 0.000000, bitrate: 2960 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 171 kb/s Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 638x476 [SAR 1:1 DAR 319:238], 2800 kb/s, 29.97 fps, 29.97 tbr, 600 tbn, 59.94 tbc Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler [libx264 @ 0x31559a0] height not divisible by 2 (640x477) Output #0, mp4, to 'test_new.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt Stream #0:0(eng): Video: h264, yuv420p, 640x477 [SAR 152163:152320 DAR 319:238], q=-1--1, pass 1, 500 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler Stream #0:1(eng): Audio: none, 44100 Hz, stereo, fltp, 128 kb/s Metadata: creation_time : 2013-02-02 19:09:54 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:1 -> #0:0 (h264 -> libx264) Stream #0:0 -> #0:1 (aac -> aac) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height === And again... === ffmpeg -y -i test.mov -filter:v scale=640:trunc(ow/a/2)*2 -c:v libx264 -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a 80k -pass 1 -strict -2 test_new.mp4 -bash: syntax error near unexpected token `(' === I later figured out that the following works: === ffmpeg -y -i test.mov -filter:v scale=*"640:trunc(ow/a/2)*2"* -c:v libx264 -profile:v baseline -x264opts "level=3.0:vbv-maxrate=750:vbv-bufsize=3750:ref=1" -b:v 500k -r:v 25/1 -force_fps -movflags faststart -c:a aac -b:a 80k -pass 1 -strict -2 test_new.mp4 === Just thought I'd share this for anyone else who finds this on Google or runs into the same newbie problem. > Remember that top-posting is not recommended in this mailing list. My apologies if it seemed that way, I genuinely considered this matter a new issue (since it was a specific error message) although still related to my original problem. Thanks so much again for all the help, it's very much appreciated. Also, thank you for being patient with this newbie poster, I value the guidance and will remember next time. On 20/02/2013 12:51 AM, Lou wrote: > On Wed, 20 Feb 2013 00:18:38 +0530 > Antony Peiris wrote: > >> Thank you so much for the help, truly appreciate it. >> >> Actually, that filter was for scale, like so: -filter:v scale=640:-1 >> >> This command did not work, so I tired > "did not work" is one of the most common error messages here. Providing > the ffmpeg command and the complete ffmpeg console output is much more > useful. > >> "scale=640:trunc(ow/a/2)*2" >> >> This also failed. I am assuming I have just messed up the syntax/format > Please provide the ffmpeg command and the complete ffmpeg console > output. > >> ... but I also tried this: >> scale="trunc(oh*a*2)/2:640" > Please provide the ffmpeg command and the complete ffmpeg console > output. > > Remember that top-posting is not recommended in this mailing list. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Wed Feb 20 10:48:29 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 09:48:29 +0000 (UTC) Subject: [FFmpeg-user] Unable to find a suitable output format for 'libx264' References: <5123BF72.3030700@fireslug.com> <20130219094010.51887e1f@lrcd.com> <5123C906.90807@fireslug.com> <20130219102101.478b6db7@lrcd.com> <51249989.3010302@fireslug.com> Message-ID: Antony Peiris fireslug.com> writes: > [libx264 @ 0x31559a0] height not divisible by 2 (640x477) libx264, a project outside the scope of this mailing list, does not accept odd heights, you have to specify even resolutions. Carl Eugen From james.darnley at gmail.com Wed Feb 20 12:37:27 2013 From: james.darnley at gmail.com (James Darnley) Date: Wed, 20 Feb 2013 12:37:27 +0100 Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 In-Reply-To: References: Message-ID: <5124B577.4070609@gmail.com> On 2013-02-20 10:15, Soho Soho123 wrote: > Excuse me! > > Could you explain for detail : > "Please do not top-post here, it is considered rude" > Where is wrong about my post? Top posting is when you write your reply above the text you've quoted. Is is also poor etiquette when you don't cut the text you quote to the bit you are specifically referring to. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 552 bytes Desc: OpenPGP digital signature URL: From yoda_26 at hotmail.fr Wed Feb 20 13:03:57 2013 From: yoda_26 at hotmail.fr (Yoda Yoda) Date: Wed, 20 Feb 2013 13:03:57 +0100 Subject: [FFmpeg-user] ffmpeg with -vf "ass=..." and -ss options (windows static version 32 bits version) In-Reply-To: References: , Message-ID: When I put the -ss option just before the name of the output file, It does not work. Best regards > Date: Thu, 14 Feb 2013 16:05:18 +0000 > From: 23liam at googlemail.com > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] ffmpeg with -vf "ass=..." and -ss options (windows static version 32 bits version) > > You could maybe try using -ss as an output option - it'll be much slower, > since then ffmpeg has to decode up to that point before it starts encoding, > but it *might* work. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From tevans.uk at googlemail.com Wed Feb 20 13:42:17 2013 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 20 Feb 2013 12:42:17 +0000 Subject: [FFmpeg-user] ffmpeg with -vf "ass=..." and -ss options (windows static version 32 bits version) In-Reply-To: References: Message-ID: On Wed, Feb 20, 2013 at 12:03 PM, Yoda Yoda wrote: > When I put the -ss option just before the name of the output file, It does not work. Are we supposed to guess what didn't work, or what command line you used? Show your command line, and full uncut output if you expect anyone to be able to assist you. "it does not work" is the most irrelevant thing you can say when asking for help. All it does is make someone explain how stupid it is, which doesn't get you any further. Cheers Tom From stefasab at gmail.com Wed Feb 20 14:16:06 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 20 Feb 2013 14:16:06 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: Message-ID: <20130220131606.GJ20306@arborea> On date Tuesday 2013-02-19 16:49:16 +0100, ?ygimantas Bruzgys wrote: > On Tue, Feb 19, 2013 at 2:28 PM, Carl Eugen Hoyos wrote: > > Does it work if you reencode (instead of -c copy)? > > With reencoding, segment produced less files (14, instead of 30). And > still contained glitches between split points. Output: > > zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec > h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4 Did you try with -reset_timestamps 1? From compuvision.sr at gmail.com Wed Feb 20 14:17:43 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 20 Feb 2013 10:17:43 -0300 Subject: [FFmpeg-user] How to code audio AAC in CBR (Constant BitRate) In-Reply-To: References: Message-ID: >I would like to have my audio encoded in CBR in stead of the default VBR. >I use now: >/usr/local/bin/ffmpeg -i /home/test/test.mpg -y -c:v libx264 -b:v 2000k -vf scale=-1:480 -flags +ildct+ilme -x264opts tff=1 -strict -2 -c:a aac >-strict experimental -b:a 128k /home/test-result.mp4 Haven't found doc on this codec yet. >There is no info on http://ffmpeg.org/ffmpeg.html some people on this website: http://forum.videohelp.com/threads/320928-Need-CBR-MP3->in-FFMPEG-encode-can-you-helpare talking about an option: --cbr >Who can tell more? I found a new webpage with good info: https://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide Their they explained me to use: Fraunhofer FDK AAC codec library, which is currently the best codec. Replacing 'aac -strict experimental' with 'libfdk_aac' seems to work :) Working with VBR seems to be via modes 1-5 -- *CompuVision* Ing. AJC Scholtalbers Reginalaan 3 Paramaribo Tel: (+597) - 539465 Cell: (+597) - 8324853 VoIP: (+31) - 251788117 email: compuvision.sr at gmail.com web: www.compuvision-suriname.com From palani at i-waves.com Wed Feb 20 14:17:43 2013 From: palani at i-waves.com (Palaniappan N) Date: Wed, 20 Feb 2013 18:47:43 +0530 Subject: [FFmpeg-user] FFMPEG | High CPU Utilization Message-ID: Hi, We are using FFMPEG for video conversion and We could see that it is utilizing high CPU(100%) in the Linux server. Is there any possible way to balance or minimize the FFMPEG CPU utilization in the server. Can we set a priority for FFMPEG process in Linux server by using a nice value? If so we have to use either nice or renice as FFMPEG is in use. Thanks, Palani From h.reindl at thelounge.net Wed Feb 20 14:34:23 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 20 Feb 2013 14:34:23 +0100 Subject: [FFmpeg-user] FFMPEG | High CPU Utilization In-Reply-To: References: Message-ID: <5124D0DF.8020409@thelounge.net> Am 20.02.2013 14:17, schrieb Palaniappan N: > We are using FFMPEG for video conversion and We could see that it is > utilizing high CPU(100%) in the Linux server. Is there any possible way to > balance or minimize the FFMPEG CPU utilization in the server. this is what well written software should do: use the available ressources and in case of multicore use as much cores as possible [harry at rh:~]$ rpm -q cpulimit cpulimit-1.1-2.fc18.x86_64 [harry at rh:~]$ cpulimit --help Usage: cpulimit TARGET [OPTIONS...] TARGET must be exactly one of these: -p, --pid=N pid of the process -e, --exe=FILE name of the executable program file -P, --path=PATH absolute path name of the executable program file OPTIONS -l, --limit=N percentage of cpu allowed from 0 to 100 (mandatory) -v, --verbose show control statistics -z, --lazy exit if there is no suitable target process, or if it dies -h, --help display this help and exit -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From compuvision.sr at gmail.com Wed Feb 20 14:50:03 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 20 Feb 2013 10:50:03 -0300 Subject: [FFmpeg-user] Why is there a Guide on libfdk_aac VBR AAC when it is not supported and working? Message-ID: Hi, I found this very nice webpage: https://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide But when you try the code you get messages like: Note, the VBR setting is unsupported and only works with some parameter combinations total output: [2013-02-20 10:34:03] The transcode cmd is: /usr/local/bin/ffmpeg -i /home/test/sample.avi -y -c:v libx264 -b:v 2000k -vf scale=-1:480 -flags +ildct+ilme -x264opts tff=1 -strict -2 -c:a libfdk_aac -vbr 4 /home/test/sample-result.mp4 ffmpeg version git-2013-01-12-15daa8f Copyright (c) 2000-2013 the FFmpeg developers built on Jan 12 2013 10:05:11 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 86.100 / 54. 86.100 libavformat 54. 59.107 / 54. 59.107 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 [avi @ 0xaded0e0] non-interleaved AVI Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from '/home/test/sample.avi': Metadata: date : 2011-08-22T13:41:25.00032-03:00 encoder : Lavf54.37.100 Duration: 00:00:10.01, start: 0.000000, bitrate: 30331 kb/s Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv411p, 720x480 [SAR 32:27 DAR 16:9], 29.97 tbr, 29.97 tbn, 29.97 tbc Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s [libx264 @ 0xadf4da0] interlace + weightp is not implemented [libx264 @ 0xadf4da0] using SAR=32/27 [libx264 @ 0xadf4da0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSEMisalign LZCNT BMI1 [libx264 @ 0xadf4da0] profile High 4:2:2, level 3.0, 4:2:2 8-bit [libx264 @ 0xadf4da0] 264 - core 129 r2 bc13772 - 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=tff 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=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [libfdk_aac @ 0xadfdf80] Note, the VBR setting is unsupported and only works with some parameter combinations Your sincerely, Albert From palani at i-waves.com Wed Feb 20 14:58:16 2013 From: palani at i-waves.com (Palaniappan N) Date: Wed, 20 Feb 2013 19:28:16 +0530 Subject: [FFmpeg-user] FFMPEG | High CPU Utilization In-Reply-To: <5124D0DF.8020409@thelounge.net> References: <5124D0DF.8020409@thelounge.net> Message-ID: Once when we set this cpu limit target for "FFMPEG" since then will it be a uniform cpu limit for further FFMPEG process or Do we need to set this for every FFMPEG process? Thanks, Palani From h.reindl at thelounge.net Wed Feb 20 15:03:19 2013 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 20 Feb 2013 15:03:19 +0100 Subject: [FFmpeg-user] FFMPEG | High CPU Utilization In-Reply-To: References: <5124D0DF.8020409@thelounge.net> Message-ID: <5124D7A7.6030506@thelounge.net> Am 20.02.2013 14:58, schrieb Palaniappan N: > Once when we set this cpu limit target for "FFMPEG" since then will it be a > uniform cpu limit for further FFMPEG process or Do we need to set this for > every FFMPEG process? ??? if you call a executeable with "cpulimit" this call is limited - that is why renice and friends are called with the PID if you do not call a xeecuteable with "cpulimit" or "nice" it has default behavior -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 263 bytes Desc: OpenPGP digital signature URL: From un1x0nly at gmail.com Wed Feb 20 15:17:28 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Wed, 20 Feb 2013 15:17:28 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: <20130220131606.GJ20306@arborea> References: <20130220131606.GJ20306@arborea> Message-ID: On Wed, Feb 20, 2013 at 2:16 PM, Stefano Sabatini wrote: >> zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec >> h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4 > > Did you try with -reset_timestamps 1? Let me try it now! (just fyi, I've recompiled ffmpeg today from git head) Output: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec h264 -acodec mp3 -segment_time 2 -map 0 -reset_timestamps 0 out%03d.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.100 Duration: 00:01:00.00, start: 0.000000, bitrate: 1361 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1239 kb/s, 24 fps, 24 tbr, 16k tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s Metadata: handler_name : SoundHandler [libx264 @ 0x278df80] using SAR=1/1 [libx264 @ 0x278df80] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x278df80] profile High, level 4.0 [libx264 @ 0x278df80] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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 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, segment, to 'out%03d.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Stream #0:0(und): Video: h264, yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=-1--1, 90k tbn, 24 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3, 44100 Hz, stereo, fltp Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libmp3lame) Press [q] to stop, [?] for help frame= 1440 fps= 11 q=28.0 Lsize=N/A time=00:01:00.00 bitrate=N/A dup=16 drop=0 video:11561kB audio:938kB subtitle:0 global headers:0kB muxing overhead -100.000172% [libx264 @ 0x278df80] frame I:16 Avg QP:15.08 size: 37096 [libx264 @ 0x278df80] frame P:1016 Avg QP:20.03 size: 9881 [libx264 @ 0x278df80] frame B:408 Avg QP:23.28 size: 2954 [libx264 @ 0x278df80] consecutive B-frames: 59.2% 5.7% 9.8% 25.3% [libx264 @ 0x278df80] mb I I16..4: 42.5% 47.1% 10.4% [libx264 @ 0x278df80] mb P I16..4: 7.7% 10.0% 0.3% P16..4: 23.7% 4.5% 1.2% 0.0% 0.0% skip:52.5% [libx264 @ 0x278df80] mb B I16..4: 0.7% 0.7% 0.0% B16..8: 26.8% 1.1% 0.1% direct: 0.4% skip:70.3% L0:51.2% L1:47.9% BI: 0.9% [libx264 @ 0x278df80] 8x8 transform intra:54.6% inter:86.7% [libx264 @ 0x278df80] coded y,uvDC,uvAC intra: 22.8% 29.1% 2.1% inter: 4.7% 6.6% 0.0% [libx264 @ 0x278df80] i16 v,h,dc,p: 32% 30% 16% 22% [libx264 @ 0x278df80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 34% 3% 3% 3% 4% 3% 3% [libx264 @ 0x278df80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 21% 19% 5% 6% 6% 5% 4% 3% [libx264 @ 0x278df80] i8c dc,h,v,p: 72% 14% 13% 2% [libx264 @ 0x278df80] Weighted P-Frames: Y:0.4% UV:0.2% [libx264 @ 0x278df80] ref P L0: 78.4% 8.7% 9.7% 3.2% 0.0% [libx264 @ 0x278df80] ref B L0: 90.6% 8.1% 1.2% [libx264 @ 0x278df80] ref B L1: 95.0% 5.0% [libx264 @ 0x278df80] kb/s:1578.34 zybru at hp-6530b-bs:~/Desktop$ head -n 2 concat.lst; tail -n 2 concat.lst file 'out000.mp4' file 'out001.mp4' file 'out012.mp4' file 'out013.mp4' zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -c copy joined.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x1e06fc0] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: 00:00:00.03, start: 0.000000, bitrate: 76 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1371 kb/s, 21.52 fps, 24 tbr, 12288 tbn, 48 tbc Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 126 kb/s Output #0, mp4, to 'joined.mp4': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 1371 kb/s, 21.52 fps, 12288 tbn, 12288 tbc Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 126 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1440 fps=0.0 q=-1.0 Lsize= 12560kB time=00:01:03.50 bitrate=1620.2kbits/s video:11561kB audio:938kB subtitle:0 global headers:0kB muxing overhead 0.490097% zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 ffprobe version N-50129-g951d39f Copyright (c) 2007-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:03.51, start: 0.000000, bitrate: 1620 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1491 kb/s, 22.69 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 128 kb/s Metadata: handler_name : SoundHandler The output duration is longer, which means that there are glitches in between split points (I've checked that by playing the video). I think it's worth to notice my observations from today. small.mp4 adio starts a couple of milliseconds earlier than video. It is probably because I actually cut that piece from the middle of longer clip using ffmpeg with -ss and -t flags. So, I've realised that it would be a good idea to do the same test on the whole original clip. Here is the output: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i Sintel-Third-Open-Movie-by-Blender-Foundation-1080p.mp4 -f segment -segment_time 2 -map 0 -c copy out%03d.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Sintel-Third-Open-Movie-by-Blender-Foundation-1080p.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2010-09-29 12:52:38 Duration: 00:14:48.00, start: 0.000000, bitrate: 3075 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 2941 kb/s, 24 fps, 24 tbr, 1k tbn, 48 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s Metadata: creation_time : 2010-09-29 12:53:05 handler_name : (C) 2007 Google Inc. v08.13.2007. Output #0, segment, to 'out%03d.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 encoder : Lavf54.63.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 2941 kb/s, 24 fps, 90k tbn, 24 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 127 kb/s Metadata: creation_time : 2010-09-29 12:53:05 handler_name : (C) 2007 Google Inc. v08.13.2007. Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=21312 fps=1425 q=-1.0 Lsize=N/A time=00:14:47.99 bitrate=N/A video:318907kB audio:13874kB subtitle:0 global headers:0kB muxing overhead -100.000006% zybru at hp-6530b-bs:~/Desktop$ for f in `ls out*`; do echo "file '$f'" >> concat.lst; done zybru at hp-6530b-bs:~/Desktop$ head -n 2 concat.lst; tail -n 2 concat.lst file 'out000.mp4' file 'out001.mp4' file 'out442.mp4' file 'out443.mp4' zybru at hp-6530b-bs:~/Desktop$ ffmpeg -y -f concat -i concat.lst -c copy joined.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x258ffc0] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: 00:00:00.52, start: 0.000000, bitrate: 122 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 10 kb/s, 21.19 fps, 24 tbr, 12288 tbn, 48 tbc Stream #0:1: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 111 kb/s Output #0, mp4, to 'joined.mp4': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 10 kb/s, 21.19 fps, 12288 tbn, 12288 tbc Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 111 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame=21312 fps=316 q=-1.0 Lsize= 333633kB time=00:16:45.30 bitrate=2718.7kbits/s video:318907kB audio:13874kB subtitle:0 global headers:0kB muxing overhead 0.255866% zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 ffprobe version N-50129-g951d39f Copyright (c) 2007-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2e0c420] Invalid SampleDelta in STTS -10895766 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2e0c420] Invalid SampleDelta in STTS -39114675 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:58.61, start: 0.000000, bitrate: 23043 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 2598 kb/s, 21.20 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 113 kb/s Metadata: handler_name : SoundHandler If you play the movie using VLC, the audio runs smooth, but video gets 'stuck' every couple of seconds for couple of milliseconds. ?ygimantas From nandan.amar at gmail.com Wed Feb 20 15:37:05 2013 From: nandan.amar at gmail.com (nandan amar) Date: Wed, 20 Feb 2013 20:07:05 +0530 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: <20130220131606.GJ20306@arborea> Message-ID: One can also try to split each frame and them remove unwanted ones and then encode them back. I am not sure about video quality. This may help you - split: ffmpeg -i foo.avi -r 10 -s WxH -f image2 foo-%03d.jpeg and combine back ffmpeg -f image2 -i foo-%03d.jpeg -r 10 -s WxH foo.avi On Wed, Feb 20, 2013 at 7:47 PM, ?ygimantas Bruzgys wrote: > On Wed, Feb 20, 2013 at 2:16 PM, Stefano Sabatini wrote: >>> zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec >>> h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4 >> >> Did you try with -reset_timestamps 1? > > Let me try it now! (just fyi, I've recompiled ffmpeg today from git head) > > Output: > > zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec > h264 -acodec mp3 -segment_time 2 -map 0 -reset_timestamps 0 > out%03d.mp4 > ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg > developers > built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-nonfree --enable-version3 --enable-x11grab > --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ > --disable-optimizations > libavutil 52. 17.102 / 52. 17.102 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 38.103 / 3. 38.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf54.61.100 > Duration: 00:01:00.00, start: 0.000000, bitrate: 1361 kb/s > Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], 1239 kb/s, 24 fps, 24 tbr, 16k tbn, 48 > tbc > Metadata: > handler_name : VideoHandler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 128 kb/s > Metadata: > handler_name : SoundHandler > [libx264 @ 0x278df80] using SAR=1/1 > [libx264 @ 0x278df80] using cpu capabilities: MMX2 SSE2Fast SSSE3 > FastShuffle SSE4.1 Cache64 > [libx264 @ 0x278df80] profile High, level 4.0 > [libx264 @ 0x278df80] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC > codec - Copyleft 2003-2011 - 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 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, segment, to 'out%03d.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf54.63.100 > Stream #0:0(und): Video: h264, yuv420p, 1920x818 [SAR 1:1 DAR > 960:409], q=-1--1, 90k tbn, 24 tbc > Metadata: > handler_name : VideoHandler > Stream #0:1(und): Audio: mp3, 44100 Hz, stereo, fltp > Metadata: > handler_name : SoundHandler > Stream mapping: > Stream #0:0 -> #0:0 (h264 -> libx264) > Stream #0:1 -> #0:1 (aac -> libmp3lame) > Press [q] to stop, [?] for help > frame= 1440 fps= 11 q=28.0 Lsize=N/A time=00:01:00.00 bitrate=N/A > dup=16 drop=0 > video:11561kB audio:938kB subtitle:0 global headers:0kB muxing > overhead -100.000172% > [libx264 @ 0x278df80] frame I:16 Avg QP:15.08 size: 37096 > [libx264 @ 0x278df80] frame P:1016 Avg QP:20.03 size: 9881 > [libx264 @ 0x278df80] frame B:408 Avg QP:23.28 size: 2954 > [libx264 @ 0x278df80] consecutive B-frames: 59.2% 5.7% 9.8% 25.3% > [libx264 @ 0x278df80] mb I I16..4: 42.5% 47.1% 10.4% > [libx264 @ 0x278df80] mb P I16..4: 7.7% 10.0% 0.3% P16..4: 23.7% > 4.5% 1.2% 0.0% 0.0% skip:52.5% > [libx264 @ 0x278df80] mb B I16..4: 0.7% 0.7% 0.0% B16..8: 26.8% > 1.1% 0.1% direct: 0.4% skip:70.3% L0:51.2% L1:47.9% BI: 0.9% > [libx264 @ 0x278df80] 8x8 transform intra:54.6% inter:86.7% > [libx264 @ 0x278df80] coded y,uvDC,uvAC intra: 22.8% 29.1% 2.1% inter: > 4.7% 6.6% 0.0% > [libx264 @ 0x278df80] i16 v,h,dc,p: 32% 30% 16% 22% > [libx264 @ 0x278df80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 34% 3% > 3% 3% 4% 3% 3% > [libx264 @ 0x278df80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 21% 19% 5% > 6% 6% 5% 4% 3% > [libx264 @ 0x278df80] i8c dc,h,v,p: 72% 14% 13% 2% > [libx264 @ 0x278df80] Weighted P-Frames: Y:0.4% UV:0.2% > [libx264 @ 0x278df80] ref P L0: 78.4% 8.7% 9.7% 3.2% 0.0% > [libx264 @ 0x278df80] ref B L0: 90.6% 8.1% 1.2% > [libx264 @ 0x278df80] ref B L1: 95.0% 5.0% > [libx264 @ 0x278df80] kb/s:1578.34 > > zybru at hp-6530b-bs:~/Desktop$ head -n 2 concat.lst; tail -n 2 concat.lst > file 'out000.mp4' > file 'out001.mp4' > file 'out012.mp4' > file 'out013.mp4' > > zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -c copy joined.mp4 > ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-nonfree --enable-version3 --enable-x11grab > --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ > --disable-optimizations > libavutil 52. 17.102 / 52. 17.102 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 38.103 / 3. 38.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [concat @ 0x1e06fc0] Estimating duration from bitrate, this may be inaccurate > Input #0, concat, from 'concat.lst': > Duration: 00:00:00.03, start: 0.000000, bitrate: 76 kb/s > Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], 1371 kb/s, 21.52 fps, 24 tbr, 12288 > tbn, 48 tbc > Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, > s16p, 126 kb/s > Output #0, mp4, to 'joined.mp4': > Metadata: > encoder : Lavf54.63.100 > Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 1371 kb/s, 21.52 fps, 12288 > tbn, 12288 tbc > Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 126 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 1440 fps=0.0 q=-1.0 Lsize= 12560kB time=00:01:03.50 > bitrate=1620.2kbits/s > video:11561kB audio:938kB subtitle:0 global headers:0kB muxing > overhead 0.490097% > zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 > ffprobe version N-50129-g951d39f Copyright (c) 2007-2013 the FFmpeg developers > built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-nonfree --enable-version3 --enable-x11grab > --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ > --disable-optimizations > libavutil 52. 17.102 / 52. 17.102 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 38.103 / 3. 38.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf54.63.100 > Duration: 00:01:03.51, start: 0.000000, bitrate: 1620 kb/s > Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], 1491 kb/s, 22.69 fps, 24 tbr, 12288 > tbn, 48 tbc > Metadata: > handler_name : VideoHandler > Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, > stereo, s16p, 128 kb/s > Metadata: > handler_name : SoundHandler > > The output duration is longer, which means that there are glitches in > between split points (I've checked that by playing the video). > > I think it's worth to notice my observations from today. small.mp4 > adio starts a couple of milliseconds earlier than video. It is > probably because I actually cut that piece from the middle of longer > clip using ffmpeg with -ss and -t flags. > > So, I've realised that it would be a good idea to do the same test on > the whole original clip. Here is the output: > > zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i > Sintel-Third-Open-Movie-by-Blender-Foundation-1080p.mp4 -f segment > -segment_time 2 -map 0 -c copy out%03d.mp4 > ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-nonfree --enable-version3 --enable-x11grab > --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ > --disable-optimizations > libavutil 52. 17.102 / 52. 17.102 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 38.103 / 3. 38.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from > 'Sintel-Third-Open-Movie-by-Blender-Foundation-1080p.mp4': > Metadata: > major_brand : mp42 > minor_version : 0 > compatible_brands: isommp42 > creation_time : 2010-09-29 12:52:38 > Duration: 00:14:48.00, start: 0.000000, bitrate: 3075 kb/s > Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], 2941 kb/s, 24 fps, 24 tbr, 1k tbn, 48 > tbc > Metadata: > creation_time : 1970-01-01 00:00:00 > handler_name : VideoHandler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 127 kb/s > Metadata: > creation_time : 2010-09-29 12:53:05 > handler_name : (C) 2007 Google Inc. v08.13.2007. > Output #0, segment, to 'out%03d.mp4': > Metadata: > major_brand : mp42 > minor_version : 0 > compatible_brands: isommp42 > encoder : Lavf54.63.100 > Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 2941 kb/s, 24 fps, 90k tbn, 24 > tbc > Metadata: > creation_time : 1970-01-01 00:00:00 > handler_name : VideoHandler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 127 kb/s > Metadata: > creation_time : 2010-09-29 12:53:05 > handler_name : (C) 2007 Google Inc. v08.13.2007. > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame=21312 fps=1425 q=-1.0 Lsize=N/A time=00:14:47.99 bitrate=N/A > video:318907kB audio:13874kB subtitle:0 global headers:0kB muxing > overhead -100.000006% > > zybru at hp-6530b-bs:~/Desktop$ for f in `ls out*`; do echo "file '$f'" >>> concat.lst; done > zybru at hp-6530b-bs:~/Desktop$ head -n 2 concat.lst; tail -n 2 concat.lst > file 'out000.mp4' > file 'out001.mp4' > file 'out442.mp4' > file 'out443.mp4' > zybru at hp-6530b-bs:~/Desktop$ ffmpeg -y -f concat -i concat.lst -c copy > joined.mp4 > ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers > built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-nonfree --enable-version3 --enable-x11grab > --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ > --disable-optimizations > libavutil 52. 17.102 / 52. 17.102 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 38.103 / 3. 38.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [concat @ 0x258ffc0] Estimating duration from bitrate, this may be inaccurate > Input #0, concat, from 'concat.lst': > Duration: 00:00:00.52, start: 0.000000, bitrate: 122 kb/s > Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], 10 kb/s, 21.19 fps, 24 tbr, 12288 tbn, > 48 tbc > Stream #0:1: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, > fltp, 111 kb/s > Output #0, mp4, to 'joined.mp4': > Metadata: > encoder : Lavf54.63.100 > Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 10 kb/s, 21.19 fps, 12288 tbn, > 12288 tbc > Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 111 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame=21312 fps=316 q=-1.0 Lsize= 333633kB time=00:16:45.30 > bitrate=2718.7kbits/s > video:318907kB audio:13874kB subtitle:0 global headers:0kB muxing > overhead 0.255866% > > zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 > ffprobe version N-50129-g951d39f Copyright (c) 2007-2013 the FFmpeg developers > built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) > configuration: --enable-gpl --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-nonfree --enable-version3 --enable-x11grab > --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ > --disable-optimizations > libavutil 52. 17.102 / 52. 17.102 > libavcodec 54. 92.100 / 54. 92.100 > libavformat 54. 63.100 / 54. 63.100 > libavdevice 54. 3.103 / 54. 3.103 > libavfilter 3. 38.103 / 3. 38.103 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2e0c420] Invalid SampleDelta in STTS -10895766 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2e0c420] Invalid SampleDelta in STTS -39114675 > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > encoder : Lavf54.63.100 > Duration: 00:01:58.61, start: 0.000000, bitrate: 23043 kb/s > Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, > 1920x818 [SAR 1:1 DAR 960:409], 2598 kb/s, 21.20 fps, 24 tbr, 12288 > tbn, 48 tbc > Metadata: > handler_name : VideoHandler > Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, > stereo, fltp, 113 kb/s > Metadata: > handler_name : SoundHandler > > If you play the movie using VLC, the audio runs smooth, but video gets > 'stuck' every couple of seconds for couple of milliseconds. > > ?ygimantas > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Amar Kumar Nandan Bangalore, India, ?:+91-9019054471 ?:nandan.amar at gmail.com http://aknandan.co.nr From un1x0nly at gmail.com Wed Feb 20 15:37:24 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Wed, 20 Feb 2013 15:37:24 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: <20130220131606.GJ20306@arborea> Message-ID: On Wed, Feb 20, 2013 at 3:17 PM, ?ygimantas Bruzgys wrote: > On Wed, Feb 20, 2013 at 2:16 PM, Stefano Sabatini wrote: >>> zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec >>> h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4 >> >> Did you try with -reset_timestamps 1? > > Let me try it now! (just fyi, I've recompiled ffmpeg today from git head) What I've else noticed today is that: - if you demux the video and segment it with '-f segment' with output format .h264; - concatenate all h264s to a single h264; - mux h264 with audio back to mp4 file despite couple of errors during concatenation, everything works smoothly and as it should. This makes me draw a conclusion that there is some kind of a bug in segmenting (or concatenating) mp4 containers. The output was a bit big, so I put it on gist: https://gist.github.com/anonymous/52d77ac231c1240ec551 ?ygimantas Bruzgys From un1x0nly at gmail.com Wed Feb 20 15:52:18 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Wed, 20 Feb 2013 15:52:18 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: <20130220131606.GJ20306@arborea> Message-ID: On Wed, Feb 20, 2013 at 3:37 PM, nandan amar wrote: > One can also try to split each frame and them remove unwanted ones and > then encode them back. Thanks, but my goal is not to remove frames. > This may help you - > split: > ffmpeg -i foo.avi -r 10 -s WxH -f image2 foo-%03d.jpeg > and combine back > ffmpeg -f image2 -i foo-%03d.jpeg -r 10 -s WxH foo.avi And I want to segment the clip without reencoding it. ?ygimantas From soho123.2012 at gmail.com Wed Feb 20 16:09:48 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 20 Feb 2013 23:09:48 +0800 Subject: [FFmpeg-user] how to select filter when configure for ffmpeg Message-ID: Hi All, I can see a lot of filters when I run configure --list-filters in ffmpeg folder. But I do not know which one is necessary for me. If I want to get video frame and send to remote client by ffmpeg and ffserver, then which filter is necessary? or , is there any document that describes the function of each filter? I do not know the function of each filter from the name of filter that "configure --list-filters" output. for example: the filter "fps", what is the function of that? Thanks! From stefasab at gmail.com Wed Feb 20 16:29:12 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 20 Feb 2013 16:29:12 +0100 Subject: [FFmpeg-user] ffmpeg stream copy fail when video size 1280x720 In-Reply-To: References: Message-ID: <20130220152911.GB27219@arborea> On date Wednesday 2013-02-20 17:15:11 +0800, Soho Soho123 wrote: > Excuse me! > > Could you explain for detail : > "Please do not top-post here, it is considered rude" > Where is wrong about my post? http://lmgtfy.com/?q=top+posting# > ==== > And Could you give me some hints about > how to enable av_log when I try to get more information? > by set loglevel option or other method? -loglevel debug Make sure you do a bit of research before asking questions, which are read by hundreds/thousands of subscribers, thanks. From stefasab at gmail.com Wed Feb 20 17:41:06 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 20 Feb 2013 17:41:06 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: <20130220131606.GJ20306@arborea> Message-ID: <20130220164106.GC27219@arborea> On date Wednesday 2013-02-20 15:17:28 +0100, ?ygimantas Bruzgys wrote: > On Wed, Feb 20, 2013 at 2:16 PM, Stefano Sabatini wrote: > >> zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec > >> h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4 > > > > Did you try with -reset_timestamps 1? > > Let me try it now! (just fyi, I've recompiled ffmpeg today from git head) > > Output: > > zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec > h264 -acodec mp3 -segment_time 2 -map 0 -reset_timestamps 0 > out%03d.mp4 What about using -reset_timestamps 1? [...] From cehoyos at ag.or.at Wed Feb 20 17:51:35 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 16:51:35 +0000 (UTC) Subject: [FFmpeg-user] how to select filter when configure for ffmpeg References: Message-ID: Soho Soho123 gmail.com> writes: > is there any document that describes the function of each filter? http://ffmpeg.org/ffmpeg-filters.html If you believe that this page is particularly difficult to find on ffmpeg.org, please tell us. Carl Eugen From batguano999 at hotmail.com Wed Feb 20 19:26:22 2013 From: batguano999 at hotmail.com (bat guano) Date: Wed, 20 Feb 2013 18:26:22 +0000 Subject: [FFmpeg-user] Why is there a Guide on libfdk_aac VBR AAC when it is not supported and working? In-Reply-To: References: Message-ID: ---------------------------------------- > But when you try the code you get messages like: > Note, the VBR setting is unsupported and only works with some parameter > combinations > Hi It seems that VBR does only work with *some* combinations for fdk_aac. Maybe that's why FFmpeg have included the warning. Though "unsupported" does sound scary, lol. Tests have been run to find out which combinations work. There's a table... In this post here ---> http://www.hydrogenaudio.org/forums/index.php?showtopic=95989&st=75&p=817833&#entry817833 From oriv at timeview.com Wed Feb 20 20:27:24 2013 From: oriv at timeview.com (Orlando Rivera) Date: Wed, 20 Feb 2013 14:27:24 -0500 Subject: [FFmpeg-user] Passing metadata from flv ? Message-ID: <0D22DE45-C95E-425B-BF11-85A5F4D27BF5@timeview.com> I need to pass custom flv metadata thru ffmpeg. what I am doing is injecting my own timestamp in flv and converting old nellymoser audio to aac but I lose metadata on other side (this is for live stream coming and going to FMS/Wowza). I was thinking new ffmpeg 1.1 could do this (other than adding metadata on command line) but so far no luck. I know injecting metadata into flv is/was common. I would think passing this metadata thru to other format (n my case aac/h264) would be a common need. I think just converting nellymoser to aac and leaving the rest in flv or f4v warper would do it (and let Wowza do the start?). help, Thanks orlando From stuart at klymiarven.co.uk Wed Feb 20 20:31:41 2013 From: stuart at klymiarven.co.uk (Stuart) Date: Wed, 20 Feb 2013 19:31:41 +0000 Subject: [FFmpeg-user] Converting MPEG-TS to MKV with hard coded subtitles produces error message In-Reply-To: <20130217151505.GB31703@phare.normalesup.org> References: <20130217151505.GB31703@phare.normalesup.org> Message-ID: <5125249D.3070408@klymiarven.co.uk> Hello Nicolas, Thanks again for the suggestions. I had tried adding the "-s:s 720x576" before the "-i" option but that caused the message "Option video_size not found". I jumped to the wrong conclusion that I needed to put the option after the "-i". Now I know better. While you're thinking of beautiful solutions, I'll try the remux work-around. Many thanks, Stuart From compuvision.sr at gmail.com Wed Feb 20 20:31:46 2013 From: compuvision.sr at gmail.com (Albert Scholtalbers) Date: Wed, 20 Feb 2013 16:31:46 -0300 Subject: [FFmpeg-user] Why is there a Guide on libfdk_aac VBR AAC when it is not supported and working? In-Reply-To: References: Message-ID: >Hi >It seems that VBR does only work with *some* combinations for fdk_aac. >Maybe that's why FFmpeg have included the warning. >Though "unsupported" does sound scary, lol. >Tests have been run to find out which combinations work. >There's a table... >In this post here ---> http://www.hydrogenaudio.org/forums/index.php?showtopic=95989&st=75&p=817833&#entry81783 Thx for the link. My used combination LC-AAC 2ch 48000 1,2,3,4,5 is also in the table. After the transcoding the result is flagged as 'CBR', in stead of VBR...... so I don't agree on nu774 that it works..... From cehoyos at ag.or.at Wed Feb 20 20:44:41 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 19:44:41 +0000 (UTC) Subject: [FFmpeg-user] Passing metadata from flv ? References: <0D22DE45-C95E-425B-BF11-85A5F4D27BF5@timeview.com> Message-ID: Orlando Rivera timeview.com> writes: > I was thinking new ffmpeg 1.1 could do this (other > than adding metadata on command line) but so far no luck. Please provide your command line together with the complete, uncut console output. Carl Eugen From batguano999 at hotmail.com Wed Feb 20 20:55:59 2013 From: batguano999 at hotmail.com (bat guano) Date: Wed, 20 Feb 2013 19:55:59 +0000 Subject: [FFmpeg-user] Why is there a Guide on libfdk_aac VBR AAC when it is not supported and working? In-Reply-To: References: , , Message-ID: ---------------------------------------- ?My used combination LC-AAC 2ch 48000 1,2,3,4,5 > is also in the table. After the transcoding the result is flagged as 'CBR', > in stead of VBR... Hi Maybe that's a problem with how FFmpeg uses fdk_aac. @ubuntu:~$ fdkaac -m 3 -o test1.m4a foo.wav [100%] 00:30.071/00:30.071 (6x), ETA 00:00.000?? 1443389/1443389 samples processed in 00:04.709 @ubuntu:~$ mediainfo test1.m4a General Complete name??????????????????????????? : test1.m4a Format?????????????????????????????????? : MPEG-4 Format profile?????????????????????????? : Apple audio with iTunes info Codec ID???????????????????????????????? : M4A File size??????????????????????????????? : 562 KiB Duration???????????????????????????????? : 30s 123ms Overall bit rate mode??????????????????? : Variable Overall bit rate???????????????????????? : 153 Kbps Encoded date???????????????????????????? : UTC 2013-02-20 19:49:47 Tagged date????????????????????????????? : UTC 2013-02-20 19:49:47 Writing application????????????????????? : fdkaac 0.1.5, libfdk-aac 3.3.3, VBR mode 3 Audio ID?????????????????????????????????????? : 1 Format?????????????????????????????????? : AAC Format/Info????????????????????????????? : Advanced Audio Codec Format profile?????????????????????????? : LC Codec ID???????????????????????????????? : 40 Duration???????????????????????????????? : 30s 123ms Bit rate mode??????????????????????????? : Variable Bit rate???????????????????????????????? : 151 Kbps Maximum bit rate???????????????????????? : 213 Kbps Channel(s)?????????????????????????????? : 2 channels Channel positions??????????????????????? : Front: L R Sampling rate??????????????????????????? : 48.0 KHz Compression mode???????????????????????? : Lossy Stream size????????????????????????????? : 555 KiB (99%) Encoded date???????????????????????????? : UTC 2013-02-20 19:49:47 Tagged date????????????????????????????? : UTC 2013-02-20 19:49:47 @ubuntu:~$ ffmpeg -i foo.wav -c:a libfdk_aac -vbr 3 test2.m4a ffmpeg version git-2013-01-22-766f055 Copyright (c) 2000-2013 the FFmpeg developers ? built on Jan 22 2013 14:16:03 with gcc 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ? configuration: --enable-gpl --enable-libaacplus --enable-libfaac --enable-libfdk-aac --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3 --enable-x11grab ? libavutil????? 52. 15.100 / 52. 15.100 ? libavcodec???? 54. 90.100 / 54. 90.100 ? libavformat??? 54. 61.102 / 54. 61.102 ? libavdevice??? 54.? 3.102 / 54.? 3.102 ? libavfilter???? 3. 33.100 /? 3. 33.100 ? libswscale????? 2.? 2.100 /? 2.? 2.100 ? libswresample?? 0. 17.102 /? 0. 17.102 ? libpostproc??? 52.? 2.100 / 52.? 2.100 [wav @ 0xb3c7320] max_analyze_duration 5000000 reached at 5013333 microseconds Guessed Channel Layout for? Input Stream #0.0 : stereo Input #0, wav, from 'foo.wav': ? Metadata: ??? artist????????? : Jody Marie Gnant ??? copyright?????? : 1995 Sirius Publishing ??? title?????????? : Lucky Night ??? encoder???????? : Lavf54.61.102 ? Duration: 00:00:30.07, bitrate: 1536 kb/s ??? Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s [libfdk_aac @ 0xb4be580] Note, the VBR setting is unsupported and only works with some parameter combinations Output #0, ipod, to 'test2.m4a': ? Metadata: ??? artist????????? : Jody Marie Gnant ??? copyright?????? : 1995 Sirius Publishing ??? title?????????? : Lucky Night ??? encoder???????? : Lavf54.61.102 ??? Stream #0:0: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16 Stream mapping: ? Stream #0:0 -> #0:0 (pcm_s16le -> libfdk_aac) Press [q] to stop, [?] for help size=???? 561kB time=00:00:30.08 bitrate= 152.8kbits/s??? video:0kB audio:555kB subtitle:0 global headers:0kB muxing overhead 1.146276% @ubuntu:~$ mediainfo test2.m4a General Complete name??????????????????????????? : test2.m4a Format?????????????????????????????????? : MPEG-4 Format profile?????????????????????????? : Apple audio with iTunes info Codec ID???????????????????????????????? : M4A File size??????????????????????????????? : 561 KiB Duration???????????????????????????????? : 30s 114ms Overall bit rate mode??????????????????? : Constant Overall bit rate???????????????????????? : 153 Kbps Track name?????????????????????????????? : Lucky Night Performer??????????????????????????????? : Jody Marie Gnant Writing application????????????????????? : Lavf54.61.102 Copyright??????????????????????????????? : 1995 Sirius Publishing Audio ID?????????????????????????????????????? : 1 Format?????????????????????????????????? : AAC Format/Info????????????????????????????? : Advanced Audio Codec Format profile?????????????????????????? : LC Codec ID???????????????????????????????? : 40 Duration???????????????????????????????? : 30s 114ms Duration_LastFrame?????????????????????? : -9ms Bit rate mode??????????????????????????? : Constant Bit rate???????????????????????????????? : 151 Kbps Channel(s)?????????????????????????????? : 2 channels Channel positions??????????????????????? : Front: L R Sampling rate??????????????????????????? : 48.0 KHz Compression mode???????????????????????? : Lossy Stream size????????????????????????????? : 555 KiB (99%) From ffmpeg at rgbaz.eu Wed Feb 20 20:59:51 2013 From: ffmpeg at rgbaz.eu (ArnoB) Date: Wed, 20 Feb 2013 20:59:51 +0100 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation Message-ID: Hello! I'm trying to convert a prores4444 quicktime with gamma 2.2 to a dpx sequence with the following command: % ffmpeg -i prores4444g2.2_v01.mov prores.%02d.dpx In the resulting DPX sequence I have the following errors: -the DPXs are tagged as being sRGB. manually switching my program's reader to 2.2 makes them look ok; -there is a colourshift of around 120?. My prores file contains a colourwheel so it's easy to spot. green becomes blue, red becomes green and blue becomes red; -also there's a translation in the X axis of +277 pixels. the missing part is wrapped around and visible on the other side: prores: -------------- next part -------------- A non-text attachment was scrubbed... Name: prores4444g2.2_v01.jpg Type: image/jpg Size: 4809 bytes Desc: not available URL: -------------- next part -------------- dpx: -------------- next part -------------- A non-text attachment was scrubbed... Name: dpx_v01.jpg Type: image/jpg Size: 4892 bytes Desc: not available URL: -------------- next part -------------- full terminal output: % ffmpeg -i prores4444g2.2_v01.mov prores.%02d.dpx ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 18:53:55 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3) configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-avresample --enable-x11grab --enable-vda --enable-vdpau --enable-bzlib --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-openssl --enable-zlib 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 'prores4444g2.2_v01.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-18 22:21:14 Duration: 00:00:00.40, start: 0.000000, bitrate: 121378 kb/s Stream #0:0(eng): Video: prores (ap4h / 0x68347061), yuv444p10le, 1920x1080, 121360 kb/s, SAR 1000:1000 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2013-02-18 22:21:14 handler_name : Apple Alias Data Handler Output #0, image2, to 'prores.%02d.dpx': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt encoder : Lavf54.59.106 Stream #0:0(eng): Video: dpx, rgb48be, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2013-02-18 22:21:14 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> dpx) Press [q] to stop, [?] for help frame= 10 fps=2.5 q=0.0 Lsize=N/A time=00:00:00.40 bitrate=N/A video:121516kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000018% Is this a known problem or am I missing some parts in the manual? thanks in advance, Arno From oriv at timeview.com Wed Feb 20 21:07:40 2013 From: oriv at timeview.com (Orlando Rivera) Date: Wed, 20 Feb 2013 15:07:40 -0500 Subject: [FFmpeg-user] Passing metadata from flv ? In-Reply-To: References: <0D22DE45-C95E-425B-BF11-85A5F4D27BF5@timeview.com> Message-ID: This is a live stream coming form FMS 3.5 going to Wowza - below is the command I am using (modify output url a bit to xxxx - Thanks ffmpeg -f flv -i rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX -f flv -strict -2 -acodec aac -ar 32000 -vcodec h264 rtmp://ec2-50-xxxxx/iosstream1361390373734.sdp ffmpeg version 1.1.1-tessus Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:17:33 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 --disable-ffserver --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 [flv @ 0x102006a00] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc Stream #0:1: Audio: nellymoser, 22050 Hz, mono, flt [libx264 @ 0x1020b0800] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x1020b0800] profile High, level 4.2 [libx264 @ 0x1020b0800] 264 - core 129 - 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=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=25 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, flv, to 'rtmp://ec2-50-19-221-196.compute-1.amazonaws.com:1935/liveorigin/iosstream1361390373734.sdp': Metadata: encoder : Lavf54.59.106 Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 320x240, q=-1--1, 1k tbn, 1k tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 32000 Hz, mono, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (flv -> libx264) Stream #0:1 -> #0:1 (nellymoser -> aac) Press [q] to stop, [?] for help frame= 361 fps= 17 q=29.0 size= 487kB time=00:00:24.44 bitrate= 163.1kbits/s On Feb 20, 2013, at 2:44 PM, Carl Eugen Hoyos wrote: > Orlando Rivera timeview.com> writes: > >> I was thinking new ffmpeg 1.1 could do this (other >> than adding metadata on command line) but so far no luck. > > Please provide your 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 > From oriv at timeview.com Wed Feb 20 21:13:18 2013 From: oriv at timeview.com (Orlando Rivera) Date: Wed, 20 Feb 2013 15:13:18 -0500 Subject: [FFmpeg-user] Why is there a Guide on libfdk_aac VBR AAC when it is not supported and working? In-Reply-To: References: , , Message-ID: <299C41FF-3EB5-47EB-87D3-6AD5A929044C@timeview.com> I left out output once I quit - ffmpeg -f flv -i rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX -f flv -strict -2 -acodec aac -ar 32000 -vcodec h264 rtmp://ec2-50xxxxx/iosstream1361390373734.sdp ffmpeg version 1.1.1-tessus Copyright (c) 2000-2013 the FFmpeg developers built on Jan 20 2013 23:17:33 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 --disable-ffserver --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 [flv @ 0x102006a00] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc Stream #0:1: Audio: nellymoser, 22050 Hz, mono, flt [libx264 @ 0x1020b0800] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x1020b0800] profile High, level 4.2 [libx264 @ 0x1020b0800] 264 - core 129 - 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=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=25 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, flv, to 'rtmp://ec2-50xxxxxx/iosstream1361390373734.sdp': Metadata: encoder : Lavf54.59.106 Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 320x240, q=-1--1, 1k tbn, 1k tbc Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 32000 Hz, mono, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (flv -> libx264) Stream #0:1 -> #0:1 (nellymoser -> aac) Press [q] to stop, [?] for help Failed to update header with correct duration.e=00:04:40.38 bitrate= 203.2kbits/s [flv @ 0x1020a5400] Failed to update header with correct filesize. frame= 4128 fps= 15 q=32766.0 Lsize= 7037kB time=00:04:40.67 bitrate= 205.4kbits/s video:3050kB audio:3761kB subtitle:0 global headers:0kB muxing overhead 3.327457% [libx264 @ 0x1020b0800] frame I:17 Avg QP:15.57 size: 7475 [libx264 @ 0x1020b0800] frame P:1101 Avg QP:19.03 size: 1992 [libx264 @ 0x1020b0800] frame B:3010 Avg QP:24.64 size: 267 [libx264 @ 0x1020b0800] consecutive B-frames: 2.1% 1.2% 2.3% 94.4% [libx264 @ 0x1020b0800] mb I I16..4: 16.6% 79.1% 4.2% [libx264 @ 0x1020b0800] mb P I16..4: 1.5% 11.7% 0.8% P16..4: 29.6% 16.1% 21.0% 0.0% 0.0% skip:19.3% [libx264 @ 0x1020b0800] mb B I16..4: 0.3% 1.7% 0.0% B16..8: 34.7% 3.7% 0.8% direct: 1.2% skip:57.6% L0:36.0% L1:60.2% BI: 3.8% [libx264 @ 0x1020b0800] 8x8 transform intra:83.6% inter:89.9% [libx264 @ 0x1020b0800] coded y,uvDC,uvAC intra: 70.4% 56.2% 3.8% inter: 10.8% 9.1% 0.5% [libx264 @ 0x1020b0800] i16 v,h,dc,p: 13% 66% 19% 2% [libx264 @ 0x1020b0800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 21% 50% 3% 1% 2% 1% 2% 4% [libx264 @ 0x1020b0800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 39% 12% 3% 3% 3% 2% 2% 2% [libx264 @ 0x1020b0800] i8c dc,h,v,p: 44% 28% 25% 3% [libx264 @ 0x1020b0800] Weighted P-Frames: Y:8.1% UV:0.2% [libx264 @ 0x1020b0800] ref P L0: 53.0% 10.6% 13.8% 21.7% 0.9% [libx264 @ 0x1020b0800] ref B L0: 69.1% 20.7% 10.1% [libx264 @ 0x1020b0800] ref B L1: 76.7% 23.3% [libx264 @ 0x1020b0800] kb/s:89.01 On Feb 20, 2013, at 2:55 PM, bat guano wrote: > > > > ---------------------------------------- > My used combination LC-AAC 2ch 48000 1,2,3,4,5 >> is also in the table. After the transcoding the result is flagged as 'CBR', >> in stead of VBR... > > Hi > Maybe that's a problem with how FFmpeg uses fdk_aac. > > > @ubuntu:~$ fdkaac -m 3 -o test1.m4a foo.wav > [100%] 00:30.071/00:30.071 (6x), ETA 00:00.000 > 1443389/1443389 samples processed in 00:04.709 > > @ubuntu:~$ mediainfo test1.m4a > General > Complete name : test1.m4a > Format : MPEG-4 > Format profile : Apple audio with iTunes info > Codec ID : M4A > File size : 562 KiB > Duration : 30s 123ms > Overall bit rate mode : Variable > Overall bit rate : 153 Kbps > Encoded date : UTC 2013-02-20 19:49:47 > Tagged date : UTC 2013-02-20 19:49:47 > Writing application : fdkaac 0.1.5, libfdk-aac 3.3.3, VBR mode 3 > > Audio > ID : 1 > Format : AAC > Format/Info : Advanced Audio Codec > Format profile : LC > Codec ID : 40 > Duration : 30s 123ms > Bit rate mode : Variable > Bit rate : 151 Kbps > Maximum bit rate : 213 Kbps > Channel(s) : 2 channels > Channel positions : Front: L R > Sampling rate : 48.0 KHz > Compression mode : Lossy > Stream size : 555 KiB (99%) > Encoded date : UTC 2013-02-20 19:49:47 > Tagged date : UTC 2013-02-20 19:49:47 > > > @ubuntu:~$ ffmpeg -i foo.wav -c:a libfdk_aac -vbr 3 test2.m4a > ffmpeg version git-2013-01-22-766f055 Copyright (c) 2000-2013 the FFmpeg developers > built on Jan 22 2013 14:16:03 with gcc 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) > configuration: --enable-gpl --enable-libaacplus --enable-libfaac --enable-libfdk-aac --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3 --enable-x11grab > libavutil 52. 15.100 / 52. 15.100 > libavcodec 54. 90.100 / 54. 90.100 > libavformat 54. 61.102 / 54. 61.102 > libavdevice 54. 3.102 / 54. 3.102 > libavfilter 3. 33.100 / 3. 33.100 > libswscale 2. 2.100 / 2. 2.100 > libswresample 0. 17.102 / 0. 17.102 > libpostproc 52. 2.100 / 52. 2.100 > [wav @ 0xb3c7320] max_analyze_duration 5000000 reached at 5013333 microseconds > Guessed Channel Layout for Input Stream #0.0 : stereo > Input #0, wav, from 'foo.wav': > Metadata: > artist : Jody Marie Gnant > copyright : 1995 Sirius Publishing > title : Lucky Night > encoder : Lavf54.61.102 > Duration: 00:00:30.07, bitrate: 1536 kb/s > Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s16, 1536 kb/s > [libfdk_aac @ 0xb4be580] Note, the VBR setting is unsupported and only works with some parameter combinations > Output #0, ipod, to 'test2.m4a': > Metadata: > artist : Jody Marie Gnant > copyright : 1995 Sirius Publishing > title : Lucky Night > encoder : Lavf54.61.102 > Stream #0:0: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16 > Stream mapping: > Stream #0:0 -> #0:0 (pcm_s16le -> libfdk_aac) > Press [q] to stop, [?] for help > size= 561kB time=00:00:30.08 bitrate= 152.8kbits/s > video:0kB audio:555kB subtitle:0 global headers:0kB muxing overhead 1.146276% > > @ubuntu:~$ mediainfo test2.m4a > General > Complete name : test2.m4a > Format : MPEG-4 > Format profile : Apple audio with iTunes info > Codec ID : M4A > File size : 561 KiB > Duration : 30s 114ms > Overall bit rate mode : Constant > Overall bit rate : 153 Kbps > Track name : Lucky Night > Performer : Jody Marie Gnant > Writing application : Lavf54.61.102 > Copyright : 1995 Sirius Publishing > > Audio > ID : 1 > Format : AAC > Format/Info : Advanced Audio Codec > Format profile : LC > Codec ID : 40 > Duration : 30s 114ms > Duration_LastFrame : -9ms > Bit rate mode : Constant > Bit rate : 151 Kbps > Channel(s) : 2 channels > Channel positions : Front: L R > Sampling rate : 48.0 KHz > Compression mode : Lossy > Stream size : 555 KiB (99%) > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From onemda at gmail.com Wed Feb 20 21:18:25 2013 From: onemda at gmail.com (Paul B Mahol) Date: Wed, 20 Feb 2013 20:18:25 +0000 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation In-Reply-To: References: Message-ID: On 2/20/13, ArnoB wrote: > Hello! > > I'm trying to convert a prores4444 quicktime with gamma 2.2 to > a dpx sequence with the following command: > > % ffmpeg -i prores4444g2.2_v01.mov prores.%02d.dpx > > In the resulting DPX sequence I have the following errors: > -the DPXs are tagged as being sRGB. manually switching my program's > reader to 2.2 makes them look ok; > > -there is a colourshift of around 120DEG. My prores file contains a > colourwheel > so it's easy to spot. green becomes blue, red becomes green and blue > becomes red; > > -also there's a translation in the X axis of +277 pixels. the missing part > is wrapped around and visible on the other side: You are doing YUV444p10 to RGB48 conversion. So either one of this is broken: 1. colorspace conversion 2. prores decoder 3. your program reader From cehoyos at ag.or.at Wed Feb 20 21:21:19 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 20:21:19 +0000 (UTC) Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation References: Message-ID: ArnoB rgbaz.eu> writes: > Is this a known problem? I don't think so, please provide a sample file. Carl Eugen From cehoyos at ag.or.at Wed Feb 20 21:23:18 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 20:23:18 +0000 (UTC) Subject: [FFmpeg-user] Passing metadata from flv ? References: <0D22DE45-C95E-425B-BF11-85A5F4D27BF5@timeview.com> Message-ID: Orlando Rivera timeview.com> writes: > Input #0, flv, from 'rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX': > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc > Stream #0:1: Audio: nellymoser, 22050 Hz, mono, flt This indicates FFmpeg does not see any metadata in the stream, does this also happen if you feed the file directly to ffmpeg? Please do not top-post here, Carl Eugen From oriv at timeview.com Wed Feb 20 21:39:10 2013 From: oriv at timeview.com (Orlando Rivera) Date: Wed, 20 Feb 2013 15:39:10 -0500 Subject: [FFmpeg-user] Passing metadata from flv ? In-Reply-To: References: <0D22DE45-C95E-425B-BF11-85A5F4D27BF5@timeview.com> Message-ID: <90243705-2BC4-4D84-91CE-EFF15C1562E6@timeview.com> Sorry, have not used a mailing list in a long time - should my reply be below below the body of original email text? If I read the input from FMS into my own player I can see metadata coming thru . I need to try and save live stream and see if that matters? On Feb 20, 2013, at 3:23 PM, Carl Eugen Hoyos wrote: > Orlando Rivera timeview.com> writes: > >> Input #0, flv, from > 'rtmp://192.168.20.17/stream_relay/iosstream1361390373734.sdpX': >> Duration: N/A, start: 0.000000, bitrate: N/A >> Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc >> Stream #0:1: Audio: nellymoser, 22050 Hz, mono, flt > > This indicates FFmpeg does not see any metadata > in the stream, does this also happen if you feed > the file directly to ffmpeg? > > Please do not top-post here, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ffmpeg at rgbaz.eu Wed Feb 20 21:41:48 2013 From: ffmpeg at rgbaz.eu (ArnoB) Date: Wed, 20 Feb 2013 21:41:48 +0100 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation In-Reply-To: References: Message-ID: On 20 feb 2013, at 21:21, Carl Eugen Hoyos wrote: > ArnoB > writes: > >> Is this a known problem? > > I don't think so, please provide a sample file. > > Carl Eugen > oh my reply's attachments are too big and awaiting administrator's approval... they're on the way :) From cehoyos at ag.or.at Wed Feb 20 21:45:26 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 20:45:26 +0000 (UTC) Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation References: Message-ID: ArnoB rgbaz.eu> writes: > oh my reply's attachments are too big and awaiting > administrator's approval... Please consider canceling your mail (not all readers may be interested in large attachments), either use incoming as explained on http://ffmpeg.org/bugreports.html (there is no enforced size limit) or http://www.datafilehost.com/ Carl Eugen From ffmpeg at rgbaz.eu Wed Feb 20 21:55:23 2013 From: ffmpeg at rgbaz.eu (ArnoB) Date: Wed, 20 Feb 2013 21:55:23 +0100 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation In-Reply-To: References: Message-ID: <20AE5B22-BCF8-48CF-81CE-2535E77A1D06@rgbaz.eu> On 20 feb 2013, at 21:45, Carl Eugen Hoyos wrote: > ArnoB > writes: > >> oh my reply's attachments are too big and awaiting >> administrator's approval... > > Please consider canceling your mail (not all readers > may be interested in large attachments), either use > incoming as explained on > http://ffmpeg.org/bugreports.html (there is no enforced > size limit) or http://www.datafilehost.com/ > > Carl Eugen Hey Carl, thanks for the tip :) I upped the files here: ProRes: http://www.datafilehost.com/download-39db8690.html DPX: http://www.datafilehost.com/download-80a13751.html Do you think I should file a bugreport for this issue? thanks! arno From ffmpeg at rgbaz.eu Wed Feb 20 21:57:34 2013 From: ffmpeg at rgbaz.eu (ArnoB) Date: Wed, 20 Feb 2013 21:57:34 +0100 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation In-Reply-To: References: Message-ID: On 20 feb 2013, at 21:18, Paul B Mahol wrote: > On 2/20/13, ArnoB wrote: >> Hello! >> >> I'm trying to convert a prores4444 quicktime with gamma 2.2 to >> a dpx sequence with the following command: >> >> % ffmpeg -i prores4444g2.2_v01.mov prores.%02d.dpx >> >> In the resulting DPX sequence I have the following errors: >> -the DPXs are tagged as being sRGB. manually switching my program's >> reader to 2.2 makes them look ok; >> >> -there is a colourshift of around 120DEG. My prores file contains a >> colourwheel >> so it's easy to spot. green becomes blue, red becomes green and blue >> becomes red; >> >> -also there's a translation in the X axis of +277 pixels. the missing part >> is wrapped around and visible on the other side: > > You are doing YUV444p10 to RGB48 conversion. > > So either one of this is broken: > > 1. colorspace conversion > 2. prores decoder > 3. your program reader Hi Paul, could you elaborate your comment a bit more please? my program reader is very unlikely the problem. I use the foundry's Nuke to create the ProRes on OSX and read the DPX files back in. gr arno From cehoyos at ag.or.at Wed Feb 20 22:06:40 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 20 Feb 2013 21:06:40 +0000 (UTC) Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation References: <20AE5B22-BCF8-48CF-81CE-2535E77A1D06@rgbaz.eu> Message-ID: ArnoB rgbaz.eu> writes: > http://www.datafilehost.com/download-39db8690.html I used the following command line on your file: $ ffmpeg -i prores4444g2.2_v01.mov out.dpx out.dpx looks ok with both ImageMagick and FFmpeg. I cannot really comment on the gamma issue, I guess: Patch welcome! Carl Eugen From ffmpeg at rgbaz.eu Wed Feb 20 22:42:32 2013 From: ffmpeg at rgbaz.eu (ArnoB) Date: Wed, 20 Feb 2013 22:42:32 +0100 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation In-Reply-To: References: <20AE5B22-BCF8-48CF-81CE-2535E77A1D06@rgbaz.eu> Message-ID: <1C9C86F6-0DCA-4429-8233-FAF269CD5C7A@rgbaz.eu> On 20 feb 2013, at 22:06, Carl Eugen Hoyos wrote: > ArnoB > writes: > >> http://www.datafilehost.com/download-39db8690.html > > I used the following command line on your file: > $ ffmpeg -i prores4444g2.2_v01.mov out.dpx > out.dpx looks ok with both ImageMagick and FFmpeg. > > I cannot really comment on the gamma issue, I guess: > Patch welcome! > > Carl Eugen > Hey Carl, thanks for trying. I should have thought of opening the dpx with ffplay myself... it looks OK here too. very odd. photoshop opens it without the hue shift and most grading programs (resolve and speedgrade) after effects refuses it, shake displays a black frame and nuke has the problems i mention above. I'll definitely try to have a look at why this happens (i have a CD here from Kodak with official DPXs in all kinds) and see if I can write a patch. It could take some time though since I just finished my C book's chapter about pointers ;) (I did write a DPX header reader in python though a few years ago) thanks for your time! gr Arno From basco0 at gmail.com Wed Feb 20 23:34:31 2013 From: basco0 at gmail.com (ricky galbino) Date: Thu, 21 Feb 2013 06:34:31 +0800 Subject: [FFmpeg-user] FFplay work different in 0.5 version than next versions In-Reply-To: References: Message-ID: Let me explain more : In a slow computer , using Debian Squeeze ffplay = plays like mplayer (newer or old versions of mplayer ) if the video its too heavy goes slow but shows and not freeze. In a slow computer , using Debian Wheeze ffplay =heavy video freeze and takes too much time to shows slow frames. mplayer plays as normal. Also I compile a new svn version and goes freeze and take too mush time to play sometimes never play. The command line shows normal error of heavy video playing on slow pc . For .. more problem I cant cross compile ffplay 0.5 , dont detect libraries SDL... What was the change from 0.5 to new ones? On Wed, Feb 20, 2013 at 4:50 PM, Carl Eugen Hoyos wrote: > ricky galbino gmail.com> writes: > > > Version 0.5 plays like mplayer . Ok the thing its that > > newer version like the 1.1 the same videos in slow comp. > > get like freeze or take too much time to start . > > Please provide your command line together with complete, > uncut console output. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From dielsonscarvalho at gmail.com Thu Feb 21 02:34:32 2013 From: dielsonscarvalho at gmail.com (Dielson Sales) Date: Wed, 20 Feb 2013 22:34:32 -0300 Subject: [FFmpeg-user] rotating a video losses quality In-Reply-To: References: Message-ID: 2013/2/13 Paul B Mahol > > Transcoding do affect quality. > The only way to not lose quality it to use lossless preset. > You can use -crf 18 for libx264. From soho123.2012 at gmail.com Thu Feb 21 03:03:53 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 21 Feb 2013 10:03:53 +0800 Subject: [FFmpeg-user] system freeze when ffmpeg , ffserver and vlc remote client running simultaneously Message-ID: Hi All, I encountered a big trouble about stability issue. I setup a stream server with ffserver, and use ffmpeg to get video frame from usb webcam. then my target embedd system will freeze after running a few minutes when using vlc to connect ffserver. if I do NOT use vlc client to connect ffserver, then the target system is stable over night. the system can keep running when there is no any client connected. Does anyone have idea: which point can be checked about this issue? It seems the issue about video data access issue between ffserver and ffmpeg. since ffmpeg will "WRITE" to feed file and ffserver will "READ" feed file.Am I right? Before I try to setup gdb debugging , anything I can check? ffserver config: ======================= Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 200 MaxClients 10 CustomLog - File /tmp/feed1.ffm FileMaxSize 5M ACL allow 127.0.0.1 Feed feed1.ffm Format mjpeg VideoSize 640x480 VideoFrameRate 30 VideoBitRate 20000 VideoQMin 1 VideoQMax 10 Noaudio ===================== ffmpeg command line: ====================== ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -vcodec copy http://localhost:8090/feed1.ffm ====================== From soho123.2012 at gmail.com Thu Feb 21 03:39:28 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 21 Feb 2013 10:39:28 +0800 Subject: [FFmpeg-user] is Stream passthru support by ffserver Message-ID: Hi All, Is "VideoCodec copy" support by ffserver? As I know I can use "copy" for video copy, but Can ffserver support video copy? From phamsyquybk at gmail.com Wed Feb 20 05:43:44 2013 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Wed, 20 Feb 2013 13:43:44 +0900 Subject: [FFmpeg-user] How to get time stamp of closet k-frame before a given timestamp with ffmpeg? Message-ID: I want a ffmpeg seeking command that fast and accurate. I found this The solution is that we apply -ss for both input (fast seeking) and output (accurate seeking). The question is that if the input seeking is not accurate how can we be sure that the seeking position is accurate. For example: as the example used in the link, if we want to seek to 00:03:00, the command is something likes ffmpeg -ss 00:02:30 -i ... -ss 00:00:30 As said, the first seeking will seek to somewhere else not 00:02:30, say 00:02:31. and after applying second seek, the final result would be 00:03:01- NOT what we want. Is that correct? Where does fist seeking seek to? Does it seek to k-frame that closet to 00:02:30? If so, here is my thought, correct me if i'm wrong: after first seeking, we get the timestamp of the result (in this example: 00:02:31), then we apply second seeking with appropriate time, in this case 00:00:29. Question is how do we get time stamp of first seeking's result? Jack From dustin at webfishcreative.com Thu Feb 21 06:10:57 2013 From: dustin at webfishcreative.com (Web Fish Creative) Date: Wed, 20 Feb 2013 23:10:57 -0600 Subject: [FFmpeg-user] Optimized Conversion Assistance [willing to pay] Message-ID: I am looking for some guidance on optimal settings for the following: We need to convert any upload to the most optimized mp4, webm and ogv for an html5 player. Optimal quality is key for this project and we are no video experts. FFMPEG has been successfully installed and tested. Regards, Dustin Ladd Owner Web Fish Creative? Design | Development | Branding | Print http://webfishcreative.com (832) 800-4998 From soho123.2012 at gmail.com Thu Feb 21 06:26:43 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 21 Feb 2013 13:26:43 +0800 Subject: [FFmpeg-user] Any requirement about USB Video Class driver for ffmpeg Message-ID: Hi all, Is there any requirement about USB Video Class driver when I would like run ffmpeg? for example: which version is recommended? Thanks! From tibo_wcc at yahoo.com Thu Feb 21 08:23:45 2013 From: tibo_wcc at yahoo.com (Tibo W) Date: Wed, 20 Feb 2013 23:23:45 -0800 (PST) Subject: [FFmpeg-user] ffmpeg 1.0 + libstagefright + android 2.2.3 Message-ID: <1361431425.39157.YahooMailNeo@web142403.mail.bf1.yahoo.com> Hi, I've been using ffmpeg 0.10.2 on android 2.2.3 and compiled libstagefright with the included scripts without issue (ndk r8, toolchain 4.4.3). Using the same config, I can't compile 1.0 (or the one from git head). I was wondering if someone could provide me the correct config / steps to compile libstagefright (which ndk etc) Thanks in advance ! From cehoyos at ag.or.at Thu Feb 21 09:02:03 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 21 Feb 2013 08:02:03 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg 1.0 + libstagefright + android 2.2.3 References: <1361431425.39157.YahooMailNeo@web142403.mail.bf1.yahoo.com> Message-ID: Tibo W yahoo.com> writes: > I've been using ffmpeg 0.10.2 on android 2.2.3 and > compiled libstagefright with the included scripts > without issue (ndk r8, toolchain 4.4.3). > Using the same config, I can't compile 1.0 (or the > one from git head). Could you use git bisect to find the offending commit? Carl Eugen From cehoyos at ag.or.at Thu Feb 21 09:03:23 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 21 Feb 2013 08:03:23 +0000 (UTC) Subject: [FFmpeg-user] system freeze when ffmpeg , ffserver and vlc remote client running simultaneously References: Message-ID: Soho Soho123 gmail.com> writes: > I encountered a big trouble about stability issue. > I setup a stream server with ffserver, and use ffmpeg > to get video frame from usb webcam. > then my target embedd system will freeze after running > a few minutes when using vlc to connect ffserver. You will have to find out which application freezes and use gdb to find out where it freezes. Carl Eugen From cehoyos at ag.or.at Thu Feb 21 09:19:43 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 21 Feb 2013 08:19:43 +0000 (UTC) Subject: [FFmpeg-user] FFplay work different in 0.5 version than next versions References: Message-ID: ricky galbino gmail.com> writes: > In a slow computer , using Debian Squeeze ffplay = plays > like mplayer (newer or old versions of mplayer ) if the > video its too heavy goes slow but shows and not freeze. > > In a slow computer , using Debian Wheeze ffplay =heavy > video freeze and takes too much time to shows slow > frames. mplayer plays as normal. Please provide your complete ffplay command line together with complete, uncut console output. Please do not top-post here, it is considered rude. Carl Eugen From soho123.2012 at gmail.com Thu Feb 21 09:44:09 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 21 Feb 2013 16:44:09 +0800 Subject: [FFmpeg-user] how to set VideoBitrate for ffserver Message-ID: Hi All, how much videobitrate is reasonable when videosize is 640x480 30fps? Thanks! From jh.moon.cs at yonsei.ac.kr Thu Feb 21 10:13:37 2013 From: jh.moon.cs at yonsei.ac.kr (=?UTF-8?B?66y47KSA7ZiV?=) Date: Thu, 21 Feb 2013 18:13:37 +0900 (KST) Subject: [FFmpeg-user] =?utf-8?q?_File_sizes_for_full_search_and_epzs_moti?= =?utf-8?q?on_estimation_algorithms?= Message-ID: <5125e5543fd3_@_imoxion.com> Full search encoding console output : mjh at ubuntu:~/ffmpeg-1.1.1$ ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 -dia_size 1025 full_foreman_dia1025.avi ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 4 2013 01:43:31 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --disable-yasm 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 [rawvideo @ 0xab00120] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'foreman_qcif.yuv': Duration: 00:00:12.00, start: 0.000000, bitrate: 7603 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144, 7603 kb/s, 25 tbr, 25 tbn, 25 tbc Output #0, avi, to 'full_foreman_dia1025.avi': Metadata: ISFT : Lavf54.59.106 Stream #0:0: Video: h263 (H263 / 0x33363248), yuv420p, 176x144, q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> h263) Press [q] to stop, [?] for help frame= 300 fps=0.0 q=10.0 Lsize= 245kB time=00:00:12.00 bitrate= 167.4kbits/s video:233kB audio:0kB subtitle:0 global headers:0kB muxing overhead 5.471404% epzs encoding console output : mjh at ubuntu:~/ffmpeg-1.1.1$ ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 epzs_foreman.avi ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 4 2013 01:43:31 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --disable-yasm 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 [rawvideo @ 0x9fac0a0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'foreman_qcif.yuv': Duration: 00:00:12.00, start: 0.000000, bitrate: 7603 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144, 7603 kb/s, 25 tbr, 25 tbn, 25 tbc Output #0, avi, to 'epzs_foreman.avi': Metadata: ISFT : Lavf54.59.106 Stream #0:0: Video: h263 (H263 / 0x33363248), yuv420p, 176x144, q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> h263) Press [q] to stop, [?] for help frame= 300 fps=0.0 q=10.0 Lsize= 234kB time=00:00:12.00 bitrate= 160.0kbits/s video:222kB audio:0kB subtitle:0 global headers:0kB muxing overhead 5.738467% File sizes for both encoded files Full search : 251158 bytes EPZS : 240002 bytes Is it right that encoded file size with epzs is smaller than that with full search?? From un1x0nly at gmail.com Thu Feb 21 11:34:53 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Thu, 21 Feb 2013 11:34:53 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: <20130220164106.GC27219@arborea> References: <20130220131606.GJ20306@arborea> <20130220164106.GC27219@arborea> Message-ID: On Wed, Feb 20, 2013 at 5:41 PM, Stefano Sabatini wrote: > On date Wednesday 2013-02-20 15:17:28 +0100, ?ygimantas Bruzgys wrote: >> zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec >> h264 -acodec mp3 -segment_time 2 -map 0 -reset_timestamps 0 >> out%03d.mp4 > > What about using -reset_timestamps 1? Ah, sorry. My mistake. Changing it to 1, did not save the situation. Here is the output: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec h264 -acodec mp3 -segment_time 2 -map 0 -reset_timestamps 1 out%03d.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'small.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.61.100 Duration: 00:01:00.00, start: 0.000000, bitrate: 1361 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1239 kb/s, 24 fps, 24 tbr, 16k tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s Metadata: handler_name : SoundHandler [libx264 @ 0x351df80] using SAR=1/1 [libx264 @ 0x351df80] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x351df80] profile High, level 4.0 [libx264 @ 0x351df80] 264 - core 120 r2151 a3f4407 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - 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 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, segment, to 'out%03d.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Stream #0:0(und): Video: h264, yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=-1--1, 90k tbn, 24 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3, 44100 Hz, stereo, fltp Metadata: handler_name : SoundHandler Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (aac -> libmp3lame) Press [q] to stop, [?] for help frame= 1440 fps=8.8 q=28.0 Lsize=N/A time=00:01:00.00 bitrate=N/A dup=16 drop=0 video:11561kB audio:938kB subtitle:0 global headers:0kB muxing overhead -100.000172% [libx264 @ 0x351df80] frame I:16 Avg QP:15.08 size: 37096 [libx264 @ 0x351df80] frame P:1016 Avg QP:20.03 size: 9881 [libx264 @ 0x351df80] frame B:408 Avg QP:23.28 size: 2954 [libx264 @ 0x351df80] consecutive B-frames: 59.2% 5.7% 9.8% 25.3% [libx264 @ 0x351df80] mb I I16..4: 42.5% 47.1% 10.4% [libx264 @ 0x351df80] mb P I16..4: 7.7% 10.0% 0.3% P16..4: 23.7% 4.5% 1.2% 0.0% 0.0% skip:52.5% [libx264 @ 0x351df80] mb B I16..4: 0.7% 0.7% 0.0% B16..8: 26.8% 1.1% 0.1% direct: 0.4% skip:70.3% L0:51.2% L1:47.9% BI: 0.9% [libx264 @ 0x351df80] 8x8 transform intra:54.6% inter:86.7% [libx264 @ 0x351df80] coded y,uvDC,uvAC intra: 22.8% 29.1% 2.1% inter: 4.7% 6.6% 0.0% [libx264 @ 0x351df80] i16 v,h,dc,p: 32% 30% 16% 22% [libx264 @ 0x351df80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 22% 34% 3% 3% 3% 4% 3% 3% [libx264 @ 0x351df80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 21% 19% 5% 6% 6% 5% 4% 3% [libx264 @ 0x351df80] i8c dc,h,v,p: 72% 14% 13% 2% [libx264 @ 0x351df80] Weighted P-Frames: Y:0.4% UV:0.2% [libx264 @ 0x351df80] ref P L0: 78.4% 8.7% 9.7% 3.2% 0.0% [libx264 @ 0x351df80] ref B L0: 90.6% 8.1% 1.2% [libx264 @ 0x351df80] ref B L1: 95.0% 5.0% [libx264 @ 0x351df80] kb/s:1578.34 zybru at hp-6530b-bs:~/Desktop$ head -n 2 concat.lst; tail -n 2 concat.lst file 'out000.mp4' file 'out001.mp4' file 'out012.mp4' file 'out013.mp4' zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -c copy joined.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x2b61fc0] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: 00:00:00.03, start: 0.000000, bitrate: 76 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1371 kb/s, 21.52 fps, 24 tbr, 12288 tbn, 48 tbc Stream #0:1: Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 126 kb/s File 'joined.mp4' already exists. Overwrite ? [y/N] y Output #0, mp4, to 'joined.mp4': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], q=2-31, 1371 kb/s, 21.52 fps, 12288 tbn, 12288 tbc Stream #0:1: Audio: mp3 (i[0][0][0] / 0x0069), 44100 Hz, stereo, 126 kb/s Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 1440 fps=0.0 q=-1.0 Lsize= 12561kB time=00:01:03.50 bitrate=1620.2kbits/s video:11561kB audio:938kB subtitle:0 global headers:0kB muxing overhead 0.494472% zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 ffprobe version N-50129-g951d39f Copyright (c) 2007-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:03.51, start: 0.000000, bitrate: 1620 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x818 [SAR 1:1 DAR 960:409], 1491 kb/s, 22.69 fps, 24 tbr, 12288 tbn, 48 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 128 kb/s Metadata: handler_name : SoundHandler ?ygimantas From 23liam at googlemail.com Thu Feb 21 12:07:24 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Thu, 21 Feb 2013 11:07:24 +0000 Subject: [FFmpeg-user] Optimized Conversion Assistance [willing to pay] In-Reply-To: References: Message-ID: >We need to convert any upload to the most optimized mp4, webm and ogv for >an html5 player. All browsers that can support OGV can support WEBM (and vice versa), so using both is redundant. I'd suggest reading this blog post (or any of the other dozens of guides scattered around the internet), it will give you an idea of what options to use: http://evilsoup.wordpress.com/2013/02/10/general-ffmpeg-encoding-guide-2/ OGV=Theora video and Vorbis audio WEBM=VP8 video and Vorbis audio MP4=H.264 video and AAC audio As the blogpost notes, the -crf option for libvpx is currently broken (a known bug - https://ffmpeg.org/trac/ffmpeg/ticket/2136), so you'll have to set a target bit rate. For 480p video, around 500-600 kbit/s should give acceptable quality. Also, I'd recommend using two-pass encoding for VP8 video, if you care about quality. There are a few more things to consider for MP4. See these guides: https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide https://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide (if you can, I'd suggest compiling your own version of ffmpeg with libfdk_aac enabled - for licensing reasons you won't find it in any of the packaged versions online) For HTML5 video, you will probably want to use -movflags faststart for the MP4 files. From 23liam at googlemail.com Thu Feb 21 12:09:56 2013 From: 23liam at googlemail.com (Liam Condron-Farnos) Date: Thu, 21 Feb 2013 11:09:56 +0000 Subject: [FFmpeg-user] how to set VideoBitrate for ffserver In-Reply-To: References: Message-ID: >how much videobitrate is reasonable when videosize is 640x480 30fps? Depends on the video codec. Generally speaking, you should use a quality-based (VBR) approach, rather than setting a bit rate. From soho123.2012 at gmail.com Thu Feb 21 12:19:27 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 21 Feb 2013 19:19:27 +0800 Subject: [FFmpeg-user] how to set VideoBitrate for ffserver In-Reply-To: References: Message-ID: > Depends on the video codec. Generally speaking, you should use a > quality-based (VBR) approach, rather than setting a bit rate. What is VBR approach? in my application currently: format :mjpeg video codec :mjpeg then how about the video setting in ffserver.conf? below is mime currently: Feed feed1.ffm Format mjpeg VideoSize 640x480 VideoFrameRate 30 VideoBitRate 256 VideoQMin 1 VideoQMax 10 Noaudio is anything un-reasonable? From ptfigg at outlook.com Thu Feb 21 15:41:23 2013 From: ptfigg at outlook.com (Paul Figgiani) Date: Thu, 21 Feb 2013 09:41:23 -0500 Subject: [FFmpeg-user] EBU R128 True Peak? Message-ID: Any plans to add the True Peak value of the source file to the EBU R128 analysis results? Thanks. From john_q61 at yahoo.com Thu Feb 21 15:57:58 2013 From: john_q61 at yahoo.com (John Q) Date: Thu, 21 Feb 2013 06:57:58 -0800 (PST) Subject: [FFmpeg-user] errors when decoding H.264 frames Message-ID: <1361458678.5699.YahooMailClassic@web122106.mail.ne1.yahoo.com> Hi I am getting the following errors when decoding H.264 frames received from the remote end of a H.264 based SIP video call. Appreciate any help in understanding there errors. Best Regards John non-existing PPS 0 referenced decode_slice_header error non-existing PPS 0 referenced decode_slice_header error no frame! non-existing PPS 0 referenced decode_slice_header error non-existing PPS 0 referenced decode_slice_header error no frame! From ubitux at gmail.com Thu Feb 21 18:33:11 2013 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 21 Feb 2013 18:33:11 +0100 Subject: [FFmpeg-user] EBU R128 True Peak? In-Reply-To: References: Message-ID: <20130221173311.GJ12274@leki> On Thu, Feb 21, 2013 at 09:41:23AM -0500, Paul Figgiani wrote: > Any plans to add the True Peak value of the source file to the EBU R128 analysis results? You're far from the first to request this feature... I guess I'll have to do it at one point. If you want to put more pressure on me, you can open a trac ticket so I have no other choice to do it. Note that I currently have no idea what amount of work it will require (might be trivial or require a complex implementation), so any hints on the matter in the ticket will help the lazy me. Regards, -- 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 dustin at webfishcreative.com Thu Feb 21 18:39:16 2013 From: dustin at webfishcreative.com (Web Fish Creative) Date: Thu, 21 Feb 2013 11:39:16 -0600 Subject: [FFmpeg-user] Optimized Conversion Assistance [willing to pay] In-Reply-To: References: Message-ID: Thank you very much for your quick response. I have read dozens of articles on best practices, but also know in a production environment a good consultant is never overrated. If you are available through gtalk or some medium I would like a brief conversation with someone and would like to put 50 bucks worth of time in someones pocket! You info was very helpful! Regards, Dustin Ladd Owner Web Fish Creative? Design | Development | Branding | Print http://webfishcreative.com (832) 800-4998 --------------------------------- *Confidentiality Warning* This e-mail contains information intended only for the use of the individual or entity named above. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient, any dissemination, publication or copying of this e-mail is strictly prohibited. On Thu, Feb 21, 2013 at 5:07 AM, Liam Condron-Farnos <23liam at googlemail.com>wrote: > >We need to convert any upload to the most optimized mp4, webm and ogv for > >an html5 player. > > All browsers that can support OGV can support WEBM (and vice versa), > so using both is redundant. > > I'd suggest reading this blog post (or any of the other dozens of > guides scattered around the internet), it will give you an idea of > what options to use: > > http://evilsoup.wordpress.com/2013/02/10/general-ffmpeg-encoding-guide-2/ > > OGV=Theora video and Vorbis audio > WEBM=VP8 video and Vorbis audio > MP4=H.264 video and AAC audio > > As the blogpost notes, the -crf option for libvpx is currently broken > (a known bug - https://ffmpeg.org/trac/ffmpeg/ticket/2136), so you'll > have to set a target bit rate. For 480p video, around 500-600 kbit/s > should give acceptable quality. Also, I'd recommend using two-pass > encoding for VP8 video, if you care about quality. > > There are a few more things to consider for MP4. See these guides: > > https://ffmpeg.org/trac/ffmpeg/wiki/x264EncodingGuide > https://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide > > (if you can, I'd suggest compiling your own version of ffmpeg with > libfdk_aac enabled - for licensing reasons you won't find it in any of > the packaged versions online) > > For HTML5 video, you will probably want to use -movflags faststart for > the MP4 files. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From dustin at webfishcreative.com Thu Feb 21 18:42:12 2013 From: dustin at webfishcreative.com (Web Fish Creative) Date: Thu, 21 Feb 2013 11:42:12 -0600 Subject: [FFmpeg-user] Optimized Conversion Assistance [willing to pay] In-Reply-To: References: Message-ID: this is also my current build: ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 20 2013 18:49:16 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4) configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopenco re-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --di sable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --e nable-avfilter --enable-pthreads --extra-cflags=-fPIC 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 Regards, Dustin Ladd Owner Web Fish Creative? Design | Development | Branding | Print http://webfishcreative.com (832) 800-4998 From jh.moon.cs at yonsei.ac.kr Thu Feb 21 10:05:06 2013 From: jh.moon.cs at yonsei.ac.kr (=?UTF-8?B?66y47KSA7ZiV?=) Date: Thu, 21 Feb 2013 18:05:06 +0900 (KST) Subject: [FFmpeg-user] =?utf-8?q?_File_sizes_for_full_search_and_epzs_moti?= =?utf-8?q?on_estimation_algorithms?= Message-ID: <5125e6583f91_@_imoxion.com> Following image is console output when encoding with full search File sizes for both encoded files Full search : 251158 bytes EPZS : 240002 bytes Is it right that encoded file size with epzs is smaller than that with full search?? From mark.himsley at gmail.com Thu Feb 21 21:26:46 2013 From: mark.himsley at gmail.com (Mark Himsley) Date: Thu, 21 Feb 2013 20:26:46 +0000 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation In-Reply-To: References: Message-ID: On 20 Feb 2013 20:00, "ArnoB" wrote: > > Hello! > > I'm trying to convert a prores4444 quicktime with gamma 2.2 to > a dpx sequence with the following command: > > % ffmpeg -i prores4444g2.2_v01.mov prores.%02d.dpx > > In the resulting DPX sequence I have the following errors: > -the DPXs are tagged as being sRGB. manually switching my program's > reader to 2.2 makes them look ok; > > -there is a colourshift of around 120?. My prores file contains a colourwheel > so it's easy to spot. green becomes blue, red becomes green and blue > becomes red; -also there's a translation in the X of +277 pixels. the missing part > is wrapped around and visible on the other side: What you're saying is that FFmpeg says it's outputting rgb but other software is interpreting it as bgr. Have you tried asking FFmpeg for a bgr format? -- Mark From onemda at gmail.com Thu Feb 21 21:43:15 2013 From: onemda at gmail.com (Paul B Mahol) Date: Thu, 21 Feb 2013 20:43:15 +0000 Subject: [FFmpeg-user] prores4444 to dpx: colourshift & translation In-Reply-To: References: Message-ID: On 2/21/13, Mark Himsley wrote: > On 20 Feb 2013 20:00, "ArnoB" wrote: >> >> Hello! >> >> I'm trying to convert a prores4444 quicktime with gamma 2.2 to >> a dpx sequence with the following command: >> >> % ffmpeg -i prores4444g2.2_v01.mov prores.%02d.dpx >> >> In the resulting DPX sequence I have the following errors: >> -the DPXs are tagged as being sRGB. manually switching my program's >> reader to 2.2 makes them look ok; >> >> -there is a colourshift of around 120DEG. My prores file contains a > colourwheel >> so it's easy to spot. green becomes blue, red becomes green and blue >> becomes red; > -also there's a translation in the X of +277 pixels. the missing part >> is wrapped around and visible on the other side: > > What you're saying is that FFmpeg says it's outputting rgb but other > software is interpreting it as bgr. > > Have you tried asking FFmpeg for a bgr format? > That is first info. Looking at code both encoder and decoder support only rgb (no bgr at all). > > -- > > Mark > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stefasab at gmail.com Thu Feb 21 22:35:36 2013 From: stefasab at gmail.com (Stefano Sabatini) Date: Thu, 21 Feb 2013 22:35:36 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: <20130220131606.GJ20306@arborea> Message-ID: <20130221213536.GA31839@arborea> On date Wednesday 2013-02-20 15:37:24 +0100, ?ygimantas Bruzgys wrote: > On Wed, Feb 20, 2013 at 3:17 PM, ?ygimantas Bruzgys wrote: > > On Wed, Feb 20, 2013 at 2:16 PM, Stefano Sabatini wrote: > >>> zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i small.mp4 -f segment -vcodec > >>> h264 -acodec mp3 -segment_time 2 -map 0 out%03d.mp4 > >> > >> Did you try with -reset_timestamps 1? > > > > Let me try it now! (just fyi, I've recompiled ffmpeg today from git head) > > > What I've else noticed today is that: > > - if you demux the video and segment it with '-f segment' with output > format .h264; > - concatenate all h264s to a single h264; > - mux h264 with audio back to mp4 file > > despite couple of errors during concatenation, everything works > smoothly and as it should. This makes me draw a conclusion that there > is some kind of a bug in segmenting (or concatenating) mp4 containers. > > The output was a bit big, so I put it on gist: > https://gist.github.com/anonymous/52d77ac231c1240ec551 Bug confirmed. ffmpeg -f lavfi -i testsrc=n=2 -f segment -codec:v h264 -bf:v 0 -segment_time 2 -map 0 -reset_timestamps 1 -segment_list test.cat -t 60 test-%03d.mp4 ffmpeg -f concat -i test.cat -c copy -y test-joined.mp4 ffprobe -show_entries packet=pts_time test-joined.mp4 -of compact [...] packet|pts_time=9.840000 packet|pts_time=9.880000 packet|pts_time=9.920000 packet|pts_time=9.960000 packet|pts_time=10.242031 packet|pts_time=10.282031 packet|pts_time=10.322031 [...] The bug seems located in the concat code. From nicolas.george at normalesup.org Thu Feb 21 23:02:14 2013 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 21 Feb 2013 23:02:14 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: <20130221213536.GA31839@arborea> References: <20130220131606.GJ20306@arborea> <20130221213536.GA31839@arborea> Message-ID: <20130221220214.GA5968@phare.normalesup.org> Le tridi 3 vent?se, an CCXXI, Stefano Sabatini a ?crit?: > Bug confirmed. > > ffmpeg -f lavfi -i testsrc=n=2 -f segment -codec:v h264 -bf:v 0 -segment_time 2 -map 0 -reset_timestamps 1 -segment_list test.cat -t 60 test-%03d.mp4 > ffmpeg -f concat -i test.cat -c copy -y test-joined.mp4 > ffprobe -show_entries packet=pts_time test-joined.mp4 -of compact > [...] > packet|pts_time=9.840000 > packet|pts_time=9.880000 > packet|pts_time=9.920000 > packet|pts_time=9.960000 > packet|pts_time=10.242031 > packet|pts_time=10.282031 > packet|pts_time=10.322031 > [...] > > The bug seems located in the concat code. ffprobe -show_format -show_entries format=duration test-000.mp4 [FORMAT] duration=10.242000 The concat demuxer is using that info to compute the time delta for each file, and it is obviously wrong (it should be exactly 10). The same phenomenon happens, with different values, with Matroska instead of MP4 as segment format, therefore I suspect something wrong in the segment demuxer. The duration directive in the concat script could be used to override the incorrect information, but it is not in the official repository yet. Review of the following patches: http://ffmpeg.org/pipermail/ffmpeg-devel/2013-February/139020.html http://ffmpeg.org/pipermail/ffmpeg-devel/2013-February/139021.html would speed inclusion a bit. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From jh.moon.cs at yonsei.ac.kr Fri Feb 22 06:09:16 2013 From: jh.moon.cs at yonsei.ac.kr (=?UTF-8?B?66y47KSA7ZiV?=) Date: Fri, 22 Feb 2013 14:09:16 +0900 (KST) Subject: [FFmpeg-user] =?utf-8?q?File_sizes_for_full_search_and_epzs_motio?= =?utf-8?q?n_estimation_algorithms?= Message-ID: <512700663fec_@_imoxion.com> Full search encoding console output : mjh at ubuntu:~/ffmpeg-1.1.1$ ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 -dia_size 1025 full_foreman_dia1025.avi ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 4 2013 01:43:31 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --disable-yasm 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 [rawvideo @ 0xab00120] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'foreman_qcif.yuv': Duration: 00:00:12.00, start: 0.000000, bitrate: 7603 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144, 7603 kb/s, 25 tbr, 25 tbn, 25 tbc Output #0, avi, to 'full_foreman_dia1025.avi': Metadata: ISFT : Lavf54.59.106 Stream #0:0: Video: h263 (H263 / 0x33363248), yuv420p, 176x144, q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> h263) Press [q] to stop, [?] for help frame= 300 fps=0.0 q=10.0 Lsize= 245kB time=00:00:12.00 bitrate= 167.4kbits/s video:233kB audio:0kB subtitle:0 global headers:0kB muxing overhead 5.471404% epzs encoding console output : mjh at ubuntu:~/ffmpeg-1.1.1$ ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 epzs_foreman.avi ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 4 2013 01:43:31 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) configuration: --disable-yasm 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 [rawvideo @ 0x9fac0a0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'foreman_qcif.yuv': Duration: 00:00:12.00, start: 0.000000, bitrate: 7603 kb/s Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 176x144, 7603 kb/s, 25 tbr, 25 tbn, 25 tbc Output #0, avi, to 'epzs_foreman.avi': Metadata: ISFT : Lavf54.59.106 Stream #0:0: Video: h263 (H263 / 0x33363248), yuv420p, 176x144, q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> h263) Press [q] to stop, [?] for help frame= 300 fps=0.0 q=10.0 Lsize= 234kB time=00:00:12.00 bitrate= 160.0kbits/s video:222kB audio:0kB subtitle:0 global headers:0kB muxing overhead 5.738467% File sizes for both encoded files Full search : 251158 bytes EPZS : 240002 bytes Is it right that encoded file size with epzs is smaller than that with full search?? From aritrim at gmail.com Fri Feb 22 08:15:43 2013 From: aritrim at gmail.com (Aritrim Basu) Date: Fri, 22 Feb 2013 12:45:43 +0530 Subject: [FFmpeg-user] FFMpeg built with libavfilter 1.46.0 watermark support Message-ID: I am running a FFMpeg build with libavfilter 1.46.0. I do the vf switch for video filters. However, I am unable to watermark a video with a PNG file. The latest FFMpeg build carries libavfilter 3.37. My question is does 1.46.0 have the watermark support? Am I missing on the syntax? I am using ffmpeg -i inputvideo.avi -vf "movie=logo.png [watermark]; [in][watermark] overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2 [out]" outputvideo.flv Thanks and Regards, Aritrim From soho123.2012 at gmail.com Fri Feb 22 09:06:44 2013 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 22 Feb 2013 16:06:44 +0800 Subject: [FFmpeg-user] system freeze when ffmpeg , ffserver and vlc remote client running simultaneously In-Reply-To: References: Message-ID: > You will have to find out which application freezes > and use gdb to find out where it freezes. it seems can not get gdb log when the system freeze. Even I use JTAG embedded ICE to debug, the cpu did not respond any request from JTAG Embedded ICE. No any request can be finished when the system is freeze. but If I modify the frame rate from 30fps to 15fps, it seems more stable. And I take the observation. the data rate is light when the frame rate is 15fps. using ethernet to test: In mjpeg 30fps, data rate is about 22Mbps, in mjpeg 15fps, data rate is about 10.5Mbps If high data rate will cause system not stable, do you have idea where I can check? From cehoyos at ag.or.at Fri Feb 22 10:21:10 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 22 Feb 2013 09:21:10 +0000 (UTC) Subject: [FFmpeg-user] FFMpeg built with libavfilter 1.46.0 watermark support References: Message-ID: Aritrim Basu gmail.com> writes: > I am running a FFMpeg build with libavfilter 1.46.0. This is too old for support, please update to current git head. Carl Eugen From un1x0nly at gmail.com Fri Feb 22 10:33:40 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Fri, 22 Feb 2013 10:33:40 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: <20130221220214.GA5968@phare.normalesup.org> References: <20130220131606.GJ20306@arborea> <20130221213536.GA31839@arborea> <20130221220214.GA5968@phare.normalesup.org> Message-ID: On Thu, Feb 21, 2013 at 11:02 PM, Nicolas George wrote: > Le tridi 3 vent?se, an CCXXI, Stefano Sabatini a ?crit : >> Bug confirmed. >> The bug seems located in the concat code. > The duration directive in the concat script could be used to override the > incorrect information, but it is not in the official repository yet. Review > of the following patches: > > http://ffmpeg.org/pipermail/ffmpeg-devel/2013-February/139020.html > http://ffmpeg.org/pipermail/ffmpeg-devel/2013-February/139021.html > > would speed inclusion a bit. Is there a ticket created (so I could track the process)? ?ygimantas Bruzgys From un1x0nly at gmail.com Fri Feb 22 11:32:24 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Fri, 22 Feb 2013 11:32:24 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: <20130220131606.GJ20306@arborea> <20130221213536.GA31839@arborea> <20130221220214.GA5968@phare.normalesup.org> Message-ID: I've also tried to segment and then concatenate avi file with unpleasable results. Audio plays smoothly, but video get's stuck for couple of seconds, every couple of seconds. Here's output: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i run-mpeg4-mp3.avi -f segment -c copy -segment_time 3 -segment_list concat.lst -map 0:0 out%03d.avi ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, avi, from 'run-mpeg4-mp4.avi': Metadata: encoder : Lavf54.63.100 Duration: 00:01:20.28, start: 0.000000, bitrate: 568 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s Output #0, segment, to 'out%03d.avi': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 2006 fps=0.0 q=-1.0 Lsize=N/A time=00:01:20.24 bitrate=N/A video:4176kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000514% zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i run-mpeg4-mp3.avi -c copy -vn -map 0:1 audio.mp3 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, avi, from 'run-mpeg4-mp3.avi': Metadata: encoder : Lavf54.63.100 Duration: 00:01:20.28, start: 0.000000, bitrate: 568 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s Output #0, mp3, to 'audio.mp3': Metadata: TSSE : Lavf54.63.100 Stream #0:0: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, 128 kb/s Stream mapping: Stream #0:1 -> #0:0 (copy) Press [q] to stop, [?] for help size= 1255kB time=00:01:20.28 bitrate= 128.0kbits/s video:0kB audio:1254kB subtitle:0 global headers:0kB muxing overhead 0.032620% zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -c copy out.avi ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x3123fc0] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Output #0, avi, to 'out.avi': Metadata: ISFT : Lavf54.63.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 2006 fps=0.0 q=-1.0 Lsize= 4842kB time=00:18:59.04 bitrate= 34.8kbits/s video:4168kB audio:0kB subtitle:0 global headers:0kB muxing overhead 16.172985% zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i out.avi -i audio.mp3 -c copy joined.avi ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, avi, from 'out.avi': Metadata: encoder : Lavf54.63.100 Duration: 00:18:59.04, start: 0.000000, bitrate: 34 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 tbr, 25 tbn, 25 tbc [mp3 @ 0x2ee7fa0] max_analyze_duration 5000000 reached at 5016000 microseconds Input #1, mp3, from 'audio.mp3': Metadata: encoder : Lavf54.63.100 Duration: 00:01:20.28, start: 0.000000, bitrate: 128 kb/s Stream #1:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s Output #0, avi, to 'joined.avi': Metadata: ISFT : Lavf54.63.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 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 frame= 2006 fps=1511 q=-1.0 Lsize= 6179kB time=00:18:59.04 bitrate= 44.4kbits/s video:4168kB audio:1254kB subtitle:0 global headers:0kB muxing overhead 13.953810% zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.avi ffprobe version N-50129-g951d39f Copyright (c) 2007-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, avi, from 'joined.avi': Metadata: encoder : Lavf54.63.100 Duration: 00:18:59.04, start: 0.000000, bitrate: 44 kb/s Stream #0:0: Video: mpeg4 (Simple Profile) (FMP4 / 0x34504D46), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s ?ygimantas Bruzgys From michaelni at gmx.at Fri Feb 22 12:00:01 2013 From: michaelni at gmx.at (Michael Niedermayer) Date: Fri, 22 Feb 2013 12:00:01 +0100 Subject: [FFmpeg-user] File sizes for full search, epzs, and other motion estimation algorithms In-Reply-To: <512479d93fe6_@_imoxion.com> References: <512479d93fe6_@_imoxion.com> Message-ID: <20130222110001.GD10665@kiste2> On Wed, Feb 20, 2013 at 04:07:39PM +0900, ??? wrote: > I measured file sizes after encoding with H.263 codec, changing motion estimation algorithms > > I fixed quantization value 10, GOP size 10 in my experiments. > > > Followings are commands that I used > > > full search > > : ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 -dia_size 1285 -qmin 10 -qmax 10 full_foreman_dia1285.avi > > epzs > > : ffmpeg -s qcif -i foreman_qcif.yuv -vcodec h263 -g 10 -q 10 -qmin 10 -qmax 10 epzs_foreman.avi > > > As I know, encoding with full search takes the longest time but has the smallest file size. > > However, encoding with epzs takes shorter time than encoding with full search > > and encoded file size with epzs is smaller than encoded file size with full search. > > Also psnr with epzs is almost same as psnr with full search. > > > Please let me know anything about this result.... Yes, EPZS is better [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws. -- Plato -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From chris-v at moving-picture.com Fri Feb 22 12:50:48 2013 From: chris-v at moving-picture.com (Chris Vincze) Date: Fri, 22 Feb 2013 11:50:48 +0000 Subject: [FFmpeg-user] last frame missing from mpeg2 and mpeg1 encodes Message-ID: <2A326DB2FB866B4C98676159D8A1300162BF63F9@LNDWSMBX01.ad.mpc.local> Hi there, I'm missing the last frame on all my mpeg-1 and mpeg-2 encodes. I'm using a 1000 frame test quicktime as a source with frame numbers as the only image so it's really easy to see the missing frame. The console output looks like it is reaching frame 1000, but the output is too short. (reading the resulting file back in with ffprobe shows a shorter than expected duration). Is there something wrong with my command line? I've tried the 1000 frame source as uncompressed 8 bit, and ProRes to both MPEG-1 and MPEG-2. Below is the output from the MPEG 2 encode. Many thanks for your help Chris ffmpeg -i '1000_frames_Uncomp8bit.mov' -r 25.0 -vf 'scale=720:576' -c:v mpeg2video -pix_fmt yuv420p -b:v 6M -c:a mp2 -b:a 192k -r:a 48000 -y 'MPEG-2_test.mpg' ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 18 2013 20:45:30 with gcc 4.0.1 (GCC) (Apple Inc. build 5493) configuration: --prefix=/software/ffmpeg/1.1/macos.leopard.i386 --enable-shared --enable-pic --enable-gpl --enable-version3 --enable-nonfree --disable-doc --enable-postproc --enable-avfilter --enable-pthreads --enable-runtime-cpudetect --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libspeex --enable-libtheora --enable-libopenjpeg --extra-ldflags=-L/software/x264/2013.01.08/macos.leopard.i386/lib --extra-ldflags=-L/software/xvidcore/1.3.2/macos.leopard.i386/lib --extra-ldflags=-L/software/xiph.org/2011.09.11/macos.leopard.i386/lib --extra-ldflags=-L/software/openjpeg/1.5.1/macos.leopard.i386/lib --extra-ldflags=-L/software/ffmpeg/1.1/macos.leopard.i386/lib --extra-ldflags='-Wl,-rpath,/software/xiph.org/2011.09.11/macos.leopard.i386/lib' --extra-cflags=-I/software/x264/2013.01.08/macos.leopard.i386/include --extra-cflags=-I/software/xvidcore/1.3.2/macos.leopard.i386/include --extra-cflags=-I/software/xiph.org/2011.09.11/macos.leopard.i386/include --extra-cflags=-I/software/openjpeg/1.5.1/macos 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 '1000_frames_Uncomp8bit.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-22 11:05:51 timecode : 00:00:00:00 Duration: 00:00:40.00, start: 0.000000, bitrate: 58983 kb/s Stream #0:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422, 512x288, 58982 kb/s, SAR 1000:1000 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc Metadata: creation_time : 2013-02-22 11:05:51 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-02-22 11:06:06 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 [mpeg @ 0x1834c20] VBV buffer size not set, muxing may fail Output #0, mpeg, to '.MPEG-2_test.mpg': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:00:00:00 encoder : Lavf54.59.106 Stream #0:0(eng): Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2013-02-22 11:05:51 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> mpeg2video) Press [q] to stop, [?] for help frame= 75 fps=0.0 q=2.0 size= 268kB time=00:00:02.92 bitrate= 751.9kbits/s frame= 152 fps=151 q=2.0 size= 556kB time=00:00:06.00 bitrate= 759.1kbits/s frame= 230 fps=152 q=1.6 size= 866kB time=00:00:09.12 bitrate= 777.9kbits/s frame= 307 fps=152 q=2.0 size= 1170kB time=00:00:12.20 bitrate= 785.6kbits/s frame= 384 fps=153 q=2.0 size= 1474kB time=00:00:15.28 bitrate= 790.2kbits/s frame= 462 fps=153 q=2.0 size= 1788kB time=00:00:18.40 bitrate= 796.0kbits/s frame= 539 fps=153 q=2.0 size= 2082kB time=00:00:21.48 bitrate= 794.0kbits/s frame= 616 fps=153 q=2.0 size= 2390kB time=00:00:24.56 bitrate= 797.2kbits/s frame= 693 fps=153 q=2.0 size= 2698kB time=00:00:27.64 bitrate= 799.6kbits/s frame= 771 fps=153 q=2.0 size= 3004kB time=00:00:30.76 bitrate= 800.0kbits/s frame= 849 fps=153 q=2.0 size= 3312kB time=00:00:33.88 bitrate= 800.8kbits/s frame= 926 fps=153 q=1.6 size= 3634kB time=00:00:36.96 bitrate= 805.5kbits/s frame= 1000 fps=153 q=2.0 Lsize= 3940kB time=00:00:39.96 bitrate= 807.7kbits/s video:3905kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.894722% ??????????????????????????????????????????????????????????????????? ffprobe MPEG-2_test.mpg ffprobe version 1.1 Copyright (c) 2007-2013 the FFmpeg developers built on Feb 18 2013 20:45:30 with gcc 4.0.1 (GCC) (Apple Inc. build 5493) configuration: --prefix=/software/ffmpeg/1.1/macos.leopard.i386 --enable-shared --enable-pic --enable-gpl --enable-version3 --enable-nonfree --disable-doc --enable-postproc --enable-avfilter --enable-pthreads --enable-runtime-cpudetect --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libspeex --enable-libtheora --enable-libopenjpeg --extra-ldflags=-L/software/x264/2013.01.08/macos.leopard.i386/lib --extra-ldflags=-L/software/xvidcore/1.3.2/macos.leopard.i386/lib --extra-ldflags=-L/software/xiph.org/2011.09.11/macos.leopard.i386/lib --extra-ldflags=-L/software/openjpeg/1.5.1/macos.leopard.i386/lib --extra-ldflags=-L/software/ffmpeg/1.1/macos.leopard.i386/lib --extra-ldflags='-Wl,-rpath,/software/xiph.org/2011.09.11/macos.leopard.i386/lib' --extra-cflags=-I/software/x264/2013.01.08/macos.leopard.i386/include --extra-cflags=-I/software/xvidcore/1.3.2/macos.leopard.i386/include --extra-cflags=-I/software/xiph.org/2011.09.11/macos.leopard.i386/include --extra-cflags=-I/software/openjpeg/1.5.1/macos 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 [mpeg @ 0x180b020] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from 'MPEG-2_test.mpg': Duration: 00:00:39.96, start: 0.540000, bitrate: 807 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc -- Chris Vincze Head of Data Lab & Stereo Content, Advertising MPC T +44 (0)20 7494 7888 E: chris-v at moving-picture.com W: www.moving-picture.com Data Rate Calculator: http://www.moving-picture.com/calculator From cehoyos at ag.or.at Fri Feb 22 13:14:36 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 22 Feb 2013 12:14:36 +0000 (UTC) Subject: [FFmpeg-user] last frame missing from mpeg2 and mpeg1 encodes References: <2A326DB2FB866B4C98676159D8A1300162BF63F9@LNDWSMBX01.ad.mpc.local> Message-ID: Chris Vincze moving-picture.com> writes: > I'm missing the last frame on all my mpeg-1 and mpeg-2 > encodes. I'm using a 1000 frame test quicktime as a > source Is this also reproducible if you use a ten-frame input file? If yes, please provide such a sample. Carl Eugen From un1x0nly at gmail.com Fri Feb 22 13:40:55 2013 From: un1x0nly at gmail.com (=?UTF-8?Q?=C5=BDygimantas_Bruzgys?=) Date: Fri, 22 Feb 2013 13:40:55 +0100 Subject: [FFmpeg-user] How to split and then concatenate a video file? In-Reply-To: References: <20130220131606.GJ20306@arborea> <20130221213536.GA31839@arborea> <20130221220214.GA5968@phare.normalesup.org> Message-ID: Another interesting observation: If you demux video to a separate mp4 file, segment it, transcode it, concatenate it, and mux it back with audio, the resulting video is flawless and plays without any issues. Here's the output: zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i run-h264-aac.mp4 -c copy -an video.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'run-h264-aac.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:20.28, start: 0.021333, bitrate: 1921 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1795 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 120 kb/s Metadata: handler_name : SoundHandler Output #0, mp4, to 'video.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 1795 kb/s, 25 fps, 12800 tbn, 12800 tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 2006 fps=0.0 q=-1.0 Lsize= 17612kB time=00:01:20.14 bitrate=1800.3kbits/s video:17588kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.137361% zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i video.mp4 -f segment -segment_time 3 -map 0 -c copy out%03d.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:20.24, start: 0.021016, bitrate: 1798 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1795 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc Metadata: handler_name : VideoHandler Output #0, segment, to 'out%03d.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 1795 kb/s, 25 fps, 90k tbn, 25 tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 2006 fps=0.0 q=-1.0 Lsize=N/A time=00:01:20.16 bitrate=N/A video:17588kB audio:0kB subtitle:0 global headers:0kB muxing overhead -100.000122% zybru at hp-6530b-bs:~/Desktop$ ffmpeg -f concat -i concat.lst -c copy int.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 [concat @ 0x33b1fc0] Estimating duration from bitrate, this may be inaccurate Input #0, concat, from 'concat.lst': Duration: 00:00:00.01, start: 0.000000, bitrate: 561 kb/s Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 360x288 [SAR 64:45 DAR 16:9], 562 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc Output #0, mp4, to 'int.mp4': Metadata: encoder : Lavf54.63.100 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=2-31, 562 kb/s, 25 fps, 12800 tbn, 12800 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 2006 fps=0.0 q=-1.0 Lsize= 2929kB time=00:01:20.12 bitrate= 299.5kbits/s video:2905kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.830710% zybru at hp-6530b-bs:~/Desktop$ ffmpeg -i run-h264-aac.mp4 -i int.mp4 -c copy -map 0:1 -map 1 joined.mp4 ffmpeg version N-50129-g951d39f Copyright (c) 2000-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'run-h264-aac.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:20.28, start: 0.021333, bitrate: 1921 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x576 [SAR 64:45 DAR 16:9], 1795 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 120 kb/s Metadata: handler_name : SoundHandler Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'int.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:20.24, start: 0.000000, bitrate: 299 kb/s Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 360x288 [SAR 64:45 DAR 16:9], 296 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc Metadata: handler_name : VideoHandler Output #0, mp4, to 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Stream #0:0(und): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 120 kb/s Metadata: handler_name : SoundHandler Stream #0:1(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 360x288 [SAR 64:45 DAR 16:9], q=2-31, 296 kb/s, 25 fps, 12800 tbn, 12800 tbc Metadata: handler_name : VideoHandler Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 2006 fps=0.0 q=-1.0 Lsize= 4144kB time=00:01:20.27 bitrate= 422.9kbits/s video:2905kB audio:1178kB subtitle:0 global headers:0kB muxing overhead 1.489719% zybru at hp-6530b-bs:~/Desktop$ ffprobe joined.mp4 ffprobe version N-50129-g951d39f Copyright (c) 2007-2013 the FFmpeg developers built on Feb 20 2013 14:47:49 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab --disable-stripping --enable-debug=3 --extra-cflags=-gstabs+ --disable-optimizations libavutil 52. 17.102 / 52. 17.102 libavcodec 54. 92.100 / 54. 92.100 libavformat 54. 63.100 / 54. 63.100 libavdevice 54. 3.103 / 54. 3.103 libavfilter 3. 38.103 / 3. 38.103 libswscale 2. 2.100 / 2. 2.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'joined.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf54.63.100 Duration: 00:01:20.30, start: 0.000000, bitrate: 422 kb/s Stream #0:0(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 120 kb/s Metadata: handler_name : SoundHandler Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 360x288 [SAR 64:45 DAR 16:9], 296 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc Metadata: handler_name : VideoHandler ?ygimantas Bruzgys From chris-v at moving-picture.com Fri Feb 22 13:43:11 2013 From: chris-v at moving-picture.com (Chris Vincze) Date: Fri, 22 Feb 2013 12:43:11 +0000 Subject: [FFmpeg-user] last frame missing from mpeg2 and mpeg1 encodes In-Reply-To: References: <2A326DB2FB866B4C98676159D8A1300162BF63F9@LNDWSMBX01.ad.mpc.local>, Message-ID: <2A326DB2FB866B4C98676159D8A1300162BF6964@LNDWSMBX01.ad.mpc.local> > Is this also reproducible if you use a ten-frame input file? > If yes, please provide such a sample. With a ten-frame input I'm getting the right length, but a green bar over the end frame. With a 100 frame input i'm getting the same result as with 1000 frames, one missing frame, a 99 frame output. I'm enclosing both here, with their outputs: ftp://ftp6.moving-picture.com/private/ffmpeg/ The console from the outputs are below. Thanks chris TEN FRAME: ffmpeg -i ten_frame.mov' -r 25.0 -vf 'scale=312:176, pad=320:176:4.0:0' -c:v mpeg1video -pix_fmt yuv420p -q:v 1 -c:a mp2 -b:a 192k -r:a 48000 -y 'ten_frame.mpg' ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 18 2013 20:45:30 with gcc 4.0.1 (GCC) (Apple Inc. build 5493) configuration: --prefix=/software/ffmpeg/1.1/macos.leopard.i386 --enable-shared --enable-pic --enable-gpl --enable-version3 --enable-nonfree --disable-doc --enable-postproc --enable-avfilter --enable-pthreads --enable-runtime-cpudetect --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libspeex --enable-libtheora --enable-libopenjpeg --extra-ldflags=-L/software/x264/2013.01.08/macos.leopard.i386/lib --extra-ldflags=-L/software/xvidcore/1.3.2/macos.leopard.i386/lib --extra-ldflags=-L/software/xiph.org/2011.09.11/macos.leopard.i386/lib --extra-ldflags=-L/software/openjpeg/1.5.1/macos.leopard.i386/lib --extra-ldflags=-L/software/ffmpeg/1.1/macos.leopard.i386/lib --extra-ldflags='-Wl,-rpath,/software/xiph.org/2011.09.11/macos.leopard.i386/lib' --extra-cflags=-I/software/x264/2013.01.08/macos.leopard.i386/include --extra-cflags=-I/software/xvidcore/1.3.2/macos.leopard.i386/include --extra-cflags=-I/software/xiph.org/2011.09.11/macos.leopard.i386/include --extra-cflags=-I/software/openjpeg/1.5.1/macos 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 'ten_frame.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-22 12:21:01 timecode : 00:00:00:00 Duration: 00:00:00.40, start: 0.000000, bitrate: 579 kb/s Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le, 512x288, 507 kb/s, SAR 1000:1000 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc Metadata: creation_time : 2013-02-22 12:21:01 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-02-22 12:21:05 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 [mpeg @ 0x183b220] VBV buffer size not set, muxing may fail Output #0, mpeg, to 'ten_frame.mpg': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:00:00:00 encoder : Lavf54.59.106 Stream #0:0(eng): Video: mpeg1video, yuv420p, 320x176 [SAR 352:351 DAR 640:351], q=2-31, 200 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2013-02-22 12:21:01 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> mpeg1video) Press [q] to stop, [?] for help frame= 10 fps=0.0 q=1.0 Lsize= 12kB time=00:00:00.36 bitrate= 273.1kbits/s video:10kB audio:0kB subtitle:0 global headers:0kB muxing overhead 17.995007% 100 FRAME ffmpeg -i 'hundred_frame.mov' -r 25.0 -vf 'scale=312:176, pad=320:176:4.0:0' -c:v mpeg1video -pix_fmt yuv420p -q:v 1 -c:a mp2 -b:a 192k -r:a 48000 -y 'hundred_frame.mov' ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 18 2013 20:45:30 with gcc 4.0.1 (GCC) (Apple Inc. build 5493) configuration: --prefix=/software/ffmpeg/1.1/macos.leopard.i386 --enable-shared --enable-pic --enable-gpl --enable-version3 --enable-nonfree --disable-doc --enable-postproc --enable-avfilter --enable-pthreads --enable-runtime-cpudetect --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libspeex --enable-libtheora --enable-libopenjpeg --extra-ldflags=-L/software/x264/2013.01.08/macos.leopard.i386/lib --extra-ldflags=-L/software/xvidcore/1.3.2/macos.leopard.i386/lib --extra-ldflags=-L/software/xiph.org/2011.09.11/macos.leopard.i386/lib --extra-ldflags=-L/software/openjpeg/1.5.1/macos.leopard.i386/lib --extra-ldflags=-L/software/ffmpeg/1.1/macos.leopard.i386/lib --extra-ldflags='-Wl,-rpath,/software/xiph.org/2011.09.11/macos.leopard.i386/lib' --extra-cflags=-I/software/x264/2013.01.08/macos.leopard.i386/include --extra-cflags=-I/software/xvidcore/1.3.2/macos.leopard.i386/include --extra-cflags=-I/software/xiph.org/2011.09.11/macos.leopard.i386/include --extra-cflags=-I/software/openjpeg/1.5.1/macos 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 'hundred_frame.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2013-02-22 12:26:03 timecode : 00:00:00:00 Duration: 00:00:04.00, start: 0.000000, bitrate: 689 kb/s Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le, 512x288, 679 kb/s, SAR 1000:1000 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2013-02-22 12:26:03 handler_name : Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2013-02-22 12:25:53 handler_name : Apple Alias Data Handler timecode : 00:00:00:00 [mpeg @ 0x183bc20] VBV buffer size not set, muxing may fail Output #0, mpeg, to 'hundred_frame.mpg': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt timecode : 00:00:00:00 encoder : Lavf54.59.106 Stream #0:0(eng): Video: mpeg1video, yuv420p, 320x176 [SAR 352:351 DAR 640:351], q=2-31, 200 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2013-02-22 12:26:03 handler_name : Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> mpeg1video) Press [q] to stop, [?] for help frame= 100 fps=0.0 q=1.0 Lsize= 120kB time=00:00:03.96 bitrate= 248.2kbits/s video:117kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.905092% From bouke at videotoolshed.com Fri Feb 22 14:16:39 2013 From: bouke at videotoolshed.com (Bouke (VideoToolShed)) Date: Fri, 22 Feb 2013 14:16:39 +0100 Subject: [FFmpeg-user] A bit OT, TC in WMV files. Message-ID: <004d01ce10fe$e01bf7f0$4301a8c0@hpkantoor> Got WMV files with TC baked in (and, just to make things slightly more interesting, there are TC breaks every now and then, the files are captured from tape where the tape had timecode breaks) Now i need to extract those TC's and where they jump. FFmpeg does not even see a track is there any way to do this? Tia, Bouke From cehoyos at ag.or.at Fri Feb 22 16:14:48 2013 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 22 Feb 2013 15:14:48 +0000 (UTC) Subject: [FFmpeg-user] A bit OT, TC in WMV files. References: <004d01ce10fe$e01bf7f0$4301a8c0@hpkantoor> Message-ID: Bouke (VideoToolShed videotoolshed.com> writes: > Now i need to extract those TC's and where they jump. > FFmpeg does not even see a track > is there any way to do this? Without samples, this is very unlikely to happen. Carl Eugen From Mario.Beaulieu at crim.ca Fri Feb 22 16:23:50 2013 From: Mario.Beaulieu at crim.ca (Beaulieu Mario) Date: Fri, 22 Feb 2013 10:23:50 -0500 Subject: [FFmpeg-user] ffplay question Message-ID: I would like to know how to play an image list inside a range, let say 08400.dpx to 08856.dpx. What ffplay?s option I need to specify? ffplay -f image2 ?%6d.dpx ?-s ?720x480