用Gstreamer-1.0播放mpeg2ts

时间:2016-07-07 10:56:50

标签: gstreamer embedded-linux multimedia mpeg2-ts mpeg-2

我正在尝试使用Gstreamer-1.0播放.ts文件以及gst-omx已成功安装。 尝试使用以下命令行格式播放ts视频但无法播放。

test@test-Gardenia:~/Videos$ gst-launch-1.0 -v filesrc location= mpeg2.ts ! tsdemux  !  mpegvideoparse ! omxmpeg2dec ! videoconvert ! ximagesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Internal data stream error.
Additional debug info:
mpegtsbase.c(1347): mpegts_base_loop (): /GstPipeline:pipeline0/GstTSDemux:tsdemux0:
stream stopped, reason not-linked
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPipeline:pipeline0/GstTSDemux:tsdemux0.GstPad:audio_0044: caps = "NULL"
Freeing pipeline ...

尝试下面的命令,但没有工作。

test@test:~/Videos$ gst-launch-1.0 filesrc location= mpeg2.ts ! tsdemux ! tsparse ! omxmpeg2dec ! videoconvert ! ximagesink
WARNING: erroneous pipeline: could not link mpegtsparse2-0 to omxmpeg2videodec-omxmpeg2dec0

任何人都可以使用gstreamer帮助我如何使用mpeg2编解码器格式播放.ts文件

0 个答案:

没有答案