AnsweredAssumed Answered

How to use gsreamer decode .TS media file

Question asked by JIMMY CHEN on Nov 23, 2016
Latest reply on Nov 30, 2016 by JIMMY CHEN

Hi Sir,

 

I use imx6q, linux version is 3.14.28.

I want to decode ".ts" media file. (video->h264,audio->aac)

MOVIE download path : https://drive.google.com/file/d/0ByyuKxABzHV7SUZid2dLZlVNTU0/view?usp=sharing

When I use command as below can decode h264 video.

gst-launch-1.0 filesrc location=/PTS_HD_AAC_5MIN.ts typefind=false ! "video/mpegts, systemstream=(boolean)true, mpegversion=(int)2" ! aiurdemux ! queue ! vpudec ! imxv4l2sink

 

I will add audio mux to play can play failed.

command & error message:
gst-launch-1.0 filesrc location=/PTS_HD_AAC_5MIN.ts typefind=false ! "video/mpegts" ! aiurdemux name=demux demux. ! queue max-size-buffers=0 max-size-time=0 ! vpudec ! queue ! overlaysink demux. ! queue ! beepdec ! autoaudiosink
......
[INFO] Product Info: i.MX6Q/D/S
====== VPUDEC: 4.0.3 build on Mar 14 2016 11:41:27. ======
wrapper: 1.0.58 (VPUWRAPPER_ARM_LINUX Build on Mar 14 2016 11:35:40)
vpulib: 5.4.28
firmware: 3.1.1.46063
Pipeline is PREROLLING ...
Demux core /usr/lib/imx-mm/parser/lib_rm_parser_arm11_elinux.so error or missed!
(Err: /usr/lib/imx-mm/parser/lib_rm_parser_arm11_elinux.so: cannot open shared object file: No such file or directory)
Caught SIGSEGV
#0 0x76cb5ee0 in poll () from /lib/libc.so.6
#1 0x76fce4c0 in ?? ()

 

 

I try to "playbin" command , but play hang-up.

command & error message:

gst-launch-1.0 playbin uri=file:///PTS_HD_AAC_5MIN.ts video-sink="imxv4l2sink device=/dev/video17" audio-sink="alsasink device=plughw:0"

......

video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)byte-stream, width=(int)1920, height=(int)1088, framerate=(fraction)30/1
------------------------
[INFO] Product Info: i.MX6Q/D/S
====== VPUDEC: 4.0.3 build on Mar 14 2016 11:41:27. ======
wrapper: 1.0.58 (VPUWRAPPER_ARM_LINUX Build on Mar 14 2016 11:35:40)
vpulib: 5.4.28
firmware: 3.1.1.46063

====== BEEP: 4.0.3 build on Mar 14 2016 11:41:00. ======
Core: AAC decoder Wrapper build on Apr 22 2014 09:43:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Jun 19 2014 18:30:32.
[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0
[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0

 

How to correct to decode .ts media file ? Thanks!

Outcomes