My old Handbrake CLI shell script now gets pissy once I upgraded my server to Ubuntu Server 12.04, AND the latest Handbrake CLI. Before, I wrote a script to do the settings for me, now, this new tweak they have done, I get invalid syntax errors. After browsing their CLI help webpage, I see nothing wrong with mine.
Here is the "code" I use to use for my blurays:
HandBrakeCLI -i hb_demo.m2ts -t 1 -c 1 -o hb_demo.mp4 -f mp4 -4 --detelecine --decomb --denoise="weak" -w 1920 -e x264 -q 20 --cfr -a 1 -E faac -B 768 -6 6ch -R 48 -D 0 --gain=4 -x b-adapt=2:rc-lookahead=50 --verbose=1
Well that no longer works.
Can anyone help me here? My best case senario would be to mimmic the settings I use on my Win7 desktop with subtitles. Here is a printout ouf the "code" from the new Handbrake queue that I use on the desktop. I would LOVE to have this in CLI form:
<?xml version="1.0"?>
<ArrayOfQueueTask xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<QueueTask>
<CustomQuery>false</CustomQuery>
<Status>Waiting</Status>
<Task>
<Source>C:\Users\ClickClick5\Desktop\00070.m2ts</Source>
<Title>1</Title>
<Angle>1</Angle>
<PointToPointMode>Chapters</PointToPointMode>
<StartPoint>1</StartPoint>
<EndPoint>1</EndPoint>
<Destination>C:\Users\ClickClick5\Desktop\hb_demo.mp4</Destination>
<OutputFormat>Mp4</OutputFormat>
<LargeFile>true</LargeFile>
<OptimizeMP4>false</OptimizeMP4>
<IPod5GSupport>false</IPod5GSupport>
<Width>1920</Width>
<Height>1072</Height>
<MaxWidth xsi:nil="true" />
<MaxHeight xsi:nil="true" />
<Cropping>
<Top>2</Top>
<Bottom>4</Bottom>
<Left>0</Left>
<Right>0</Right>
</Cropping>
<HasCropping>false</HasCropping>
<Anamorphic>None</Anamorphic>
<DisplayWidth xsi:nil="true" />
<KeepDisplayAspect>true</KeepDisplayAspect>
<PixelAspectX>0</PixelAspectX>
<PixelAspectY>0</PixelAspectY>
<Modulus>16</Modulus>
<Deinterlace>Off</Deinterlace>
<Decomb>Default</Decomb>
<Detelecine>Default</Detelecine>
<Denoise>Weak</Denoise>
<Deblock>0</Deblock>
<Grayscale>false</Grayscale>
<VideoEncodeRateType>ConstantQuality</VideoEncodeRateType>
<VideoEncoder>X264</VideoEncoder>
<FramerateMode>CFR</FramerateMode>
<Quality>20</Quality>
<VideoBitrate xsi:nil="true" />
<TwoPass>false</TwoPass>
<TurboFirstPass>false</TurboFirstPass>
<Framerate xsi:nil="true" />
<AudioTracks>
<AudioTrack>
<Bitrate>768</Bitrate>
<DRC>0</DRC>
<Encoder>Faac</Encoder>
<Gain>2</Gain>
<MixDown>SixChannelDiscrete</MixDown>
<SampleRate>48</SampleRate>
<SampleRateDisplayValue>48</SampleRateDisplayValue>
<ScannedTrack>
<TrackNumber>1</TrackNumber>
<Language>Unknown</Language>
<LanguageCode>und</LanguageCode>
<Format>AC3) (2.0 ch</Format>
<SampleRate>48000</SampleRate>
<Bitrate>320000</Bitrate>
</ScannedTrack>
<TrackName />
</AudioTrack>
</AudioTracks>
<AllowedPassthruOptions>
<AudioAllowAACPass>true</AudioAllowAACPass>
<AudioAllowAC3Pass>true</AudioAllowAC3Pass>
<AudioAllowDTSHDPass>true</AudioAllowDTSHDPass>
<AudioAllowDTSPass>true</AudioAllowDTSPass>
<AudioAllowMP3Pass>true</AudioAllowMP3Pass>
<AudioEncoderFallback>Ac3</AudioEncoderFallback>
</AllowedPassthruOptions>
<SubtitleTracks>
<SubtitleTrack>
<Burned>true</Burned>
<Default>false</Default>
<Forced>true</Forced>
<SourceTrack>
<TrackNumber>1</TrackNumber>
<Language>Unknown</Language>
<LanguageCode>iso639-2: und</LanguageCode>
<SubtitleType>PGS</SubtitleType>
</SourceTrack>
<SrtOffset>0</SrtOffset>
<SubtitleType>VobSub</SubtitleType>
</SubtitleTrack>
</SubtitleTracks>
<IncludeChapterMarkers>false</IncludeChapterMarkers>
<ChapterNames>
<ChapterMarker>
<ChapterNumber>1</ChapterNumber>
<ChapterName>Chapter 1</ChapterName>
</ChapterMarker>
</ChapterNames>
<AdvancedEncoderOptions>b-adapt=2:rc-lookahead=60</AdvancedEncoderOptions>
<x264Preset>None</x264Preset>
<x264Profile>None</x264Profile>
<X264Tune>None</X264Tune>
<PreviewStartAt xsi:nil="true" />
<PreviewDuration xsi:nil="true" />
<IsPreviewEncode>false</IsPreviewEncode>
<PreviewEncodeDuration>0</PreviewEncodeDuration>
</Task>
</QueueTask>
</ArrayOfQueueTask>
If this could be converted into a CLI version, I would GREATLY APPRECIATE IT!!!
Thanks,
CC5