This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage function, displays valid arguments | |
usage() { | |
echo "Usage: $(basename ${0}) [arguments] inputfile" 1>&2 | |
echo " -q qp, defaults to 18 for near lossless quality, higher value = lower quality." 1>&2 | |
echo -e "\nExample: $(basename ${0}) -q 22" 1>&2 | |
exit 1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
shopt -s globstar nullglob dotglob | |
echo "Filename,Duration,Bitrate,Size (GB),Width,Height" | |
for f in **/*; do | |
if [ ! -d "$f" ]; then | |
mediainfo_general=$(mediainfo --Output="General;%Duration/String3%,%OverallBitRate/String%" "$f") | |
mediainfo_video=$(mediainfo --Output="Video;%Width%,%Height%" "$f") | |
file_size=$(ls -s --block-size=G "$f" | awk '{print $1}' | sed 's/[^0-9]*//g' ) | |
echo "\"$f\",${mediainfo_general},${file_size},${mediainfo_video}" | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[gcode_macro mainled_on] | |
gcode: | |
SET_PIN PIN=main_led VALUE=1 | |
[gcode_macro mainled_off] | |
gcode: | |
SET_PIN PIN=main_led VALUE=0 | |
#--------------------------------------------------------------------# | |
#--------------------------------------------------------------------# |
OlderNewer