• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 7
[LINUX] Problems with frame drops jumps (consume packet error)
#1
Good Morning All

Please excuse the long post, wanted to add as much detail as possible (pastebin etc to follow). I've resurrected this after the great crash and updated it a little.

I have a 3610 set up for media center front end duties, mostly everything is working well but I do have one glitch with video playback and, after spending quite a bit of time with configurations, searching and tweaking I cant quite get it resolved. I suspect (from other postings) this may be something being resolved in development that is going on, can anyone help.

Firstly my general configuration:

Quote:Revo 3610 Dual Core
2 GB RAM
512 allocated to video memory
Ubuntu Karmic
Mythtv frontend
XBMC Camelot (NOT SVN)
LH423000 LCD TV (HDMI)
SPDIF to AMP (NO HDMI on AMP)
Desktop set to 1920x1080@50 (hello from the UK - set to 50 for MythTV frontend)
XBMC set to run at 1920x1080@50
Match refresh option on
Sync to audio : drop/dupe
Sync to display: Allow driver (also tried always on, switched off causes tearing)
NVIDIA driver is 185.13.36 (Reset after much pain from 195 after MythTV would no longer work!)

My system is set up so that it boots up and starts mythTV frontend, pressing livetv on the remote then kills that and fires up XBMC, pressing live tv again on the remote kills XBMC and fires up mythTV frontend (all family friendly)

The Revo plays 720 and 1080p seemingly with no issues from both my LAN / mythTV backend and from the revo local drive but every now and again there will be a slight stutter or frame drop. The TV is refresh matching to 24/50/60 so this isnt pull down and its not standard film jitter.

Taking a look in .xbmc/temp/xbmc.log shows a number of entries (I'm at work at the mo and will update this post later / put in a pastebin but here's what I have handy) that say

Quote:Decode - avcodec_decode_video didn't consume the full packet. size

Sometimes this is accompanied by a frame drop sometimes not. Watching a known, good H264 (1080p / DTS) encode from a BluRay disc of UP! gave a total of 44 frame drops in the whole movie (worst case, best case was 16), most of which occurred at the begining when the LAN synced up etc and the screen switched to 24hz.

I've tried the usual steps:

* Ubuntu visual effects disabled
* composite disabled
* twinview disabled
* noflip set to true but then removed (caused tearing)

I also tried updating the drivers to the 195 entry but that totally borked MythTV frontend and it was a painful experience to get the older drivers back on and get MythTV frontend back up and running again (one whole saturday in fact, my WAF was very loooow at this point No)

Does anyone know if this is an XBMC issue? I think I've ruled out the LAN (happens on local files) and the revo seems to be running VDPAU etc correctly since this only happens at odd intervals. I suspected it could be something like powermizer but setting that (using the device option registry setting) to use mode 3/4 didnt make any difference.

I don't think I can use the stand alone version / boot straight into XBMC rather than gnome since I need to be able to switch to MythTV front end (this will hopefully cease to be a requirement once the new integration is available in future releases )

I'm willing to try an SVN / build release but haven't tried that yet so would need a guide of some kind.

If this is something that's been / being fixed then I'll just wait for the next release. Patience isn't a problem

Cheers for any help / advice you can all offer.

Edz
Reply
#2
I have similiar issues in my Zotac ION PC....

I did a google search of the "Decode - avcodec_decode_video didn't consume the full packet. size" error a while back, and almost all the different threads seemed to point to CPU Throttling. It was not only happening in XBMC, but Plex, MythTV, and Boxee also.

The users who used AMD CPU's disabled the Cool n Quiet to resolve the issue, but I have not seen anything for Intel CPU's.

I have an option in the bios for Throttling, but mine is set to disabled... not sure if for some reason it still is.
Reply
#3
Interesting

I've had a look through the BIOS for the revo but couldnt find anything in there, anyone with a Revo found something I missed or something in ubuntu need changing?

Cheers

Ed
Reply
#4
Righty O,

steps taken since the thunder gods wrath struck:

Quote:
  • Updated Drivers to 195
  • Uninstalled drivers after it hosed my myth tv front end
  • Changed opengl sync options to on

I've also installed ncconf and turned off "ondemand" and power handling.

First tests look ok (I am reaching the point that straightening the rug the first tests would look good Laugh) with the killa planet earth sample only dropping 5 frames at the begining which is fairly normal for that clip.

Playing another mts file (1080p) dropped 1 frame in 10 minutes of playback and there where no "consume packet" errors in xbmc.log.

Now, having said that, I'd imagine that this evening I'll go to play something and notice a slew of jumping and frame drops but then thats all part of the fun Shocked
Reply
#5
As an addendum I'm still running on the Camelot release, is there a new version yet that's safe to update or are we awaiting the output from the merge that's been going on?
Reply
#6
Update

just watched a 2 1/2 hour 1080p movie which only dropped one frame. I did think I saw some hiccoughs though and chcking the logs I found this. Our old friend consume error is there bu anyone got any idea about these read errors? This is coming over an smb share from ubuntu running smb

Quote:19:06:39 T:2893020016 M:1167630336 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1115
19:06:39 T:2893020016 M:1167630336 NOTICE: (VDPAU) Creating the video mixer
19:06:39 T:2893020016 M:1154150400 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1171
19:06:39 T:2893020016 M:1154150400 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 1). Creating a new one. TRY #1
19:06:39 T:2893020016 M:1150976000 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1115
19:06:39 T:2893020016 M:1150976000 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1171
19:06:39 T:2929863536 M:1155166208 WARNING: CDVDMessageQueue(teletext):Tongueut MSGQ_NOT_INITIALIZED
19:06:39 T:2893020016 M:1146150912 ERROR: Decode - avcodec_decode_video returned failure
19:06:39 T:2893020016 M:1146023936 ERROR: Decode - avcodec_decode_video returned failure
19:06:39 T:2893020016 M:1145896960 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
19:06:40 T:2893020016 M:1139675136 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 3). Creating a new one. TRY #1
19:06:40 T:2893020016 M:1149673472 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1171
19:11:26 T:2929863536 M:1151926272 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
19:16:26 T:2929863536 M:1151598592 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
19:21:26 T:2929863536 M:1146982400 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
19:26:26 T:2929863536 M:1147170816 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
19:31:26 T:2929863536 M:1146994688 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
19:34:01 T:2893020016 M:1146986496 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 3275, consumed: 0
19:34:01 T:2893020016 M:1146986496 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 2862, consumed: 0
19:36:26 T:2929863536 M:1147064320 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
19:51:26 T:2929863536 M:1146978304 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
19:56:26 T:2929863536 M:1146941440 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:01:26 T:2929863536 M:1145344000 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:06:26 T:2929863536 M:1145692160 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:16:25 T:2929863536 M:1145679872 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:22:39 T:2929863536 M:1145061376 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:25:01 T:2893020016 M:1144725504 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 7419, consumed: 0
20:26:25 T:2929863536 M:1144864768 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:31:01 T:2893020016 M:1144979456 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 9209, consumed: 0
20:31:01 T:2893020016 M:1144979456 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 8777, consumed: 0
20:31:25 T:2929863536 M:1145040896 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:36:25 T:2929863536 M:1145094144 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:41:25 T:2929863536 M:1145233408 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:46:25 T:2929863536 M:1143164928 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:51:25 T:2929863536 M:1143242752 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
20:56:25 T:2929863536 M:1143373824 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:03:09 T:2929863536 M:1143312384 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:06:25 T:2929863536 M:1143238656 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:11:01 T:2893020016 M:1143226368 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 5841, consumed: 0
21:11:25 T:2929863536 M:1143279616 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:16:25 T:2929863536 M:1143169024 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:21:25 T:2929863536 M:1143214080 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:31:25 T:2929863536 M:1142157312 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:36:25 T:2929863536 M:1139654656 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:41:25 T:2929863536 M:1139417088 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:46:25 T:2929863536 M:1139146752 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
21:51:24 T:2929863536 M:1139068928 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying

If I can get this resolved I'll be a happy camper !
Reply
#7
...and I'm back

in response to the read error issue I found a thread on here relating to strict locking on samba shares in /var/db/smb.shares (osx) under ubuntu this is inside of /etc/samba/smb.conf and I've added in strict locking = no as shown here.

Quote:[Media]
comment = Media Storage
read only = no
locking = no
strict locking = no
path = /home/Media
guest ok = yes
[strike]Some (very) quick tests show no read errors popping up but I think I'll need to test further[/strike]

Strike that...there they are

Quote:23:44:41 T:2735733616 M:993456128 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
23:44:42 T:2735733616 M:995454976 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 3). Creating a new one. TRY #1
23:44:42 T:2735733616 M:999612416 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1171
23:49:34 T:2798603120 M:1009147904 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:54:34 T:2798603120 M:1007591424 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
Interestingly both these and the ones that appeared when watching the whole movie are 5 minutes apart...
Reply
#8
Bump... anyone got any ideas?
Reply
#9
Hi all

I've now tried:

Quote:Disabling pulseaudio using rcconf
Disabled acpi using rcconf (especially ondemand to ensure power scaling wasnt being used)
Adding safefull to advancedsettings.xml
removing all resolutions from config xml
ensuring open gl sync is switched on
activating allow flip in nvidia settings

And just as a reminder I'm running at 1920x1080 @50hz.

But still my problems persist. However in my usual late night attempt to resolve this (sleep...yes I remember that) I noted that it seems particularly bad on h264 Region 1 DVD encodes. Testing playback using H264 encodes from back to the future 2 (region 2 dvd source) and Monsters vs Aliens (region 2 dvd source) both played with no frame drops (apart from initial start up) and no skipping.

Playing Air America and Final Fantasy Spirits Within (region 1 dvd sources) both saw frame jumping (but not necessarilly frame drops)

These where accompanied by the usual did not consume the full packet error in xbmc.log and these are not high def so I dont think this is a processor issue but I'm running out of other things to check!!!

This doesnt appear to be a problem with my network:

Quote:Backend ubuntu Karmic running latest samba
Mix of EXT3S (internal) and NTFS external - temporary drives
All drives mounted into /media/library1 /media/library2 etc on startup
media share in smb.conf has strict locking = no and locking = no
Backend has 10/100 card through network switch to Gigabit lan in Revo
hard cabling between them no wifi or power plugs
File copy tool in XBMC shows hi throughput when tested

However for my own peace of mind and also as part of a standardisation I'm going to change the revo to mount the share through fstab.

Other than that I'm going to re-test with a couple of the original region 1 sourced H264 files locally on the Revo (I tested this before but that was hidef) and then I'm totally out of ideas.

ConfusedSad Please Help!!!!! I love XBMC when its working well (watched a H264 rip of a BDAM - Big Dumb Action Movie - the other night and if it wasnt for the stutter / jumping I'd have removed the DVD player from the living room for good there and then so good was the experience)
Reply
#10
sdsnyr94 Wrote:I have similiar issues in my Zotac ION PC....

I did a google search of the "Decode - avcodec_decode_video didn't consume the full packet. size" error a while back, and almost all the different threads seemed to point to CPU Throttling. It was not only happening in XBMC, but Plex, MythTV, and Boxee also.

The users who used AMD CPU's disabled the Cool n Quiet to resolve the issue, but I have not seen anything for Intel CPU's.

I have an option in the bios for Throttling, but mine is set to disabled... not sure if for some reason it still is.

Hi there,

did you have any luck resolving this? You may want to try rcconf to disable ondemand and see if it helps you out with your issue. Also what version are you on, the latest stable or an SVN version?
Reply
#11
Devs, I noticed trac ticket (Ticket #8377 Framedrop on ION, avcodec_decode_video to blame? )

This looks like it was about to be closed as un reproducable. I have posted a quick note and a link to this thread. Anything i can do to help please let me know

regards

Ed
Reply
#12
Ed - this isn't going to be much help, but I've seen this error in the past as well in my logs, though I was never able to find the cause. I have the Revo 1600.
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply
#13
myrison Wrote:Ed - this isn't going to be much help, but I've seen this error in the past as well in my logs, though I was never able to find the cause. I have the Revo 1600.

Hi there. This looks interesting,

do you notice jumping or dropped frames at those points?
Reply
#14
Yes, in the past I have noticed the uneven playback when it occurred. I've done a lot of work getting the Revo mostly smooth and at this point (see my signature) I VERY seldom have problems like this. (knock on wood)

The one completely insurmountable problem for me with smooth playback is with interlaced material. Apparently it's a known issue that 1080i does not play back smoothly on the Revos (though I suspect it is not just a Revo issue), and for the time at least, I've given up screwing around with it since I don't have a lot of 1080i material.
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply
#15
Thanks for that.

I'm testing some changes in advancedsettings.xml at the moment. I'll report back with some results Smile
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 7

Logout Mark Read Team Forum Stats Members Help
[LINUX] Problems with frame drops jumps (consume packet error)0