Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration

2021-01-17 Thread madderek--- via ffmpeg-user


-Original Message-
From: ffmpeg-user  On Behalf Of Carl Zwanzig
Sent: 17 January 2021 21:07
To: ffmpeg-user@ffmpeg.org
Subject: Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration

Yes, you are right that I don't understand the compilation of software 
packages.  That's why I was hoping that someone would be kind enough to explain 
how to solve the problem, even if it's not an ffmpeg issue.
The instruction that I am using to produce a video from images works, it's just 
very slow.

Derek
Please fix your email quoting and send plain text to this list.

On 1/16/2021 6:47 AM, madderek--- via ffmpeg-user wrote:
> C:\Windows\System32\nv-codec-headers>make install PREFIX=/usr
> 
> make: *** No rule to make target `install'.  Stop.

It really sounds like you are not familiar with the basic tools used to compile 
& build software packages. I realize that "I'm not an expert on any of this!" 
but you need to do some research about the command line build tools and how to 
use them. This is not an ffmpeg issue.

As I said previously, try first building ffmpeg using the instruction from 
ffmpeg and without nvidia/cuda; only when that works try adding nvidia.

Later,

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration

2021-01-16 Thread madderek--- via ffmpeg-user


-Original Message-
From: ffmpeg-user  On Behalf Of Michael Shaffer
Sent: 16 January 2021 15:23
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration

Thanks for reply

Does that mean installing ubuntu rather than Windows? (which I've never done 
but happy to try!!)

Derek

You could try using Ubuntu Linux. I followed the Nvidia instructions for 
installing acceleration on my GTX 1080 and it worked fine.

On Sat, Jan 16, 2021 at 9:47 AM madderek--- via ffmpeg-user < 
ffmpeg-user@ffmpeg.org> wrote:

>
>
>
>
> -Original Message-
> From: ffmpeg-user  On Behalf Of Carl 
> Zwanzig
> Sent: 15 January 2021 21:13
> To: ffmpeg-user@ffmpeg.org
> 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 instructi

Re: [FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration

2021-01-16 Thread madderek--- via ffmpeg-user
 

 

-Original Message-
From: ffmpeg-user  On Behalf Of Carl Zwanzig
Sent: 15 January 2021 21:13
To: ffmpeg-user@ffmpeg.org
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:ffmpeg-user@ffmpeg.org> ffmpeg-user@ffmpeg.org

 <https://ffmpeg.org/mailman/listinfo/ffmpeg-user> 
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

 

To unsubscribe, visit link above, or email  
<mailto:ffmpeg-user-requ...@ffmpeg.org> ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Compiling FFmpeg with Nvidia GPU acceleration

2021-01-15 Thread madderek--- via ffmpeg-user
Hi

 

 

I'm using Using FFmpeg with NVIDIA GPU Hardware Acceleration :: NVIDIA Video
Codec SDK Documentation
  for Windows 10

 

All goes well until I hit the last three commands:

 

*   Goto nv-codec-headers directory and install ffnvcodec

make install PREFIX=/usr

*   Go to the FFmpeg installation folder and run the following command.

./configure --enable-nonfree -disable-shared --enable-cuda-sdk
--enable-libnpp --toolchain=msvc --extra-cflags=-I../nv_sdk
--extra-ldflags=-libpath:../nv_sdk

*   Compile the code by executing the following command.

make -j 8

 

 

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. 

I did try the next command, the ./configure one, this was also rejected.

 

Can anyone please help with this?

 

Derek Clements

 

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Using GPU with ffmpeg

2020-11-30 Thread madderek--- via ffmpeg-user


-Original Message-
From: ffmpeg-user  On Behalf Of andrei ka
Sent: 01 December 2020 00:40
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Using GPU with ffmpeg

Thanks

What does on 'cuda mean', and how do you do it?

Derek
btw, i really wonder thy why want to bechnmark fflmpeg with your tiffs if your 
"software will output to jpegs" :-) internally ffmpeg with convert your tiffs 
anyway. convert 20s of your tiffs to jpegs (imagemagic batch), leave threads to 
0 and si if ffmpeg will be faster. and next try mjpeg codec on cuda, make .ts 
and then repackage it to mkv, maybe it'll be faster again...

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Using GPU with ffmpeg

2020-11-30 Thread madderek--- via ffmpeg-user
020 23:49:55 ACDT Rodney Baker wrote:
> On Monday, 30 November 2020 18:51:28 ACDT madderek--- via ffmpeg-user wrote:
> [...]
> What the dev's are requesting is the complete, uncut console output 
> that ffmpeg prints to the command-line window when you executate the 
> command,

Typo! Of course I meant, "execute the command"; no idea how that happened! 


--
==
Rodney Baker VK5ZTV
rodney.ba...@iinet.net.au
CCNA #CSCO12880208
==


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Using GPU with ffmpeg

2020-11-30 Thread madderek--- via ffmpeg-user


-Original Message-
From: ffmpeg-user  On Behalf Of madderek--- via 
ffmpeg-user
Sent: 30 November 2020 08:21
To: 'FFmpeg user questions' 
Cc: madde...@ntlworld.com
Subject: Re: [FFmpeg-user] Using GPU with ffmpeg

I've made a short video:
https://www.asuswebstorage.com/navigate/a/#/s/91A6FA9826A34D65BDBF9F3FE57D170EW

The command line was 
ffmpeg -framerate 29.97  -start_number 35000 -i Q:\wsp\%06d.tif -c:v libx264 
-preset veryslow -tune film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 
-r 29.97 -threads 2 L:\WindsorSafariVideo8sholrt_4_16tiff.mkv

Derek

-Original Message-
From: ffmpeg-user  On Behalf Of Carl Zwanzig
Sent: 30 November 2020 06:36
To: ffmpeg-user@ffmpeg.org
Subject: Re: [FFmpeg-user] Using GPU with ffmpeg

On 11/29/2020 10:07 PM, madderek--- via ffmpeg-user wrote:
> ffmpeg -framerate 29.97  -start_number 70001 -i 
> L:\baf1400_70001-9\%06d.tif -c:v libx264 -preset veryslow -tune 
> film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 
> -threads 2 L:\baf140070001916tiff.mkv

Output? (need to see that)

And please don't top-post on this list.

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Using GPU with ffmpeg

2020-11-30 Thread madderek--- via ffmpeg-user
Do you want the actual video file? This will be several GB.  How do I post 
this?  I didn't think it was necessary since I'm only asking if it's possible 
to speed up the process using GPU.  If you do I'll prepare a smaller file.

Sorry, despite investigating I don't understand the top posting.

Derek

-Original Message-
From: ffmpeg-user  On Behalf Of Carl Zwanzig
Sent: 30 November 2020 06:36
To: ffmpeg-user@ffmpeg.org
Subject: Re: [FFmpeg-user] Using GPU with ffmpeg

On 11/29/2020 10:07 PM, madderek--- via ffmpeg-user wrote:
> ffmpeg -framerate 29.97  -start_number 70001 -i 
> L:\baf1400_70001-9\%06d.tif -c:v libx264 -preset veryslow -tune 
> film -profile:v high -pix_fmt yuv420p -level 4.1 -crf 17 -r 29.97 
> -threads 2 L:\baf140070001916tiff.mkv

Output? (need to see that)

And please don't top-post on this list.

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Using GPU with ffmpeg

2020-11-29 Thread madderek--- via ffmpeg-user
ffmpeg -framerate 29.97  -start_number 70001 -i L:\baf1400_70001-9\%06d.tif 
-c:v libx264 -preset veryslow -tune film -profile:v high -pix_fmt yuv420p 
-level 4.1 -crf 17 -r 29.97 -threads 2 L:\baf140070001916tiff.mkv

Derek

-Original Message-
From: ffmpeg-user  On Behalf Of Carl Eugen Hoyos
Sent: 29 November 2020 23:58
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Using GPU with ffmpeg

Am So., 29. Nov. 2020 um 21:36 Uhr schrieb madderek--- via ffmpeg-user
:

> The process is slow.

Please show us the command line you tested together with the complete, uncut 
console output to allow us to better understand what your issue is.

> Is there a simple way of using the GPU ram?

Hardware acceleration (which is typically provided by third-party
libraries) allows to use GPU resources, ffmpeg itself cannot (and doesn't need 
to) use GPU ram.

Please find out what top-posting means and avoid it here, Carl Eugen 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Using GPU with ffmpeg

2020-11-29 Thread madderek--- via ffmpeg-user
Thanks for reply.

About 4.6 hours!

The software that I am using to enhance videos will output to jpeg, I'm 
outputting to uncompressed 16bit TIFFs at the moment. 

Derek

-Original Message-
From: ffmpeg-user  On Behalf Of andrei ka
Sent: 29 November 2020 21:21
To: FFmpeg user questions 
Subject: Re: [FFmpeg-user] Using GPU with ffmpeg

20k frames are a mere 800s of a 25fps movie... how slow is cpu process ?
afaik nvenc can only do mjpeg_cuvid for stitching images, it won't work with 
tiffs...
e.g. ffmpeg -vsync 0 -hwaccel cuvid -c:v mjpeg_cuvid -framerate NN -i 
image_%04d.jpg -c:v h264_nvenc x.mp4...


___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Using GPU with ffmpeg

2020-11-29 Thread madderek--- via ffmpeg-user
Hi

 

I'm using ffmpeg to combine a large number of TIFF files into a single
video.

 

The TIFFs are the result of upscaling videos.  They are large in number,
typically 2 or 3.

 

The process is slow.

 

Is there a simple way of using the GPU ram?  I have a NVIDIA 2080 TI with
11GBof RAM.

 

Derek Clements

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".