How to deal with the jitter of hard solution picture?

Jetson AGX Xavier 32G

deinterlacing line by line processing anti interleaving hard decoding will cause picture jitter. How to solve this problem?

Original flow :

Transcoding stream :

Execute:./ffmpeg -c:v h264_nvmpi -i ./yunnan.ts -c:v h264_nvmpi -b:v 3M -c:a copy -f mpegts out.ts

Hope to help solve this problem, this problem has been bothering me for a long time!

Please take a look at
Jetson Nano FAQ
Q: Is hardware acceleration enabled in ffmpeg?

ffmpeg uses hard decoding to accelerate decoding! Soft solution will not appear, it is decoding this problem!

FFmpeg installed through NVIDIA is the same problem! The following connection %2520Linux%2520Driver%2520Package%2520Development%2520Guide%2 Fmultimedia.html%23wwpID0E0JB0HA

Decoded out of the video stream is also picture jitter!

Does it happen if you mux into mp4 or mkv? Timestamp information is not touched in hardware decoding stack, so it looks to be an issue in high-level stacks handling timestamps.

We have purchased two devices, both of which have the same problem. Mpegts streaming has this problem! How to solve this problem!

Hi @DaneLLL

I have the same issue, we have tested with TX2 and AGX both the same when using hardware decode and encode at the same time . my ffmpeg is using from here:

./ffmpeg_g -c:v h264_nvmpi -i -c:v h264_nvmpi -b:v 1000k -bufsize 1800k -c:a aac -ac 2 -b:a 128k -muxrate 1800k -f mpegts test.ts


Kind Regards

We would suggest try mp4 or mkv. To see if it is specific to ts.


Thanks for your reply we tested output to mp4 and mkv, both still the same ,and this only happen with the interlacing video , for progressive video works well , so the issue is deinterlacing with hardware acceleration .


Kind Regards

The package is from community contribution. We have a package enabling hardware decoding. Please give it a try.

Hardware accelerated video playback with L4T ffmpeg