Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Playing video files: (6 Items)
   
Playing video files  
Hello,

I'm trying to play video files of different format (.mp4, .mpg, .avi) but getting errors (see log below). As far as I 
understand, I need to get an appropriate video decoder. Can someone tell how to get it or what else I'm missing? I'm 
running QNX 6.6.0 with Apps and Media SDK on imx6 Sabrelite system. 

# pps
slog2_api: cannot connect to slogger2 server...errno=No such file or directory
pps: slog2_register() failed (No such file or directory)
pps: NOTICE: PPS initializing
pps: NOTICE: PPS attaching /pps
pps: NOTICE: PPS starting
# mkdir -p /pps/services/multimedia/renderer
# mm-renderer -c -v -e
55.483[5] Initializing "Playlist engine plugin" (mmr-playlist-engine.so)
57.510[3] newctrl: dll(/lib/dll/mmedia/audio_streamer.so) already on clist
57.513[3] newctrl: dll(/lib/dll/mmedia/fildes_streamer.so) already on clist
57.589[3] newctrl: dll(/lib/dll/mmedia/http_streamer.so) already on clist
57.595[3] newctrl: dll(/lib/dll/mmedia/mdev_streamer.so) already on clist
57.596[1] Unable  to Initialize the AOI streamers
57.641[5] Initialized "Playlist engine plugin" (mmr-playlist-engine.so)
57.651[5] Initializing "Single-track engine plugin" (mmr-track-engine.so)
57.652[5] Initialized "Single-track engine plugin" (mmr-track-engine.so)
57.715[5] Initializing "QNX MMF routing plugin" (mmr-mmf-routing.so)
57.715[5] load config from: /etc/system/config/aoi.conf

57.716[2] could not open /etc/system/config/aoi.conf for read.
57.717[5] MmInit: -1 DLL ignored from conf /etc/system/config/aoi.conf
57.779[3] newctrl: dll(/lib/dll/mmedia/audio_streamer.so) already on clist
57.837[3] newctrl: dll(/lib/dll/mmedia/fildes_streamer.so) already on clist
57.941[3] newctrl: dll(/lib/dll/mmedia/http_streamer.so) already on clist
57.944[3] newctrl: dll(/lib/dll/mmedia/mdev_streamer.so) already on clist
58.333[5] Could not load the file2b_streamer
58.334[5] Could not load the ivahd_video_decoder
58.337[5] Could not load the flac_parser
58.340[5] Could not load the mpeg2ps_parser
58.340[5] Could not load the mkv_parser
58.343[5] Could not load the asf_parser
58.346[5] Could not load the cloudfs_streamer
58.347[5] Could not load the dupfd_streamer
58.347[5] Could not load the rtsp_streamer
58.348[5] Could not load the remote_frame_writer
58.349[6] MMF router (built on Feb 22 2014 at 19:06:57) initialized
58.349[5] Initialized "QNX MMF routing plugin" (mmr-mmf-routing.so)
58.350[5] Initialization complete
#
#
#
# mmrplay -a "" -v screen: /root/html.mp4
36.291[6] New client ID '@control.17180098587' (@control.17180098587.n0.p229403.u0.g0)
36.294[6] Created context 'testplayer' owned by pid 229403 (0:0), mode=0500
36.295[6] Created context 'testplayer' as #0 for client '@control.17180098587'
36.297[6] Looking for a router for track /root/html.mp4 (2 track params)
36.297[6] Picked router 'MMF router' for track /root/html.mp4
36.298[6] Creating engine 'Single-track engine' for track /root/html.mp4
36.301[5] Found a hint for URL.
36.301[6] in apply_prefetch_parameters
36.311[5] IsStreamPlaylist: playlist initial tag not found... consider it a non playlist stream
36.314[5] Skipping audio graph -- no audio device.
36.343[5] Created the mp4_parser filter based on the parser tag
36.344[5] Skipping Audio subgraph because there is no device specified.
36.344[6] Video writer getting PID 229403.
36.344[5] Finding decoder for stream 1.
36.345[5] Skipping queue after parser.
36.345[5] Couldn't create the ivahd_video_decoder filter (based on the video-decoder tag), mmerr=4046, looking for 
another one
36.369[2] Couldn't find a suitable video-decoder filter, mmerr=4047
36.370[5] Couldn't find a decoder for the parser output.
36.371[2] The create() call in plugin MMF router failed
36.371[3] Error 5 (mmf#4047) in mmr_input_attach():
36.371[3] Couldn't create routing plugin
36.371[2] Engine 'Single-track engine' failed to create
36.372[5] inputAttach failed (5, mmf#4047:Can't build graph)
/root/html.mp4:...
View Full Message
RE: Playing video files  
Hi Mykhailo,

Do the files play in audio only? Remove the "-v screen:" argument to mmrplay. If they play in audio only then it is 
related to the video decoder (you'd be looking to add imx6_video_decoder.so to your /lib/dll/mmedia directory); if they 
do not play in audio only then this needs to be understood before your tackle video.

-- 
Ryan J. Allen
QNX Software Systems

Re: RE: Playing video files  
Hi, Ryan
Thank you for the fast response.

I have tried playing the file in audio only: # mmrplay /root/html.mp4 and it was successful. After that I found a 
imx6_video_decoder.so in old accelerator kit and copied it to /lib/dll/mmedia. However, I got an error while trying to 
play html.mp4 with video: 17.460[2] AoAdd: couldn't load /lib/dll/mmedia/imx6_video_decoder.so (Library cannot be found)
.
Shall I copy any other files from that accelerator kit or is it any other way to get this decoder library?
RE: RE: Playing video files  
You're most likely missing a required library on the target (my guess is libimxvpuapi.so.1). If you start mm-renderer 
with the environment variable set:
  DL_DEBUG=libs
The linker will be verbose about attempts to load libraries and their dependencies. It can be helpful to track down 
required libraries.

-- 
Ryan J. Allen
QNX Software Systems

-----Original Message-----
From: Mykhailo Rimel [mailto:community-noreply@qnx.com] 
Sent: Thursday, June 11, 2015 11:00 AM
To: general-multimedia
Subject: Re: RE: Playing video files

Hi, Ryan
Thank you for the fast response.

I have tried playing the file in audio only: # mmrplay /root/html.mp4 and it was successful. After that I found a 
imx6_video_decoder.so in old accelerator kit and copied it to /lib/dll/mmedia. However, I got an error while trying to 
play html.mp4 with video: 17.460[2] AoAdd: couldn't load /lib/dll/mmedia/imx6_video_decoder.so (Library cannot be found)
.
Shall I copy any other files from that accelerator kit or is it any other way to get this decoder library?



_______________________________________________

General
http://community.qnx.com/sf/go/post113946
To cancel your subscription to this discussion, please e-mail general-multimedia-unsubscribe@community.qnx.com
Re: RE: RE: Playing video files  
The missing library was indeed libimxvpuapi.so.1. I copied it to /usr/lib and tried playing the video again. I got a 
following error:
17.691[2] skeleton_video_decoder.c:911  imx6_video_decoder-225306->SetOutputFormat:Input media type or fourcc: '1CVA'---
'I420'
17.692[5] skeletonmmf.c:391     imx6_video_decoder-225306->imxmmf_open:input fourcc  '1CVA'
17.693[2] skeletonmmf.c:461     imx6_video_decoder-225306->imxmmf_open:vpu_Init failed. err=-1
17.694[2] skeleton_video_decoder.c:914  imx6_video_decoder-225306->SetOutputFormat:could not open the vpu codec
...
/root/html.mp4: error 1 "MMR_ERROR_UNKNOWN" (errno#19,"Can't build graph").

After that I copied a folder named 'vpu' to /lib/firmware and played the video again, the VPU library was found, but I 
got a segmentation fault in the end: Process 225306 (mm-renderer) terminated SIGSEGV code=1 fltno=11 ip=7829a7a2(/proc/
boot/libscreen.so.1@screen_post_window+0xd1) mapaddr=0000a7a2. ref=00000001.

I guess it might be caused by library versions mismatch as the accelerator kit that was used as a source of the 
libraries is pretty old. Do you have any other suggestions?
Re: RE: RE: Playing video files  
>>>I'm running QNX 6.6.0 with Apps and Media SDK on imx6 Sabrelite system. 

If this is true, why are you taking components from the old "accelerator kit"?

>>>the accelerator kit that was used as a source of the libraries is pretty old. 

Have you tried the A&M reference image or your target?  It plays videos using A&M components - so take all your 
components from there.