initial commit
This commit is contained in:
12
templates/stream_service.sh.j2
Normal file
12
templates/stream_service.sh.j2
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
ffmpeg -hwaccel cuda -hwaccel_output_format cuda \
|
||||
-f alsa -ac 2 -i {{ audio_device }} -thread_queue_size 64 \
|
||||
-f v4l2 -framerate 30 -video_size 640x480 -input_format yuyv422 -i {{ video_device }} \
|
||||
-c:v libx264 -preset ultrafast -tune zerolatency \
|
||||
-vf "format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 \
|
||||
-f flv rtmp://0.0.0.0:1935/stream
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user