Skip to content

Instantly share code, notes, and snippets.

@Eltiech
Eltiech / fireview
Last active August 29, 2015 14:09
fireview
#!/bin/bash
#Author: Malsententia <[email protected]>
#Purpose: Uses a chromeless firefox window as an image viewer.
# Inferior to most other image viewers, but good for APNGs
# Opens kinda fast if you already have firefox running, I guess?
#Usage: fireview image.ext
#Requires: file - gets the resolution
# firefox - duh
# xrandr - determines monitor resolution for max window size
# xdotool - figures out which monitor your mouse is on, for above
#!/bin/bash
#Batch processor for assorted media yielding web playback compatible mp4s
#basic summary of args
#batch-ffmpegger.sh tuningparameter [FILES]... [trimstring]
#tuningparameter - ffmpeg's x264 tuning parameter. should be "film" or "animation" most likely.
# (googlit for the other options which you probably don't need)
#FILES - however many files you want. Doesn't do directories, use a wildcard/*.mkv etc
#trimstring - an optional custom string to trim the torrent-name and resolution stuff off the end
# of the file. a regex down below catches most of it though
# if the last argument isn't an existing file, it will be treated as the trimstring