How to append EOS in existing files

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Jan 28 14:01:36 PST 2013


On Mon, 2013-01-28 at 10:45 -0800, rahul.singh.parihar wrote:

Hi,

> I have created an application that uses appsrc to record mp4 files. EOS
> event is sent whenever I have to stop recording and the file is created
> successfully. Everything goes well, my pipeline is
> 
> appsrc ! queue ! videorate ! ffmpegcolorspace ! x264enc ! mp4mux ! filesink
> location=video.mp4
> 
> By chance, if my application crashes (is unable to generate successful EOS
> ), the amount of recorded data is completely lost.
> 
> Is there a way to recover such files in gstreamer. I was thinking if I could
> append EOS by reading such files in gstreamer. Is there a provision to do
> that or something similar.

You may find mp4mux's "moov-recovery-file" property interesting, and the
corresponding qtmoovrecoverer element. They were added for pretty much
exactly that purpose.

 Cheers
  -Tim



More information about the gstreamer-devel mailing list