[Libav-user] Mix audio with video sample API calls

Nicolas George george at nsup.org
Tue Jul 12 15:16:21 CEST 2016


Le quintidi 25 messidor, an CCXXIV, Josef Vosyka a écrit :
> I'm successfully using libavcodec.a in my project for video encoding.
> Now I need to add audio track to existing video.
> It works great from command line using this:
> 
>      ffmpeg -i raw_sequence.mp4 -i voices_1.cif -c copy -map 0:v:0
> -map 1:a:0 -shortest out.mp4
> 
> I can not find how to achieve this same thing by making API calls.

The API calls allow to read inputs and write outputs. Anything in between is
the responsibility of your application.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160712/35c98b90/attachment.sig>


More information about the Libav-user mailing list