Multiple streams for the same channel
#1
Is there a way to enable multiple streams for a channel.

example:

I start live tv from raspberry pi A watching channel 4. I leave that running and go to raspberry pi B and want to watch channel 4. Channel 4 starts, but it starts at where raspberry pi A started recording. I'd like to have a second stream start (I have 4 turners) on pi b for channel 4.
Reply
#2
When you start the second stream on channel 4 it is supposed to start at the current time, not at the original start time, but that feature has been acting flaky and we need to revisit it. Are you saying you would prefer it to use a different tuner instead? Or just that this time-start problem get fixed?
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#3
Either would work. I'd probably prefer the time-start problem get fixed. Thank you for all the work you do!
Reply
#4
if you try to tune the channel again on pi B, does it ever "skip ahead" to the current live time in the file, or does it always start playing from where Pi A started? are you running the latest pvr.wmc addon on both Pi's? And latest ServerWMC version on the server?

Can you post a XBMC DEBUG client log from Pi B showing the problem?
pvr.wmc TV addon and ServerWMC Backend Development Team
http://bit.ly/ServerWMC
Reply
#5
XBMC log: https://onedrive.live.com/redir?resid=5E...ile%2c.log

yes, I have the latest versions of the pvr.wmc addon on both pis. I am running the very latest serverwmc (1.0.0.25 build 1129). No, it always starts where pi a started.

thanks for your help!
Reply
#6
Well the log message I wanted to see is there, you can see that it does say it succesfully "seek" in the file stream up to a particular offset (rather than 0). But then there is a failure message and perhaps XBMC then reverts to trying to play the file from the beginning again. I wonder if it's specific to the raspberry pi. Do you have any other clients you can test being the 2nd client watching an existing stream?

13:28:01 T:2626679872 DEBUG: AddOnLog: Windows Media Center Client - linux arm Edition: OpenLiveStream> opening stream: smb://john%40heblicks.com:*********@CTS000162/Users/Public/Recorded TV/TempSWMC/LiveTV_192.168.2.140_ATSC_4.1_2014_03_09_13_18_28.ts
13:28:01 T:2626679872 DEBUG: CSmbFile::Open - opened Users/Public/Recorded TV/TempSWMC/LiveTV_192.168.2.140_ATSC_4.1_2014_03_09_13_18_28.ts, fd=10003
13:28:01 T:2626679872 DEBUG: AddOnLog: Windows Media Center Client - linux arm Edition: OpenLiveStream> stream file opened successfully
13:28:01 T:2626679872 DEBUG: PVRFile - Open - playback has started on filename pvr://channels/tv/All TV channels/2.pvr
13:28:01 T:2626679872 DEBUG: CDVDInputStreamPVRManager::Open - stream opened: pvr://channels/tv/All TV channels/2.pvr
13:28:01 T:2626679872 NOTICE: Creating Demuxer
13:28:01 T:2626679872 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-53-arm.so)
13:28:01 T:2626679872 DEBUG: Loading: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/system/players/dvdplayer/avcodec-53-arm.so
13:28:01 T:2626679872 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avformat-53-arm.so)
13:28:01 T:2626679872 DEBUG: Loading: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/system/players/dvdplayer/avformat-53-arm.so
13:28:01 T:2626679872 DEBUG: AddOnLog: Windows Media Center Client - linux arm Edition: ReadLiveStream> stream file seek to initial position 920813568 successful
13:28:01 T:2626679872 DEBUG: Open - probing detected format [mpegts]
13:28:01 T:2626679872 DEBUG: Open - avformat_find_stream_info starting
13:28:01 T:2626679872 DEBUG: AddOnLog: Windows Media Center Client - linux arm Edition: ReadLiveStream> stream file seek to initial position 920813568 successful
13:28:01 T:2626679872 ERROR: ffmpeg[9C8FF440]: [mpeg2video] mpeg_decode_postinit() failure
pvr.wmc TV addon and ServerWMC Backend Development Team
http://bit.ly/ServerWMC
Reply
#7
This used to happen to me on my Win7/Win8 boxes, but never between my two Win/7 boxes.

If the Win8 box started Channel X, and then Win7 box started channel X the win 7 box would start the stream at the point that the Win8 box started it. I'd have to fast forward to get to live TV.

It never happened between my two Win7 boxes. And it hasn't happened since I switched from Frodo to Gotham nightlies so I can't reproduce and post my log files.

What version of XBMC is the OP running?
Reply
#8
I do not have a windows 7 machine anymore. I can throw a vm together and test. However, if I start the recording on the pi, my windows 8 machine starts at the beginning of the recording. If I stop the recordings and start the recording using windows 8, the pi picks up at real time.

the original problem exists if both pis are openelec and when one pi is openelec and the second is raspbmc.

Any thoughts?
Reply
#9
There is a fix for this in the next version of swmc. We are testing now.
Windows Media Center PVR addon (pvr.wmc) and server backend (ServerWMC)
http://bit.ly/serverwmc
Reply
#10
Just to clarify though, the "fix" is really just an alternate mechanism of doing things

In terms of the current issue, as per the logs above, XBMC is reporting that it skipped to the desired position but for whatever reason that doesnt work. There is an error about p[ostinit() failure which could be related. I dont think it is anything particular to which client OS you are using or what order they do things in (with the slight exception that hte raspberry pi does seem to be more susceptible to it so perhaps a difference in it's XBMC VideoPlayer maybe), I think it is just down to the seek position being used and whether that sek position works or not. Eg perhaps if the seek position ended up being right in the middle of a data packet, the player isnt able to find the next guid header or something like that. I think if you try enough times (with the possible exception of on the raspberry pi) you will experience the skipping to live position sometimes work and sometimes not, for the same set of circumstances (OS, which client started the stream, etc).
pvr.wmc TV addon and ServerWMC Backend Development Team
http://bit.ly/ServerWMC
Reply

Logout Mark Read Team Forum Stats Members Help
Multiple streams for the same channel0