Can't play LiveTV or Recording directly
#1
Hi -
Newbie here. I am using Mediaportal 1.5 TV server on a Win7 system, and Raspbmc on a Raspberry Pi (Add-on version 1.4), and XBMC on my Nook. I am using the HDHomerun tuner.

I am having trouble with the Mediaportal PVR playing from the Recording or TV directories on the Rpi and Android Nook. Using my Win7 system (where the Tvserver is running), I am able to play LiveTV and Recordings just fine. It also appears that the SchedulesDirect plugin is also working on all clients. I am also able to play from the Videos tab on all clients.

On the RPi:
Using the Videos tab, I can add the share where the Recordings .ts files are located and I am able to play them fine. I can also do this via the System->Files tab. So I believe this suggests the directories are shared properly (currently shared to Everyone), and I don't have codec issues.

In the LiveTV->Recordings tab, it does show recordings are present, but when I select one, it spins on the 'Working' notification. (These are the same recordings that work if I add their directory in the Videos tab)
In the LiveTV-> TVChannels tab, if I select a TV station, it spins on the 'Working' notification. (below)


In Mediaportal, the Recording and Timeshifting folder is set to:
\\exj625-DESK\\TV_Recording
\\exj625-DESK\\TV_Timeshifting

and the Plugins->TVServerSBMC->Shares show the same.

Here's a snippet of log file when it plays the .ts successfully from the System->Files tab:



Code:
22:09:04 T:2738295872   DEBUG: ScanForExternalSubtitles: Searching for subtitles...
22:09:04 T:2738295872   DEBUG: OpenDir - Using authentication url smb://EXJ625-DESK/TV_Recording
22:09:04 T:2738295872   DEBUG: ScanForExternalSubtitles: END (total time: 249 ms)
22:09:04 T:2738295872  NOTICE: Creating Demuxer
22:09:04 T:2738295872   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-53-arm.so)
22:09:04 T:2738295872   DEBUG: Loading: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/system/players/dvdplayer/avcodec-53-arm.so
22:09:04 T:2738295872   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avformat-53-arm.so)
22:09:04 T:2738295872   DEBUG: Loading: /opt/xbmc-bcm/xbmc-bin/lib/xbmc/system/players/dvdplayer/avformat-53-arm.so
22:09:04 T:2738295872   DEBUG: Open - probing detected format [mpegts]
22:09:05 T:2738295872   DEBUG: Open - avformat_find_stream_info starting
22:09:05 T:2738295872   ERROR: ffmpeg[A3371440]: [mpeg2video] mpeg_decode_postinit() failure
22:09:05 T:2959242304   ERROR: Previous line repeats 20 times.
22:09:05 T:2959242304   DEBUG: CecLogMessage - key auto-released: select (0)
22:09:05 T:2959242304   DEBUG: PushCecKeypress - received key  b duration 1071
22:09:05 T:2738295872   ERROR: ffmpeg[A3371440]: [mpeg2video] mpeg_decode_postinit() failure
22:09:08 T:2738295872   DEBUG: ffmpeg[A3371440]: [mpegts] PES packet size mismatch
22:09:08 T:2738295872   DEBUG: Open - av_find_stream_info finished
22:09:08 T:2738295872    INFO: ffmpeg[A3371440]: Input #0, mpegts, from 'smb://EXJ625-DESK/TV_Recording/Doc Martin - KVIEHD - 2013-10-26.ts':
22:09:08 T:2738295872    INFO: ffmpeg[A3371440]:   Duration: 01:12:02.16, start: 0.141367, bitrate: 11726 kb/s
22:09:08 T:2738295872    INFO: ffmpeg[A3371440]:   Program 137
22:09:08 T:2738295872    INFO: ffmpeg[A3371440]:     Stream #0:0[0x30]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 90000 kb/s, 66.08 fps,
59.94 tbr, 90k tbn, 119.88 tbc
22:09:08 T:2738295872    INFO: ffmpeg[A3371440]:     Stream #0:1[0x40](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, 5.1(side), s16, 384 kb/s
22:09:08 T:2738295872   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.clock handle 0x2e0d080 dllopen : 1
22:09:08 T:2738295872   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81
22:09:08 T:2738295872   DEBUG: OMXClock::OMXStop
22:09:08 T:2738295872   DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
22:09:08 T:2738295872  NOTICE: Opening video stream: 0 source: 256
22:09:08 T:2738295872   DEBUG: DllBcm: Using omx system library
22:09:08 T:2738295872   DEBUG: COMXCoreComponent::Initialize : OMX.broadcom.video_decode handle 0x3568b68 dllopen : 1
22:09:08 T:2738295872   DEBUG: COMXCoreComponent::Initialize OMX.broadcom.video_decode input port 130 output port 131
22:09:08 T:2738295872   DEBUG: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.video_decode) - port(130), nBufferCountMin(1), nBufferCountActual(120), nBufferSize(81920),
nBufferAlignmen(16)
.....


Here's a snippet of log file where it fails to play in the LiveTV->Recordings tab:

Code:
...
22:10:30 T:2959242304   DEBUG: CecLogMessage - >> TV (0) -> Playback 1 (4): vendor remote button up (8B)
22:10:31 T:2959242304   DEBUG: CecLogMessage - key auto-released: exit (d)
22:10:31 T:2959242304   DEBUG: PushCecKeypress - received key d8 duration 1075
22:10:33 T:2738295872   DEBUG: CSmbFile::Open - opened TV_Recording/Doc Martin - KVIEHD - 2013-10-26.ts, fd=-1
22:10:33 T:2738295872    INFO: FileSmb->Open: Unable to open file : 'smb://exj625:password%40EXJ625-DESK/TV_Recording/Doc%20Martin%20-%20KVIEHD%20-%202013-10-26.ts'
                                            unix_err:'6e' error : 'Connection timed out'
22:10:33 T:2738295872    INFO: AddOnLog: MediaPortal PVR Client: FileReader::OpenFile() smb://exj625:password@EXJ625-DESK/TV_Recording/Doc Martin - KVIEHD - 2013-10-26.ts.
22:10:39 T:2738295872   DEBUG: CSmbFile::Open - opened TV_Recording/Doc Martin - KVIEHD - 2013-10-26.ts, fd=-1
22:10:39 T:2738295872    INFO: FileSmb->Open: Unable to open file : 'smb://exj625:password%40EXJ625-DESK/TV_Recording/Doc%20Martin%20-%20KVIEHD%20-%202013-10-26.ts'
                                            unix_err:'6e' error : 'Connection timed out'
...repeats the connection timed out error


I can include the whole log file here if it would help. Ultimately I would like to move my recording and timeshifting directories over to my Windows HomeServer, but for now I'm using my desktop to debug.

I can see deltas in the logs between the successful and failing case, but I'm not sure how to interpret them. Any suggestions would be great.
Thanks.
Reply
#2
Playing recordings from the PVR section of XBMC was broken for several Gotham Alpha Builds and was just fixed in the most recent release. If I remember correctly, TSReader method of streaming also didn't work in those builds and you had to use ffmpeg.
Reply
#3
Thanks. I hadn't seen any reference to it being broken as I searched through threads, so that saves me time!

I'm not sure what version I have or how to upgrade to the 'most recent'. (I'll do some more homework; or if you have any pointers, that'd be great)
If I switch the streaming to ffmpeg, it fails as well.
Reply
#4
Sorry, I have not used a Rpi very much, so not sure I can be much more help. The xbmc version I am using was compiled Oct 13 2013. Look at your system info and see if the version tells you the date it was compiled. If nothing else the next version should be working.

The problem with Live TV seems to be a common one with non-Windows machines. I seem to remember that adding the server (exj625-DESK) in File Manager was a recommended fix. When you add it in file manager, a dialog will open where you can enter your credentials (username/password).

I'm sure you can find posts specific to LiveTV and Rpi that will have more info.

Also did you restart XBMC after you switched to FFmpeg? I remember having to do that even on a windows machine.
Reply
#5
Thanks for the ideas - will try it out.
Reply
#6
I tried several distributions on my Rpi over the weekend. (Raspbmc, Openelec, Xbian) They are all using Frodo 12.2, so you can pretty much ignore everything from my earlier post.

Raspbmc is working for me after doing the following. (really not sure if any of these were to key to getting it to work, but they are the only changes I have made.)

Enabled Samba by following these directions:
http://forum.stmlabs.com/showthread.php?tid=7937

Added my server to network locations using the IP address.

Set de-interlace to auto in the video settings OSD. These are the settings that are only available while a video is playing. Press enter, click on the movie reel icon (Confluence skin) and deinterlace is the first setting. Be sure to click save for all videos at the bottom.

TSreader is working much better for me than FFmpeg. (It seems that I had to reset the PVR database after changing streaming methods)



I still think that the Rpi is a little underpowered to handle full mpeg2 HD content... But it is doing much better than my previous attempts using it.
Reply

Logout Mark Read Team Forum Stats Members Help
Can't play LiveTV or Recording directly0