0

I need a solution to run a graphical application on a Ubuntu VPS and capture the screen using FFMPEG software.

the steps I tried already:

###Create a virtual desktop Xvfb :1 -screen 0 1920x1080x24 ## Connect this shell to a virtual desktop export DISPLAY=:1 #Start browser. It streams to a virtual desktop connected. This could be any program. google-chrome-stable --disable-gpu https://example.com/ #Capture screen output to a file export DISPLAY=:1 ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -i :1.0+0,0 output.mp4 

This looks like working but the output file comes empty. I need somebody who can reliably tell me how to run graphical apps on a VPS and capture the screen to a file. Later ffmpeg will stream the video but for now, I just want to solve one problem at a time.

2
  • are you sure :0.0 is correct given your DISPLAY=:1 Commented Dec 9, 2023 at 2:16
  • I didn't tell you anything so you couldn't have tried anything I said Commented Dec 9, 2023 at 6:56

1 Answer 1

0

It started to work after I installed

 sudo apt-get install x11-apps 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.