Im having trouble getting a ffserver RTP multicast stream up...
i know my ffmpeg command is correct because when i output to a video
file the file plays fine, with audio and video.


ffmpeg -f oss -i /dev/dsp -f video4linux2 -r 24 -s 720x480 -vc 0
-tvstd NTSC -i /dev/video1 test.avi
FFmpeg version SVN-r23733, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jun 23 2010 02:08:17 with gcc 4.4.3
  configuration: --enable-shared --enable-gpl --enable-version3
--enable-nonfree --enable-postproc --enable-avfilter-lavf
--enable-x11grab --enable-gray --enable-bzlib --enable-libdc1394
--enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-zlib --enable-libx264
  libavutil     50.19. 0 / 50.19. 0
  libavcodec    52.78. 0 / 52.78. 0
  libavformat   52.71. 0 / 52.71. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.20. 0 /  1.20. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[oss @ 0x86a900]Estimating duration from bitrate, this may be inaccurate
Input #0, oss, from '/dev/dsp':
  Duration: N/A, start: 1277389019.874919, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[video4linux2 @ 0x86d000]Estimating duration from bitrate, this may be
inaccurate
Input #1, video4linux2, from '/dev/video1':
  Duration: N/A, start: 1277389019.974624, bitrate: 99532 kb/s
    Stream #1.0: Video: rawvideo, yuv420p, 720x480, 99532 kb/s, 24
tbr, 1000k tbn, 24 tbc
Output #0, avi, to 'test.avi':
  Metadata:
    ISFT            : Lavf52.71.0
    Stream #0.0: Video: mpeg4, yuv420p, 720x480, q=2-31, 200 kb/s, 24
tbn, 24 tbc
    Stream #0.1: Audio: mp2, 44100 Hz, 1 channels, s16, 64 kb/s
Stream mapping:
  Stream #1.0 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame=  123 fps= 24 q=7.8 Lsize=     339kB time=5.12 bitrate=
541.7kbits/s dup=0 drop=30
video:281kB audio:41kB global headers:0kB muxing overhead 5.442491%


the test.avi file plays fine with no problems audio and video.
however when i change the ffmpeg output to the ffserver, it does not
process video for some reason.


ffmpeg -f oss -i /dev/dsp -f video4linux2 -r 24 -s 720x480 -vc 0
-tvstd NTSC -i /dev/video1 http://127.0.0.1:8090/scanner.ffm
FFmpeg version SVN-r23733, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jun 23 2010 02:08:17 with gcc 4.4.3
  configuration: --enable-shared --enable-gpl --enable-version3
--enable-nonfree --enable-postproc --enable-avfilter-lavf
--enable-x11grab --enable-gray --enable-bzlib --enable-libdc1394
--enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-zlib --enable-libx264
  libavutil     50.19. 0 / 50.19. 0
  libavcodec    52.78. 0 / 52.78. 0
  libavformat   52.71. 0 / 52.71. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.20. 0 /  1.20. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[oss @ 0x1294900]Estimating duration from bitrate, this may be inaccurate
Input #0, oss, from '/dev/dsp':
  Duration: N/A, start: 1277389566.477407, bitrate: N/A
    Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[video4linux2 @ 0x1297000]Estimating duration from bitrate, this may
be inaccurate
Input #1, video4linux2, from '/dev/video1':
  Duration: N/A, start: 1277389566.595895, bitrate: 99532 kb/s
    Stream #1.0: Video: rawvideo, yuv420p, 720x480, 99532 kb/s, 24
tbr, 1000k tbn, 24 tbc
Output #0, ffm, to 'http://127.0.0.1:8090/scanner.ffm':
  Metadata:
    encoder         : Lavf52.71.0
    Stream #0.0: Audio: pcm_mulaw, 22050 Hz, 1 channels, s16, 176 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
size=     148kB time=6.15 bitrate= 197.1kbits/s
video:0kB audio:132kB global headers:0kB muxing overhead 11.732700%
ioctl(VIDIOC_QBUF)


It shows 0kb video processed and i dont know why... Here is the output
of ffserver -d


ffserver -d
FFserver version SVN-r23733, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jun 23 2010 02:08:17 with gcc 4.4.3
  configuration: --enable-shared --enable-gpl --enable-version3
--enable-nonfree --enable-postproc --enable-avfilter-lavf
--enable-x11grab --enable-gray --enable-bzlib --enable-libdc1394
--enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame
--enable-libopenjpeg --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-zlib --enable-libx264
  libavutil     50.19. 0 / 50.19. 0
  libavcodec    52.78. 0 / 52.78. 0
  libavformat   52.71. 0 / 52.71. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.20. 0 /  1.20. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Thu Jun 24 10:22:28 2010 FFserver started.
Thu Jun 24 10:22:28 2010 225.1.1.12:1234 - - "PLAY
test1sdp.mpg/streamid=0 RTP/MCAST"
Thu Jun 24 10:22:44 2010 127.0.0.1 - - New connection: GET /scanner.ffm
Thu Jun 24 10:22:44 2010 127.0.0.1 - - [GET] "/scanner.ffm HTTP/1.1" 200 208949
Thu Jun 24 10:22:44 2010 127.0.0.1 - - New connection: POST /scanner.ffm
Thu Jun 24 10:22:52 2010 127.0.0.1 - - [POST] "/scanner.ffm HTTP/1.1" 200 200704


And finally my ffserver.conf


<Feed scanner.ffm>
        file /tmp/scanner.ffm
        FileMaxSize 1M
        ACL allow 127.0.0.1
</Feed>

<Stream stat.html>
        Format status
        ACL allow localhost
        ACL allow 172.20.0.0 172.20.255.255
</Stream>

<Stream test1sdp.mpg>
        Format rtp
        feed scanner.ffm
        MulticastAddress 225.1.1.12
        MulticastPort 1234
        MulticastTTL 16
</Stream>


Additionally There is zero multicast traffic on the ethernet
interface. Im not sure what else needs to be done on linux to setup a
multicast server.
Any ideas on what im doing wrong? thanks
_______________________________________________
ffserver-user mailing list
ffserver-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user

Reply via email to