[gst-devel] Duration is not saved in matroska with mjpeg live source

Stefan Kost ensonic at hora-obscura.de
Fri Feb 26 08:11:26 CET 2010

Am 20.02.2010 16:00, schrieb Speedy Gonzales:
> Hi,
> I'm trying to save mjpeg stream from Axis camera to a file using
> matroska container. I use the following pipeline:
> gst-launch-0.10.exe -e souphttpsrc
> location="http://gizycko.axiscam.net/axis-cgi/mjpg/video.cgi?camera=3&resolution=320x240"
> do-timestamp=true ! multipartdemux ! "image/jpeg,width=320,height=240"
> ! matroskamux ! filesink location="x:\data.mkv"
> The resulting file plays correctly, but it looks like it is incomplete
> and mkvinfo reports that segment has duration=0. I can only seek using
> GST_FORMAT_TIME and can't query duration.
> mkvinfo dump:
> http://www.pastebin.com/f1fb26ee4
> As far as I know, this issue should have been fixed:
> https://bugzilla.gnome.org/show_bug.cgi?id=504081
> The parameter -e should force EOS on CTRL-C and matroskamux should
> write duration based on difference between timestamps of last and
> first frame. For some reason it doesn't work.

Maybe you can post this information as a comment to that bug. Also please ensure
you have a version new enought to contain that fix (try git version if in doubt).


> I spend many hours on this and would appreciate any help.
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

More information about the gstreamer-devel mailing list