Good day.
I would like to organize the broadcast of your computer’s screen on the Internet so that you can open a link to the broadcast in the browser and see if you can tell it in principle with ffmpeg and ffserver + what kind of web server that will give the html page with the video block and how mp4 player? I read the documentation, looked at the Internet, it seems to be possible, but for sure there are a lot of little things like the correct codec, its parameters, etc. I tried to run with the following parameters:
ffserver.conf (found somewhere on the Internet):
HTTPPort 8090 HTTPBindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 MaxBandwidth 10000 CustomLog - <Feed av_feed.ffm> File /tmp/av_feed.ffm FileMaxSize 1G ACL allow 127.0.0.1 </Feed> <Feed streamwebm.ffm> File /tmp/streamwebm.ffm FileMaxSize 50M ACL allow 127.0.0.1 </Feed> <Stream streamwebm> Feed streamwebm.ffm Format webm # Video Settings VideoFrameRate 10 VideoSize 1920x1080 # Audio settings AudioCodec libvorbis AudioSampleRate 48000 AVOptionAudio flags +global_header MaxTime 0 AVOptionVideo me_range 16 AVOptionVideo qdiff 4 AVOptionVideo qmin 4 AVOptionVideo qmax 40 #AVOptionVideo good AVOptionVideo flags +global_header # Streaming settings PreRoll 10 StartSendOnKey Metadata author "author" Metadata copyright "copyright" Metadata title "Web app name" Metadata comment "comment" </Stream> <Stream stat.html> Format status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 </Stream> <Redirect index.html> URL http://www.ffmpeg.org/ </Redirect>
so i run ffmpeg:
ffmpeg -f x11grab -s 1920x1080 -r 10 -i $DISPLAY -f alsa -i default -c:v libvpx -cpu-used 4 -threads 4 http://localhost:8090/streamwebm.ffm
Next to ffserver, I launched an http server on port 8000 that gives this page:
<html> <head> </head> <body> <video src="http://localhost:8090/streamwebm" controls></video> </body> </html>
When I press the play button, nothing happens.
Knowledgeable people tell me what's wrong? Maybe it's easier to do this with other programs?
Thank.