VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Member
    Join Date
    Jan 2009
    Location
    United States
    Search Comp PM
    Referring to a post on https://forum.videohelp.com/topic310993-120.html (Jan 19, 2009 00:20). I have written a PowerShell form for those interested in multiplexing more than 3 subtitles into a video, it works as a helper to GfD. I don’t know if it will work for any subtitles that are not in "srt" format, I haven't tested that and my knowledge is limited in that area. The script creates all the necessary spu*.xml files, overwrites "batchrun0.bat" and modifies "Author.xml". It is a basic script and only prompts for the 5 inputs that are likely to be changed for different languages. If other values need to be changed (margins, alignment, etc) they can be edited in the ‘Default values’ region of the script (which are subsequently placed in the "$SpuSubTemp" here string). Also, the character encoding box allows for manual entry (due to the vast amount of supported encodings for spumux - http://www.gnu.org/software/libiconv/ - and the fact that I could not readily find an existing list on the web from which to parse), the rest of the choices are not editable as of now.

    Here is the process in simplified form:
    -Open existing GFD project (choose project output path in GfD settings)
    -Click "Create Batch" to generate config files in temp directory
    -Copy GFD project file to temp directory
    -Copy "Add-Subtitles.ps1" powershell script (or exe) to temp directory
    -Execute powershell script
    -Add single or multiple language streams to each film title as needed

    After clicking “Create DVD”, GFD's "MainBatch.bat" takes over and displays the output. You may also find the application to be more expedient for adding subtitles even when adding only one stream.

    *Notes:
    -Application only works with single titlesets for now
    -When using this program, do not add any subtitles through the Gfd interface
    -If subtitle xml config file already exists in temp directory, then it is assumed you want to edit the existing config to make modifications, otherwise
    GFD project file is assumed to be in the temporary directory, if a project does not exist in the directory, script will error and will not load until a .gfd file exists
    -Subtitle config is automatically saved and updated in temp folder upon clicking "Create DVD", adding or removing subtitles, or on application exit, it has the naming convention of "GFDProjectName_Subtitles.xml"
    -This program does not modify anything besides what has been noted

    Your system of course will need the ability to execute Powershell scripts and access to .NET Framework 3.5. You can follow the steps here http://technet.microsoft.com/en-us/library/ee176949.aspx. The Powershell download is also linked on this technet page.

    I suggest the following 4 steps to get started with running ps scripts:
    -Install SP2 (Vista) or SP3 (XP)
    -Install .NET Framework 3.5 SP2 (already installed on Windows 7)
    -Install Windows Management Framework Core for your OS (already installed on Windows 7) http://support.microsoft.com/kb/968929
    -Open a Powershell command prompt and run "Set-ExecutionPolicy RemoteSigned"
    -Associate the "ps1" extension with Powershell (rather than right clicking and doing "open with")

    I have attached the ‘exe’ and ‘ps1’ versions of the script (Remove the “.txt” extensions after downloading). I also attached the .pff file for those who want to edit the GUI. The form was created using Primal Forms 2009. The Community Edition is also available for free - http://www.primalscript.com/downloads/communitytools/signup.asp?tool=pforms
    Image Attached Files
    Quote Quote  



Similar Threads

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