agrinax.blogg.se

How to extract audio from video using youtube-dl terminal
How to extract audio from video using youtube-dl terminal










how to extract audio from video using youtube-dl terminal

Using this command I was able to play in terminator, at least for the first 1/4 of the video before it cut out: $ youtube-dl -o - | \ Caching too on mplayer made a dramatic difference in being able to play directly in ones terminals. It would seem that the choice of terminal can make a big deal as to whether mplayer can play directly inside the terminal or whether it opens a separate window. If you have libcaca installed (the colorized version of aalib) and you reduce the font size in your gnome-terminal to something really small, like say 3, the following command will display a much better looking ASCII video directly within the terminal: $ CACA_DRIVER=ncurses mplayer -vo caca video.mp4 Perhaps the above will get you closer to your ultimate solution, or perhaps it just needs to be tweaked a bit on the options. I see video for a brief few seconds and then nothing.

how to extract audio from video using youtube-dl terminal

The window comes up and starts to play but then closes. This almost works! I'm not sure why the video cannot play in the window, but it would seem like it should be able to. So I thought, why not put the peanut butter and the chocolate together like this: $ xterm -fn 5x7 -geometry 250x80 -e \ The above results in a xterm window being opened where the video plays. $ xterm -fn 5x7 -geometry 250x80 -e "mplayer -vo aa:driver=curses j.mp4 I found this trick which allows video to be played in an xterm in the O'Reilly articled titled: Watch Videos in ASCII Art.

how to extract audio from video using youtube-dl terminal

OK but I want the video in my actual terminal?

how to extract audio from video using youtube-dl terminal

With the installation of additional libraries the ASCII video can be enhanced further. The video being downloaded by youtube-dl is redirected via STDOUT above, -o. This article shows it being done with mplayer: $ youtube-dl -o - | \ I found this blog article titled: On ascii, youtube and letting go (Wayback Machine) that demonstrates the method that I discussed in the chatroom, mainly using youtube-dl as the "backend" which could do the downloading of the YouTube stream and then redirecting it to some other app. OK but I want to watch these videos as they're streamed & in ASCII Use 'cvlc' to use vlc without interface.įontconfig warning: FcPattern object size does not accept value "0" main libvlc: Running vlc with the default interface. VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5) You can then use vlc or mplayer to watch these locally: $ vlc "Joe Nichols - Yeah (Audio)-OwvZemXJhF4.mp4" Destination: Joe Nichols - Yeah (Audio)-OwvZemXJhF4.mp4 OwvZemXJhF4: Encrypted signatures detected. OwvZemXJhF4: Extracting video information OwvZemXJhF4: Downloading video info webpage To download videos you simply give it the URL from the page you want the video on and the script does the rest: $ youtube-dl U, -update update this program to latest version. The script is written in Python and makes use of ffmpeg I believe. You can download videos and/or just the audio and then watch/listen to them using youtube-dl.












How to extract audio from video using youtube-dl terminal