SOLVED CS-MIPI-IMX307 camera Gstreamer UDP streaming error!
-
Hello~
I want to use UDP streaming.
This is my gstreamer command... but not working. error!!<Server Side>
veye_raspivid -md 0 -p '0,0,1920,1080' -b 4000000 -t 0 -o -
| gst-launch-1.0 fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! udpsink host=192.168.0.3 port=5321 sync=false<Client Side>
C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0 -v udpsrc port=5321 ! gdpdepay ! rtph264depay ! avdec_h264 ! autovideosink sync=false async=false----- Error Msgs...
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"(GstD3D11Device)\ d3d11device3", adapter=(uint)0, device-id=(uint)8066, vendor-id=(uint)4318, hardware=(boolean)true, description=(string)"NVIDIA\ GeForce\ GTX\ 1650";
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstGDPDepay:gdpdepay0: Could not decode stream.
Additional debug info:
../gst/gdp/gstgdpdepay.c(490): gst_gdp_depay_chain (): /GstPipeline:pipeline0/GstGDPDepay:gdpdepay0:
Received a buffer without first receiving caps
Execution ended after 0:00:00.023117200
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data stream error.
Setting pipeline to NULL ...
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline ...Pls. Help me....
-
@maponarooo
Hi,Please try the following cmd which works fine here on my stuffs.- veye_raspivid (stream over UDP using gstreamer)
PC side,using gstreamer(Powershell recommended)
gst-launch-1.0 -v udpsrc port=5321 ! gdpdepay ! rtph264depay ! avdec_h264 ! autovideosink sync=false
RPI side
./veye_raspivid -b 4000000 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! udpsink host=x.x.x.x port=5000 sync=false
H.264 encoding on bitrate 4Mbps.
x.x.x.x is HOST PC IP address.You need to run the pc-side program first and then run the Raspberry Pi-side program.
- veye_raspivid (stream over UDP using gstreamer)
-
@maponarooo
Hi,Please try the following cmd which works fine here on my stuffs.- veye_raspivid (stream over UDP using gstreamer)
PC side,using gstreamer(Powershell recommended)
gst-launch-1.0 -v udpsrc port=5321 ! gdpdepay ! rtph264depay ! avdec_h264 ! autovideosink sync=false
RPI side
./veye_raspivid -b 4000000 -t 0 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! udpsink host=x.x.x.x port=5000 sync=false
H.264 encoding on bitrate 4Mbps.
x.x.x.x is HOST PC IP address.You need to run the pc-side program first and then run the Raspberry Pi-side program.
- veye_raspivid (stream over UDP using gstreamer)
-
@veye_xumm Foolishly I got the server program running first.
I run the client program first, then the server program, and it works fine.
Anyway, thank you.
It helped a lot. -
@maponarooo You are welcome.