[FFmpeg-trac] #610(FFmpeg:new): ffserver bug

FFmpeg trac at avcodec.org
Thu Nov 3 22:42:34 CET 2011


#610: ffserver bug
--------------------------------------+---------------------------------
               Reporter:  burek       |                  Owner:  michael
                   Type:  defect      |                 Status:  new
               Priority:  normal      |              Component:  FFmpeg
                Version:  git-master  |               Keywords:
             Blocked By:              |               Blocking:
Reproduced by developer:  0           |  Analyzed by developer:  0
--------------------------------------+---------------------------------
 Command:
 {{{
 ffmpeg -y -re \
         -f video4linux2 -r 30 -s qvga -i /dev/v4l/by-id/usb-
 046d_0809_03A981AD-video-index0 \
         -f alsa -ar 44100 -ac 1 -i default:CARD=U0x46d0x809 \
         http://localhost:8090/feed1.ffm

 }}}

 ffserver.conf
 {{{
 Port 8090
 BindAddress 0.0.0.0
 MaxHTTPConnections 6
 MaxClients 3
 MaxBandwidth 10000
 CustomLog /etc/ffserver.log
 NoDaemon

 <Feed feed1.ffm>
         File /tmp/feed1.ffm
         FileMaxSize 10M
         ACL allow 127.0.0.1
 </Feed>

 <Stream 79-1.flv>
         Feed feed1.ffm
         Format flv

         VideoCodec libx264
         VideoFrameRate 25
         VideoBitRate 512
         VideoSize qvga
         #AVOptionVideo flags +global_header
         #VideoGopSize 12
         #AVPresetVideo fast
         #AVProfileVideo high
         #AVOptionVideo flags +global_header
         #VideoGopSize 15
         StartSendOnKey

         AudioCodec aac
         AudioChannels 1
         AudioBitRate 128
         AudioSampleRate 44100
         #AVOptionAudio flags +global_header
 </Stream>

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

 Output:
 {{{
 ffmpeg version N-34408-gb3f4ff2, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Nov  3 2011 21:32:47 with gcc 4.6.1
   configuration: --enable-static --enable-shared --enable-gpl --enable-
 nonfree --enable-postproc --enable-libx264 --enable-libaacplus
   libavutil    51. 23. 0 / 51. 23. 0
   libavcodec   53. 27. 0 / 53. 27. 0
   libavformat  53. 18. 0 / 53. 18. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 45. 3 /  2. 45. 3
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [video4linux2,v4l2 @ 0x11da980] Estimating duration from bitrate, this may
 be inaccurate
 Input #0, video4linux2,v4l2, from '/dev/v4l/by-id/usb-046d_0809_03A981AD-
 video-index0':
   Duration: N/A, start: 15075.495101, bitrate: 36864 kb/s
     Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240,
 36864 kb/s, 30 tbr, 1000k tbn, 30 tbc
 [alsa @ 0x11db9c0] Estimating duration from bitrate, this may be
 inaccurate
 Input #1, alsa, from 'default:CARD=U0x46d0x809':
   Duration: N/A, start: 1320356381.207796, bitrate: N/A
     Stream #1:0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
 [buffer @ 0x11d6520] w:320 h:240 pixfmt:yuyv422 tb:1/1000000 sar:0/1
 sws_param:
 [buffersink @ 0x12239e0] auto-inserting filter 'auto-inserted scale 0'
 between the filter 'src' and the filter 'out'
 [scale @ 0x1222480] w:320 h:240 fmt:yuyv422 -> w:320 h:240 fmt:yuv420p
 flags:0x4
 [mp2 @ 0x11d9c20] codec type or id mismatches
 Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
     Stream #0:0: Audio: aac, 44100 Hz, 1 channels, s16, 128 kb/s
     Stream #0:1: Video: h264, yuv420p, 320x240, q=2-31, 512 kb/s, 1000k
 tbn, 30 tbc
 Stream mapping:
   Stream #1.0 -> #0.0 (pcm_s16le -> mp2)
   Stream #0.0 -> #0.1 (rawvideo -> mpeg1video)
 Error while opening encoder for output stream #0.0 - maybe incorrect
 parameters such as bit_rate, rate, width or height
 }}}

 What do "mp2" and "mpeg1video" have got to do with my config at all?

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


More information about the FFmpeg-trac mailing list