On 07/28/2015 11:08 PM, Matthew Martin wrote:
On 7/26/15, Henrik Friedrichsen <hen...@diff.cc> wrote:
Hey
On Sun, Jul 26, 2015 at 10:46:30PM +0100, Dimitris Papastamos wrote:
Try viewtube[0] and gecko-mediaplayer instead. No hangs on my system
at all.
Yeah, that is a workaround. Sometimes I use youtube_dl with mpv. That
was just one example, though ;p
I've used essentially this[1] bound to a key in cwm ever since coming
across it to watch videos... I prefer browsers to just browse[2].
#!/bin/sh
# needs zenity, youtube-dl and vlc installed
URL=$(zenity --entry --text "Enter Video URL:")
if [ "$URL" = "" ]; then
echo "You must enter a url."
exit
fi
TMPFILE=$(mktemp /tmp/youtube-vid.XXXXXX)
youtube-dl --no-part -f 18/0/h264-sd -o $TMPFILE "$URL" &
DL_PID=$!
sleep 5
cvlc -f $TMPFILE vlc://quit
kill $DL_PID
rm $TMPFILE
---
[1]
http://daemonforums.org/showpost.php?s=985087eedf0b6bd2d04482749e5fd726&p=50021&postcount=29
[2] I say as typing this into gmail...
Ha, someone's using my script on the internet ;) Nowadays mpv uses
youtube-dl, so mpv <url> works with even less dependencies. Here's a
newer version of my script:
#!/bin/sh
URL="$(xclip -o)"
if [ "$URL" = "" ]; then
echo "You must select a url."
exit 1
fi
mpv -fs "$URL"