Jump to content
  • 0

Low latency streaming from Raspberry using command line


Massi
 Share

Question

Hello, we are using a Raspberry Pi4 connected with a USB high resolution camera Logitech BRIO 4k. We are sending the video to Ant Media Server with 1080p resolution @5Mbps. We are using ffmpeg and SRT.

Is there any way to improve latency by using webRTC from command line without a browser? And in that case, how can I have the same resolution described above and send this stream to Ant Media Server?

Thank you!

Massimiliano.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
23 hours ago, Massi said:

Hello, we are using a Raspberry Pi4 connected with a USB high resolution camera Logitech BRIO 4k. We are sending the video to Ant Media Server with 1080p resolution @5Mbps. We are using ffmpeg and SRT.

Is there any way to improve latency by using webRTC from command line without a browser? And in that case, how can I have the same resolution described above and send this stream to Ant Media Server?

Thank you!

Massimiliano.

Hi @Massi,

How are you?

You can use gstreamer to send the SRT steam to AMS.

For the same you can refer to these suggestions and articles https://github.com/ant-media/Ant-Media-Server/issues/4437

Also if there's no adaptive settings on the server then AMS simply forward the incoming resolution and there is no transcoding.

I hope it helps.

 

--

Best Regards,

Mohit Dubey

Link to comment
Share on other sites

  • 0
On 1/27/2023 at 5:40 PM, Massi said:

Hello, we are using a Raspberry Pi4 connected with a USB high resolution camera Logitech BRIO 4k. We are sending the video to Ant Media Server with 1080p resolution @5Mbps. We are using ffmpeg and SRT.

Is there any way to improve latency by using webRTC from command line without a browser? And in that case, how can I have the same resolution described above and send this stream to Ant Media Server?

Thank you!

Massimiliano.

 The WebRTC solution is for browser only I guess. To be able to use something like that from command line you will need to know the entire websocket negotiation and ice exchange part of the SDK functionality and then maybe simulate that through python or so. Btw why not use browser in this case ? RPI 4 already has a good cpu and enough memory I guess..

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...