https://developer.nvidia.com/ffmpeg

Using NVIDIA hardware acceleration in FFmpeg/libav requires the following steps

Download the latest FFmpeg or libav source code, by cloning the corresponding GIT repositories
FFmpeg: https://git.FFmpeg.org/FFmpeg.git
Libav: https://github.com/libav/libav
Download and install the compatible driver from NVIDIA web site
Downoad and install the CUDA Toolkit CUDA toolkit
Use the following configure command (Use correct CUDA library path in config command below) 
./configure --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp 
--extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
Use following command for build: make -j 10
Use FFmpeg/libav binary as required. To start with FFmpeg, try the below sample command line for 1:2 transcoding
ffmpeg -y -hwaccel cuvid -c:v h264_cuvid -vsync 0 -i <input.mp4> \u2013vf scale_npp=1920:1072
-vcodec h264_nvenc <output0.264> -vf scale_npp=1280:720 -vcodec h264_nvenc <output1.264>

When i run the last commond, i got error “bash: syntax error near unexpected token `newline’”.
Any advice would be appreciated.

Hi 1070397475,

What’s the platform you’re using? On Jetson TX2 or others?

Thanks

Hi kayccc,
I try to decode the rtsp stream from a IP camera by ffmpeg and the CUVID SDK .
Is this applicable on Jetson TX2?

The SDK(Video_codec_sdk) seems to have restriction to the GPU.
Can FFmpeg achieve this goal alone (not to use the SDK) ?

Issue was answered in below topic:
https://devtalk.nvidia.com/default/topic/1042985/jetson-tx2/decode-the-rtsp-stream-from-a-ip-camera/post/5290846/#5290846