This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux: gst-launch-1.0 filesrc location=testvideo.mpg ! tsdemux ! video/x-h264 ! h264parse ! avdec_h264 ! autovideosink sync=false

Other Parts Discussed in Thread: TDA2

Tool/software: Linux

Hello, I want to play *.mpg video file on TDA2, I'm using gstreamer now, I don't know how to write pipeline,

Can you ask next, thank!

Below is the pipeline I tried to play, but it doesn't work properly.

**********************************************************************************************************************************

root@dra7xx-evm:/opt/vision_sdk# gst-launch-1.0 filesrc location=testvideo.mpg ! tsdemux ! video/x-h264 ! h264parse ! avdec_h264 ! autovideosink sync=false
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Internal data stream error.
Additional debug info:
../../../git/gst/mpegtsdemux/mpegtsbase.c(1347): mpegts_base_loop (): /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
stream stopped, reason error
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
root@dra7xx-evm:/opt/vision_sdk#
root@dra7xx-evm:/opt/vision_sdk#

  • Hi
    What is the vision-sdk version used? VISION_SDK v3.06 has support for video playback and display on waylandsink .
    What you are trying is an explicit pipeline and you need to know the format of the stream(h264, mpeg4 mpeg2, vc1 etc).
    Using playbin to playback will choose the correct parser and decoder.

    You can try
    gst-launch-1.0 playbin uri=file:///home/root/testvideo.mp4 video-sink=waylandsink

    or

    gst-play-1.0 --videosink waylandsink testvideo.mp4
    will work.
    This will choose hardware based decoder instead of software decoders(avdec).

    Thanks
    Ramprasad