From 11e1b81e8d109d753673e91c38eecc6351946cd8 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 13 Apr 2014 21:33:40 +0200 Subject: firefox-youtube-handler: add dash support. kind of Signed-off-by: Florian Pritz --- firefox-youtube-handler | 11 +++++++++-- 1 file 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}) -- cgit v1.2.3-24-g4f1b