History

Rename ffserver to avserver.

Anton Khirnov committed 15 years ago

Commit 4d58e4c1 parent 9e12f0b16 files · +102 −102Browse files

Unified · Split

16 files
  1. .gitignore +1 −1
  2. Changelog +1 −1
  3. Makefile +3 −3
  4. avserver.c +32 −32
  5. configure +10 −10
  6. doc/avplay.texi +1 −1
  7. doc/avprobe.texi +1 −1
  8. doc/avserver.conf +7 −7
  9. doc/avserver.texi +30 −30
  10. doc/ffmpeg.texi +3 −3
  11. doc/general.texi +1 −1
  12. ffmpeg.c +4 −4
  13. libavformat/ffm.h +1 −1
  14. libavformat/ffmdec.c +4 −4
  15. libavformat/ffmenc.c +2 −2
  16. libavformat/mpjpeg.c +1 −1
.gitignore+1−1
@@ -14,7 +14,7 @@ doxy · 13 unmodified lines
1414 ffmpeg
1515 avplay
1616 avprobe
17−ffserver
17+avserver
1818 libavcodec/*_tablegen
1919 libavcodec/*_tables.c
2020 libavcodec/*_tables.h
Changelog+1−1
@@ -5,7 +5,7 @@ releases are sorted from youngest to oldest. · 4 unmodified lines
55 version <next>:
66 - BWF muxer
77 - Flash Screen Video 2 decoder
8−- ffplay/ffprobe renamed to avplay/avprobe
8+- ffplay/ffprobe/ffserver renamed to avplay/avprobe/avserver
99
1010
1111 version 0.7:
Makefile+3−3
@@ -55,7 +55,7 @@ COMPILE_S = $(call COMPILE,AS) · 54 unmodified lines
5555 PROGS-$(CONFIG_FFMPEG) += ffmpeg
5656 PROGS-$(CONFIG_AVPLAY) += avplay
5757 PROGS-$(CONFIG_AVPROBE) += avprobe
58−PROGS-$(CONFIG_FFSERVER) += ffserver
58+PROGS-$(CONFIG_AVSERVER) += avserver
5959
6060 PROGS := $(PROGS-yes:%=%$(EXESUF))
6161 OBJS = $(PROGS-yes:%=%.o) cmdutils.o
@@ -64,7 +64,7 @@ HOSTPROGS := $(TESTTOOLS:%=tests/%) · 2 unmodified lines
6464 TOOLS = qt-faststart trasher
6565 TOOLS-$(CONFIG_ZLIB) += cws2fws
6666
67−BASENAMES = ffmpeg avplay avprobe ffserver
67+BASENAMES = ffmpeg avplay avprobe avserver
6868 ALLPROGS = $(BASENAMES:%=%$(EXESUF))
6969 ALLMANPAGES = $(BASENAMES:%=%.1)
7070
@@ -118,7 +118,7 @@ $(foreach D,$(FFLIBS),$(eval $(call DOSUBDIR,lib$(D)))) · 47 unmodified lines
118118
119119 avplay.o: CFLAGS += $(SDL_CFLAGS)
120120 avplay$(EXESUF): FF_EXTRALIBS += $(SDL_LIBS)
121−ffserver$(EXESUF): LDFLAGS += $(FFSERVERLDFLAGS)
121+avserver$(EXESUF): LDFLAGS += $(AVSERVERLDFLAGS)
122122
123123 $(PROGS): %$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
124124 $(LD) $(LDFLAGS) -o $@ $< cmdutils.o $(FF_EXTRALIBS)
avserver.crenamed from ffserver.c+32−32
@@ -59,7 +59,7 @@ · 58 unmodified lines
5959
6060 #include "cmdutils.h"
6161
62−const char program_name[] = "ffserver";
62+const char program_name[] = "avserver";
6363 const int program_birth_year = 2000;
6464
6565 static const OptionDef options[];
@@ -200,7 +200,7 @@ typedef struct IPAddressACL { · 134 unmodified lines
200200 struct in_addr last;
201201 } IPAddressACL;
202202
203−/* description of each stream of the ffserver.conf file */
203+/* description of each stream of the avserver.conf file */
204204 typedef struct FFStream {
205205 enum StreamType stream_type;
206206 char filename[1024]; /* stream filename */
@@ -299,10 +299,10 @@ static int rtp_new_av_stream(HTTPContext *c, · 92 unmodified lines
299299 static const char *my_program_name;
300300 static const char *my_program_dir;
301301
302−static const char *config_filename = "/etc/ffserver.conf";
302+static const char *config_filename = "/etc/avserver.conf";
303303
304−static int ffserver_debug;
305−static int ffserver_daemon;
304+static int avserver_debug;
305+static int avserver_daemon;
306306 static int no_launch;
307307 static int need_to_start_children;
308308
@@ -320,7 +320,7 @@ static AVLFG random_state; · 11 unmodified lines
320320
321321 static FILE *logfile = NULL;
322322
323−/* FIXME: make ffserver work with IPv6 */
323+/* FIXME: make avserver work with IPv6 */
324324 /* resolve host with also IP address parsing */
325325 static int resolve_host(struct in_addr *sin_addr, const char *hostname)
326326 {
@@ -480,7 +480,7 @@ static void start_children(FFStream *feed) · 153 unmodified lines
480480 for (i = 3; i < 256; i++)
481481 close(i);
482482
483− if (!ffserver_debug) {
483+ if (!avserver_debug) {
484484 i = open("/dev/null", O_RDWR);
485485 if (i != -1) {
486486 dup2(i, 0);
@@ -620,7 +620,7 @@ static int http_server(void) · 133 unmodified lines
620620 return -1;
621621 }
622622
623− http_log("FFserver started.\n");
623+ http_log("AVserver started.\n");
624624
625625 start_children(first_feed);
626626
@@ -664,7 +664,7 @@ static int http_server(void) · 37 unmodified lines
664664 poll_entry->events = POLLOUT;
665665 poll_entry++;
666666 } else {
667− /* when ffserver is doing the timing, we work by
667+ /* when avserver is doing the timing, we work by
668668 looking at which packet need to be sent every
669669 10 ms */
670670 delay1 = 10; /* one tick wait XXX: 10 ms assumed */
@@ -1480,7 +1480,7 @@ static int http_parse_request(HTTPContext *c) · 809 unmodified lines
14801480
14811481 av_strlcpy(c->protocol, protocol, sizeof(c->protocol));
14821482
1483− if (ffserver_debug)
1483+ if (avserver_debug)
14841484 http_log("%s - - New connection: %s %s\n", inet_ntoa(c->from_addr.sin_addr), cmd, url);
14851485
14861486 /* find the filename and the optional info string in the request */
@@ -1643,7 +1643,7 @@ static int http_parse_request(HTTPContext *c) · 156 unmodified lines
16431643 "Content-type: video/x-ms-asf\r\n"
16441644 "\r\n"
16451645 "<ASX Version=\"3\">\r\n"
1646− //"<!-- Autogenerated by ffserver -->\r\n"
1646+ //"<!-- Autogenerated by avserver -->\r\n"
16471647 "<ENTRY><REF HREF=\"http://%s/%s%s\"/></ENTRY>\r\n"
16481648 "</ASX>\r\n", hostbuf, filename, info);
16491649 break;
@@ -1652,7 +1652,7 @@ static int http_parse_request(HTTPContext *c) · 2 unmodified lines
16521652 "HTTP/1.0 200 RAM Follows\r\n"
16531653 "Content-type: audio/x-pn-realaudio\r\n"
16541654 "\r\n"
1655− "# Autogenerated by ffserver\r\n"
1655+ "# Autogenerated by avserver\r\n"
16561656 "http://%s/%s%s\r\n", hostbuf, filename, info);
16571657 break;
16581658 case REDIR_ASF:
@@ -3458,7 +3458,7 @@ static int rtp_new_av_stream(HTTPContext *c, · 1799 unmodified lines
34583458 }
34593459
34603460 /********************************************************************/
3461−/* ffserver initialization */
3461+/* avserver initialization */
34623462
34633463 static AVStream *add_av_stream1(FFStream *stream, AVCodecContext *codec, int copy)
34643464 {
@@ -3914,10 +3914,10 @@ static void load_module(const char *filename) · 449 unmodified lines
39143914 return;
39153915 }
39163916
3917− init_func = dlsym(dll, "ffserver_module_init");
3917+ init_func = dlsym(dll, "avserver_module_init");
39183918 if (!init_func) {
39193919 fprintf(stderr,
3920− "%s: init function 'ffserver_module_init()' not found\n",
3920+ "%s: init function 'avserver_module_init()' not found\n",
39213921 filename);
39223922 dlclose(dll);
39233923 }
@@ -3926,7 +3926,7 @@ static void load_module(const char *filename) · 2 unmodified lines
39263926 }
39273927 #endif
39283928
3929−static int ffserver_opt_default(const char *opt, const char *arg,
3929+static int avserver_opt_default(const char *opt, const char *arg,
39303930 AVCodecContext *avctx, int type)
39313931 {
39323932 int ret = 0;
@@ -3936,7 +3936,7 @@ static int ffserver_opt_default(const char *opt, const char *arg, · 3 unmodified lines
39363936 return ret;
39373937 }
39383938
3939−static int ffserver_opt_preset(const char *arg,
3939+static int avserver_opt_preset(const char *arg,
39403940 AVCodecContext *avctx, int type,
39413941 enum CodecID *audio_id, enum CodecID *video_id)
39423942 {
@@ -3967,7 +3967,7 @@ static int ffserver_opt_preset(const char *arg, · 24 unmodified lines
39673967 *video_id = opt_video_codec(tmp2);
39683968 }else if(!strcmp(tmp, "scodec")){
39693969 /* opt_subtitle_codec(tmp2); */
3970− }else if(ffserver_opt_default(tmp, tmp2, avctx, type) < 0){
3970+ }else if(avserver_opt_default(tmp, tmp2, avctx, type) < 0){
39713971 fprintf(stderr, "%s: Invalid option or argument: '%s', parsed as '%s' = '%s'\n", filename, line, tmp, tmp2);
39723972 ret = 1;
39733973 break;
@@ -3979,7 +3979,7 @@ static int ffserver_opt_preset(const char *arg, · 5 unmodified lines
39793979 return ret;
39803980 }
39813981
3982−static AVOutputFormat *ffserver_guess_format(const char *short_name, const char *filename,
3982+static AVOutputFormat *avserver_guess_format(const char *short_name, const char *filename,
39833983 const char *mime_type)
39843984 {
39853985 AVOutputFormat *fmt = av_guess_format(short_name, filename, mime_type);
@@ -4066,7 +4066,7 @@ static int parse_ffconfig(const char *filename) · 80 unmodified lines
40664066 ERROR("%s:%d: Invalid host/IP address: %s\n", arg);
40674067 }
40684068 } else if (!strcasecmp(cmd, "NoDaemon")) {
4069− ffserver_daemon = 0;
4069+ avserver_daemon = 0;
40704070 } else if (!strcasecmp(cmd, "RTSPPort")) {
40714071 get_arg(arg, sizeof(arg), &p);
40724072 val = atoi(arg);
@@ -4103,7 +4103,7 @@ static int parse_ffconfig(const char *filename) · 30 unmodified lines
41034103 } else
41044104 max_bandwidth = llval;
41054105 } else if (!strcasecmp(cmd, "CustomLog")) {
4106− if (!ffserver_debug)
4106+ if (!avserver_debug)
41074107 get_arg(logfilename, sizeof(logfilename), &p);
41084108 } else if (!strcasecmp(cmd, "<Feed")) {
41094109 /*********************************************/
@@ -4227,7 +4227,7 @@ static int parse_ffconfig(const char *filename) · 117 unmodified lines
42274227 }
42284228 }
42294229
4230− stream->fmt = ffserver_guess_format(NULL, stream->filename, NULL);
4230+ stream->fmt = avserver_guess_format(NULL, stream->filename, NULL);
42314231 avcodec_get_context_defaults2(&video_enc, AVMEDIA_TYPE_VIDEO);
42324232 avcodec_get_context_defaults2(&audio_enc, AVMEDIA_TYPE_AUDIO);
42334233 audio_id = CODEC_ID_NONE;
@@ -4267,7 +4267,7 @@ static int parse_ffconfig(const char *filename) · 33 unmodified lines
42674267 /* jpeg cannot be used here, so use single frame jpeg */
42684268 if (!strcmp(arg, "jpeg"))
42694269 strcpy(arg, "mjpeg");
4270− stream->fmt = ffserver_guess_format(arg, NULL, NULL);
4270+ stream->fmt = avserver_guess_format(arg, NULL, NULL);
42714271 if (!stream->fmt) {
42724272 ERROR("Unknown Format: %s\n", arg);
42734273 }
@@ -4430,7 +4430,7 @@ static int parse_ffconfig(const char *filename) · 156 unmodified lines
44304430 avctx = &audio_enc;
44314431 type = AV_OPT_FLAG_AUDIO_PARAM;
44324432 }
4433− if (ffserver_opt_default(arg, arg2, avctx, type|AV_OPT_FLAG_ENCODING_PARAM)) {
4433+ if (avserver_opt_default(arg, arg2, avctx, type|AV_OPT_FLAG_ENCODING_PARAM)) {
44344434 ERROR("AVOption error: %s %s\n", arg, arg2);
44354435 }
44364436 } else if (!strcasecmp(cmd, "AVPresetVideo") ||
@@ -4447,7 +4447,7 @@ static int parse_ffconfig(const char *filename) · 10 unmodified lines
44474447 audio_enc.codec_id = audio_id;
44484448 type = AV_OPT_FLAG_AUDIO_PARAM;
44494449 }
4450− if (ffserver_opt_preset(arg, avctx, type|AV_OPT_FLAG_ENCODING_PARAM, &audio_id, &video_id)) {
4450+ if (avserver_opt_preset(arg, avctx, type|AV_OPT_FLAG_ENCODING_PARAM, &audio_id, &video_id)) {
44514451 ERROR("AVPreset error: %s\n", arg);
44524452 }
44534453 } else if (!strcasecmp(cmd, "VideoTag")) {
@@ -4638,14 +4638,14 @@ static void handle_child_exit(int sig) · 184 unmodified lines
46384638
46394639 static void opt_debug(void)
46404640 {
4641− ffserver_debug = 1;
4642− ffserver_daemon = 0;
4641+ avserver_debug = 1;
4642+ avserver_daemon = 0;
46434643 logfilename[0] = '-';
46444644 }
46454645
46464646 static void show_help(void)
46474647 {
4648− printf("usage: ffserver [options]\n"
4648+ printf("usage: avserver [options]\n"
46494649 "Hyper fast multi format Audio/Video streaming server\n");
46504650 printf("\n");
46514651 show_help_options(options, "Main options:\n", 0, 0);
@@ -4655,7 +4655,7 @@ static const OptionDef options[] = { · 3 unmodified lines
46554655 #include "cmdutils_common_opts.h"
46564656 { "n", OPT_BOOL, {(void *)&no_launch }, "enable no-launch mode" },
46574657 { "d", 0, {(void*)opt_debug}, "enable debug mode" },
4658− { "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/ffserver.conf", "configfile" },
4658+ { "f", HAS_ARG | OPT_STRING, {(void*)&config_filename }, "use configfile instead of /etc/avserver.conf", "configfile" },
46594659 { NULL },
46604660 };
46614661
@@ -4669,7 +4669,7 @@ int main(int argc, char **argv) · 7 unmodified lines
46694669
46704670 my_program_name = argv[0];
46714671 my_program_dir = getcwd(0, 0);
4672− ffserver_daemon = 1;
4672+ avserver_daemon = 1;
46734673
46744674 parse_options(argc, argv, options, NULL);
46754675
@@ -4703,7 +4703,7 @@ int main(int argc, char **argv) · 27 unmodified lines
47034703 compute_bandwidth();
47044704
47054705 /* put the process in background and detach it from its TTY */
4706− if (ffserver_daemon) {
4706+ if (avserver_daemon) {
47074707 int pid;
47084708
47094709 pid = fork();
@@ -4730,7 +4730,7 @@ int main(int argc, char **argv) · 20 unmodified lines
47304730 /* signal init */
47314731 signal(SIGPIPE, SIG_IGN);
47324732
4733− if (ffserver_daemon)
4733+ if (avserver_daemon)
47344734 chdir("/");
47354735
47364736 if (http_server() < 0) {
configure+10−10
@@ -83,7 +83,7 @@ Configuration options: · 82 unmodified lines
8383 --disable-ffmpeg disable ffmpeg build
8484 --disable-avplay disable avplay build
8585 --disable-avprobe disable avprobe build
86− --disable-ffserver disable ffserver build
86+ --disable-avserver disable avserver build
8787 --disable-avdevice disable libavdevice build
8888 --disable-avcodec disable libavcodec build
8989 --disable-avformat disable libavformat build
@@ -915,7 +915,7 @@ CONFIG_LIST=" · 825 unmodified lines
915915 ffmpeg
916916 avplay
917917 avprobe
918− ffserver
918+ avserver
919919 fft
920920 frei0r
921921 golomb
@@ -1492,8 +1492,8 @@ ffmpeg_select="buffer_filter" · 570 unmodified lines
14921492 avplay_deps="avcodec avformat swscale sdl"
14931493 avplay_select="rdft"
14941494 avprobe_deps="avcodec avformat"
1495−ffserver_deps="avformat ffm_muxer fork rtp_protocol rtsp_demuxer"
1496−ffserver_extralibs='$ldl'
1495+avserver_deps="avformat ffm_muxer fork rtp_protocol rtsp_demuxer"
1496+avserver_extralibs='$ldl'
14971497
14981498 doc_deps="texi2html"
14991499
@@ -1637,7 +1637,7 @@ enable fastdiv · 137 unmodified lines
16371637 enable ffmpeg
16381638 enable avplay
16391639 enable avprobe
1640−enable ffserver
1640+enable avserver
16411641 enable network
16421642 enable optimizations
16431643 enable postproc
@@ -1648,7 +1648,7 @@ enable swscale_alpha · 4 unmodified lines
16481648
16491649 # build settings
16501650 SHFLAGS='-shared -Wl,-soname,$$(@F)'
1651−FFSERVERLDFLAGS=-Wl,-E
1651+AVSERVERLDFLAGS=-Wl,-E
16521652 LIBPREF="lib"
16531653 LIBSUF=".a"
16541654 FULLNAME='$(NAME)$(BUILDSUF)'
@@ -2355,7 +2355,7 @@ case $target_os in · 700 unmodified lines
23552355 host_libs=
23562356 ;;
23572357 sunos)
2358− FFSERVERLDFLAGS=""
2358+ AVSERVERLDFLAGS=""
23592359 SHFLAGS='-shared -Wl,-h,$$(@F)'
23602360 enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
23612361 network_extralibs="-lsocket -lnsl"
@@ -2400,7 +2400,7 @@ case $target_os in · 38 unmodified lines
24002400 SLIBSUF=".dylib"
24012401 SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME).$(LIBVERSION)$(SLIBSUF)'
24022402 SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME).$(LIBMAJOR)$(SLIBSUF)'
2403− FFSERVERLDFLAGS=-Wl,-bind_at_load
2403+ AVSERVERLDFLAGS=-Wl,-bind_at_load
24042404 objformat="macho"
24052405 enabled x86_64 && objformat="macho64"
24062406 enabled_any pic shared ||
@@ -2472,7 +2472,7 @@ case $target_os in · 65 unmodified lines
24722472 add_cppflags -D_GNU_SOURCE
24732473 add_ldflags -Zomf -Zbin-files -Zargs-wild -Zmap
24742474 SHFLAGS='$(SUBDIR)$(NAME).def -Zdll -Zomf'
2475− FFSERVERLDFLAGS=""
2475+ AVSERVERLDFLAGS=""
24762476 LIBSUF="_s.a"
24772477 SLIBPREF=""
24782478 SLIBSUF=".dll"
@@ -3218,7 +3218,7 @@ AS_O=$CC_O · 739 unmodified lines
32183218 CC_O=$CC_O
32193219 DLLTOOL=$dlltool
32203220 LDFLAGS=$LDFLAGS
3221−FFSERVERLDFLAGS=$FFSERVERLDFLAGS
3221+AVSERVERLDFLAGS=$AVSERVERLDFLAGS
32223222 SHFLAGS=$SHFLAGS
32233223 YASMFLAGS=$YASMFLAGS
32243224 BUILDSUF=$build_suffix
doc/avplay.texi+1−1
@@ -170,7 +170,7 @@ Seek to percentage in file corresponding to fraction of width. · 169 unmodified lines
170170 @settitle AVplay media player
171171
172172 @c man begin SEEALSO
173−ffmpeg(1), avprobe(1), ffserver(1) and the Libav HTML documentation
173+ffmpeg(1), avprobe(1), avserver(1) and the Libav HTML documentation
174174 @c man end
175175
176176 @c man begin AUTHORS
doc/avprobe.texi+1−1
@@ -122,7 +122,7 @@ with name "STREAM". · 121 unmodified lines
122122 @settitle avprobe media prober
123123
124124 @c man begin SEEALSO
125−ffmpeg(1), avplay(1), ffserver(1) and the Libav HTML documentation
125+ffmpeg(1), avplay(1), avserver(1) and the Libav HTML documentation
126126 @c man end
127127
128128 @c man begin AUTHORS
doc/avserver.confrenamed from doc/ffserver.conf+7−7
@@ -12,7 +12,7 @@ BindAddress 0.0.0.0 · 11 unmodified lines
1212 # MaxClients maximum limit.
1313 MaxHTTPConnections 2000
1414
15−# Number of simultaneous requests that can be handled. Since FFServer
15+# Number of simultaneous requests that can be handled. Since AVServer
1616 # is very fast, it is more likely that you will want to leave this high
1717 # and use MaxBandwidth, below.
1818 MaxClients 1000
@@ -25,24 +25,24 @@ MaxBandwidth 1000 · 6 unmodified lines
2525 # '-' is the standard output.
2626 CustomLog -
2727
28−# Suppress that if you want to launch ffserver as a daemon.
28+# Suppress that if you want to launch avserver as a daemon.
2929 NoDaemon
3030
3131
3232 ##################################################################
3333 # Definition of the live feeds. Each live feed contains one video
3434 # and/or audio sequence coming from an ffmpeg encoder or another
35−# ffserver. This sequence may be encoded simultaneously with several
35+# avserver. This sequence may be encoded simultaneously with several
3636 # codecs at several resolutions.
3737
3838 <Feed feed1.ffm>
3939
40−# You must use 'ffmpeg' to send a live feed to ffserver. In this
40+# You must use 'ffmpeg' to send a live feed to avserver. In this
4141 # example, you can type:
4242 #
4343 # ffmpeg http://localhost:8090/feed1.ffm
4444
45−# ffserver can also do time shifting. It means that it can stream any
45+# avserver can also do time shifting. It means that it can stream any
4646 # previously recorded live stream. The request should contain:
4747 # "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
4848 # a path where the feed is stored on disk. You also specify the
@@ -69,7 +69,7 @@ ACL allow 127.0.0.1 · 20 unmodified lines
6969 ##################################################################
7070 # Now you can define each stream which will be generated from the
7171 # original audio and video stream. Each format has a filename (here
72−# 'test1.mpg'). FFServer will send this stream when answering a
72+# 'test1.mpg'). AVServer will send this stream when answering a
7373 # request containing this filename.
7474
7575 <Stream test1.mpg>
@@ -334,7 +334,7 @@ StartSendOnKey · 258 unmodified lines
334334 # multicast address with MulticastAddress. The port and the TTL can
335335 # also be set.
336336 #
337−# An SDP file is automatically generated by ffserver by adding the
337+# An SDP file is automatically generated by avserver by adding the
338338 # 'sdp' extension to the stream name (here
339339 # http://localhost:8090/test1-sdp.sdp). You should usually give this
340340 # file to your player to play the stream.
doc/avserver.texirenamed from doc/ffserver.texi+30−30
@@ -1,8 +1,8 @@
11 \input texinfo @c -*- texinfo -*-
22
3−@settitle ffserver Documentation
3+@settitle avserver Documentation
44 @titlepage
5−@center @titlefont{ffserver Documentation}
5+@center @titlefont{avserver Documentation}
66 @end titlepage
77
88 @top
@@ -15,37 +15,37 @@ The generic syntax is: · 6 unmodified lines
1515
1616 @example
1717 @c man begin SYNOPSIS
18−ffserver [options]
18+avserver [options]
1919 @c man end
2020 @end example
2121
2222 @chapter Description
2323 @c man begin DESCRIPTION
2424
25−ffserver is a streaming server for both audio and video. It supports
25+avserver is a streaming server for both audio and video. It supports
2626 several live feeds, streaming from files and time shifting on live feeds
2727 (you can seek to positions in the past on each live feed, provided you
28−specify a big enough feed storage in ffserver.conf).
28+specify a big enough feed storage in avserver.conf).
2929
30−ffserver runs in daemon mode by default; that is, it puts itself in
30+avserver runs in daemon mode by default; that is, it puts itself in
3131 the background and detaches from its TTY, unless it is launched in
3232 debug mode or a NoDaemon option is specified in the configuration
3333 file.
3434
35−This documentation covers only the streaming aspects of ffserver /
35+This documentation covers only the streaming aspects of avserver /
3636 ffmpeg. All questions about parameters for ffmpeg, codec questions,
3737 etc. are not covered here. Read @file{ffmpeg-doc.html} for more
3838 information.
3939
4040 @section How does it work?
4141
42−ffserver receives prerecorded files or FFM streams from some ffmpeg
42+avserver receives prerecorded files or FFM streams from some ffmpeg
4343 instance as input, then streams them over RTP/RTSP/HTTP.
4444
45−An ffserver instance will listen on some port as specified in the
45+An avserver instance will listen on some port as specified in the
4646 configuration file. You can launch one or more instances of ffmpeg and
47−send one or more FFM streams to the port where ffserver is expecting
48−to receive them. Alternately, you can make ffserver launch such ffmpeg
47+send one or more FFM streams to the port where avserver is expecting
48+to receive them. Alternately, you can make avserver launch such ffmpeg
4949 instances at startup.
5050
5151 Input streams are called feeds, and each one is specified by a <Feed>
@@ -57,7 +57,7 @@ file. · 5 unmodified lines
5757
5858 @section Status stream
5959
60−ffserver supports an HTTP interface which exposes the current status
60+avserver supports an HTTP interface which exposes the current status
6161 of the server.
6262
6363 Simply point your browser to the address of the special status stream
@@ -100,7 +100,7 @@ I understand that FreeBSD systems work just fine as well. · 36 unmodified lines
100100 @section How do I make it work?
101101
102102 First, build the kit. It *really* helps to have installed LAME first. Then when
103−you run the ffserver ./configure, make sure that you have the
103+you run the avserver ./configure, make sure that you have the
104104 @code{--enable-libmp3lame} flag turned on.
105105
106106 LAME is important as it allows for streaming audio to Windows Media Player.
@@ -110,7 +110,7 @@ As a simple test, just run the following two command lines where INPUTFILE · 3 unmodified lines
110110 is some file which you can decode with ffmpeg:
111111
112112 @example
113−./ffserver -f doc/ffserver.conf &
113+./avserver -f doc/avserver.conf &
114114 ./ffmpeg -i INPUTFILE http://localhost:8090/feed1.ffm
115115 @end example
116116
@@ -129,8 +129,8 @@ The same is true of AVI files. · 12 unmodified lines
129129
130130 @section What happens next?
131131
132−You should edit the ffserver.conf file to suit your needs (in terms of
133−frame rates etc). Then install ffserver and ffmpeg, write a script to start
132+You should edit the avserver.conf file to suit your needs (in terms of
133+frame rates etc). Then install avserver and ffmpeg, write a script to start
134134 them up, and off you go.
135135
136136 @section Troubleshooting
@@ -166,14 +166,14 @@ I suspect that the new one is not available unless you have installed WMP 7]. · 29 unmodified lines
166166
167167 You can replay video from .ffm files that was recorded earlier.
168168 However, there are a number of caveats, including the fact that the
169−ffserver parameters must match the original parameters used to record the
170−file. If they do not, then ffserver deletes the file before recording into it.
169+avserver parameters must match the original parameters used to record the
170+file. If they do not, then avserver deletes the file before recording into it.
171171 (Now that I write this, it seems broken).
172172
173173 You can fiddle with many of the codec choices and encoding parameters, and
174174 there are a bunch more parameters that you cannot control. Post a message
175175 to the mailing list if there are some 'must have' parameters. Look in
176−ffserver.conf for a list of the currently available controls.
176+avserver.conf for a list of the currently available controls.
177177
178178 It will automatically generate the ASX or RAM files that are often used
179179 in browsers. These files are actually redirections to the underlying ASF
@@ -187,7 +187,7 @@ finishes.] · 7 unmodified lines
187187
188188 * When you connect to a live stream, most players (WMP, RA, etc) want to
189189 buffer a certain number of seconds of material so that they can display the
190−signal continuously. However, ffserver (by default) starts sending data
190+signal continuously. However, avserver (by default) starts sending data
191191 in realtime. This means that there is a pause of a few seconds while the
192192 buffering is being done by the player. The good news is that this can be
193193 cured by adding a '?buffer=5' to the end of the URL. This means that the
@@ -195,13 +195,13 @@ stream should start 5 seconds in the past -- and so the first 5 seconds · 1 unmodified line
195195 of the stream are sent as fast as the network will allow. It will then
196196 slow down to real time. This noticeably improves the startup experience.
197197
198−You can also add a 'Preroll 15' statement into the ffserver.conf that will
198+You can also add a 'Preroll 15' statement into the avserver.conf that will
199199 add the 15 second prebuffering on all requests that do not otherwise
200−specify a time. In addition, ffserver will skip frames until a key_frame
200+specify a time. In addition, avserver will skip frames until a key_frame
201201 is found. This further reduces the startup delay by not transferring data
202202 that will be discarded.
203203
204−* You may want to adjust the MaxBandwidth in the ffserver.conf to limit
204+* You may want to adjust the MaxBandwidth in the avserver.conf to limit
205205 the amount of bandwidth consumed by live streams.
206206
207207 @section Why does the ?buffer / Preroll stop working after a time?
@@ -218,7 +218,7 @@ handled. · 10 unmodified lines
218218 @section Does the @code{?date=} stuff work.
219219
220220 Yes (subject to the limitation outlined above). Also note that whenever you
221−start ffserver, it deletes the ffm file (if any parameters have changed),
221+start avserver, it deletes the ffm file (if any parameters have changed),
222222 thus wiping out what you had recorded before.
223223
224224 The format of the @code{?date=xxxxxx} is fairly flexible. You should use one
@@ -246,26 +246,26 @@ For example: @samp{http://localhost:8080/test.asf?date=2002-07-26T23:05:00}. · 21 unmodified lines
246246
247247 @table @option
248248 @item -f @var{configfile}
249−Use @file{configfile} instead of @file{/etc/ffserver.conf}.
249+Use @file{configfile} instead of @file{/etc/avserver.conf}.
250250 @item -n
251251 Enable no-launch mode. This option disables all the Launch directives
252−within the various <Stream> sections. Since ffserver will not launch
252+within the various <Stream> sections. Since avserver will not launch
253253 any ffmpeg instances, you will have to launch them manually.
254254 @item -d
255255 Enable debug mode. This option increases log verbosity, directs log
256−messages to stdout and causes ffserver to run in the foreground
256+messages to stdout and causes avserver to run in the foreground
257257 rather than as a daemon.
258258 @end table
259259 @c man end
260260
261261 @ignore
262262
263−@setfilename ffserver
264−@settitle ffserver video server
263+@setfilename avserver
264+@settitle avserver video server
265265
266266 @c man begin SEEALSO
267267
268−ffmpeg(1), avplay(1), avprobe(1), the @file{ffmpeg/doc/ffserver.conf}
268+ffmpeg(1), avplay(1), avprobe(1), the @file{ffmpeg/doc/avserver.conf}
269269 example and the Libav HTML documentation
270270 @c man end
271271
doc/ffmpeg.texi+3−3
@@ -164,7 +164,7 @@ Set the number of video frames to record. · 163 unmodified lines
164164 @item -r @var{fps}
165165 Set frame rate (Hz value, fraction or abbreviation), (default = 25).
166166 @item -s @var{size}
167−Set frame size. The format is @samp{wxh} (ffserver default = 160x128, ffmpeg default = same as source).
167+Set frame size. The format is @samp{wxh} (avserver default = 160x128, ffmpeg default = same as source).
168168 The following abbreviations are recognized:
169169 @table @samp
170170 @item sqcif
@@ -726,7 +726,7 @@ Set RTP payload size in bytes. · 555 unmodified lines
726726 Read input at native frame rate. Mainly used to simulate a grab device.
727727 @item -loop_input
728728 Loop over the input stream. Currently it works only for image
729−streams. This option is used for automatic FFserver testing.
729+streams. This option is used for automatic AVserver testing.
730730 This option is deprecated, use -loop.
731731 @item -loop_output @var{number_of_times}
732732 Repeatedly loop output for formats that support looping such as animated GIF
@@ -1079,7 +1079,7 @@ file to which you want to add them. · 346 unmodified lines
10791079 @settitle ffmpeg video converter
10801080
10811081 @c man begin SEEALSO
1082−avplay(1), avprobe(1), ffserver(1) and the Libav HTML documentation
1082+avplay(1), avprobe(1), avserver(1) and the Libav HTML documentation
10831083 @c man end
10841084
10851085 @c man begin AUTHORS
doc/general.texi+1−1
@@ -91,7 +91,7 @@ library: · 90 unmodified lines
9191 @item Electronic Arts cdata @tab @tab X
9292 @item Electronic Arts Multimedia @tab @tab X
9393 @tab Used in various EA games; files have extensions like WVE and UV2.
94−@item FFM (FFserver live feed) @tab X @tab X
94+@item FFM (AVserver live feed) @tab X @tab X
9595 @item Flash (SWF) @tab X @tab X
9696 @item Flash 9 (AVM2) @tab X @tab X
9797 @tab Only embedded audio is decoded.
ffmpeg.c+4−4
@@ -691,7 +691,7 @@ static OutputStream *new_output_stream(AVFormatContext *oc, int file_idx, AVCode · 690 unmodified lines
691691 return ost;
692692 }
693693
694−static int read_ffserver_streams(AVFormatContext *s, const char *filename)
694+static int read_avserver_streams(AVFormatContext *s, const char *filename)
695695 {
696696 int i, err;
697697 AVFormatContext *ic = NULL;
@@ -3766,9 +3766,9 @@ static void opt_output_file(const char *filename) · 3068 unmodified lines
37663766
37673767 if (!strcmp(file_oformat->name, "ffm") &&
37683768 av_strstart(filename, "http:", NULL)) {
3769− /* special case for files sent to ffserver: we get the stream
3770− parameters from ffserver */
3771− int err = read_ffserver_streams(oc, filename);
3769+ /* special case for files sent to avserver: we get the stream
3770+ parameters from avserver */
3771+ int err = read_avserver_streams(oc, filename);
37723772 if (err < 0) {
37733773 print_error(filename, err);
37743774 ffmpeg_exit(1);
libavformat/ffm.h+1−1
@@ -1,5 +1,5 @@
11 /*
2− * FFM (ffserver live feed) common header
2+ * FFM (avserver live feed) common header
33 * Copyright (c) 2001 Fabrice Bellard
44 *
55 * This file is part of Libav.
libavformat/ffmdec.c+4−4
@@ -1,5 +1,5 @@
11 /*
2− * FFM (ffserver live feed) demuxer
2+ * FFM (avserver live feed) demuxer
33 * Copyright (c) 2001 Fabrice Bellard
44 *
55 * This file is part of Libav.
@@ -23,7 +23,7 @@ · 17 unmodified lines
2323 #include "libavutil/intfloat_readwrite.h"
2424 #include "avformat.h"
2525 #include "ffm.h"
26−#if CONFIG_FFSERVER
26+#if CONFIG_AVSERVER
2727 #include <unistd.h>
2828
2929 int64_t ffm_read_write_index(int fd)
@@ -55,7 +55,7 @@ void ffm_set_write_index(AVFormatContext *s, int64_t pos, int64_t file_size) · 25 unmodified lines
5555 ffm->write_index = pos;
5656 ffm->file_size = file_size;
5757 }
58−#endif // CONFIG_FFSERVER
58+#endif // CONFIG_AVSERVER
5959
6060 static int ffm_is_avail_data(AVFormatContext *s, int size)
6161 {
@@ -510,7 +510,7 @@ static int ffm_probe(AVProbeData *p) · 448 unmodified lines
510510
511511 AVInputFormat ff_ffm_demuxer = {
512512 .name = "ffm",
513− .long_name = NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"),
513+ .long_name = NULL_IF_CONFIG_SMALL("FFM (AVserver live feed) format"),
514514 .priv_data_size = sizeof(FFMContext),
515515 .read_probe = ffm_probe,
516516 .read_header = ffm_read_header,
libavformat/ffmenc.c+2−2
@@ -1,5 +1,5 @@
11 /*
2− * FFM (ffserver live feed) muxer
2+ * FFM (avserver live feed) muxer
33 * Copyright (c) 2001 Fabrice Bellard
44 *
55 * This file is part of Libav.
@@ -242,7 +242,7 @@ static int ffm_write_trailer(AVFormatContext *s) · 236 unmodified lines
242242
243243 AVOutputFormat ff_ffm_muxer = {
244244 .name = "ffm",
245− .long_name = NULL_IF_CONFIG_SMALL("FFM (FFserver live feed) format"),
245+ .long_name = NULL_IF_CONFIG_SMALL("FFM (AVserver live feed) format"),
246246 .mime_type = "",
247247 .extensions = "ffm",
248248 .priv_data_size = sizeof(FFMContext),
libavformat/mpjpeg.c+1−1
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222
2323 /* Multipart JPEG */
2424
25−#define BOUNDARY_TAG "ffserver"
25+#define BOUNDARY_TAG "avserver"
2626
2727 static int mpjpeg_write_header(AVFormatContext *s)
2828 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t