Changes between Version 5 and Version 6 of ffserver


Ignore:
Timestamp:
Oct 11, 2012, 4:21:49 PM (7 years ago)
Author:
burek
Comment:

Notes about localhost

Legend:

Unmodified
Added
Removed
Modified
  • ffserver

    v5 v6  
    9292* The first part "'''{{{-f v4l2 -s 320x240 -r 25 -i /dev/video0}}}'''" represents the first input for ffmpeg and captures our webcam video. For more info, you can read more about [[How to capture a webcam input]].
    9393* The second part "'''{{{-f alsa -ac 1 -i hw:0}}}'''" represents the second input for ffmpeg and captures our audio, depending on our system audio configuration. For more info, you can read more about [[Capturing audio with FFmpeg and ALSA]].
    94 * The last, but not the least important, part "'''{{{http://localhost:8090/feed1.ffm}}}'''" represents the feed URL, which tells ffmpeg to connect to ffserver and send it the audio + video streams for broadcast. Make sure that your feed ends with "{{{.ffm}}}" and if it's not the case, then add "{{{-f ffm}}}" before your feed URL, to manually specify the output format (because ffmpeg won't be able to figure it out automatically any more), like this "'''{{{-f ffm http://localhost:8090/blah.bleh}}}'''".
     94* The last, but not the least important, part "'''{{{http://localhost:8090/feed1.ffm}}}'''" represents the feed URL, which tells ffmpeg to connect to ffserver and send it the audio + video streams for broadcast. In this example we used the hostname "localhost" which means that everything is running on our computer, but if you need to feed the live online ffserver, you'll need to change the "localhost" to the real host name or IP address of your ffserver computer. Also make sure that your feed name ends with "{{{.ffm}}}" and if it's not the case, then add "{{{-f ffm}}}" before your feed URL, to manually specify the output format (because ffmpeg won't be able to figure it out automatically any more), like this "'''{{{-f ffm http://localhost:8090/blah.bleh}}}'''".
    9595
    9696As soon as you type the command above, you should see ffmpeg displaying some statistics about your input streams and counting output frames, which is a pretty good sign that everything works (so far).
     
    134134ffplay http://localhost:8090/test1.mpg
    135135}}}
    136 and your stream should appear (depending on the encoding used and caching enforced) relatively shortly in a matter of seconds.
     136and your stream should appear (depending on the encoding used and caching enforced) relatively shortly in a matter of seconds. In this example we used the host name "localhost" which means that everything is running on our computer, but if you need to view streams from the live online ffserver, you'll need to change the "localhost" to the real host name or IP address of ffserver computer.
    137137
    138138For this example, you would need at least the following things defined in your config file (three dots "..." represent the other data that is irrelevant for this topic):