![]() |
![]() |
![]() |
![]() |
Command-line application for testing multimedia target setup
testapp-cmdline [options] [cmdfile]
ARM, PowerPC, SH, x86
The testapp-cmdline command-line utility allows you to send commands directly to io-media without having to write and compile programs. It supports commands that map directly to io-media API calls, as well as a number of commands to facilitate scripting and a “help” command.
You can use testapp-cmdline in various situations when you want to talk to io-media without going through the MME; for instance, when the MME does not seem to work and you want to find out whether the problem lies inside or outside io-media.
You can use this utility to see what event the MME is receiving from its io-media graph, and to ensure that io-media is properly configured and can play files, that the required graphs can be created and attached, and that audio and video output devices are correctly attached to the system.
The example below shows the user input and the utility output from a testapp-cmdline session:
# testapp-cmdline -Dfile=/home/wojtek/tunes/Rattims_Friezz.mp3 000.001 Created graph 'trackplayer/cmdlinetest' 000.003 Attached audio output 'snd:/dev/snd/pcmPreferredp', ID=0 > AttachInput %file 1 011.354 Calling iom_attach_input( "/home/wojtek/tunes/Rattims_Friezz.mp3", 1 ) 011.508 Event 4 (STATUS), 32 bytes: trk=1, state=1, speed=1000 > play 013.801 Calling iom_play() 013.803 Event 4 (STATUS), 32 bytes: trk=1, state=3, speed=1000 013.803 Event 14 (METADATA), 40 bytes: trk=0, cur=0 Track id 1, audio info: codec='M1A3', bitrate=128000, 2ch 44100Hz, 0 images Have metadata, 0 strings 013.878 Event 4 (STATUS), 32 bytes: trk=1, state=4, speed=1000 > quit #
The lines starting with a ">" prompt are user-input commands; the other lines are output from testapp-cmdline.
mmecli, mmexplore, the Introduction to the MME chapter MME Quickstart Guide
![]() |
![]() |
![]() |
![]() |