h264 video file streaming from imx6 to PC

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

h264 video file streaming from imx6 to PC

4,218 Views
abdulhussain
Contributor III

Hi All,

 

I am trying to stream h264 video .mp4 file from imx6 using gstreamer to PC in vlc player. Only one frame is being displayed in vlc player.

 

 

imx6 side:

 

gst-launch-1.0 -v filesrc location=./test.mp4 ! decodebin ! vpuenc ! queue ! rtph264pay ! udpsink host=224.0.0.1 port=3000 auto-multicast=true multicast-iface=eth0

 

 

PC side:

 

sdp file:

v=0

c=IN IP4 224.0.0.1

m=video 3000 RTP/AVP 96

a=rtpmap:96 H264/90000

a=framerate=30

 

I could able to receive video using below gstreamer pipeline, but facing issue in playing with vlc

 

gst-launch-1.0 udpsrc auto-multicast=true port=3000 caps = 'application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! decodebin ! xvimagesink

 

Can anybody please help me to resolve this issue?

 

 

Thanks,

Abdul Hussain

Original Attachment has been moved to: gstreamer.log.zip

Original Attachment has been moved to: vlc.log.zip

3 Replies

1,922 Views
rosciio
Contributor I

Hi, I use sdp file for h264 like yours in VLC program and it's work well. Now I would like stream a rtp RAW (YUV) stream,

but with my sdp :

v=0

o= 1234 1234 IN IP4 192.168.1.10

s=HDEthTx5

c=IN IP4 IN IP4 224.1.1.1/15

t=0 0

m=video 5000 RTP/AVP 97

a=rtpmap:97 raw/90000

a=fmtp:97 sampling=YCbCr-4:2:2; width=320; height=240; depth=8

a=framerate:25

doesn't work.

can anybody  help me?

thanks

Marco

0 Kudos
Reply

1,922 Views
joanxie
NXP TechSupport
NXP TechSupport

I can successfully streaming the video from camera to PC using rtp .
the steps, on mx6 side, pls use the command "gst-launch mfw_v4lsrc fps-n=30 ! vpuenc codec=6 ! queue ! rtph264pay ! udpsink host=$CLIENT_IP port=5000 -v"
on the pc side, pls use vlc player open the file I send to you , name is h264.sdp.

1,922 Views
abdulhussain
Contributor III

Hi,

Thanks for your reply.

With the attached sdp i could not able to play the stream. I am getting only one frame in vlc player.

Please find the attached vlc log.

gstreamer pipeline:

gst-launch-1.0 -v filesrc location=./test.mp4 ! decodebin ! vpuenc ! queue ! rtph264pay ! udpsink host=192.168.5.1 port=5000

Thanks,

Abdul

0 Kudos
Reply