Live Streaming Yolov4-Based Object Detector on Youtube
Good GPU: Nvidia 1080Ti or better
Strong network connection
bash download.sh
ffmpeg with libx264 for youtube live streaming
pip3 install -r requirements.txt
This example downloads 720p frames from Youtube, does detection and live stream the detections on Youtube.
python main.py --auto_restart --url https://www.youtube.com/watch?v=1EiC9bvVGnk --pb ./models/yolov4_320_norm.pb --model_input_size 320 --batch_size 16 --expected_fps 30 --output_path rtmp://a.rtmp.youtube.com/live2/<YOUTUBE-KEYS>
Or you can save the detections to a video file
python main.py --auto_restart --url https://www.youtube.com/watch?v=1EiC9bvVGnk --pb ./models/yolov4_320_norm.pb --model_input_size 320 --batch_size 16 --expected_fps 30 --output_path ./video.mp4
https://meowtek.art/jc1da