Change channel really slow

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
FernetMenta Offline
Team-Kodi Developer
Posts: 3,557
Joined: Jul 2010
Reputation: 67
Location: Munich
Post: #31
@margo, if it still analyzes the stream, it is not activated. Check DVDFactoryDemuxer.cpp. Is demuxer opened with false as second argument?
find quote
FernetMenta Offline
Team-Kodi Developer
Posts: 3,557
Joined: Jul 2010
Reputation: 67
Location: Munich
Post: #32
I pushed some new commits for detecting live streams and opening demuxer accordingly.
find quote
margro Offline
Fan
Posts: 654
Joined: Oct 2009
Reputation: 21
Location: The Netherlands
Post: #33
This works much better.! Now 2 {s} for the switch (backend) and 1,5 {s} XBMC displaying "Buffering" before continuing the playback.

Will do more testing (SD->HD switching etc.) tomorrow, but this is already a huge improvement. Well done!

Developer of the MediaPortal PVR addon and the Argus-TV PVR-addon. Unofficial XBMC Windows builds with PVR.
http://www.scintilla.utwente.nl/~marcelg/xbmc
(This post was last modified: 2013-03-23 21:56 by margro.)
find quote
jdembski Offline
Fan
Posts: 502
Joined: Feb 2012
Reputation: 12
Post: #34
Does the addon need to set anything special? When using the VU+ addon, the demuxer is opened with false as second argument.

VU+ / Enigma2 PVR Client: Documentation | Development | Discussion
find quote
FernetMenta Offline
Team-Kodi Developer
Posts: 3,557
Joined: Jul 2010
Reputation: 67
Location: Munich
Post: #35
false as second argument skips find_stream_info. If this is the case, you don't need further settings.

What it does:
- the stream is parsed by ffmpeg for pat/pmt, this sets the streams
- in order to set parameters like width/height for a video stream we need to wait for SPS
- once we got SPS, we can decode a video frame and set stream parameters
(This post was last modified: 2013-03-23 22:16 by FernetMenta.)
find quote
margro Offline
Fan
Posts: 654
Joined: Oct 2009
Reputation: 21
Location: The Netherlands
Post: #36
MediaPortal changes the PAT on a channel switch and this now triggers ffmpeg with the changes from FernetMenta.

The addition of "steaminfo" to line 119: if(demuxer->Open(pInputStream, streaminfo)) in FernetMenta's last change did the trick for MediaPortal.

Developer of the MediaPortal PVR addon and the Argus-TV PVR-addon. Unofficial XBMC Windows builds with PVR.
http://www.scintilla.utwente.nl/~marcelg/xbmc
(This post was last modified: 2013-03-23 22:21 by margro.)
find quote
tommywm22 Offline
Junior Member
Posts: 15
Joined: Jul 2012
Reputation: 0
Post: #37
Bravo FernetMenta!!! Working well here.

Thank you!

Thomas
find quote
loggio Offline
Fan
Posts: 593
Joined: May 2010
Reputation: 6
Post: #38
Can someone post a build if its not too much trouble please? Would Love to test

Thanks in advance
find quote
margro Offline
Fan
Posts: 654
Joined: Oct 2009
Reputation: 21
Location: The Netherlands
Post: #39
I was already planning to release a Frodo 12.1 build including my development MediaPortal pvr addon.
Because the changes of FernetMenta are better than my workaround, I will first backport them to Frodo before I'm going to release a 12.1 build.
First I will need to do more testing. I've already seen that radio playback gives problems right now (stuttering and unplayable web channels). Not sure yet whether this is related to this particular improvement (don't think so...) or other "master" changes.

Developer of the MediaPortal PVR addon and the Argus-TV PVR-addon. Unofficial XBMC Windows builds with PVR.
http://www.scintilla.utwente.nl/~marcelg/xbmc
find quote
margro Offline
Fan
Posts: 654
Joined: Oct 2009
Reputation: 21
Location: The Netherlands
Post: #40
@loggio and other people wanting to test these changes:
Here is a Windows 12.1 build with the included changes: xbmc-12.1-Frodo-margro.exe.

Preferred settings for the MediaPortal PVR addon users to get the fastest channel switching:
under the PVR addon settings, "Playback" tab, choose: "TSReader" and enable "Fast channel switching".

To help FernetMenta and me, please report channel switching issues that you didn't see on the official 12.0 / 12.1 builds. (Preferably with a debug log file posted on http://xbmclogs.com/).

Developer of the MediaPortal PVR addon and the Argus-TV PVR-addon. Unofficial XBMC Windows builds with PVR.
http://www.scintilla.utwente.nl/~marcelg/xbmc
find quote
Swifty Offline
Fan
Posts: 619
Joined: Nov 2008
Reputation: 5
Post: #41
Wow, just tried the build out, incredible improvement - even works nicely when it switch between channels that are on two different tuners.
Change times are down to around 1 second, it makes things feel much more 'STB' like Smile

Can't wait to see the changes make it into an Openelec build.
find quote
sub3 Offline
Fan
Posts: 397
Joined: Sep 2012
Reputation: 5
Post: #42
I'd like to say thanks for the hard work you guys have put into this. I've tried this build and found it greatly helped the channel change times with the NextPVR addon. With a DVB-S tuner my channel change times are about a second. Good job guys.
(This post was last modified: 2013-03-24 18:18 by sub3.)
find quote
Dakkar Offline
Member
Posts: 73
Joined: Nov 2012
Reputation: 0
Post: #43
(2013-03-24 16:57)margro Wrote:  @loggio and other people wanting to test these changes:
Here is a Windows 12.1 build with the included changes: xbmc-12.1-Frodo-margro.exe.

Preferred settings for the MediaPortal PVR addon users to get the fastest channel switching:
under the PVR addon settings, "Playback" tab, choose: "TSReader" and enable "Fast channel switching".

To help FernetMenta and me, please report channel switching issues that you didn't see on the official 12.0 / 12.1 builds. (Preferably with a debug log file posted on http://xbmclogs.com/).
Is this working also with other PVR addons like DVBViewer?
Anything to be setup under the addon settings?

Dakkar
find quote
BenAtNVS Offline
Junior Member
Posts: 40
Joined: Feb 2012
Reputation: 0
Post: #44
Hi magro,
did your biuild include another pvr addon like argus?
find quote
margro Offline
Fan
Posts: 654
Joined: Oct 2009
Reputation: 21
Location: The Netherlands
Post: #45
@Dakkar: the change is not specific for the MediaPortal PVR addon, so there is a good chance that it will also work for DVBViewer. Just try it and report back if it works or not. All standard PVR addons are included in this build.

@BenAtNVS Yes the latest version of the Argus PVR addon (v1.6.166, 13-03-2013) is also included.

Developer of the MediaPortal PVR addon and the Argus-TV PVR-addon. Unofficial XBMC Windows builds with PVR.
http://www.scintilla.utwente.nl/~marcelg/xbmc
find quote
Post Reply