[Libav-user] output-example.c replacement?

Gustav González xtingray at gmail.com
Mon Apr 27 05:49:04 EEST 2020


Hello,
In the old versions of the ffmpeg source code, there was a nice example
showing how to create a video file from scratch, setting the most important
variables of its components.
This is it:
https://github.com/rvs/ffmpeg/blob/master/libavformat/output-example.c

I just wonder if there is an updated version of it or some other reference
I can use to create a video file using the same logic but calling the
latest API methods, as much of them in the old example are already
deprecated.

I have seen some comments in the documentation suggesting things like:
"instead use this...", but the truth is the information is really vague. A
working example as the one I referenced would be a great pedagogic tool.

Most of the "recent" examples take the parameters from an incoming
(pre-existing) input file to run some kind of "operation" into an output
file, but what if I want to create a video file from scratch? (i.e. from an
image sequence)

Any advice/hint would be really appreciated. Thanks.

--
  Gustav Gonzalez
  xtingray at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200426/fae31480/attachment.html>


More information about the Libav-user mailing list