[Libav-user] How to Demux mp4 to video/audio stream and Remux them back to mp4 using API?

wucg 249165510 at qq.com
Thu Dec 3 16:32:36 CET 2015

Hi, I'm newbie to FFmpeg, could anyone tell how to demux a mp4 file to:
video stream:  .h264
audio stream: .aac
then remux them back using C/C++ API, not the command tools.

equivalent to command:
ffmpeg -i media\input.mp4 -vn -f aac media\output.aac
ffmpeg -i media\input.mp4 -an media\video_only.mp4
ffmpeg -i media\video_only.mp4 -i media\audio_only.aac  media\restore.mp4

Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20151203/c8b1996f/attachment.html>

More information about the Libav-user mailing list