Last active
October 3, 2022 08:46
-
-
Save smooker/82af7a0fe614814b5e65a8d293e4165c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ffmpeg -re -stream_loop -1 -strict 1 -y -vsync 1 -threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size 512 -hwaccel cuda -hwaccel_output_format cuda -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 25 -extra_hw_frames 9 -i /dev/video0 -f pulse -i default -bsf:a aac_adtstoasc -c:a aac -ac 2 -b:a 128k -c:v h264_nvenc -b:v 5M -f rtsp -rtsp_transport tcp rtsp://localhost:8554/proxy1 | |
ffmpeg -re -stream_loop -1 -strict 1 -y -vsync 1 -threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size 64 -hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 16 -f v4l2 -input_format mjpeg -video_size 1920x1080 -framerate 25 -extra_hw_frames 16 -i /dev/video0 -f pulse -i default -bsf:a aac_adtstoasc -c:a aac -ac 2 -b:a 128k -c:v h264_nvenc -b:v 5M -f rtsp -rtsp_transport tcp rtsp://localhost:8554/proxy1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment