-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Using a "Custom resolution" will not change the aspect ratio, just use a (reduced) horizontal/vertical resolution.
But what to do when a file has an incorrect apect ratio?
I've been searching the web for a bit, but all suggestions found didn't seem to work.
There's SAR = Sample Aspect Ratio being the actual pixel size, and DAR = Display Aspect Ratio that's telling the media player how to scale the pixels (if the software supports that). Changing SAR requires re-encoding, changing DAR should be doable by doing no encoding (stream-copy) and just changing the DAR meta data of the container.
The parameter "-aspect 16:9" doesn't work with stream-copy or re-encoding.
There's "-bsf:v "h264_metadata=sample_aspect_ratio=16/9", but we don't support h264 at all.
There's "-vf scale=iw*0.3333:ih" while re-encoding, doesn't change anything either.
All checked with "ffprobe" that show SAR and DAR.
Just leaving that here, in the hopes someone more familiar with ffmpeg shows us the way...