Closed samyhocine closed 3 years ago
Solved with:
const mux = beamcoder.muxer({ format_name: 'rtsp' });
And
// console.log(vstr);
await mux.openIO({
url: 'rtsp:127.0.0.1:7554/cam',
options: {
rtsp_transport: 'udp'
}
}).then(successCallback, failureCallback);
await mux.writeHeader();
I have now:
Failure: Error: In file ../src/mux.cc on line 203, found error: Problem opening IO context: Protocol not found [tcp @ 0x7f0bcc000ec0] No default whitelist set [tcp @ 0x7f0bcc000ec0] Original list of addresses: [tcp @ 0x7f0bcc000ec0] Address 127.0.0.1 port 7554 [tcp @ 0x7f0bcc000ec0] Interleaved list of addresses: [tcp @ 0x7f0bcc000ec0] Address 127.0.0.1 port 7554 [tcp @ 0x7f0bcc000ec0] Starting connection attempt to 127.0.0.1 port 7554 [tcp @ 0x7f0bcc000ec0] Successfully connected to 127.0.0.1 port 7554 [rtsp @ 0x33a82c0] Sending: OPTIONS rtsp://127.0.0.1:7554/cam RTSP/1.0 OPTIONS rtsp://127.0.0.1:7554/cam RTSP/1.0 CSeq: 1 User-Agent: Lavf58.29.100
-- [...]
Hi,
I'm trying to connect to an RTSP server by using this:
But then I got this error:
The rtsp server is up.
Everything is fine when I use instead:
The full code bellow (foo test code):
Is it really possible to connect to an rtsp server ?
Best regards,