Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

YouTube on BeOS?

0 views
Skip to first unread message

Pete

unread,
May 17, 2007, 5:30:01 PM5/17/07
to

Just wondering if anyone has found a way to view YouTube videos on BeOS.
(I have Firefox 2.0.0.3) According to the fairly extensive writeup on
Wikipedia, the files are just SWF video and should be playable by VLC
-- if I could find them! All I get is "Please install the latest Flash
Player"... Rigghhtt....

Any clues?
-- Pete --

--
"I love the smell of scorched lame duck in the morning..."
============================================================================
The address in the header is a Spam Bucket -- don't bother replying to it...
(If you do need to email, replace the account name with my true name.)

Henri Vettenranta

unread,
May 18, 2007, 10:13:55 AM5/18/07
to
Pete <neve...@jwgibbs.cchem.berkeley.edu> wrote:
>
> Just wondering if anyone has found a way to view YouTube videos on BeOS.
>
> Any clues?

Have you tried something like VideoDownloaderą? There seem to be a
number of other add-ons for that purpose, too:
https://addons.mozilla.org/en-US/firefox/search?q=video+downloader&status=4

ą https://addons.mozilla.org/en-US/firefox/addon/2390

--
"Aparaattia haittaa rapa."
--Alivaltiosihteeri

Francois Revol

unread,
May 21, 2007, 9:06:34 PM5/21/07
to
Henri Vettenranta <henr...@hotmail.com> writes:

> Pete <neve...@jwgibbs.cchem.berkeley.edu> wrote:
>>
>> Just wondering if anyone has found a way to view YouTube videos on BeOS.
>>
>> Any clues?
>
> Have you tried something like VideoDownloaderą? There seem to be a

I'm not sure those will work in BeOS, depends if they are binary addons
or only html/javascript code.

It's easy to get an url to download the .FLV video from the web page.
See the source, find "player2" and use that url on the same host after
replacing "player2.swf" by "get_video".

The following script should do that (run it and paste urls of the web page).

##################### begin youtube.sh
#!/bin/sh

YU="http://youtube.com"
doread=1

function getflv() {
u="$1"
tmp="/tmp/youtube.$$.$(date +%s.%N).$RANDOM"
wget -O "$tmp" "$u"
ttl="$(grep '<meta name="title"' <"$tmp" | sed 's/.*content=\"//;s/">//')"
flv="$(tr '"' '\n' <"$tmp" | grep player2 | sed 's/player2.swf/get_video/')"
if [ -n "$flv" ]; then
wget -O "Youtube - $ttl.flv" "${YU}${flv}"
fi

}

while [ -n "$1" ]; do
doread=0
getflv "$1"
shift
done

[ $doread = 0 ] && exit 0

while read u; do
getflv "$u"
done

##################### end youtube.sh

François.

Pete

unread,
May 22, 2007, 5:18:32 PM5/22/07
to
In article <Dwi3i.165553$j54.1...@reader1.news.saunalahti.fi>,

Henri Vettenranta <henr...@hotmail.com> wrote:
>Pete <neve...@jwgibbs.cchem.berkeley.edu> wrote:
>>
>> Just wondering if anyone has found a way to view YouTube videos on BeOS.
>
>Have you tried something like VideoDownloaderą? There seem to be a
>number of other add-ons for that purpose, too:
>https://addons.mozilla.org/en-US/firefox/search?q=video+downloader&status=4
>
https://addons.mozilla.org/en-US/firefox/addon/2390

Thanks. [and sorry for the somewhat slow response...] It actually looks
as if I could just use videodownloader.net -- except that I haven't been
able to get any response from that site today!

I'll take a look at some of the other options.

Pete

unread,
May 22, 2007, 5:24:12 PM5/22/07
to
In article <iralmz...@free.fr>, Francois Revol <re...@free.fr> wrote:
>Henri Vettenranta <henr...@hotmail.com> writes:
>
>> Pete <neve...@jwgibbs.cchem.berkeley.edu> wrote:
>>>
>>> Just wondering if anyone has found a way to view YouTube videos on BeOS.
>> Have you tried something like VideoDownloaderą? There seem to be a
>
>I'm not sure those will work in BeOS, depends if they are binary addons
>or only html/javascript code.
I think they probably would (if I could get access to the host site,
which seems unavailable at the moment!). I downloaded the VideoDownloader
package and took a look, and it seems to be pure JS/XUL (and contacts the
host site to do the decoding). However...:

>
>It's easy to get an url to download the .FLV video from the web page.
>See the source, find "player2" and use that url on the same host after
>replacing "player2.swf" by "get_video".
>
>The following script should do that (run it and paste urls of the web page).
> [snip]

*This* is I think what I was looking for! I'll give it a try. Thanks!

Pete

unread,
May 22, 2007, 6:30:29 PM5/22/07
to
In article <f2vn1s$abv$1...@jwgibbs.CChem.Berkeley.EDU>,

Pete <neve...@jwgibbs.cchem.berkeley.edu> wrote:
>In article <iralmz...@free.fr>, Francois Revol <re...@free.fr> wrote:
>>
>>It's easy to get an url to download the .FLV video from the web page.
>>See the source, find "player2" and use that url on the same host after
>>replacing "player2.swf" by "get_video".
>>
>>The following script should do that (run it and paste urls of the web page).
>> [snip]
>
>*This* is I think what I was looking for! I'll give it a try. Thanks!

Success! -- or at least partial... For some reason the second wget
barfs on a '303' ("Other URI") error, and I can't see any way to make
it proceed. (Tried it on both BeOS and Linux with the same result).
[Wonder if youtube is getting cute...?]

However, I just replaced the wget call in the script with one to
NetPositive, and it downloads fine!

Thanks,

François Revol

unread,
Oct 18, 2007, 11:43:51 AM10/18/07
to
neve...@jwgibbs.cchem.berkeley.edu (Pete) writes:

> In article <f2vn1s$abv$1...@jwgibbs.CChem.Berkeley.EDU>,
> Pete <neve...@jwgibbs.cchem.berkeley.edu> wrote:
>>In article <iralmz...@free.fr>, Francois Revol <re...@free.fr> wrote:
>>>
>>>It's easy to get an url to download the .FLV video from the web page.
>>>See the source, find "player2" and use that url on the same host after
>>>replacing "player2.swf" by "get_video".
>>>
>>>The following script should do that (run it and paste urls of the web page).
>>> [snip]
>>
>>*This* is I think what I was looking for! I'll give it a try. Thanks!
>
> Success! -- or at least partial... For some reason the second wget
> barfs on a '303' ("Other URI") error, and I can't see any way to make
> it proceed. (Tried it on both BeOS and Linux with the same result).
> [Wonder if youtube is getting cute...?]
>
> However, I just replaced the wget call in the script with one to
> NetPositive, and it downloads fine!

It seems youtube changed their stuff and don't embed the flv url in the page anymore :-(

That plain sux.
They have no reason to fear piracy, it's not like the videos aren't available to anyone (who has flash) :)

François.

Pete

unread,
Nov 13, 2007, 1:46:07 AM11/13/07
to
[This is a bit of a belated reply -- don't check in very often...

In article <8x60xw...@free.fr>,


=?iso-8859-1?Q?Fran=E7ois?= Revol <re...@free.fr> wrote:
>
>It seems youtube changed their stuff and don't embed the flv url in the page anymore :-(
>
>That plain sux.
>They have no reason to fear piracy, it's not like the videos aren't available to anyone (who has flash) :)
>

Yeah, I noticed that! Couldn't let them do that (;-/), so I whipped
up a Ruby script to handle the new scheme. (You do have [my port of]
Ruby, don't you? See BeBits...)

If it's of interest, here's the script:

#! /bin/env ruby

require "net/http"
require "uri"

class Tube < String
def base
@base = scan(%r['/player2.swf(.*)'])
@base
end
def args
s = scan(%r[swfArgs *= *(\{.*\})])
@args = s[0][0][1...-2].gsub(":'","=").gsub("',","&")
@args
end
def initialize(s)
super(s)
base; args
end
def url
"http://youtube.com/get_video?"+@args
end
end


while true
body = nil
begin
print "URL: "; urlf = $stdin.gets
exit if urlf.chop! == ""
print "YouTube Page: #{urlf} -- return code="
resp = Net::HTTP.get_response(URI.parse(urlf))
puts resp.code
next if resp.code != "200" # code is a string!
body = Tube.new(resp.body)
print "using video URL: #{body.url}\n"
%x{/Media/home/Downloads/vlc-0.8.6/vlc \"#{body.url}\"}
rescue => exc
print "Error -- (probably) bad URL -- ", exc, "\n"
end
end


(Presumably will work on non-BeOS systems too.)

0 new messages