
I know I could otherwise use a Jetson card NVENC to make it work (propbably), but that is not practical in our current environment.

The cloud computer will host the videos so I want that to remain there. I do not want to do the encoding on the Jetson. Note that I run these commands on a cloud computer, normal Intel based processor with the default ffmpeg from Ubuntu 18.04. What I would need are the command line options that will make sure the encoding works every single time. So I would imagine that the ffmpeg library makes a decision on some of the JPEG data which are incompatible with the NVDEC decoder. Here is the command that I use to create a video from one image:įfmpeg -hide_banner -y -loop 1 -i "input-image.jpg" -c:v libx264 -t 1 -vf format=yuv420p -vf scale=3840:2160 -filter:v fps=fps=30 -movflags +faststart -an "out.mp4"Īnd here is the command I use to create videos from frames:įfmpeg -hide_banner -y -i "f%d.jpg" -c:v libx264 -vf format=yuv420p -filter:v fps=fps=30 -movflags +faststart -an "out.mp4"Īs I mentioned above, these work only about 50% of the time. We have two types of videos, some that are created from one image and others that are actual 4K videos. The other 50%, the device generates an error saying the encoding is not supported. That part works great with about 50% of our MP4 videos.


Our application is used to playback MP4 files using the NVDEC accelerated device on a Jetson AGX.
