Home
Daily Garfield
Latest News
Written on 27/01/2012, 11:41 by
#!/bin/bash# ----------# This script takes a MP4 or MKV file with an AAC audio track as input and# outputs an MKV file with an AC3 audio track# ----------# Needed tools:# MKVToolnix (install Ubuntu mkvtoolnix package)# FAAD2 (install Ubuntu faad package)# Aften (install Ubuntu aften package)# ----------
# Usage:# AAC2AC3 Input_File Output_File [Optional_Working_Directory]# ----------# initialize variablesINPUT=$1OUTPUT=$2WORKDIR=$3# make things a bit more prettyecho# make sure all programs we need are installedif ! which mkvmerge mkvextract &> /dev/nullthen echo "MKVToolnix is missing. Please install the mkvtoolnix package." echo exit 1fiif ! which faad &> /dev/nullthen echo "FAAD2 is missing. Please install the faad package." echo exit 1fiif ! which aften &> /dev/nullthen echo "Aften is missing. Please install the aften package." echo exit 1fi# make sure passed variables make senseif [ ! "$INPUT" ]then echo "Usage: AAC2AC3 Input_File Output_File [Optional_Working_Directory]" echo echo "No input file specified." echo exit 1fiif [ ! -f "$INPUT" ]then...Written on 27/01/2012, 11:32 by
Many users, myself included, visit YouTube on an almost daily basis. Ever since Firefox version 2.0 implemented the session restore function, when you are watching a video on YouTube (perhaps on other video sites as well, I haven't really tested that), you may notice a tiny freeze-up of the video every 10 seconds or so. This happens because the session restore is by default set to save all open tabs every 10 seconds. This is especially noticeable if you happen to have a lot of tabs open at once.
The quick fix for this problem, at least for my own sake, is to increase the time between each of the saves performed by session restore. By opening about:config in your Firefox address bar, then typing browser.sessionstore.interval in the filter box, you'll see a value of 10000, which is in milliseconds. (Meaning your session is saved every 10 seconds.) I changed this...