Hello,
I have used Hanbrake for a while now to convert a few mkv-videos to mp4 with burnt in ssa subtitles.
What I want to do now is to apply this to a hundred files, so what I'm looking for is a simple script or function in Handbrake that I don't know of yet.
Furthermore, I want to keep these settings (.plist, renamed to make it uploadable), manual preset is attached for any reference.
Those settings are:
- .mp4 container, h.264
- original video size
- quality: RF:28
- audio: Japanese (aac) (2.0ch) - Dolby Pro Logic II
- audio: samplerate: 48, bitrate: 128
- subtitles: "2 Unknown (SSA)" name of the subtitles in every mkv file, burned in
Further information:
yes, these are anime, 2nd: those settings are for playback on a Playstation Vita.
Thanks in advance!
In the meantime, I'll be queuing the conversions one by one
//edit: I have just found out that a xml.queue is built as following
The idea is to make a script that generates those tables in a text file, changing the number according to the number of the video, the prefix "VIDEO-XXX" (XXX = number between 000-400) stays the same.
Later on I'd just copy those table and paste them into the xml.queue which I can import to Handbrake.
With this in mind, one should be able to make a batch that generates such tables while only replacing the number, as the video name scheme is continually the same, its settings, too.<QueueTask>
<Id>13</Id>
<Title>1</Title>
<Source>C:\Users\ABC\Downloads\remuxed\VIDEO.mkv </Source>
<Destination>C:\Users\ABC\Videos\Bleach\VIDEO-1.mp4</Destination>
<Query> -i "C:\Users\ABC\Downloads\remuxed\VIDEO.mkv" -t 1 -c 1-5 -o "C:\Users\ABC\Videos\Bleach\VIDEO-1.mp4" -f mp4 --strict-anamorphic -e x264 -q 28 --cfr -a 1 -E faac -B 128 -6 dpl2 -R 48 -D 0 --gain=0 --audio-copy-mask aac,ac3,dtshd,dts,mp3 --audio-fallback ffac3 --subtitle 2 --subtitle-burn=1 -x ref=2:bframes=2ubq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0 --verbose=1</Query>
<CustomQuery>true</CustomQuery>
<Status>Waiting</Status>
<Task>
<Source>C:\Users\ABC\Downloads\remuxed\VIDEO.mkv </Source>
<Title>1</Title>
<Angle>0</Angle>
<PointToPointMode>Chapters</PointToPointMode>
<StartPoint>1</StartPoint>
<EndPoint>5</EndPoint>
<Destination>C:\Users\ABC\Videos\Bleach\VIDEO-1.mp4</Destination>
<OutputFormat>Mp4</OutputFormat>
<LargeFile>false</LargeFile>
<OptimizeMP4>false</OptimizeMP4>
<IPod5GSupport>false</IPod5GSupport>
<Width>0</Width>
<Height>0</Height>
<MaxWidth xsi:nil="true" />
<MaxHeight xsi:nil="true" />
<Cropping>
<Top>0</Top>
<Bottom>0</Bottom>
<Left>0</Left>
<Right>0</Right>
</Cropping>
<HasCropping>false</HasCropping>
<Anamorphic>Strict</Anamorphic>
<DisplayWidth xsi:nil="true" />
<KeepDisplayAspect>false</KeepDisplayAspect>
<PixelAspectX>0</PixelAspectX>
<PixelAspectY>0</PixelAspectY>
<Modulus xsi:nil="true" />
<Deinterlace>Off</Deinterlace>
<CustomDeinterlace />
<Decomb>Off</Decomb>
<CustomDecomb />
<Detelecine>Off</Detelecine>
<CustomDetelecine />
<Denoise>Off</Denoise>
<CustomDenoise />
<Deblock>0</Deblock>
<Grayscale>false</Grayscale>
<VideoEncodeRateType>ConstantQuality</VideoEncodeRateType>
<VideoEncoder>X264</VideoEncoder>
<FramerateMode>CFR</FramerateMode>
<Quality>28</Quality>
<VideoBitrate>0</VideoBitrate>
<TwoPass>false</TwoPass>
<TurboFirstPass>false</TurboFirstPass>
<Framerate>0</Framerate>
<AudioTracks>
<AudioTrack>
<Bitrate>128</Bitrate>
<DRC>0</DRC>
<Encoder>Faac</Encoder>
<Gain>0</Gain>
<MixDown>DolbyProLogicII</MixDown>
<SampleRate>48</SampleRate>
<ScannedTrack>
<TrackNumber>1</TrackNumber>
<Language>Japanese</Language>
<LanguageCode>jpn</LanguageCode>
<Format>aac) (2.0 ch</Format>
<SampleRate>0</SampleRate>
<Bitrate>0</Bitrate>
</ScannedTrack>
</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>false</Forced>
<SrtCharCode>-</SrtCharCode>
<SrtFileName>-</SrtFileName>
<SrtLang>-</SrtLang>
<SrtOffset>0</SrtOffset>
<SrtPath>-</SrtPath>
<SubtitleType>SSA</SubtitleType>
</SubtitleTrack>
</SubtitleTracks>
<IncludeChapterMarkers>false</IncludeChapterMarkers>
<ChapterNames>
<ChapterMarker>
<ChapterNumber>1</ChapterNumber>
<ChapterName>Chapter 1</ChapterName>
</ChapterMarker>
<ChapterMarker>
<ChapterNumber>2</ChapterNumber>
<ChapterName>Chapter 2</ChapterName>
</ChapterMarker>
<ChapterMarker>
<ChapterNumber>3</ChapterNumber>
<ChapterName>Chapter 3</ChapterName>
</ChapterMarker>
<ChapterMarker>
<ChapterNumber>4</ChapterNumber>
<ChapterName>Chapter 4</ChapterName>
</ChapterMarker>
<ChapterMarker>
<ChapterNumber>5</ChapterNumber>
<ChapterName>Chapter 5</ChapterName>
</ChapterMarker>
</ChapterNames>
<AdvancedEncoderOptions>ref=2:bframes=2ubq=6:mixed-refs=0:weightb=0:8x8dct=0:trellis=0</AdvancedEncoderOptions>
<x264Preset>None</x264Preset>
<x264Profile>None</x264Profile>
<X264Tune>None</X264Tune>
<Verbosity>1</Verbosity>
<DisableLibDvdNav>false</DisableLibDvdNav>
<PresetBuildNumber>0</PresetBuildNumber>
<UsesMaxPictureSettings>false</UsesMaxPictureSettings>
<UsesPictureFilters>false</UsesPictureFilters>
<UsesPictureSettings>false</UsesPictureSettings>
</Task>
</QueueTask>
Unfortunately, my knowledge of cmd/batch ends here
Can someone help?
+ Reply to Thread
Results 1 to 3 of 3
-
Last edited by remuxler; 13th Feb 2013 at 05:27.
-
http://videoscripts.wordpress.com/downloads/ have some batch scripts for handbrake. But they might be a old now.
Try also ask in the handbrake forum, https://forum.handbrake.fr/
Similar Threads
-
Trouble Hardcoding SRT Subtitles to MP4 with Handbrake
By Omer Syed in forum Video ConversionReplies: 9Last Post: 30th Dec 2012, 07:03 -
Trouble Hardcoding SRT Subtitles to MP4 with Handbrake
By Omer Syed in forum SubtitleReplies: 1Last Post: 27th Dec 2012, 09:01 -
Mkv to mp4 with handbrake
By hilario in forum Video ConversionReplies: 11Last Post: 5th Feb 2012, 13:27 -
MKV to MP4 converter besides Handbrake
By bowmah in forum Newbie / General discussionsReplies: 10Last Post: 19th Dec 2011, 03:04 -
Which is better, AVIDEMUX or HANDBRAKE to convert high quality mkv's to mp4
By rxloren in forum Newbie / General discussionsReplies: 8Last Post: 1st Nov 2010, 20:33