[FFmpeg-user] trouble with -vcodec copy
Arlo Leach
lists at arlomedia.com
Wed Nov 9 23:03:51 CET 2011
Hello,
> This version is very old and there is not enough manpower to support old FFmpeg
> versions.
>
> I you cannot use current git head (this is recommended), please use at least
> 0.7.7 which is ABI/API compatible with 0.6
I'm not real good at installing Linux software, but I managed to uninstall libx286 and ffmpeg from yum, reinstall manually from the latest git versions, and find a new x264 preset name to use with this version.
Unfortunately I'm still getting the same result -- no video track if I use -vcodec copy.
Actually, I've been testing with a short source video (15 seconds) and extracted sample (3-4 seconds). I just tried with a longer source video (180 seconds) and sample (30 seconds) and my sample clip has a video track, but the first six seconds of it are blank (I just see the background color of the video player). The audio plays correctly from the start, but the video doesn't begin until six seconds into the clip.
I'm pasting the updated commands and output below. Can anyone see what's wrong now?
Thanks,
-Arlo
_______________________________
Encoding command:
/usr/bin/ffmpeg -i /tmp/phpfLnsEm -f mp4 -vcodec libx264 -vpre libx264-baseline -acodec libfaac -r 15 -b 360k -ab 48k -ar 22050 -s 480x320 -t 900 184.mp4
Encoding output:
ffmpeg version N-34622-g701e534, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 9 2011 13:09:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 51. 24. 1 / 51. 24. 1
libavcodec 53. 29. 0 / 53. 29. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 47. 0 / 2. 47. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/tmp/phpfLnsEm':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2011-10-27 05:21:54
encoder : HandBrake 0.9.5 2011010300
Duration: 00:00:03.26, start: 0.000000, bitrate: 5407 kb/s
Stream #0:0(): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 5223 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2011-10-27 05:21:54
handler_name : ?Apple Alias Data Handler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 171 kb/s
Metadata:
creation_time : 2011-10-27 05:21:54
handler_name :
Please use -b:a or -b:v, -b is ambiguous
[buffer @ 0x1ac413e0] w:1024 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
[scale @ 0x1ac41680] w:1024 h:576 fmt:yuv420p -> w:480 h:320 fmt:yuv420p flags:0x4
[libx264 @ 0x1ac3a220] using SAR=32/27
[libx264 @ 0x1ac3a220] using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT
[libx264 @ 0x1ac3a220] profile High, level 2.1
[libx264 @ 0x1ac3a220] 264 - core 119 r2106 07efeb4 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 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 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=360 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '184.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2011-10-27 05:21:54
encoder : Lavf53.20.0
Stream #0:0(): Video: h264 (![0][0][0] / 0x0021), yuv420p, 480x320 [SAR 32:27 DAR 16:9], q=-1--1, 360 kb/s, 15 tbn, 15 tbc
Metadata:
creation_time : 2011-10-27 05:21:54
handler_name : ?Apple Alias Data Handler
Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 22050 Hz, stereo, s16, 48 kb/s
Metadata:
creation_time : 2011-10-27 05:21:54
handler_name :
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> libfaac)
Press [q] to stop, [?] for help
frame= 18 fps= 0 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dup=0 drop=15
frame= 38 fps= 38 q=0.0 size= 0kB time=00:00:00.00 bitrate= 0.0kbits/s dup=0 drop=35
frame= 51 fps= 29 q=-1.0 Lsize= 173kB time=00:00:03.34 bitrate= 423.3kbits/s dup=0 drop=47
video:151kB audio:19kB global headers:0kB muxing overhead 1.248162%
[libx264 @ 0x1ac3a220] frame I:1 Avg QP:25.95 size: 41153
[libx264 @ 0x1ac3a220] frame P:50 Avg QP:36.81 size: 2259
[libx264 @ 0x1ac3a220] mb I I16..4: 3.0% 20.3% 76.7%
[libx264 @ 0x1ac3a220] mb P I16..4: 0.1% 0.2% 0.2% P16..4: 27.0% 16.2% 6.6% 0.0% 0.0% skip:49.7%
[libx264 @ 0x1ac3a220] final ratefactor: 30.53
[libx264 @ 0x1ac3a220] 8x8 transform intra:23.0% inter:41.0%
[libx264 @ 0x1ac3a220] coded y,uvDC,uvAC intra: 86.7% 91.9% 81.2% inter: 15.3% 11.3% 1.8%
[libx264 @ 0x1ac3a220] i16 v,h,dc,p: 56% 17% 26% 2%
[libx264 @ 0x1ac3a220] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 10% 21% 7% 9% 8% 8% 9% 12%
[libx264 @ 0x1ac3a220] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 11% 14% 9% 9% 9% 8% 10% 9%
[libx264 @ 0x1ac3a220] i8c dc,h,v,p: 53% 14% 23% 10%
[libx264 @ 0x1ac3a220] ref P L0: 87.0% 6.7% 6.3%
[libx264 @ 0x1ac3a220] kb/s:362.60
Extract command:
/usr/bin/ffmpeg -i 184.mp4 -f mp4 -vcodec copy -acodec copy -ss 0 -t 4 -y 184_sample.mp4
Extract output:
ffmpeg version N-34622-g701e534, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 9 2011 13:09:49 with gcc 4.1.2 20080704 (Red Hat 4.1.2-51)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 51. 24. 1 / 51. 24. 1
libavcodec 53. 29. 0 / 53. 29. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 47. 0 / 2. 47. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '184.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2011-10-27 08:00:00
encoder : Lavf53.20.0
Duration: 00:00:03.40, start: 0.000000, bitrate: 416 kb/s
Stream #0:0(): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x320 [SAR 32:27 DAR 16:9], 364 kb/s, 15 fps, 15 tbr, 15 tbn, 30 tbc
Metadata:
creation_time : 2011-10-27 08:00:00
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 22050 Hz, stereo, s16, 47 kb/s
Metadata:
creation_time : 2011-10-27 08:00:00
handler_name :
Output #0, mp4, to '184_sample.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2011-10-27 08:00:00
encoder : Lavf53.20.0
Stream #0:0(): Video: h264 (![0][0][0] / 0x0021), yuv420p, 480x320 [SAR 32:27 DAR 16:9], q=2-31, 364 kb/s, 15 fps, 15 tbn, 15 tbc
Metadata:
creation_time : 2011-10-27 08:00:00
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 22050 Hz, stereo, 47 kb/s
Metadata:
creation_time : 2011-10-27 08:00:00
handler_name :
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 51 fps= 0 q=-1.0 Lsize= 173kB time=00:00:03.34 bitrate= 423.3kbits/s
video:151kB audio:19kB global headers:0kB muxing overhead 1.273083%
_______________________________
Arlo Leach
773.769.6106
http://arlomedia.com
More information about the ffmpeg-user
mailing list