shithub: docs.9front.org

Download patch

ref: eafda47c0789055ea67b781be12a8ecb26f7ddfd
parent: f110e634ab212ab8d329dcc974058901ec679561
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Fri Dec 11 05:28:26 EST 2020

youtube: update

--- a/youtube.md
+++ b/youtube.md
@@ -24,9 +24,10 @@
 
 ## Playing video and/or audio
 
-The easiest way to play ANY video on Youtube is to use H.264 baseline stream. It's of pretty bad
-quality image-wise, but contains audio in the container itself and doesn't require too much CPU
-resources.
+The easiest way to play ANY video on Youtube is to use H.264
+"baseline" stream.  It's of pretty bad quality image-wise, but
+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
 
@@ -52,6 +53,9 @@
 	if not
 		treason -a `"{youtubedr -i 140 -o /tmp/_aud.mp4 $"1} `"{youtubedr -i $vitag -o /tmp/_vid.mp4 $"1}
 	#rm -f /tmp/_^(aud vid)^.mp4
+
+*TODO* This script should be extended to choose best format based on
+preferences (resolution) and CPU resources.
 
 You can put that script to `$home/bin/rc/youtube` and add a plumb rule
 for Youtube URLs, right *before* `include basic`: