Hi everyone !
I currently use Gstreamer for encoding and decoding purpose on a Jetson AGX Xavier board. I frist encoded a bunch of png images into a video in h264 format using the following instruction :
gst-launch-1.0 multifilesrc location="frame%01d.png" index=0 caps="image/png,framerate=20/1" ! pngdec ! videoconvert ! omxh264enc ! mp4mux ! filesink location=png_video.mp4
Now I want to decode this video into png images in order to compare with the input images. I tried this command:
gst-launch-1.0 filesrc location=png_video.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h264parse ! omxh264dec ! pngenc ! multifilesink location="decoded_img/frame01d.png"
But it doesn’t work. The terminal gives me the following error:
ERROR: from element /GstPipeline:pipeline0/Gst0MXH264Dec-omxh264dec:omxh264dec-omxh264dec0: Internal data stream error
I try the same command with jpegenc and it works well. So i don’t understand what is the matter with pngenc.
Is anyone have an anwser ? Or maybe an other solution ? Thanks for helping