Forum Topic - No Audio heard when stated Play using mmecli:
   
No Audio heard when stated Play using mmecli  
Hello,

Iam using mmecli command line option to play the tracks.
I configured "/dev/snd/pcmC2D0p" as defualt output device in the output tables.
I had done the following steps.Iam having tracks in /media/drive folder.

# qdbc -d /dev/qdb/mme
Connected to "/dev/qdb/mme".  Use 'ctrl-C' to end.
SQL> select * from outputdevices;
Rows: 1  Cols: 6
Names:  +outputdeviceid+type+available+permanent+name+devicepath+
00000:  |1|1|1|1|defaultoutput|snd:/dev/snd/pcmC2D0p|
SQL>
#
#
#
# mmecli newtrksession l "select fid from library where ftype !=5"
(rc=0,errno=0) new trksessionid=1.  Execution Time=0.028
# mmecli settrksession 1
(rc=0,errno=0) Set trksessionid=1.  Execution Time=0.057
# mmecli trksession_get_info
(rc=0,errno=0) Track Session ID: 1, Current Track: 1, Total Tracks: 17.  Executi                                        
     on Time=0.012
#
#
# mmecli play_attach_output 1 1
(rc=0,errno=0) Attached output 1 to 1.  Execution Time=0.024
#
#
#
# mmecli play
(rc=0,errno=0) Playing from tracksession fid/bid = 0.  Execution Time=0.174

But iam not able to hear the sound .Please find the sloginfo


Jan 01 00:01:23    5    27   200 MDP:mdp_mgr_init(270): Starting metadata plug-i                                        
     n initialization.
Jan 01 00:01:23    5    27     0 MME:dbs_init(663): Starting database synchroniz                                        
     er initialization.
Jan 01 00:01:35    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/AlbumArtSmall.jpg".
Jan 01 00:01:35    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/AlbumArtSmall.jpg".
Jan 01 00:01:35    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/Folder.jpg".
Jan 01 00:01:35    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/Folder.jpg".
Jan 01 00:01:35    5    20     1 io-media-generic/aoi: mpega_parser: ID3TagV2.3                                         
     too big (194560bytes) pre-parsing ..
Jan 01 00:01:35    3    20     1 io-media-generic/aoi: PreParseID3Tag() offset 2                                        
     789 truncating at offset on invalid frame id from size = 4043
Jan 01 00:01:35    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/Seethamma Vakitlo Sirimalle Chettu                                   
           (2012)/AlbumArtSmall.jpg".
Jan 01 00:01:35    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/Seethamma Vakitlo Sirimalle Chettu (                                   
          2012)/AlbumArtSmall.jpg".
Jan 01 00:01:35    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/Seethamma Vakitlo Sirimalle Chettu                                   
           (2012)/Folder.jpg".
Jan 01 00:01:35    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/Seethamma Vakitlo Sirimalle Chettu (                                   
          2012)/Folder.jpg".
Jan 01 00:03:23    5    20     1 io-media-generic/mmf: writer hint snd:* found
Jan 01 00:03:23    5    20     1 io-media-generic/trackplayer: Skipping video su                                        
     bgraph because there is no video device specified.
Jan 01 00:03:23    5    20     1 io-media-generic/aoi: audio_writer setting AOR_                            ...
View Full Message
Re: No Audio heard when stated Play using mmecli  
I think this below is your issue. You has mme setup to sync images and
tried to play one of the images.

Change your trksession query to select ftype=1 (audio) and try again.

Regards,
Gilles


On 13-07-19 1:45 AM, "kandregula vijaya santhi"
<community-noreply@qnx.com> wrote:

MME:_attachinput(3858): Could not attach input (/media/drive///Folder.jpg)
to controlcontext default (fid=4).  errno=5

Re: No Audio heard when stated Play using mmecli  
Thank You Gilles

I tried but still aim unable to hear audio
Please find the below log

# mmecli newtrksession l "select fid from library where ftype=1"
(rc=0,errno=0) new trksessionid=1.  Execution Time=0.017
# mmecli settrksession 1
(rc=0,errno=0) Set trksessionid=1.  Execution Time=0.052
#
#
# mmecli play
(rc=0,errno=0) Playing from tracksession fid/bid = 0.  Execution Time=0.107
#an 01 00:00:36    3    26   998 QDB: created missing database mme
Jan 01 00:00:40    5    27   200 MDP:mdp_mgr_init(270): Starting metadata plug-i                                        
     n initialization.
Jan 01 00:00:40    5    27     0 MME:dbs_init(663): Starting database synchroniz                                        
     er initialization.
Jan 01 00:00:51    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/AlbumArtSmall.jpg".
Jan 01 00:00:51    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/AlbumArtSmall.jpg".
Jan 01 00:00:51    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/Folder.jpg".
Jan 01 00:00:51    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/Folder.jpg".
Jan 01 00:01:27    5    20     1 io-media-generic/mmf: writer hint snd:* found
Jan 01 00:01:27    5    20     1 io-media-generic/trackplayer: Skipping video su                                        
     bgraph because there is no video device specified.
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer setting AOR_                                        
     TYPE_POINTER resources PcmQueueFilter to 155f40
Jan 01 00:01:27    5    20     1 io-media-generic/mmf: Configuring the queue for                                        
      -1 bytes, lw = 0, hw = 0, thr = -1.
Jan 01 00:01:27    5    20     1 io-media-generic/trackplayer: Skipping video su                                        
     bgraph because there is no device specified.
Jan 01 00:01:27    5    20     1 io-media-generic/mmf: Configuring the queue for                                        
      2116800 bytes, lw = 423360, hw = 1693440, thr = -1.
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer using output                                        
      device: '/dev/snd/pcmC2D0p'
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer asking for S                                        
     igned 16-bit Little Endian, 1..2x17640B frags, 44100Hz, bps=4, 2ch
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer settings:  S                                        
     igned 16-bit Little Endian, 3x17640B frags, 44100Hz, bps=4, 2ch, Q time 300ms
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer PGA_Streamer                                        
     Create() push mode = 0 adjusting chunk_size from 17640bytes to 17640bytes
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer using mixer                                         
     device '/dev/snd/mixerC2D0'
Jan 01 00:01:27    5    20     1 io-media-generic/trackplayer: Skipping subgraph                                        
      1 because there is no device specified.
Jan 01 00:01:27    3    20     1 io-media-generic/trackplayer: Couldn't subscrib                                        
     e to the MM_EV_USER event.
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: MediaClock Resume()
#
#mmecli stop



why iam getting the below error
"Skipping subgraph  1 because there is no device specified"

Also when i do "mmecli stop" there is no response.I need to power off and on the device.
Re: No Audio heard when stated Play using mmecli  
It looks like you're trying to play to a capture device.‎ The naming convention is /dev/snd/pcmP<port #>D<device#> for 
playback devices.

Sent from my BlackBerry 10 smartphone on the Rogers network.
From: kandregula vijaya santhi
Sent: Monday, July 22, 2013 1:06 AM
To: development-multimedia
Reply To: development-multimedia@community.qnx.com
Subject: Re: No Audio heard when stated Play using mmecli


Thank You Gilles

I tried but still aim unable to hear audio
Please find the below log

# mmecli newtrksession l "select fid from library where ftype=1"
(rc=0,errno=0) new trksessionid=1.  Execution Time=0.017
# mmecli settrksession 1
(rc=0,errno=0) Set trksessionid=1.  Execution Time=0.052
#
#
# mmecli play
(rc=0,errno=0) Playing from tracksession fid/bid = 0.  Execution Time=0.107
#an 01 00:00:36    3    26   998 QDB: created missing database mme
Jan 01 00:00:40    5    27   200 MDP:mdp_mgr_init(270): Starting metadata plug-i                                        
     n initialization.
Jan 01 00:00:40    5    27     0 MME:dbs_init(663): Starting database synchroniz                                        
     er initialization.
Jan 01 00:00:51    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/AlbumArtSmall.jpg".
Jan 01 00:00:51    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/AlbumArtSmall.jpg".
Jan 01 00:00:51    3    27   200 MDP:new_file_group(790): No metadata plug-in fo                                        
     und for group 00004000 for file "/media/drive/Folder.jpg".
Jan 01 00:00:51    3    27   200 MDP:mdp_mgr_metadata_get_int(1088): No MDP foun                                        
     d for group 00004000 for file "/media/drive/Folder.jpg".
Jan 01 00:01:27    5    20     1 io-media-generic/mmf: writer hint snd:* found
Jan 01 00:01:27    5    20     1 io-media-generic/trackplayer: Skipping video su                                        
     bgraph because there is no video device specified.
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer setting AOR_                                        
     TYPE_POINTER resources PcmQueueFilter to 155f40
Jan 01 00:01:27    5    20     1 io-media-generic/mmf: Configuring the queue for                                        
      -1 bytes, lw = 0, hw = 0, thr = -1.
Jan 01 00:01:27    5    20     1 io-media-generic/trackplayer: Skipping video su                                        
     bgraph because there is no device specified.
Jan 01 00:01:27    5    20     1 io-media-generic/mmf: Configuring the queue for                                        
      2116800 bytes, lw = 423360, hw = 1693440, thr = -1.
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer using output                                        
      device: '/dev/snd/pcmC2D0p'
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer asking for S                                        
     igned 16-bit Little Endian, 1..2x17640B frags, 44100Hz, bps=4, 2ch
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer settings:  S                                        
     igned 16-bit Little Endian, 3x17640B frags, 44100Hz, bps=4, 2ch, Q time 300ms
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer PGA_Streamer                                        
     Create() push mode = 0 adjusting chunk_size from 17640bytes to 17640bytes
Jan 01 00:01:27    5    20     1 io-media-generic/aoi: audio_writer using mixer                                         
     device '/dev/snd/mixerC2D0'
Jan 01 00:01:27    5    20     1 io-media-generic/trackplayer: Skipping subgraph                                        
      1 because there is no device specified.
Jan 01 00:01:27    3    20     1...
View Full Message
Attachment: HTML sf-attachment-mime15357 12.01 KB
Re: No Audio heard when stated Play using mmecli  
Thank You Adrian.

Iam having having the following configuration in my device

# ls -l /dev/snd/
total 0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC1
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC2
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC0D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC1D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC2D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D1p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D1p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D1p
lrw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmPreferredc -> pcmC0D0c
lrw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmPreferredp -> pcmC0D1p


The ones which are ending with "p" are used for playback and with "c" are used for capture.
And iam using "pcmC2D0p" for playback

# qdbc -d /dev/qdb/mme
Connected to "/dev/qdb/mme".  Use 'ctrl-C' to end.

SQL> select * from outputdevices;
Rows: 1  Cols: 6
Names:  +outputdeviceid+type+available+permanent+name+devicepath+
00000:  |1|1|1|1|defaultoutput|snd:/dev/snd/pcmC2D0p|
SQL>


Also could you please tell what the below error mean

"Skipping subgraph  1 because there is no device specified"


Thanks,
Vijaya Santhi.
Re: No Audio heard when stated Play using mmecli  
I'd suggest you use preferredp.

It looks like you have 3 cards with multiple ports per card. Are you sure your outputs come out of the device you hooked
 up to?

Sent from my BlackBerry 10 smartphone on the Rogers network.
From: kandregula vijaya santhi
Sent: Monday, July 22, 2013 8:10 AM
To: development-multimedia
Reply To: development-multimedia@community.qnx.com
Subject: Re: No Audio heard when stated Play using mmecli


Thank You Adrian.

Iam having having the following configuration in my device

# ls -l /dev/snd/
total 0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC1
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC2
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC0D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC1D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC2D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D1p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D1p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D1p
lrw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmPreferredc -> pcmC0D0c
lrw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmPreferredp -> pcmC0D1p


The ones which are ending with "p" are used for playback and with "c" are used for capture.
And iam using "pcmC2D0p" for playback

# qdbc -d /dev/qdb/mme
Connected to "/dev/qdb/mme".  Use 'ctrl-C' to end.

SQL> select * from outputdevices;
Rows: 1  Cols: 6
Names:  +outputdeviceid+type+available+permanent+name+devicepath+
00000:  |1|1|1|1|defaultoutput|snd:/dev/snd/pcmC2D0p|
SQL>


Also could you please tell what the below error mean

"Skipping subgraph  1 because there is no device specified"


Thanks,
Vijaya Santhi.



_______________________________________________

Development
http://community.qnx.com/sf/go/post103406
To cancel your subscription to this discussion, please e-mail development-multimedia-unsubscribe@community.qnx.com
Attachment: HTML sf-attachment-mime15364 7.05 KB
Re: No Audio heard when stated Play using mmecli  
The "error" is a notification that there is no video output specified, so it isn't trying to build a video subgraph.

Sent from my BlackBerry 10 smartphone on the Rogers network.
From: kandregula vijaya santhi
Sent: Monday, July 22, 2013 8:10 AM
To: development-multimedia
Reply To: development-multimedia@community.qnx.com
Subject: Re: No Audio heard when stated Play using mmecli


Thank You Adrian.

Iam having having the following configuration in my device

# ls -l /dev/snd/
total 0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC1
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 controlC2
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC0D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC1D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 mixerC2D0
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC0D1p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC1D1p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D0c
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D0p
-rw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmC2D1p
lrw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmPreferredc -> pcmC0D0c
lrw-rw-rw-  1 root      0                 0 Jan 01 00:29 pcmPreferredp -> pcmC0D1p


The ones which are ending with "p" are used for playback and with "c" are used for capture.
And iam using "pcmC2D0p" for playback

# qdbc -d /dev/qdb/mme
Connected to "/dev/qdb/mme".  Use 'ctrl-C' to end.

SQL> select * from outputdevices;
Rows: 1  Cols: 6
Names:  +outputdeviceid+type+available+permanent+name+devicepath+
00000:  |1|1|1|1|defaultoutput|snd:/dev/snd/pcmC2D0p|
SQL>


Also could you please tell what the below error mean

"Skipping subgraph  1 because there is no device specified"


Thanks,
Vijaya Santhi.



_______________________________________________

Development
http://community.qnx.com/sf/go/post103406
To cancel your subscription to this discussion, please e-mail development-multimedia-unsubscribe@community.qnx.com
Attachment: HTML sf-attachment-mime15367 6.63 KB
Re: No Audio heard when stated Play using mmecli  
Thank You Adrian

I will try to check on the DSP chip side whether settings are proper.
Could you please confirm me from the logs that mme is sending the data to the audio channel configured?By this i want to
 make sure that there is no problem from aviage mme side.