Re: [Script] rip episodes or main-feature from DVD or BD
Posted: Fri Sep 19, 2014 9:16 am
--burn is a good idea.
Maybe I'll switch to github in the future.
Maybe I'll switch to github in the future.
The open source video transcoder
https://forum.handbrake.fr/
Code: Select all
--episodes sets: --default --min-length 00:10:00 --max-length 00:50:00 --skip-duplicates
--default sets: --audio deu,eng --subtitles deu,eng --audio-copy --skip-commentaries --only-first-track-per-language
Code: Select all
hb.rb --input /dev/sr0 --output "~/Name S01E#pos#.mp4"
Code: Select all
--episodes --max-length 10:00:00
Code: Select all
--default --min-length 00:10:00 --max-length 10:00:00 --skip-duplicates
AlBundy wrote:I've uploaded a new version with minor windows-related changes to avoid "no disk" popups.
@Atasco: Can you please explain what your problem was and how you could fix it?
I've uploaded a new version - if you set a negative quality or simply "" the parameter is omitted.xylol wrote:How to remove your --quality x preset? Is there something like --quality "unset". (I do not want to adjust the quality but remove the parameter)
Thank you for the script and your time.
What was the content of the folder?Atasco wrote:Sry for the late response... i excluded the folder containing the specific media. seems like handbake cli has a problem with scanning some sort of directorys.
AlBundy wrote:I've uploaded a new version with minor windows-related changes to avoid "no disk" popups.
@Atasco: Can you please explain what your problem was and how you could fix it?
Code: Select all
$ ruby hb.rb --input /dev/disk1 --output ~/Movies/13/
hb.rb Copyright (C) 2014 AlBundy
This program comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt.
This is free software, and you are welcome to redistribute it under certain conditions.
For questions, feature-requests etc. visit: https://forum.handbrake.fr/viewtopic.php?f=10&t=26163
[2014-12-09, 23:04:30] WARN -- hb.rb: processing /dev/disk1 (title=, title_alt=, name=disk1)
/Users/Stunner/Downloads/handbrake/lib/hb_lib.rb:920:in `block in convert': error unsupported extension (RuntimeError)
from /Users/Stunner/Downloads/handbrake/lib/hb_lib.rb:846:in `each'
from /Users/Stunner/Downloads/handbrake/lib/hb_lib.rb:846:in `convert'
from hb.rb:68:in `block (2 levels) in <main>'
from hb.rb:60:in `each'
from hb.rb:60:in `block in <main>'
from hb.rb:48:in `each'
from hb.rb:48:in `<main>'
Code: Select all
$ ruby hb.rb --input /dev/disk1 --output ~/Movies/Magna/14/Output_#pos#.m4v
hb.rb Copyright (C) 2014 AlBundy
This program comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt.
This is free software, and you are welcome to redistribute it under certain conditions.
For questions, feature-requests etc. visit: https://forum.handbrake.fr/viewtopic.php?f=10&t=26163
[2014-12-10, 13:17:10] WARN -- hb.rb: processing /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:17:10] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:17:10] WARN -- hb.rb: title 1 00:05:23 720x480 (blocks: 93972)
[2014-12-10, 13:17:10] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:17:10] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:17:10] WARN -- hb.rb: subtitles
[2014-12-10, 13:17:10] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:17:10] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:17:10] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_01.m4v
[2014-12-10, 13:17:10] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:17:10] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:17:10] WARN -- hb.rb: subtitles
[2014-12-10, 13:17:10] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:17:10] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:17:10] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_01.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 1 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Muxing: this may take awhile...(27.06 fps, avg 27.68 fps, ETA 00h03m29s)
[2014-12-10, 13:19:39] WARN -- hb.rb: Handbrake exited with return-code pid 3295 exit 4 - removing file Output_01.m4v
[2014-12-10, 13:19:39] WARN -- hb.rb: == done (required time: 00:02:30) =================================
[2014-12-10, 13:19:39] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:19:39] WARN -- hb.rb: title 2 (main-feature) 00:11:58 720x480 (blocks: 212369)
[2014-12-10, 13:19:39] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:19:39] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:19:39] WARN -- hb.rb: subtitles
[2014-12-10, 13:19:39] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:19:39] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:19:39] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_02.m4v
[2014-12-10, 13:19:39] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:19:39] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:19:39] WARN -- hb.rb: subtitles
[2014-12-10, 13:19:39] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:19:39] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:19:39] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_02.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 2 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Encoding: task 1 of 1, 23.70 % (25.75 fps, avg 28.05 fps, ETA 00h09m45s)
[2014-12-10, 13:22:49] WARN -- hb.rb: Handbrake exited with return-code pid 3302 exit 4 - removing file Output_02.m4v
[2014-12-10, 13:22:49] WARN -- hb.rb: == done (required time: 00:03:10) =================================
[2014-12-10, 13:22:49] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:22:49] WARN -- hb.rb: title 3 00:05:36 720x480 (blocks: 99327)
[2014-12-10, 13:22:49] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:22:49] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:22:49] WARN -- hb.rb: subtitles
[2014-12-10, 13:22:49] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:22:49] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:22:49] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_03.m4v
[2014-12-10, 13:22:49] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:22:49] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:22:49] WARN -- hb.rb: subtitles
[2014-12-10, 13:22:49] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:22:49] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:22:49] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_03.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 3 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Encoding: task 1 of 1, 25.45 % (33.30 fps, avg 32.49 fps, ETA 00h03m51s)
[2014-12-10, 13:24:16] WARN -- hb.rb: Handbrake exited with return-code pid 3306 exit 4 - removing file Output_03.m4v
[2014-12-10, 13:24:16] WARN -- hb.rb: == done (required time: 00:01:27) =================================
[2014-12-10, 13:24:16] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:24:16] WARN -- hb.rb: title 4 00:07:38 720x480 (blocks: 134927)
[2014-12-10, 13:24:16] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:24:16] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:24:16] WARN -- hb.rb: subtitles
[2014-12-10, 13:24:16] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:24:16] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:24:16] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_04.m4v
[2014-12-10, 13:24:16] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:24:16] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:24:16] WARN -- hb.rb: subtitles
[2014-12-10, 13:24:16] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:24:16] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:24:16] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_04.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 4 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Encoding: task 1 of 1, 31.62 % (35.95 fps, avg 30.88 fps, ETA 00h05m05s)
[2014-12-10, 13:26:45] WARN -- hb.rb: Handbrake exited with return-code pid 3313 exit 4 - removing file Output_04.m4v
[2014-12-10, 13:26:45] WARN -- hb.rb: == done (required time: 00:02:29) =================================
[2014-12-10, 13:26:45] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:26:45] WARN -- hb.rb: title 5 00:05:27 720x480 (blocks: 94133)
[2014-12-10, 13:26:45] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:26:45] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:26:45] WARN -- hb.rb: subtitles
[2014-12-10, 13:26:45] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:26:45] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:26:45] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_05.m4v
[2014-12-10, 13:26:45] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:26:45] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:26:45] WARN -- hb.rb: subtitles
[2014-12-10, 13:26:45] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:26:45] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:26:45] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_05.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 5 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Encoding: task 1 of 1, 23.86 % (26.32 fps, avg 27.32 fps, ETA 00h04m33s)
[2014-12-10, 13:28:18] WARN -- hb.rb: Handbrake exited with return-code pid 3433 exit 4 - removing file Output_05.m4v
[2014-12-10, 13:28:18] WARN -- hb.rb: == done (required time: 00:01:33) =================================
[2014-12-10, 13:28:18] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:28:18] WARN -- hb.rb: title 6 00:06:12 720x480 (blocks: 110236)
[2014-12-10, 13:28:18] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:28:18] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:28:18] WARN -- hb.rb: subtitles
[2014-12-10, 13:28:18] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:28:18] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:28:18] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_06.m4v
[2014-12-10, 13:28:18] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:28:18] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:28:18] WARN -- hb.rb: subtitles
[2014-12-10, 13:28:18] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:28:18] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:28:18] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_06.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 6 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Muxing: this may take awhile... (26.32 fps, avg 24.50 fps, ETA 00h00m00s)
[2014-12-10, 13:36:05] WARN -- hb.rb: created file /Users/Aaron/Movies/Magna/14/Output_06.m4v (125.27 MB)
[2014-12-10, 13:36:06] WARN -- hb.rb: == done (required time: 00:07:48) =================================
[2014-12-10, 13:36:06] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:36:06] WARN -- hb.rb: title 7 00:07:12 720x480 (blocks: 125497)
[2014-12-10, 13:36:06] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:36:06] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:36:06] WARN -- hb.rb: subtitles
[2014-12-10, 13:36:06] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:36:06] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:36:06] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_07.m4v
[2014-12-10, 13:36:06] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:36:06] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:36:06] WARN -- hb.rb: subtitles
[2014-12-10, 13:36:06] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:36:06] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:36:06] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_07.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 7 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Encoding: task 1 of 1, 20.79 % (32.43 fps, avg 29.38 fps, ETA 00h05m49s)
[2014-12-10, 13:37:45] WARN -- hb.rb: Handbrake exited with return-code pid 3453 exit 4 - removing file Output_07.m4v
[2014-12-10, 13:37:45] WARN -- hb.rb: == done (required time: 00:01:39) =================================
[2014-12-10, 13:37:45] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:37:45] WARN -- hb.rb: title 8 00:01:16 720x480 (blocks: 20853)
[2014-12-10, 13:37:45] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:37:45] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:37:45] WARN -- hb.rb: subtitles
[2014-12-10, 13:37:45] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:37:45] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:37:45] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_08.m4v
[2014-12-10, 13:37:45] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:37:45] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:37:45] WARN -- hb.rb: subtitles
[2014-12-10, 13:37:45] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:37:45] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:37:45] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_08.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 8 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Muxing: this may take awhile... (35.40 fps, avg 30.43 fps, ETA 00h00m00s)
[2014-12-10, 13:39:10] WARN -- hb.rb: Handbrake exited with return-code pid 3457 exit 4 - removing file Output_08.m4v
[2014-12-10, 13:39:10] WARN -- hb.rb: == done (required time: 00:01:25) =================================
[2014-12-10, 13:39:10] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:39:10] WARN -- hb.rb: title 9 00:10:21 720x480 (blocks: 183556)
[2014-12-10, 13:39:10] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:39:10] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:39:10] WARN -- hb.rb: subtitles
[2014-12-10, 13:39:10] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:39:10] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:39:10] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_09.m4v
[2014-12-10, 13:39:10] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:39:10] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:39:10] WARN -- hb.rb: subtitles
[2014-12-10, 13:39:10] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:39:10] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:39:10] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_09.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 9 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Encoding: task 1 of 1, 21.26 % (21.17 fps, avg 27.40 fps, ETA 00h08m55s)
[2014-12-10, 13:41:42] WARN -- hb.rb: Handbrake exited with return-code pid 3461 exit 4 - removing file Output_09.m4v
[2014-12-10, 13:41:42] WARN -- hb.rb: == done (required time: 00:02:32) =================================
[2014-12-10, 13:41:42] WARN -- hb.rb: input: /dev/disk1 (title=, title_alt=, name=disk1)
[2014-12-10, 13:41:42] WARN -- hb.rb: title 10 00:07:48 720x480 (blocks: 138677)
[2014-12-10, 13:41:42] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:41:42] WARN -- hb.rb: - track 1: [und] Unknown (AC3) (2.0 ch)
[2014-12-10, 13:41:42] WARN -- hb.rb: subtitles
[2014-12-10, 13:41:42] WARN -- hb.rb: - track 1: [und] Unknown
[2014-12-10, 13:41:42] WARN -- hb.rb: - track 2: [und] Closed Captions
[2014-12-10, 13:41:42] WARN -- hb.rb: output: /Users/Aaron/Movies/Magna/14/Output_10.m4v
[2014-12-10, 13:41:42] WARN -- hb.rb: audio-tracks
[2014-12-10, 13:41:42] WARN -- hb.rb: - track 1: Unknown (AC3) (2.0 ch) - Auto Passthru
[2014-12-10, 13:41:42] WARN -- hb.rb: subtitles
[2014-12-10, 13:41:42] WARN -- hb.rb: - track 1: Unknown
[2014-12-10, 13:41:42] WARN -- hb.rb: - track 2: Closed Captions
[2014-12-10, 13:41:42] WARN -- hb.rb: "/Users/Aaron/Downloads/handbrake/tools/handbrake/osx/HandBrakeCLI" --input "/dev/disk1" --output "/Users/Aaron/Movies/Magna/14/Output_10.m4v" --encoder x264 --quality 20.0 --decomb --detelecine --crop 0:0:0:0 --loose-anamorphic --format mp4 --optimize --markers --title 10 --audio 1 --aencoder copy --mixdown auto --ab auto --drc 0.0 --aname "Unknown (AC3) (2.0 ch)" --audio-fallback faac --subtitle 1,2 2>/dev/null
Encoding: task 1 of 1, 45.47 % (20.73 fps, avg 21.18 fps, ETA 00h06m02s)
But when i use the --xtra argument, some of the setting is double, and thats not good. Because some of them are conflicting as they are not the same. So i would like to get the plist to work, or get the command translated into a plist?Eelisland wrote:Hello Al,
Many thanks for very quick reply and sorry, i'have read every post of the forum and forget the readme
I have installed plist as rootCode: Select all
gem install plist Fetching: plist-3.1.0.gem (100%) Successfully installed plist-3.1.0 1 gem installed Installing ri documentation for plist-3.1.0... Installing RDoc documentation for plist-3.1.0...
I get this error:Code: Select all
gem list *** LOCAL GEMS *** bigdecimal (1.1.0) io-console (0.3) json (1.5.5) minitest (2.5.1) plist (3.1.0) rake (0.9.2.2) rdoc (3.9.5)
Any other info i can provide? again many thanks for your help.Code: Select all
bash-4.2$ hb.rb --help /usr/lib64/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead. hb.rb Copyright (C) 2014 AlBundy This program comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt. This is free software, and you are welcome to redistribute it under certain conditions. For questions, feature-requests etc. visit: https://forum.handbrake.fr/viewtopic.php?f=10&t=26163 /home/toto/.ruby-handbrake/lib/manicure.rb:841:in `generateCLIParse': undefined method `to_i' for true:TrueClass (NoMethodError) from /home/toto/.ruby-handbrake/lib/manicure.rb:158:in `displayIndividualPreset' from /home/toto/.ruby-handbrake/lib/manicure.rb:120:in `block in displayCommandStrings' from /home/toto/.ruby-handbrake/lib/manicure.rb:115:in `each' from /home/toto/.ruby-handbrake/lib/manicure.rb:115:in `displayCommandStrings' from /home/toto/.ruby-handbrake/lib/manicure.rb:108:in `initialize' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:498:in `initialize' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:523:in `new' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:523:in `loadPlist' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:462:in `block in getPresets' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:461:in `glob' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:461:in `getPresets' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:227:in `block in parseArgs' from /usr/lib64/ruby/1.9.1/optparse.rb:882:in `initialize' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:170:in `new' from /home/toto/.ruby-handbrake/lib/hb_lib.rb:170:in `parseArgs' from ./hb.rb:14:in `<main>'
Code: Select all
waiting for /dev/sr0...
This is possible, I have just added a space between eng, dan. The correct syntax is: --audio eng,danAnother thing, shouldn't it be possible to choose multiple audio tracks? If it is, how do i do that? If i just use --audio eng, dan I will only use the english one.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>AudioAllowAACPass</key>
<true />
<key>AudioAllowAC3Pass</key>
<true />
<key>AudioAllowDTSHDPass</key>
<true />
<key>AudioAllowDTSPass</key>
<true />
<key>AudioAllowMP3Pass</key>
<true />
<key>AudioEncoderFallback</key>
<string>AC3 (ffmpeg)</string>
<key>AudioList</key>
<array>
<dict>
<key>AudioBitrate</key>
<string>160</string>
<key>AudioEncoder</key>
<string>AAC (faac)</string>
<key>AudioEncoderActual</key>
<string>faac</string>
<key>AudioMixdown</key>
<string>Dolby Surround</string>
<key>AudioSamplerate</key>
<string>Auto</string>
<key>AudioTrack</key>
<integer>1</integer>
<key>AudioTrackDRCSlider</key>
<real>0</real>
<key>AudioTrackDescription</key>
<string>Dansk (AC3) (Dolby Surround)</string>
<key>AudioTrackGain</key>
<real>0</real>
<key>AudioTrackName</key>
<string></string>
<key>AudioTrackQuality</key>
<real>-1</real>
<key>AudioTrackQualityEnable</key>
<false />
</dict>
</array>
<key>ChapterMarkers</key>
<true />
<key>Default</key>
<false />
<key>FileFormat</key>
<string>MKV file</string>
<key>Folder</key>
<false />
<key>Mp4HttpOptimize</key>
<false />
<key>Mp4LargeFile</key>
<false />
<key>Mp4iPodCompatible</key>
<false />
<key>PictureAutoCrop</key>
<true />
<key>PictureBottomCrop</key>
<integer>0</integer>
<key>PictureDeblock</key>
<integer>4</integer>
<key>PictureDecomb</key>
<integer>2</integer>
<key>PictureDecombCustom</key>
<string></string>
<key>PictureDecombDeinterlace</key>
<true />
<key>PictureDeinterlace</key>
<integer>0</integer>
<key>PictureDeinterlaceCustom</key>
<string></string>
<key>PictureDenoise</key>
<integer>0</integer>
<key>PictureDenoiseCustom</key>
<string></string>
<key>PictureDetelecine</key>
<integer>2</integer>
<key>PictureDetelecineCustom</key>
<string></string>
<key>PictureKeepRatio</key>
<true />
<key>PictureLeftCrop</key>
<integer>2</integer>
<key>PictureLooseCrop</key>
<true />
<key>PictureModulus</key>
<integer>2</integer>
<key>PicturePAR</key>
<string>1</string>
<key>PicturePARHeight</key>
<integer>45</integer>
<key>PicturePARWidth</key>
<integer>64</integer>
<key>PictureRightCrop</key>
<integer>0</integer>
<key>PictureTopCrop</key>
<integer>4</integer>
<key>PresetBuildNumber</key>
<integer>2014022799</integer>
<key>PresetDescription</key>
<string>HandBrake's normal, default settings.</string>
<key>PresetName</key>
<string>morten</string>
<key>SubtitleList</key>
<array>
</array>
<key>Type</key>
<integer>1</integer>
<key>UsesPictureFilters</key>
<integer>1</integer>
<key>UsesPictureSettings</key>
<integer>2</integer>
<key>VideoAvgBitrate</key>
<integer>1500</integer>
<key>VideoEncoder</key>
<string>H.264 (x264)</string>
<key>VideoFramerate</key>
<string>Same as source</string>
<key>VideoFramerateMode</key>
<string>vfr</string>
<key>VideoGrayScale</key>
<false />
<key>VideoQualitySlider</key>
<integer>20</integer>
<key>VideoQualityType</key>
<integer>2</integer>
<key>VideoTargetSize</key>
<integer>700</integer>
<key>VideoTurboTwoPass</key>
<false />
<key>VideoTwoPass</key>
<false />
<key>lavcOption</key>
<string></string>
<key>x264Option</key>
<string>ref=9:weightp=1:subme=9:rc-lookahead=60:trellis=2:bframes=16:b-adapt=2:direct=auto:me=hex:merange=24:partitions=all:deblock=-1,-1:psy-rd=1|0,15:nr=100</string>
</dict>
</array>
</plist>