Hi, I have an mpeg4 stream which I am trying to cut into parts. My pipeline is rtspsrc ! rtpmp4vdepay ! ffdec_mpeg4 ! mpeg4videoparse ! appsink -> appsrc ! matroskamux ! filesink location=...
Every 10 seconds I close the appsrc pipeline (with eos) and start a new one. I have a software queue between appsink and appsrc to make sure that no packets are lost, and I make sure that when flushing I wait for the next frame to be a keyframe so that there is no data loss.
I am still seeing cuts between the videos (~2 second cuts)... Is it possible to cut the stream in another way? Is there a way to fix my pipeline? Thanks,
Tomer _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Il 05/12/2011 10:55, Nezer Zaidenberg ha scritto:
do you stop to push frames to appsrc and then send the eos?
do you keep the keyframe in your software queue and push it to the appsrc pipe started after the first one receive eos? try to print the frame timestamps pushed and the ones really present in the produced files
you could try multifdsink too, but the flow you described should work Nicola
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Nicola,
Thanks for the response. 1) Yes, yes I actually signal the pushing thread to stop and then the pushing thread sends an eos after it gets to a key frame. 2) I wait for a keyframe, then I stop. I also tried to duplicate the key frame and push it to both recordings - still no luck. 3) I will check the timestamps, but just to make sure I also made the following test:
I tee'd both recordings to a udpsink, and had an external pipeline that records from that udpsink to ex.mkv. Afterwards I saw that 1.mkv and 2.mkv are not perfect (second 32.8 on the clock -> 36.2), but the ex.mkv file is (goes seamlessly from 32 to 36).
4) I considered using multifdsink, but that will give me the same problem when I want to connect everything into one movie unless I save all the history + recordings. Thanks, Tomer
On Mon, Dec 5, 2011 at 12:33 PM, Mailing List SVR <[hidden email]> wrote:
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |