<div dir="ltr"><div>Hi Yashil,</div><div><br></div>I'm very interested in this solution too.<div>I believe you are a bit ahead of me.</div><div>Please, let me know if you find a good solution.</div><div><br></div><div>
If I manage to do it, I'll let you know.</div><div><br></div><div>Thanks very much,</div><div>Marcus</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 3:53 PM, Yashil <span dir="ltr"><<a href="mailto:yashil1@yahoo.com" target="_blank">yashil1@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to write a code that help me to grab e.g. frame #120 from a given<br>
mpeg-ts video file.<br>
<br>
I am new to gstreamer. I tried several methods but have not reached my goal<br>
yet.<br>
<br>
The best example I found so far is<br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html#section-spoof-appsink" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html#section-spoof-appsink</a><br>
<br>
but when I use the above code to read an example .ts file<br>
<a href="https://dl.dropboxusercontent.com/u/43104344/mpts_out.ts" target="_blank">https://dl.dropboxusercontent.com/u/43104344/mpts_out.ts</a><br>
or several of my own .mts files it fails to pull-preroll and gives the<br>
following error messages:<br>
No accelerated IMDCT transform found<br>
0:00:00.405110839 4632 0B775380 ERROR libav<br>
:0:: get_buffer() failed (-1 2 00000000)<br>
0:00:00.405740899 4632 0B775380 ERROR libav<br>
:0:: decode_slice_header error<br>
0:00:00.406401077 4632 0B7756A0 ERROR libav<br>
:0:: Missing reference picture<br>
0:00:00.406705867 4632 0B7756A0 ERROR libav<br>
:0:: Missing reference picture<br>
0:00:00.416044436 4632 0B7759C0 ERROR libav<br>
:0:: Cannot combine reference and non-reference fields in the same frame<br>
0:00:00.416813339 4632 0B7759C0 ERROR libav<br>
:0:: decode_slice_header error<br>
0:00:00.417725301 4632 0B775CE0 ERROR libav<br>
:0:: Missing reference picture<br>
<br>
The above errors even occurs sometime when I just simply want to play the<br>
file using playbin of gstreamer 1.2.0.<br>
<br>
Could you please help me to find out how can I write a code based on<br>
gstreamer 1.2.0 to grab an specified frame from an mpeg-ts video file?<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/How-to-read-an-specified-frame-from-an-MPEG-TS-video-file-tp4663005.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/How-to-read-an-specified-frame-from-an-MPEG-TS-video-file-tp4663005.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<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><br clear="all"><div><br></div>-- <br>Marcus Nascimento<br><br>
</div>