[FFmpeg-user] Can Decklink and GPu acceleration be used at same time ??
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sun Apr 12 12:59:06 EEST 2020
Am So., 12. Apr. 2020 um 11:54 Uhr schrieb Matthew Reus
<matthew.reus01 at gmail.com>:
>
> here i have attach the 2 of the ffmpeg script
>
> 1. This code gave me error
> * ffmpeg -f decklink -hwaccel_device 1 -hwaccel nvdec
> -hwaccel_output_format cuda -format_code pal -i 'DeckLink Quad (4)' -r 25
> -vf "format=yuv420p|cuda,yadif_cuda=0:-1:0,scale_npp=1280:720" -b:v 2.5M
> -bf 1 -aspect 16:9 -profile:v main -preset:v medium -c:v h264_nvenc -gpu 1
> -c:a aac -b:a 128k -ar 48000 -strict -2 -f flv
> 'rtmp://admin:admin@192.168.10.100:1935/test/Test1500.stream
> <http://admin:admin@192.168.10.100:1935/test/Test1500.stream>'*
> ffmpeg version N-97249-gfc12d6c Copyright (c) 2000-2020 the FFmpeg
> developers
> built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
> configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
> --extra-cflags='-I/root/ffmpeg_build/include
> -I/root/ffmpeg_sources/BMD_SDK/include'
> --extra-ldflags=-L/root/ffmpeg_build/lib --extra-libs='-lpthread -lm'
> --bindir=/root/bin --enable-cuda --enable-cuda-nvcc --enable-cuvid
> --enable-libnpp --extra-cflags=-I../nv_sdk --extra-ldflags=-L../nv_sdk
> --extra-cflags=-I/usr/local/cuda/include/
> --extra-ldflags=-L/usr/local/cuda/lib64/ --enable-decklink
> --extra-cflags=-I/usr/local/sdk/Linux/include/
> --extra-ldflags=-L/usr/local/sdk/Linux/include/ --enable-gpl
> --enable-libaom --enable-libass --enable-libfdk-aac --enable-vaapi
> --enable-libfreetype --enable-libmp3lame --enable-libopus
> --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265
> --enable-nonfree --enable-nvenc
> libavutil 56. 42.102 / 56. 42.102
> libavcodec 58. 78.100 / 58. 78.100
> libavformat 58. 42.100 / 58. 42.100
> libavdevice 58. 9.103 / 58. 9.103
> libavfilter 7. 77.101 / 7. 77.101
> libswscale 5. 6.101 / 5. 6.101
> libswresample 3. 6.100 / 3. 6.100
> libpostproc 55. 6.100 / 55. 6.100
> [decklink @ 0x55b6219b1b80] Found Decklink mode 720 x 576 with rate 25.00(i)
> [decklink @ 0x55b6219b1b80] Frame received (#1) - No input signal detected
> - Frames dropped 1
> Guessed Channel Layout for Input Stream #0.0 : stereo
> Input #0, decklink, from 'DeckLink Quad (4)':
> Duration: N/A, start: 0.000000, bitrate: 167424 kb/s
> Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
> Stream #0:1: Video: rawvideo (UYVY / 0x59565955), uyvy422(top first),
You cannot use the gpu to decode this, there is nothing to decode.
Using yadif is cpu-intensive, there is a filter yadif_cuda that you should test.
Please find out what top-posting means and avoid it here.
Happy Easter, Carl Eugen
More information about the ffmpeg-user
mailing list