[Libav-user] How to Demux mp4 to video/audio stream and Remux them back to mp4 using API?
mohamed_moanis at outlook.com
Sat Dec 5 20:32:04 CET 2015
>From: 249165510 at qq.com
>To: libav-user at ffmpeg.org
>Date: Thu, 3 Dec 2015 23:32:36 +0800
>Subject: [Libav-user] How to Demux mp4 to video/audio stream and Remux them back to mp4 using API?
>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!
this example from the ffmpeg site do exactly what you want with an additional filtering stage.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user