<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    My apologies for cross-posting, I was unaware that there was an
    actual list for ffserver- I have been a subscriber to ffmpeg-user
    for some time, but only for reference and to learn new tricks with
    ffmpeg so I haven't actually posted before.<br>
    <br>
    I got back to an old project I've been fiddling with for some time
    now, but ffserver doesn't appear to be doing so well now. I've run
    some updates, new platform, and new platform versions and I've done
    ok until now.
    <br>
    <br>
    When I first kicked ffserver off it refused to bind to the network
    at all, after some retries, searching through confs, it worked- not
    sure what the failure was after all that.
    <br>
    <br>
    When I started sending data to the server using ffmpeg I get the
    following error:
    <br>
    <br>
    av_interleaved_write_frame(): Connection reset by peer
    <br>
    <br>
    My data is gstreamer pipelined dvb stream with ffmpeg splitting and
    processing to mpegts output, although I have another method which
    essentially has the same result anyway- gstreamer drops the pipe
    when the buffers fill because ffmpeg doesn't take the data from the
    pipe. Cmd is as follows:
    <br>
    <br>
    gst-launch dvbsrc adapter=1 frequency=xxxxxxxx modulation="QAM 64"
    bandwidth=7 guard=16 ! queue ! fdsink | ffmpeg -i - -f mpegts -vsync
    0 -vcodec copy -acodec copy -map_metadata 0:p:1601 <a
      class="moz-txt-link-freetext"
      href="http://127.0.0.1:8090/stream1.ffm">http://127.0.0.1:8090/stream1.ffm</a>
    -f mpegts -vsync 0 -vcodec copy -acodec copy -map_metadata 0:p:1605
    <a class="moz-txt-link-freetext"
      href="http://127.0.0.1:8090/stream2.ffm">http://127.0.0.1:8090/stream2.ffm</a>
    -f mpegts -vsync 0 -vcodec copy -acodec copy -map_metadata 0:p:1608
    <a class="moz-txt-link-freetext"
      href="http://127.0.0.1:8090/stream3.ffm">http://127.0.0.1:8090/stream3.ffm</a>
    <br>
    <br>
    If I output to file it all goes beautifully.
    <br>
    <br>
    Does anyone have any clues on this? Any help would be much
    appreciated.
    <br>
    <br>
    I also could use some help as to where the logs are going as well?
    <br>
    <br>
    Cheers
    <br>
    <br>
    My platform is this:
    <br>
    <br>
    FreeBSD <server> 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1
    <br>
    ffmpeg version 0.7.7, Copyright (c) 2000-2011 the FFmpeg developers
    <br>
      built on Nov 26 2011 12:45:06 with gcc 4.2.1 20070719  [FreeBSD]
    <br>
      configuration: --prefix=/usr/local --mandir=/usr/local/man
    --enable-shared --enable-gpl --enable-postproc --enable-avfilter
    --enable-pthreads --enable-x11grab --enable-memalign-hack
    --enable-runtime-cpudetect --cc=cc --extra-cflags='-msse
    -I/usr/local/include/vorbis -I/usr/local/include'
    --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread
    --disable-debug --enable-libaacplus --disable-indev=alsa
    --disable-outdev=alsa --enable-libopencore-amrnb
    --enable-libopencore-amrwb --enable-libcelt --enable-libdirac
    --enable-libfaac --enable-libfreetype --enable-frei0r
    --enable-libgsm --enable-libmp3lame --enable-libopencv
    --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
    --disable-ffplay --enable-libspeex --enable-libtheora
    --disable-vaapi --disable-vdpau --enable-libvo-aacenc
    --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
    --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3
    <br>
      libavutil    50. 43. 0 / 50. 43. 0
    <br>
      libavcodec   52.122. 0 / 52.122. 0
    <br>
      libavformat  52.110. 0 / 52.110. 0
    <br>
      libavdevice  52.  5. 0 / 52.  5. 0
    <br>
      libavfilter   1. 80. 0 /  1. 80. 0
    <br>
      libswscale    0. 14. 1 /  0. 14. 1
    <br>
      libpostproc  51.  2. 0 / 51.  2. 0
    <br>
    ffserver version 0.7.7, Copyright (c) 2000-2011 the FFmpeg
    developers
    <br>
      built on Nov 26 2011 12:45:06 with gcc 4.2.1 20070719  [FreeBSD]
    <br>
      configuration: --prefix=/usr/local --mandir=/usr/local/man
    --enable-shared --enable-gpl --enable-postproc --enable-avfilter
    --enable-pthreads --enable-x11grab --enable-memalign-hack
    --enable-runtime-cpudetect --cc=cc --extra-cflags='-msse
    -I/usr/local/include/vorbis -I/usr/local/include'
    --extra-ldflags='-L/usr/local/lib ' --extra-libs=-pthread
    --disable-debug --enable-libaacplus --disable-indev=alsa
    --disable-outdev=alsa --enable-libopencore-amrnb
    --enable-libopencore-amrwb --enable-libcelt --enable-libdirac
    --enable-libfaac --enable-libfreetype --enable-frei0r
    --enable-libgsm --enable-libmp3lame --enable-libopencv
    --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
    --disable-ffplay --enable-libspeex --enable-libtheora
    --disable-vaapi --disable-vdpau --enable-libvo-aacenc
    --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
    --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3
    <br>
      libavutil    50. 43. 0 / 50. 43. 0
    <br>
      libavcodec   52.122. 0 / 52.122. 0
    <br>
      libavformat  52.110. 0 / 52.110. 0
    <br>
      libavdevice  52.  5. 0 / 52.  5. 0
    <br>
      libavfilter   1. 80. 0 /  1. 80. 0
    <br>
      libswscale    0. 14. 1 /  0. 14. 1
    <br>
      libpostproc  51.  2. 0 / 51.  2. 0
    <br>
    <br>
    Config:
    <br>
    <br>
    # Port on which the server is listening. You must select a different
    <br>
    # port from your standard HTTP web server if it is running on the
    same
    <br>
    # computer.
    <br>
    Port 8090
    <br>
    <br>
    # Address on which the server is bound. Only useful if you have
    <br>
    # several network interfaces.
    <br>
    BindAddress 0.0.0.0
    <br>
    <br>
    # Number of simultaneous HTTP connections that can be handled. It
    has
    <br>
    # to be defined <b class="moz-txt-star"><span class="moz-txt-tag">*</span>before<span
        class="moz-txt-tag">*</span></b> the MaxClients parameter, since
    it defines the
    <br>
    # MaxClients maximum limit.
    <br>
    MaxHTTPConnections 2000
    <br>
    <br>
    # Number of simultaneous requests that can be handled. Since
    FFServer
    <br>
    # is very fast, it is more likely that you will want to leave this
    high
    <br>
    # and use MaxBandwidth, below.
    <br>
    MaxClients 1000
    <br>
    <br>
    # This the maximum amount of kbit/sec that you are prepared to
    <br>
    # consume when streaming to clients.
    <br>
    MaxBandwidth 500000
    <br>
    <br>
    # Access log file (uses standard Apache log file format)
    <br>
    # '-' is the standard output.
    <br>
    CustomLog -
    <br>
    <br>
    # Suppress that if you want to launch ffserver as a daemon.
    <br>
    NoDaemon
    <br>
    <br>
    <br>
    ##################################################################
    <br>
    # Definition of the live feeds. Each live feed contains one video
    <br>
    # and/or audio sequence coming from an ffmpeg encoder or another
    <br>
    # ffserver. This sequence may be encoded simultaneously with several
    <br>
    # codecs at several resolutions.
    <br>
    <br>
    <Feed feed1.ffm>
    <br>
    <br>
    # You must use 'ffmpeg' to send a live feed to ffserver. In this
    <br>
    # example, you can type:
    <br>
    #
    <br>
    # ffmpeg <a class="moz-txt-link-freetext"
      href="http://localhost:8090/feed1.ffm">http://localhost:8090/feed1.ffm</a>
    <br>
    <br>
    # ffserver can also do time shifting. It means that it can stream
    any
    <br>
    # previously recorded live stream. The request should contain:
    <br>
    # <a class="moz-txt-link-rfc2396E"
      href="http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]">"http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]"</a>.You
    must specify
    <br>
    # a path where the feed is stored on disk. You also specify the
    <br>
    # maximum size of the feed, where zero means unlimited. Default:
    <br>
    # File=/tmp/feed_name.ffm FileMaxSize=5M
    <br>
    File /tmp/feed1.ffm
    <br>
    FileMaxSize 512M
    <br>
    <br>
    # You could specify
    <br>
    # ReadOnlyFile /saved/specialvideo.ffm
    <br>
    # This marks the file as readonly and it will not be deleted or
    updated.
    <br>
    <br>
    # Specify launch in order to start ffmpeg automatically.
    <br>
    # First ffmpeg must be defined with an appropriate path if needed,
    <br>
    # after that options can follow, but avoid adding the <a
      class="moz-txt-link-freetext" href="http://">http://</a> field
    <br>
    #Launch ffmpeg
    <br>
    <br>
    # Only allow connections from localhost to the feed.
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    ACL allow 127.0.0.1
    <br>
    <br>
    </Feed>
    <br>
    <br>
    <Feed stream2.ffm>
    <br>
    <br>
    # Set file size to 2.25G
    <br>
    File /home/share/stream2.ffm
    <br>
    FileMaxSize 2304M
    <br>
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    ACL allow 127.0.0.1
    <br>
    <br>
    </Feed>
    <br>
    <br>
    <Feed stream3.ffm>
    <br>
    <br>
    # Set file size to 2.25G
    <br>
    File /home/share/stream3.ffm
    <br>
    FileMaxSize 2304M
    <br>
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    ACL allow 127.0.0.1
    <br>
    <br>
    </Feed>
    <br>
    <br>
    <Feed stream1.ffm>
    <br>
    <br>
    # Set file size to 6.5G
    <br>
    File /home/share/stream1.ffm
    <br>
    FileMaxSize 6656M
    <br>
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    ACL allow 127.0.0.1
    <br>
    <br>
    </Feed>
    <br>
    <br>
    <br>
    ##################################################################
    <br>
    # Now you can define each stream which will be generated from the
    <br>
    # original audio and video stream. Each format has a filename (here
    <br>
    # 'test1.mpg'). FFServer will send this stream when answering a
    <br>
    # request containing this filename.
    <br>
    <br>
    <Stream test1.mpg>
    <br>
    <br>
    # coming from live feed 'feed1'
    <br>
    Feed feed1.ffm
    <br>
    <br>
    # Format of the stream : you can choose among:
    <br>
    # mpeg       : MPEG-1 multiplexed video and audio
    <br>
    # mpegvideo  : only MPEG-1 video
    <br>
    # mp2        : MPEG-2 audio (use AudioCodec to select layer 2 and 3
    codec)
    <br>
    # ogg        : Ogg format (Vorbis audio codec)
    <br>
    # rm         : RealNetworks-compatible stream. Multiplexed audio and
    video.
    <br>
    # ra         : RealNetworks-compatible stream. Audio only.
    <br>
    # mpjpeg     : Multipart JPEG (works with Netscape without any
    plugin)
    <br>
    # jpeg       : Generate a single JPEG image.
    <br>
    # asf        : ASF compatible streaming (Windows Media Player
    format).
    <br>
    # swf        : Macromedia Flash compatible stream
    <br>
    # avi        : AVI format (MPEG-4 video, MPEG audio sound)
    <br>
    Format mpeg
    <br>
    <br>
    # Bitrate for the audio stream. Codecs usually support only a few
    <br>
    # different bitrates.
    <br>
    AudioBitRate 192
    <br>
    <br>
    # Number of audio channels: 1 = mono, 2 = stereo
    <br>
    AudioChannels 2
    <br>
    <br>
    # Sampling frequency for audio. When using low bitrates, you should
    <br>
    # lower this frequency to 22050 or 11025. The supported frequencies
    <br>
    # depend on the selected audio codec.
    <br>
    AudioSampleRate 44100
    <br>
    <br>
    # Bitrate for the video stream
    <br>
    VideoBitRate 1000
    <br>
    <br>
    # Ratecontrol buffer size
    <br>
    VideoBufferSize 40
    <br>
    <br>
    # Number of frames per second
    <br>
    VideoFrameRate 25
    <br>
    <br>
    # Size of the video frame: WxH (default: 160x128)
    <br>
    # The following abbreviations are defined: sqcif, qcif, cif, 4cif,
    qqvga,
    <br>
    # qvga, vga, svga, xga, uxga, qxga, sxga, qsxga, hsxga, wvga, wxga,
    wsxga,
    <br>
    # wuxga, woxga, wqsxga, wquxga, whsxga, whuxga, cga, ega, hd480,
    hd720,
    <br>
    # hd1080
    <br>
    VideoSize 160x128
    <br>
    <br>
    # Transmit only intra frames (useful for low bitrates, but kills
    frame rate).
    <br>
    #VideoIntraOnly
    <br>
    <br>
    # If non-intra only, an intra frame is transmitted every
    VideoGopSize
    <br>
    # frames. Video synchronization can only begin at an intra frame.
    <br>
    VideoGopSize 12
    <br>
    <br>
    # More MPEG-4 parameters
    <br>
    # VideoHighQuality
    <br>
    # Video4MotionVector
    <br>
    <br>
    # Choose your codecs:
    <br>
    #AudioCodec mp2
    <br>
    #VideoCodec mpeg1video
    <br>
    <br>
    # Suppress audio
    <br>
    #NoAudio
    <br>
    <br>
    # Suppress video
    <br>
    #NoVideo
    <br>
    <br>
    #VideoQMin 3
    <br>
    #VideoQMax 31
    <br>
    <br>
    # Set this to the number of seconds backwards in time to start. Note
    that
    <br>
    # most players will buffer 5-10 seconds of video, and also you need
    to allow
    <br>
    # for a keyframe to appear in the data stream.
    <br>
    #Preroll 15
    <br>
    <br>
    # ACL:
    <br>
    <br>
    # You can allow ranges of addresses (or single addresses)
    <br>
    #ACL ALLOW <first address> <last address>
    <br>
    <br>
    # You can deny ranges of addresses (or single addresses)
    <br>
    #ACL DENY <first address> <last address>
    <br>
    <br>
    # You can repeat the ACL allow/deny as often as you like. It is on a
    per
    <br>
    # stream basis. The first match defines the action. If there are no
    matches,
    <br>
    # then the default is the inverse of the last ACL statement.
    <br>
    #
    <br>
    # Thus 'ACL allow localhost' only allows access from localhost.
    <br>
    # 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1
    and
    <br>
    # allow everybody else.
    <br>
    <br>
    </Stream>
    <br>
    <br>
    <br>
    ##################################################################
    <br>
    # Example streams
    <br>
    <br>
    <br>
    # Multipart JPEG
    <br>
    <br>
    #<Stream test.mjpg>
    <br>
    #Feed feed1.ffm
    <br>
    #Format mpjpeg
    <br>
    #VideoFrameRate 2
    <br>
    #VideoIntraOnly
    <br>
    #NoAudio
    <br>
    #Strict -1
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    # Single JPEG
    <br>
    <br>
    #<Stream test.jpg>
    <br>
    #Feed feed1.ffm
    <br>
    #Format jpeg
    <br>
    #VideoFrameRate 2
    <br>
    #VideoIntraOnly
    <br>
    ##VideoSize 352x240
    <br>
    #NoAudio
    <br>
    #Strict -1
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    # Flash
    <br>
    <br>
    <Stream test.swf>
    <br>
    Feed feed1.ffm
    <br>
    Format swf
    <br>
    VideoFrameRate 25
    <br>
    #VideoIntraOnly
    <br>
    VideoCodec libx264
    <br>
    AudioCodec libmp3lame
    <br>
    VideoSize hd720
    <br>
    VideoBitRate 1200
    <br>
    #NoAudio
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    </Stream>
    <br>
    <br>
    <br>
    # ASF compatible
    <br>
    <br>
    #<Stream test.asf>
    <br>
    #Feed feed1.ffm
    <br>
    #Format asf
    <br>
    #VideoFrameRate 15
    <br>
    #VideoSize 352x240
    <br>
    #VideoBitRate 256
    <br>
    #VideoBufferSize 40
    <br>
    #VideoGopSize 30
    <br>
    #AudioBitRate 64
    <br>
    #StartSendOnKey
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    # MP3 audio
    <br>
    <br>
    #<Stream test.mp3>
    <br>
    #Feed feed1.ffm
    <br>
    #Format mp2
    <br>
    #AudioCodec mp3
    <br>
    #AudioBitRate 64
    <br>
    #AudioChannels 1
    <br>
    #AudioSampleRate 44100
    <br>
    #NoVideo
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    # Ogg Vorbis audio
    <br>
    <br>
    #<Stream test.ogg>
    <br>
    #Feed feed1.ffm
    <br>
    #Title "Stream title"
    <br>
    #AudioBitRate 64
    <br>
    #AudioChannels 2
    <br>
    #AudioSampleRate 44100
    <br>
    #NoVideo
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    # Real with audio only at 32 kbits
    <br>
    <br>
    #<Stream test.ra>
    <br>
    #Feed feed1.ffm
    <br>
    #Format rm
    <br>
    #AudioBitRate 32
    <br>
    #NoVideo
    <br>
    #NoAudio
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    # Real with audio and video at 64 kbits
    <br>
    <br>
    #<Stream test.rm>
    <br>
    #Feed feed1.ffm
    <br>
    #Format rm
    <br>
    #AudioBitRate 32
    <br>
    #VideoBitRate 128
    <br>
    #VideoFrameRate 25
    <br>
    #VideoGopSize 25
    <br>
    #NoAudio
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    ##################################################################
    <br>
    # Local Streams
    <br>
    <br>
    <Stream stream2.mpg>
    <br>
    Feed ten.ffm
    <br>
    Format mp2
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    ACL allow 127.0.0.1
    <br>
    </Stream>
    <br>
    <br>
    <Stream stream3.mpg>
    <br>
    Feed eleven.ffm
    <br>
    Format mp2
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    ACL allow 127.0.0.1
    <br>
    </Stream>
    <br>
    <br>
    <Stream stream1.mpg>
    <br>
    Feed one.ffm
    <br>
    Format mp2
    <br>
    ACL allow 192.168.0.0 255.255.255.0
    <br>
    ACL allow 127.0.0.1
    <br>
    </Stream>
    <br>
    <br>
    ##################################################################
    <br>
    # A stream coming from a file: you only need to set the input
    <br>
    # filename and optionally a new format. Supported conversions:
    <br>
    #    AVI -> ASF
    <br>
    <br>
    #<Stream file.rm>
    <br>
    #File "/usr/local/httpd/htdocs/tlive.rm"
    <br>
    #NoAudio
    <br>
    #</Stream>
    <br>
    <br>
    #<Stream file.asf>
    <br>
    #File "/usr/local/httpd/htdocs/test.asf"
    <br>
    #NoAudio
    <br>
    #Author "Me"
    <br>
    #Copyright "Super MegaCorp"
    <br>
    #Title "Test stream from disk"
    <br>
    #Comment "Test comment"
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    ##################################################################
    <br>
    # RTSP examples
    <br>
    #
    <br>
    # You can access this stream with the RTSP URL:
    <br>
    #   rtsp://localhost:5454/test1-rtsp.mpg
    <br>
    #
    <br>
    # A non-standard RTSP redirector is also created. Its URL is:
    <br>
    #   <a class="moz-txt-link-freetext"
      href="http://localhost:8090/test1-rtsp.rtsp">http://localhost:8090/test1-rtsp.rtsp</a>
    <br>
    <br>
    #<Stream test1-rtsp.mpg>
    <br>
    #Format rtp
    <br>
    #File "/usr/local/httpd/htdocs/test1.mpg"
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    ##################################################################
    <br>
    # SDP/multicast examples
    <br>
    #
    <br>
    # If you want to send your stream in multicast, you must set the
    <br>
    # multicast address with MulticastAddress. The port and the TTL can
    <br>
    # also be set.
    <br>
    #
    <br>
    # An SDP file is automatically generated by ffserver by adding the
    <br>
    # 'sdp' extension to the stream name (here
    <br>
    # <a class="moz-txt-link-freetext"
      href="http://localhost:8090/test1-sdp.sdp">http://localhost:8090/test1-sdp.sdp</a>).
    You should usually give this
    <br>
    # file to your player to play the stream.
    <br>
    #
    <br>
    # The 'NoLoop' option can be used to avoid looping when the stream
    is
    <br>
    # terminated.
    <br>
    <br>
    #<Stream test1-sdp.mpg>
    <br>
    #Format rtp
    <br>
    #File "/usr/local/httpd/htdocs/test1.mpg"
    <br>
    #MulticastAddress 224.124.0.1
    <br>
    #MulticastPort 5000
    <br>
    #MulticastTTL 16
    <br>
    #NoLoop
    <br>
    #</Stream>
    <br>
    <br>
    <br>
    ##################################################################
    <br>
    # Special streams
    <br>
    <br>
    # Server status
    <br>
    <br>
    <Stream stat.html>
    <br>
    Format status
    <br>
    <br>
    # Only allow local people to get the status
    <br>
    ACL allow localhost
    <br>
    ACL allow 192.168.0.0 192.168.255.255
    <br>
    <br>
    #FaviconURL <a class="moz-txt-link-freetext"
      href="http://pond1.gladstonefamily.net:8080/favicon.ico">http://pond1.gladstonefamily.net:8080/favicon.ico</a>
    <br>
    </Stream>
    <br>
    <br>
    <br>
    # Redirect index.html to the appropriate site
    <br>
    <br>
    <Redirect index.html>
    <br>
    URL <a class="moz-txt-link-freetext" href="http://">http://</a><server>/<dir>
    <br>
    </Redirect><br>
  </body>
</html>