[FFmpeg-user] Write audio frames without decoding/encoding

killkenny64 kennethjjgibson at gmail.com
Mon Feb 13 05:52:31 CET 2012


Hi,

I'm using FFmpeg programmatically in C. I currently take a .mp4 file, get
the video frames, alter them, and save them to a new .mp4 file. I would like
to add the audio from the original .mp4 into the new one, unmodified. 

Is it possible to read an audio packet and then just place that packet into
a new file without having to decode/re-encode it?

Can I just take the raw data from the AVPacket (the samples?) and write them
to my new file?

I'm having difficulties getting this to work, so I was wondering if it is
possible. Any help is much appreciated, thanks.

--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Write-audio-frames-without-decoding-encoding-tp4382904p4382904.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list