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 : http://down.52itv.cn/1/yunnan.ts

Transcoding stream : http://down.52itv.cn/1/out.ts

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!

Hi,
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

https://docs.nvidia.com/jetson/l4t/index.html#page/Tegra %2520Linux%2520Driver%2520Package%2520Development%2520Guide%2 Fmultimedia.html%23wwpID0E0JB0HA

Decoded out of the video stream is also picture jitter!

Hi,
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:


command:
./ffmpeg_g -c:v h264_nvmpi -i http://192.168.8.117:9981/stream/channelnumber/4 -c:v h264_nvmpi -b:v 1000k -bufsize 1800k -c:a aac -ac 2 -b:a 128k -muxrate 1800k -f mpegts test.ts

Thanks

Kind Regards

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

Hi

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 .

Thanks

Kind Regards