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:
but same result: when play this video on my TV video is adapted in height....Code:-aspect:v:0 2.40 -filter:v:0 "scale=1280:534" -y -tag:v xvid
is a way to forced output video resolution without losing the original video aspect (2.40)? or add black borders on top and bottom?
+ Reply to Thread
Results 1 to 12 of 12
-
Last edited by lomero; 11th Feb 2021 at 11:34.
-
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! -
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"
-
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
-
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
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.
-
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
Or are you looking to pad all four edges with black bars? -
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.
Similar Threads
-
Corrupted output video from FFMPEG at high quality
By 31feesh in forum Newbie / General discussionsReplies: 6Last Post: 30th Jan 2021, 23:23 -
FFMpeg Auto output Name on .bat Script file
By Daringbaaz in forum Newbie / General discussionsReplies: 10Last Post: 6th Dec 2020, 08:44 -
what is the location of output files in ffmpeg?
By jraju in forum Newbie / General discussionsReplies: 45Last Post: 24th Oct 2019, 06:59 -
FFmpeg Multiple Output
By m00511 in forum Newbie / General discussionsReplies: 7Last Post: 10th Aug 2018, 14:05 -
ffmpeg: how to save output as TGA SEQUENCE?
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 25th Sep 2016, 09:44