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. 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
You need to emit an EOS for the muxer to properly close the file (and report the total duration). Florent ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Hi,
Thanks for help. I've found out that this case is described here: http://www.gstreamer.net/wiki/FAQ#Whencapturingfromavideoand.2BAC8-oraudiosource.2Chowtomakerecordingstopcorrectly.3F and here: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html Is there a tutorial on recording with GStreamer? M. Gonzales 2010/2/21 Florent <[hidden email]>: > Hi, > > You need to emit an EOS for the muxer to properly close the file (and > report the total duration). > > Florent > > ------------------------------------------------------------------------------ > 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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by Speedy Gonzales-2
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). Stefan > > 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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel ------------------------------------------------------------------------------ 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |