怎么能在网站上直播电视节目 [英] How can Live telecast of video in website
问题描述
HI,
我想在网上播放实时视频,我找到了一些第三方软件。
现在我要创建这个解决方案来自asp.net/c#,
我不知道从哪里开始...
所以有人对它有任何想法,请分享...... < br $>
谢谢
使用编码器(例如VLC或FFmpeg)将您的输入流打包为OGG格式。例如,在这种情况下,我使用VLC将屏幕捕获设备打包为此代码:
C:\Program Files \ VideoLAN \ VLC \ vlc.exe -I dummy screen://:screen-fps = 16.000000:screen-caching = 100:sout = #transcode {vcodec = theo,vb = 800, scale = 1,width = 600,height = 480,acodec = mp3}:http {mux = ogg,dst = 127.0.0.1:8080 / desktop.ogg}:no-sout-rtp-sap:no-sout-standard- sap:ttl = 1:sout-keep
将此代码嵌入< video> HTML页面中的标记如下:
< 视频 id = video src = http:// localhost:8080 / desktop.ogg autoplay = autoplay / >
这应该可以解决问题。然而,它的性能很差,AFAIK MP4容器类型应该比OGG在浏览器中有更好的支持。
+访问这个
http://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets 一> [ ^ ]
过去我已经发布了这些答案,请查看一下。
网页上的网络摄像头图像 [ ^ ]
asp.net中的视频播放器 [ ^ ]
HI,
I want to telecast live video on web, I found some third party software.
Now I want to create this solution by asp.net/c#,
I didn't know where to Start...
So Somebody have any idea about it, Please Share...
Thanks
Use an encoder (e.g. VLC or FFmpeg) into packetize your input stream to OGG format. For example, in this case I used VLC to packetize screen capture device with this code:
C:\Program Files\VideoLAN\VLC\vlc.exe -I dummy screen:// :screen-fps=16.000000 :screen-caching=100 :sout=#transcode{vcodec=theo,vb=800,scale=1,width=600,height=480,acodec=mp3}:http{mux=ogg,dst=127.0.0.1:8080/desktop.ogg} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep
Embed this code into a <video> tag in your HTML page like that:
<video id="video" src="http://localhost:8080/desktop.ogg" autoplay="autoplay" />
This should do the trick. However it's kind of poor performance and AFAIK MP4 container type should have a better support among browsers than OGG.
+ visit this
http://phoboslab.org/log/2013/09/html5-live-video-streaming-via-websockets[^]
In past I have posted these answers, check it out that too.
Web Cam Image on Web Page[^]
Video player in asp.net[^]
这篇关于怎么能在网站上直播电视节目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!