Skip to content

Instantly share code, notes, and snippets.

@difranco
Last active October 13, 2015 01:18
Show Gist options
  • Save difranco/4116460 to your computer and use it in GitHub Desktop.
Save difranco/4116460 to your computer and use it in GitHub Desktop.
make it executable, put it in your path, and try it out
#!/bin/bash
if [ `whoami` != "root" ]
then
echo "My full name is Sudo Genki."
exit 1
fi
if [ `which vlc-wrapper` = "vlc-wrapper not found" ]
then
echo "Sudo Genki requires vlc."
exit 77
fi
VIDEOS="\
https://www.youtube.com/watch?v=LRjCfdJbb6g \
https://www.youtube.com/watch?v=xwg2Hpf4ta8 \
https://www.youtube.com/watch?v=r-qhj3sJ5qs \
https://www.youtube.com/watch?v=xGsFZHX1jho "
vlc-wrapper $VIDEOS --fullscreen --intf dummy --vout caca --sout="#transcode{samplerate=8192,channels=1}:display{}"
@wrought
Copy link

wrought commented Nov 20, 2012

machina@machina:/srv/scripts/4116460$ sudo ./genki
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x21e3f78] dummy interface: using the dummy interface module...
[0x7f742000ec88] gnutls tls client error: A TLS packet with unexpected length was received.
[0x7f74200034c8] main access error: Read error: Connection reset by peer
[0x7f74200105f8] lua demux error: Couldn't extract youtube video URL, please check for updates to this script
[0x7f7420eefa78] gnutls tls client error: A TLS packet with unexpected length was received.
[0x7f74200029d8] main access error: Read error: Connection reset by peer
[0x7f7420014378] lua demux error: Couldn't extract youtube video URL, please check for updates to this script
[0x7f7420ef25e8] gnutls tls client error: A TLS packet with unexpected length was received.
[0x7f74200113b8] main access error: Read error: Connection reset by peer
[0x7f74200158d8] lua demux error: Couldn't extract youtube video URL, please check for updates to this script
[0x7f7420005ca8] gnutls tls client error: A TLS packet with unexpected length was received.
[0x7f74200113b8] main access error: Read error: Connection reset by peer
[0x7f7420023548] lua demux error: Couldn't extract youtube video URL, please check for updates to this script

@difranco
Copy link
Author

I'm using 2.0.4 and it works quite well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment