Hi All,
I am working on i.MX6 sabre SD board with kernel version 3.0.35, want to ov5640 camera streaming Ethernet, BT or Wi-Fi on Linux BSP.
I am able to stream on LCD by command "gst-launch mfw_v4lsrc device=/dev/video0 ! mfw_v4lsink"
and also followed the link http://boundarydevices.com/gstreamer-camera-streaming-on-i-mx6/
for streaming aover ethernet but i am able not able to get streaming.
My ethernet work able to ping
ping 192.168.1.21
PING 192.168.1.21 (192.168.1.21): 56 data bytes
64 bytes from 192.168.1.21: seq=0 ttl=128 time=3.276 ms
64 bytes from 192.168.1.21: seq=1 ttl=128 time=0.331 ms
64 bytes from 192.168.1.21: seq=2 ttl=128 time=0.363 ms
--- 192.168.1.21 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.331/1.323/3.276 ms
root@freescale /scripts$
How i will get ov5640 camera streaming over Ethernet, please give me suggestion.
Thanks,
Vidya
已解决! 转到解答。
1.
I managed to get working the following configuration under L3.0.35_4.1.0 Linux (demo, oneiric FileSystem) :
On i.MX6 SDP target (as an example) :
$ ifconfig eth8 192.168.1.114
$ route add default gw 192.168.1.1 # local server
$ echo nameserver 8.8.8.8 >> /etc/resolv.conf # if I-net is needed
$ modprobe ov5642_camera
$ modprobe mxc_v4l2_capture
$ gst-launch mfw_v4lsrc capture-mode=4 ! vpuenc codec=12 ! tcpserversink host=192.168.1.113 port=5000
(My Windows PC host IP=192.168.1.113)
On Windows PC, under VLC, configure source as tcp://192.168.1.114:5000
2.
The following may be useful :
"GStreamer i.MX6 Pipelines"
https://community.freescale.com/docs/DOC-93387
“GStreamer i.MX6 Camera Streaming”
https://community.freescale.com/docs/DOC-93804
“GStreamer RTP Streaming”
https://community.freescale.com/docs/DOC-94646
“GStreamer UDP Streaming”
1.
I managed to get working the following configuration under L3.0.35_4.1.0 Linux (demo, oneiric FileSystem) :
On i.MX6 SDP target (as an example) :
$ ifconfig eth8 192.168.1.114
$ route add default gw 192.168.1.1 # local server
$ echo nameserver 8.8.8.8 >> /etc/resolv.conf # if I-net is needed
$ modprobe ov5642_camera
$ modprobe mxc_v4l2_capture
$ gst-launch mfw_v4lsrc capture-mode=4 ! vpuenc codec=12 ! tcpserversink host=192.168.1.113 port=5000
(My Windows PC host IP=192.168.1.113)
On Windows PC, under VLC, configure source as tcp://192.168.1.114:5000
2.
The following may be useful :
"GStreamer i.MX6 Pipelines"
https://community.freescale.com/docs/DOC-93387
“GStreamer i.MX6 Camera Streaming”
https://community.freescale.com/docs/DOC-93804
“GStreamer RTP Streaming”
https://community.freescale.com/docs/DOC-94646
“GStreamer UDP Streaming”
Hi Muhin,
Thanks for valuable input now got streaming over RTP as followed your post.
One question want ask to you without vlc, camera streaming could possible or not ?
Second through gst sender command gst-launch mfw_v4lsrc capture-mode=4 ! vpuenc codec=12 ! tcpserversink host=192.168.1.113 port=5000
could send audio data also ?
Thanks,
Vidya
1.
Without VLC :
on other side, as an example :
gstlaunch tcpclientsrc host=192.168.1.114 port=5000 ! vpudec ! autovideosink
2.
As for audio - did not try yet myself.
The next thread GStreamer RTP Streaming states about audio too.
Hi Muhin,
Whenever i run gst-launch tcpclientsrc host=192.168.1.114 port=5000 ! vpudec ! autovideosink
client ubuntu PC through WARNING: erroneous pipeline: no element "vpudec"
because vpudec not installable package in ubuntu12.04 so how could stream without VLC.
If you have any idea video streaming with audio please suggest me.
I am able to record audio file arecord -f dat -d 10 -D hw:0,0 test.wav
and playback through
aplay -f dat test.wav
Please suggest me combined pipeline to get audio and video streaming over Ethernet.
Thanks,
Vidya
This is correct - no element "vpudec" - since vpudec is used with i.MX6 VPU ; for PC case
we can apply to a standard software decoder, which - of course - should correspond other side encoder.
Please use "gst-inspect" command to review what decoders are included in Your Ubuntu on PC.