Widescreen Fix

0
0
No Preview.

If you feel like this example could be improved, you may edit this example here.

ffmpeg -i input.mp4 -c:v copy -c:a copy -aspect 16:9 16x9_output.mp4

2 comments
Anonymous
Markdown is supported
@johnblat
johnblatcommented5 months ago

i haven't tested this command ffmpeg -i input.mp4 -c:v copy -c:a copy -aspect 16:9 16x9_output.mp4
but i have a question. Would this work for any input aspect ratio and not just 4:3? I don't see anything in the command that seems to imply it would be for just 4:3

@eladg
eladgcommented5 months ago

hey @johnblat , the command you've shared will change the SAR/DAR values to 16:9 and will not change the actual underline audio/video data. In short, "sample aspect ratio" and "display aspect ratio" are metadata that help video players. Since you included -c copy and you're copying the streams over, when remuxing the audio/video/data streams over (from input.mp4 to 16x9_output.mp4`) the streams will remain the same yet the metadata/headers of the container (in your case MP4) will change with the values you provided.

I hope that makes sense