Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
58 user(s) are online (1 user(s) are browsing Articles)

Members: 1
Guests: 57

daveyw, more...
Support us!
Recent OS4 Files
OS4Depot.net
     

OWB (and etc.), youtube, flv, playback
Posted by Jack on 2009/5/31 20:18:20 (3556 reads)

This article is a brief walkthrough of a simple way to watch youtube videos while browsing with OWB under OS4.x (or any other browser, under any other OS that meets the requirements)

Requirements
1. python (version >= 2.4)
2. youtube-dl python script by Ricardo Garcia Gonzalez, at the time of writing this available here
3. mplayer (os4.x port is availabe at OS4Depot)

Usage
1. Navigate to the pag e of video of your choice
2. Copy the url
3. In shell run:
Quote:

python full/path/to/youtube-dl "URL"

where URL is the previously copied video address including the double quotes
Useful parameter to youtube-dl: "-o filename.flv" will explicitly specify the output file.
4. Watch the progress, if download gets stuck: signal the python with ctrl-c, "c:break" , Steven Solies "Ranger" utility or other mean of your choice, and then repeat the download. People with sharp eyesight will notice the url of the video and might try download the files that stuck frequently using successive "wget -c" with proper argument specifying the output file ("-O" with capital O)
5. In shell or using mplayer or mplayer's GUI by Daniel Westerberg play the result of the download
6. Useful mplayer options:
. a. esperiment with "-mc 0" or "-mc 10" in cases of out-of-sync audio/video
. b. "-vf expand=::::::n" where n is 4 or 8 or 16 or 32 in case of distorted image (this will expand the dimensions of the video to mutiples of "n" in each direction). Other fix to the problem is to use "-vo sdl" option to specify SDL-based video rendering (which will in turn automatically "expand" the dimension of the video when choosing the best suitale screen-mode for the full-screen playback)
7. Delete th downloaded video file if not needed anymore.

Enjoy,
Jack

  0   Article ID : 29



Maintain By NovaSmart Technology . Visit NovaSmart XOOPS Module Development Site
Navigate thru topics
Top Articles
Most Active Authors
Most Read Authors
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project