<div dir="ltr">Hi,<div><br></div><div>As nobody answered to my question, my explanation was maybe not clear...</div><div><br></div><div>Let me simplify it.</div><div><br></div><div>Is it possible to use apprsrc on several video files to switch from files to files using the following pipeline ? :</div>
<div><br></div><div><span style="color:rgb(255,0,0);font-family:monospace;font-size:12px;line-height:14.399999618530273px;background-color:rgb(240,240,240)">appsrc name=mysrc ! qtdemux name=demux demux.  !  h264parse ! rtph264pay name=pay0 pt=96 </span><br>
</div><div><span style="color:rgb(255,0,0);font-family:monospace;font-size:12px;line-height:14.399999618530273px;background-color:rgb(240,240,240)"><br></span></div><div><span style="color:rgb(255,0,0);font-family:monospace;font-size:12px;line-height:14.399999618530273px;background-color:rgb(240,240,240)"><br>
</span></div><div><br></div><div>I am able to run it on file1 but file2 can not be rendered on client -side. I check with wireshark and see that RTP packet are still transmitted when streaming file2 with timestamp correct.  I check that the PTS is correctly incremented at file2.</div>
<div><br></div><div><br></div><div>Any advice ?</div><div><br></div><div>Thanks,</div><div><br></div><div>Eloi</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, Feb 27, 2014 at 4:33 PM, Eloi Bail <span dir="ltr"><<a href="mailto:eloi.bail@gmail.com" target="_blank">eloi.bail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi all,<div><br></div><div>I wanted to play with gst-rtsp-server with appsrc to stream and chain several videos.</div><div>I based then my work on gst-rtsp tutorial (test-appsrc.c).</div><div><br></div><div>

I am able to stream a mp4 (video h264) but I see issues when trying to switch to the next file.</div><div><br></div><div>First, once I had an EOS while reading my first file, I switch the reading on the second file descriptor, but I saw that rtsp-media.c received an EOS.</div>

<div><br></div><div>To simplify it, I made the file switching after reading 10Mb of the first file.</div><div>Then I am avoiding EOS on rtsp-media.c but the second video failed to stream...</div><div><br></div><div><br></div>

<div>See all the source in </div><div><a href="http://fpaste.org/81073/35398139/" target="_blank">http://fpaste.org/81073/35398139/</a></div><div><br></div><div>As we are manipulating buffer, I was thinking that I could easily append datastream.</div>

<div>But here, I am appending the whole mp4 file (not only the stream data). </div><div><br></div><div>So I guess that is the reason why I am not able to stream correctly the second file. Am I right ? </div><div><br></div>

<div>Would it be a good solution to perform a fseek on data section ? I tried it but failed...</div><div><br></div><div>Any help is welcomed.</div><div><br></div><div>Thanks,</div><div><br></div><div>Eloi</div><div><br></div>

<div><br></div></div>
</blockquote></div><br></div></div>