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

Gustav González xtingray at gmail.com
Mon Apr 27 06:54:24 EEST 2020


That's exactly the point where I started my research. There is interesting
stuff there, but as I mentioned in the first message, all the examples
start assuming an input file.
For example, I want to learn how to set the key parameters of an
AVCodecParameters variable manually, so I can copy it into an
AvContextCodec variable.
The "from scratch" approach is the missing point in the current examples.

PS: The encode_video.c has the potential to introduce several concepts, but
it doesn't use any AVStream component, so it's still incomplete from the
"educational" approach.


On Sun, Apr 26, 2020 at 10:01 PM Leandro Moreira <
leandro.ribeiro.moreira at gmail.com> wrote:

> I think this is useful
> https://github.com/FFmpeg/FFmpeg/tree/master/doc/examples
>
> On Sun, Apr 26, 2020, 11:49 PM Gustav González <xtingray at gmail.com> wrote:
>
>> 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
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/libav-user
>>
>> To unsubscribe, visit link above, or email
>> libav-user-request at ffmpeg.org with subject "unsubscribe".
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".



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


More information about the Libav-user mailing list