graysky2 / xscreensaver-aerial

xscreensaver that randomly selects one of the Apple TV4 aerial movies
427 stars 37 forks source link

Crop videos to fit screen? #33

Open kevanf opened 2 years ago

kevanf commented 2 years ago

I have a 16:10 monitor and the videos are 16:9 so there are black bars on the top and bottom of the screen. Is there a way to edit the config files so that videos play at a "best-fit" zoom level? Thank you for this script it's awesome!

kevanf commented 2 years ago

I couldn't figure it out with mplayer but I created a workaround using VLC.

I post it here in case anyone else is comfortable switching from mplayer to VLC for this screensaver:

Replace the first call to mplayer in the script with: cvlc --loop --fullscreen --crop=16:10 --no-video-title-show --no-audio --drawable-xid "$XSCREENSAVER_WINDOW" "$movies/$useit" & and the second with: cvlc --loop --fullscreen --crop=16:10 --no-video-title-show --no-audio --drawable-xid "$XSCREENSAVER_WINDOW" "$APPLEURL/$useit" &

graysky2 commented 2 years ago

If you can figure out a mod to the mplayer call, please let me know. I didn't see anything obvious in the man page.