•   
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7
  •   
[LINUX] Problems with frame drops jumps (consume packet error)
#16
Very Interesting...

I've created a userdata\advancedsettings.xml file as follows

Quote:<advancedsettings>

<video>
<vdpauscaling>true</vdpauscaling>
</video>

<bginfoloadermaxthreads>5</bginfoloadermaxthreads>

<measurerefreshrate>true</measurerefreshrate>

<videoscreen>
<safefull>true</safefull>
</videoscreen>
</advancedsettings>

And in testing the movies from yesterday I'm seeing far fewer errors, I also ensured the open gl and other sync options in the nvidia settings dialogue are checked and enabled flipping.

A look at a playback log (the 1080 movie from the other day) now looks like this


Quote:23:16:21 T:2865212272 M:1235083264 NOTICE: Display resolution ADJUST : default: 1920x1080 @ 24.00Hz (17)
23:16:21 T:2865212272 M:1235083264 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
23:16:21 T:3078014864 M:1235083264 NOTICE: Using GL_TEXTURE_2D
23:16:21 T:3078014864 M:1235083264 NOTICE: GL: Using VDPAU render method
23:16:21 T:3078014864 M:1235083264 NOTICE: GL: NPOT texture support detected
23:16:21 T:2865212272 M:1230700544 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 3). Creating a new one. TRY #1
23:16:21 T:2865212272 M:1281167360 ERROR: VDPAU Device Preempted - attempting recovery
23:16:21 T:2865212272 M:1281167360 ERROR: (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:1171
23:16:22 T:3078014864 M:1282142208 ERROR: GLX: Same window as before, refreshing context
23:16:22 T:3078014864 M:1282142208 NOTICE: Attempting recovery
23:16:22 T:3078014864 M:1282142208 NOTICE: (VDPAU) FiniVDPAUOutput
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:824
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:827
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:830
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:835
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:835
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:840
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:846
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:846
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:846
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:846
23:16:22 T:3078014864 M:1282142208 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:782
23:16:22 T:3078014864 M:1281474560 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
23:16:22 T:3078014864 M:1280712704 NOTICE: Created m_glPixmapTexture (93)
23:16:22 T:2865212272 M:1288585216 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1187
23:16:22 T:2865212272 M:1288585216 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 0). Creating a new one. TRY #1
23:16:22 T:2865212272 M:1285251072 NOTICE: (VDPAU) FiniVDPAUOutput
23:16:22 T:2865212272 M:1285251072 NOTICE: (VDPAU) screenWidth:1920 vidWidth:1920
23:16:22 T:2865212272 M:1285251072 NOTICE: (VDPAU) screenHeight:1080 vidHeight:1080
23:16:22 T:2865212272 M:1239531520 NOTICE: (VDPAU) Total Output Surfaces Available: 2 of a max (tmp: 2 const: 4)
23:16:22 T:2865212272 M:1239531520 NOTICE: VDPAU Decoder capabilities:
23:16:22 T:2865212272 M:1239531520 NOTICE: name level macbs width height
23:16:22 T:2865212272 M:1239531520 NOTICE: ------------------------------------
23:16:22 T:2865212272 M:1239531520 NOTICE: MPEG1 0 8192 2048 2048
23:16:22 T:2865212272 M:1239531520 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
23:16:22 T:2865212272 M:1239531520 NOTICE: MPEG2_MAIN 3 8192 2048 2048
23:16:22 T:2865212272 M:1239531520 NOTICE: H264_MAIN 41 8190 2032 2048
23:16:22 T:2865212272 M:1239531520 NOTICE: H264_HIGH 41 8190 2032 2048
23:16:22 T:2865212272 M:1239531520 NOTICE: VC1_SIMPLE 1 8190 2048 2048
23:16:22 T:2865212272 M:1239531520 NOTICE: VC1_MAIN 2 8190 2048 2048
23:16:22 T:2865212272 M:1239531520 NOTICE: VC1_ADVANCED 4 8190 2048 2048
23:16:22 T:2865212272 M:1239531520 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1115
23:16:22 T:2865212272 M:1239531520 NOTICE: (VDPAU) Creating the video mixer
23:16:22 T:2865212272 M:1225449472 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1115
23:16:22 T:2865212272 M:1225449472 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1115
23:16:22 T:2881997680 M:1229611008 WARNING: CDVDMessageQueue(teletext):Tongueut MSGQ_NOT_INITIALIZED
23:16:23 T:2865212272 M:1229611008 ERROR: Decode - avcodec_decode_video returned failure
23:16:23 T:2865212272 M:1229611008 ERROR: Decode - avcodec_decode_video returned failure
23:16:23 T:2865212272 M:1229611008 ERROR: Decode - avcodec_decode_video returned failure
23:16:23 T:2865212272 M:1229611008 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 1). Creating a new one. TRY #1
23:16:23 T:2865212272 M:1226403840 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
23:16:23 T:2865212272 M:1223229440 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 3). Creating a new one. TRY #1
23:20:06 T:2881997680 M:1226145792 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:25:06 T:2881997680 M:1220476928 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:30:06 T:2881997680 M:1212186624 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:35:06 T:2881997680 M:1210851328 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:40:06 T:2881997680 M:1207410688 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:45:06 T:2881997680 M:1207828480 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:46:15 T:3078014864 M:1207975936 NOTICE: CDVDPlayer::CloseFile()

There are still some errors there but no consume errors. I still see some and decode failures but usually when skipping chapters or starting up / skipping to the last viewed point.
Reply
#17
Here again is The spirits within one of the trouble region 1 encodes

Quote:23:06:13 T:2913397616 M:1306472448 NOTICE: Display resolution ADJUST : default: 1920x1080 @ 24.00Hz (17)
23:06:13 T:3078014864 M:1306472448 NOTICE: Using GL_TEXTURE_2D
23:06:13 T:3078014864 M:1306472448 NOTICE: GL: Using VDPAU render method
23:06:13 T:3078014864 M:1306472448 NOTICE: GL: NPOT texture support detected
23:06:14 T:3078014864 M:1298354176 ERROR: GLX: Same window as before, refreshing context
23:06:14 T:3078014864 M:1306480640 NOTICE: Attempting recovery
23:06:14 T:3078014864 M:1306480640 NOTICE: (VDPAU) FiniVDPAUOutput
23:06:14 T:3078014864 M:1319084032 ERROR: VDPAU Device Preempted - attempting recovery
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: The display was pre-empted, or a fatal error occurred.(2) at VDPAU.cpp:824
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:827
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:830
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:835
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:835
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:835
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:835
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:840
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:846
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:846
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:846
23:06:14 T:3078014864 M:1319084032 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:782
23:06:14 T:3078014864 M:1318531072 NOTICE: vdp_device = 0x00000001 vdp_st = 0x00000000
23:06:14 T:2913397616 M:1318531072 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1187
23:06:14 T:2913397616 M:1318531072 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 0). Creating a new one. TRY #1
23:06:14 T:2913397616 M:1317896192 NOTICE: (VDPAU) FiniVDPAUOutput
23:06:14 T:2913397616 M:1317896192 NOTICE: (VDPAU) screenWidth:1920 vidWidth:712
23:06:14 T:2913397616 M:1317896192 NOTICE: (VDPAU) screenHeight:1080 vidHeight:472
23:06:14 T:2913397616 M:1309896704 NOTICE: (VDPAU) Total Output Surfaces Available: 4 of a max (tmp: 4 const: 4)
23:06:14 T:2913397616 M:1309896704 NOTICE: VDPAU Decoder capabilities:
23:06:14 T:2913397616 M:1309896704 NOTICE: name level macbs width height
23:06:14 T:2913397616 M:1309896704 NOTICE: ------------------------------------
23:06:14 T:2913397616 M:1309896704 NOTICE: MPEG1 0 8192 2048 2048
23:06:14 T:2913397616 M:1309896704 NOTICE: MPEG2_SIMPLE 3 8192 2048 2048
23:06:14 T:2913397616 M:1309896704 NOTICE: MPEG2_MAIN 3 8192 2048 2048
23:06:14 T:2913397616 M:1309896704 NOTICE: H264_MAIN 41 8190 2032 2048
23:06:14 T:2913397616 M:1309896704 NOTICE: H264_HIGH 41 8190 2032 2048
23:06:14 T:2913397616 M:1309896704 NOTICE: VC1_SIMPLE 1 8190 2048 2048
23:06:14 T:2913397616 M:1309896704 NOTICE: VC1_MAIN 2 8190 2048 2048
23:06:14 T:2913397616 M:1309896704 NOTICE: VC1_ADVANCED 4 8190 2048 2048
23:06:14 T:2913397616 M:1309896704 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1115
23:06:14 T:2913397616 M:1309896704 NOTICE: (VDPAU) Creating the video mixer
23:06:14 T:2913397616 M:1307357184 ERROR: (VDPAU) Error: An invalid handle value was provided.(3) at VDPAU.cpp:1115
23:06:14 T:2913397616 M:1307357184 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 1). Creating a new one. TRY #1
23:06:14 T:2930183024 M:1307357184 WARNING: CDVDMessageQueue(teletext):Tongueut MSGQ_NOT_INITIALIZED
23:06:15 T:2913397616 M:1307598848 NOTICE: (VDPAU) Didnt find a Video Surface Available (Total: 2). Creating a new one. TRY #1
23:06:20 T:2913397616 M:1307611136 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1476, consumed: 0
23:06:20 T:2913397616 M:1307611136 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 1469, consumed: 0
23:10:24 T:2930183024 M:1305468928 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:15:24 T:2930183024 M:1303453696 ERROR: Read - Error( -1, 22, Invalid argument ) - Retrying
23:15:39 T:3078014864 M:1303339008 NOTICE: CDVDPlayer::CloseFile()
23:15:39 T:3078014864 M:1303339008 NOTICE: DVDPlayer: waiting for threads to exit
23:15:39 T:2930183024 M:1303339008 NOTICE: CDVDPlayer::OnExit()
23:15:39 T:2930183024 M:1303339008 NOTICE: DVDPlayer: closing audio stream
23:15:39 T:2930183024 M:1303339008 NOTICE: Closing audio stream
23:15:39 T:2930183024 M:1303339008 NOTICE: Waiting for audio thread to exit
23:15:39 T:2886159216 M:1303339008 NOTICE: thread end: CDVDPlayerAudio::OnExit()
23:15:39 T:2930183024 M:1303339008 NOTICE: Closing audio device
23:15:39 T:2930183024 M:1303339008 NOTICE: Deleting audio codec
23:15:39 T:2930183024 M:1303339008 NOTICE: DVDPlayer: closing video stream

There are a couple of consume errors there but STRAIGHT after the 24hz switch and no recurrance until I stopped playing.

Lots more testing Wink todo yet but these options look good.....for now!!
Reply
#18
At work at the moment so I can't test this ARGHH but Its just occurred to me that if those read errors are at 5 minute intervals it could be power saving on my backend server spinning down the discs for power conservation. Will check that and report back. Not sure why it would spin down whilst samba was accessing it but its very regular to be anything other than a system process.
Reply
#19
The measurerefreshrate setting only does something on windows, so there's no point having that on.
Turning on vdpau scaling is also quite useless unless you have a feature set C card.
Reply
#20
bobo1on1 Wrote:The measurerefreshrate setting only does something on windows, so there's no point having that on.
Turning on vdpau scaling is also quite useless unless you have a feature set C card.

Thanks for that, I got some of that information from another post and although i checked in the wiki to see if any of it was potentially dangerous or counter productive I missed the windows / feature dependencies if there.

Given that I'm guessing the difference is the

Quote:<bginfoloadermaxthreads>5</bginfoloadermaxthreads>

is stopping the revo getting itself too tied up

Although I have hit across threads detailing the use of

Quote:<videoscreen>
<safefull>true</safefull>
</videoscreen>

I can't say I fully understand the impact it has on display, even after searching the wiki, can you summarise?
Reply
#21
That setting doesn't exist.
Reply
#22
bobo1on1 Wrote:That setting doesn't exist.

Safeful? ah... Eek

I think I must have got my wires crossed somewhere then.

At least it means I'm happy its the maxthreads entry thats making any perceived difference.
Reply
#23
So then from

Quote:<advancedsettings>

<video>
<vdpauscaling>true</vdpauscaling>
</video>

<bginfoloadermaxthreads>5</bginfoloadermaxthreads>

<measurerefreshrate>true</measurerefreshrate>

<videoscreen>
<safefull>true</safefull>
</videoscreen>
</advancedsettings>

We're left with

Quote:<advancedsettings>

<bginfoloadermaxthreads>5</bginfoloadermaxthreads>

</advancedsettings>

Well, it's simpler!
Reply
#24
More importantly, is it continuing to work better with that setting applied?
------------------------------------------
Dharma Quick Setup Guide:
XBMC tips on the TechNazgul Blog
------------------------------------------
Reply
#25
edz2k9 Wrote: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

Finally someone with the same problems as me Laugh
I'll try bginfoloadermaxthreads tonight and let you know the results
Reply
#26
myrison Wrote:More importantly, is it continuing to work better with that setting applied?

Now, how to answer that without setting myself up for a screaming session if it crops up again Laugh

It definitely seems to be better than it was expecially with mkv files (which vdpau will be handling), indeed much better than it was. I watched a couple of xvid TV episodes last night and there was the odd jump but I suspect that had more to do with the xvid encoding (bearing in mind vdpau will be doing nothing for that) but checking the error logs I'm seeing a definite reduction in consume errors!

Give it a go and see what you get, I'm also going to change the spin down on my drives on the back end to see if I can get rid of the 5 minute interval read errors.

As always I'll report back here Big Grin
Reply
#27
whoa how did i miss this thread.

i started a different thread below with what i believe to be the same/similar problem. for me, it manifests as a quick black flash across the bottom of the screen, and right after it happens, i will get the error regarding the full packet.

im running an old dell with an nvidia g210. ill have to try that advanced setting and see if it helps at all.

I'll report back with success/failure.



edit: adding that to my advancedsettings.xml caused my cpu cores to skyrocket... generally they hover around 5 or 6% max... they were up around 70 or 80% when I had that option in there. also, my audio seemed to lose sync even more than it normally does.
Reply
#28
pyite Wrote:whoa how did i miss this thread.

I get that a lot Rofl

pyite Wrote:edit: adding that to my advancedsettings.xml caused my cpu cores to skyrocket... generally they hover around 5 or 6% max... they were up around 70 or 80% when I had that option in there. also, my audio seemed to lose sync even more than it normally does.

Can you post a few details on the spec and the config you have, live, linux etc?

Ta.
Reply
#29
bginfoloadermaxthreads doesn't make a difference for me:
Code:
11:49:07 T:2816473968 M:1342668800 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 13104, consumed: 0
11:49:07 T:2816473968 M:1342668800 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 9385, consumed: 0
11:49:07 T:2816473968 M:1342668800 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 9931, consumed: 0
11:49:15 T:2886724464 M:1338785792 WARNING: CDVDPlayer::CheckPlayerInit(3) - Ignoring too large delay of 43686700.111111
11:55:28 T:2816473968 M:1323724800 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 19432, consumed: 0
11:58:45 T:2816473968 M:1327992832 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 16871, consumed: 0
12:00:53 T:2816473968 M:1320595456 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 20871, consumed: 0
12:00:53 T:2816473968 M:1320595456 WARNING: Decode - avcodec_decode_video didn't consume the full packet. size: 25142, consumed: 0
I also noticed some stuttering problems in mplayer so I'm not quite sure if it's a 100% xbmc problem or if it's the ION chipset that can't keep up sometimes.
Reply
#30
WWWilco Wrote:bginfoloadermaxthreads doesn't make a difference for me:
(SNIP)
I also noticed some stuttering problems in mplayer so I'm not quite sure if it's a 100% xbmc problem or if it's the ION chipset that can't keep up sometimes.

Hmm I'm begining to wonder that one myself BUT the interesting thing here is it seems to affect 24fps more than anything else.

Playing back with switch display on and XBMC auto switching into 24fps seems to jump as mentioned, switching the display to 60hz and disabling auto switching seems to be fine. All along 50hz plays without a hoiccough - we had a family movie of this island earth from a pal dvd h264 rip yesterday and it played with no issues. High Def stuff seems mostly ok at 24fps anyway with the odd jump here and there but in 60hz seems stable too. I'm trying to figure out a way to prevent the 24hz mode so XBMC will switch between 50 and 60hz only but so far using modelines with noedid modes results in no modes other than 60hz (I know the modelines are correct since they've been extracted from the edid and also from powerstrip run under windows 7) and although I thought I had an answe by removing / changing the mode in the resolutions node of guisettings.xml it just repopulates it when you run up XBMC.

Anyone know of a way to prevent one mode switching in in XBMC, I couldnt see anything in advancedsettings or guisettings that seemed obvious such as a prohibit /prohibit node entry? May be an idea for those with imperfect 24fps playback but still want to use match frame rate?
Reply
  •   
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 7
  •   



Logout Mark Read Team Forum Stats Members Help
[LINUX] Problems with frame drops jumps (consume packet error)0
This forum uses Lukasz Tkacz MyBB addons.