i am trying to use FFMPEG on windows to stream my entire desktop, through my localhost address : 127.0.0.1:8080 , and it will be accessible from another computer in the same network , using vlc by opening network url, or embed it in a source video file for exemple. i tried the commande here :
ffmpeg -f gdigrab -framerate 6 -i desktop output.mp4
but this record the entire desktop (what i want to do) and store it in ouput.mp4 file , i tried changing it to :
ffmpeg -f gdigrab -framerate 6 -i desktop http://127.0.0.1:8080
but i get this error :
[gdigrab @ 0000023b7ee4e540] Capturing whole desktop as 1920x1080x32 at (0,0) [gdigrab @ 0000023b7ee4e540] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, gdigrab, from 'desktop': Duration: N/A, start: 1625841636.774340, bitrate: 398133 kb/s Stream #0:0: Video: bmp, bgra, 1920x1080, 398133 kb/s, 6 fps, 1000k tbr, 1000k tbn [NULL @ 0000023b7ee506c0] Unable to find a suitable output format for 'http://127.0.0.1:8080' http://127.0.0.1:8080: Invalid argument
but i want to set the output as : http://127.0.0.1:8080 how should i do that ?
Update : I found this command :
ffmpeg -f gdigrab -framerate 30 -i desktop -vcodec mpeg4 -q 12 -f mpegts http://127.0.0.1:8080
it seems to stream, but i am not able to open it from nor vlc nor media player