VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. 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.

    <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>
    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.
    Unfortunately, my knowledge of cmd/batch ends here
    Can someone help?
    Image Attached Files
    Last edited by remuxler; 13th Feb 2013 at 05:27.
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    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/
    Quote Quote  
  3. thanks again, I''ll take a look!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!