I’m trying to decode jpeg to for a realtime project. RGB data is need, but now only got I420. Convert I420 to RGB spent need too much extra time.
gst-launch-1.0 filesrc location=1.jpg ! nvjpegdec ! video/x-raw,format=I420 ! nvjpegenc ! filesink location=1-1.jpg
gst-launch-1.0 filesrc location=1.jpg ! nvjpegdec ! video/x-raw,format=RGB ! nvjpegenc ! filesink location=1-1.jpg
Test1 succ, but Test2 was failed with:
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2865): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn’t want to preroll.
It sames nvjpegdec can’t decode jpeg to RGB format? Or some mistake?
Any replies will be appriciated!