gst-rtsp-server appsrc switch video

Eloi Bail eloi.bail at gmail.com
Wed Mar 5 08:51:43 PST 2014


Hi,

As nobody answered to my question, my explanation was maybe not clear...

Let me simplify it.

Is it possible to use apprsrc on several video files to switch from files
to files using the following pipeline ? :

appsrc name=mysrc ! qtdemux name=demux demux.  !  h264parse ! rtph264pay
name=pay0 pt=96



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.


Any advice ?

Thanks,

Eloi







On Thu, Feb 27, 2014 at 4:33 PM, Eloi Bail <eloi.bail at gmail.com> wrote:

> Hi all,
>
> I wanted to play with gst-rtsp-server with appsrc to stream and chain
> several videos.
> I based then my work on gst-rtsp tutorial (test-appsrc.c).
>
> I am able to stream a mp4 (video h264) but I see issues when trying to
> switch to the next file.
>
> 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.
>
> To simplify it, I made the file switching after reading 10Mb of the first
> file.
> Then I am avoiding EOS on rtsp-media.c but the second video failed to
> stream...
>
>
> See all the source in
> http://fpaste.org/81073/35398139/
>
> As we are manipulating buffer, I was thinking that I could easily append
> datastream.
> But here, I am appending the whole mp4 file (not only the stream data).
>
> So I guess that is the reason why I am not able to stream correctly the
> second file. Am I right ?
>
> Would it be a good solution to perform a fseek on data section ? I tried
> it but failed...
>
> Any help is welcomed.
>
> Thanks,
>
> Eloi
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140305/cdf91df0/attachment.html>


More information about the gstreamer-devel mailing list