[Windows] HDTV playback, lag, stuttering

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nanolimit Offline
Junior Member
Posts: 10
Joined: Apr 2011
Reputation: 0
Post: #1
I've been trying to use both the margro and opdenkamp builds, both seem to have an issue with ffmpeg.

While trying to watch a full channel(1080i) it will continuely stutter and lag, make it completely unwatchable.
I can watch the channels from from within MePo and the default software that came with the tuner, its just in XBMC.

Also even the SD channels after 30-60 minutes of play with start to stutter, but stopping and restarting the channel fixes the issue.


Is there any work arounds for this? or would I need to wait for a complete new build with an updated ffmpeg?
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,005
Joined: Feb 2009
Reputation: 25
Location: Heerlen, The Netherlands
Post: #2
probably the buffer underrun problem, but that's not windows specific.
please pastebin a full debug log.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
loggio Offline
Fan
Posts: 562
Joined: May 2010
Reputation: 6
Post: #3
This happens to me also, constantly. I also have an issue with one channel always missing the bottom quarter of the screen, but if i turn off DXVA the channel plays fine with no missing part of the image, but this is only happening on ONE of my channels... Not all, i don't understand why, because the streem is the same as all the other channels... It's frustrating and makes the channel virtually unwatchable.
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,005
Joined: Feb 2009
Reputation: 25
Location: Heerlen, The Netherlands
Post: #4
debug logs please Smile

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
loggio Offline
Fan
Posts: 562
Joined: May 2010
Reputation: 6
Post: #5
Here's my debug log, and a picture showing the issue with my tv stream.

[Image: screenshot000y.jpg]

LOG: http://www.mediafire.com/?lsxly3g47vunyfg
find quote
loggio Offline
Fan
Posts: 562
Joined: May 2010
Reputation: 6
Post: #6
Is that the Debug log you're after?
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,005
Joined: Feb 2009
Reputation: 25
Location: Heerlen, The Netherlands
Post: #7
hmm yeah, but nothing special can be seen related to those missing epg details. I'll have to investigate that further.

what could be the cause of the missing bottom of the screen are these lines:
Code:
21:12:35 T:3004 M:2262724608   ERROR: ffmpeg[BBC]: [mpeg2video] warning: first frame is no keyframe
..
..
21:13:28 T:3004 M:2235908096   ERROR: ffmpeg[BBC]: [mpeg2video] Failed to begin frame

21:13:28 T:3004 M:2235908096   ERROR: ffmpeg[BBC]: [mpeg2video] hardware accelerator failed to decode picture
I could ignore all frames until an iframe is received in CDVDDemuxPVRClient I suppose. makes sense, since those can't be rendered correctly anyway.
is the mediaportal add-on using that code? the add-on isn't in the main tree (yet) since it doesn't work on all os'es.

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
loggio Offline
Fan
Posts: 562
Joined: May 2010
Reputation: 6
Post: #8
Not too sure if it uses that code. Margro hasn't released an update to his addon in god knows how long... i don't know too much about the addon. However I'm using the current binary build located here http://xbmc.opdenkamp.eu/ (19 April 2011) using the ffmpeg rtsp Media Portal plugin supplied.

But the issue has always been there, even when i was using Magro's Prebuild versions.
However, i'm sure Margro would be more than happy to tell you what you need to know.

Thanks for looking into this by the way. Been driving me nuts. If there's any more info you need, i can assist if you tell me what to look for.

Cheers,
Loggio.
(This post was last modified: 2011-04-25 13:25 by loggio.)
find quote
FernetMenta Offline
Team-XBMC Member
Posts: 1,709
Joined: Jul 2010
Reputation: 37
Location: Munich
Post: #9
Maybe this is the problem:

fps: 25.000000, pwidth: 1440, pheight: 1080, dwidth: 1440, dheight: 808

1440x1080 uses rectangular pixels....

CDVDVideoCodecFFmpeg::GetVideoAspect

Code:
/* XXX: we suppose the screen has a 1.0 pixel ratio */ // CDVDVideo will compensate it.
  iHeight = pCodecContext->height;
  iWidth = ((int)RINT(pCodecContext->height * aspect_ratio)) & -3;
  if (iWidth > (unsigned int)pCodecContext->width)
  {
    iWidth = pCodecContext->width;
    iHeight = ((int)RINT(pCodecContext->width / aspect_ratio)) & -3;
  }
find quote
loggio Offline
Fan
Posts: 562
Joined: May 2010
Reputation: 6
Post: #10
Kepp in mind, this ONLY happens with DXVA ENABLED. When switched off, everything plays fine.

I would just leave it off... But I'm using an ATOM machine...enough said. lol
find quote
Post Reply