you need to
1) add a DVDSTREAM_TYPE_TVSERVER and assign this to your class in the factory, e.g. tvserver://
2) have a CDVDInputStreamFFMPEG as a member var
3) do the tvserver parsing to get the real rtsp url
4) open your member var on this url
5) make Read() etc in tvserver wrapper functions which calls through to your member var input stream
Wrap InputStream in a File (for MediaPortal TVserver client in XBMC)
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2008-06-23 17:58
Post: #11
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
EvilDude
Senior Member Posts: 106 Joined: Feb 2006 Reputation: 0 Location: Sydney Australia |
2008-06-24 10:38
Post: #12
Hm, I have managed to get it working:
http://pastebin.com/m1bc4159b I haven't yet tried to get channel + / - working. The main thing that I couldn't figure out earlier, I had to do this: Code: + else if (m_pInput->IsStreamType(DVDSTREAM_TYPE_TVSERVER))Basically opens the actual RTSP file using internal ffmpeg libraries. Wrapping read etc doesn't work because rtsp is internal to ffmpeg. It looks like it works now - just want to make sure its the right way to do it. It takes ages to open a file at the moment - where can I disable caching? Also, a small bug in the code I found: Code: cores/dvdplayer/DVDInputStreams/DVDFactoryInputStream.cpp:55: || file.substr(0, 7) == "cmyth://"I am quite sure substr's second argument should be 8. |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2008-06-24 11:35
Post: #13
thx, typos fixed in svn
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
Gamester17
Team-XBMC Forum Moderator Joined: Sep 2003 Reputation: 9 Location: Sweden |
@EvilDude, have you looked at the MythTV client ("mythtv://") in XBMC for reference and comparison?
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
spiff
Grumpy Bastard Developer Joined: Nov 2003 Reputation: 82 |
2008-06-24 19:18
Post: #15
see DVDDemuxFFmpeg.cpp - replicate what's done for DVDSTREAM_TYPE_FFMPEG there
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
EvilDude
Senior Member Posts: 106 Joined: Feb 2006 Reputation: 0 Location: Sydney Australia |
2008-06-25 02:56
Post: #16
Gamester17: Yes that is what I initially based my design on - the myth:// code.
spiff: Yep that's what I'm doing. I tried manually loading the rtsp url (made a .strm file with the URL in it), and it turns out it's still caching. The xbox version does not seem to cache rtsp streams, yet the linux port does. I am not sure why yet. |
| find quote |
Gamester17
Team-XBMC Forum Moderator Joined: Sep 2003 Reputation: 9 Location: Sweden |
http://forum.team-mediaportal.com/genera...post277808
EvilDude Wrote:I have a patch (for xbmc linux at least, haven't tried with the xbox port but I'm hoping it works fine) @EvilDude, patch would be more than welcomed, please see: http://wiki.xbmc.org/?title=HOW-TO_submit_a_patch http://wiki.xbmc.org/?title=Appendix_D:_...ment_Notes Submitting the patch for review is the first step to get it accepted to the SVN
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |
EvilDude
Senior Member Posts: 106 Joined: Feb 2006 Reputation: 0 Location: Sydney Australia |
2008-06-26 04:55
Post: #18
Ok thanks, posted it here
https://sourceforge.net/tracker/index.ph...tid=581840 |
| find quote |
leo2
Skilled Python Coder Posts: 176 Joined: Jun 2008 Reputation: 0 |
2008-07-04 18:35
Post: #19
Hi, I'm happy that someone is working on an integration of MP TV Server & XBMC, both software are great!
is the patch applied to the svn? if so, EvilDude, can u please describe how do I work with that? I'm a programmer myself and I would be happy to assist improving the integration between MPTVServer & XBMC. leo |
| find quote |
Gamester17
Team-XBMC Forum Moderator Joined: Sep 2003 Reputation: 9 Location: Sweden |
2008-07-04 19:20
Post: #20
leo2 Wrote:is the patch applied to the svn?No, elupus will need to review it but he is currently away on holiday, and spiff already asked for some changes: Quote:not a real review, just some stuff i noticed right away.. Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. |
| find quote |

However, this will hopefully eventually let me do channel+/- directly while watching. The python script is still faster, as it doesn't cache whereas this attempts to cache.
Search
Help