Hello, any hints about the setup would be great. My aim is to stream with ffserver webcam video which is delivered and encodey by ffmpeg.
Iam setting up ffserver with this config: Port 8090 BindAddress 0.0.0.0 RTSPPort 5004 RTSPBindAddress 0.0.0.0 MaxClients 10 MaxBandwidth 40000 NoDaemon <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 5M ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 </Feed> <stream webcamvideo.mp4> Feed feed1.ffm Format rtp VideoCodec libx264 VideoFrameRate 15 VideoBufferSize 40 VideoBitRate 500 VideoSize 640x480 # which value? VideoGopSize 15 NoAudio # i had problems with videostreaming with file. player said that header were corrupted, so i used this config, but it doesnt help. i still let it in. AVOptionVideo flags +global_header </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> Starting the server with, which is working ffserver -d -f ffserverwebcam.conf Now I want to use ffmpeg to deliver the webcamvideo with ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -an -vcodec libx264 -vpre default -bf 5 http://localhost:8090/feed1.ffm ffmpeg doesnt encode the video and ends with this output FFmpeg version SVN-r22390, Copyright (c) 2000-2010 the FFmpeg developers built on Mar 10 2010 11:30:16 with gcc 4.4.1 configuration: --prefix=/usr/local --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libmp3lame --enable-libvorbis --enable-libschroedinger --enable-libspeex --enable-libx264 --enable-libxvid --enable-zlib --enable-pthreads --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-gpl --enable-version3 --enable-nonfree --enable-x11grab --arch=x86_64 --disable-stripping --disable-optimizations --enable-debug libavutil 50.11. 0 / 50.11. 0 libavcodec 52.58. 0 / 52.58. 0 libavformat 52.55. 0 / 52.55. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.17. 0 / 1.17. 0 libswscale 0.10. 0 / 0.10. 0 libpostproc 51. 2. 0 / 51. 2. 0 [video4linux2 @ 0x2800050][3]Capabilities: 5000001 [video4linux2 @ 0x2800050]Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2, from '/dev/video0': Duration: N/A, start: 1268222505.539241, bitrate: 55296 kb/s Stream #0.0: Video: rawvideo, yuv420p, 640x480, 55296 kb/s, 15 tbr, 1000k tbn, 15 tbc [libx264 @ 0x2807500]broken ffmpeg default settings detected [libx264 @ 0x2807500]use an encoding preset (vpre) Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Stream #0.0: Video: libx264, yuv420p, 640x480, q=3-31, 500 kb/s, 1000k tbn, 15 tbc Stream mapping: Stream #0.0 -> #0.0 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height ioctl(VIDIOC_QBUF) Thats it... ffmpeg is always telling me [libx264 @ 0x2807500]broken ffmpeg default settings detected [libx264 @ 0x2807500]use an encoding preset (vpre) I put all libx264-*.ffpreset to [home]/[user]/.ffmpeg so ffmpeg should find the presets. He will lookup to .ffmpeg-folder concatenate the string of the ffmpeg params -vcodec with -vpre and with ".ffpreset", so it should find a "libx264-default.ffpreset". But its still complaining that it doesnt find it. But it runs, so I think its ok ?! The next message is more problematic Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height ioctl(VIDIOC_QBUF Any hints and help would be appreciated... Thank you, Ali Ayhan D. _______________________________________________ ffserver-user mailing list ffserver-user@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user