Switch to opus for streaming.
This commit is contained in:
parent
076b8d296f
commit
043061fb16
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user