Testing ffmpeg cropping with a 13min clip
Encode 3 versions:
a. -croptop 350 then -s
b. -s then -croptop 350
c. no crop
Results: (a) is correct, (b) is very wrong. (a) is missing top pixels and stretched vertically to fit (expected), (b) is too small (720x144 even though -s specifies 720x480) and has horrid filler pixels at the bottom.
Need to crop more than 10 pixels off the top to remove extra digital tv signal stream (noise at top of screen). Try 20 pixels. [Actually 16 pixels off the top proved to be good]
[root@be scripts]# ffmpeg -y -i /mnt/progamer_goodCut.0000.mpg -r 29.97003 -
target dvd -b 8000 -croptop 20 -s 720x480 -deinterlace -copyts > -aspect 16:9 -acodec copy /mythtv/fatal1ty_ff-dvd-cropB4resize.mpg; > ffmpeg -y -i /mnt/progamer_goodCut.0000.mpg -r 29.97003 > -target dvd -b 8000 -s 720x480 -croptop 20 -deinterlace -copyts > -aspect 16:9 -acodec copy /mythtv/fatal1ty_ff-dvd-sizeB4crop.mpg; > ffmpeg -y -i /mnt/progamer_goodCut.0000.mpg -r 29.97003 > -target dvd -b 8000 -s 720x480 -deinterlace -copyts > -aspect 16:9 -acodec copy /mythtv/fatal1ty_ff-dvd-nocrop.mpg
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --
enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-faad
bin --enable-xvid --enable-a52 --enable-a52bin --enable-pp --enable-shared -
-enable-pthreads --enable-dc1394 --enable-gpl --disable-strip --extra-cflags
=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -f
asynchronous-unwind-tables
libavutil version: 49.0.0
libavcodec version: 51.7.0
libavformat version: 50.3.0
built on Mar 1 2006 06:18:11, gcc: 3.4.4 20050721 (Red Hat 3.4.4-2)
Input #0, mpeg, from '/mnt/progamer_goodCut.0000.mpg':
Duration: 00:13:01.0, start: 20241.810111, bitrate: 17847 kb/s
Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p, 1920x1080, 1
8800 kb/s
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 384 kb/s
Assuming NTSC for target.
Output #0, dvd, to '/mythtv/fatal1ty_ff-dvd-cropB4resize.mpg':
Stream #0.0, 29.97 fps(c): Video: mpeg2video, yuv420p, 720x480, q=2-31, 80
00 kb/s
Stream #0.1: Audio: ac3, 48000 Hz, stereo, 384 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 797 q=2.0 size= 13522kB time=26.2 bitrate=4221.5kbits/s
0 Comments:
Post a Comment
<< Home