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 <
[email protected]> 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 <[email protected]> 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
>>   [email protected]
>>
>> _______________________________________________
>> Libav-user mailing list
>> [email protected]
>> https://ffmpeg.org/mailman/listinfo/libav-user
>>
>> To unsubscribe, visit link above, or email
>> [email protected] with subject "unsubscribe".
>
> _______________________________________________
> Libav-user mailing list
> [email protected]
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> [email protected] with subject "unsubscribe".



-- 
--
  Gustav Gonzalez
  [email protected]
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to