Until the default App includes that option, you could try Kazam (it is offered in the repo for UbuntuMATE, but I don’t know if it is in the repo for Ubuntu Desktop):
Ubuntu 24.04 with Gnome 46 in a Wayland session
Print Screen > Click Selection > Choose Window or Screen > Click Video icon > Click Red Button (to record)
To stop recording > Click Timer in top panel
Output file will be found in /home/user/Videos/Screencasts
mark@gmktec:~/Videos/Screencasts$ ls
'Screencast from 2025-11-09 10-09-12.mp4'
'Screencast from 2025-11-09 10-10-26.mp4'
mark@gmktec:~/Videos/Screencasts$
The application itself is a bit erratic, I only used it today (the first time for 2 years) to answer the question.
Configurable - I haven’t found anything so far.
Output.mp4 was default for me, but not for you?
It suggests that the utility may have a flaw or two.
I just booted up a live session of Ubuntu 24.04.3 and ran the gnome-screencast utility.
The output was .webm.
I have no idea why I now have output.mp4 - other than the OS (Ubuntu 24.04) has been upgraded via normal channels since April 2024.
I have been experimenting today with my test partition using Ubuntu 25.10 (Gnome 49) in a Wayland session:-
The default for gnome-screencast is webm
Install ubuntu-restricted-extras
Default changes to mp4
test@test:~/Videos/Screencasts$ ls
'Screencast From 2025-11-09 14-46-05.webm' 'Screencast From 2025-11-09 14-50-25.mp4'
test@test:~/Videos/Screencasts$
The default must depend on the availability of installed codecs?
It is. If it’s in Ubuntu MATE it’s in Ubuntu Desktop. There is no separation of repositories for different flavors. That’s one of the requirements for being an official flavor: they cannot have separate repositories.
Remember: an official flavor is simply a different .iso image, not a different distribution.