How to read an specified frame from an MPEG-TS video file?

Marcus Nascimento marcus.cps at gmail.com
Thu Oct 31 13:48:25 CET 2013


Hi Yashil,

I'm very interested in this solution too.
I believe you are a bit ahead of me.
Please, let me know if you find a good solution.

If I manage to do it, I'll let you know.

Thanks very much,
Marcus


On Wed, Oct 30, 2013 at 3:53 PM, Yashil <yashil1 at yahoo.com> wrote:

> I am trying to write a code that help me to grab e.g. frame #120 from a
> given
> mpeg-ts video file.
>
> I am new to gstreamer. I tried several methods but have not reached my goal
> yet.
>
> The best example I found so far is
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html#section-spoof-appsink
>
> but when I use the above code to read an example .ts file
> https://dl.dropboxusercontent.com/u/43104344/mpts_out.ts
> or several of my own .mts files it fails to pull-preroll and gives the
> following error messages:
>          No accelerated IMDCT transform found
>          0:00:00.405110839  4632   0B775380 ERROR                  libav
> :0:: get_buffer() failed (-1 2 00000000)
>          0:00:00.405740899  4632   0B775380 ERROR                  libav
> :0:: decode_slice_header error
>          0:00:00.406401077  4632   0B7756A0 ERROR                  libav
> :0:: Missing reference picture
>          0:00:00.406705867  4632   0B7756A0 ERROR                  libav
> :0:: Missing reference picture
>          0:00:00.416044436  4632   0B7759C0 ERROR                  libav
> :0:: Cannot combine reference and non-reference fields in the same frame
>          0:00:00.416813339  4632   0B7759C0 ERROR                  libav
> :0:: decode_slice_header error
>          0:00:00.417725301  4632   0B775CE0 ERROR                  libav
> :0:: Missing reference picture
>
> The above errors even occurs sometime when I just simply want to play the
> file using playbin of gstreamer 1.2.0.
>
> Could you please help me to find out how can I write a code based on
> gstreamer 1.2.0 to grab an specified frame from an mpeg-ts video file?
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/How-to-read-an-specified-frame-from-an-MPEG-TS-video-file-tp4663005.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>



-- 
Marcus Nascimento
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131031/b9a8108d/attachment.html>


More information about the gstreamer-devel mailing list