shithub: docs.9front.org

Download patch

ref: e126bb18f34ffaedce4cede803539f20468a2492
parent: b4b066b67a91df416f2024fdfda4eb2f7377f150
author: Sigrid Haflínudóttir <[email protected]>
date: Tue Sep 15 10:28:22 EDT 2020

fall back to h264 when there is no AV1 stream available

--- a/youtube.md
+++ b/youtube.md
@@ -14,11 +14,19 @@
 
 ## 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.
+
+	treason `"{youtubedr -i 18 ybGOT4d2Hs8}
+
+If you want to find the best possible format, use the following script:
+
 	#!/bin/rc
 	rfork ne
 	vitag=`{youtubedr -info $1 | awk '/av01/ { print $2; exit }'}
 	if(~ $#vitag 0)
-		mcfs -t 1 `"{youtubedr -i 140 -o /tmp/_aud.mp4 $1} | audio/aacdec > /dev/audio
+		treason `"{youtubedr -i 18 -o /tmp/_vid.mp4 $1}
 	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