Good day fellow programmers,I am trying to play a .ts file with gstreamer straight on a RPi.Gstreamer-1.0 as well as gst-omx have been successfully installed and this example pipeline runs like a charm:
gst-launch-1.0 -v filesrc location=h264_720p_hp_5.1_6mbps_ac3_planet.mp4 ! qtdemux ! h264parse ! omxh264dec ! autovideosink
It actually even works using
gst-launch-1.0 playbin uri=file:/root/h264_720p_hp_5.1_6mbps_ac3_planet.mp4
However if I try to use playbin to play a .ts file it actually does run it but only with a very poor frame rate which makes this approach unusable.
If I try to build a custom pipeline similar to one shown above I am stuck with 'tsparse' apparently being incompatible with 'omxmpeg2videodec'.
Does any one no of a good MP4 player for Raspbian that takes up small amount of storage It would need to be GUI or terminal run. Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute. This is in addition to many other codecs supported in software and you can purchase licenses from the Raspberry Pi Store for MPEG-2 and VC-1 hardware decoding for just a few bucks.
This is what I run:
Which outputs this error:
Does anyone has an idea how I could get gstreamer to fluently play mpeg2-ts files?
My goal is to play http unicast mpeg2-ts streams provided by mumudvb on the same RPi.
Thanks for your help, it would be greatly appreciated!
Edit: omxplayer plays the .ts file perfectly smooth so I don't think my problem has got anything to do with the hardware or the file.
Plox
PloxPlox
2 Answers
The problem is that I used tsparse. After demuxing the stream it is no longer a TS file and one therefor has to use mpegvideoparse or similar parser elements.
PloxPlox
I am using like this to play ts in Ubuntu. gst-launch-1.0 souphttpsrc location=http://xxx.xxx.x.xx/location/test.ts ! tsdemux name=d d.video_0324 ! queue ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! ximagesink.
FYI, if playbin is working, you can generate xdot grapfile by setting GST_DEBUG_DUMP_DOT_DIR var. Then analyse the xdot and find the solution.
mahendiran.bmahendiran.b