|
Hi all,
I am using ffmpeg version 0.11.1 on my mac. Basically I want to be able to take XD Cam Ex.MOV's recorded at 18mbps transcode them with ffmpeg to h.264.mp4's to play on an an fms server. but whenever I do any of this transcoding with ffmpeg, I get the warning "[mpeg2video @ 0x1a2e3360] warning: first frame is no keyframe" and the audio is 6 frames or so early because the fms server won't start playing the video until it sees a keyframe. I've tried forcing a keyframe on the first frame like this: ffmpeg -i input.mov -force_key_frames 1,2,3,4,5 output.mp4 but it doesn't seem to have any effect. I know that -av seek frame and -ss command might be helpful but I don't know how to get them to create a file that starts with a keyframe. Can you help me? Thanks very much, Greg Aimo Distance Education Production Specialist Harvard University Extension School [hidden email] 617-872-5362 This version: ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 30 2012 18:48:45 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52) configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libxvid --enable-shared --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-yasm --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libvpx libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 I probed one of our input files: Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01087001.MOV': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CDes creation_time : 2008-06-06 20:25:39 Duration: 00:11:43.50, start: 0.000000, bitrate: 20349 kb/s Stream #0:0(eng): Video: mpeg2video (Main) (xdv1 / 0x31766478), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 18000 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc Metadata: creation_time : 2008-06-06 20:25:39 Stream #0:1(eng): Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, 1 channels, s32, 1152 kb/s Metadata: creation_time : 2008-06-06 20:25:39 Stream #0:2(eng): Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, 1 channels, s32, 1152 kb/s Metadata: creation_time : 2008-06-06 20:25:39 Stream #0:3(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2008-06-06 20:25:39 timecode : 00:00:07;02 Unsupported codec with id 0 for input stream 3 Greg Aimo Distance Education Production Specialist Harvard University Extension School [hidden email] 617-872-5362 _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
Gregory Aimo <gregory.aimo <at> gmail.com> writes:
> Basically I want to be able to take XD Cam Ex.MOV's > recorded at 18mbps transcode them with ffmpeg to > h.264.mp4's to play on an an fms server. but whenever > I do any of this transcoding with ffmpeg, I get the > warning "[mpeg2video @ 0x1a2e3360] warning: first frame > is no keyframe" Please provide the command line you use together with the complete, uncut console output (not version information separated from a part of the console output). And please consider testing current git head if you are a user. Carl Eugen _______________________________________________ ffmpeg-user mailing list [hidden email] http://ffmpeg.org/mailman/listinfo/ffmpeg-user |
|
Sure:
gaimo@de-dev-trans22 ~]$ ffmpeg -i 01087001.MOV test.mp4 ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jul 30 2012 18:48:45 with gcc 4.1.2 20080704 (Red Hat 4.1.2-52) configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libxvid --enable-shared --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-yasm --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libvpx libavutil 51. 54.100 / 51. 54.100 libavcodec 54. 23.100 / 54. 23.100 libavformat 54. 6.100 / 54. 6.100 libavdevice 54. 0.100 / 54. 0.100 libavfilter 2. 77.100 / 2. 77.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01087001.MOV': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CDes creation_time : 2008-06-06 20:25:39 Duration: 00:11:43.50, start: 0.000000, bitrate: 20349 kb/s Stream #0:0(eng): Video: mpeg2video (Main) (xdv1 / 0x31766478), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 18000 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc Metadata: creation_time : 2008-06-06 20:25:39 Stream #0:1(eng): Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, mono, s32, 1152 kb/s Metadata: creation_time : 2008-06-06 20:25:39 Stream #0:2(eng): Audio: pcm_s24be (lpcm / 0x6D63706C), 48000 Hz, mono, s32, 1152 kb/s Metadata: creation_time : 2008-06-06 20:25:39 Stream #0:3(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2008-06-06 20:25:39 timecode : 00:00:07;02 [buffer @ 0xad343a0] w:1280 h:720 pixfmt:yuv420p tb:1/2997 sar:1/1 sws_param:flags=2 [buffersink @ 0xad34da0] No opaque field provided [aformat @ 0xad30f40] auto-inserting filter 'auto-inserted resampler 0' between the filter 'src' and the filter 'aformat' [aresample @ 0xad71520] chl:mono fmt:s32 r:48000Hz -> chl:mono fmt:s16 r:48000Hz [libx264 @ 0xad32ac0] using SAR=1/1 [libx264 @ 0xad32ac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0xad32ac0] profile High, level 3.1 [libx264 @ 0xad32ac0] 264 - core 122 - 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 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 'test.mp4': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CDes creation_time : 2008-06-06 20:25:39 encoder : Lavf54.6.100 Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2997 tbn, 29.97 tbc Metadata: creation_time : 2008-06-06 20:25:39 Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, mono, s16, 128 kb/s Metadata: creation_time : 2008-06-06 20:25:39 Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> libx264) Stream #0:1 -> #0:1 (pcm_s24be -> libfaac) Press [q] to stop, [?] for help [mpeg2video @ 0xad3c360] warning: first frame is no keyframe frame= 23 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/sframe= 47 fps= 42 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/sframe= 53 fps= 31 q=29.0 size= 41kB time=00:00:00.13 bitrate=2514.0kbits/frame= 59 fps= 26 q=29.0 size= 61kB time=00:00:00.33 bitrate=1501.1kbits/frame= 69 fps= 24 q=29.0 size= 106kB time=00:00:00.66 bitrate=1296.1kbits/frame= 85 fps= 25 q=29.0 size= 162kB time=00:00:01.20 bitrframe= 122 fps= 28 q=29.0 sframframe= 889 fps= 25 q=29.0 size= 3018kB timefraframe= 2483 fps= 26 q=29.0 size= 10345kB time=00:frame=21084 fps= 22 q=-1.0 Lsize= 95642kB time=00:11:43.43 bitrate=1113.8kbits/s 869kB time=00:01:24.51 bitrate=1053.5kbits/s 3kbits/s = 2524 fps= 26 q=29.0 size= 10575kB time=00:01:22video:87876kB audio:7101kB global headers:0kB muxing overhead 0.700076% [libx264 @ 0xad32ac0] frame I:86 Avg QP:21.61 size: 36764 [libx264 @ 0xad32ac0] frame P:17284 Avg QP:24.22 size: 4686 [libx264 @ 0xad32ac0] frame B:3714 Avg QP:24.94 size: 1572 [libx264 @ 0xad32ac0] consecutive B-frames: 65.1% 33.9% 0.9% 0.1% [libx264 @ 0xad32ac0] mb I I16..4: 24.8% 60.9% 14.4% [libx264 @ 0xad32ac0] mb P I16..4: 1.0% 0.8% 0.4% P16..4: 28.8% 2.6% 4.3% 0.0% 0.0% skip:62.2% [libx264 @ 0xad32ac0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 25.0% 0.5% 0.1% direct: 0.2% skip:74.0% L0:30.8% L1:67.8% BI: 1.4% [libx264 @ 0xad32ac0] 8x8 transform intra:42.1% inter:86.8% [libx264 @ 0xad32ac0] coded y,uvDC,uvAC intra: 34.4% 50.6% 11.8% inter: 7.4% 12.8% 0.1% [libx264 @ 0xad32ac0] i16 v,h,dc,p: 22% 25% 8% 45% [libx264 @ 0xad32ac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 15% 42% 4% 4% 4% 4% 4% 3% [libx264 @ 0xad32ac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 15% 23% 4% 4% 6% 4% 6% 2% [libx264 @ 0xad32ac0] i8c dc,h,v,p: 55% 22% 20% 3% [libx264 @ 0xad32ac0] Weighted P-Frames: Y:12.5% UV:0.0% [libx264 @ 0xad32ac0] ref P L0: 63.8% 19.1% 12.9% 4.0% 0.3% [libx264 @ 0xad32ac0] ref B L0: 77.4% 22.3% 0.3% [libx264 @ 0xad32ac0] ref B L1: 99.5% 0.5% [libx264 @ 0xad32ac0] kb/s:1023.27 |
| Powered by Nabble | Edit this page |
