diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-04-13 21:33:40 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-04-13 21:33:40 +0200 |
commit | 11e1b81e8d109d753673e91c38eecc6351946cd8 (patch) | |
tree | b049f8188865adf195a07357f6d4892c6238d0b7 | |
parent | 9372b3ab86dbd61fd2a37a3aa633fa745bfe81ba (diff) | |
download | bin-11e1b81e8d109d753673e91c38eecc6351946cd8.tar.gz bin-11e1b81e8d109d753673e91c38eecc6351946cd8.tar.xz |
firefox-youtube-handler: add dash support. kind of
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | firefox-youtube-handler | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/firefox-youtube-handler b/firefox-youtube-handler index b339612..51ea0ec 100755 --- a/firefox-youtube-handler +++ b/firefox-youtube-handler @@ -2,8 +2,15 @@ proto='yt://' url=$1 id=${url##$proto} -#smplayer $(youtube-dl -g ${id}) +#audiourl="$(youtube-dl -g -f 141/140 "$id")" +#videourl="$(youtube-dl -g -f 137/136/135/134 "$id")" + +#vlc "$videourl" --input-slave "$audiourl" +#mpv "$videourl" --audiofile "$audiourl" +#mplayer "$videourl" -audiofile "$audiourl" + +# max 720p because youtube serves 1080p only via DASH (seperate audio/video streams) #urxvt -e bash -c "youtube-viewer -I \"http://youtube.com/watch?v=$id\"; sleep 5" smplayer "http://youtube.com/watch?v=$id" - +#smplayer $(youtube-dl -g ${id}) |