nvcodec: video plays quickly after transcoding with nvh264dec decoder
Hello. If the nvh264dec decoder was used during video transcoding, the resulting video plays quickly. If you use avdec_h264 instead, the resulting video is played back at normal speed. I also noticed that after nvh264dec decoder caps has interlace-mode = mixed, but after avdec_h264 it has interlace-mode = interleaved, but not shure if this is the casue of problem.
Gstreamer version: 1.18.2 (built from source with gst-build) Pipeline:
filesrc location=nvh264dec-bad.ts ! tsdemux name=dem mpegtsmux name=mux \
dem. ! queue ! video/x-h264 ! h264parse ! nvh264dec ! \
nvh264enc preset=hp ! video/x-h264,profile=high ! h264parse config-interval=-1 ! mux. \
mux. ! filesink location=out.ts
Video: nvh264dec-bad.ts