ffmpeg-build-script icon indicating copy to clipboard operation
ffmpeg-build-script copied to clipboard

DOCS - Running through docker cuda build process

Open kwsorensen opened this issue 3 years ago • 1 comments
trafficstars

Cloned the repo and build the cuda-ubuntu-ffmpeg using the command docker build -f cuda-ubuntu.dockerfile . -t cuda-ubuntu-ffmpeg .

I then execed into a container and ran the following...

root@cuda-ubunutu-ffmpeg:/media/video# ffmpeg --gpus all ffmpeg-cuda -hwaccel cuvid -c:v h264_cuvid -i https://files.coconut.co.s3.amazonaws.com/test.mp4 -c:v hevc_nvenc -vf scale_npp=-1:1080 - > test.mp4
ffmpeg version 5.0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --enable-nonfree --enable-gpl --enable-openssl --enable-libdav1d --enable-libsvtav1 --enable-libx264 --enable-libx265 --enable-libvpx --enable-libxvid --enable-libvidstab --enable-libaom --enable-libzimg --enable-lv2 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libfdk-aac --enable-libwebp --enable-libsrt --enable-cuda-nvcc --enable-cuvid --enable-nvenc --enable-cuda-llvm --enable-libnpp --nvccflags='-gencode arch=compute_52,code=sm_52' --enable-amf --disable-debug --disable-doc --disable-shared --enable-pthreads --enable-static --enable-small --enable-version3 --extra-cflags='-I/app/workspace/include -I/app/workspace/include/lilv-0 -I/usr/local/cuda/include' --extra-ldexeflags= --extra-ldflags='-L/app/workspace/lib -L/usr/local/cuda/lib64' --extra-libs='-ldl -lpthread -lm -lz' --pkgconfigdir=/app/workspace/lib/pkgconfig --pkg-config-flags=--static --prefix=/app/workspace --extra-version=
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
Unrecognized option '-gpus'.
Error splitting the argument list: Option not found

Is the documentation out of date, did my container fail to build successfully despite exiting correctly, or something else.

NOTE: I am brand new to ffmpeg and cuda so apologies if there is something obvious I missed.

kwsorensen avatar May 02 '22 20:05 kwsorensen

--gpus all is a docker flag not an ffmpeg flag.

tuxthepenguin84 avatar Apr 30 '23 01:04 tuxthepenguin84