[Libav-user] File does not seem to close

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Aug 20 21:17:33 CEST 2015


Kevin J. Brooks <kbrooks at ...> writes:

> avformat_alloc_output_context2(&m_oc, m_fmt, NULL, filePath.c_str());
> 
> Then when I want to stop recording the video, 
> I use this function to free it:
> 
> avformat_free_context(m_oc);

Are you calling av_write_trailer()?

Unrelated:

> A non-text attachment was scrubbed...
> Name: sdvosb.png
> Type: image/png
> Size: 145202 bytes

I consider this huge / too big.
This is a significantly smaller alternative:
http://netdes.com/uploads/images/sdvosb_1.jpg

I strongly believe the png you used has been 
a jpg in the past...

Carl Eugen



More information about the Libav-user mailing list