mirror of
https://github.com/gtxaspec/wz_mini_hacks.git
synced 2025-08-09 20:14:04 +00:00
go2rtc: update ffmpeg version, include libopus, enable audio in go2rtc config
This commit is contained in:
Binary file not shown.
@@ -11,8 +11,10 @@ ffmpeg:
|
||||
streams:
|
||||
1080p:
|
||||
- exec:ffmpeg -fflags +genpts+flush_packets+nobuffer+bitexact -flags +low_delay -thread_queue_size 100 -analyzeduration 50 -probesize 50 -pix_fmt yuv420p -r 30 -i /dev/video1 -flags +global_header -movflags +empty_moov+default_base_moof+frag_keyframe -framerate 30 -video_size 1920x1080 -pix_fmt yuv420p -c:v copy -copyts -rtsp_transport tcp -f rtsp {output}
|
||||
# - exec:ffmpeg -hide_banner -f alsa -ac 1 -i default -c:a libopus -ac:a 2 -c:v copy -f rtsp {output}
|
||||
|
||||
- exec:ffmpeg -hide_banner -f alsa -ac 1 -i hw:0,0 -c:a libopus -filter:a volume=5 -movflags +empty_moov+default_base_moof+frag_keyframe -muxdelay 0 -muxpreload 0 -ac:a 1 -c:v copy -f rtsp {output}
|
||||
- exec:ffmpeg -hide_banner -f alsa -ac 1 -i hw:0,0 -c:a aac -filter:a volume=5 -movflags +empty_moov+default_base_moof+frag_keyframe -muxdelay 0 -muxpreload 0 -ac:a 1 -c:v copy -f rtsp {output}
|
||||
360p:
|
||||
- exec:ffmpeg -fflags +genpts+flush_packets+nobuffer+bitexact -flags +low_delay -thread_queue_size 100 -analyzeduration 50 -probesize 50 -pix_fmt yuv420p -r 30 -i /dev/video2 -framerate 30 -video_size 640x360 -pix_fmt yuv420p -c:v copy -copyts -rtsp_transport tcp -f rtsp {output}
|
||||
# - exec:ffmpeg -hide_banner -f alsa -ac 1 -i default -c:a libopus -ac:a 2 -c:v copy -f rtsp {output}
|
||||
- exec:ffmpeg -hide_banner -f alsa -ac 1 -i hw:2,0 -c:a libopus -filter:a volume=5 -movflags +empty_moov+default_base_moof+frag_keyframe -muxdelay 0 -muxpreload 0 -ac:a 1 -c:v copy -f rtsp {output}
|
||||
- exec:ffmpeg -hide_banner -f alsa -ac 1 -i hw:2,0 -c:a aac -filter:a volume=5 -movflags +empty_moov+default_base_moof+frag_keyframe -muxdelay 0 -muxpreload 0 -ac:a 1 -c:v copy -f rtsp {output}
|
||||
|
||||
|
@@ -89,9 +89,11 @@ case "$1" in
|
||||
|
||||
if [[ "$GO2RTC_LOW_RES_ENABLED" == "true" ]] || [[ "$GO2RTC_HI_RES_ENABLED" == "true" ]]; then
|
||||
echo "delay go2rtc for iCamera"
|
||||
|
||||
#This delay is required. Sometimes, if you start the go2rtc server too soon, live view will break on the app.
|
||||
sleep 5
|
||||
|
||||
export ALSA_CONFIG_PATH=/opt/wz_mini/etc/alsa/alsa.conf
|
||||
/opt/wz_mini/bin/go2rtc_linux_mipsel -config /opt/wz_mini/etc/go2rtc.yml > $GO2RTC.log 2>&1 &
|
||||
|
||||
fi
|
||||
|
@@ -1 +1 @@
|
||||
Tue Jul 11 07:22:39 PM PDT 2023
|
||||
Tue Jul 11 11:00:28 PM PDT 2023
|
||||
|
Reference in New Issue
Block a user