ffmpeg mxf file setdar to 16/9 but keep audio and video same without encoding

I have numerous 50Mbps IMX50 wrapped MXF videos. Media info/media tab read the aspect ratio as 4:3. I'd like to change that to 16:9. Ideally I would not re-encode all the content because I have 1000s of hours of content to apply this to. Ideally ffmpeg would just perform the data modification to switch the aspect ratio to 16:9.

I used the command below and it changed the aspect ratio but it then made my bit video rate 200Kbps and removed 3 of my 4 audio tracks but left the audio bit rate untouched. The video and audio codec remained the same. I'd like the bit rate and number of audio tracks to remain untouched; again without re-encoding if possible.

ffmpeg -i input.mxf -vf setdar=16:9 output.mxf

I also found that I can't use the -vcodec copy and -acodec copy with the filters (-vf).

Is there a way to use the setdar parameter and retain the original audio and video codec settings?

2

1 Answer

No. At best you can try

ffmpeg -i input.mxf -map 0 -c copy -aspect 16:9 output.mxf

However, setdar is a filter and so, if used, the video will have to be re-encoded.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like