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

Andrey Utkin andrey.krieger.utkin at gmail.com
Mon Feb 13 12:05:49 CET 2012


2012/2/13 killkenny64 <kennethjjgibson at gmail.com>:
> 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?

Yes. Shortly, you can av_write_frame() the AVPacket you've just got
from av_read_frame().
You can look at my code as example.
https://github.com/krieger-od/imgs2video/blob/master/cat.c

-- 
Andrey Utkin


More information about the ffmpeg-user mailing list