VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    Aug 2015
    Location
    England
    Search PM
    Hello, I am trying to figure out how to endcode a video (mts to mkv) that is currently 1280x1080 to 864x400 and remove a 4 pixel black border from all edges [top. bottom, left and right] all in one go

    What would the command be?

    Thanks in advance for any help.
    Last edited by VidElp; 23rd Aug 2015 at 13:33.
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    Should be pretty simple using the crop and scale filters. What have you tried so far?
    Quote Quote  
  3. Unclear whether you want to first remove the border and then resize to 864x400 or do you want to first resize and then crop to 852x392 ?
    '-vf crop=1272:1072:4:4,scale=864:400' would first crop 4px on each side and then resize,..
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  4. Member
    Join Date
    Aug 2015
    Location
    England
    Search PM
    I figured it out
    crop=in_w-2*4:in_h-2*4
    is what i got to work

    Thanks for the help
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!