Author Topic: Add a Marantz amp, and all media stops working....  (Read 3864 times)

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Add a Marantz amp, and all media stops working....
« on: August 09, 2008, 09:58:55 am »
I finally worked out how to add my Marantz amp and set up the pipes so it is controlled by LMCE. Power on/off, Vol up/down, etc all seem to work nicely.

It is setup as a child of "The core/hybrid" object, and I can see the messages in DCERouter.log being relayed to the child objects ok.

But as soon as I set this up, I can no longer play any media - it starts for a split second (I can hear audio) then stops with a message in the top left saying File not found:

In my Xine player log I can see an event that seems to correlate with the problem and is clearly not good!

05      08/09/08 17:38:31.302           ESC[33;1mXineStreamEventListener called on non-initialized stream - aborting commandESC[0m <0xb1dd9b90>

Here is the relevant section:

Code: [Select]
05      08/09/08 17:50:17.338           Xine_Player::CMD_Play_Media() called for id 1001 filename: /home/public/data/videos/Windows Share-media [33]/TV/DrWho/Doctor Who - Season 3/01 Smith and Jones.mp4 () <0xb6d81b90>
05      08/09/08 17:50:17.341           Xine_Player::CMD_Play_Media() stopping PSS <0xb6d81b90>
05      08/09/08 17:50:17.341           Xine_Stream_Factory::GetStream streamID is 0 <0xb6d81b90>
05      08/09/08 17:50:17.393           Created new stream with ID=1001 deint 0  100 0 <0xb6d81b90>
05      08/09/08 17:50:17.393           Xine_Player::CMD_Play_Media() set stream 1001 as last rendering to screen. <0xb6d81b90>
05      08/09/08 17:50:17.393           Xine_Player::CMD_Play_Media() called for id 1001 filename: /home/public/data/videos/Windows Share-media [33]/TV/DrWho/Doctor Who - Season 3/01 Smith and Jones.mp4 () with corresponding stream 0x816cbb8. <0xb6d81b90>
05      08/09/08 17:50:17.399           Opening media without chapters/title position: /home/public/data/videos/Windows Share-media [33]/TV/DrWho/Doctor Who - Season 3/01 Smith and Jones.mp4  <0xb6d81b90>
05      08/09/08 17:50:17.551           Xine_Stream::changePlaybackSpeed no running seekers found <0xb6d81b90>
05      08/09/08 17:50:17.551           Xine engine set new zoom level to X:100, Y:100 <0xb6d81b90>
05      08/09/08 17:50:17.564           Read media A/V information: [AAC 2.0 (libfaad)]/[ISO MPEG-4 (ffmpeg), 624x352] => [pcm]/[39:22] <0xb1e0db90>
05      08/09/08 17:50:17.567           Xine_Player::EVENT_Playback_Started(streamID=1001) <= AV info <0xb1e0db90>
05      08/09/08 17:50:17.574           Read media A/V information: [AAC 2.0 (libfaad)]/[ISO MPEG-4 (ffmpeg), 624x352] => [pcm]/[39:22] <0xb1e0db90>
05      08/09/08 17:50:17.574           Xine_Player::EVENT_Playback_Started(streamID=1001) <= AV info <0xb1e0db90>
05      08/09/08 17:50:17.580           Read media A/V information: [AAC 2.0 (libfaad)]/[ISO MPEG-4 (ffmpeg), 624x352] => [pcm]/[39:22] <0xb6d81b90>
05      08/09/08 17:50:17.580           Xine_Player::EVENT_Playback_Started(streamID=1001) <0xb6d81b90>
05      08/09/08 17:50:18.459           [ID: 1001]  CHAPTER:0 POS:760 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:2665040 (seek 0) t.c. ctr 0 freq 1, <0xb0c7cb90>
05      08/09/08 17:50:18.579           Xine_Player::CMD_Play_Media() ended for filename: /home/public/data/videos/Windows Share-media [33]/TV/DrWho/Doctor Who - Season 3/01 Smith and Jones.mp4 with stream 0x816cbb8. <0xb6d81b90>
05      08/09/08 17:50:19.461           [ID: 1001]  CHAPTER:0 POS:1800 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:2665040 (seek 0) t.c. ctr 1 freq 1, <0xb0c7cb90>
05      08/09/08 17:50:20.465           [ID: 1001]  CHAPTER:0 POS:2800 TITLE:0 SUBTITLE:-1 AUDIO:-1 TOTAL:2665040 (seek 0) t.c. ctr 1 freq 1, <0xb0c7cb90>
05      08/09/08 17:50:21.054           Xine_Player::CMD_Stop_Media() with corresponding stream id 1001 0x816cbb8. <0xb6d81b90>
05      08/09/08 17:50:21.055           Xine_Stream::changePlaybackSpeed no running seekers found <0xb6d81b90>
05      08/09/08 17:50:21.161           Xine_Player::EVENT_Playback_Completed(streamID=1001) <0xb6d81b90>
05      08/09/08 17:50:21.166           XineStreamEventListener called on non-initialized stream - aborting command <0xb1e0db90>
05      08/09/08 17:50:21.437           Closed stream AV with ID=1001 <0xb6d81b90>

As soon as I delete the amp device and reload the router, media comes good again. Add the device back in and the problem comes back....

Can anyone please point me in the right direction on this one????

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Add a Marantz amp, and all media stops working....
« Reply #1 on: August 09, 2008, 07:24:10 pm »
what device category is your amp?

-Thom

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Add a Marantz amp, and all media stops working....
« Reply #2 on: August 10, 2008, 12:55:00 am »
I'm using the existing SR series template (I think Hari made it) so the category is Amps/Preamps/Receivers/Tuners < AV

Don't think I can change that can I? Assumed it should be the way Hari set it....

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Add a Marantz amp, and all media stops working....
« Reply #3 on: August 14, 2008, 01:51:19 am »
any thoughts, Thom?

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Add a Marantz amp, and all media stops working....
« Reply #4 on: August 14, 2008, 12:05:51 pm »
i'd love to know what causes that (known) error...
rock your home - http://www.agocontrol.com home automation

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Add a Marantz amp, and all media stops working....
« Reply #5 on: August 15, 2008, 12:28:16 am »
i'd love to know what causes that (known) error...

Hari - do you mean you know this error? If so, could you tell me what causes it please?

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Add a Marantz amp, and all media stops working....
« Reply #6 on: August 15, 2008, 12:44:43 am »
Colin,

 I would assume that this would have something to do with the Media Scenario setup and not the device setting, as I see it most of the devices -AV -rs232 use 95% the same command group settings, so you think it would affect more than just your Marantz Model.

 Also does it do it with all media, I noticed you are testing an mp4 file in your code above. Did you try other ext types just too see.
Yep, with all media - its just that that mp4 happens to have audio right a the very beginning. Because it stops playback so quickly, the menus are still on screen so unless there is audio, you can't be sure it actually started playing at all!
Quote

 Just throwing things out that I would look at.

 In looking at the template why is the AV device check box not checked and the line states it is not an AV device. I am just asking as I do not know. I have seen other a/v device templates like this as well.
Dunno, Hari made the template, so I don't really want to screw with it unless he says so!
Quote

 In the process incoming commands ruby script I see a process new Command_device_id -1001,XX,XX,XX The only reason I point this out is in your lines in your code Colin the number 1001 is there as well. Just wondering if they maybe related in some way.
hmmm.. not sure, but I think the 1001 in my output you are looking at is the stream ID. Guessing here from something Thom has said before, but I think that a media device doesn't just "play" the media based on the path/filename, I think the media plugin sends a message to another device (app server?) to create a "stream" which is essentially just a logical handle. Then that a command is sent to the device (xine wrapper) to play that stream. I am guessing that the idea here is to make the media mobile, so you can split or move the playback easily to other MDs? But in any case, the log seems to suggest that the stream is being created successfully and passed on. But then the playback seems to contradict this saying that the stream is not initialised, and I guess the "aborting command" is the action that kills the playback. No idea if the "no running seekers" has any relevence...
Quote

 One more thing - When you are in advanced - configuration - devices - core - Marantz. Click on your View entire log in the top right corner of the device screen on the right pane and see what if any errors are found and if it is compiling the code set properly - this is how I found my Denon problems.
Haven't got the device installed at the moment, as I can't use LMCE then! I'm sure I have already read through that log file, but I will reinstall the Marantz and take a look. Thanks!
Quote
rgds,

 Dave

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: Add a Marantz amp, and all media stops working....
« Reply #7 on: August 15, 2008, 01:43:49 am »
i'd love to know what causes that (known) error...

Hari - do you mean you know this error?
yeah, there is another thread about that.

Quote
If so, could you tell me what causes it please?

If I knew it, I'd fix it :-)
Maybe the negative volume level, maybe some missing controlled by whatever stuff...
tried to fix the volume first (some snippets are in that other thread), but hit a bug in the web admin, got annoyed and continued with z-wave...

br
rock your home - http://www.agocontrol.com home automation

colinjones

  • Alumni
  • LinuxMCE God
  • *
  • Posts: 3003
    • View Profile
Re: Add a Marantz amp, and all media stops working....
« Reply #8 on: August 15, 2008, 02:36:25 am »
ahhh! So do you think it is in your GSD device code? Guessing from what you are saying that once the stream is initialised and xine starts to play it, it issues some kind of command/event to the Amp device (thus your code) to select the volume stored in the Amp's device template, but something in this function causes the stream to become invalid?

Does your Amp work? (think you have a Marantz SR7001 don't you?)
« Last Edit: August 15, 2008, 02:38:06 am by colinjones »