You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.3KB

  1. *************** FFserver live broadcast server *****************
  2. 0) Introduction
  3. ffserver is a streaming server for both audio and video. It supports
  4. several live feeds, streaming from files and time shifting on live
  5. feeds (you can seek to positions in the past on each live feed,
  6. provided you specify a big enough feed storage in ffserver.conf).
  7. 1) Quick help
  8. - First you must ensure that your grab system is OK. Verify with
  9. 'xawtv' that your TV card is tuned on a correct video source.
  10. - Try with ffmpeg that you can record correctly. For example:
  11. ffmpeg /tmp/a.mpg
  12. will record a ten seconds mpeg file from your TV card and audio
  13. card. Use for example the mpegtv player or MPlayer to view the created
  14. MPEG file.
  15. - Launch ffserver on your PC with the sample config file:
  16. ffserver -f doc/ffserver.conf
  17. - Verify with your browser that ffserver is working correctly. For
  18. that purpose, explore: http://localhost:8090/stat.html .
  19. - Now launch ffmpeg to do real time encoding :
  20. ffmpeg http://localhost:8090/feed1.ffm
  21. - Then, use your favorite players to see each generated stream:
  22. mtvp http://localhost:8090/test1.mpg
  23. mpg123 http://localhost:8090/test.mp2
  24. netscape http://localhost:8090/test.swf
  25. realplayer http://localhost:8090/test.rm
  26. etc...
  27. Note that ffserver generate multiple streams in multiple formats AT
  28. THE SAME TIME. It should be able to handle hundreds of users at the
  29. same time if you internet connection is fast enough.
  30. - Now you can configure ffserver for your real needs. Edit the
  31. ffserver.conf file to use only the formats you want. Read the ffmpeg
  32. documentation (ffmpeg.txt) to learn more about the codec and format
  33. stuff.
  34. - Report any bug you find (and the fix if you have it!).
  35. 2) URL Format
  36. ffserver supports that you seek in some formats. The syntax is to
  37. add a '?' option to the URL. Only the 'date' option is supported.
  38. The date format is [YYYY-MM-DDT][[HH:]MM:]SS[.m...] (clost to ISO
  39. date format). For live streams, the date is absolute and give in
  40. GMT. If the day is not specified, the current day is used.
  41. example:
  42. mpg123 http://localhost:8090/test.mp2?date=10:00
  43. play the stream starting at 10:00 AM GMT today.
  44. mpg123 http://localhost:8090/test.mp2?date=2001-06-23T23:00
  45. is also a valid date.
  46. For file streams, the date is relative to the start of the file. No
  47. day can be specified.