[FFmpeg-user] Compile ffmpeg and error on nvcc
Michele Salerno
mikysal78 at gmail.com
Fri Jan 15 20:03:58 EET 2021
I compile ffmpeg for use cuda.
My gpu is Geforce GTX 660 and i have installed driver and cuda from site
nvidia (no repositoty of debian).
# /usr/local/cuda/samples/bin/x86_64/linux/release/deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "GeForce GTX 660"
CUDA Driver Version / Runtime Version 11.2 / 11.2
CUDA Capability Major/Minor version number: 3.0
Total amount of global memory: 2000 MBytes
(2096693248 bytes)
( 5) Multiprocessors, (192) CUDA Cores/MP: 960 CUDA Cores
GPU Max Clock rate: 1032 MHz (1.03 GHz)
Memory Clock rate: 3004 Mhz
i see in file configure this
if enabled cuda_nvcc; then
nvcc_default="nvcc"
nvccflags_default="-gencode arch=compute_30,code=sm_30 -O2"
else
nvcc_default="clang"
nvccflags_default="--cuda-gpu-arch=sm_30 -O2"
NVCC_C=""
fi
./configure --disable-decoder=amrnb --disable-decoder=libopenjpeg
--disable-libopencv --disable-outdev=sdl2 --disable-podpages
--disable-sndio --disable-stripping --enable-libaom --enable-avfilter
--enable-avresample --enable-gcrypt --disable-gnutls --enable-openssl
--enable-gpl --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libfdk-aac
--enable-libfontconfig --enable-libfreetype --enable-libfribidi
--enable-libgme --enable-libgsm --enable-libilbc --enable-libmp3lame
--enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt
--enable-libopus --enable-libpulse --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex
--enable-libtesseract --enable-libtheora --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libx265 --enable-libzimg
--enable-libxvid --enable-libzvbi --enable-nonfree --enable-opencl
--enable-opengl --enable-postproc --enable-pthreads --enable-shared
--enable-version3 --enable-libwebp --enable-libx264 --enable-libdc1394
--enable-vaapi --enable-libmfx --enable-libvmaf --disable-altivec
--enable-nvenc --enable-cuda --enable-cuvid --enable-cuda-nvcc
--enable-libnpp --extra-cflags=-I/usr/local/cuda/include
--extra-ldflags=-L/usr/local/cuda/lib64
ERROR: failed checking for nvcc.
if change nvccflags_default="-gencode arch=compute_30,code=sm_30 -O2" to
nvccflags_default="-gencode arch=compute_35,code=sm_35 -O2" its fine
compile.
Because with compute 30 i have error?
and i have error for conversione files
ffmpeg -y -hwaccel cuda -hwaccel_output_format cuda -i prova.ts -r 24
-c:v h264_nvenc -filter_complex
yadif=parity=tff:deint=all,scale=1920:1080 -b:v 3M -c:a aac -b:a 192k
-ar 48000 prova.mp4
Stream mapping:
Stream #0:0 (h264) -> yadif (graph 0)
scale (graph 0) -> Stream #0:0 (h264_nvenc)
Stream #0:1 -> #0:1 (mp2 (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x55c994cd5980] reference picture missing during reorder
[h264 @ 0x55c994cd5980] Missing reference picture, default is 65687
[h264 @ 0x55c9949e6b80] mmco: unref short failure
Last message repeated 1 times
[h264 @ 0x55c9949e6b80] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x55c9949e6b80] reference picture missing during reorder
[h264 @ 0x55c9949e6b80] Missing reference picture, default is 65687
[h264 @ 0x55c9948e3380] mmco: unref short failure
[h264 @ 0x55c994843cc0] mmco: unref short failure
[h264 @ 0x55c994cd5980] mmco: unref short failure
Last message repeated 1 times
Impossible to convert between the formats supported by the filter 'graph
0 input from stream 0:0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[aac @ 0x55c994c34000] Qavg: 9385.122
[aac @ 0x55c994c34000] 2 frames left in the queue on closing
Conversion failed!
[ post http://ffmpeg.org/pipermail/ffmpeg-user/2021-January/051312.html ]
Thanks.
Michele
More information about the ffmpeg-user
mailing list