Help improving tooling for creating the release video
@bastianilso wrote a blog post about the energy consuming items of a video, there are technical details we (devs) can help with so let's create this issue to coordinate that for the next release.
Current Tooling
Current record tooling is an FFMPEG script which relies on xgrab to perform hi-dpi recordings. release-video-record-scripts2.tar.gz. Alternatively you can use use Peek which works on Wayland (see instructions below).
Instructions for non Hi-DPI systems
If your system is not Hi-DPI you can try to work around it using xrandr
.
- Make sure you are logged into
X
. - Force GNOME into Hi-DPI mode (this might only take effect after using the
xrandr
command):gsettings set org.gnome.desktop.interface scaling-factor 2
- Find out the name of your output screen device by running:
xrandr
- Scale your screen rendering size:
xrandr --output <INSERT-OUTPUT-NAME> --panning 2880x1620 --scale 1.5x1.5
- Restore screen resolution using the command: xrandr --output --panning 1920x1080 --scale 1.0x1.0 (assuming your original resolution was 1920x1080)
- Restore the scaling-factor using the command: gsettings set org.gnome.desktop.interface scaling-factor 1
FFMPEG Script Instructions
- Make sure you are logged into
X
. - Put the included
ffmpeg
binary into your~/.local/bin/
folder. (The included ffmpeg binary is compiled with h264 support which is the format used in the script) - Make sure
~/.local/bin
is part of$PATH
:PATH=$PATH:~/.local/bin
- Apply this green screen wallpaper as your background.
- Run your app in windowed mode with some margin all around it.
- Run
cast.sh
from terminal. - Do your thing in the app.
- Check that the resulting video is stored inside
$HOME/Videos/
and send it to bastianilso@gnome.org.
Peek Instructions
- Download Peek from Flathub
- Open Preferences. Set FPS to 30 and file format to MP4.
- Apply this green screen wallpaper as your background.
- Make sure you are recording on a Hi-DPI system (or at least a 1920x1080 system).
Further Development of Tooling
@felipeborges is working on a template for developers to be used for the clips and I'm going to work during this time to make sure we have an image/flatpak enviroment ready for engagement team and Bastian to test these new features for the next release.
Peek is a promising avenue, but there seems to be an issue with making high FPS videos in Peek at the moment. @bastianilso and @gicmo has opened an issue about it.