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.