From 6d0bc958a94789eda10f137ba4a1b281642447b0 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Wed, 9 Oct 2024 21:09:11 -0400 Subject: [PATCH] Update cast_file incantations. --- ansible/roles/media/files/cast_file_vaapi | 171 +++++++++++----------- 1 file changed, 88 insertions(+), 83 deletions(-) diff --git a/ansible/roles/media/files/cast_file_vaapi b/ansible/roles/media/files/cast_file_vaapi index a35c803..6786cd2 100644 --- a/ansible/roles/media/files/cast_file_vaapi +++ b/ansible/roles/media/files/cast_file_vaapi @@ -12,12 +12,14 @@ function main { shift if [ "$cmd" = "copy" ]; then copy "${@}" - elif [ "$cmd" = "h264" ]; then - h264 "${@}" + elif [ "$cmd" = "stream_software_h264" ]; then + stream_software_h264 "${@}" + elif [ "$cmd" = "stream_hardware_h264" ]; then + stream_hardware_h264 "${@}" + elif [ "$cmd" = "preprocess_software_h264" ]; then + preprocess_software_h264 "${@}" elif [ "$cmd" = "preprocess_hardware_h264" ]; then preprocess_hardware_h264 "${@}" - elif [ "$cmd" = "software_h264" ]; then - software_h264 "${@}" elif [ "$cmd" = "vp9" ]; then vp9 "${@}" elif [ "$cmd" = "preprocess_hardware_vp9" ]; then @@ -60,7 +62,7 @@ function copy { "rtsp://$USERNAME:$PASSWORD@172.16.16.251:8554/fetch" } -function h264 { +function stream_software_h264 { local file_to_cast file_to_cast="$3" @@ -72,24 +74,74 @@ function h264 { # -bf 0 :: Disable b-frames because webrtc doesn't support h264 streams with b-frames.