This is a C command code to convert the media format Currently, the code support the convert list:
- .aac audio file to mp4 with opus audio format
- .mp4 file includes AAC audio to mp4 with Opus audio format
- .wav file includes PCM audio to mp4 with Opus audio format
- Use Ubuntu LTS 22.04
- git clone https://github.com/WalkerCode1989/MediaFormatConverter
- Run the "prepare_ffmpeg.sh" for ffmpeg clone and make install
./prepare_ffmpeg.sh
mkdir build
cd build
cmake ../
make
media_converter {input file name} {output file name}
e.g.
media_converter aac_sample.aac aactoopus.mp4