[FFmpeg-user] -istoffset and -vcodec copy
Jonathan Addleman
jono at redowl.ca
Sun Nov 27 22:34:33 CET 2011
On 11-11-26 10:16 PM, Carl Eugen Hoyos wrote:
> Jonathan Addleman<jono<at> redowl.ca> writes:
>
>> Hmm.. apparently not... everything I've tried was very visible. But I'm
>> new to this! I must be doing *something* wrong, since even when I tried
>> the various -vpre lossless presets, it still looked horrible...
>
> Command line and complete, uncut console output missing.
Hmm.. Maybe its just a problem with one of the other lossless presets -
I just tried the lossless_max, and is sort of worked:
ffmpeg -i F1jv6V5aYGk.mp4 -itsoffset 0.5 -i F1jv6V5aYGk.mp4 -map 0:0
-map 1:1 -vcodec libx264 -vpre lossless_max -acodec copy fixed.mp4
The output looks the same as the original, though the file is over 10x
as big, and my computer can't play it back at full speed.
With the 'veryslow' preset, the results are abysmal - nasty artifacts
everywhere. Utterly unusable.
ffmpeg -i short.mp4 -itsoffset 0.5 -i short.mp4 -map 0:0 -map 1:1
-vcodec libx264 -vpre veryslow -acodec copy fixed.mp4
The sound is at least in sync...
Here's the console output from that command:
scaph:~/bla$ ffmpeg -i short.mp4 -itsoffset 0.5 -i short.mp4 -map 0:0
-map 1:1 -vcodec libx264 -vpre veryslow -acodec copy fixed.mp4 ffmpeg
version 0.7.2-4:0.7.2-1ubuntu1, Copyright (c) 2000-2011 the Libav developers
built on Oct 2 2011 15:12:32 with gcc 4.6.1
configuration: --extra-version='4:0.7.2-1ubuntu1' --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.2.1ubuntu1+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.2.1ubuntu1+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.2-1ubuntu1'
--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.2-1ubuntu1'
--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.2-1ubuntu1'
--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.2-1ubuntu1'
--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.2-1ubuntu1'
--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. 5. 0 / 53. 5. 0
libavformat 53. 2. 0 / 53. 2. 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 'short.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2011-08-19 22:04:25
Duration: 00:03:15.06, start: 0.000000, bitrate: 430 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080, 5958
kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: aac, 44100 Hz, stereo, s16, 151 kb/s
Metadata:
creation_time : 2011-08-19 22:04:25
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'short.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2011-08-19 22:04:25
Duration: 00:03:15.06, start: 0.000000, bitrate: 430 kb/s
Stream #1.0(und): Video: h264 (High), yuv420p, 1920x1080, 5958
kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #1.1(und): Audio: aac, 44100 Hz, stereo, s16, 151 kb/s
Metadata:
creation_time : 2011-08-19 22:04:25
File 'fixed.mp4' already exists. Overwrite ? [y/N] y
[buffer @ 0x87dfec0] w:1920 h:1080 pixfmt:yuv420p
[libx264 @ 0x87dfae0] using cpu capabilities: MMX2 Cache64
[libx264 @ 0x87dfae0] profile High, level 5.1
[libx264 @ 0x87dfae0] 264 - core 116 r2042 178455c - H.264/MPEG-4 AVC
codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html -
options: cabac=1 ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=200 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, mp4, to 'fixed.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2011-08-19 22:04:25
encoder : Lavf53.2.0
Stream #0.0(und): Video: libx264, yuv420p, 1920x1080, q=0-69, 200
kb/s, 30k tbn, 29.97 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
Stream #0.1(und): Audio: libfaac, 44100 Hz, stereo, 151 kb/s
Metadata:
creation_time : 2011-08-19 22:04:25
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.1 -> #0.1
Press ctrl-c to stop encoding
[h264 @ 0x87e7100] AVC: nal size 4805564kB time=11.65 bitrate=
326.1kbits/s its/s
[h264 @ 0x87e7100] no frame!
Error while decoding stream #0.0
frame= 413 fps= 1 q=46.0 Lsize= 574kB time=13.71 bitrate= 343.0kbits/s
video:298kB audio:262kB global headers:0kB muxing overhead 2.381960%
frame I:2 Avg QP:43.47 size: 21430
[libx264 @ 0x87dfae0] frame P:383 Avg QP:47.08 size: 669
[libx264 @ 0x87dfae0] frame B:28 Avg QP:48.66 size: 208
[libx264 @ 0x87dfae0] consecutive B-frames: 89.6% 3.9% 1.5% 3.9% 1.2%
0.0% 0.0% 0.0% 0.0%
[libx264 @ 0x87dfae0] mb I I16..4: 42.2% 55.2% 2.6%
[libx264 @ 0x87dfae0] mb P I16..4: 0.6% 0.2% 0.0% P16..4: 3.7%
0.1% 0.0% 0.0% 0.0% skip:95.4%
[libx264 @ 0x87dfae0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 2.1%
0.0% 0.0% direct: 0.0% skip:97.8% L0: 5.8% L1:94.2% BI: 0.0%
[libx264 @ 0x87dfae0] final ratefactor: 42.30
[libx264 @ 0x87dfae0] 8x8 transform intra:36.4% inter:91.5%
[libx264 @ 0x87dfae0] direct mvs spatial:89.3% temporal:10.7%
[libx264 @ 0x87dfae0] coded y,uvDC,uvAC intra: 11.1% 10.7% 0.0% inter:
0.1% 0.1% 0.0%
[libx264 @ 0x87dfae0] i16 v,h,dc,p: 55% 33% 3% 9%
[libx264 @ 0x87dfae0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 11% 46% 3% 4%
4% 5% 4% 3%
[libx264 @ 0x87dfae0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 13% 5% 6% 6%
9% 9% 7% 4%
[libx264 @ 0x87dfae0] i8c dc,h,v,p: 84% 12% 3% 1%
[libx264 @ 0x87dfae0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x87dfae0] ref P L0: 73.8% 6.8% 10.3% 1.7% 1.6% 1.5% 1.6%
0.2% 0.3% 0.3% 0.3% 0.3% 0.3% 0.4% 0.4% 0.1%
[libx264 @ 0x87dfae0] ref B L0: 93.0% 3.5% 0.3% 0.0% 1.0% 0.7% 0.7%
0.0% 0.3% 0.3%
[libx264 @ 0x87dfae0] ref B L1: 90.2% 9.8%
[libx264 @ 0x87dfae0] kb/s:176.99
--
Jon-o Addleman - http://www.redowl.ca
More information about the ffmpeg-user
mailing list