Posts: 6,810
Joined: Jul 2010
Reputation:
198
@margo, if it still analyzes the stream, it is not activated. Check DVDFactoryDemuxer.cpp. Is demuxer opened with false as second argument?
Posts: 6,810
Joined: Jul 2010
Reputation:
198
I pushed some new commits for detecting live streams and opening demuxer accordingly.
Posts: 883
Joined: Oct 2009
Reputation:
37
margro
Posting Freak
Posts: 883
2013-03-23, 21:54
(This post was last modified: 2013-03-23, 21:56 by margro.)
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!
Posts: 515
Joined: Feb 2012
Reputation:
13
Does the addon need to set anything special? When using the VU+ addon, the demuxer is opened with false as second argument.
Posts: 6,810
Joined: Jul 2010
Reputation:
198
2013-03-23, 22:09
(This post was last modified: 2013-03-23, 22:16 by FernetMenta.)
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
Posts: 883
Joined: Oct 2009
Reputation:
37
margro
Posting Freak
Posts: 883
2013-03-23, 22:19
(This post was last modified: 2013-03-23, 22:21 by margro.)
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.
Posts: 15
Joined: Jul 2012
Reputation:
0
Bravo FernetMenta!!! Working well here.
Thank you!
Thomas
Posts: 1,019
Joined: May 2010
Reputation:
18
loggio
Posting Freak
Posts: 1,019
Can someone post a build if its not too much trouble please? Would Love to test
Thanks in advance
Posts: 883
Joined: Oct 2009
Reputation:
37
margro
Posting Freak
Posts: 883
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.
Posts: 1,196
Joined: Sep 2012
Reputation:
26
sub3
Posting Freak
Posts: 1,196
2013-03-24, 18:18
(This post was last modified: 2013-03-24, 18:18 by sub3.)
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.
Posts: 47
Joined: Feb 2012
Reputation:
0
Hi magro,
did your biuild include another pvr addon like argus?