Video Streaming from Apalis tk1 to Apalis imx6q

Hello,

I am trying to stream web-cam video from tk1 to imx6 using RTP. I found that below pipelines of Gstreame

1. Sender (Apalis tk1)
gst-launch-1.0 -v v4l2src \
! video/x-raw,format=YUY2,width=640,height=480 \
! jpegenc \
! rtpjpegpay \
! udpsink host=127.0.0.1 port=5000

and

2. Receiver (Apalis imx6)
gst-launch-1.0 -v udpsrc port=5000 \
! application/x-rtp, media=video, clock-rate=90000, encoding-name=JPEG, payload=26 \
! rtpjpegdepay \
! jpegdec \
! xvimagesink sync=0

Sender seems okay to convey the video streaming, but in receiver part, it shows

root@apalis-imx6:~#     gst-launch-1.0 -v udpsrc port=5000 \
    >     ! application/x-rtp, media=video, clock-rate=90000, encoding-name=JPEG, payload=26 \
    >     ! rtpjpegdepay \
    >     ! jpegdec \
    >     ! xvimagesink sync=0
    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
    Additional debug info:
    ../../../gst-plugins-base-1.12.2/sys/xvimage/xvimagesink.c(1759): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstXvImageSi:
    Could not open display (null)
    Setting pipeline to NULL ...
    Freeing pipeline ...

I thought I have to use “fbdevsink” instead of “xvimagesink”, because my imx6 OS is Apalis-iMX6_Console-Image. But, still no luck.

I will be so helpful if you could let me know what pipelines do I need to use in receiver (imx6 console)

Thank you in advance.

hi @hkhunkim

Have you done any changes to the Software? Could you update to Bsp 2.8b5 and the newest Jetpack Image on TK1 and check if this works.

Best regards,
Jaski

After updating bsp 2.8b5 still does not work… But, I found that

Sender

gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,framerate=\(fraction\)30/1 ! videoconvert ! jpegenc ! udpsink host=10.1.10.2 port=5000

Receiver

gst-launch-1.0 -v udpsrc port=5000 ! jpegdec ! videoconvert ! fbdevsink sync=false

This above pipeline might work, but in sender (TK1), it says

Additional debug info:
gstmultiudpsink.c(607): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstUDPSink:udpsi:
Reason: Error sending message: Network is unreachable
WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Error sending UDP packet

Would you let me know how to set up ethernet network inbetween two boards?

I have been used

[Sender]
ip link set eth1 up (Jectpack does not insmod eth0 I think)
ip addr add 10.1.10.5/24 broadcast 10.1.10.255 dev eth1
ip route add default via 10.1.10.1

[Receiver]
ip link set eth0 up
ip addr add 10.1.10.2/24 broadcast 10.1.10.255 dev eth0
ip route add default via 10.1.10.1

But it doesn’t work.

hi @hkhunkim: We will try to reproduce this issue on our side.
There are just few questions: What is your application? Are you trying to show the stream on Apalis iMX6 on a display or just saving the stream to harddisk.

Best regards,
Jaski