PDA

View Full Version : Long Lag When Starting Up Videos


scoop98
2008-07-04, 09:40
I have just updated to the latest build (June 30th 2008 Svn Rev13851 Build).

My old build was over 4 months ago!

I have tried CLEAN and Update over methods and have the same problem.

When playing vid files over a SAMBA network, I get a approx 10sec delay before playback of any file(same on resume).
The "busy" icon displays in the top right corner of XBMC.

avi,vob,mkv all the same!

I have never had this before!!!

I copied a few files to the XBOX HDD and played from there and they only delayed for approx 3 seconds before playback. But if I resumed they played immediately!!! Same with DVD full of AVI's

I've tried changing cache settings from none up to default. I have static IP's . I can browse the shares with no delays as well. The old build still has no issues.

I quite often use XBMC to play MUSIC VIDEOS so the 10 sec pause between songs is a real pain!!

All hardwired, linking to
2 x vista boxes
1 x xp box
1 x NAS drive
2 x xbox
1 x xbox360
all STATIC IPS
on a GIGABIT network! (yep I know Xbox is 10!)

also have another xbox in another room. Also has the exact same issue.

I have now tried 3 diff builds. Since Feb 08!!

One of the Vista boxes is my Media Centre (for TV Hi-def Mkv's) that works flawlessly with the current set-up
(except if a drive has gone to sleep - some externals do that! - then a small delay..not 10 secs)

If I play a file with "DVDPLAYER" is starts up straight away! Mplayer is the problem?

I have also noticed in debug mode, that the OSD stats FREEZE during the 10 sec delay!!!

Standard 1.6 evox dash / softmod (both boxes) I have had no problems over the last 4 years with both of them!!!!

LOG

http://pastebin.com/f214bdbca

Since trying the features I don't want to have to go back to a build from 2007 :(

Thank you in advance.

kraqh3d
2008-07-04, 15:42
When exactly does the pause occur? Right after clicking the file and before the small dialog box which displays mplayers debug info? Or is the pause when the dialog is open? From your log, I think the pause is BEFORE the mplayer debug dialog but I want to confirm.

Something which may be the culprit is subtitles. If you have find external subtitles enabled, xbmc looks in the current directory for a suitable subtitle file, and it can also look through archive files. But, I think I would see some evidence of that in the log file and I don't so this is just a shot in the dark. Just check that in settings.

Now, something I do see in the log which causes about a 10 second delay between you selecting a file, and the mplayer dialog starting is a DNS failure. It occurs for both files.

The first line is you selecting the item. Then it does a lookup to see what player to use. The busy dialog auto displays after two seconds. then five seconds later, the DNS error and immediately afterwards, mplayer starts.


14:17:29 M: 25120768 DEBUG: CApplication::OnKey: 11 pressed, action is 7
14:17:29 M: 25108480 DEBUG: CPlayerCoreFactor::GetPlayers(smb://MYBOOKWORLD/SCOOP98 1TB/Movies/-- seen --/In.The.Valley.Of.Elah.DVDRip.XviD-NeDiVx/nedivx-valley-xvid.avi)
14:17:32 M: 25063424 INFO: Loading skin file: DialogBusy.xml
14:17:32 M: 25063424 DEBUG: Load DialogBusy.xml: 24.66ms (17.69 ms xml load)
14:17:32 M: 25063424 DEBUG: Alloc resources: 25.16ms (25.16 ms skin load, 0.00 ms preload)
14:17:37 M: 24924160 ERROR: DNS lookup for MYBOOKWORLD failed: 10060
14:17:37 M: 24924160 DEBUG: file:smb://MYBOOKWORLD/SCOOP98 1TB/Movies/-- seen --/In.The.Valley.Of.Elah.DVDRip.XviD-NeDiVx/nedivx-valley-xvid.avi IsDVDImage:0 IsDVDIfoFile:0
14:17:37 M: 24399872 INFO: mplayer play:smb://MYBOOKWORLD/SCOOP98 1TB/Movies/-- seen --/In.The.Valley.Of.Elah.DVDRip.XviD-NeDiVx/nedivx-valley-xvid.avi cachesize:2048


Can you post a dvdplayer log for comparison?

Geeba
2008-07-04, 19:27
"on a GIGABIT network! (yep I know Xbox is 10!)"

10/100Mbps!

Worth checking its negotiated the right speed 100Mpbs Full Duplex... I tried an Xbox on a 10mbps hub and it was awfull....

Gamester17
2008-07-04, 20:12
Xbox is 100Mpbs Full Duplex (= 100Megabit)

scoop98
2008-07-05, 02:41
When exactly does the pause occur? Right after clicking the file and before the small dialog box which displays mplayers debug info? Or is the pause when the dialog is open? From your log, I think the pause is BEFORE the mplayer debug dialog but I want to confirm.

Something which may be the culprit is subtitles. If you have find external subtitles enabled, xbmc looks in the current directory for a suitable subtitle file, and it can also look through archive files. But, I think I would see some evidence of that in the log file and I don't so this is just a shot in the dark. Just check that in settings.

Now, something I do see in the log which causes about a 10 second delay between you selecting a file, and the mplayer dialog starting is a DNS failure. It occurs for both files.

The first line is you selecting the item. Then it does a lookup to see what player to use. The busy dialog auto displays after two seconds. then five seconds later, the DNS error and immediately afterwards, mplayer starts.


14:17:29 M: 25120768 DEBUG: CApplication::OnKey: 11 pressed, action is 7
14:17:29 M: 25108480 DEBUG: CPlayerCoreFactor::GetPlayers(smb://MYBOOKWORLD/SCOOP98 1TB/Movies/-- seen --/In.The.Valley.Of.Elah.DVDRip.XviD-NeDiVx/nedivx-valley-xvid.avi)
14:17:32 M: 25063424 INFO: Loading skin file: DialogBusy.xml
14:17:32 M: 25063424 DEBUG: Load DialogBusy.xml: 24.66ms (17.69 ms xml load)
14:17:32 M: 25063424 DEBUG: Alloc resources: 25.16ms (25.16 ms skin load, 0.00 ms preload)
14:17:37 M: 24924160 ERROR: DNS lookup for MYBOOKWORLD failed: 10060
14:17:37 M: 24924160 DEBUG: file:smb://MYBOOKWORLD/SCOOP98 1TB/Movies/-- seen --/In.The.Valley.Of.Elah.DVDRip.XviD-NeDiVx/nedivx-valley-xvid.avi IsDVDImage:0 IsDVDIfoFile:0
14:17:37 M: 24399872 INFO: mplayer play:smb://MYBOOKWORLD/SCOOP98 1TB/Movies/-- seen --/In.The.Valley.Of.Elah.DVDRip.XviD-NeDiVx/nedivx-valley-xvid.avi cachesize:2048


Can you post a dvdplayer log for comparison?

I'm at work so when home I'll do that.

re:- Subtitles - whether on or off it is the same. The delay happens, then the dialog box for subtitles pops up very briefly before playback

re:-DNS ERROR
ERROR: DNS lookup for MYBOOKWORLD failed: 10060
I'll check that for other sources ( and via DVDPLAYER)

The pause is BEFORE the dialog box from MPLAYER or SUBTITLES

Ta

scoop98
2008-07-05, 14:29
OK here are two logs. With restart in between

1st with playback via Mplayer
http://pastebin.com/f20eca554


2nd with playback via DVDPLAYER
http://pastebin.com/f5a09ac46


I noticed a DNS error in the MPLAYER but not the DVDPLAYER logs.
My network settings have not changed on the rest of my system, but noticed
that XBMC has changed the way you choose add sources in the recent builds. I tried to go DHCP rather than static - no difference!


And yes 10/100 was what I mean't to type!!

Thanks again...

kraqh3d
2008-07-05, 16:35
thanks, that confirms it. that DNS error is the culprit, but I'm not sure why this occurs with mplayer and not the dvdplayer. in the meantime, try this as a workaround (assuming your computer has a static address.)

http://xbmc.org/wiki/?title=Advancedsettings.xml#.3Chosts.3E

(And interestingly, I cannot find that error message when searching through all the sources. The closest one is for cddb lookups.)

** edit **
Nevermind... It's because I'm looking through the multiplatform source tree which does not use mplayer at all. I have to search through the xbox specific source tree.

scoop98
2008-07-05, 17:02
thanks, that confirms it. that DNS error is the culprit, but I'm not sure why this occurs with mplayer and not the dvdplayer. in the meantime, try this as a workaround (assuming your computer has a static address.)

http://xbmc.org/wiki/?title=Advancedsettings.xml#.3Chosts.3E

(And interestingly, I cannot find that error message when searching through all the sources. The closest one is for cddb lookups.)

** edit **
Nevermind... It's because I'm looking through the multiplatform source tree which does not use mplayer at all. I have to search through the xbox specific source tree.

I'll try that and see if that fixes it.
Haven't played with the advancedsettings.xml for a long time!!

I'll report back !!

scoop98
2008-07-05, 17:49
I'll try that and see if that fixes it.
Haven't played with the advancedsettings.xml for a long time!!

I'll report back !!

Ok I tried this in the xml file saved in UserData

<advancedsettings>
<hosts>
<entry name="MYBOOKWORLD">192.168.0.10</entry>
<entry name="TORRENTBOX">192.168.0.2</entry>
</hosts>
</advancedsettings>

Didn't work but the following did:grin:

sources.xml
...
<video>
<default></default>
<source>
<name>C:</name>
<path>C:\</path>
</source>
<source>
<name>MYBOOKWORLD</name>
<path>\</path>
<path>smb://192.168.0.10/</path>
</source>
<source>
<name>-- HiDef Movies Seen --</name>
<path>smb://SCOOP98-SLIM-PC/-- HiDef Movies --/-- HiDef Movies Seen --/</path>
</source>
>
<source>
<name>TORRENTBOX</name>
<path>smb://192.168.0.2/</path>
</source>
</video>


This has WORKED on the two I have changed to IP from hostnames!
So I hope that helps you sort out the DNS issue
I guess I will have some editing to do of the sources in the mean time!!

I also have noticed at least one other user on this forum had the same issue I have but was flamed (Didn't supply the info!!!)
ta

kraqh3d
2008-07-06, 00:46
i'm not sure why this ocuring. i've always used names and never had an issue. and i'm always running a bleeding edge version personally compiled right from svn.

scoop98
2008-07-06, 03:37
i'm not sure why this ocuring. i've always used names and never had an issue. and i'm always running a bleeding edge version personally compiled right from svn.

I found about the DVDPLAYER work around from xbox-scene. Here is the snippet

http://forums.xbox-scene.com/index.php?showtopic=654952
Bomb Bloke
post Jul 4 2008, 02:39 PM
Post #6

Group: Moderator
Posts: 2346
Joined: 29-January 07
From: Tasmania (AU)
Member No.: 326776
Xbox Version: v1.0
360 version: none


There was a change made to the caching system some time ago. I get the impression XBMC now tries to cache a certain percentage of videos regardless of your settings (may be dependant on whether you're in a LAN or not, I really dunno). Not even sure if it counts as a bug or not.

A work around is to select your videos with the white button, select "Play Using" and go with the DVDPlayer. It doesn't support as many videos as the default MPlayer, but it also doesn't support caching (and so there's no delay at all).

kraqh3d
2008-07-06, 05:40
That's actually unrelated. This is clearly a DNS timeout. Xbmc hasn't even gotten to the point of being able to start caching the media.

scoop98
2008-07-06, 07:20
That's actually unrelated. This is clearly a DNS timeout. Xbmc hasn't even gotten to the point of being able to start caching the media.

Okay, I'm just happy that a workaround has been found!:D

Thank you for all your help. That is what I like about XBMC!! The community that supports it..

And, yes, I have voted for it this year!!!

Looking forward to a fully functional PC version (almost there!!) with TV Tuner support!!(A wish!)