NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) UbuStream, Web Radio and Universe v
« Previous 1 … 4 5 6 7 8 Next »
UBURadio stops after some 15-60 seconds

 
  • 0 Vote(s) - 0 Average
UBURadio stops after some 15-60 seconds
pz1
Offline

Senior Member

Posts: 740
Threads: 16
Joined: Jan 2006
#1
2007-02-10, 09:32 AM (This post was last modified: 2007-05-31, 08:56 AM by pz1.)
Great plugin. This is what i have been wating for a long time. Unfortunately in time shifted mode after some time (15-60 seconds) the stream stops, though the screen continues to tell me that it is playing. Also VLC continues to run. I observe this both at the PC console as via MVP.

In preview mode on the PC console it plays uninterrupted. Any clue of what might be the problem?

I could not find any clues in the standard logfiles. Attached is the VLC log. (see signature for my configuration)
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#2
2007-02-10, 10:50 AM
pz1 Wrote:Great plugin. This is what i have been wating for a long time. Unfortunately in time shifted mode after some time (15-60 seconds) the stream stops, though the screen continues to tell me that it is playing. Also VLC continues to run. I observe this both at the PC console as via MVP.

In preview mode on the PC console it plays uninterrupted. Any clue of what might be the problem?

I could not find any clues in the standard logfiles. Attached is the VLC log. (see signature for my configuration)
The log confirms what you already noticed: VLC continued to run because it was successfully transcoding the stream. If the GB-PVR player stops playing after a few seconds, it usually means that it ran out of data to read in the transcoded file. So you should probably increase the value of the WaitTime field in the UbuRadio config panel (or just manually change it in the UbuRadio section of the gbpvr Config.xml file).

It's tricky getting this value just right since it depends on the speed of the stream itself (including the response time of the stream server), your network bandwidth (which can vary in "actual" terms throughout the day) and the horsepower of your CPU. For what it's worth, on my GB-PVR systems (2.xGhz P4s and cable broadband) I'm using a wait time of 10,000 for MVP use and 5,000 for regular GB-PVR use. This handles even the tardiest streams for me. People who don't have any "slow response" stations in their favourites list can probably get away with much lower numbers.

Since I designed UbuRadio to be very simple to use, you can only set a single WaitTime for all stations. The next release of UbuStream (which I hope to announce in beta form soon) will allow you to set several different options to do with wait times for each station individually. So then people can go crazy fine-tuning each station to its optimal delay.

If increasing the WaitTime value doesn't solve the problem, send me the gbpvr.exe.log (which will show us what the audio player was doing) and I'll take a look.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
pz1
Offline

Senior Member

Posts: 740
Threads: 16
Joined: Jan 2006
#3
2007-02-10, 01:20 PM
ubu Wrote:The log confirms what you already noticed: VLC continued to run because it was successfully transcoding the stream. If the GB-PVR player stops playing after a few seconds, it usually means that it ran out of data to read in the transcoded file. So you should probably increase the value of the WaitTime field in the UbuRadio config panel (or just manually change it in the UbuRadio section of the gbpvr Config.xml file).

It's tricky getting this value just right since it depends on the speed of the stream itself (including the response time of the stream server), your network bandwidth (which can vary in "actual" terms throughout the day) and the horsepower of your CPU. For what it's worth, on my GB-PVR systems (2.xGhz P4s and cable broadband) I'm using a wait time of 10,000 for MVP use and 5,000 for regular GB-PVR use. This handles even the tardiest streams for me. People who don't have any "slow response" stations in their favourites list can probably get away with much lower numbers.

Since I designed UbuRadio to be very simple to use, you can only set a single WaitTime for all stations. The next release of UbuStream (which I hope to announce in beta form soon) will allow you to set several different options to do with wait times for each station individually. So then people can go crazy fine-tuning each station to its optimal delay.

If increasing the WaitTime value doesn't solve the problem, send me the gbpvr.exe.log (which will show us what the audio player was doing) and I'll take a look.

I had it on 10,000 as a matter of fact. So increased to 15,000, later back to 5,000. No effect. In order to prepare gbpvr.exe.log for my response to you I changed its settings to 'debug' , next I tried to repeat the problem. To my surprise it had gone, and dit not return after setting the logging level back to 'error'. I remain puzzled. Even the WILL stream (Urbana, Illinois, where I lived mid 70's) is not choppy any more.
PS: The link I got from the system for WILL appeared to be wrong, so I edited the correct one directly in the XML.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#4
2007-02-10, 11:05 PM
pz1 Wrote:I had it on 10,000 as a matter of fact. So increased to 15,000, later back to 5,000. No effect. In order to prepare gbpvr.exe.log for my response to you I changed its settings to 'debug' , next I tried to repeat the problem. To my surprise it had gone, and dit not return after setting the logging level back to 'error'. I remain puzzled. Even the WILL stream (Urbana, Illinois, where I lived mid 70's) is not choppy any more.
Sunspots? Sometimes it's hard to find a logical explanation. For instance, rebooting often solves many problems. Smile

Quote:PS: The link I got from the system for WILL appeared to be wrong, so I edited the correct one directly in the XML.
The source I'm using for the stations is fairly up to date but, as I'm sure you're aware, station URLs do change from time to time so not all the links are guaranteed to be valid. However, the web site URLs are usually correct so you can click Web Site and see if there's a new URL for the strteam (you have to use the mouse if you want to navigate in the web viewer - providing a full blown web browser for GB-PVR is a bit beyond my scope).
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
pz1
Offline

Senior Member

Posts: 740
Threads: 16
Joined: Jan 2006
#5
2007-02-12, 10:34 AM (This post was last modified: 2007-05-31, 08:56 AM by pz1.)
ubu Wrote:Sunspots? Sometimes it's hard to find a logical explanation. For instance, rebooting often solves many problems. Smile

I did a reinstall. Same bug appeared. The reboot cured it.

However I now bumped into the next problem. After a 2 hour period of playing, the music suddenly stops. On screen there is a debug message to Microsoft message telling me that VLC stopped suddenly. None of the GBPVR logs has written about this event (obviously I think). At the moment the music stopped the VLC log (attached) has changed.
I observed this behaviour yesterday as well. Did measure palying time then.
Due you have a clkue what might be happening?

PS: I did remove Ubustream in the meantime. I only got it working properly with NASA TV, which I found extremely boring. I originally installed ubustream because I hoped to get to internet radio ultimately.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#6
2007-02-12, 10:11 PM
pz1 Wrote:IHowever I now bumped into the next problem. After a 2 hour period of playing, the music suddenly stops. On screen there is a debug message to Microsoft message telling me that VLC stopped suddenly. None of the GBPVR logs has written about this event (obviously I think). At the moment the music stopped the VLC log (attached) has changed.
I observed this behaviour yesterday as well. Did measure palying time then.
Due you have a clkue what might be happening?
Short answer: I can't tell you for sure why that's happening.

Long answer: there's a lot of reasons why a stream might stop playing, some related to VLC, some related to the UbuRecordingService.

VLC

The VLC log doesn't tell us much but that's not surprising since the MS debug message you got indicates that VLC terminated abnormally so it probably didn't get a chance to write anything to the log when it died. VLC is a great piece of software but it is free and its developed by a bunch of volunteers, not by a major corporation (much like GB-PVR and its plugins). So sometimes introduction of new features comes at the cost of stability in some areas. I experience that certain situations will cause VLC to just fall over. Transcoding network streams is complicated and so VLC may show its fragility when it encounters some unexpected condition.

UbuRecordingService

I developed the UbuRecordingService primarily to stop orphan VLC transcoding processes from continuing to record to your hard disk until it fills up. It relies on the parent app sending a message (every 5 seconds or so) telling it to keep recording. If something happens to interfere with this (like an intense CPU spike) it could mess up the timing so it misses a message and, therefore kills the VLC recording process. I've seen this happen occasionally when Comskip is processing a TV recording, for instance.

Obviously, the UbuRecordingService will also shut down the VLC process if explicitly told to do so (pressing the Stop button or exiting from GB-PVR). UbuRadio will also tell it to stop if it detects the recording has been unsuccessful (empty file, invalid format, etc.).

Fail safe

There's one situation that's a bit of a kludge, though. If you are using an MVP and you get the wait time wrong such that VLC starts recording but GB-PVR tries to play it back too quickly and fails to start playing (you'll see the VLC process clocking but nothing playing on your MVP), I have no way of knowing that has happened. I hope the user will hit the Stop button, or try another station (which will kill the "orphan" VLC process) but, if they just walk away in disgust, the VLC process will continue recording forever.

I have asked sub to add a function to the GB-PVR API that would let me detect if the MVP is actually playing the file and he said he'd include it in a future release. However, in the meantime, to handle this eventuality, I have placed an arbitrary cap of 60 minutes for MVP playback. However this also means that, even for a stream that is playing successfully, it will just stop playing after 60 minutes. You just have to hit the play button and it will start again.

Bottom line

I've no idea which of the above situations is causing your stream to stop playing. If you're interested in trying to track it down you can look at the gbpvr.exe.log, which contains messages from the Ubu components, including requests to the recording service, and at your Windows event log, which contains messages from the UbuRecordingService (you should see "CONT", "OK" pairs for the "stay alive" transactions and requests for things like "START" and "STOP").

My own experience is also that web streams are inately unreliable. Sometimes they stutter, sometimes they just stop. Some streams seem more reliable than others. My favourite station quite often drops the stream for no apparent reason. I just hit Stop and then Play and I'm happily listening to it again.

Quote:PS: I did remove Ubustream in the meantime. I only got it working properly with NASA TV, which I found extremely boring. I originally installed ubustream because I hoped to get to internet radio ultimately.
The current release of UbuStream has pretty limited support for MVP users (pity you used NASA TV, which, I agree, is fairly tedious, as your test case - Research TV, which works well for MVPs, is a bit more interesting). In any case, the next release of UbuStream (quite soon) will provide much enhanced support for the MVP.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
pz1
Offline

Senior Member

Posts: 740
Threads: 16
Joined: Jan 2006
#7
2007-02-13, 08:16 AM
UBU, thanks for the extensive and usefull comment. I hope you did not take my comments as to negative. I highly appreciate the work you are doing on these plugins. I do understand the difficulties of streaming media over the internet. Actually I am amazed that this protocol does things it has not been designed for, so well. For the time being i will hit the play button once in a while.

I did install this one because you explicitly asked for an extended userbase to test the radio plugin. I happy to help out, and I will continue to give that feedback. In the context of what you have written, I do not expect you solve all of it. It might help you finding weak spots in the present implementation.
So some observations:
1) I do notice that the streams played in sub's standard Net Radio (shoutcast) are much more stable. These will run for hours.
2) In Uburadio I had one MP3 stream which played at least three hours time shifted on the PC console.
3) I got the impression that some streams play longer in preview mode than in timeshifted mode.

As said impressions not solid scientific proof.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#8
2007-02-13, 10:12 AM
pz1 Wrote:UBU, thanks for the extensive and usefull comment. I hope you did not take my comments as to negative. I highly appreciate the work you are doing on these plugins. I do understand the difficulties of streaming media over the internet. Actually I am amazed that this protocol does things it has not been designed for, so well. For the time being i will hit the play button once in a while.
Thanks for the kind words. It's tough, but somebody had to do it. Cool

Quote: I did install this one because you explicitly asked for an extended userbase to test the radio plugin.
I did? I must have been crazy. Big Grin
Quote:I happy to help out, and I will continue to give that feedback. In the context of what you have written, I do not expect you solve all of it. It might help you finding weak spots in the present implementation.
I certainly appreciate it.

Quote: 1) I do notice that the streams played in sub's standard Net Radio (shoutcast) are much more stable. These will run for hours.
That's because Shoutcast streams are already in MP3 format so require little or no transcoding to play with the GB-PVR audio player. Also, Net Radio was written by sub. As the author of GB-PVR, it's entirely possible he knows things that I don't. Wink
Quote: 2) In Uburadio I had one MP3 stream which played at least three hours time shifted on the PC console.
Same reason. VLC has to do much less work to "transcode" an MP3 stream to an MP3 file. Streams in WMP, OggVorbis, etc. formats make it do more work, requiring more resources and, therefore, inherently expose Timeshift playback to timing issues. And, btw, as I mentioned in my earlier post, the arbitrary 60 minute limit only applies to MVP playback so stations should, in theory, keep playing on your PC as long as you like.
Quote: 3) I got the impression that some streams play longer in preview mode than in timeshifted mode.
Well they would, if you think about it. The internal players (Preview mode) are just embedded versions of the regular external players so, if a stream hiccups (as they quite often do - either caused by the stream server itself, network variations, or by you stealing bandwidth by downloading a huge email attachement to your laptop) the player will usually recover and keep going. If the same thing happens in timeshift mode, VLC will stop writing to the MP3 file and, if the GB-PVR player catchs up with it, it thinks it's hit the end of the file and stops playing.

I can't think of any good way round this. I've provided a configurable Wait Time so you can at least give VLC a chance to get a good start ahead of the GB-PVR player. In the next version of UbuStream this will be configurable for each individual station so you can fine tune "problem" stations (but not in UbuRadio - I want to keep that very simple).

As you pointed out, trying to treat network streams as if they were conventional broadcast stations presents certain "difficulties". It's really like attempting to "square the circle". I'm constantly amazed that it's possible at all, as I sit on my couch listening to radio stations from all over the world and watching a variety of streaming TV news, movies, etc. (especially since I live behind a mountain and can't receive terrestrially broadcast radio or TV at all). Unfortunately, anyone who expects it to behave as reliably and predictably as their set top box signal is going to be somewhat out of luck.

Thanks again for your comments. Let me know if you find any bugs (at least ones I can fix Smile ). I'll be putting out a bug fix release of UbuRadio some time this week.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#9
2007-02-13, 10:12 AM (This post was last modified: 2007-02-13, 10:21 AM by ubu.)
pz1 Wrote:UBU, thanks for the extensive and usefull comment. I hope you did not take my comments as to negative. I highly appreciate the work you are doing on these plugins. I do understand the difficulties of streaming media over the internet. Actually I am amazed that this protocol does things it has not been designed for, so well. For the time being i will hit the play button once in a while.
Thanks for the kind words. It's tough, but somebody had to do it. Cool

Quote: I did install this one because you explicitly asked for an extended userbase to test the radio plugin.
I did? I must have been crazy. Big Grin

Quote:I happy to help out, and I will continue to give that feedback. In the context of what you have written, I do not expect you solve all of it. It might help you finding weak spots in the present implementation.
I certainly appreciate it.

Quote: 1) I do notice that the streams played in sub's standard Net Radio (shoutcast) are much more stable. These will run for hours.
That's because Shoutcast streams are already in MP3 format so require little or no transcoding to play with the GB-PVR audio player. Also, Net Radio was written by sub. As the author of GB-PVR, it's entirely possible he knows things that I don't. Wink

Quote: 2) In Uburadio I had one MP3 stream which played at least three hours time shifted on the PC console.
Same reason. VLC has to do much less work to "transcode" an MP3 stream to an MP3 file. Streams in WMP, OggVorbis, etc. formats make it do more work, requiring more resources and, therefore, inherently expose Timeshift playback to timing issues. And, btw, as I mentioned in my earlier post, the arbitrary 60 minute limit only applies to MVP playback so stations should, in theory, keep playing on your PC as long as you like.

Quote: 3) I got the impression that some streams play longer in preview mode than in timeshifted mode.
Well they would, if you think about it. The internal players (Preview mode) are just embedded versions of the regular external players so, if a stream hiccups (as they quite often do - either caused by the stream server itself, network variations, or by you stealing bandwidth by downloading a huge email attachement to your laptop) the player will usually recover and keep going. If the same thing happens in timeshift mode, VLC will temporarily stop writing to the MP3 file and, if the GB-PVR player catchs up with it, it thinks it's hit the end of the file and stops playing.

I can't think of any good way round this. I've provided a configurable Wait Time so you can at least give VLC a chance to get a good start ahead of the GB-PVR player. In the next version of UbuStream this will be configurable for each individual station so you can fine tune "problem" stations (but not in UbuRadio - I want to keep that very simple). So - keep your remote handy at all times so you can hit Play again when it does happen.

As you pointed out, trying to treat network streams as if they were conventional broadcast stations presents certain "difficulties". It's really like attempting to "square the circle". I'm constantly amazed that it's possible at all, as I sit on my couch listening to radio stations from all over the world and watching a variety of streaming TV news, movies, etc. (especially since I live behind a mountain and can't receive terrestrially broadcast radio or TV at all). Unfortunately, anyone who expects it to behave as reliably and predictably as their set top box signal is going to be somewhat out of luck.

Thanks again for your comments. Let me know if you find any bugs (at least ones I can fix Smile ). I'll be putting out a bug fix release of UbuRadio some time this week.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
pz1
Offline

Senior Member

Posts: 740
Threads: 16
Joined: Jan 2006
#10
2007-02-13, 04:21 PM
ubu Wrote:As the author of GB-PVR, it's entirely possible he knows things that I don't. Wink

Let's send the marines to Wellington beach and squeeze it out of him Big Grin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  UBURadio and version 1.3.11 cc1091 19 13,824 2009-06-09, 02:22 AM
Last Post: cc1091
  Where do I get "UbuRadio.XMLSerializers.dll" cc1091 2 3,017 2009-05-28, 07:52 AM
Last Post: McBainUK
  UBuradio wont start idkpmiller 1 2,790 2008-08-20, 12:48 AM
Last Post: GenieNitro
  UbuRadio time shifting not working for me? malc 2 2,526 2008-05-28, 01:06 PM
Last Post: malc
  Cant stop uburadio Elmo Putney 2 2,794 2008-03-10, 09:40 AM
Last Post: Elmo Putney
  Error message UbuRadio meezcore 4 2,749 2008-02-09, 01:53 PM
Last Post: ind57
  UbuRadio 1.3 and Timeshift play in PVRX2 roebel 3 2,461 2007-08-22, 08:34 PM
Last Post: roebel
  ubuRadio doesn't stay checked mkenyon2 0 1,627 2007-08-22, 07:58 PM
Last Post: mkenyon2
  UbuRadio 1.2 Doesn't show North America mkenyon2 8 3,408 2007-07-27, 09:03 PM
Last Post: ubu
  Current UbuRadio version ubu 3 9,984 2007-05-03, 03:23 AM
Last Post: ubu

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode