burek <[email protected]> added the comment: btw, I've recompiled ffmpeg again (only with libx264), so no patching was involved, and I still get errors :/ isn't there a simple example, how to grab a video from video4linux2 (web camera) and stream it to ffserver, using libx264 :/
the error I'm getting is a weird one.. the ffmpeg starts apparently nice (although all frames are dropped?), with: ffmpeg -f video4linux2 -s cif -i /dev/video0 -f flv -b 200K -r 5 -vcodec libx264 -vpre libx264-fast -vpre libx264-main http://localhost:9999/feed1.ffm but, after 30 frames, I get an error like: Press [q] to stop encoding frame= 10 fps= 10 q=8272314.1 size= 0kB time=10000000000.00 bitrate= 0.0kbits/s dup=0 drop=38 (...after frame #30...) av_interleaved_write_frame(): Connection reset by peer ffserver.conf file is: Port 9999 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 1000 CustomLog - NoDaemon <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 2M ACL allow 127.0.0.1 ACL allow 192.168.0.0 192.168.0.255 </Feed> <Stream test.flv> Feed feed1.ffm Format flv #AudioBitRate 32 #AudioChannels 2 #AudioSampleRate 44100 VideoBitRate 200 VideoFrameRate 5 VideoSize cif #AudioCodec libaacplus VideoCodec libx264 NoAudio </Stream> <Stream stat.html> Format status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 </Stream> <Redirect index.html> URL http://www.ffmpeg.org/ </Redirect> Is there any general way for me to troubleshoot this issue or am I supposed to bother you with my stupid configuration :( ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2464> ________________________________________________
