Last active
April 13, 2017 04:07
-
-
Save narate/a999a0d11f18c5227a0c6af5eb736dc3 to your computer and use it in GitHub Desktop.
Playing Tutu Live video from command line
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
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "Usage : $0 url" | |
exit | |
fi | |
M3U8_URL=$(curl -s $1 | grep " var url" | sed 's/.*\(http.*.m3u8\).*/\1/') | |
ffplay $M3U8_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage