Mplayer: Difference between revisions
From wikinotes
No edit summary |
|||
Line 24: | Line 24: | ||
<blockquote> | <blockquote> | ||
== video as wallpaper == | == video as wallpaper == | ||
<blockquote> | |||
=== Single Monitor === | |||
<blockquote> | |||
If you can find/make an ultra widescreen panorama, this is probably the way to go. | |||
<source lang="bash"> | <source lang="bash"> | ||
# works, supports xcompmgr | # works, supports xcompmgr | ||
Line 47: | Line 51: | ||
mplayer -rootwin -vo xv -ao null -noconsolecontrols -fs /ocean_waves.mkv | mplayer -rootwin -vo xv -ao null -noconsolecontrols -fs /ocean_waves.mkv | ||
</source> | </source> | ||
</blockquote><!-- Single Monitor --> | |||
=== Multiple Monitors === | |||
<blockquote> | |||
If rendering a video on different monitors, you'll need to be explicit about the monitor's geometry.<br> | |||
This is seriously chaotic, good luck getting anything done. | |||
<syntaxhighlight lang="bash"> | |||
FILES=($(ls *.mkv)) | |||
monitor_geoms(){ | |||
xrandr \ | |||
| grep -P '(?<!dis)connected' \ | |||
| grep -o -P '\d+x\d+\+\d+\+\d' | |||
} | |||
for geom in `monitor_geoms`; do | |||
xwinwrap -ov -g "${geom}" -- mplayer -wid WID -quiet -nosound -loop 0 -shuffle "${FILES[@]}" & | |||
done | |||
</syntaxhighlight> | |||
The same video on each monitor. | |||
<syntaxhighlight lang="bash"> | |||
TODO | |||
</syntaxhighlight> | |||
</blockquote><!-- Multiple Monitors --> | |||
</blockquote><!-- video as wallpaper --> | |||
== video in ascii == | == video in ascii == | ||
</blockquote><!-- neat tricks --> | </blockquote><!-- neat tricks --> |
Revision as of 02:25, 19 July 2021
A very versatile media player.
Documentation
homepage http://www.mplayerhq.hu/design7/news.html documentation http://www.mplayerhq.hu/DOCS/HTML/en/index.html man mplayer http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html
Tutorials
mplayer intro https://www.unixmen.com/basic-mplayer-usage-from-command-line/
Neat Tricks
video as wallpaper
Single Monitor
If you can find/make an ultra widescreen panorama, this is probably the way to go.
# works, supports xcompmgr # see: and https://www.reddit.com/r/unixporn/comments/97uznk/herbstluftwm_animated_wallpaper/ # pacaur -S xwinwrap-git xwinwrap -ov -fs -- \ mplayer -wid WID \ -quiet -nosound \ -loop 0 `# loop same video indefinitely` \ /ocean_waves.mkv # mplayer ... -loop 0 # cycle same video indefinitely # mplayer ... -shuffle fileA fileB fileC # play provided files in random order # no cli controls, possibly through a socket though?Alternatively, this method plays video as wallpaper, but has issues with compositors (xcompmgr, compton, ..)
It also gets confused when sharing a workspace with another window. Not ideal.# See https://www.reddit.com/r/i3wm/comments/51hjkn/vlcs_videowallpaper_is_just_a_fullscreen_mode/ mplayer -rootwin -vo xv -ao null -noconsolecontrols -fs /ocean_waves.mkvMultiple Monitors
If rendering a video on different monitors, you'll need to be explicit about the monitor's geometry.
This is seriously chaotic, good luck getting anything done.FILES=($(ls *.mkv)) monitor_geoms(){ xrandr \ | grep -P '(?<!dis)connected' \ | grep -o -P '\d+x\d+\+\d+\+\d' } for geom in `monitor_geoms`; do xwinwrap -ov -g "${geom}" -- mplayer -wid WID -quiet -nosound -loop 0 -shuffle "${FILES[@]}" & doneThe same video on each monitor.
TODOvideo in ascii