Click Here
home features news forums classifieds faqs links search
6071 members 
Amiga Q&A /  Free for All /  Emulation /  Gaming / (Latest Posts)
Login

Nickname

Password

Lost Password?

Don't have an account yet?
Register now!

Support Amigaworld.net
Your support is needed and is appreciated as Amigaworld.net is primarily dependent upon the support of its users.
Donate

Menu
Main sections
» Home
» Features
» News
» Forums
» Classifieds
» Links
» Downloads
Extras
» OS4 Zone
» IRC Network
» AmigaWorld Radio
» Newsfeed
» Top Members
» Amiga Dealers
Information
» About Us
» FAQs
» Advertise
» Polls
» Terms of Service
» Search

IRC Channel
Server: irc.amigaworld.net
Ports: 1024,5555, 6665-6669
SSL port: 6697
Channel: #Amigaworld
Channel Policy and Guidelines

Who's Online
23 crawler(s) on-line.
 83 guest(s) on-line.
 1 member(s) on-line.


 amigakit

You are an anonymous user.
Register Now!
 amigakit:  3 mins ago
 vox:  5 mins ago
 zipper:  5 mins ago
 Gunnar:  9 mins ago
 matthey:  15 mins ago
 Karlos:  21 mins ago
 NutsAboutAmiga:  24 mins ago
 danwood:  35 mins ago
 fatbob_gb:  36 mins ago
 Lou:  41 mins ago

/  Forum Index
   /  Amiga OS4 Software
      /  www.youtube.com on OS4
Register To Post

Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 Next Page )
PosterThread
Mark 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 17:26:42
#21 ]
Team Member
Joined: 12-Mar-2003
Posts: 1457
From: UK

@AmigaHeretic

LOL all amigas have an assign C: that points at the SYS:C folder...

Mark

_________________
IceStar Media Ltd.

 Status: Offline
Profile     Report this post  
Fab 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 17:26:51
#22 ]
Super Member
Joined: 17-Mar-2004
Posts: 1178
From: Unknown

@Toaks

Yes i wrote that about a month ago and a friend posted that script in amiga.org news as he thought it could be useful.

 Status: Offline
Profile     Report this post  
Framiga 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 17:30:00
#23 ]
Elite Member
Joined: 5-Jul-2003
Posts: 2213
From: Unknown

@Fab

and indeed, it is



_________________

 Status: Offline
Profile     Report this post  
mwoof 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 17:34:59
#24 ]
Super Member
Joined: 12-Jan-2004
Posts: 1174
From: Larisa, Greece

I couldn't believe my eyes when I saw this thread!! I wanted to watch something from youtube and now I can!!

_________________
And may the AmigaGuide you!

AmigaOne G3-SE, OS4 Final (July 2007 update), Debian Sarge, 512 MB RAM, 20 + 80 GB hard disks, NEC 3540 DVD writer, LG DVD reader, Radeon 9250, SB Live, Intracom Netfaster router, PCI USB card (NEC - OHCI/EHCI)

 Status: Offline
Profile     Report this post  
Toaks 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 17:37:57
#25 ]
Elite Member
Joined: 10-Mar-2003
Posts: 8042
From: amigaguru.com

@Fab

i never saw the news item! , damn.!
Anyway great work!

_________________
See my blog and collection website! . https://www.blog.amigaguru.com

 Status: Offline
Profile     Report this post  
rhino 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 18:05:59
#26 ]
Regular Member
Joined: 11-Mar-2003
Posts: 280
From: Unknown

@The_Editor

Quote:
yonks ago someone told me to install it in C:


Fair enough, is it also in a sub-directory called MPlayerX?

Quote:
the colon is there because it was in your destructions after the /slash !


That was punctuation after the name of the field (the other fields are written in the same way)

Hope you get it working,

Robert

_________________
Total Amiga (Archive) http://www.totalamiga.org

 Status: Offline
Profile     Report this post  
The_Editor 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 18:17:00
#27 ]
Elite Member
Joined: 7-Mar-2003
Posts: 7629
From: 192.168.0.02 ..Pederburgh .. Iceni

@rhino

hi.

Well I deleted the :colon and edited your mplayerX when I realised it was not some Arexx command but the actual dir (I was trying to watch F1 at the time) its actually ...

c:mplayer/mplayer

Still doesnt work though !!

_________________
******************************************
I dont suffer from Insanity - I enjoy it

******************************************

 Status: Offline
Profile     Report this post  
rhino 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 18:29:30
#28 ]
Regular Member
Joined: 11-Mar-2003
Posts: 280
From: Unknown

@The_Editor

Quote:
Still doesnt work though !!


Try downloading an FLV file (using that save option I describe in the readme) and then try and play it back from the shell. That way you should get some error messages which might point to what is wrong. The command line will be something like (all on one line):

C:Execute programs:Flayer/LaunchMPlayer -framedrop -quiet -vc ffflv -vo cgx_vmem::ALWAYSBORDER -ao sdl Drive:Directory/File.flv

Replace "Drive:Directory/File.flv" with the full path to the FLV file you downloaded.

HTH

Robert

_________________
Total Amiga (Archive) http://www.totalamiga.org

 Status: Offline
Profile     Report this post  
Toaks 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 18:31:58
#29 ]
Elite Member
Joined: 10-Mar-2003
Posts: 8042
From: amigaguru.com

@rhino

maybe he doesnt have Wget ?

i suggest trying the script in shell first and then he gets some sort of tip what is wrong....


ok maybe he did allready but im on the way out here so....sorry for not reading it all

_________________
See my blog and collection website! . https://www.blog.amigaguru.com

 Status: Offline
Profile     Report this post  
rhino 
Re: www.youtube.com on OS4
Posted on 8-Oct-2006 19:04:13
#30 ]
Regular Member
Joined: 11-Mar-2003
Posts: 280
From: Unknown

@Toaks

Quote:
maybe he doesnt have Wget ?


My script doesn't use WGet, all the downloading is done by AWeb itself.

Quote:
i suggest trying the script in shell first


Yep, that's certainly the best bet.

Thanks

Robert

_________________
Total Amiga (Archive) http://www.totalamiga.org

 Status: Offline
Profile     Report this post  
Ferry 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 3:11:56
#31 ]
Cult Member
Joined: 26-Aug-2003
Posts: 696
From: Valencia, Spain

@Fab & Toaks

Quote:
Quote:
Fab wrote:
@Toaks

from the readme, i guess this program is based on my original script downloading itself the web page (using TCP:) so as to extract the real .flv url. It could also have downloaded the video file itself but the point was essentially to retrieve the url, so i just let wget download it.

Anyway, feel free to do whatever you want with it.


is yours the one we tweaked? , might be it! , its called youtube.rexx.
Ok, i will let ferry do the upload etc and i will let him know who the orginal creator is.

great!.


Fab, thanks for the script, works great. Toaks, thanks but I don't deserve any credit, I did only a little 'hack' or modification or whatever, with some help from you and Severin, but all the hard work, the original script, was done by Fab, so he deserves the credit.

Here it goes:

Download the script from here (Fab, I hope you don't mind...):

http://fabportnawak.free.fr/youtube_downloader.lha

Uncompress and then open youtube.rexx in any text editor, Notepad will do. In line 17 you'll find this

Quote:

address command 'wget -O "'title'.flv" 'location


That's the line that downloads and saves the movie once it's title has been found and parsed. Problem is that movie is saved in default dir, usually sys:, so you'll end eventually with a sys: partition full of movies.

Perhaps you want only to see the movie, or you want to save and see it, but stored in the proper place, so I made two versions of the script: one to play movies but not permanently stored (i.e., dl'ed to ram:, t:, etc.) and one to dl, save and play them, but stored in a proper place. And all this from IBrowse...

First step: to modify Fab's script.

I modified the line with the wget and added another line to play the movie with MPlayer. Btw, be sure to have installed latest versions of both wget (http://os4depot.net/share/utility/misc/wget-bin.tar.gz) and mplayer (http://www.amigasoft.net/downloads/mplayer_experimental_3.lzh).

For the 'play only' version, replace the line above with:

Quote:

address command 'wget -O "t:temp.flv" 'location
address command '{path:}mplayer >nil: -ao sdl -vo cgx_vmem::TINYBORDER "t:temp.flv"'


where {path:} is, of course, the dir you have mplayer installed, and then save it as "youtube_play.rexx" wherever you want (f.ex., in an ARexx dir into IBrowse install dir). Please notice that every movie you watch this way will be overwritten by any new movie, since they all will have the same name, 't:temp.flv', and deleted in a reboot or crash -of course, on the assumption that t: is assigned to ram-.

For the "save and play" version:

Quote:

address command 'wget -O "{path#1:}'title'.flv" 'location
address command '{path#2:}mplayer -quiet -ao sdl -vo cgx_vmem::TINYBORDER "{path#1:}'title'.flv"'


where {path#1:} is the path where movies will be saved and {path#2:} is the path to location MPlayer is installed. Each movie will be saved with its own name in the location specified by {path#1:}. Save the script as "youtube_save&play.rexx" in the same location than previous one. Of course, feel free to use your own MPlayer options.

Second step: to make these scripts work from IB

The problem is that I couldn't make this scripts work directly from IBrowse, I tried to do it using the "ARexx:" action when defining a new FAB menu, but it simply didn't work, so I tried an indirect approach (thanks Toaks for the idea): to create a script to call the ARexx script, so you can define a fabmenu using the "Command" action instead. I made two scripts, one to call the 'play' version and one for the 'save and play' one:

'Play' version:

Quote:

.key URL/A,Opt
.bra {
.ket }

FailAt 10

rx {path:}youtube_play.rexx {URL}


where {path:} is the location where you previoulsy saved the corresponding ARexx script, "youtube_play.rexx". Copy&paste into a text editor and save it as 'YouTube_Play' in the same location than previous ARexx scripts.


'Play&Save' version:

Quote:

.key URL/A,Opt
.bra {
.ket }

FailAt 10

rx {path:}youtube_save&play.rexx {URL}


where {path:} is the location where you previoulsy saved the corresponding ARexx script, "youtube_save&play.rexx". Copy&paste into a text editor and save it as 'YouTube_Play&Save' in the same location than previous scripts.

Very important: you must protect both scripts, 'YouTube_Play' and 'YouTube_Play&Save' with the script (s) bit, using either 'c:protect {file} +s' or any file manager util (DOpus, DiskMaster, etc.)

Then open IB preferences, goto GUI>FABMenus (may vary for non-English languages, like mine, hehe...), drag&drop a 'Custom' element into 'Link' section in order to create a new context menu entry. Give it a name (f.ex., 'YouTube Play'), select 'Command' as Action, open the file requester gadget and select the 'YouTube_Play' script, and select '%l ' as argument in the drop-down menu gadget.

Create a second FAB Menu entry but selecting 'YouTube_Play&Save' script this time and, of course, giving it a different name ('YouTube Play&Save', maybe? :). Then press "OK" and remember to save preferences.

Now, everytime you press right mouse button on IB over a link, you should see those two new options, "YouTube Play" and "YouTube Save&Play. If the link is a YouTube video with the expected url form 'http://www.youtube.com/watch?v=xxxxxx', any of these options will download and play it (playing will be done in WB screen), the only difference will be whether the movie is permanently saved or not.

Well, I really hope it's not too confusing... Just ask if anything doesn't work as it should.

BTW, did I already say that I know nearly nothing about scripts? I'm sure someone with more experience can do a much better script, one with file requester so you can choose save location, etc....

Saluditos,

Ferrán.

Last edited by Ferry on 10-Oct-2006 at 03:59 PM.
Last edited by Ferry on 09-Oct-2006 at 01:49 PM.
Last edited by Ferry on 09-Oct-2006 at 03:58 AM.

_________________
Amiga user since 1988
AOS4 Betatester
Member of ATO Spain
A1 Cfg
OS4 SCR
A1200

 Status: Offline
Profile     Report this post  
Anonymous 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 5:51:10
# ]

0
0

Hey All You Amigans,


Stop doing that!

Doing the "impossible" is forbidden!!!

 
     Report this post  
Chris_Y 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 8:30:01
#33 ]
Elite Member
Joined: 21-Jun-2003
Posts: 3204
From: Beds, UK

@The_Editor

When you created the ARexx menu items (or buttons - I set them up as buttons here) make sure you included the "run" part. I missed this originally but it won't work without it.

Chris

_________________
"Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion
Avatar is Tabitha by Eric W Schwartz

 Status: Offline
Profile     Report this post  
afxgroup 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 8:38:44
#34 ]
Super Member
Joined: 8-Mar-2004
Posts: 1968
From: Taranto, Italy

"ao sdl" is not needed since is the only (and default) audio mode available on mplayer atm

_________________
http://www.amigasoft.net

 Status: Offline
Profile     Report this post  
Ferry 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 13:44:40
#35 ]
Cult Member
Joined: 26-Aug-2003
Posts: 696
From: Valencia, Spain

@Atheist

"Amigans" and "impossible" don't seem to fit well in the same sentence... ;¬)

Saluditos,

Ferrán.

_________________
Amiga user since 1988
AOS4 Betatester
Member of ATO Spain
A1 Cfg
OS4 SCR
A1200

 Status: Offline
Profile     Report this post  
Anonymous 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 16:25:28
# ]

0
0

Hi Ferry,


!!!


Let me guess. You're that guy who wants a PPC PDA with AOS4.x doing RC5-72/OGR25, and rendering an Imagine ray traced animation, and running WiFi bittorrent, while playing FPSE Castlevania:Symphony of the Night, right?

AND you want dragable screens too????


I say "impossible" foolish boy! Bah humbug!!

 
     Report this post  
The_Editor 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 16:32:38
#37 ]
Elite Member
Joined: 7-Mar-2003
Posts: 7629
From: 192.168.0.02 ..Pederburgh .. Iceni

@Atheist

no .. But it would've been kinda nice to see Susanna Hoffs & co singing here... http://www.thebangles.com/extras/extras.asp



P2P is your friend !!

Last edited by The_Editor on 09-Oct-2006 at 04:37 PM.

_________________
******************************************
I dont suffer from Insanity - I enjoy it

******************************************

 Status: Offline
Profile     Report this post  
GrumpyOldMan 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 18:19:05
#38 ]
Cult Member
Joined: 3-Nov-2003
Posts: 675
From: Haukipudas, Finland

@Ferry

I followed your instructions and created the two scripts. First changed the two lines for play_youtube.rexx:
---
address command 'c:wget -O "t:temp.flv" 'location
address command 'OS4:Utilities/mplayer/mplayer >nil: -ao sdl -vo>cgx_vmem::TINYBORDER "t:temp.flv"'
---

and the 'PlayYouTube' script for the FAB menu

---
.key URL/A,Opt
.bra {
.ket }

FailAt 10

rx Work:IBrowse/Arexx/play_youtube.rexx {URL}
---

I have also successfully added the FAB menu object 'PlayYouTube' in IBrowse prefs. The required programs, wget and Mplayer are installed into system.

Then, when I go to the Youtube site, open a movie page and with RMB action, select the 'PlayYouTube' from FAB menu over the "Play next" link I get this following IBrowse output:
---
TITLE
http://
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
--
No movie is played.

Any ideas what I am doing wrong?

_________________
"Those are my principles, and if you don't like them... well, I have others." (Groucho Marx)

 Status: Offline
Profile     Report this post  
Ferry 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 18:40:45
#39 ]
Cult Member
Joined: 26-Aug-2003
Posts: 696
From: Valencia, Spain

@GrumpyOldMan

Did you...?
Quote:
select '%l ' as argument in the drop-down menu gadget

when creating the FABMenu in IBrowse? That's required to pass the URL to the script. Please recheck it.

Saluditos,

Ferrán.

_________________
Amiga user since 1988
AOS4 Betatester
Member of ATO Spain
A1 Cfg
OS4 SCR
A1200

 Status: Offline
Profile     Report this post  
Ferry 
Re: www.youtube.com on OS4
Posted on 9-Oct-2006 18:51:57
#40 ]
Cult Member
Joined: 26-Aug-2003
Posts: 696
From: Valencia, Spain

@afxgroup

Hmmm, didn't know that. Well, at least it doesn't hurt, hehe...

Saluditos,

Ferrán.

_________________
Amiga user since 1988
AOS4 Betatester
Member of ATO Spain
A1 Cfg
OS4 SCR
A1200

 Status: Offline
Profile     Report this post  
Goto page ( Previous Page 1 | 2 | 3 | 4 | 5 | 6 Next Page )

[ home ][ about us ][ privacy ] [ forums ][ classifieds ] [ links ][ news archive ] [ link to us ][ user account ]
Copyright (C) 2000 - 2019 Amigaworld.net.
Amigaworld.net was originally founded by David Doyle