seeking in fragmented mp4 files
Michael Gruner
michael.gruner at ridgerun.com
Thu Apr 10 10:14:52 PDT 2014
Hi,
I faced this once as well. I ended up adding seeking support on
multifilesink. I'm attaching the patch I used, hope it saves you some work.
Michael
P.S. The patch is for the 0.10.31 version
On 04/10/2014 09:55 AM, Andoni Morales wrote:
>
>
>
> 2014-04-09 12:47 GMT+02:00 Lajos Okos <lajos.okos at gmail.com
> <mailto:lajos.okos at gmail.com>>:
>
> Hi,
>
> I'm testing fragmented MP4 files with the playbin pipeline. The
> files play fine unless I want to seek in them. Seeking doesn't
> work. The reason seems to be the qtdemux that is forwarding the
> seek events upstream if the mp4 file is fragmented. I don't need
> any of the smooth streaming functionality, I have the audio and
> the video tracks in a single mp4 file and I don't want to change
> bitrate. The reason I'm using fragmented mp4 is that the files are
> in record while playback should start.
>
>
> Hi,
>
> If you don't plan to generate a manifest or a dash media
> representation, you can use a different container, like matroska
> without indexes, that would generate a playable and seekable stream
> while it's being recorded.
>
> Cheers,
> Andoni
>
>
> Is there a way to catch and handle the forwarded seek events from
> qtdemux in the application? What should the seek handle do?
>
> Should I construct a different pipeline with opening some type of
> a manifest file rather than the media file itself? How should the
> manifest file look like in this simple case?
>
> Hope that someone solved this issue before!
>
> Thanks for your help in advance!
>
> Best Regards,
>
> Lajos
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> <mailto:gstreamer-devel at lists.freedesktop.org>
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> --
> Andoni Morales Alastruey
>
> LongoMatch:The Digital Coach
> http://www.longomatch.ylatuya.es
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140410/258d7b50/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: support-seeking-on-multifilesink.patch
Type: text/x-patch
Size: 8290 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140410/258d7b50/attachment-0001.bin>
More information about the gstreamer-devel
mailing list