summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-04-13 21:33:40 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-04-13 21:33:40 +0200
commit11e1b81e8d109d753673e91c38eecc6351946cd8 (patch)
treeb049f8188865adf195a07357f6d4892c6238d0b7
parent9372b3ab86dbd61fd2a37a3aa633fa745bfe81ba (diff)
downloadbin-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-xfirefox-youtube-handler11
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})