Streaming using GStreamer

ぐ巨炮叔叔 提交于 2019-12-01 02:38:23

Could you try the following

gst-launch filesrc location=ed_hd.avi ! decodebin ! ffenc_mpeg4 ! rtpmp4vpay ! udpsink host=127.0.0.1 port=5000 

If that doesn't work then proceed:

Did you try the following? You need to replace his audio bins with video bins

http://delog.wordpress.com/2011/06/01/stream-raw-vorbis-audio-over-udp-or-tcp-with-gstreamer/

Also take a look at

http://pastebin.com/PtD21Bx7

Here replace v4l2src with your video src

Also

https://metalab.at/wiki/Gstreamer_One_Liners

I think your problem is the 127.0.0.1 portion. That is a loopback address (check ifconfig lo0 to see the Link encap:Local Loopback for the 127.0.0.1 address). This won't work across two systems, though it might work fine on a single system.

Instead, use the address that is publicly visible for the second machine; check ip addr show or ifconfig output to find the address. Write the actual address for System #2 in the command line on System #1.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!