<div dir="ltr">Are properly closing the file? I.e., if you're using gst-launch are you adding the -e switch to the command, or alternatively, if you're using the SDK, are you sending an EOS and probing for it on the filesink sink pad?</div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-09 11:32 GMT+01:00 Paul Barber <span dir="ltr"><<a href="mailto:paul.barber@oncology.ox.ac.uk" target="_blank">paul.barber@oncology.ox.ac.uk</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
Continuing with my project to display live video on 2 monitors and also save to file, I am confused about how to save an MPEG2 compressed file. This is for pictures only, no sound, and on Ubuntu 120.04 with GStreamer 1.2. I have tried these combinations:<br>
<br>
avenc_mpeg2video ! filesink<br>
This generates a file that can be viewed with Totem but something seems wrong with the meta data. Totem does not know how long the video is, so the progress bar through the video does not work.<br>
<br>
avenc_mpeg2video ! mpegpsmux ! filesink<br>
This generates a playable file approximately 50% of the time. When it can be read by Totem everything looks fine. When it cannot be read, Totem complains, "An error occurred. Could not determine type of stream."<br>
<br>
avenc_mpeg2video ! avimux ! filesink<br>
This generates a playable file. But other programs like Adobe Premier are not happy with this MPEG2 encoded video in an AVI container.<br>
<br>
Could anyone give some advice on the best way to save a live stream to a compressed video file. Please let me know if you need more information.<br>
<br>
Thanks,<br>
Paul.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>