jetson tx2: interlaced stream transcoding

I develop video transcoding application. That is scheme: “video stream1” -> ffmpeg (unpack frames) -> NvVideoDecoder -> NvVideoConverter -> NvVideoEncoder -> ffmpeg (pack frames) -> “video stream2”. MM API samples help me.

My app work good if “video stream1” is non-interlaced frames stream.

But with interlaced frames app crash with NvVideoEncoder::qBuffer(struct v4l2_buffer &v4l2_buf, NvBuffer * shared_buffer) call. “shared_buffer” is buffer that filled by NvVideoDecoder.

gdb show this:

Segmentation fault.
[Switching to Thread 0x7fa619a1c0 (LWP 668)]
0x0000007fb72bccf8 in NvDdkVicExecuteSync () from /usr/lib/aarch64-linux-gnu/tegra/

Help, please, check this error and debug.

we don’t support interlaced streams. You need to use SW encoder/decoder for interlaced stream.

hi, what is “SW encoder/decoder” ?

Software encoder/decoder such as x264 or JM.