gstreamer で mp4 を
blog
2020-3-3 1:08 JST

gstreamer をつかって手元にある MP4 をマルチキャストで流してみる。受け手は VLC。

流す方はこんな感じ。

gstの起動
gst-launch-1.0 filesrc location="./tennis.mp4" 
    ! decodebin ! x264enc 
    ! rtph264pay  config-interval=10 pt=96 
    ! udpsink  host=224.1.1.1 port=5000

VLC には設定が必要だった。

test.sdp
v=0
m=video 5000 RTP/AVP 96
c=IN IP4 224.1.1.1
a=rtpmap:96 H264/90000

結果はこんな感じ。YOLOv3 で処理した映像を流すことが出来た。