[Libav-user] Adding an audio track to a video
Mick O'Doherty
anmiodoherty at gmail.com
Thu Sep 11 22:13:16 CEST 2014
Hi,
Any thoughts on this?
The behaviour does not have to be without transcoding as with the command
line example - the key thing is to be able to add an audio track to a video.
If I am asking in the wrong place, let me know...
Mick
On Mon, Sep 8, 2014 at 11:18 PM, Mick O'Doherty <anmiodoherty at gmail.com>
wrote:
> Hi,
>
> I have tried searching the archive for this list (using google - if there
> is a better way, please let me know) and could not find an answer to my
> question, so I will post it here.
>
> I am trying to find some examples or guidelines that help show how to add
> an audio track to a video programatically using ffmpeg API's (i.e. the C
> API's not the command line).
>
> I did this a few years ago using the command line approach wrapped in a
> script - the command, which worked fine, was:
>
> fmpeg -y -i OriginalvideoFile.mp4 -vcodec copy -i Mp3AudioFile.mp3 -acodec
> copy resultVideoFile.mp4
>
> I'd like to achieve the same thing but this time use the appropriate API
> calls from a C program.
>
> Any pointers gratefully appreciated.
>
> Mick
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140911/f24c10c6/attachment.html>
More information about the Libav-user
mailing list