Hi.
I’m trying simple web-brwoser(only FF) streaming service on Jetson Xavier with ZED camera.
It works with pure gstreamer pipeline scripts, but it took 100% of CPU on converting,
so I tried Accelrated_Resize function, it worked, but web-browser doesn’t get proper data.
I wonder what is different between two pipelines.
HTML Code (Only FF works)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>gst-stream</title>
</head>
<body>
<video width=320 height=180 autoplay>
<source src="http://192.168.10.102:8080">
</video>
</body>
</html>
Pure Gstreamer Code
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1344,height=376,pixelformat=YUYV -p15
gst-launch-1.0 \
v4l2src device=/dev/video0 \
! videoconvert \
! videoscale \
! video/x-raw, width=320, height=180, format=I420 \
! clockoverlay shaded-background=true font-desc="Sans 38" \
! queue \
! theoraenc \
! oggmux \
! tcpserversink host=0.0.0.0 port=8080 sync=true
Xavier Acceled Code
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1344,height=376,pixelformat=YUYV -p15
gst-launch-1.0 v4l2src device=/dev/video0 \
! "video/x-raw, format=(string)YUY2, width=(int)1344, height=(int)376" \
! nvvidconv left=0 right=672 top=0 bottom=376 \
! "video/x-raw(memory:NVMM), format=(string)I420, width=(int)320, height=(int)180" \
! tcpserversink host=0.0.0.0 port=8080 sync=true
Both pipeline get YUYV(YUY2) stream from ZED, convert to I420, resize, and send.
Both pipeline works, but html webpage only receive first one, the other can’t.(no decoder for the stream)
I’m not sure what’s wrong with 2nd code.
May I take any advice for this problem?
Best regards