i hv just ripped a part of DVD, but it gave weird bar on top border and light green bar on right border.
How Can I crop and pad these bars using FFMPeg CLI under Linux? -OR-
What are the commandlines for followings?
1) How to crop 10 pixels from the lefth, 15 pixels from right borders,20 pixels from the top and 25 pixels from bottom borders?
2) How to pad 10 pixels to the lefth, 15 pixels to right borders,20 pixels to the top and 25 pixels to bottom borders?
Tks!
![]()
+ Reply to Thread
Results 1 to 7 of 7
-
-
These command parts are not for a very recent ffmpeg release (2008), so the ffmpeg team might have changed a few things in the mean time. I haven't checked for changes in newer versions.
Code:-croptop 32 -cropbottom 32 -cropleft 16 -cropright 16
Code:-padtop 32 -padbottom 32 -padleft 16 -padright 16
Note that the copping and padding is multiples of 16, as the MPEG-2 encoder wants to encode the video to output as multiples of 16. Cropping and padding itself is only restricted in ffmpeg to be even numbers. -
@ Case
Thanks for the reply.
it seems that latest version of FFmpeg-svn-25456 does not understand the commandlines you have suggested!
Oooooooooppppppppppssssssss! -
bat999
thanks for reply.
b4 posting i try all sorts by going through manual.
direct sweet and short working solution will be appreciated.
-
Not sure about crop, but to resize and pad I use this -
Code:-vf scale=720:368,pad=720:480:0:56
Code:Filters: aspect Set the frame aspect ratio. crop Crop the input video to x:y:width:height. format Convert the input video to one of the specified pixel formats. noformat Force libavfilter not to use any of the specified pixel formats for the input to the next filter. null Pass the source unchanged to the output. pad Add pads to the input image. pixelaspect Set the pixel aspect ratio. scale Scale the input video to width:height size and/or convert the image format. slicify Pass the images of input video on to next video filter as multiple slices. unsharp Sharpen or blur the input video. vflip Flip the input video vertically. buffer (null) nullsrc Null video source, never return images. nullsink Do absolutely nothing with the input video.
Linux _is_ user-friendly. It is not ignorant-friendly and idiot-friendly. -
I have been using FFMPEG for some time for audio file conversions. I just downloaded the newest version and the command:
ffmpeg -i x.flac -ab 128k x.mp3
no longer produces a 128k file.
It produces a 48k file no matter what the -ab command requests. Any suggestions?
Similar Threads
-
What's a good mouse pad to get?
By Stealth3si in forum ComputerReplies: 2Last Post: 22nd Nov 2011, 12:14 -
x264 CLI
By zammil in forum Video ConversionReplies: 16Last Post: 22nd Jan 2011, 11:22 -
[ffmpeg] No such filter: 'pad=0:0:0:0:black'
By hzh003 in forum ProgrammingReplies: 10Last Post: 12th Dec 2010, 21:18 -
CLI to XML
By eon_designs in forum Video ConversionReplies: 1Last Post: 29th Apr 2010, 10:50 -
What's the best Pad for PC
By themaster1 in forum ComputerReplies: 3Last Post: 15th Mar 2010, 15:43