Announcement

Collapse
No announcement yet.

Streaming from logitech quickcam

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Streaming from logitech quickcam

    Trying to stream from my logitech quickcam to something that zoneminder can pick up.

    My ffserver.conf, I have no idea if this is right. I'm having a hell of a time finding a definitive howto for ffserver:
    Code:
    Port 8090
    # bind to all IPs aliased or not
    BindAddress 0.0.0.0
    # max number of simultaneous clients
    MaxClients 1000
    # max bandwidth per-client (kb/s)
    MaxBandwidth 10000
    # Suppress that if you want to launch ffserver as a daemon.
    NoDaemon
    
    <Feed feed1.ffm>
    File /tmp/feed1.ffm
    FileMaxSize 5M
    </Feed>
    
    # FLV output - good for streaming
    <Stream test.flv>
    # the source feed
    Feed feed1.ffm
    # the output stream format - FLV = FLash Video
    Format flv
    VideoCodec flv
    # this must match the ffmpeg -r argument
    VideoFrameRate 15
    # generally leave this is a large number
    VideoBufferSize 80000
    # another quality tweak
    VideoBitRate 200
    # quality ranges - 1-31 (1 = best, 31 = worst)
    VideoQMin 1
    VideoQMax 5
    VideoSize 352x288
    #VideoSize 640x480
    # this sets how many seconds in past to start
    PreRoll 0
    # wecams don't have audio
    Noaudio
    </Stream>
    
    # ASF output - for windows media player
    <Stream test.asf>
    # the source feed
    Feed feed1.ffm
    # the output stream format - ASF
    Format asf
    VideoCodec msmpeg4
    # this must match the ffmpeg -r argument
    VideoFrameRate 15
    # generally leave this is a large number
    VideoBufferSize 80000
    # another quality tweak
    VideoBitRate 200
    # quality ranges - 1-31 (1 = best, 31 = worst)
    VideoQMin 1
    VideoQMax 5
    VideoSize 352x288
    #VideoSize 640x480
    # this sets how many seconds in past to start
    PreRoll 0
    # wecams don't have audio
    Noaudio
    </Stream>
    The command to run ffmpeg:
    Code:
    ffmpeg -r 15 -s 352x288 -f video4linux2 -i /dev/video0 -f flv [url]http://localhost:8090/feed1.ffm[/url]
    The error I'm getting:
    Code:
    FFmpeg version 0.6-4:0.6-2ubuntu6.2, Copyright (c) 2000-2010 the FFmpeg developers
     built on Sep 16 2011 17:04:54 with gcc 4.4.5
     configuration: --extra-version=4:0.6-2ubuntu6.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enab   le-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --e   nable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --enable-share   d --disable-static
     WARNING: library configuration mismatch
     libavutil  configuration: --extra-version=4:0.6-2ubuntu3.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-   bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis   --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libmp3lame --enable-g   pl --enable-postproc --enable-x11grab --enable-libfaad --enable-libxvid --enable-libx264 --enable-librtmp --enable-libdc1394 --enable-shared   --disable-static
     libavcodec configuration: --extra-version=4:0.6-2ubuntu3.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-   bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis   --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libmp3lame --enable-g   pl --enable-postproc --enable-x11grab --enable-libfaad --enable-libxvid --enable-libx264 --enable-librtmp --enable-libdc1394 --enable-shared   --disable-static
     libavutil   50.15. 1 / 50.15. 1
     libavcodec  52.72. 2 / 52.72. 2
     libavformat  52.64. 2 / 52.64. 2
     libavdevice  52. 2. 0 / 52. 2. 0
     libavfilter  1.19. 0 / 1.19. 0
     libswscale   0.11. 0 / 0.11. 0
     libpostproc  51. 2. 0 / 51. 2. 0
    [video4linux2 @ 0x1cc4640]Cannot find a proper format for codec_id 0, pix_fmt -1.
    /dev/video0: Input/output error
    I've googled the codec_id 0 error but nothing I've found has been helpful at all. Any suggestions?

    Thanks!
Working...
X