Hi NVIDIA Community,
I’m currently using NVDEWARPER on a Jetson Orin to create panoramic images from fisheye rtsp input (uniview camera), but I’m encountering significant image quality issues and aliasing compared to the results I achieve with ffmpeg. Below are the details of my setup and the commands I’m using.
ffmpeg Command (from image):
ffmpeg -i input.jpg -vf v360=fisheye:e:ih_fov=180:iv_fov=180:pitch=90 -y output.png
The ffmpeg command yields high-quality dewarped images with minimal aliasing. However, when I attempt a similar process with GStreamer and NVDEWARPER, the results are subpar.
GStreamer Command:
export GST_PLUGIN_PATH=/opt/nvidia/deepstream/deepstream-6.2/lib
gst-launch-1.0 rtspsrc location='rtsp://xxx' ! \
rtph265depay ! \
h265parse ! \
nvv4l2decoder ! \
nvvideoconvert ! "video/x-raw(memory:NVMM),width=3000,height=3000" ! \
videorate ! "video/x-raw(memory:NVMM),framerate=5/1" ! \
nvdewarper config-file=/home/node/storage/fish/1.txt ! \
m.sink_0 nvstreammux name=m width=6000 height=3000 batch-size=1 num-surfaces-per-frame=1 ! \
nvmultistreamtiler ! \
nvvideoconvert ! "video/x-raw(memory:NVMM),width=6000,height=3000" ! \
nvv4l2h265enc ! \
h265parse ! \
mp4mux ! \
filesink location=/dev/shm/output.mp4 -e
Configuration File (1.txt):
# 1=PushBroom, 2=VertRadCyl, 3=Perspective_Perspective,
# 4=FISH_PERSPECTIVE, 5=FISH_FISH, 6=FISH_CYL,
# 7=FISH_EQUIRECT, 8=FISH_PANINI, 9=PERSPECTIVE_EQUIRECT,
# 10=PERSPECTIVE_PANINI, 11=EQUIRECT_CYLINDER, 12=EQUIRECT_EQUIRECT,
# 13=EQUIRECT_FISHEYE, 14=EQUIRECT_PANINI, 15=EQUIRECT_PERSPECTIVE,
# 16=EQUIRECT_PUSHBROOM, 17=EQUIRECT_STEREOGRAPHIC, 18=EQUIRECT_VERTCYLINDER
[property]
output-width=6000
output-height=3000
num-batch-buffers=1
[surface0]
projection-type=7
surface-index=0
width=6000
height=3000
top-angle=90
bottom-angle=-90
pitch=90
yaw=0
roll=0
src-fov=180
Issue:
The dewarped images produced by GStreamer with NVDEWARPER exhibit poor image quality and noticeable aliasing, unlike the smooth results from ffmpeg.
Example Images:
See attached image from gst-nvdewarper vs ffmpeg dewarp
dewarp_images.zip (11.8 MB)
Questions:
- How can I improve the image quality and reduce aliasing in NVDEWARPER?
- Are there specific parameters or configurations I should adjust to match the quality achieved by ffmpeg?
Any suggestions or insights would be greatly appreciated!
Thank you,
Oz