Remote client cannot stream from server (1 Viewer)

darkraid

Portal Member
December 20, 2010
13
0
Home Country
New Zealand New Zealand
Hi,

I have been using MediaPortal as a singleseat setup for a while but have just tried to implement a second client on another computer that streams off the server.

Everything looks to be setup correctly.
- I have used the IP address in the TV Server address instead of auto/hostname.
- I have tried a different RTSP port.
- I am able to use VLC to stream perfectly when timeshifting.
- MediaPortal 1.4 with DJBlu Sky Grabber (https://forum.team-mediaportal.com/...r-including-sky-uk-channel-epg-grabber.96767/)
- Using MySQL as the database engine
- Have checked the gentle.conf for the database connection info

Here is a snippet of the log from MediaPortal.log:

[2014-02-11 00:58:20,946] [Log ] [MPMain ] [INFO ] - tvhome:startplay
[2014-02-11 00:58:20,951] [Log ] [MPMain ] [INFO ] - tvhome:file:C:\ProgramData\Team MediaPortal\MediaPortal TV Server\timeshiftbuffer\live24-0.ts.tsbuffer
[2014-02-11 00:58:20,956] [Log ] [MPMain ] [WARN ] - tvhome:startplay. Phase 1 - 15 ms - Done method initialization
[2014-02-11 00:58:20,961] [Log ] [MPMain ] [INFO ] - tvhome:startplay:rtsp://192.168.1.98:5540/stream24.0 - using rtsp mode:True
[2014-02-11 00:58:20,976] [Log ] [MPMain ] [INFO ] - RefreshRateChanger.AdaptRefreshRate: 'auto refreshrate changer' disabled
[2014-02-11 00:58:20,976] [Log ] [MPMain ] [INFO ] - g_Player.Play(rtsp://192.168.1.98:5540/stream24.0 TV)
[2014-02-11 00:58:20,996] [Log ] [MPMain ] [INFO ] - TSReaderPlayer play:rtsp://192.168.1.98:5540/stream24.0 radio:False
[2014-02-11 00:58:20,996] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: live tv
[2014-02-11 00:58:20,996] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Enabling DX9 exclusive mode
[2014-02-11 00:58:20,996] [Log ] [MPMain ] [INFO ] - Main: GUI_MSG_SWITCH_FULL_WINDOWED message is obsolete.
[2014-02-11 00:58:20,996] [Log ] [MPMain ] [INFO ] - TSReaderPlayer:play rtsp://192.168.1.98:5540/stream24.0
[2014-02-11 00:58:21,006] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: GetInterfaces()
[2014-02-11 00:58:21,026] [Log ] [MPMain ] [INFO ] - DirectShowUtils: First try to insert new audio renderer Default DirectSound Device
[2014-02-11 00:58:21,086] [Log ] [MPMain ] [INFO ] - DirectShowUtils: Found audio renderer
[2014-02-11 00:58:21,099] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Add TsReader to graph
[2014-02-11 00:58:21,099] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Open file: rtsp://192.168.1.98:5540/stream24.0
[2014-02-11 00:58:21,121] [Log ] [MPMain ] [INFO ] - TSReaderPlayer:OnRequestAudioChange()
[2014-02-11 00:58:21,136] [Log ] [MPMain ] [INFO ] - TsReaderPlayer: AudioDualMonoMode switching not available. Audioswitcher filter not loaded
[2014-02-11 00:58:21,137] [Log ] [MPMain ] [INFO ] - TsReaderPlayer: AudioDualMonoMode switching not available. Audioswitcher filter not loaded
[2014-02-11 00:58:21,137] [Log ] [MPMain ] [INFO ] - Audio stream: switching to preferred AC3/MPEG audio stream 0 (only 1 track avail.)
[2014-02-11 00:58:21,138] [Log ] [MPMain ] [INFO ] - TsReaderPlayer: AudioDualMonoMode switching not available. Audioswitcher filter not loaded
[2014-02-11 00:58:22,327] [Log ] [MPMain ] [INFO ] - TsReaderPlayer: OnVideoFormatChanged - streamtype=MPEG2 resolution=720x576 aspect ratio=16:9 bitrate=15000000 isInterlaced=True
[2014-02-11 00:58:22,329] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Add codecs
[2014-02-11 00:58:22,730] [Log ] [MPMain ] [INFO ] - VMR9: added EVR Renderer to graph
[2014-02-11 00:58:22,749] [Log ] [MPMain ] [INFO ] - Added filter: Microsoft DTV-DVD Video Decoder to graph
[2014-02-11 00:58:22,754] [Log ] [MPMain ] [INFO ] - Added filter: Microsoft DTV-DVD Audio Decoder to graph
[2014-02-11 00:58:22,758] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Render TsReader outputs
[2014-02-11 00:58:22,854] [Log ] [MPMain ] [WARN ] - VMR9: Pin: 0 not connected: 80040209
[2014-02-11 00:58:22,854] [Log ] [MPMain ] [WARN ] - VMR9: Pin: 1 not connected: 80040209
[2014-02-11 00:58:22,854] [Log ] [MPMain ] [WARN ] - VMR9: Pin: 2 not connected: 80040209
[2014-02-11 00:58:22,855] [Error ] [MPMain ] [ERROR] - TSReaderPlayer: Failed vmr9 not connected
[2014-02-11 00:58:22,880] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Cleanup DShow graph False
[2014-02-11 00:58:22,900] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Cleanup Get hr value -2147467262
[2014-02-11 00:58:22,903] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter Enhanced Video Renderer
[2014-02-11 00:58:22,904] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter Default DirectSound Device
[2014-02-11 00:58:22,904] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter Microsoft DTV-DVD Audio Decoder
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Disconnecting pin XFrom Out
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Not connected
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Disconnecting all pins from filter TsReader
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Disconnecting pin Audio
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Not connected
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Disconnecting pin Video
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Not connected
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Disconnecting pin Subtitle
[2014-02-11 00:58:22,905] [Log ] [MPMain ] [INFO ] - Not connected
[2014-02-11 00:58:22,919] [Error ] [MPMain ] [ERROR] - TSReaderPlayer:GetInterfaces() failed
[2014-02-11 00:58:22,923] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: Disabling DX9 exclusive mode
[2014-02-11 00:58:22,923] [Log ] [MPMain ] [INFO ] - Main: GUI_MSG_SWITCH_FULL_WINDOWED message is obsolete.
[2014-02-11 00:58:22,923] [Log ] [MPMain ] [INFO ] - g_Player: ended
[2014-02-11 00:58:22,928] [Log ] [MPMain ] [INFO ] - TVHome:turn tv off
[2014-02-11 00:58:23,747] [Log ] [MPMain ] [WARN ] - tvhome:startplay. Phase 2 - 2789 ms - Done starting g_Player.Play()
[2014-02-11 00:58:23,780] [Log ] [MPMain ] [WARN ] - GUIWindow:OnWindowLoaded: 'C:\ProgramData\Team MediaPortal\MediaPortal\Skin\Titan\dialogOK.xml' is missing control id 11 (window property: btnYes)
[2014-02-11 00:58:32,680] [Log ] [MPMain ] [INFO ] - Main: Exit requested
[2014-02-11 00:58:32,791] [Log ] [MPMain ] [INFO ] - Main: Stopping FrameMove
[2014-02-11 00:58:32,806] [Log ] [MPMain ] [INFO ] - TexturePacker: disposing texture:1997
[2014-02-11 00:58:32,816] [Log ] [MPMain ] [INFO ] - TexturePacker: disposing texture:1996
[2014-02-11 00:58:32,826] [Log ] [MPMain ] [INFO ] - TexturePacker: disposing texture:1995
[2014-02-11 00:58:32,841] [Log ] [MPMain ] [INFO ] - TexturePacker: disposing texture:1994
[2014-02-11 00:58:32,841] [Log ] [MPMain ] [INFO ] - TexturePacker: disposing texture:1993
[2014-02-11 00:58:32,851] [Log ] [MPMain ] [INFO ] - Main: Deactivation request received
[2014-02-11 00:58:32,861] [Log ] [MPMain ] [INFO ] - TvNotify: stop
[2014-02-11 00:58:32,876] [Log ] [MPMain ] [INFO ] - Main: Exiting

The contents of MediaPortal-Error.log:

[2014-02-11 00:58:22,855] [Error ] [MPMain ] [ERROR] - TSReaderPlayer: Failed vmr9 not connected
[2014-02-11 00:58:22,919] [Error ] [MPMain ] [ERROR] - TSReaderPlayer:GetInterfaces() failed

When I try to view a TV channel on the remote client it will show up in the clients on the streaming server for about a second and then disappear and an error will come up on the client saying "Unable to play: stream24"

Any ideas?
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    This looks like a client-side codec or TsReader problem to me. Please post the full set of log files from the client and server so we can take a look.
     

    darkraid

    Portal Member
    December 20, 2010
    13
    0
    Home Country
    New Zealand New Zealand
    Here are the logs from the remote client. Which logs would you like from the servers as I don't see how to run the TV Service in debug mode?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Something seems funky here:
    [2014-02-11 18:37:22,695] [Log ] [MPMain ] [INFO ] - TVHome.ViewChannelAndCheck(): View channel=TV 3
    [2014-02-11 18:37:22,725] [Log ] [MPMain ] [DEBUG] - CiMenu: PrepareCiMenu
    [2014-02-11 18:37:34,727] [Log ] [MPMain ] [INFO ] - succeeded:confused:ucceeded TvControl.VirtualCard

    It doesn't usually take TV Server 8 seconds to change channels.

    Please ensure IPv6 protocol is disabled on your network adaptor.
    Try taking down firewalls on both the server and client.
    If those two tips don't help, please try different codecs. In particular, try a different video codec.
     

    darkraid

    Portal Member
    December 20, 2010
    13
    0
    Home Country
    New Zealand New Zealand
    Here are the logs from the remote client. Which logs would you like from the servers as I don't see how to run the TV Service in debug mode?
    http://wiki.team-mediaportal.com/1_.../TV-Server_Configuration/06_General#Log_Level

    Please set log level to debug if not already.

    1. Open TV Server configuration.
    2. Click "open log directory".
    3. Zip all the files you find there.
    4. Post the zip file here.

    mm

    I wasn't able to find the option to set the log level to debug on the TV Server configuration

    2cdgw8z.png


    I also tried disabling IPv6 on both the Server and Client network adpaters but no luck. The firewalls on both were already switched off.

    How would I change to a different codec? What other codec should I try?[DOUBLEPOST=1392107287][/DOUBLEPOST]Hi,

    I just tried the LAV codecs as that's what my server was using for the Client on there and it seems to be working so far so good. It is taking 3-4 seconds to change channel though. Is there anyway to speed this up? It is running on a 1000Mbps LAN so I don't think the network is the issue.
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I wasn't able to find the option to set the log level to debug on the TV Server configuration
    Ahhh, using older/custom version of MP. The option was added in MP 1.6. Forget I mentioned it.

    I also tried disabling IPv6 on both the Server and Client network adpaters but no luck. The firewalls on both were already switched off.

    How would I change to a different codec? What other codec should I try?

    I just tried the LAV codecs as that's what my server was using for the Client on there and it seems to be working so far so good.
    Looks like you found out how to change codecs. For people reading in future:
    http://wiki.team-mediaportal.com/1_...nfiguration/9_Codecs_and_Renderer/1_TV_Codecs

    LAV codecs come highly recommended. You can try any other codecs you have installed or can get your hands on. FFDShow, Cyberlink, Corel, AC3Filter etc. etc. etc. There are tons out there.

    It is taking 3-4 seconds to change channel though. Is there anyway to speed this up? It is running on a 1000Mbps LAN so I don't think the network is the issue.
    It is normal for channel changing on a client to take a bit longer. It is not just the network speed; it is that you're streaming from an RTSP server which means more layers of code. I can't tell you exactly what is taking the time (and by extension, how you might speed it up) without full concurrent log files from both client and server.
     

    Users who are viewing this thread

    Top Bottom