[gst-devel] Splitting Video in a Recording Pipeline

LIJIN SYAM K lijinsyam at gmail.com
Thu Dec 9 15:15:11 CET 2010


Hi

  I am,trying to implement a recorder that will split a larger media file or
a live source in to smaller chunks.
First i created a pipeline to record the steam from filesrc and rtspsrc .
For Implementing the file change i put a callback in the encoder element
which keep on checking the size of the file created by the pipeline. When
the filesize is reached the predefined size then i will put the pipeline in
to GST_STATE_PAUSE.   Then i move the recorded file to the destination
.,after that that the state of the pipeline is set to GST_STATE_NULL. and i
unref the main pipeline.Here the first video is created and after that the
same pipeline is created and the video is recorded . I can Implement file
change in this way..But is this the right way to Implement my idea..?

Pipeline Created --->> GST_STATE_READY---->> GST_STATE_PAUSE
---->>GST_STATE_PLAYING-----{
after a predefined file size splitting file } -->> GST_STATE_PAUSE--->>
GST_STATE_READY-->>GST_STATE_NULL-->>unref the pipeline

After this the same method is repeated to create the second chunk. Is there
any better way to Implement idea...?


Regards

LijiN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101209/fa7c47da/attachment.htm>


More information about the gstreamer-devel mailing list