Skip to content

Instantly share code, notes, and snippets.

@ebachter
Created May 8, 2016 20:12
Show Gist options
  • Save ebachter/ecdde603853343c0746538afd95224b7 to your computer and use it in GitHub Desktop.
Save ebachter/ecdde603853343c0746538afd95224b7 to your computer and use it in GitHub Desktop.
cameras[cam].liveffmpeg = child_process.spawn("ffmpeg", [
"-rtsp_transport", "tcp", //"udp"
"-i", "rtsp://root:[email protected]:554/mpeg4/media.amp", //cameras[cam].rtsp,
"-vcodec", "libx264",
"-c:v", "libvpx",
"-s", "320x240",
"-r", "10",
"-f","ffm",
"-an",
"http://mediain.example.com:8090/v1/user742/secret"
], {detached: false});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment