[FFmpeg-user] mux flv problem

Soho Soho123 soho123.2012 at gmail.com
Mon Jul 15 13:51:27 CEST 2013


Hi All,

I use ffmpeg + ffserver to do a stream server.
the stream includes video + audio.
the config for ffserver :
<Stream test.flv>
Feed feed1.ffm
Format flv

AVOptionVideo flags +global_header
VideoSize 1280x720
VideoFrameRate 12
VideoCodec libx264
AVOptionAudio flags +global_header
AudioCodec pcm_s16le
AudioChannels 2
AudioSampleRate 48000
</Stream>
the command line of ffmpeg:
ffmpeg -loglevel debug -f alsa -ar 48000 -ac 2 -i hw:0 -f video4linux2 -r
30 -s 1280x720 -input_format h264 -i /dev/video1 -vcodec copy -acodec copy
http://localhost:8090/feed1.ffm


then I got the error message:
FLV does not support sample rate 48000,choose from (44100, 22050, 11025)
it is output from :libavformat/flvenc.c, that used when ffserver do mux.


Hence, my question is ffserver related.
Does someone have idea about why flv can not support 48000 sample rate in
audio


More information about the ffmpeg-user mailing list