[MPlayer-users] A script/wrapper to play Youtube etc videos?

Mike Mohr akihana at gmail.com
Thu Nov 6 17:28:39 CET 2008


perl -MWWW::Mechanize -e '$_ = shift;
s#http://|www\.|youtube\.com/|watch\?|v=|##g; $m =
WWW::Mechanize->new; ($t =
$m->get("http://www.youtube.com/v/$_")->request->uri) =~
s/.*&t=(.+)/$1/;
$m->get("http://www.youtube.com/get_video?video_id=$_&t=$t",
":content_file" => "$_.flv")'

http://www.catonmat.net/blog/downloading-youtube-videos-with-a-perl-one-liner/

Mike

On Thu, Nov 6, 2008 at 6:46 AM, Paulus Esterhazy <pesterhazy at gmx.net> wrote:
> Richard Hartmann schrieb:
>> On Thu, Nov 6, 2008 at 13:31, Oliver Seitz <info at vtnd.de> wrote:
>>
>>> I found mozplugger to be highly configurable. The command line to invoke
>>> mplayer can be changed in the configuration file. So if you just omit the
>>> stuff that would place mplayer's output within the browser window, I think
>>> it would open up a new window.
>>
>> The problem with this is that, ttbomk, MPlayer does not support flash
>> videos directly, but needs a third-party tool to extract the flv, first.
>>
>> Also, I don't generally want to display _all_ flash-based video content
>> in a seperate window. What I envision is
>>
>>   wrap_mplayer.sh http://www.youtube.com/watch?v=DslTkwON1Bk
>>
>> (or some such) and then have a mplayer window come up.
>>
>>
>> Thanks for your input,
>> Richard
>
> Try clive:
>
> http://clive.sourceforge.net/
>
> It's quirky, though. If you want seeking, it might be better to first
> convert the flash video to a different format.
>
> HTH,
> Paulus
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>



More information about the MPlayer-users mailing list