[Libav-user] Encoding workflow process and container

Gonzalo Garramuno ggarra13 at gmail.com
Thu Oct 4 16:20:14 CEST 2012


2012/10/4 CHAUVET Guillaume <cg85 at hotmail.com>

>  Hello libav users !
>
> I tried to create a very simple mpeg2 file : a container with one video stream.
> But I don't understand very well all API functions needed to perform this operation :
> When I execute the attached sample program (below) I obtain an empty "video.mpg" file. Is avformat_write_header function who write the media file header ?
> Or some information are missing in my settings ? I have to admit I'm a little bit confused :-(
>
>
>
You are missing two things:
1) Create some content for the video.
2) Write the trailer of the video.

See the docs/examples/muxing.c example in the distribution of ffmpeg.

-- 
Gonzalo Garramuño
ggarra13 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121004/0ed46d46/attachment.html>


More information about the Libav-user mailing list