Hi<br><br> I am,trying to implement a recorder that will split a larger media file or a live source in to smaller chunks. <br>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..?<br>
<br>Pipeline Created --->> GST_STATE_READY---->> GST_STATE_PAUSE ---->>GST_STATE_PLAYING-----{<div id=":1te">after a predefined file size splitting file } -->> GST_STATE_PAUSE--->> GST_STATE_READY-->>GST_STATE_NULL-->>unref the pipeline <br>
<br>After this the same method is repeated to create the second chunk. Is there any better way to Implement idea...?<br><br><br>Regards<br><br>LijiN</div>