Hi josé,

Ive tried out your config from your post
http://lists.mplayerhq.hu/pipermail/ffserver-user/2009-November/000112.html
and managed, too, that ffmpeg is doings its work

1.) So i execute the ffserver with this configfile:

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 50M
ACL allow localhost
ACL allow 127.0.0.1
ACL allow 192.168.0.0 192.168.255.255
</Feed>

<stream webcamvideo>

    Feed feed1.ffm
    Format rtp
    VideoCodec libx264
    VideoFrameRate 15
    VideoBufferSize 40
    VideoBitRate 70
    VideoSize 640x480
    Preroll 5
    AVOptionVideo coder 0
    AVOptionVideo flags +loop
    AVOptionVideo cmp +chroma
    AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8
    AVOptionVideo me_method hex
    AVOptionVideo subq 7
    AVOptionVideo me_range 16
    AVOptionVideo g 50
    AVOptionVideo keyint_min 5
    AVOptionVideo sc_threshold 0
    AVOptionVideo i_qfactor .71
    AVOptionVideo b_strategy 1
    AVOptionVideo qcomp 0.6
    AVOptionVideo qmin 10
    AVOptionVideo qmax 51
    AVOptionVideo qdiff 4
    AVOptionVideo bf 3
    AVOptionVideo refs 3
    AVOptionVideo directpred 1
    AVOptionVideo trellis 1
    AVOptionVideo flags2 +mixed_refs+wpred+dct8x8+fastpskip
    AVOptionVideo wpredp 2
    AVOptionVideo flags +global_header+loop
    NoAudio
    #AudioCodec libmp3lame
    #AudioBitRate 56
    #AudioChannels 2
    #AudioSampleRate 24000
</Stream>

<Stream stat.html>
Format status
ACL allow localhost
ACL allow 127.0.0.1
ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>

2.) And I run ffmpeg this way - filling the feed with my webcam data
which ffmpeg is encoding to h264, thats cool ;)
ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -an -vcodec
libx264 -vpre default -bf 5 http://localhost:8090/feed1.ffm

Its running continously with the 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 @ 0x169d050][3]Capabilities: 5000001
[video4linux2 @ 0x169d050]Estimating duration from bitrate, this may
be inaccurate
Input #0, video4linux2, from '/dev/video0':
  Duration: N/A, start: 1268247820.679604, bitrate: 55296 kb/s
    Stream #0.0: Video: rawvideo, yuv420p, 640x480, 55296 kb/s, 15
tbr, 1000k tbn, 15 tbc
[libx264 @ 0x16a4500]using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.2
[libx264 @ 0x16a4500]profile High, level 2.2
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
  Metadata:
    encoder         : Lavf52.55.0
    Stream #0.0: Video: libx264, yuv420p, 640x480, q=10-51, 70 kb/s,
1000k tbn, 15 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=    9 fps=  0 q=-1.0 size=       4kB time=10000000000.00 bitrate=   0.0kbi
frame=   18 fps= 15 q=-1.0 size=       4kB time=10000000000.00 bitrate=   0.0kbi
frame=   27 fps= 15 q=-1.0 size=       4kB time=10000000000.00 bitrate=   0.0kbi
frame=   36 fps= 15 q=-1.0 size=       4kB time=10000000000.00
bitrate=   0.0kbi[libx264 @ 0x16a4500]VBV underflow (frame 0, -931
bits)
frame=   43 fps= 15 q=51.0 size=       4kB time=0.13 bitrate= 245.8kbits/s dup=1
frame=   51 fps= 15 q=45.0 size=       8kB time=0.67 bitrate=  98.3kbits/s dup=1
frame=   60 fps= 15 q=39.0 size=      12kB time=1.27 bitrate=  77.6kbits/s dup=1
etc


The 4 lines after "Press [q] to stop encoding" seems strange to me,
especially "VBV underflow (frame 0, -931 bits)".


3.)
3.1) Playing the stream with ffplay:
ffplay rtsp://localhost:5004/webcamvideo

And the output is:

ffplay rtsp://localhost:5004/webcamvideo
FFplay version SVN-r22390, Copyright (c) 2003-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
^C[h264 @ 0x1461660]missing picture in access unit
[rtsp @ 0x1463990]Could not find codec parameters (Video: h264)
[rtsp @ 0x1463990]Estimating duration from bitrate, this may be inaccurate
rtsp://localhost:5004/webcamvideo: could not find codec parameters

3.2) Playing stream with mplayer:
mplayer rtsp://localhost:5004/webcamvideo

The output is:

MPlayer UNKNOWN-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://localhost:5004/webcamvideo.
Resolving localhost for AF_INET6...
Connecting to server localhost[0.0.0.0]: 5004...
connect error: Connection refused
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 5004...
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://localhost:5004/webcamvideo
Stream not seekable!
 file format detected.
Initiated "video/H264" RTP subsession on port 43302
demux_rtp: Failed to guess the video frame rate
VIDEO:  [H264]  0x0  0bpp  0.000 fps    0.0 kbps ( 0.0 kbyte/s)
FPS not specified in the header or invalid, use the -fps option.
No stream found.


Exiting... (End of file)

3.3) Playing stream with mplayer again, with additional parameter:
mplayer rtsp://localhost:5004/webcamvideo -fps 15

The output:

MPlayer UNKNOWN-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://localhost:5004/webcamvideo.
Resolving localhost for AF_INET6...
Connecting to server localhost[0.0.0.0]: 5004...
connect error: Connection refused
Resolving localhost for AF_INET...
Connecting to server localhost[127.0.0.1]: 5004...
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://localhost:5004/webcamvideo
Stream not seekable!
 file format detected.
Initiated "video/H264" RTP subsession on port 39132
VIDEO:  [H264]  0x0  0bpp  0.000 fps    0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
FPS forced to be 15.000  (ftime: 0.067).
Starting playback...
V:   0.0   0/  0 ??% ??% ??,?% 0 0

Exiting... (End of file)


De facto)

Players are complaining about missing information about the video. At
this point we just can guess whats going wrong.

First try of guessing:
ffmpeg is craping the headerfile - see 2.) where it throws an error.
But isnt it the job of ffserver to provide information about the
stream to the client-players? So whats exactly wrong there..

Second try:
Server provides a header which others dont understand? Would be
strange, cause (their own) ffplay doesnt work neither and is
complaining about missing parameters.

Third try:
Server provides no header to the client-players.


Iam asking myself if its still a setup problem or a problem in the
sourcecode. Can someone confirm that it is or not a problem of the
sourcecode?
_______________________________________________
ffserver-user mailing list
ffserver-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user

Reply via email to