Created
February 24, 2021 10:17
-
-
Save jamesliu96/8b3039c0389673f3996dc6f57701b5f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
play_youtube() { | |
G=(`youtube-dl -g $1`) | |
echo ${G[1]} | |
echo ${G[2]} | |
ffmpeg -i ${G[1]} -i ${G[2]} -c:v copy -c:a copy -f matroska - | ffplay - | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment