2012/10/4 CHAUVET Guillaume <[email protected]>

>  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
[email protected]
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to