XBMC Community Forum
[RELEASE] YouTube3 - YouTube Script - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] YouTube3 - YouTube Script (/showthread.php?tid=33585)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32


- Haggy - 2009-03-13 12:23

I have to re-mention the terrible audio sync issues. Running a recent svn version (but it did happen on atlantis too) on linux every video is way out of sync, audio is at least one second to early. is there anything i can do about this?


- borick - 2009-03-13 16:47

empty Wrote:hehe thats why I wrote "the option in the settings are enabled" sry if my english skills aren't so good Smile

For example this great song http://www.youtube.com/watch?v=slrs4EmyG7c , with your browser you are able to view this file in HD. But with the youtube 3.4 script it isnt' possible Sad

HD isn't supported currently (it lags out my xbox anyway) only high quality and regular quality. on youtube there is reg quality, high quality, and also HD. HD isn't currently supported (high quality does not refer to HD)


- borick - 2009-03-13 16:48

Haggy Wrote:I have to re-mention the terrible audio sync issues. Running a recent svn version (but it did happen on atlantis too) on linux every video is way out of sync, audio is at least one second to early. is there anything i can do about this?

Sorry but I don't have linux anywhere but on a virtual machine to test... does problem occur on windows or xbox versions?
I will make the "player type" configurable in the next version, maybe by changing player type from mplayer to auto that could fix something, but i have no idea why. Really the script just interfaces with the XBMC player api... although if the same behaviour works perfectly with other scripts I can look into this scripts to see how they are performing differently.


- Haggy - 2009-03-13 16:55

Well that might help. As i'm no python guru i didn't have a look at the script for now. Is this script just calling mplayer or what? If so one might simply define an a/v sync value at commandline to solve this. From xbmc.log i get calls to the internal DVDPlayer of xbmc which seems to be used for playback.

sorry - i neither have an xbox nor windows to test if it behaves the same.


- empty - 2009-03-13 22:17

borick Wrote:HD isn't supported currently (it lags out my xbox anyway) only high quality and regular quality. on youtube there is reg quality, high quality, and also HD. HD isn't currently supported (high quality does not refer to HD)

Ah ok, but would be great if you can implement an HD Option, I'm using XBMC on a Windows 2,5Ghz dualcore machine, which has enough power :o :o


- borick - 2009-03-13 22:30

empty Wrote:Ah ok, but would be great if you can implement an HD Option, I'm using XBMC on a Windows 2,5Ghz dualcore machine, which has enough power :o :o

I will do this, I have put it as an enhancement on the google code page... but it may take a while

Some additional development info for anyone who is curious: I was gonna implement this because it should be very easy to add. However the problem was, when I changed the quality to HD (fmt=22) then any movie which did not have a HD option and had fmt=22 put in the url, would not play at all... so I need some way to detect whether a movie is HD or not, and modify the URL string accordingly.


- Nuka1195 - 2009-03-13 23:12

all you have to do is request the url. if it doesn't exist it will error.

PHP Code:
def _check_video_urlselfurlquality ):
        
# only need the parameter for non standard quality
        
if ( quality ):
            try:
                
# TODO: check for fmt=22 for 720p and verify all videos now support fmt=18 arg
                # create the new url with the fmt parameter
                
check_url url "&fmt=%d" % ( quality, )
                
# we need to request the url with quality
                
request urllib2.Requestcheck_url )
                
# create an opener object and validate the url
                
opener urllib2.urlopenrequest )
                
# close opener
                
opener.close()
                
# success, return the new url
                
return check_url
            except urllib2
.URLErrore:
                
# invalid quality
                
pass
        
# none or invalid quality, return the original url
        
return url 



XBMC and youtube - TheCrook - 2009-03-20 18:48

I am having the same problem, I am running the latest build of XBMC and the latest youtube script but it still fails to play videos.


- borick - 2009-03-20 18:51

TheCrook Wrote:I am having the same problem, I am running the latest build of XBMC and the latest youtube script but it still fails to play videos.

What is the operating system for XBMC?

Can you describe how the videos fail to play?


XBMC Youtube vids - TheCrook - 2009-03-20 19:27

XBMC 8.10 ATLANTIS (compiled Nov 14 2008)
Mplayer XBMC-SVN-r10070-4.1.2 (Oct 29 2008 -14:51:13)

Youtube script version
YouTube-3-4

I can search video's and look through them ie. see the thumbnails and info
when I hit select on one it starts downloading, caching etc.
then nothing at all. sometimes it locks and I have to power cycle the xbox other times it simply stays on the video selection screen and you can click on another video. I have tried loads of videos now but they all do the same thing.

Andy ideas greatly appreciated