[FFmpeg-trac] #4117(ffmpeg:new): ffmpeg hangs while converting usb camera input

FFmpeg trac at avcodec.org
Mon Nov 17 13:45:13 CET 2014


#4117: ffmpeg hangs while converting usb camera input
-------------------------------------+-------------------------------------
             Reporter:  biofool      |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:  ffmpeg       |                  Version:
             Keywords:  ffmpeg hang  |  unspecified
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------
 Summary of the bug:
 How to reproduce:
 {{{
  ffmpeg -f lavfi -i aevalsrc=0 -f video4linux2 -s 640x480 -i /dev/video0
 -strict -2 http://localhost:8090/feed1.ffm
 ffmpeg version N-67694-gdcb10ef Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Nov 15 2014 13:25:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
   configuration: --enable-libvpx --enable-libvorbis\}}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.
 {{{
 ffserver.conf:
 HTTPPort 8090                      # Port to bind the server to
 HTTPBindAddress 0.0.0.0
 MaxHTTPConnections 2000
 MaxClients 1000
 MaxBandwidth 10000             # Maximum bandwidth per client
                                # set this high enough to exceed stream
 bitrate
 CustomLog -

 <Feed feed1.ffm>               # This is the input feed where FFmpeg will
 send
    File ./feed1.ffm            # video stream.
    FileMaxSize 10G              # Maximum file size for buffering video
    ACL allow 127.0.0.1
 </Feed>

 <Stream test.webm>              # Output stream URL definition
    Feed feed1.ffm
 #   Format ogg
    Format webm

 #   # Audio settings
    AudioCodec vorbis
    AudioBitRate 64             # Audio bitrate

    # Video settings
    VideoCodec libvpx
 #   VideoCodec  vp8
    VideoSize 800x448
    VideoFrameRate 30
    AVOptionVideo flags +global_header  # Parameters passed to encoder
 #   AVOptionVideo quality rt

                                        # (same as ffmpeg command-line
 parameters)
 #   AVOptionVideo cpu-used 0
    AVOptionVideo qmin 10
    AVOptionVideo qmax 42
    AVOptionAudio flags +global_header

    PreRoll 15
    StartSendOnKey
    VideoBitRate 400            # Video bitrate
 </Stream>

 <Stream status.html>            # Server status URL
    Format status
    # Only allow local people to get the status
    ACL allow localhost
    ACL allow 192.168.0.0 192.168.255.255
 </Stream>

 <Redirect index.html>    # Just an URL redirect for index
    # Redirect index.html to the appropriate site
    URL http://www.ffmpeg.org/
 </Redirect>
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4117>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list