H264 Network Streaming Problem

  • I am working on a custom board based on Apalis-Imx6 eval-board with using “Apalis_iMX6_LinuxImage-2.6.1”.
  • With default built by using commands below, I could not play dumped file with anyone of VLC or mplayer.

Imx6 side: “#gst-launch-1.0 -v imxv4l2src device=/dev/video0 ! vpuenc_h264 ! h264parse ! filesink location=Vid.h264”

PC(Ubuntu) side: “#mplayer -fps 25 Vid.h264”

After that I could manage to play video with these commands:

Imx6 side: “#gst-launch-1.0 -v imxv4l2src device=/dev/video0 ! imxvpuenc_h264 ! h264parse ! filesink location=Vid.h264”

PC(Ubuntu) side: “#mplayer -fps 25 Vid.h264”

  • Now my problem is, I can not stream video over network. I am running this pipeline:

#gst-launch-1.0 -v imxv4l2src device=/dev/video0 ! imxvpuenc_h264 ! h264parse ! rtph264pay ! udpsink host=$CLIENT_IP port=5000”

mplayer with this command “mplayer udp://CLIENT_IP:5000 -framedrop” gives “Stream not seekable”.

VLC with these commands “vlc -vvv udp://CLIENT_IP”, “vlc -vvv rtp://CLIENT_IP” did not respond. I also used sdp files, but result is still same.

  • Note1: I am trying to stream a SD(720x576@25) video.
  • Note2: Contents of sdp files are:
    v=0
    o=- 1223457093460663 1 IN IP4 127.0.0.1
    s=RTSP Server
    i=Codec00
    t=0 0
    a=tool:LIVE555 Streaming Media v2008.07.24
    a=type broadcast
    b=AS:21
    a=control:*
    a=source-filter: incl IN IP4 127.0.0.1
    a=rtcp-unicast: reflection
    m=video 5000 RTP/AVP 96
    a=rtpmap:96 H264/90000
    a=framerate=25
    a=fmtp:96 profile-level-id=42001e; sprop-parameter-sets=Z0JAHqaAoD2QAA\=\=\,aM4wpIAA;

And

v=0
o=IN IP4 127.0.0.1
c=IN IP4 127.0.0.1
s=iMX6 GStreamer H264
m=video 5000 RTP/AVP96
a=fmp:96 media=video; clock-rate=90000; enacoding-name=H264
a=framerate=25

Please have a look at NXP’s i.MX Linux User’s Guide which may have some more usage information for multimedia use cases. Their community may also have more specific answers in the multimedia domain.