I’m currently working on a custom gstreamer pipeline and port it over to python using pygobject. I have been testing different pipeline to get nvjpegdec working and it seems to only work in this particular way.
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! ‘image/jpeg,width=2560,height=720,framerate=60/1 ! videorate ! ‘image/jpeg,framerate=12/1’ ! nvjpegdec ! video/x-raw ! nvvidconv ! video/x-raw(memory:NVMM),format=BGRx ! nvvidconv ! video/x-raw ! appsink
Looking at gst-inspect-1.0 nvjpegdec, it should be able to output ‘video/x-raw,format=BGRx’ without having me to use nvvidconv, however it kept giving me Internal data stream error.
Any help would be appreciated.