Hi all.
I Have a usb camera: MJPG , 1920*1080 , 30fps.
To test it,I got a pipeline,
gst-launch-1.0
v4l2src device=/dev/video2 ! “image/jpeg,width=1920,height=1080,framerate=30/1” ! nvv4l2decoder mjpeg=1 ! \
nvvideoconvert ! “video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080,framerate=30/1” !
nvoverlaysink sync=false
the video frame is abnormal, What‘s wrong.
Hi,
The nvv4l2decoder only supports JPEGs comporessed from YUV420. You may check your source format by following
Hi, DaneLLL
The information for the camera is as bellow, And 1920x1080,15fps is wanted, so we choose MPJG,1920x1080,30fps as the source format.
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : Motion-JPEG
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Index : 1
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2
Size: Discrete 1280x720
Interval: Discrete 0.100s (10.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.040s (25.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.100s (10.000 fps)
Hi,
The JPEGs are compressed from YUYV. The case is not supported in nvv4l2decoder. There is a similar post:
Please refer to the following post of customizing deepstream-app: