MPlayer Tricks
From Wiki
Invoke Mplayer on a random movie
Script to get MPlayer playing random movies (Futurama) in a given directory. I have caching enabled to allow wireless playback to be smooth.
#!/bin/bash
mplayer -cache 15000 -fs `ls | shuf -n$1`
Stream HD Content over Wireless
Script I use to stream 720p/1080p movies over my 56mbps wireless that has a alot of noise from other nearby networks.
#!/bin/bash
mplayer -cache 52000 -ao sdl -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all -fs "$@"
Playing Sequential Episodes
Sometimes I will want to pick a certain number of episodes to a series to play. I do this by using bash's built in parameter expansion feature.
$ mplayer Show.S01E0[123]*
$ mplayer Show.S01E{09,10}*