Skip to content

Instantly share code, notes, and snippets.

@keijiro
Last active January 4, 2019 16:17
Show Gist options
  • Save keijiro/7d26aa55fc346408aedd7c220523e839 to your computer and use it in GitHub Desktop.
Save keijiro/7d26aa55fc346408aedd7c220523e839 to your computer and use it in GitHub Desktop.
FFmpegOut streaming test setup steps

gif

I tried streaming with FFmpegOut in the following steps.

  1. Modify the following lines in CameraCapture.cs
  _session = FFmpegSession.Create(
    gameObject.name,

as like the following.

   _session = FFmpegSession.CreateWithOutputPath(
    "-f mpegts -codec:v mpeg1video http://localhost:8081/passwd",
  1. Clone JSMpeg.

  2. Install ws.

sudo npm install ws
  1. Run websocket-relay.js with a password
node websocket-relay.js passwd
  1. Modify the following lines in view-stream.html
  var url = 'ws://'+document.location.hostname+':8082/';

as like the following.

  var url = 'ws://localhost:8082/';
  1. Open view-stream.html with a WebScoket-enabled browser (Firefox, Chrome, etc.).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment