Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/testutils/ffmpeg_v4l2_stream_proxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,15 @@ if [ -n "$VIDEO_FILE" ]; then
fi
FPS="$FPS_RATIO"
echo "Detected parameters: Width=$WIDTH, Height=$HEIGHT, FPS=$FPS"

FFMPEG_ARGS=(-re -stream_loop -1 -i "$VIDEO_FILE")
echo "Streaming from $VIDEO_FILE to $FIFO_PATH..."
else
FFMPEG_ARGS=(-re -f lavfi -i "testsrc=size=${WIDTH}x${HEIGHT}:rate=${FPS}")
echo "Streaming testsrc (${WIDTH}x${HEIGHT} @ ${FPS}fps) to $FIFO_PATH..."
fi

echo "Suggested CVD config: --media=v4l2_stream_proxy:input_path=$FIFO_PATH:input_width=$WIDTH:input_height=$HEIGHT:input_fps=$FPS"
echo "Use the following flag to attach the v4l2_stream_proxy device to the CF instance: --media=v4l2_stream_proxy:input_path=$FIFO_PATH:input_width=$WIDTH:input_height=$HEIGHT:input_fps=$FPS"
echo "Streaming started. Press Ctrl+C to stop."

while true; do
Expand Down
Loading