Part 1
요약·해설
Ethernet wiring, TCP server와 GStreamer receive pipeline을 설명합니다.
RGBP frames
TCP port 5000
GStreamer
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
110B73300BFA1D7BBA102399F9DC35D1AAD86C2115063A7C00586D9761900501
.. zephyr:code-sample:: video-tcpserversink
:name: Video TCP server sink
:relevant-api: video_interface bsd_sockets
Capture video frames and send them over the network to a TCP client.
Description
***********
This sample application gets frames from a video capture device and sends
them over the network to the connected TCP client.
Requirements
************
This samples requires a video capture device and network support.
- :ref:`mimxrt1064_evk`
- `MT9M114 camera module`_
Wiring
******
On :ref:`mimxrt1064_evk`, The MT9M114 camera module should be plugged in the
J35 camera connector. A USB cable should be connected from a host to the micro
USB debug connector (J41) in order to get console output via the freelink
interface. Ethernet cable must be connected to RJ45 connector.
Building and Running
********************
For :ref:`mimxrt1064_evk`, the sample can be built with the following command.
If a mt9m114 camera shield is missing, video software generator will be used instead.
.. zephyr-app-commands::
:zephyr-app: samples/subsys/video/tcpserversink
:board: mimxrt1064_evk
:shield: dvp_fpc24_mt9m114
:goals: build
:compact:
Sample Output
=============
.. code-block:: console
Video device detected, format: RGBP 480x272
TCP: Waiting for client...
Then from a peer on the same network you can connect and grab frames.
Example with gstreamer:
.. code-block:: console
gst-launch-1.0 tcpclientsrc host=192.0.2.1 port=5000 \
! videoparse format=rgb16 width=480 height=272 \
! queue \
! videoconvert \
! fpsdisplaysink sync=false
For video software generator, the default resolution should be width=320 and height=160.
References
**********
.. _MT9M114 camera module: https://www.onsemi.com/PowerSolutions/product.do?id=MT9M114
Part 3
한국어 전문 번역
설명
Video capture device에서 frame을 받아 network를 통해 연결된 TCP client로 전송하는 sample application입니다.
요구 사항
Video capture device와 network 지원이 필요합니다. 공식 구성은 mimxrt1064_evk와 MT9M114 camera module을 사용합니다.
배선
mimxrt1064_evk의 J35 camera connector에 MT9M114 module을 꽂습니다. Freelink console output용으로 host와 micro USB debug connector J41을 연결하고, network용 Ethernet cable을 RJ45 connector에 연결합니다.
빌드 및 실행
다음 command로 mimxrt1064_evk용 sample을 build합니다. MT9M114 camera shield가 없으면 video software generator가 대신 사용됩니다.
west build -b mimxrt1064_evk --shield dvp_fpc24_mt9m114 samples/subsys/video/tcpserversink
샘플 출력
Application은 RGBP 480x272 video device를 감지하고 TCP client 연결을 기다립니다.
Video device detected, format: RGBP 480x272
TCP: Waiting for client...
같은 network의 peer에서 TCP server에 연결해 frame을 받을 수 있습니다. 다음 GStreamer pipeline은 192.0.2.1:5000에 연결하고 RGB16 480x272 frame을 parse·queue·convert해 FPS display sink로 보냅니다.
gst-launch-1.0 tcpclientsrc host=192.0.2.1 port=5000 \
! videoparse format=rgb16 width=480 height=272 \
! queue \
! videoconvert \
! fpsdisplaysink sync=false
Video software generator를 사용할 때 기본 resolution은 width 320, height 160으로 지정해야 합니다.
참고 자료
Camera sensor 세부 정보는 위 MT9M114 product page를 참고합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.