Skip to content

Instantly share code, notes, and snippets.

@legnaleurc
Last active July 26, 2017 05:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legnaleurc/155979e76601adcf58a026035798587c to your computer and use it in GitHub Desktop.
Save legnaleurc/155979e76601adcf58a026035798587c to your computer and use it in GitHub Desktop.
streaming PoC
#! /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 -
<!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