<div dir="ltr">Hi,<div><br></div><div>You need to connect your inputs to a feed in ffserver. It cannot stream your file directly because it uses ffm format for muxing. so <a href="http://127.0.0.1:8080/a.ogg" target="_blank" style="font-size:13px;font-family:georgia,serif">http://127.0.0.1:8080/</a>feed1.ffm  should work. You need to also define the feed in your config file. </div><div><br></div><div>In your html5 file, you need to provide the name of the stream given in the ffserver config file (may be a.ogg in your case), and also the type of the video.  </div><div><br></div><div><br></div><div>Cheers,</div><div>Tilak</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 19, 2014 at 7:54 AM, YIRAN LI <span dir="ltr"><<a href="mailto:mrfun.china@gmail.com" target="_blank">mrfun.china@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Hi guys,</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">VLC has a functionality to stream to a HTTP address so that any machine can open that network address to view the stream.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Now I'm looking for the similar functionality in ffmpeg to stream ogg stream but couldn't find it.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">The command line I've used was:</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><div class="gmail_default"><font color="#666666">$ ffmpeg.exe  -rtbufsize 1500M -f dshow -i video="Microsoft LifeCam VX-1000" -r 20 -bufsize 1024k -vcodec libtheora -qscale:v 1 -f ogg <a href="http://127.0.0.1:8080/a.ogg" target="_blank">http://127.0.0.1:8080/a.ogg</a></font></div><div class="gmail_default"><font color="#666666"><br></font></div><div class="gmail_default"><font color="#666666">ffmpeg version N-67742-g3f07dd6 Copyright (c) 2000-2014 the FFmpeg developers</font></div><div class="gmail_default"><font color="#666666">  built on Nov 16 2014 22:01:52 with gcc 4.9.2 (GCC)</font></div><div class="gmail_default"><font color="#666666"><br></font></div><div class="gmail_default"><font color="#666666">Input #0, dshow, from 'video=Microsoft LifeCam VX-1000':</font></div><div class="gmail_default"><font color="#666666">  Duration: N/A, start: 4822.365000, bitrate: N/A</font></div><div class="gmail_default"><font color="#666666">    Stream #0:0: Video: rawvideo, bgr24, 320x240, 30 tbr, 10000k tbn, 30 tbc</font></div><div class="gmail_default"><font color="#ff0000"><a href="http://127.0.0.1:8080/a.ogg" target="_blank">http://127.0.0.1:8080/a.ogg</a>: Unknown error</font></div><div class="gmail_default"><font color="#ff0000"><br></font></div><div class="gmail_default"><font color="#000000">What I wanted to do is to capture from the webcam and encode it to ogg stream so that it can be viewed anywhere (just include http://ip:port/a.ogg in to a HTML5 video tag)</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">Could anyone tell me why that command failed :(</font></div><div class="gmail_default"><font color="#000000"><br></font></div><div class="gmail_default"><font color="#000000">Great thanks!</font></div></div></div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>