Tuesday, June 26, 2018

Streaming video : file -> gstreamer -> vlc

tested on  Ubuntu:

on server:
gst-launch filesrc location=file.mp4 ! decodebin2 name=dec ! queue ! ffmpegcolorspace ! ffenc_mpeg4 ! rtpmp4vpay send-config=true ! udpsink host=<ip_of_VLC_PC> port=5000

on client create file test.sdp with contents:

v=0
m=video 5000 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 MP4V-ES/90000


and open it VLC..

No comments:

Post a Comment