Last active
July 26, 2017 05:10
-
-
Save legnaleurc/155979e76601adcf58a026035798587c to your computer and use it in GitHub Desktop.
streaming PoC
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/sh | |
echo 'Content-Type: video/mp4' | |
echo | |
ffmpeg -i 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov' -c:v copy -c:a copy -f mp4 -movflags frag_keyframe+empty_moov - |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<video src="/cgi-bin/stream.cgi" controls id="v"> | |
</video> | |
<script> | |
var v = document.querySelector('#v'); | |
//v.playbackRate = 1.5; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment