I.MX6 SabreSd board ov5640 camera streaming over ethernet

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I.MX6 SabreSd board ov5640 camera streaming over ethernet

Jump to solution
5,326 Views
vidyasagar
Contributor III

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

0 Kudos
Reply
1 Solution
2,369 Views
Yuri
NXP Employee
NXP Employee

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”

https://community.freescale.com/docs/DOC-97781

View solution in original post

0 Kudos
Reply
10 Replies
2,370 Views
Yuri
NXP Employee
NXP Employee

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”

https://community.freescale.com/docs/DOC-97781

0 Kudos
Reply
2,369 Views
vidyasagar
Contributor III

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

0 Kudos
Reply
2,369 Views
Yuri
NXP Employee
NXP Employee

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.

0 Kudos
Reply
2,369 Views
vidyasagar
Contributor III

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

0 Kudos
Reply
2,369 Views
Yuri
NXP Employee
NXP Employee

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.  

2,369 Views
vidyasagar
Contributor III

Hi,

Works fine please suggest me to solve video streaming with audio over Ethernet by any pipeline.

Thanks,

Vidya

0 Kudos
Reply
2,369 Views
vidyasagar
Contributor III

Hi All,

Please suggest me to video and audio streaming over Ethernet as i am able stream video over Ethernet.

Thanks,

Vidya

0 Kudos
Reply
2,369 Views
Yuri
NXP Employee
NXP Employee
0 Kudos
Reply
2,369 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I have never tried that before. I will be interesting to try it out. In will let you know my results.

Best Regards,

Alejandro

0 Kudos
Reply
2,369 Views
vidyasagar
Contributor III

Hi,

Any idea do you have video streaming over RTP from i.MX6 sabreSD board to client PC.

Thanks,

Vidya

0 Kudos
Reply