VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. I'm having difficulty removing black borders from an mp4 with Handbrake. I'm a novice. I think I want the image to stretch/distort rather than crop, but I'm also wondering if it thinks that the black borders on the top and bottom are part of the picture, so maybe a crop would work better? Bizarrely, in my first attempt, the black borders had shrunk to an acceptable width, but later when I re-opened it, it had reverted back to wide borders. I've attached an image of the dimensions tab. Can someone tell me what values to enter?

    Image
    [Attachment 92497 - Click to enlarge]
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    It looks like you have a 16:9 video inside a 4:3 frame.
    If you allow it to crop, you can either encode as-is, 1440x812, or resize it down slightly to 720p - 1280x720
    or resize it up to 1920x1080
    Image Attached Thumbnails Click image for larger version

Name:	1080p.png
Views:	25
Size:	39.6 KB
ID:	92498  

    Quote Quote  
  3. Thanks. I tried all three of those settings, but there's still a thin black border at the top and bottom.
    Quote Quote  
  4. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by whitelighter View Post
    Thanks. I tried all three of those settings, but there's still a thin black border at the top and bottom.
    ???

    Then increase the crop amount by 2 pixels top and bottom by setting cropping to "custom" and adjusting the sizes manually
    Quote Quote  
  5. Ok thanks, problem solved.
    Quote Quote  
  6. Member
    Join Date
    Aug 2023
    Location
    Germany
    Search PM
    Also ffmpeg can be used :
    ffmpeg -ss 150 -i "yourvideo.mp4" -vframes 100 -vf cropdetect -f null -
    Output :

    Code:
    [Parsed_cropdetect_0 @ 0x558ad3259280] x1:10 x2:1089 y1:0 y2:607 w:1072 h:608 x:14 y:0 pts:33 t:0.033000 crop=1072:608:14:0
    
    I must confess, Handbreake did to much for me, I prefer all to understand what to do with the respective video.
    [Parsed_cropdetect_0 @ 0x558ad3259280] x1:10 x2:1089 y1:0 y2:607 w:1072 h:608 x:14 y:0 pts:50 t:0.050000 crop=1072:608:14:0
    [Parsed_cropdetect_0 @ 0x558ad3259280] x1:10 x2:1089 y1:0 y2:607 w:1072 h:608 x:14 y:0 pts:67 t:0.067000 crop=1072:608:14:0
    [Parsed_cropdetect_0 @ 0x558ad3259280] x1:10 x2:1089 y1:0 y2:607 w:1072 h:608 x:14 y:0 pts:83 t:0.083000 crop=1072:608:14:0
    The respective ffmpeg command :

    Code:
    ffmpeg -i yourvideo.mp4 -filter:v "crop=1072:608:14:0" -c:a copy out.mkv
    I prefer ffmpeg, and know what I do.
    Quote Quote  



Similar Threads

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