Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,034
|
ffmpeg + crop + pad broken?
Atm. I'm using something like:
Code:
ffmpeg.exe -v 0 -r 23.976 -i "D:\Test.m2ts" -threads 4 -v 0 -croptop 130 -cropbottom 132 -cropleft 0 -cropright 0 -padtop 130 -padbottom 132 -vsync 0 -an -r 23.976 -pix_fmt yuv420p -f rawvideo - | x264 --crf 20 --fps 23.976 --output "test.264" - 1920x1080 using a ffmpeg Version from: http://sourceforge.net/projects/mplayer-win32/files/ or http://ffmpeg.arrozcru.org/autobuilds/ Problem is, newest versions just stop and post: "Please use vf=pad" (older once work fine) Since I couldn't find anything over at http://www.ffmpeg.org/ffmpeg-doc.html why this is happening I thought I might ask here if someone knows what's going wrong. Is there a new option for padding, or is there a but in newer ffmpeg versions? Cu Selur Last edited by Selur; 20th May 2010 at 21:03. Reason: fixed 2nd url to http://ffmpeg.arrozcru.org/autobuilds/ |
![]() |
![]() |
![]() |
#4 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,034
|
using latest from http://ffmpeg.arrozcru.org/autobuilds/ with:
Code:
ffmpeg -v 0 -r 25.000 -i "D:\sx264\test.mp4" -threads 4 -v 0 -vfilters "crop=640:350:0:2, scale=720:394, pad=720:576:90" -vsync 0 -an -r 25 -pix_fmt yuv420p -f rawvideo - | x264 --crf 20 --fps 23.976 --output "test.264" - 1920x1080 Quote:
Cu Selur |
|
![]() |
![]() |
![]() |
#7 | Link | |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,034
|
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 Quote:
-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 |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|