[FFmpeg-devel] [PATCH] New API usage example (reading, converting, encoding and muxing an audio file)

Paolo Prete p4olo_prete at yahoo.it
Mon Jun 6 20:40:42 EEST 2022


Hello,
>From what I see, the doc/examples files can be still improved. More precisely, their main() is often split into functions with short names that hide important (sometime essential) details of what they're doing and they worsen the readability, by forcing the user to jump from chunks to chunks of the code. See for example: muxing.c (and the open_audio/video(), write_audio/video_frame()...). In addition: they are hard to adapt to practical cases without doing big modifications.
Please consider to review/push the attached example:  convert_encode_mux_audio.c .
It is deliberately written in a more "procedural" way, it should be much easier to read and it covers all the basic steps (reading from file, converting, encoding, muxing) of a common and practical pipeline made with ffMPEG.
Hope it helps.
P

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-a-complete-example-with-clear-well-readable-an.patch
Type: text/x-patch
Size: 20475 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220606/9470a3c8/attachment.bin>


More information about the ffmpeg-devel mailing list