Stream any RTSP stream and output to websocket for consumption by jsmpeg (https://github.com/phoboslab/jsmpeg). HTML5 streaming video! Requires ffmpeg.
I'm trying to build electron app in jetson nano to stream a camera. Unfortunately, with default ffmpeg options. it take all 4 threads with 90% percentage
So I tried to let gpu handle it with this command and it ran smoothly
but when i implement it to node-rtsp-stream with this ffmegOptions
stream = new Stream({
name: "name",
streamUrl:
"rtspURL"
wsPort: 9999,
ffmpegOptions: {
"-r": 20, // options with required values specify the value after the key
"-f": "mpegts",
"-c": "h264_nvenc"
},
});
it returned an error
Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 0, only the last option '-c h264_nvenc' will be used.
Unknown encoder 'h264_nvenc'
RTSP stream exited with error
Can't read /proc/cpuinfo: Operation not permitted
Can't read /proc/cpuinfo: Operation not permitted
../../third_party/swiftshader/src/Reactor/LLVMReactor.cpp:241 WARNING: ASSERT(ok): llvm::sys::getHostCPUFeatures returned false
My ffmpeg version is 4.3.2 and node-rtsp-stream is 0.0.9. Could you sort it out for me. Thank you
I'm trying to build electron app in jetson nano to stream a camera. Unfortunately, with default ffmpeg options. it take all 4 threads with 90% percentage![image](https://user-images.githubusercontent.com/45547213/108688042-0b160200-752a-11eb-95b9-23ccf86b50ba.png)
So I tried to let gpu handle it with this command and it ran smoothly
but when i implement it to node-rtsp-stream with this ffmegOptions
it returned an error
My ffmpeg version is 4.3.2 and node-rtsp-stream is 0.0.9. Could you sort it out for me. Thank you