notedit / media-server-go-demo

webrtc media server go demo
MIT License
212 stars 64 forks source link

send raw-rtp-input use rtp #34

Open clarencetw opened 4 years ago

clarencetw commented 4 years ago

Is it possible to send rtp to sample raw-rtp-input using ffmpeg

ffmpeg -f lavfi -i testsrc=size=640x480:rate=30 -vcodec libx264 -f rtp rtp://127.0.0.1:5004

I think can change this https://github.com/notedit/media-server-go-demo/blob/a9ba8a00c56a7507707e07b01a5976fd8c4f1846/raw-rtp-input/server.go#L128

pipelineStr := "udpsrc port=5004 ! application/x-rtp, payload=96, encoding-name=H264"

but it can't be use.