View Single Post
Old 28th May 2010, 19:07   #7  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
Apparently I dont':
Code:
ffmpeg -v 0 -r 23.976 -i "D:\testclips\IronMan2_avc_aac.mov" -threads 4 -v 0 -vf "crop=0:4:1280:540,scale=1280:656,pad=1280:720:32:0" -vsync 0 -an -r 23.976 -pix_fmt yuv420p -f rawvideo - | x264 --pass 2 --bitrate 1500 --level 4.1 --direct auto --qpmin 1 --partitions i4x4,p8x8,b8x8 --subme 5 --trellis 0 --no-fast-pskip --weightp 1 --aq-mode 0 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 40:33 --stats "D:\test_19_47_30_003_01.stats" --fps 23.976 --output "D:\Encoding Temp\test_19_47_30_003_02.264" - 1280x720
gives me:
Quote:
[crop @ 013e6f60]x:0 y:4 w:1280 h:540
[scale @ 013e70f0]w:1280 h:540 fmt:yuv420p -> w:1280 h:656 fmt:yuv420p flags:2
[pad @ 013e6f20]w:1280 h:720 x:32 y:0 color:0x10808000[yuva]
[pad @ 013e6f20]Input area 32:0:1312:656 not within the padded area 0:0:1280:720 or zero-sized
but the syntax seems to be right, or not?
-vf "crop=0:4:1280:540,scale=1280:656,pad=1280:720:32:0"
should crop to 1280x540, then resize the result to 1280:656 and then pad to 1280:720.

Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote