Switch to opus for streaming.

This commit is contained in:
Tom Alexander 2024-07-13 13:51:49 -04:00
parent 076b8d296f
commit 043061fb16
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -71,9 +71,9 @@ function h264 {
-vf 'format=nv12|vaapi,hwupload' \
-c:v h264_vaapi \
-bf 0 \
-c:a aac \
-b:a 160k \
-ar 44100 \
-c:a opus \
-b:a 320k \
-ar 48000 \
-f rtsp \
-rtsp_transport udp \
"rtsp://$USERNAME:$PASSWORD@172.16.16.251:8554/fetch"
@ -94,9 +94,9 @@ function software_h264 {
-i "$file_to_cast" \
-c:v h264 \
-bf 0 \
-c:a aac \
-b:a 160k \
-ar 44100 \
-c:a opus \
-b:a 320k \
-ar 48000 \
-f rtsp \
-rtsp_transport udp \
"rtsp://$USERNAME:$PASSWORD@172.16.16.251:8554/fetch"
@ -112,9 +112,9 @@ function preprocess_h264 {
-i "$file_to_cast" \
-c:v h264 \
-bf 0 \
-c:a aac \
-b:a 160k \
-ar 44100 \
-c:a opus \
-b:a 320k \
-ar 48000 \
"$file_to_save"
}