Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
helper_scripts [2013/06/28 12:09]
beandog
helper_scripts [2018/03/27 23:54] (current)
beandog
Line 1: Line 1:
 ====== Helper Scripts ====== ====== Helper Scripts ======
 +
 +This is an archive of old stuff. Some things I wrote into [[dvd_info]].
  
 This is just a collection of little scripts. This is just a collection of little scripts.
 +
 +=== avi2mpg ===
 +
 +<code bash>
 +#!/bin/bash
 +F=`basename $1 .avi`
 +MPG=${F}.mpg
 +if [[ ! -f ${MPG} ]]; then
 + mencoder $1 -o $MPG -profile dvd
 + fi
 +</​code>​
  
 === close_trays === === close_trays ===
Line 11: Line 24:
 </​code>​ </​code>​
  
 +=== confcat ===
 +
 +Strip all empty strings and commented strings
 +
 +<​code>​
 +#!/bin/bash
 +grep -vh '​^#'​ "​$@"​ | grep -v '​^$'​
 +</​code>​
  
 === dumpchapters === === dumpchapters ===
Line 45: Line 66:
  
 === dvd_id === === dvd_id ===
 +
 +Once you pop in a DVD, it takes a few seconds to initialize and be able to read, even though the device shows as available.
 +
 +This helper script just waits patiently until it can correctly read the DVD.
 +
 +It calls the binary [[disc_id]] which you'll need installed first.
  
 <code bash> <code bash>
Line 68: Line 95:
 done done
 </​code>​ </​code>​
- 

Navigation