0

I'm trying to stream video with FFmpeg over FFserver to a webbrowser. FFmpeg is running on Windows and FFserver on Ubuntu. The streaming from FFmpeg to FFserver is working, but I get the following error when accessing the stream from a webbrowser:

[webm @ 0x1da3c90]sample rate not set
Error writing output header for stream 'test.webm': Invalid argument
192.168.2.3 - - [GET] "/test.webm HTTP/1.1" 200 63
[webm @ 0x1da4fd0]sample rate not set
Error writing output header for stream 'test.webm': Invalid argument
192.168.2.3 - - [GET] "/test.webm HTTP/1.1" 200 63

I'm running FFmpeg with this command:

ffmpeg -f gdigrab -video_size 800x600 -i desktop -f lavfi -i aevalsrc=0:1 http://192.168.2.5:8090/feed1.ffm

My FFserver config file:

Port 8090                      
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000

CustomLog -                  

<Feed feed1.ffm>               
   File ./feed1.ffm            
   FileMaxSize 1G              
   #ACL allow 127.0.0.1         
</Feed>

<Stream test.webm>              
   Feed feed1.ffm             
   Format webm

   AudioCodec vorbis
   AudioBitRate 64
   AudioSampleRate 48000
   VideoCodec libvpx
   VideoSize 720x576          
   VideoFrameRate 25          
   AVOptionVideo flags +global_header  
   AVOptionVideo cpu-used 0
   AVOptionVideo qmin 10
   AVOptionVideo qmax 42
   AVOptionVideo quality good
   AVOptionAudio flags +global_header
   PreRoll 15
   StartSendOnKey
   VideoBitRate 400            
</Stream>

<Stream status.html>            
   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>
   # Redirect index.html to the appropriate site
   URL http://www.ffmpeg.org/
</Redirect>

Is there a solution for this problem?

Any help is appreciated

Mese
  • 69
  • 1
  • 7
  • 1
    I tried the same thing on Linux using x11grab instead and it works. Do you have any other warnings in ffserver or ffmpeg? What versions are you using? – aergistal Apr 15 '15 at 19:40
  • Thank you for your reply. I set up a new vm, downloaded the newest ffmpeg version and now the streaming works fine. – Mese Apr 16 '15 at 18:47

0 Answers0