VideoHelp Forum


Try DVD-Fab Video Downloader and rip Netflix video! Or Try DVD-Fab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 12 of 12
Thread
  1. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    i have one video 1920x800 but put on pendrive then play on my TV 19" this video is adapted in height, so the video is distorted...
    i need to convert this video from mkv to mp4 or avi with xvid codec (my TV don't have h264 codec to play original mkv video).
    i have try ffmpeg with:
    Code:
    -aspect:v:0 2.40 -filter:v:0 "scale=1280:534" -y -tag:v xvid
    but same result: when play this video on my TV video is adapted in height....
    is a way to forced output video resolution without losing the original video aspect (2.40)? or add black borders on top and bottom?
    Last edited by lomero; 11th Feb 2021 at 11:34.
    Quote Quote  
  2. Code:
    ffmpeg -i input.mkv -vf pad=1920:1080:0:140 -c:v mpeg4 -q 4 c:a copy output.mp4
    The "140" creates equal borders at the top and bottom, 140 = (1080-800)/2
    Last edited by jagabo; 11th Feb 2021 at 12:05.
    Quote Quote  
  3. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    oh god, you are little genius!
    from 2 days learning and trying to find valid string to do this but without success...
    thank you very much for your support. your suggestion work fine!
    Quote Quote  
  4. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    with same principle above i have try to resize final video, with add black bars on top and bottom. try this:
    Code:
    ffmpeg -i input.mkv -f mp4 -ss 00:00:45.00 -to 00:40:00.00 -c:a:0 libmp3lame -q:a 2 -ar:a:0 44100 -ac:a:0 2 -c:v:0 libxvid -q:v 4 -s 1280x720 -vf pad=1280:720:0:93 -y "output.mp4"
    i have problem with pad value..... why??
    Quote Quote  
  5. the -s is set to 1280x720, not 1280x534

    You can combine scale and pad into -vf

    Code:
    ffmpeg -i input.mkv -f mp4 -ss 00:00:45.00 -to 00:40:00.00 -c:a:0 libmp3lame -q:a 2 -ar:a:0 44100 -ac:a:0 2 -c:v:0 libxvid -q:v 4 -vf scale=1280:534,pad=1280:720:0:93 -y "output.mp4
    Quote Quote  
  6. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    ok tanxs.

    i have also tried HandBrake, but how to add this feature? (resize video with balcks bands)
    try to add string -vf scale=1280:534,pad=1280:720:0:93 on Advanced option on video tab but without result.... suggestion?
    Quote Quote  
  7. I don't think Handbrake has any way of letting you add borders. The Extra Options field is for codec options, not filtering.
    Quote Quote  
  8. You can add borders with Avidemux or Staxrip, never seen this on Handbrake
    Quote Quote  
  9. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    i have try Staxrip but not easy and very big program... at this point i preferred ffmpeg! easy and fast. tanxs to jagabo string!

    and tanxs to poisondeathray to your resizing string: it work very fine!
    Last edited by lomero; 15th Feb 2021 at 02:28.
    Quote Quote  
  10. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    hi guys. new problem.
    i have new video 1728x720. my TV is 1920x1080
    i have calculate 1080-720=360/2=180
    on this video i don't want scale video, only add blacks bands. then i've try:
    Code:
    ffmpeg -i input.ts -f mp4 -ss 00:00:39.00 -to 01:39:00.00 -acodec copy -c:v:0 mpeg4 -q:v 4 -vf pad=1728:720:0:180 -y output.mp4
    but not work. why?

    work fine with prev setting with scale:
    Code:
    ffmpeg -i input.ts -f mp4 -ss 00:00:39.00 -to 01:39:00.00 -acodec copy -c:v:0 mpeg4 -q:v 4 -s 1280x720 -vf scale=1280:534,pad=1280:720:0:93 -y output.mp4
    Last edited by lomero; 17th Feb 2021 at 02:34.
    Quote Quote  
  11. Since your TV stretches everything to 16:9 you want to add borders to create a 16:9 frame size. Since your video is 1728 pixels wide the 16:9 height will be 1728 * 9 / 16 = 972. So you need to add 252 lines total, 126 top and bottom.
    Code:
    ffmpeg -i input.ts -f mp4 -ss 00:00:39.00 -to 01:39:00.00 -acodec copy -c:v:0 mpeg4 -q:v 4 -vf pad=1728:972:0:126 -y bliss.mp4
    Your TV will then stretch the resulting 16:9 video to its 16x9 screen, keeping the correct aspect ratio.

    Or are you looking to pad all four edges with black bars?
    Quote Quote  
  12. Member
    Join Date
    Jan 2019
    Location
    hawai
    Search PM
    ok. received. now i try.
    and about second query, no, i want only maintain the correct ratio. no other.

    edit: try now and work fine! many tanxs (again)
    Last edited by lomero; 17th Feb 2021 at 03:22.
    Quote Quote  



Similar Threads