[FFmpeg-user] ffserver - send audio with filter complex as video
Zoltan Kerenyi Nagy
kerenyi.nagy.zoltan at gmail.com
Wed Jan 30 10:22:44 EET 2019
Hi Guys,
I'd like to send the audio with waveform overlay for both channels, I can
save it to file:
ffmpeg -f alsa -i hw:0,0 -filter_complex
"showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue" out.mp4
However with ffserver it fails:
ffmpeg -f alsa -i hw:0,0 -filter_complex
"showwaves=split_channels=1:s=1280x720:mode=line:colors=Red|Blue"
http://localhost:5554/video.ffm
OUTPUT:
Wed Jan 30 09:06:00 2019 127.0.0.1 - - New connection: GET /video.ffm
Missing video stream which is required by this ffm
Wed Jan 30 09:06:00 2019 127.0.0.1 - - [GET] "/video.ffm HTTP/1.1" 200 4175
Here is the config file:
HTTPPort 5554
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 4
MaxClients 4
MaxBandwidth 1024
CustomLog -
<Feed video.ffm>
File /tmp/video.ffm
FileMaxSize 2048M
</Feed>
#####################
<Stream video>
Format flv
Feed video.ffm
VideoCodec libx264
VideoFrameRate 15
VideoBitRate 512
VideoSize 1280x720
AVOptionVideo crf 23
AVOptionVideo preset medium
AVOptionVideo flags +global_header
AudioCodec aac
Strict -2
AudioBitRate 128
AudioChannels 2
AudioSampleRate 44100
AVOptionAudio flags +global_header
</Stream>
I'm sure that something is wrong with the ffserver config file.
Thanks,
Z
More information about the ffmpeg-user
mailing list