i.MX27 ADS Board Video GST Video Streaming

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

i.MX27 ADS Board Video GST Video Streaming

i.MX27 ADS Board Video GST Video Streaming

Video Streaming over Ethernet


This section shows how to stream a video over Ethernet using UDP and RTP. Be sure to have the newest gst-plugin-good installed to ensure the best streaming quality.

Define the environment variable HOST with the ip address of the receiver machine (that one that will show the video).

$ export HOST=XX.XX.XX.XX 

Do you know how to get caps? i.MX 27 Video GST Caps

H264 (MX->PC)


in i.MX27:

gst-launch-0.10 -v mfw_v4lsrc capture-width=640 capture-height=480 ! mfw_vpuencoder width=640 height=480  / 
    codec-type=std_avc ! rtph264pay ! udpsink host=$HOST port=5000

in PC:

gst-launch-0.10 -v --gst-debug=2 udpsrc port=5000 / 
  caps ="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, / 
  profile-level-id=(string)42001e, sprop-parameter-sets=(string)Z0IAHqaAoD2Q, payload=(int)96, / 
  ssrc=(guint)3296222373, clock-base=(guint)2921390826, seqnum-base=(guint)35161" ! / 
  rtph264depay  ! ffdec_h264 ! autovideosink

MPEG4 (MX->PC)


in i.MX27

gst-launch-0.10 -v mfw_v4lsrc capture-width=352 capture-height=288 ! mfw_vpuencoder width=352 height=255 bitrate=64 codec-type=std_mpeg4 ! rtpmp4vpay send-config=true / 
! udpsink host=10.29.244.32 port=5000

Set send-config to true to send configuration with the video. Ensures better deconding

PC

gst-launch-0.10 -v --gst-debug=2 udpsrc port=5000 caps ="application/x-rtp, media=(string)video, clock-rate=(int)90000, / 
encoding-name=(string)MP4V-ES, profile-level-id=(string)2, config=(string)000001b002000001b59113000001000000012000c888800f50b042414103, / 
payload=(int)96, ssrc=(guint)4006671474, clock-base=(guint)3714140954, seqnum-base=(guint)29742" / 
! rtpmp4vdepay ! ffdec_mpeg4 ! autovideosink

MPEG4 (MX->MX)


Sender

gst-launch-0.10 -v mfw_v4lsrc capture-width=640 capture-height=480 ! mfw_vpuencoder width=640 height=480  codec-type=std_mpeg4 ! rtpmp4vpay send-config=true ! udpsink host=$HOST port=5000 

Receiver

gst-launch-0.10 -v udpsrc port=5000 caps= "application/x-rtp, media=(string)video, clock-rate=(int)90000, / 
encoding-name=(string)MP4V-ES, profile-level-id=(string)4, config=(string)000001b004000001b59113000001000000012000c888800f514043c14103, / 
payload=(int)96, ssrc=(guint)907905085, clock-base=(guint)2029414707, seqnum-base=(guint)22207" ! rtpmp4vdepay ! / 
mfw_vpudecoder codec-type= std_mpeg4 min_latency=true ! mfw_v4lsink sync=false

  Setting min_latency true gives the better latency for the streaming

H264 (MX->MX)

Sender

gst-launch-0.10 -v mfw_v4lsrc capture-width=640 capture-height=480 ! mfw_vpuencoder width=640 height=480  codec-type=std_avc ! rtph264pay ! udpsink host=10.29.240.51 port=5000 

Receiver

gst-launch-0.10 -v udpsrc port=5000 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000" ! rtph264depay ! mfw_vpudecodr codec-type=std_avc ! mfw_v4lsink sync=false


Labels (1)
Tags (2)
Comments

Hello,

I am looking to go to the i.mx6 processor from TI processors.  Could you tell me what kind of latency you are experiencing on your MX board with decoding? I am trying to get an idea of what I might expect from the gstreamer elements provided by Freescale.

Thanks

Tim

%3CLINGO-SUB%20id%3D%22lingo-sub-1102886%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX27%20ADS%20Board%20Video%20GST%20Video%20Streaming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102886%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-380552499%22%20id%3D%22toc-hId-380552499%22%20id%3D%22toc-hId-1297696143%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EVideo%20Streaming%20over%20Ethernet%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20section%20shows%20how%20to%20stream%20a%20video%20over%20Ethernet%20using%20UDP%20and%20RTP.%20Be%20sure%20to%20have%20the%20newest%20gst-plugin-good%20installed%20to%20ensure%20the%20best%20streaming%20quality.%3C%2FP%3E%3CP%3EDefine%20the%20environment%20variable%20HOST%20with%20the%20ip%20address%20of%20the%20receiver%20machine%20(that%20one%20that%20will%20show%20the%20video).%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20export%20HOST%3DXX.XX.XX.XX%20%3C%2FPRE%3E%3CP%3EDo%20you%20know%20how%20to%20get%20caps%3F%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-1560%22%20target%3D%22_blank%22%3Ei.MX%2027%20Video%20GST%20Caps%3C%2FA%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1071113973%22%20id%3D%22toc-hId-1071113973%22%20id%3D%22toc-hId-1988257617%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EH264%20(MX-%26gt%3BPC)%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ein%20i.MX27%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20mfw_v4lsrc%20capture-width%3D640%20capture-height%3D480%20!%20mfw_vpuencoder%20width%3D640%20height%3D480%26nbsp%3B%20%2F%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20codec-type%3Dstd_avc%20!%20rtph264pay%20!%20udpsink%20host%3D%24HOST%20port%3D5000%0A%3C%2FPRE%3E%3CP%3Ein%20PC%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20--gst-debug%3D2%20udpsrc%20port%3D5000%20%2F%20%0A%26nbsp%3B%20caps%20%3D%22application%2Fx-rtp%2C%20media%3D(string)video%2C%20clock-rate%3D(int)90000%2C%20encoding-name%3D(string)H264%2C%20%2F%20%0A%26nbsp%3B%20profile-level-id%3D(string)42001e%2C%20sprop-parameter-sets%3D(string)Z0IAHqaAoD2Q%2C%20payload%3D(int)96%2C%20%2F%20%0A%26nbsp%3B%20ssrc%3D(guint)3296222373%2C%20clock-base%3D(guint)2921390826%2C%20seqnum-base%3D(guint)35161%22%20!%20%2F%20%0A%26nbsp%3B%20rtph264depay%26nbsp%3B%20!%20ffdec_h264%20!%20autovideosink%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId--736340490%22%20id%3D%22toc-hId--736340490%22%20id%3D%22toc-hId-180803154%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EMPEG4%20(MX-%26gt%3BPC)%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ein%20i.MX27%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20mfw_v4lsrc%20capture-width%3D352%20capture-height%3D288%20!%20mfw_vpuencoder%20width%3D352%20height%3D255%20bitrate%3D64%20codec-type%3Dstd_mpeg4%20!%20rtpmp4vpay%20send-config%3Dtrue%20%2F%20%0A!%20udpsink%20host%3D10.29.244.32%20port%3D5000%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ddffdd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22tip%22%3ESet%20send-config%20to%20true%20to%20send%20configuration%20with%20the%20video.%20Ensures%20better%20deconding%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3EPC%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20--gst-debug%3D2%20udpsrc%20port%3D5000%20caps%20%3D%22application%2Fx-rtp%2C%20media%3D(string)video%2C%20clock-rate%3D(int)90000%2C%20%2F%20%0Aencoding-name%3D(string)MP4V-ES%2C%20profile-level-id%3D(string)2%2C%20config%3D(string)000001b002000001b59113000001000000012000c888800f50b042414103%2C%20%2F%20%0Apayload%3D(int)96%2C%20ssrc%3D(guint)4006671474%2C%20clock-base%3D(guint)3714140954%2C%20seqnum-base%3D(guint)29742%22%20%2F%20%0A!%20rtpmp4vdepay%20!%20ffdec_mpeg4%20!%20autovideosink%0A%3C%2FPRE%3E%3CH2%20id%3D%22toc-hId-1751172343%22%20id%3D%22toc-hId-1751172343%22%20id%3D%22toc-hId--1626651309%22%3E%3C%2FH2%3E%3CH2%20id%3D%22toc-hId--56282120%22%20id%3D%22toc-hId--56282120%22%20id%3D%22toc-hId-860861524%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EMPEG4%20(MX-%26gt%3BMX)%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESender%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20mfw_v4lsrc%20capture-width%3D640%20capture-height%3D480%20!%20mfw_vpuencoder%20width%3D640%20height%3D480%26nbsp%3B%20codec-type%3Dstd_mpeg4%20!%20rtpmp4vpay%20send-config%3Dtrue%20!%20udpsink%20host%3D%24HOST%20port%3D5000%20%3C%2FPRE%3E%3CP%3EReceiver%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20udpsrc%20port%3D5000%20caps%3D%20%22application%2Fx-rtp%2C%20media%3D(string)video%2C%20clock-rate%3D(int)90000%2C%20%2F%20%0Aencoding-name%3D(string)MP4V-ES%2C%20profile-level-id%3D(string)4%2C%20config%3D(string)000001b004000001b59113000001000000012000c888800f514043c14103%2C%20%2F%20%0Apayload%3D(int)96%2C%20ssrc%3D(guint)907905085%2C%20clock-base%3D(guint)2029414707%2C%20seqnum-base%3D(guint)22207%22%20!%20rtpmp4vdepay%20!%20%2F%20%0Amfw_vpudecoder%20codec-type%3D%20std_mpeg4%20min_latency%3Dtrue%20!%20mfw_v4lsink%20sync%3Dfalse%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ddffdd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22tip%22%3E%26nbsp%3B%20Setting%20min_latency%20true%20gives%20the%20better%20latency%20for%20the%20streaming%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId--1863736583%22%20id%3D%22toc-hId--1863736583%22%20id%3D%22toc-hId--946592939%22%3E%3C%2FH2%3E%3CH2%20id%3D%22toc-hId-623776250%22%20id%3D%22toc-hId-623776250%22%20id%3D%22toc-hId-1540919894%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EH264%20(MX-%26gt%3BMX)%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%3C%2FP%3E%3CP%3ESender%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20mfw_v4lsrc%20capture-width%3D640%20capture-height%3D480%20!%20mfw_vpuencoder%20width%3D640%20height%3D480%26nbsp%3B%20codec-type%3Dstd_avc%20!%20rtph264pay%20!%20udpsink%20host%3D10.29.240.51%20port%3D5000%20%3C%2FPRE%3E%3CP%3EReceiver%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20-v%20udpsrc%20port%3D5000%20caps%3D%22application%2Fx-rtp%2C%20media%3D(string)video%2C%20clock-rate%3D(int)90000%22%20!%20rtph264depay%20!%20mfw_vpudecodr%20codec-type%3Dstd_avc%20!%20mfw_v4lsink%20sync%3Dfalse%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1102886%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX2x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1102887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i.MX27%20ADS%20Board%20Video%20GST%20Video%20Streaming%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1102887%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EI%20am%20looking%20to%20go%20to%20the%20i.mx6%20processor%20from%20TI%20processors.%26nbsp%3B%20Could%20you%20tell%20me%20what%20kind%20of%20latency%20you%20are%20experiencing%20on%20your%20MX%20board%20with%20decoding%3F%20I%20am%20trying%20to%20get%20an%20idea%20of%20what%20I%20might%20expect%20from%20the%20gstreamer%20elements%20provided%20by%20Freescale.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ETim%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 01:47 AM
Updated by: