shithub: wiki.9front.org

Download patch

ref: 9f7f9d770de575946cb33133537ad1207405b45c
parent: b587901ee46c276115092b737a01664139e5abd0
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Tue Apr 20 03:19:09 EDT 2021

youtube: new youtubedr, new cmdline options

--- a/youtube.md
+++ b/youtube.md
@@ -1,8 +1,8 @@
 Youtube
 =======
 
-Commit [treason](https://git.sr.ht/~ft/treason).  It supports H.264
-(allegedly all types of it as of 2020/12/11), VP8, VP9 and AV1.
+Commit [treason](https://git.sr.ht/~ft/treason).  It supports H.264,
+VP8, VP9 and AV1.
 
 *NOTE* one does not simply commit treason on anything other than AMD64
 or 386.  No videos for Raspi users, sorry.  You can still play audio
@@ -22,7 +22,7 @@
 
 ## Playing just audio alone
 
-	mcfs -t 1 `"{youtubedr -i 140 -o /tmp/audio.mp4 ybGOT4d2Hs8} | audio/aacdec > /dev/audio
+	mcfs -t 1 `"{youtubedr download -q 140 -d /tmp -o audio.mp4 ybGOT4d2Hs8} | audio/aacdec > /dev/audio
 
 ## Playing video and/or audio
 
@@ -31,7 +31,7 @@
 contains audio in the container itself and doesn't require too much
 CPU resources.
 
-	treason `"{youtubedr -i 18 -o /tmp/_vid.mp4 ybGOT4d2Hs8}; rm -f /tmp/_vid.mp4
+	treason `"{youtubedr download -q 18 -d /tmp -o _vid.mp4 ybGOT4d2Hs8}; rm -f /tmp/_vid.mp4
 
 If you want to find the best possible format, use the following script:
 
@@ -51,9 +51,10 @@
 		}
 	'}
 	if(~ $#vitag 0)
-		treason `"{youtubedr -i 18 -o /tmp/_vid.mp4 $"1}
+		treason `"{youtubedr download -q 18 -d /tmp -o _vid.mp4 $"1}
 	if not
-		treason -a `"{youtubedr -i 140 -o /tmp/_aud.mp4 $"1} `"{youtubedr -i $vitag -o /tmp/_vid.mp4 $"1}
+		treason -a `"{youtubedr download -q 140 -d /tmp -o _aud.mp4 $"1} \
+		           `"{youtubedr download -q $vitag -d /tmp -o _vid.mp4 $"1}
 	#rm -f /tmp/_^(aud vid)^.mp4
 
 *TODO* This script should be extended to choose best format based on
@@ -69,3 +70,7 @@
 ## Caveats
 
 Many. Patches welcome.
+
+## Support
+
+sigrid @ `#cat-v`.