#!/usr/bin/env bash # Set FFMPEG to use an ffmpeg build that is not on PATH. "${FFMPEG:-ffmpeg}" -y \ -hwaccel cuda -hwaccel_output_format cuda \ -f lavfi -i testsrc=d=50 \ \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 1M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 2M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 3M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 4M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 5M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 6M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 7M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 8M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 9M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 10M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 11M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 12M -f null - \ -fps_mode passthrough -c:a copy -c:v h264_nvenc -b:v 13M -f null -