Commit f7a5f1f8 authored by nanahira's avatar nanahira

use cudagl

parent 3121c4d7
FROM nvidia/cuda:11.1-devel-ubuntu20.04
FROM nvidia/cudagl:11.1-devel-ubuntu20.04
RUN rm -rf /etc/apt/sources.list.d/* && \
apt update && \
......
......@@ -3,6 +3,6 @@ REPLAY_NAME=$1
VIDEO_NAME=$2
WINDOW_WIDTH=$(grep window_width ./system_user.conf | grep -oP '\d+')
WINDOW_HEIGHT=$(grep window_height ./system_user.conf | grep -oP '\d+')
FFMPEG_EXEC=/home/nanahira/test/test-ffmpeg-cuda/output/bin/ffmpeg
FFMPEG_EXEC=ffmpeg
rm -f "$VIDEO_NAME"
./ygopro --auto-watch-no-wait --raw-video -r "$REPLAY_NAME" 2>&1 >/dev/null | "$FFMPEG_EXEC" -r 60 -vcodec rawvideo -f rawvideo -pix_fmt rgb24 -s "${WINDOW_WIDTH}x${WINDOW_HEIGHT}" -i - "$VIDEO_NAME"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment