[Libav-user] Odp: Mixing many video and audio files
george at nsup.org
Mon Mar 31 10:10:32 CEST 2014
Le primidi 11 germinal, an CCXXII, Marcin krycho a écrit :
> > Hello,
> > I am developing APP for Android with FFMPEG library. So far I am able to achieve this using FFMPEG:
> > 1. Create mp4 video from screen shots.
> > 2. Add audio stream to this video from AAC file.
> > This is working perfectly. Next I would like to mix to this mp4 file
> > more sound from other audio or video files. Sound from other mp4 files
> > can start and end at any moment of movie.
> > I assume this is amix command, but how to do it using FFMPEG API in
> > code? I was not able to find any examples of muxing files in code. Any
> > filter has to be created? Is it possible to somehow "add" audio frames
> > in order to achive "sum" of these frames? And result frame add to audio
> > stream of mp4 file? Any help and code examples would be appreciated.
You need to create a filter graph, with a buffersrc for each input you want
to mix together, and something to do the mixing. I would suggest to use
amerge + pan rather than amix.
> Really no hints?
Can you expect hints before your message actually appears on the list?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: Digital signature
More information about the Libav-user