Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Hi Drone,

Whate options are you using for VLC?

Best regards,
voidRunner

If you mean in Viewtube, same as before: Low Resolution MP4. Soon as I got VLC working i went straight back to MPlayer though as it's more efficient and doesn't need all the script tricks to get it to behave!
 
Hi Drone,

I have some good news for playing higher quality streams with viewtube and mplayer.
If you enable the MD option in viewtube you will see new options at the bottom of
the quality dropdown list.
These new options have both the video and sound urls for that quality level.
In mplayer you can play a video and pass an audio file with the -audiofile option,
this way we can play the higher quality streams.

Here is the required code for the viewtubehandler script

if ((offset of "SEPARATOR" in theURL) > 0) then
set AppleScript's text item delimiters to "SEPARATOR"
set soundURL to item 2 of the text items of videoURL
set videoURL to item 1 of the text items of videoURL
set AppleScript's text item delimiters to oldDelims
end if

--Open in QuickTime
--tell application "QuickTime Player"
-- activate
-- getURL videoURL
--end tell

--Open in MPlayer
set player to "/opt/local/bin/mplayer -volume 80 -vo corevideo -ao openal -framedrop -lavdopts skiploopfilter=all:skipframe=nonref -cache 16384 -cache-min 10 "
set background to " > /dev/null 2>&1 & "
set MPvideo to player & quoted form of videoURL & background

if ((offset of "SEPARATOR" in theURL) > 0) then
set MPvideo to player & quoted form of videoURL & " -audiofile " & quoted form of soundURL & background
end if

Best regards,
voidRunner
 
If you enable the MD option in viewtube you will see new options at the bottom of
the quality dropdown list.
These new options have both the video and sound urls for that quality level.
In mplayer you can play a video and pass an audio file with the -audiofile option,
this way we can play the higher quality streams.

Sounds great but just wouldn't work for me - mplayer doesn't even launch even when trying standard video and no crash reported in console.
I'm testing in Tiger btw.
 
Hi Drone,

If you want I can post a complete command line for you to try.
That way you can see if it is a problem with the handler script.

Best regards,
voidRunner
 
Hi Drone,

If you want I can post a complete command line for you to try.
That way you can see if it is a problem with the handler script.

Best regards,
voidRunner

That'd be good - can't think why won't work on mine. Have you updated Viewtube - I'm putting that off because I don't know if it will offer the same functionality, the layout is very different.
 
Hi Drone,

The command it's in the attached file. It's a portuguese video sorry ;)
I've tested it on another machine and it seems to have the same functionality but
it's all selected in options instead of the main interface. I think we can make the
old one look better without killing it using grease monkey.
I just don't know if it will keep working if major changes come to youtube or the
other sites.

Best regards,
voidRunner
 

Attachments

  • youtube.txt
    1.9 KB · Views: 146
Hi Drone,

I've just tested it on a pb 1.5ghz 12" running tiger it's running fine.
Can it be your viewtube version is not the same as mine?
In manage user scripts I have viewtube 2019.09.21.

Best regards,
voidRunner
 
Hi Drone,

Just had an idea. In what language is your Mac running.
Use the code I posted earlier to create the m3u file and write the value of videoURL into it
and see if what's seperating both urls is SEPARATOR if not change the script accordingly.

Best regards,
voidRunner
 
Has this been updated ? I try to use viewtube under LWK in Leopard, and its having an issue playing videos. What settings do I use to play the youtube videos ?
 
Has this been updated ? I try to use viewtube under LWK in Leopard, and its having an issue playing videos. What settings do I use to play the youtube videos ?

This wasn't written for LWK - it can use it's own QuickTime plugin:

Picture 1.png
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.