Stream freezing - Linux
#1
Hey,

I have got a problem with the Mediaportal pvr/and or my Mygica A11 linux box (AML8726-M3 + Cortex A9, 1GB RAM, 4GB NAND, Mali-400 GPU) - it will find the channels/epg etc., and it works fine for a minute after 5-10 seconds of syncing (video syncing with audio), but then it just freezes (the signal, not the system). I can't figure out why Sad
I can select another channel or the same and the same occurs, a 720p/1080p mkv stream from the server using ftp works just fine. I have also updated Mediaportal and the XBMCTVserver plugin, and it works fine on my laptop using Ubuntu or Windows 7 on the same network, maybe I need to try some other settings?

I have enabled devlog, but my knowledge of it isn't that big Undecided
As far as I can tell something happens from line 428:
Code:
23:47:25 T:1097191072   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
23:47:25 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:25 T:1097191072   ERROR: Previous line repeats 2 times.
23:47:25 T:1097191072   DEBUG: Window VideoFullScreen.xml was already loaded
23:47:25 T:1097191072   DEBUG: Alloc resources: 34.74m
23:47:25 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:26 T:1352918112   ERROR: Previous line repeats 87 times.
23:47:26 T:1352918112   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:4841148.555553, should be:5135455.222218, error:294306.666665
23:47:26 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:26 T:1352918112   ERROR: Previous line repeats 8 times.
23:47:26 T:1352918112   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:5199007.222218, should be:5902973.222214, error:703965.999996
23:47:26 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:26 T:1352918112   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:5921370.222214, should be:6273391.555553, error:352021.333339
23:47:26 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:26 T:1352918112   ERROR: Previous line repeats 11 times.
23:47:26 T:1352918112   DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:6372556.555553, should be:6724764.888890, error:352208.333337
23:47:26 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:27 T:1310975072   ERROR: Previous line repeats 130 times.
23:47:27 T:1310975072   DEBUG: DVDVideoCodecAmlogic: detected new framerate(25.000000), video_rate(3840)
23:47:27 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:28 T:1310975072   ERROR: Previous line repeats 71 times.
23:47:28 T:1310975072   DEBUG: DVDVideoCodecAmlogic: detected new framerate(50.000000), video_rate(1920)
23:47:28 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:46 T:1352918112   ERROR: Previous line repeats 2078 times.
23:47:46 T:1352918112   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:26865701.888890, should be:26876862.579362, error:11160.690472
23:47:46 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:47:51 T:1747989600   ERROR: Previous line repeats 543 times.
23:47:51 T:1747989600   DEBUG: Thread Jobworker 1747989600 terminating (autodelete)
23:47:51 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:48:06 T:1352918112   ERROR: Previous line repeats 1733 times.
23:48:06 T:1352918112   DEBUG: CDVDPlayerAudio:: Discontinuity2 - was:47016690.579362, should be:47005518.404511, error:-11172.174850
23:48:06 T:1260467296   ERROR: ffmpeg[4B213460]: [rtsp] ignoring previously allocated packet on stream 0
23:48:23 T:1352918112   ERROR: Previous line repeats 1661 times.
23:48:23 T:1352918112 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
23:48:23 T:1310975072 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
23:48:23 T:1310975072    INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 50.000000 fps
23:48:24 T:1107678304   DEBUG: CSoftAEStream::GetFrame - Underrun
23:48:24 T:1352918112   DEBUG: CSoftAEStream::Flush
23:48:46 T:1097191072   DEBUG: Previous line repeats 49 times.
23:48:46 T:1097191072   DEBUG: Keyboard: scancode: 19, sym: 0070, unicode: 0070, modifier: 0
23:48:46 T:1097191072   DEBUG: OnKey: p (f050) pressed, action is Stop

The whole log is here, form pressing select to stopping: http://pastebin.com/89EzVVD9
/tmp/usedata/ is 2GB and now only using 97,6mb so that shouldn't be the problem..

Hope you guys can help Smile

PS: I added this thread in PVR Dev forum yesterday, didn't mean to, and admin hasn't moved yet, that's why a started a new thread :S
Reply
#2
Well, I see from you log that you are using the addon in ffmpeg mode. This means that the pvr addon only provides a RTSP url to XBMC and XBMC itself is responsible for the playback. XBMC uses its internal ffmpeg library for RTSP playback and all playback errors in your log file indicate that ffmpeg does not 'like' the h264 stream.
The ffmpeg RTSP implementation is also causing problems here like playback artifacts on h264 streams. I can't really fix it without digging into the ffmpeg library code. The problem is definitely outside my addon.

Did you also try to play a recording using the pvr addon? Does that work or does that also fail?
And what happens if you play the same recording (.ts file) directly using a file share?
Do you also have mpg2 channels that you could try or only HD (h264) channels?
Are you able to access Windows network shares on your ARM box using XBMC? If yes, then share your timeshift and recordings folders on your MediaPortal TVServer machine and enable the "TSReader" mode of the MediaPortal PVR addon. This will bypass RTSP streaming and directly play from the timeshift buffer file.
Developer of the MediaPortal PVR addon and retired developer of the Argus-TV PVR-addon.
http://www.scintilla.utwente.nl/~marcelg/xbmc
Reply
#3
I'll try that, thanks Smile

Have one question though, when using PVR Demo Addon, what is the direct link, is there a unique link for every channel id (fx ciq=1155)?
Reply

Logout Mark Read Team Forum Stats Members Help
Stream freezing - Linux0