l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social Gathering
Next Installfest:
Sat. Sept. 27, 10am-6pm
Latest News:
Aug. 30: September Installfest scheduled
Page last updated:
2007 Feb 13 21:28
Events
 Meetings
 Installfests
 Demos
 Photos
Services
 Library
 LERT
 Jobs
 Documents
Interact
 Mailing Lists
 - Search
 - Archives
 Chat
About Us
 Members
 Projects
 Testimonials
 Call for Speakers
 Why Not MS?
 Finances
 Sponsors

^Home
?Search
?News & RSS
?Calendar
@Contact Us
$Buy Stuff
=Printable


The following is an archive of a post made to our 'vox mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox] Streaming flash videos yourself (no YouTube or Google Videoneeded)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox] Streaming flash videos yourself (no YouTube or Google Videoneeded)



On Tue, Feb 13, 2007 at 06:16:38PM -0800, Don Armstrong wrote:
> 
> Videodownloader (a firefox plugin) and a few other tools make ripping
> the video out of the flash containers fairly trivial.

Indeed.  Content you'd like to view later, or on a different device
(say your PSP?) need not be stuck forever within *Tube or G*video webpages. :)

Clever shell scripting, plus 'ffmpeg', are exactly what's called for.

Here's a shell script I call "youtube2mpg.sh" that I threw together
based on something I found over at kde-apps.org:


-- begin --

#!/bin/sh

FFMPEG_OPTIONS='-ab 56 -ar 22050 -b 500 -s 320x240'
you="http://youtube.com/get_video.php?";

if [ $1x = "x" ]; then
        echo Usage: youtube2mpg.sh URL FILE.mpg
        exit
fi

if [ $2x = "x" ]; then
        echo Usage: youtube2mpg.sh URL FILE.mpg
        exit
fi

wget "$1" -O /tmp/y1
youswf=${you}`grep player2.swf /tmp/y1 | cut -d? -f2 | cut -d\" -f1`;

echo "Downloading $youswf"
wget "${youswf}" -O /tmp/y.flv

ffmpeg  ${FFMPEG_OPTIONS} -i /tmp/y.flv "$2"

mplayer "$2"

-- end --

Note: I haven't actually had any USE for it since I wrote it, and can't
vouch that it still works as-is.


-bill!
_______________________________________________
vox mailing list
vox@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox



Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

CD Burns Wanted!

LUGOD: Linux Users' Group of Davis
1105 Kennedy Place, Suite 1, Davis, CA 95616
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
California Computer News
Who donated books and ad space.