-
Notifications
You must be signed in to change notification settings - Fork 86
ld decode tools
ld-decode-tools is a suite of applications for processing the .tbc output from ld-decode. The tools enable various processing of the LaserDisc including VBI, 40-bit FM code, White-Flag, dropout detection/correction and comb filtering. The ld-decode-tools use a JSON based metadata file to store and communicate information about the .tbc. Details of the JSON format can be found on the JSON Metadata format wiki pages.
From the tools directory (of the ld-decode repo) type 'qmake' followed by 'make all'. Once all of the applications are compiled use 'sudo make install' to install and 'sudo make uninstall' to remove.
Note: The ld-decode-tools.pro qmake project file is designed only for command line compilation with Ubuntu. The individual application .pro files can be used within the Qt Creator IDE (you should build ld-decode-shared first in order to make a local copy of the required shared libraries).
So if, for example, your .tbc output file is test_video.tbc (and is NTSC):
ld-process-vbi test_video.tbc (add in the VBI data and determine the field order)
ld-dropout-correct test_video.tbc test_video_doc.tbc (correct the dropouts and create a new .tbc)
ld-analyse test_video_doc.tbc & (view the corrected .tbc)
ld-comb-ntsc test_video_doc.tbc test_video_doc.rgb (convert the .tbc to RGB 16-16-16 frames)
For a PAL .tbc output file a typical sequence would be:
ld-process-vbi test_video.tbc (add in the VBI data and determine the field order)
ld-dropout-correct test_video.tbc test_video_doc.tbc (correct the dropouts and create a new .tbc)
ld-analyse test_video_doc.tbc & (view the corrected .tbc)
ld-comb-pal test_video_doc.tbc test_video_doc.rgb (convert the .tbc to RGB 16-16-16 frames)
Note that the VBI processing, NTSC processing, drop-out detection and correction are optional.
This application examines the input TBC file and determines the available VBI data for each available frame. The VBI data is stored as both the raw data value for the 3 VBI lines as well as a full decode of the VBI according to the IEC specifications. The resulting information is written back into the JSON metadata file for the TBC output.
For NTSC sources this application also processes items from the IEC NTSC specification that are specific to NTSC LaserDiscs such as 40-bit FM codes, white flags, etc.
Syntax:
ld-process-vbi <options> <input TBC file name>
Available options are:
--debug - Show full debug output
--help - show help text
--version - show version text
--correction - Perform automatic VBI frame number, time-code and sound mode correction (experimental). Note: this will not function correctly on NTSC pull-down sources. You must run ld-process-vbi on the TBC file without this option first to populate the required metadata.
This application uses the drop-out information in the JSON metadata file to perform dropout correction on the input TBC file and produces a new output file. The current version of the corrector uses framing in order to provide inter-field correction. Note that inter-field correction may not function correctly for NTSC pull-down sources.
Syntax:
ld-dropout-correct <options> <input TBC file name> <output TBC file name>
Available options are:
--debug - Show full debug output
--help - show help text
--version - show version text
--reverse - Reverse the field order to second/first (default first/second)
--intra - Force intra-field correction only (for NTSC pull-down sources and other odd mastering field orders)
This application takes the PAL TBC input video and colourises it. Output is a sequence of RGB 16-16-16 video frames.
Syntax:
ld-comb-pal <options> <input TBC file name> (<output RGB file name>)
The output RGB file name is optional. If omitted the output will be sent to stdout (for pipe-lining)
Available options are:
--debug - Show full debug output
--start - Specify the start frame
--length - Specify the maximum number of frames to process
--threads - Specify the number of processing threads (default is 32)
--reverse - Reverse the field order to second/first (default first/second)
--blackandwhite - Output in black and white (only outputs Y and ignores UV)
--quiet - Suppress info and warning messages
--help - show help text
--version - show version text
This GUI application provides a range of features for examining TBC output including drop-out detection, video extent, line scope and VBI data. The application works with NTSC and PAL TBC output files.
Note: The input file name is optional (you can either specify it from the command line or using the GUI once the application is running).
For more information about ld-analyse please see the ld-analyse User Guide
Syntax:
ld-analyse <options> <input TBC file name>
Available options are:
--debug - Show full debug output
--help - show help text
--version - show version text
This application takes the NTSC TBC input video and colourises it. Output is a sequence of RGB 16-16-16 video frames.
Syntax:
ld-comb-ntsc <options> <input TBC file name> (<output RGB file name>)
The output RGB file name is optional. If omitted the output will be sent to stdout (for pipe-lining)
Available options are:
--debug - Show full debug output
--3d - Use 3D filtering (default is 2D)
--blackandwhite - Output video frames in black and white
--reverse - Reverse the field order to second/first (default first/second)
--white - Use a 75% white-point (default is 100%)
--oftest - Superimpose the optical flow map (generated for 3D processing) over the output RGB image (Note: this option is for testing purposes)
--start - Specify the start frame
--length - Specify the maximum number of frames to process
--quiet - Suppress info and warning messages
--help - show help text
--version - show version text
This application combines two TBC source files using quality and drop-out metadata to decide which source contains the best image data. For lines containing dropouts the application will replace the whole line (if a perfect replacement is available) or the individual dropouts where replacement data is available in the secondary source. Output is a new TBC file with dropout metadata for any dropouts that could not be replaced.
Syntax:
ld-combine <options> <primary TBC file name> <secondary TBC file name> <output TBC file name>
Available options are:
--debug - Show full debug output
--help - show help text
--version - show version text
--reverse - Reverse the field order to second/first (default first/second)
This application processes the .efm output from ld-decode into either digital audio or data. The application implements both audio and data error detection and correction. Audio output is a stereo 44.1KHz 16-bit PCM file.
Syntax:
ld-process-efm <options>
Available options are:
--debug - Show full debug output
--help - show help text
--version - show version text
--verbose - Show verbose debug of the F3 level framing
--input - the input EFM file
--audio - output audio data to the specified file
--data - output data to the specified file
--log - output debug to the specified log file
This application can accept 10-bit packed format .lds files and convert them to 16-bit signed files or vice-versa (useful for expanding .lds files and piping the output to a compression utility such as FLAC).
Syntax:
ld-lds-converter <options>
Available options are:
--debug - Show full debug output
--help - show help text
--version - show version text
--input - input LaserDisc Sample file (default is stdin)
--output - output LaserDisc Sample file (default is stdout)
--unpack - unpack 10-bit data into 16-bit (default)
--pack - pack 16-bit data into 10-bit
- Basic usage
- TBC Video Export
- PAL decode guide
- NTSC decode guide
- Working with multiple discs
- Working with subtitles
- Disc images to download
- ld-decode
- ld-analyse
- ld-chroma-decoder
- ld-process-vbi
- ld-export-metadata
- ld-dropout-correct
- ld-process-efm
- ld-discmap
- ld-disc-stacker
- ld-process-vits
- ld-lds-converter
- ld-chroma-encoder