web surfing with `sh && nc && sed` and watching flash TV news in text mode.

Submitted by olecom
on May 19, 2008 - 4:03pm
flv=`sed -n '
/xmlfile/{
s-.*e=http://\([^/]*\)-url="nc \1 80" ; -
s_\(/[^"]*\)".*$_\
http="GET \1 HTTP/1.0\\r\\n\\r\\n"\n\
printf %b "$http" | $url | sed -n "/^<FLV/{s-<[^>]*>--g;p;q}"_p
q
}' "${1-/tmp/1tv}"`
$mplayer `eval "$flv"`

Given a file (`wget "$url"`), this way i can get flv of news from 1tv.ru, which (attention!) has more actual resolution, than in browser. Player there is a stupid one, without even zoom. URL of flv file must be requested from some twisted XML service. Oh, gee...

How i watch videos in text mode with `mplayer`, was posted here already.

btw, Russia vs Canada news special! (in russian)

on
May 19, 2008 - 4:23pm

http://www-download.1tv.ru/Video/2008_05/1905082101.flv

Teams are good in everything... Hell, i tired being alone.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.