Check These Out
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-mpeg.html
MEncoder can create MPEG (MPEG-PS) format output files. Usually, when you are using MPEG-1 or MPEG-2 video, it is because you are encoding for a constrained format such as SVCD, VCD, or DVD.
To change MEncoder's output file format, use the -of mpeg option.
Creating an MPEG-1 file suitable to be played on systems with minimal multimedia support, such as default Windows installs:
$ mencoder input.avi -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \
-o output.mpg -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \
-lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3
Converts any number of seconds into days, hours, minutes and seconds.
sec2dhms() {
declare -i SS="$1"
D=$(( SS / 86400 ))
H=$(( SS % 86400 / 3600 ))
M=$(( SS % 3600 / 60 ))
S=$(( SS % 60 ))
[ "$D" -gt 0 ] && echo -n "${D}:"
[ "$H" -gt 0 ] && printf "%02g:" "$H"
printf "%02g:%02g\n" "$M" "$S"
}
So I had this 2TB Seagate external disk/USB enclosure which by default would spin-down its internal drive (it enters a standby mode) after four minutes of inactivity.. Spinning-up the inactive drive was an annoying delay when accessing files and also it severely interfered with NFS.. SCT stands for "Standby Condition Timer".
To completely disable SCT:
$ sdparm --clear STANDBY -6 /dev/sdb
To return to original (default) SCT settings:
$ sdparm -D -p 0x1a -6 /dev/sdb
To verify the settings (before and after):
$ sdparm -a /dev/sdb
No need for vendor-provided MSWIN tools, etc.
enlubtsqyuse
$ cat /tmp/out
subsequently
Thanks to this user: https://stackoverflow.com/a/35636373/2394635
Found on http://www.cyberciti.biz/faq/linux-find-alternative-superblocks/
This allows for sleeping in between pings. Also, espeak needs to be installed.
This was gotten from http://www.veen.com/jeff/archives/000573.html. The line will grab all the mp3 files on the urls listed in text file sourceurls.txt (one url per line) . A much more complete breakdown of the line can be found at the web site mentioned above.