Hacked Gadgets Forum

June 28, 2007

Text-Based YouTube Video Player for Linux

at 2:37 pm. Filed under Complex Hacks, Computer Hacks, What Were They Thinking

 

Working on a command line Linux system and want to watch a YouTube video? Until now you were out of luck. Warren Harding has designed a program that reads in a YouTube video and plays it using ASCII text!

“This is a concept video depicting how users can surf and even watch videos from youtube with out the use of a Graphical User Interface.
The operating System is linux fedora 6, I used the lynx text based browser to search for a video on youtube, then I dug through the source found the keys required to build a request to download the desired video. Once downloaded I invoked the shell from lynx to launch mplayer to play the downloaded video. Mplayer is a really handy media player utility, if it doesn’t see X it uses a text engine to render the video, it has support for every codec you could think of including flv.”


 

A of no is to your life ever www.rellek.net/generic/viagra_brand.html . Mar 2013 the anniversary in currently...


Related Posts

Launchpad MSP 430 Programming with Linux
How to put Linux on your PS3
Botka, The Barely Standing Robot
Waveform Generator Record Player
Drawing with LED Lights
Roomba Christmas Caroling Hack
Embedded Linux Router Hacked for Sprinkler Control
Move over Vista here comes Ubuntu 6.10 Linux with XGL and Kiba-Dock

 


 

44 Responses to “Text-Based YouTube Video Player for Linux”

  1. joebob Says:

    1 question. could I get something like this for windows?
    that woul be cool. you know. watching a video and then watching it in ASCII.

  2. Warren Harding Says:

    I would just like to add that this was not some thing I created, I used linux, lynx and Mplayer, and the text engine is AA-Lib, all great projects kudos to them.

  3. Mmeval Says:

    What a waste of time! He could have just shown the video playing. What numbnuts types in a URL that long? There is such a thing as GPM. Doh!

    That is the AAlib library and Mplayer has been linked to it for an age.

    http://www.oreilly.com/pub/h/4441

    If your mplayer has been linked to aalib properly and aalib is installed just
    mplayer -vo aa myspiffyvideoina.formatmplayerlikes

    Tada!

    I think there is an Mplayer for vindos but do not know if aalib can be compiled for it.

    Yes I have played DooM and Quake using that. No it wasn’t very fun but it is fun running AA stuff in text mode.

    Most distros have aalib installed, try aafire in a terminal

    Now
    Get all your dev tools installed and compile this.
    It’s much cooler that flash pr0n
    http://aa-project.sourceforge.net/bb/

  4. Henkie Says:

    “… has designed a program …”
    There is no special program, at least not shown in this video. Just two standard programs and some searching and manual url copying.

    To make it practical, you should have some script, plugin or patch for lynx to automate this.
    The second part, launching mplayer, might be fairly easy. Lynx already offers an option to view it with the external program less (a text viewer with some fancy options to view (information about) other files too). Adding another external program based on the mimetype of the file shouldn’t be too hard.

    The first part, the extracting of the proper url to get the flv file, is probably very difficult to integrate into lynx.
    A site like http://videodownloader.net (/get/?url=…) could be used to convert the youtube webpage url to the url of the actual flv file.

    If you want ascii video on windows, there is a version of mplayer for windows. You could install that and see if it has ascii output support.
    From a console run: mplayer -vo help
    Then it should list it’s output drivers, if (among other things) it says:
    “aa AAlib” or “caca libcaca”
    you can do: mplayer -vo aa [videofile] to get the output seen in this video. Or with -vo caca you can even get colored ascii output, but the colors look very funky.

  5. Wolf Tohsaka Says:

    Well … mplayer also supports graphical mode under console mode, Geexbox [ http://geexbox.org/ ] is a media center using mplayer … without X, very light on resources 🙂

  6. L0rd_D4rk Says:

    Anyone with linux can play a demo based on aalib typing “bb” in the console (you must have the bb package installed). This demo shows you all you can do with aalib.

  7. Warren Harding Says:

    Henkie in case you miss the first post :
    I would just like to add that this was not some thing I created, I used linux, lynx and Mplayer, and the text engine is AA-Lib, all great projects kudos to them.

    Mmeval its not p0rn, its a music video, its also a concept http://www.answers.com/concept, so some aspects may not appear to be practical “Doh!”, mice not allowed in the concept 🙂 .

  8. NerdLinkOfTheDay » YouTube non ERA nerd! Says:

    […] se li guarda come sto tipo! […]

  9. technabob Says:

    computer plays youtube videos with ascii text

    This cool hack takes videos from YouTube, converts each frame to ASCII text, then plays them back in all their alphanumeric glory.

    Warren Harding (Linux geek, not the 29th President) put together this application which uses the text-based Lynx web bro…

  10. DyBlog Says:

    Regarder une vidéo Youtube en ASCII-art sous Linux

    Vous êtes sous Linux en ligne de commande, et vous voulez regarder une vidéo de chez Youtube ?
    Pas de problèmes, il existe une astuce qui va permettre de convertir cette vidéo en ASCII-art afin de pouvoir la visualiser…

  11. Wendell Says:

    May I put this in my blog? I’m translating this article to portuguese, coming soon it will be here – http://tradutorium.wordpress.com , with the credits.

    😀

  12. HardDisk Says:

    The idea and work isn’t something new, I don’t see what’s so “inventive” about this? video to ascii has been around for years. waste of time.

  13. Vendo vídeos do Youtube em modo-texto [Linux] « .:.Tradutorium.:. | Tópicos do Digg e do Del.icio.us traduzidos! Says:

    […] Posted on Junho 29th, 2007. [Título original]: http://hackedgadgets.com/2007/06/28/text-based-youtube-video-player-for-linux/  […]

  14. Salden Says:

    This is great and all but was there a reason I waited 4 friggin minutes to watch you type in a long url and download the video? Ever heard of non-linear editing?

  15. Eric Says:

    This is without a doubt, the lamest thing I’ve ever clicked through on.

    I should be shot and forced to watch screens full of dancing hamsters.

  16. This too was Dugg by … Says:

    […] read more | digg story 尼古拉 @ 12:58 pm [filed under Digg […]

  17. Alan Parekh Says:

    Hi Wendell,

    Sure you can share this on your blog. Same goes with anything on Hacked Gadgets.

  18. Xoder Says:

    If you used libcaca instead of aalib, you’d even get colors! Just put “-vo caca” in between “mplayer” and the file name.

  19. cantormath Says:

    did you get sound working with that as well?

  20. Online tv Says:

    Completely useless, but that’s why it’s so awesome.

    @cantormath
    sound is possible, but I think it would take up more resources and it wouldn’t sync up with the video.

  21. cappy Says:

    Incredibly incredibly bad. If there was a script it wouldn’t be so darn noob as it is but SERIOUSLY .. THIS!? Failure.

  22. mike jenkins Says:

    aaxine will already do this…

  23. Ver videos de YouTube desde la consola Says:

    […] En HackedGadgets encuentro este curioso video de YouTube en el cual un usuario de GNU/Linux, reproduce un video de Youtube desde la consola y sin interfaz gráfica. […]

  24. aib Says:

    VLC Media Player for Windows (personally, I highly recommend it) has ‘color ASCII art’ as a video output module, built-in.

    Also, if you’re running Firefox, try “about:kitchensink” (in the address bar).

  25. Prefect Says:

    like a piece of cake!

    I thought you implemented the ascii-out-mplayer into lynx, so you have ’embedded ascii-art-video’ but you only download the video and play it back with mplayer…

    Why don’t you use ‘gpm’ for cut’n’pasting the address? Would look muchmore sophisticated:-)

  26. kültür sanat ve teknoloji günlüğü » Konsol Ortamından Video İzlemek Hayal Değil ! Says:

    […] Biliyorsunuz Linux’ta X-server çıkmadan görselleşemiyorduk. Yani ne resim ne de videodan yaralanabiliyorduk. Hatta x-server çıkmadığı zamanlarda da görsellik ihtiyacından dolayı ascii art keşfedilmemiş miydi? Kötü günlerdi, işkenceydi kabul ediyorum, ama hala konsol kullanmakta ısrarcı olan veya tüm işi yazıyla olduğu için konsol kullanan insanlar var. İşte şu blogda da konsol kullananların da eğlenebileceklerini gösteren güzel bir çalışma yapılmış. Çalışmanın temel amacı konsoldan youtube videolarının izlenebileceğini göstermek. Bunun için Fedora Core 6 altında sadece mplayer ve bildiğimiz lynx kullanılmış. Mplayer çok değişik bir medya oynatıcısı. .flv ve bir çok format da dahil olmak üzere çoğu kodeği destekliyor. Üstelik x-server’ı bulamazsa görüntüyü ascii metine çevirip bizlere sunuyor ! Videoda da izleyebileceğiniz gibi kahramanımız Youtube‘da rastgele bir video’yu araştırıyor ve .flv dosyasını bilgisayarına kaydedip mplayerla açıyor. İşte GNU/Linux’da bahsedilen free de bu! Yani özgürlük. Yani her ortamda eğlenebilmeyi ve bir şeyler yapmayı başarabilmek…. […]

  27. asljd Says:

    make a version that doesn’t suck ass

  28. Renan Says:

    Cool, but I don’t see much point in doing this.

  29. YouTube ! - IOPaneL Says:

    […] YouTube ! ’, -Linux , , -Command Line. ’ -YouTube -ASCII, , FLV , ! -YouTube, ! . ? __________________ Cpu: Intel Core 2 Duo E6300 1.86GHz Board: Intel Desktop Board DG965WH Memory: 4X CORSAIR VALUE 512MB 667MHZ DDRII Video Card: Gigabyte Geforce 7600GS 512MB PASSIVE COOLING Monitor: Samsung SyncMaster 940BW Hard Drives: 2X WD 36GB Raptors, 2X WD 500GB AAKS, 1X WD 250GB, 1X WD 120GB Optical Drives: NEC ND4550A BLACK Keyboard+Mouse: Logitech Cordless Desktop MX 5000 Laser Case: HEC 6C28 Power Supply: HEC 300AR-TF […]

  30. Fred Banionis Says:

    Damn! Dont have colors!
    lmao

    Guy! Nice work, that’s the most weird thing I ever see!

  31. Mr Brasil.net » Video do Youtube em modo texto?- Noticias... Says:

    […] Hack Gadgets Noticias relacionadasLinux e Mac vão registrar aumento de vírus – 04/2007Vamos contar os pinguins! – 06/2007Dell adere ao Linux – 03/2007OpenOffice.org lança convite à Dell – 03/2007Vírus de Windows no Linux – 04/2007 Posted in Linux | […]

  32. Hebi-kai Says:

    How did he view the source of the page to get the YouTube video? I’ve tried this in lynx. I can open a page and get to a video, but I can’t seem to get the link to the video to DL it.

    A summary, list of steps or voice over would help. Otherwise, pretty cool.

  33. Kevin Says:

    You can use the mouse and Cut and Paste in text mode you know…

  34. Hackszine.com Says:

    Text-mode YouTube

    You’ll probably never have the desire or need to download and watch a YouTube video on a text-only console, but doesn’t it make you feel better knowing that it can be done? The trick is to use the AAlib…

  35. whocares Says:

    Quite funny to see someone that use Linux to be a rebelian, and at the same time have a dell monitor. LOLS

  36. Ver los vídeos de youtube en consola(Linux) « Tr3intaydos Says:

    […] Via | hackedgadgets […]

  37. Todd Edwards Says:

    Someone spends too much time in the server room.

  38. Yollubunlar.Org » Blog Archive » Ms-Dosta Video İzlemek Says:

    […] Biliyorsunuz Linux’ta X-server çıkmadan görselleşemiyorduk. Yani ne resim ne de videodan yararlanabiliyorduk. Hatta x-server çıkmadığı zamanlarda da görsellik ihtiyacından dolayı ascii art keşfedilmemiş miydi? Kötü günlerdi, işkenceydi kabul ediyorum, ama hala konsol kullanmakta ısrarcı olan veya tüm işi yazıyla olduğu için konsol kullanan insanlar var. İşte şu blogda da konsol kullananların da eğlenebileceklerini gösteren güzel bir çalışma yapılmış. Çalışmanın temel amacı konsoldan youtube videolarının izlenebileceğini göstermek. Bunun için Fedora Core 6 altında sadece mplayer ve bildiğimiz lynx kullanılmış. Mplayer çok değişik bir medya oynatıcısı. .flv ve bir çok format da dahil olmak üzere çoğu kodeği destekliyor. Üstelik x-server’ı bulamazsa görüntüyü ascii metine çevirip bizlere sunuyor ! Videoda da izleyebileceğiniz gibi kahramanımız Youtube‘da rastgele bir video’yu araştırıyor ve .flv dosyasını bilgisayarına kaydedip mplayerla açıyor. İşte GNU/Linux’da bahsedilen free de bu! Yani özgürlük. Yani her ortamda eğlenebilmeyi ve bir şeyler yapmayı başarabilmek…. […]

  39. Friend requester bot Says:

    YouTube is the future, however I don’t know why you would want to watch this in ascii.

  40. Top Unix News » Blog Archive » Text-Based YouTube Video Player for Linux Says:

    […] read more | digg story […]

  41. Ver los vídeos de youtube en consola(Linux) | Tr3intaydos Says:

    […] | hackedgadgets Posted in Videos, bsd, linux, text console | Leave a […]

  42. olecom Says:

    mplayer can play video on text mode console with hight quality of ordinary graphic mode.
    This is the cvidix+hardware_vid driver set. White nvidia_vid is said to work in docs, i
    have radeon working also:

    http://article.gmane.org/gmane.comp.video.mplayer.devel/46228

  43. steveking Says:

    YouTubeRobot.com today announces YouTube Robot 2.0, a tool that enables you to download video from YouTube.com onto your PC, convert it to various formats to watch it when you are on the road on mobile devices like mobile phone, iPod, iPhone, Pocket PC, PSP, or Zune.

    YouTube Robot allows you to search for videos using keywords or browse video by category, author, channel, language, tags, etc. When you find something noteworthy, you can preview the video right in YouTube Robot and then download it onto the hard disk drive. The speed, at which you will be downloading, is very high: up to 5 times faster than other software when you download a single file and up to 4 times faster when you download multiple files at a time.

    Manual download is not the only option with YouTube Robot. You may as well schedule the download and conversion tasks to be executed automatically, even when you are not around. Downloading is followed by conversion to the format of your choice and uploading videos to a mobile device (if needed). For example, you can plug in iPod, select the video, go to bed, and when you wake up next morning, your iPod will be ready to play new YouTube videos.

    Product page: ww w.youtuberobot.com
    Direct download link: ww w.youtuberobot.com/download/utuberobot.exe
    Company web-site: w ww.youtuberobot.com
    E-mail: support@youtuberobot.com

  44. Flv Player Says:

    I am using linux,this tool rocks.

Leave a Reply

Internal Links:

Categories:

Search:

Google
Hacked Gadgets
Web

Site Sponsors:

Nuts and Volts Electronic Labs Trossen Robotics Free Technical Publications Blue LED

 

Recent Comments:

More RSS Feed Options

Site Sponsors:

 

Interesting Sites: