extract audio to mp3 from mp4 using c++ (not executing ffmpeg with args)
how can i programmatically convert ( extract the audio channel ) from mp4 video file format ? i just can't find any thing in the web , for using c++ . i what to dynamically link external engine that i can via c++ take mp4 file and convert it to mp3 file. and not passing command line args to LAME or MPLAYER or FFMPEG ? You can try using ffmpeg to do it in c or c++. Here is the normal flow of steps. Init ffmpeg using av_register_all(); Open input file using avformat_open_input( &informat, sourcefile, 0, 0)). Find stream info using avformat_find_stream_info(informat, 0)). Find the audio stream by