thrimbletrimmer: Change default download type to smart

The new smart cut type avoids artifacting/playing issues that happen with fast cuts or multi-range rough cuts.

However it is new and experimental so we keep the old options available as backups.
pull/353/head
Mike Lang 1 year ago committed by Mike Lang
parent 78d0f227e8
commit 879fe2c70b

@ -282,11 +282,14 @@
<div id="download"> <div id="download">
<label for="download-type-select">Download type:</label> <label for="download-type-select">Download type:</label>
<select id="download-type-select"> <select id="download-type-select">
<option value="rough" selected> <option value="smart" selected>
Rough (fastest, pads start and end by a few seconds) Smart (experimental but preferred option)
</option>
<option value="rough">
Rough (raw content, pads start and end by a few seconds)
</option> </option>
<option value="fast"> <option value="fast">
Fast (may have artifacts a few seconds in from start and end) Fast (deprecated, use if smart is broken)
</option> </option>
<option value="mpegts">MPEG-TS (slow, consumes server resources)</option> <option value="mpegts">MPEG-TS (slow, consumes server resources)</option>
</select> </select>

@ -148,7 +148,7 @@ function generateDownloadURL(startTime, endTime, downloadType, allowHoles, quali
function updateDownloadLink() { function updateDownloadLink() {
const downloadLink = document.getElementById("download"); const downloadLink = document.getElementById("download");
const downloadURL = generateDownloadURL(getStartTime(), getEndTime(), "rough", true, "source"); const downloadURL = generateDownloadURL(getStartTime(), getEndTime(), "smart", true, "source");
downloadLink.href = downloadURL; downloadLink.href = downloadURL;
} }

Loading…
Cancel
Save