kkroening / ffmpeg-python

Python bindings for FFmpeg - with complex filtering support
Apache License 2.0
10k stars 886 forks source link

Stream the video and audio from a camera installed on a driverless vechile. #471

Open hongyi-zhao opened 3 years ago

hongyi-zhao commented 3 years ago

Currently, I'm participating in a remote driverless car monitoring system, which utilize the camera installed on the car to capture the real-time state of the surrounding environment and then transfer them to the monitoring device located remotely. The platform is Linux based operating systems.

I plan to do this with the following ideas: ffmpeg is used to capture the camera device and then rtmp(s) protocols are used to publish the stream to the rtmp(s) server supplied by nginx running on a cloud based VPS. On the remote client/monitoring side, we can access the nginx server by a rtmp capable client software, e.g. vlc for real time monitoring.

Any hints for realization of the above process with ffmpeg-python?

Regards, HY

raulpy271 commented 3 years ago

First, you can learn how to capture and use this protocol using only ffmpeg, so after this is most simple to use this library because you will only translate the code in ffmpeg to ffmpeg-python. To learn you can init with these topics about capturing with ffmpeg, and the documentation of the protocols.