Splitting videos to frames and hardware decoding


I’ve got a GStreamer pipeline for splitting h264 videos to jpeg frames. I’ve been using avdec_h264 for decoding but I thought I might get better performance with hardware decoding so I tried to switch avdec_h264 to omxh264dec. This didn’t work as I only got the “pipeline doesn’t want to preroll” error. Is there something more that should be taken into account with omxh264dec and is it even likely that it would yield a noticeable performance gain?

This is the pipeline with avdec_h264:
filesrc ! qtdemux ! avdec_h264 ! nvjpegenc ! multifilesink

Thanks in advance

Need to add nvvidconv to make it working, below pipline is working on my side.

filesrc ! qtdemux ! h264parse ! omxh264dec ! nvvidconv ! nvjpegenc ! multifilesink