Is it possible to make Totem automatically fit window size to video size (not the other way), like other players do? It seems that Totem keeps it's window at fixed size and scales the video to fit in window, instead of adjusting window size to video size. I can't see any option in preferences to change this behavior (Ubuntu 20.04). Last time I was using Totem it was in Ubuntu 10.04, where it behaved as expected ie. window size has been adjusted to video size. Why has this opton been removed? It's illogical.
I filed an issue to Totem: https://gitlab.gnome.org/GNOME/totem/-/issues/431 but the developers answer that they don't plan to restore this functionality. So I wrote a simple wrapper script around Totem that needs to be set as a default application to open video files instead of just Totem. Unless the video is very small (which means less than approx. 360 pixels in height, Totem window doesn't want to go so small), it resizes the window to correct video size. The script needs "mediainfo" program to be installed.
Edit: the above script has an issue when the file contains more than one video stream. To fix this, add
head -1
at the end of lines starting withV_WIDTH=
andV_HEIGHT=
: