Search found 377 matches

by AlBundy
Wed Dec 31, 2014 11:43 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

You can try this
Search in lib/hb_lib.rb for the string
t.descr.match(s["track"])
and replace it with
t.to_s.match(s["track"])
by AlBundy
Wed Dec 31, 2014 11:39 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

I've rechecked - the pattern must match the description def descr(remove_codec = false, remove_channels = false) d = @descr.dup d.gsub!(/\s*[(]?#{codec}[)]?/, "") if remove_codec d.gsub!(/\s*[(]?#{channels}[)]?/, "") if remove_channels d.strip! return d end Maybe I'll change this...
by AlBundy
Wed Dec 31, 2014 8:48 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

The regex is tested against the audio tracks description

Code: Select all

    def to_s
      "#{pos}. #{descr} (codec=#{codec}, channels=#{channels}, lang=#{lang}, comment=#{comment}, rate=#{rate}, bitrate=#{bitrate}, commentary=#{commentary?()})"
    end
by AlBundy
Wed Dec 31, 2014 8:43 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

You could try this (untested) [anim-com] --audio eng --subtitles eng --audio-track encoder=auto --audio-settings track=*,encoder=copy --audio-settings track=(Commentary|Stereo) ,encoder=av_aac,mixdown=stereo,bitrate=96 --min-length 00:10:00 --max-length 00:50:00 Means: if no specific setting found, ...
by AlBundy
Wed Dec 31, 2014 1:07 am
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

You can do the same in the preset as hb.rb can do - the advantage is "only" that you don't have to remeber all arguments. :-) In the presetfile each argument and each value has to be on it's own line (thats making parsing easier for me) Works not --min-length 00:10:00 --max-length 00:50:00...
by AlBundy
Wed Dec 31, 2014 12:20 am
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

Btw you can also add the length arguments to your preset and build presets hierarchicaly (see my sample).
by AlBundy
Wed Dec 31, 2014 12:18 am
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

You're right - it's a regex.
But you should really use a better regex because DTS 7.2 matches also 2.

I would suggest to use * instead of 1 (deafault settings) and Stereo instead of 2 so all tracks will be copied and stereo tracks reencoded (Commentary instead of 2 should also work)
by AlBundy
Tue Dec 30, 2014 11:16 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

Btw there is an option c - you can define to reencode ac3 stereo only and copy all other tracks.
by AlBundy
Tue Dec 30, 2014 11:06 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

Each --audio-track will be applied to each found audio track. So in your case you'll get 4 audio tracks in output. If you only want 2 tracks you can: a) copy the generated commandline and change it to your needs b) simply remove your encoder settings - so the commentary will be copied too I would pr...
by AlBundy
Tue Dec 30, 2014 10:48 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

It was line 1092 in the linked commit - maybe it's now 1106.

Your output looks fine - the output contains the primary and commentary track as copy and reencoded.
This is the wanted behavior.
by AlBundy
Tue Dec 30, 2014 10:17 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

You should substitute --episodes at least with -lang=eng --min-length 00:10:00 --max-length 00:50:00 --skip-duplicates If you want to create a copy and an encoded audio track you could try to remove the break in lib/hb_lib.rb line 1092 https://github.com/AlBundy33/hb_rb/blob/6587e0395e772b84c46ec670...
by AlBundy
Tue Dec 30, 2014 9:51 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

Adding a copied and a reencoded track should work theoretically (maybe I've disabled this function accidentally in one of my last committs. But this function will copy and reencode each audio track (also the primary). The main-goal for this function was to copy the oroginal audio track and create a ...
by AlBundy
Fri Dec 26, 2014 9:46 pm
Forum: Windows
Topic: libdvdcss won't help convert videos
Replies: 5
Views: 1324

Re: libdvdcss won't help convert videos

I've ment 1.3 - not 0.13. :-)

Here you can download the latest precompiled dll
http://download.videolan.org/pub/libdvdcss/1.2.12/
by AlBundy
Fri Dec 26, 2014 1:27 pm
Forum: Windows
Topic: libdvdcss won't help convert videos
Replies: 5
Views: 1324

Re: libdvdcss won't help convert videos

What version of libdvdcss do you use?
Afaik libdvdcss 0.13 is not supported.
Anther option is to rip the DVD with MakeMKV and convert the mkv with HandBrake.
by AlBundy
Thu Dec 25, 2014 6:38 pm
Forum: Command Line Interface And Scripting
Topic: Converting CLI back to profile
Replies: 2
Views: 820

Re: Converting CLI back to profile

Not sure but most of them seems to be audioxsettings.
The last one are advanced encoder settings.
by AlBundy
Thu Dec 25, 2014 6:36 pm
Forum: Windows
Topic: libdvdcss won't help convert videos
Replies: 5
Views: 1324

Re: libdvdcss won't help convert videos

Code: Select all

 libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't open D:\ for reading
libdvdread: Device D:\ inaccessible, CSS authentication not available.


Try to use libdvdcss-2.dll as name (should be copied in the same folder as Handbrake.exe afaik)
by AlBundy
Thu Dec 25, 2014 6:32 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

Ok, then it's maybe time for a kernel update. :-)
But I think you can set your settings in hb.rb at least with the --xtra argument
by AlBundy
Mon Dec 22, 2014 6:52 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

Can you explain, why you have to use a version without x264 presets?
by AlBundy
Mon Dec 22, 2014 1:51 am
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

It seems that you have an old plist-file. Please use the latest version of Handbrake to export the plist-file. --> Instead of true and false, integers of 1 and 0 should be used. I've also made some changes for plist-preset - please test your new file with the current version (https://github.com/AlBu...
by AlBundy
Sun Dec 21, 2014 11:50 pm
Forum: Command Line Interface And Scripting
Topic: [Script] convert episodes or main-feature from DVD or BD or convert multiple files (on any os)
Replies: 327
Views: 129423

Re: [Script] rip episodes or main-feature from DVD or BD

I think I can fix the plist-error.
/dev/sr0 is a device file. :-)

If you get waiting for /dev/sr0... in my script you should also get an error message in terminal if you run ls /dev/sr0