OpenWatch / FFmpegWrapper

A lightweight Objective-C wrapper for some FFmpeg libav functions
Other
179 stars 54 forks source link

FFOutputFile writeTrailerWithError doesn't output last segment #5

Closed justinmakaila closed 9 years ago

justinmakaila commented 9 years ago

Hey guys, I'm currently using this library to transcode media on the device, specifically .mp4 to .ts segments. This is all well and good, as the output file appears to output the .m3u8 file, along with .ts files over the course of writing, but when writeTrailerWithError is called, the last segment isn't output to the directory. In log form:

********* START RECORDING *********
2014-11-24 19:21:23.630 Present[907:175823] codec not found: h264
[mpegts @ 0x18189c00] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts
( ) ( ) ( ) ( ) ( ) Directory did change ( ) ( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) ( ) Directory did change ( ) ( ) ( ) ( ) ( )
( ) ( ) ( ) ( ) ( ) Directory did change ( ) ( ) ( ) ( ) ( )
********* STOP RECORDING *********
********* HLSWriter did finish writing *********
The movie writing group has finished successfully!

There should be another ( ) ( ) ( ) ( ) ( ) Directory did change ( ) ( ) ( ) ( ) ( ) log after the ********* HLSWriter did finish writing ********* log, as that is logged immediately after the writeTrailerWithError method is called, but that is not the case.

justinmakaila commented 9 years ago

In my own ignorance, I realized that it doesn't output files when done writing them, but rather when it starts writing.