ffmpeg using hardware gpu (cuda)

BTW: I also read on the “help” information, that it is possible to pass “Time Stamps”,

--copy-timestamp <st> <fps> Enable copy timestamp with start timestamp(st) in seconds for decode fps(fps) (for input-nalu mode)
	NOTE: copy-timestamp used to demonstrate how timestamp can be associated with an individual H264/H265 frame to achieve video-synchronization

But there is not documentation available in how to achieve this…

Hi rodolfop9lt0,
This topic is about ffmpeg with hardware acceleration, which is confirmed not supported.
Your case looks different and please make a new post.

The topic is about to use NMAP too…

I will post a “new” topic post, as I’m sure there is more people like me who is very frustrated to look and chase for concrete answers in how-to-use the multimedia capabilities of your embryonic product.

We would like to make each topic clear. Your questions are not about 'ffmpeg using hardware gpu (cuda) ’

Done: “MMAPI samples: How to interconnect the samples provided using MMAPI?”

On the end of this video: Raspberry Pi 4B vs Jetson Nano - YouTube it says that NVIDIA sent email to him confirming plans to support ffmpeg. How is it going? I’m very excited to use ffmpeg, please do it!!!

We are still checking to support it.
For clearness, because there are independent hardware encoding/decoding blocks(NVENC and NVDEC) on Jetson Nano, the hardware acceleration will be implemented on the hardware blocks, not on GPU.

1 Like

I didn’t understand. NVENC/NVDEC decode on GPU? And what is a hardware block that is not GPU?

Resuming: will ffmpeg be able to decode 8 1080p streams as in the deepstream example that comes with nano?

1 Like


Please check figure 1 in TX1 TRM. You shall see NVDEC and NVENC hardware blocks, which are not GPU.

Once we have confirmed to support ffmpeg with hard acceleration and completed the implementation, we will check this.

Hello, there are any news in support of FFMPEG on Jetson Nano?


I would also like to know if your still working on getting ffmpeg to use the hardware as we have an application which the jetson would fit perfectly but we need to be able to encode in hevc to make the swap.



ffmpeg support on jetson nano ,support decoding and encoding


Hi jocover,
Many thanks for the sharing.

Hi jocover, thanks for adding decode and encode support.

Would you mind also re-posting your project to the Jetson Projects forum along with a description for added visibility? Thanks!

@Jocover. Thank you so much!!!

It will be great to see hardware scaling into this project, unfortunately my C/C++ Skills are not to the level required, but I can help in other ways to keep this project going…

Also, I just reported a couple of bugs that came from 32.2 and 32.2.1.



Your effort is also affected by those two bugs H.264 bFrames timestamps and H.264i Video Decoding wrong timestamps as it looks they are interpreted as a 2X or fields rather than considering the new rate after converted to progressive video.

In any case. THANK YOU SO much! and again, please let me know how I can help!

sorry for my bad english i have managed running ffmpeg with cuda support and libfdk-aac

nano /etc/enviroment

add /user/local/cuda/bin: on the beginn of this file

then compile avisynth usw

git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git

sudo make install sudo ldconfig

./configure --enable-shared --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64

git clone mpv


./waf configure --enable-libmpv-shared --enable-egl-drm --enable-gl-x11 --enable-egl --enable-sdl2 --enable-ffmpeg-strict-abi --enable-xv

./waf install

all running


@jocover Hello, super work, doubled my frame rate on the jetson nano.

Hey guys- would any of you have happened to also try running any of the cuda hardware filters on the nano? I’ve yet to receive my nano in the mail (unfortunately looks like it more than 2 weeks away)

as a test, would someone be able to try running
ffmpeg -vsync 0 -c:v hevc_nvmpi -i input.264 -vf "fade,hwupload_cuda,scale_npp=1280:h" -c:v h264_nvmpi output.264
with a test file such as

I’m trying to verify if the standard cuda frame approach can be taken or if a hack/bodge of the current ffmpeg filters is needed

How much fps do you get for encoding? Any numbers to share with the world? Thanks!