[SOLVED] Intermittent stop of live tv while streaming to ampDroid (1 Viewer)

LionHe

Portal Member
April 7, 2013
23
4
57
Home Country
Italy Italy
I'm here to try to figure out how to solve an annoying behavior of Mediaportal when used in conjunction with MPExtended. Full logs are attached to this message. If I watch live TV with ampDroid using the MPExtended service the tv (live or recorded) on my main PC stops after several minutes. If I pause, and rewind on the main pc, using the timeshift buffer, the tv restarts for a few minutes and then it stops again.
The timeshift file is not corrupted: if I rewind the file I see that tv is played correctly at the time at which it stopped earlier.

Looking at the mediaportal log I noticed that, at the time of the problem, there is an entry concerning "VMR9:repainting".
Is this this something related to the codec ? Are there any codec settings that I can use to avoid this behavior?

This never happens when mpextended is not used, nor when I stream to mediaportal clients.
Thank you for your attention,
LionHe

Extracted from the mediaportal log (the live tv stops at 09:14:23 and at 9:16:)

[2014-02-15 09:11:45,534] [Log ] [MPMain ] [DEBUG] - D3D: OnPaint()
[2014-02-15 09:14:23,367] [Log ] [MPMain ] [DEBUG] - VMR9Helper: Playing -> Repainting, Frames 3
[2014-02-15 09:14:23,494] [Log ] [21 ] [INFO ] - planescene:presentImage() frame:0 enabled:True allowed:False
[2014-02-15 09:14:23,495] [Log ] [MPMain ] [DEBUG] - VMR9: Repainting -> Playing, Frames: 1
[2014-02-15 09:14:25,255] [Log ] [MPMain ] [DEBUG] - VMR9Helper: Playing -> Repainting, Frames 2

[2014-02-15 09:14:25,294] [Log ] [21 ] [INFO ] - planescene:presentImage() frame:0 enabled:True allowed:False
[2014-02-15 09:14:25,304] [Log ] [MPMain ] [DEBUG] - VMR9: Repainting -> Playing, Frames: 1
[2014-02-15 09:14:27,065] [Log ] [MPMain ] [DEBUG] - VMR9Helper: Playing -> Repainting, Frames 2

[2014-02-15 09:14:27,094] [Log ] [21 ] [INFO ] - planescene:presentImage() frame:0 enabled:True allowed:False
[2014-02-15 09:14:27,098] [Log ] [MPMain ] [DEBUG] - VMR9: Repainting -> Playing, Frames: 1
[2014-02-15 09:14:28,858] [Log ] [MPMain ] [DEBUG] - VMR9Helper: Playing -> Repainting, Frames 2
[2014-02-15 09:14:28,894] [Log ] [21 ] [INFO ] - planescene:presentImage() frame:0 enabled:True allowed:False
[2014-02-15 09:14:28,907] [Log ] [MPMain ] [DEBUG] - VMR9: Repainting -> Playing, Frames: 1
[2014-02-15 09:14:30,669] [Log ] [MPMain ] [DEBUG] - VMR9Helper: Playing -> Repainting, Frames 3
[2014-02-15 09:14:30,694] [Log ] [21 ] [INFO ] - planescene:presentImage() frame:0 enabled:True allowed:False
[2014-02-15 09:14:30,695] [Log ] [21 ] [INFO ] - planescene:presentImage() frame:1 enabled:True allowed:False
[2014-02-15 09:14:30,703] [Log ] [MPMain ] [DEBUG] - VMR9: Repainting -> Playing, Frames: 2
[2014-02-15 09:15:19,377] [Log ] [MPMain ] [DEBUG] - VMR9Helper: Playing -> Repainting, Frames 0
[2014-02-15 09:16:02,833] [Log ] [MPMain ] [DEBUG] - VMR9: SetRepaint()
[2014-02-15 09:16:02,834] [Log ] [MPMain ] [DEBUG] - VMR9: SetRepaint()
[2014-02-15 09:16:10,430] [Log ] [MPMain ] [DEBUG] - VMR9: SetRepaint()
[2014-02-15 09:16:10,431] [Log ] [MPMain ] [DEBUG] - VMR9: SetRepaint()
[2014-02-15 09:16:26,930] [Log ] [MPMain ] [DEBUG] - VMR9: SetRepaint()
[2014-02-15 09:16:26,931] [Log ] [MPMain ] [DEBUG] - VMR9: SetRepaint()
[2014-02-15 09:16:28,275] [Log ] [MPMain ] [INFO ] - g_Player loading seekstep config
[2014-02-15 09:16:31,131] [Log ] [MPMain ] [DEBUG] - g_Player.StepNow() - Preparing to seek to 275,6794792:307,152
[2014-02-15 09:16:31,132] [Log ] [MPMain ] [DEBUG] - g_Player.StepNow() - Preparing to seek to 0:3:35 isTv True
[2014-02-15 09:16:31,132] [Log ] [MPMain ] [INFO ] - TsReaderPlayer:seekabs:2156794792 start:0 end:3071520000
[2014-02-15 09:16:31,147] [Log ] [MPMain ] [INFO ] - TsReaderPlayer: pos: 2156794792 start:0 end:3071520000
[2014-02-15 09:16:31,148] [Log ] [MPMain ] [INFO ] - TsReaderPlayer seek done:1
[2014-02-15 09:16:31,149] [Log ] [MPMain ] [INFO ] - TSReaderPlayer: current pos:215,6794792 dur:307,152
[2014-02-15 09:16:31,167] [Log ] [MPMain ] [DEBUG] - VMR9: Repainting -> Playing, Frames: 123
 
Last edited:

LionHe

Portal Member
April 7, 2013
23
4
57
Home Country
Italy Italy
I solved this issue by changing the stream quality on the AmpDroid client. Apparently neither FFMPEG nor Android VLC are ok for my setup. Luckily, HTTP live streaming medium is ok. The problem with ffmpeg is that it occasionally takes 100% cpu time, immediately causing the video playback stuttering on the mediaportal client. On the other hand, when HTTP live streaming medium is used, the CPU is constantly at 50-70%, leaving some CPU time. I'm happy with this new setup, but clearly, I cannot stream to more than one client due to cpu limitation while it was possible with ffmpeg (with occasional stuttering for which I was blaming my network while it was probably due to CPU).
I began looking at the CPU usage with mediaportal in windowed mode, after reading a post in the MPExtended section, which talked about the minimum cpu requirements for using MPExtended.

I hope that this may be of help to other users here,
Thanks for your attention,
LionHe
 

Users who are viewing this thread

Top Bottom