Created
January 16, 2018 17:43
-
-
Save narate/7321dd4e2e2d482e8e61b3a59b6e2554 to your computer and use it in GitHub Desktop.
FFPLAY VOOV LIVE
This file contains hidden or 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 | |
# Usage : | |
# ./ffplay-voov.sh 'http://www.voovlive.com/voov-web/share/index?room_id=200327322&anchor_id=601157725&lang=en&video_id=100990185' | |
M3U8=$(echo $1 | python -c 'import sys,re;print("http://5430.liveplay.myqcloud.com/voov/5430%s.m3u8"%re.match(".*video_id=(\d+)",sys.stdin.read()).groups()[0])') | |
ffplay $M3U8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment