<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Il 05/12/2011 10:55, Nezer Zaidenberg ha scritto:
<blockquote
cite="mid:CAFHPcenv6vHLn36cmnpLv=+wv=6r7r0_JrRnY8ktYPVNryvGuw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">Hi,<br>
<div dir="ltr">
<div><br>
</div>
<div>I have an mpeg4 stream which I am trying to cut into
parts.</div>
<div>My pipeline is </div>
<div>rtspsrc ! rtpmp4vdepay ! ffdec_mpeg4 ! mpeg4videoparse
! appsink -> appsrc ! matroskamux ! filesink
location=...</div>
<div><br>
</div>
<div>Every 10 seconds I close the appsrc pipeline (with eos)
and start a new one.</div>
</div>
</div>
</div>
</blockquote>
<blockquote
cite="mid:CAFHPcenv6vHLn36cmnpLv=+wv=6r7r0_JrRnY8ktYPVNryvGuw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>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.</div>
</div>
</div>
</div>
</blockquote>
<br>
do you stop to push frames to appsrc and then send the eos?<br>
<br>
<blockquote
cite="mid:CAFHPcenv6vHLn36cmnpLv=+wv=6r7r0_JrRnY8ktYPVNryvGuw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div><br>
</div>
<div>I am still seeing cuts between the videos (~2 second
cuts)...</div>
</div>
</div>
</div>
</blockquote>
<br>
do you keep the keyframe in your software queue and push it to the
appsrc pipe started after the first one receive eos?<br>
<br>
try to print the frame timestamps pushed and the ones really present
in the produced files<br>
<br>
<blockquote
cite="mid:CAFHPcenv6vHLn36cmnpLv=+wv=6r7r0_JrRnY8ktYPVNryvGuw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div><br>
</div>
<div>Is it possible to cut the stream in another way? </div>
</div>
</div>
</div>
</blockquote>
<br>
you could try multifdsink too, but the flow you described should
work<br>
<br>
Nicola<br>
<br>
<blockquote
cite="mid:CAFHPcenv6vHLn36cmnpLv=+wv=6r7r0_JrRnY8ktYPVNryvGuw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div>Is there a way to fix my pipeline?</div>
<div><br>
</div>
<div>Thanks,</div>
<div> Tomer</div>
</div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>