New submission from burek <[email protected]>:

after running ffmpeg, first 30 frames appear to get encoded/streamed, 
and then the error appears: av_interleaved_write_frame(): Connection 
reset by peer


# ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -f flv -r 15 -vcodec 
libx264 -vpre fast -vpre main http://localhost:9999/feed1.ffm
FFmpeg version git-33f2993, Copyright (c) 2000-2010 the FFmpeg 
developers
  built on Dec 30 2010 04:06:45 with gcc 4.4.5
  configuration: --enable-pthreads --enable-runtime-cpudetect --enable-
gpl --enable-shared --disable-static --enable-libx264 --enable-nonfree
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.101. 0 / 52.101. 0
  libavformat   52.91. 0 / 52.91. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
[video4linux2 @ 0x99054c0] Estimating duration from bitrate, this may be 
inaccurate
Input #0, video4linux2, from '/dev/video0':
  Duration: N/A, start: 1293729128.545343, bitrate: N/A
    Stream #0.0: Video: rawvideo, yuv420p, 320x240, -2147483 kb/s, 1000k 
tbr, 1000k tbn, 1000k tbc
[buffer @ 0x990b360] w:320 h:240 pixfmt:yuv420p
[libx264 @ 0x99078f0] using cpu capabilities: MMX2 SSE2Fast SSSE3 
Cache64
[libx264 @ 0x99078f0] profile Main, level 1.3
[libx264 @ 0x99078f0] 264 - core 112 r1834 a51816a - H.264/MPEG-4 AVC 
codec - Copyleft 2003-2010 - http://www.videolan.org/x264.html - 
options: cabac=1 ref=2 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=6 
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 
8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=1 
sliced_threads=0 nr=0 decimate=1 interlaced=0 constrained_intra=0 
bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 
weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 
rc_lookahead=30 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 
qpmin=10 qpmax=51 qpstep=4 ip_ratio=1.41 aq=1:1.00
Output #0, flv, to 'http://localhost:9999/feed1.ffm':
  Metadata:
    encoder         : Lavf52.91.0
    Stream #0.0: Video: libx264, yuv420p, 320x240, q=10-51, 200 kb/s, 1k 
tbn, 15 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
av_interleaved_write_frame(): Connection reset by peer10000000000.00 
bitrate=   0.0kbits/s dup=0 drop=19



ffserver.config:

Port 9999
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
NoDaemon

<Feed feed1.ffm>
  File /tmp/feed1.ffm
  FileMaxSize 16M
  ACL allow 127.0.0.1
  ACL allow 192.168.0.0 192.168.0.255
</Feed>

<Stream test.asf>
  Feed feed1.ffm
  Format asf

  VideoBitRate 128
  VideoBufferSize 400
  VideoFrameRate 15
  VideoSize 320x240
  VideoGopSize 12
  VideoHighQuality
  Video4MotionVector
  VideoCodec libx264

  NoAudio
</Stream>

----------
messages: 13127
priority: normal
status: new
substatus: new
title: ffmpeg: av_interleaved_write_frame(): Connection reset by peer
type: bug

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2466>
________________________________________________

Reply via email to