Streaming audio and video

懵懂的女人 提交于 2019-12-10 10:34:43

问题


I've been trying for a while but struggling. I have two projects:

  1. Stream audio to server for distribution over the web
  2. Stream audio and video from a webcam to a server for distribution over the web.

I have thus far tried ffmpeg and ffserver, PulseAudio, mjpegstreamer (I got this working but no audio) and IceCast all with little luck. While I'm sure this is likely my fault, I was wondering if there are any more option?

I've spent a while experimenting with Linux options and was also wondering if there were options with Python having recently played with OpenCV.

If anyone can suggest more options to look into Python or Linux based it would be much appreciated or point me at some good tutorials or explainations of what I've already used it would be much appreciated.


回答1:


A good start for trying different options is to use vlc (http://www.videolan.org) Its file->transmit menu command opens a wizard with which you can play.

Another good one is gstreamer, (http://www.gstreamer.net), the gst-launch program in particular, which allows you to build pipelines from the command line.




回答2:


As for me, RTSP casting is the easiest way.

GStreamer can do a lot of stuff, but you cannot start RTSP server just with gst-launch. One needs to compile an own RTSP server from gst-rtsp package. Compiling one of gst-rtsp examples will do.



来源:https://stackoverflow.com/questions/13433597/streaming-audio-and-video

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