Hello,
Q1) I want to get stream from my OV5640 MIPI camera using VLC player.
I've installed the vlc player and want steps to get streaming.
And I was able to stream the camera using gstreamer and mplayer applications but I need to do the same with VLC player too.
Q2) Also I need to stream from imx6 board to PC.
Q3) Want to run the below gstreamer and referred the below link and doesn't help.
gst-launch mfw_v4lsrc capture-mode=5 fps-n=30 ! mfw_v4lsink
get camera feed from mipi csi2 camera using gstreamer
Can you please help me on this ?
解決済! 解決策の投稿を見る。
Thanks Igor.
Now I'm able to stream OV5640 MIPI camera on my PC using VLC.
Run the below command in imx6:
gst-launch-1.0 -v imxv4l2videosrc device=/dev/video3 ! imxipuvideotransform ! imxvpuenc_h264 bitrate=1024 ! rtph264pay ! udpsink host=192.168.2.73 port=5000
In PC, create imx6.sdp file and put the following lines and run "vlc --no-audio imx6.sdp"
v=0
s=GStreamer
m=video 5000 RTP/AVP 96
c=IN IP4 127.0.0.1
a=type:broadcast
a=rtpmap:96 H264/90000
a=fmtp:96
I also referred the below link.
Hello,
I have followed the steps as mentioned in the answer here to do video streaming from imx6 to a PC however I get the following error :
root@b2qt-nitrogen6x:~# gst-launch-1.0 -v imxv4l2videosrc device=/dev/video1 ! imxipuvideotransform ! imxvpuenc_h264 bitrate=1024 ! rtph264pay ! udpsink host=192.168.1.11 port=5000
Setting pipeline to PAUSED ...
mxc_cam_select_input: input(1) CSI MEM
ov5640_download_autofocus(mipi): Downloaded firmware successfully: 0
ov5640_set_virtual_channel: virtual channel=2
ERROR: unrecognized std! 0 (PAL=ff, NTSC=b000
ov5640_set_virtual_channel: virtual channel=2
ERROR: v4l2 capture: unsupported ioctrl!
/GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)640\,\ height\=\(int\)480\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstImxIpuVideoTransform:imxipuvideotransform0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)640\,\ height\=\(int\)480\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
Pipeline is live and does not need PREROLL ...
[INFO] ringBufferEnable 0, chromaInterleave 0, mapType 0, linear2TiledEnable 1
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstImxVpuEncoderH264:imxvpuencoderh264-0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)640\,\ height\=\(int\)480\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstImxIpuVideoTransform:imxipuvideotransform0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)640\,\ height\=\(int\)480\,\ interlace-mode\=\(string\)progressive\,\ framerate\=\(fraction\)30/1\,\ pixel-aspect-ratio\=\(fraction\)1/1"
/GstPipeline:pipeline0/GstImxVpuEncoderH264:imxvpuencoderh264-0.GstPad:src: caps = "video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ alignment\=\(string\)au\,\ parsed\=\(boolean\)true\,\ width\=\(int\)640\,\ height\=\(int\)480\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps = "video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ alignment\=\(string\)au\,\ parsed\=\(boolean\)true\,\ width\=\(int\)640\,\ height\=\(int\)480\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps = "application/x-rtp\,\ media\=\(string\)video\,\ payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ ssrc\=\(uint\)131424426\,\ timestamp-offset\=\(uint\)681934905\,\ seqnum-offset\=\(uint\)12246"
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = "application/x-rtp\,\ media\=\(string\)video\,\ payload\=\(int\)96\,\ clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ ssrc\=\(uint\)131424426\,\ timestamp-offset\=\(uint\)681934905\,\ seqnum-offset\=\(uint\)12246"
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps = "application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ sprop-parameter-sets\=\(string\)\"Z0JAHqaAoD2QAA\\\=\\\=\\\,aM48gAA\\\=\"\,\ payload\=\(int\)96\,\ seqnum-offset\=\(uint\)12246\,\ timestamp-offset\=\(uint\)681934905\,\ ssrc\=\(uint\)131424426"
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = "application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\ encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ sprop-parameter-sets\=\(string\)\"Z0JAHqaAoD2QAA\\\=\\\=\\\,aM48gAA\\\=\"\,\ payload\=\(int\)96\,\ seqnum-offset\=\(uint\)12246\,\ timestamp-offset\=\(uint\)681934905\,\ ssrc\=\(uint\)131424426"
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 681943277
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 12246
WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Error sending UDP packets
Additional debug info:
../../../gst-plugins-good-1.6.3/gst/udp/gstmultiudpsink.c(722): gst_multiudpsink_send_messages (): /GstPipeline:pipeline0/GstUDPSink:udpsink0:
client 192.168.1.11:5000, reason: Error sending message: Network is unreachable
WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Error sending UDP packets
Could you please let me know where I am going wrong.
client 192.168.1.11:5000, reason: Error sending message: Network is unreachable
Make sure that you are connected to proper network.
Hi Titus
one can check examples on
iMX6-to-PC h.264 Video Streaming
GStreamer camera streaming on i.MX6 - Boundary Devices
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks Igor.
Now I'm able to stream OV5640 MIPI camera on my PC using VLC.
Run the below command in imx6:
gst-launch-1.0 -v imxv4l2videosrc device=/dev/video3 ! imxipuvideotransform ! imxvpuenc_h264 bitrate=1024 ! rtph264pay ! udpsink host=192.168.2.73 port=5000
In PC, create imx6.sdp file and put the following lines and run "vlc --no-audio imx6.sdp"
v=0
s=GStreamer
m=video 5000 RTP/AVP 96
c=IN IP4 127.0.0.1
a=type:broadcast
a=rtpmap:96 H264/90000
a=fmtp:96
I also referred the below link.