Menu

Extracting teletext with the CLI

Help
David
2017-01-12
2017-01-12
  • David

    David - 2017-01-12

    Is it possible to set all options needed for teletext extraction from the CLI or in the ini-file?

    Is it possible to set FileterControl options from the CLI, like the following option:

    And can you set Collection Properties from the CLI, like the following:

    If this isn't possible, is there some way to save these options to the .ini file and have them loaded?

     
  • David

    David - 2017-02-03

    I found the answer, for anyone interested in the same logic.
    Steps on Linux:

    1. Create an .ini-file where you find it convenient (I keep them in the same directory as ProjectX)
    2. vi 777.ini
    3. Paste the content below in the 777.ini file
    # Project-X INI
    # ProjectX 0.91.0.00 / 31.03.2011
    
    # Application
    Application.ActiveDirectory=/tmp/ts
    Application.Agreement=1
    Application.Language=en
    Application.LookAndFeel=javax.swing.plaf.metal.MetalLookAndFeel
    Application.OutputDirectories.1=/tmp/ts
    Application.OutputDirectory=[res] same location as 1st file in coll.
    
    # CollectionPanel
    CollectionPanel.CutMode=0
    
    # ExportPanel
    ExportPanel.Streamtype.Ac3Audio=0
    ExportPanel.Streamtype.MpgVideo=0
    ExportPanel.Streamtype.PcmAudio=0
    ExportPanel.Streamtype.Subpicture=0
    ExportPanel.Streamtype.Vbi=0
    ExportPanel.WriteOptions.writeVideo=0
    
    # MainPanel
    MainPanel.ConversionMode=0
    
    # SubtitlePanel
    SubtitlePanel.SubtitleExportFormat=SRT
    SubtitlePanel.rebuildPTS=1
    SubtitlePanel.TtxPage1=777
    
    1. Start ProjectX from the comman-line with the settings from the .ini-file
    2. java -jar ProjectX -ini 777.ini /tmp/ts/20170202_390219.ts
    3. No Gui will be started but you will see a lot of output to stdout and eventually when ProjextX is done parsing your recording you should see the .srt-file in the same directory as the .ts-file
    4. /tmp/ts/20170202_390219[777].srt

    I have not yet figured out how to change the output-name of the .srt-file (I don't like getting the [777] part in the file-name) this is added automatically by ProjectX.

    Note that this .ini-file is for teletext on Page: 777, if your recording uses another page, change it accordingly in attribute:

    • SubtitlePanel.TtxPage1=777

    A couple of other things to note. I'm extracting teletext from an HD-broadcast with missing timestamps in the teletext-stream. To compensate for this I need to sync the text with the audio-stream to get correct timestamps. I do this with two settings:

    1. I set "stream-types" to process both: audio-data and the teletext stream
    2. I add attribute: SubtitlePanel.rebuildPTS=1

    Note! If you have correct timestamps within the teletext-stream itself you may not need these options, saving you time by not parsing the audio-file.

     

Log in to post a comment.