Get audio formats supported by video container of input file

For the developers that use FFmpeg in Windows software.
Post Reply
ffdev
Posts: 2
Joined: Mon Jun 26, 2017 12:11 am

Get audio formats supported by video container of input file

Post by ffdev » Mon Jun 26, 2017 12:18 am

Hi All,

I'm developing a Qt-front end for ffmpeg to replace a given video's audio stream. My target audience is musicians who'd like to replace a client video's stream with their rendered audio.

I'd like to know of a way to find out, given a video file, all the audio formats it can hold. For instance, if a user selects an MP4 source video, then source audio has to be an MP3/LPCM as given by this table:
https://en.wikipedia.org/wiki/Compariso ... er_formats

If a user selects a format like WAV which MP4 cannot hold, my tool will offer to encode WAV into MP3 and mux it with MP4.

Is there any way to do this? Any help is much appreciated! Thanks!

ffdev
Posts: 2
Joined: Mon Jun 26, 2017 12:11 am

Re: Get audio formats supported by video container of input file

Post by ffdev » Tue Jul 04, 2017 6:50 pm

Hello anyone?

Is there any API that will give me a compatible audio stream format for the given video? For instance if given mp4 video, it should give all supported audio bitstream formats like mp4a.

See here for instance (check out the audio formats suported tab - i want that from an API):
https://en.wikipedia.org/wiki/Compariso ... er_formats

Post Reply