Skip to content

Instantly share code, notes, and snippets.

@narate
Last active April 13, 2017 04:07
Show Gist options
  • Save narate/a999a0d11f18c5227a0c6af5eb736dc3 to your computer and use it in GitHub Desktop.
Save narate/a999a0d11f18c5227a0c6af5eb736dc3 to your computer and use it in GitHub Desktop.
Playing Tutu Live video from command line
#!/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
@narate
Copy link
Author

narate commented Apr 13, 2017

Usage

$ curl -O https://gist.githubusercontent.com/narate/a999a0d11f18c5227a0c6af5eb736dc3/raw/476b685a58defdf6393335ea4cc17232531c7603/ffplay-tutulive.sh
$ chmod +x ffplay-tutulive.sh
$ ./ffplay-tutulive.sh http://api.tutulive.tv/h5/shipin/000616b6ea87ad30000000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment