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

Questions involving a Windows version of FFmpeg.
Post Reply
Halo
Posts: 2
Joined: Thu Aug 10, 2017 8:44 pm

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

Post by Halo » Thu Aug 10, 2017 8:50 pm

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 and retain the original audio and video codec settings?

Any help or suggestions are appreciated. THANK YOU!! :mrgreen:

Halo
Posts: 2
Joined: Thu Aug 10, 2017 8:44 pm

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

Post by Halo » Fri Aug 11, 2017 1:16 pm

I should also add that using -aspect 16:9 works with the copy functions but it doesn't actually change the aspect ratio properties that I need. Thanks.

Post Reply