Hi,I have used nvv4l2decoder and nvjpegenc to encode rtsp or rtmp h264 stream to jpeg,but the all of the jpeg image is green.
The environment is TX2 nvcr.io/nvidia/l4t-base:r32.4.4 JetPack 4.3
The pipeline is easy and just like this:
But when replacing nvv4l2decoder with avdec_h264 or replacing videosrc with local video file, the jpeg is normal.
So how can i solve this problem and decode h264 and encode jpeg with GPU?
It seems the pipeline dosen’t work with the h264parse plugin, there is no data in the last plugin. Using the pipeline without h264parse i can see video preview
R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t186ref, EABI: aarch64, DATE: Fri Jun 26 04:34:27 UTC 2020
Exactly I tyied use pipeline in the envirment of jetpack 4.3 in linux and in the container nvcr.io/nvidia/l4t-base:r32.4.4, both of its have this problem.
It seems that the problem will appear when the plugin nvv4l2decoder link nvjpegenc. gst-launch-1.0 rtspsrc location=rtsp://xxx ! rtph264depay ! nvv4l2decoder ! nvvidconv ! tee name=thread ! queue ! filesink location=video.raw thread. ! jpegenc ! multifilesink location='%03d.nvjpegdec.jpeg'
The jpeg is OK.