-----Original Message-----
From: ffmpeg-user <[email protected]> On Behalf Of Carl Zwanzig
Sent: 15 January 2021 21:13
To: [email protected]
Subject: Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration
Thanks very much for taking the trouble to reply.
I'm following the instructions here, Windows section:
https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/
What I'm trying to achieve is joining many images together which have been
produced by a video enhancing program. The command line is:
ffmpeg -framerate 59.94 -start_number 160004 -i P:\xmas5\%06d.png -c:v libx264
-preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17
-r 59.94 -threads 2 P:\xmaspng_80002-99932_Dione-DVx4_png.mkv
Some times it's TIFFs not PNGs.
I am hoping that the Nvidia GPU acceleration will speed up what is a very slow
process. That's all I want it for, and I'm trying to achieve this on a clean
install of Windows 10 on a spare disc. Nvidia RTX 2080Ti.
I've managed to install make (I'm not an expert on any of this!) but now the
make command produces:
C:\Windows\System32\nv-codec-headers>make install PREFIX=/usr
make: *** No rule to make target `install'. Stop.
The makefile in that directory contains:
PREFIX = /usr/local
LIBDIR = lib
INSTALL = install
SED = sed
all:
ifeq ($(OS),Windows_NT)
$(SED) 's#@@PREFIX@@#$(shell cygpath -m ${PREFIX})#'
ffnvcodec.pc.in > ffnvcodec.pc
else
$(SED) 's#@@PREFIX@@#$(PREFIX)#' ffnvcodec.pc.in > ffnvcodec.pc
endif
install: all
$(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
$(INSTALL) -m 0644 include/ffnvcodec/*.h
'$(DESTDIR)$(PREFIX)/include/ffnvcodec'
$(INSTALL) -m 0755 -d '$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
$(INSTALL) -m 0644 ffnvcodec.pc
'$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig'
uninstall:
rm -rf '$(DESTDIR)$(PREFIX)/include/ffnvcodec'
'$(DESTDIR)$(PREFIX)/$(LIBDIR)/pkgconfig/ffnvcodec.pc'
.PHONY: all install uninstall
The following command from the documentation also fails:
C:\FFmpeg>./configure --enable-nonfree -disable-shared --enable-cuda-sdk
--enable-libnpp --toolchain=msvc --extra-cflags=-I../nv_sdk
--extra-ldflags=-libpath:../nv_sdk
'.' is not recognized as an internal or external command,
operable program or batch file.
But I'm not sure whether this is due to the previous failure.
If I'm on the completely wrong track I'm prepared to format the disc and start
again! (What a pity there's not an image of Windows all prepared with this and
ready to go!)
Thanks again for taking an interest in my problem - I am a beginner here!
Derek
On 1/15/2021 10:49 AM, madderek--- via ffmpeg-user wrote:
> I cannot get the 'make' command to work - I get 'make' is not
> recognized as an internal or external command,
>
> operable program or batch file.
Well.... install make (nvidia's instructions include that).
What's your intended build environment? VisualStudio of msys2/mingw? If mingw,
did you install the 'c' compiler?
The nvidia instructions don't cover installing a heap of things, like the
compiler and a lot of packages. (They also say "–-toolchain=msvc" even as
they're giving instructions for mingw, which is suspect (I haven't looked at
the code yet to see if it matters.)
So first, make sure you have a working build environment, that's out the scope
of this list. Then look at the instructions for building ffmpeg-
I use "Option 2: MSYS2" of
<https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW>
https://trac.ffmpeg.org/wiki/CompilationGuide/MinGW
If you're using visual studio, see
<https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC>
https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC
You'll have to manually install any needed packages, usually ./configure will
tell you when something's missing.
Once you can build ffmpeg without cuda, then try building with cuda. And you
may want to follow up with nvidia if you're using their instructions.
Later,
z!
_______________________________________________
ffmpeg-user mailing list
<mailto:[email protected]> [email protected]
<https://ffmpeg.org/mailman/listinfo/ffmpeg-user>
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
<mailto:[email protected]> [email protected] with
subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".