This file contains 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 | |
# Vivaldi and Opera cannot play some videos on Linux unless the ffmpeg library they use is replaced with proper one. | |
# | |
set -e | |
set -u | |
# Testing against '$1' directly does not work b/c of 'set -u' | |
if [[ -z "$@" ]]; then | |
echo "" | |
echo "USAGE:" |
This file contains 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 | |
set -u | |
set -e | |
shopt -s nullglob | |
for MKV in "$@"; do | |
out="$(basename "$MKV" .mkv).mp4" | |
echo "CONVERTING '$MKV''" | |
cp -l "$MKV" input.mkv | |
ffmpeg -i input.mkv -c:a copy -c:v libx264 -preset veryslow -crf 23 -vf subtitles=input.mkv "$out" |
This file contains 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 | |
if [ "$1" != "" ]; then | |
echo " | |
---------------------------------------------------------------------------- | |
http://www.kernel.org/doc/Documentation/vm/ksm.txt : | |
The effectiveness of KSM and MADV_MERGEABLE is shown in /sys/kernel/mm/ksm/: | |
pages_shared - how many shared pages are being used |