Stability & ETA

* Improved stability (more tolerant against errors)
* Fixed bugs concerning default parameters for dvdauthor
* Prepared ETA progress for ffmpeg

Change-Id: I9676d21778d17060f26c326f7c325293b1f957b3
Attempt do better select audio

Assume the audio-stream with highest bps is the one with original language

Fair assumption in most cases as it tends to be the home-market and home
market seems always to be privileged. Note however that this is a highly
empirical assumption.

Change-Id: I6072cfae754c829c0e10a0445445ba1dfed23115
Filter out silent audio streams

Don't even consider. But might interfere with DTS streams

Change-Id: I399772374c0ceece83b68bad14dc0d2d3f745fa9
Improve auto audio stream selection

It's turns out that it's quit common that there are more than one stream
having max BPS. This change improves the probability of choosing the right
one.

Even with this change, there still are cases where selection this way fails
as it's still highly assumptive. We might want to make and the whole thing
optionable. Which should be the default case (script detect or not) only
run-time and statistics can determine.

Change-Id: If5f4e1de9552c74dc9a328aa9845d7f16d1e2b4c
Map audio explicit

In cases where the first VOB contains a start with junk, ffprobe will fail
to output valid data and auto-detection will not work. This is probably a
deliberate obfuscation where a dvd can't work without it's original menu.

The change allows for explicit setting using a flag -A <audio_track>, which
takes one integer (the track) which in turn will become the stream ID.

Change-Id: I584715a05c0e3be4515fe333293c1788c9db5d47
Bugfix in audiodetection

Sorting on the wrong column.

Change-Id: I9b06ae53987e8ad33ade4bfa2480f68f21febe44
Audio streams can have ID < 10

Bugfix

Change-Id: I3ce421cf8fb562aeb6f846f8025f5694a1794a48
New FF default

Using this codec removes the need to down-mix audio. Hopefully all players
will be happy with the original stream.

Change-Id: Ia89b9815e3b40a31b51d4cafeb57bfa6c2220b11
Ability to skip leading data added

*) Added ability to skip #n number of 1KB blocks. This works around certain
broken DVD:s via -s flag. The broken disks contain obfuscated frames
confusing ffprobe (which makes audio auto-selection fail) and making ffmpeg
refusing to work.

To Skip 1s worth of data, a value 1200 is needed. Most broken DVD benefit
from a value of approximately 10000.

*) Corrected error where output filename could be left empty making ffmpeg
fail.

*) Add ability to omit script auto-audiotrack selection by allowing passing
string "no" to the -A flag instead of a track number.

Change-Id: I83130db216d4bcf84ff6bb3535893fc308958365
Added nifty script to bactch dvd.tc.sh work

Quite useful, handles both iso and wob-directory projects. Reads in a list
of wanted projects from one directory, searches and works from another and
moves succeeded trancoded projects to a third.

TBD:
Missing ui for it. I.e. no help and no options ability.

Change-Id: I5bca17a885bd6eb94dbf3a6d443f47d077a7c482
Better handling of outfile naming

When batch-processing, there is a high risk that several projects will be
found corresponding to the naming convention of the same request (i.e.
either different paths or both an ISO and a VOB project).

This change allows producing multiple outputs, where consecutive outputs
will be made unique by appending time since EPOC to the name.

Change-Id: I2ff448a89cfa0392782704721716b228ac225251
Improved batch processing

Will handle both ISO and VOB projects in the same run.

Better handling of default parameters for VOB projects, i.e. possible to:
	- override (-s10000 to either something else or nil)

Change-Id: Ic30fece2dbf8bc60ebd85a27256dd05b0097952e
New sound-file added

Intended for warnings

Change-Id: Ib7a858133502d55c44c26aa795ac69daad95d5be
Different way to truncate leading garbage.

Faster and more tolerant to dvdauthor errors.

Side-note: Most damaged flicks can be
saved this way and the quality is truly amazing. Might be that this is a

Side-note: The quality is truly amazing. Might be that this is a better way
to do it. For some reason, dvdauthor is picky about a SCR error which seems
to always come (or at least for the problematic remainig flicks). I.e. it's
not known if the SCR-error is a consequence of the method or if it's a
remain of the same error on the movies them-self that made them problematic
in the first place.

Change-Id: I2145b4d234caa73bf004e0d9c98da7928c67a801
Be more picky about audio detect errors

As this is a clear tell-tell sign of obfuscated frames, better leads about
how to handle is good to have.

Change-Id: Ic19000a3707e03a75505b9f2018ae5311bea78d7
Minor fixes

Checked in as themselves not to be lost in other commits which might be
reverted.

Change-Id: I747a73a7071e749f2db4c0f0cfbd8053da743f3d