Hello, I would like to use ffmpeg and ffserver to stream to a flash player using the way explained in : http://ubuntuforums.org/archive/index.php/t-665607.html
So here is my ffserver.conf : --------------------------------------------------------- Port 8090 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 1000 CustomLog - NoDaemon <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 5M 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 VideoCodec flv VideoFrameRate 15 VideoBufferSize 80000 VideoBitRate 200 VideoQMin 5 VideoQMax 25 VideoSize 320x240 PreRoll 0 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> ----------------------- END OF ffserver.conf ------------------------------- I run ffserver as root, and there is no error message, all seems to be OK. -------------------- BEGINING OF ffserver output ---------------------------- FFserver version SVN-r21566, Copyright (c) 2000-2010 Fabrice Bellard, et al. built on Mar 29 2010 17:21:05 with gcc 4.4.1 configuration: libavutil 50. 8. 0 / 50. 8. 0 libavcodec 52.49. 0 / 52.49. 0 libavformat 52.48. 0 / 52.48. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 9. 0 / 0. 9. 0 Tue Mar 30 18:12:34 2010 FFserver started. -------------------- END OF ffserver output ---------------------------- Then, I run ffmpeg with the following command line (as root) : sudo ./ffmpeg -r 15 -s 320x240 -f video4linux2 -i /dev/video1 -f flv -r 15 http://127.0.0.1:8090/feed1.ffm As soon as ffmpeg is running, I have got the following message in the ffserver's shell : ------------------- BEGINING OF ffserver output ---------------------------- Tue Mar 30 18:12:39 2010 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 4096 -------------------- END OF ffserver output ---------------------------- All seems ok... but, there are two different errors when I run ffmpeg (in the ffmpeg's console): ERROR A : =========== Some times, ffmpeg write it : ---------------------------------- BEGINING OF ffmpeg output (error A) ----------------------------- a...@hp1:~/Videos$ sudo ffmpeg -loglevel verbose -r 15 -s 320x240 -f video4linux2 -i /dev/video1 -f flv http://192.168.0.53:8090/feed1.ffm FFmpeg version SVN-r21566, Copyright (c) 2000-2010 Fabrice Bellard, et al. built on Mar 29 2010 17:21:05 with gcc 4.4.1 configuration: libavutil 50. 8. 0 / 50. 8. 0 libavcodec 52.49. 0 / 52.49. 0 libavformat 52.48. 0 / 52.48. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 9. 0 / 0. 9. 0 [video4linux2 @ 0x9cf13a0][3]Capabilities: 4000001 [video4linux2 @ 0x9cf13a0]Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2, from '/dev/video1': Duration: N/A, start: 0.000000, bitrate: 18432 kb/s Stream #0.0: Video: rawvideo, yuyv422, 320x240, 18432 kb/s, 15 tbr, 1000k tbn, 15 tbc Output #0, flv, to 'http://192.168.0.53:8090/feed1.ffm': Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 1k tbn, 15 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding [flv @ 0x9cf3bf0]Error, Invalid timestamp=-2147483648, last=0 Video encoding failed ---------------------------------- END OF ffmpeg output (error A) ----------------------------- What is this negative time stamp ??? I try to force timestamp help to the option -timestamp XX, but result become "invalid time stamp XX" ! But if I try to re-run my ffmpeg command two or three times, this error disappear, and the problem will be "the error B" described as follow. ERROR B : ========= I try to run ffmpeg with the following command line : a...@hp1:~/Sources/ffmpeg-0.5.1$ sudo ./ffmpeg -r 15 -s 320x240 -f video4linux2 -i /dev/video1 -f flv -r 15 http://127.0.0.1:8090/feed1.ffm ---------------------------------- BEGINING OF ffmpeg output (error B) ----------------------------- FFmpeg version 0.5.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 built on Mar 29 2010 16:25:21, gcc: 4.4.1 [video4linux2 @ 0x8f9b290][3]Capabilities: 4000001 Input #0, video4linux2, from '/dev/video1': Duration: N/A, start: 1269965583.478284, bitrate: 18432 kb/s Stream #0.0: Video: rawvideo, yuyv422, 320x240, 18432 kb/s, 15 tbr, 1000k tbn, 15 tbc Output #0, flv, to 'http://127.0.0.1:8090/feed1.ffm': Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 15 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding av_interleaved_write_frame(): Error while opening file ---------------------------------- END OF ffmpeg output (error B) ----------------------------- And nothing more happens.... I read somewhere that this error message seems that ffmpeg can't open the destination file (http://127.0.0.1:8090/feed1.ffm) So here is my question : What am I doing wrong ??? Regards, A.BARRAL _______________________________________________ ffserver-user mailing list ffserver-user@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user