Maybe fix audio tracks

This commit is contained in:
Neale Pickett 2022-08-01 18:17:33 -06:00
parent 207bc37d84
commit 26a6dc0d99
3 changed files with 20 additions and 8 deletions

14
TODO.md
View File

@ -1,13 +1,19 @@
To Do To Do
----- -----
* Status web app as PWA
* Move `video/` and `audio/` into new `incomplete/` directory * Status web app as PWA? Does this even matter? Maybe not.
* Set title for audio CDs on read * The directory layout is gross. Fix it.
* For audio CDs, set completion to null, and have that result in a spinny progress meter * What I'd like to see: pending/ has everything that's not finished yet; complete/ has everything that is.
* Do I really need to separate audio and video? Can't I just put that in the json file?
* I'm not certain the CD part works after moving to Python from Bourne Shell.
* Set title for audio CDs on read.
* For audio CDs, set completion to null, and have that result in a spinny progress meter.
Done Done
---- ----
* Handbrake is putting the stereo track before the 5.1 track, and making stereo the default. Fix that.
* Status web app * Status web app
* Report title in status.json * Report title in status.json
* Output JSON instead of bourne shell for env * Output JSON instead of bourne shell for env

View File

@ -56,11 +56,17 @@ class Encoder(threading.Thread):
[ [
"HandBrakeCLI", "HandBrakeCLI",
"--json", "--json",
"-i", "%s/VIDEO_TS" % fdir, "--input", "%s/VIDEO_TS" % fdir,
"--main-feature", "--main-feature",
"--native-language", "eng", "--native-language", "eng",
"-Z", "Chromecast 1080p30 Surround", "--preset", "Chromecast 1080p60 Surround",
"-o", tmppath, "--markers",
"--all-audio",
"--all-subtitles",
"--aencoeder", "copy:aac,copy:ac3,av_aac",
"--audio-copy-mask", "aac,ac3",
"--audio-fallback", "aac",
"--output", tmppath,
], ],
encoding="utf-8", encoding="utf-8",
stdout=subprocess.PIPE, stdout=subprocess.PIPE,

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Media-Sucker</title> <title>Media Sucker</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
<script src="sucker.mjs" type="module"></script> <script src="sucker.mjs" type="module"></script>