File formats¶
The ld-decode application accepts FM RF captures input in '10-bit packed' format. This is a bit-stream of 10-bit unsigned integers produced by the Domesday Duplicator's capture GUI (typically with the .lds file extension). The input bit-stream is expected to be the raw LaserDisc RF captured at 40 Million Samples Per Second (MSPS) with each sample being 10-bits.
*The decoder also supports FLAC compressed captures, and lower sample rates if the input frequency is defined and bit-depths such as 8-bit & 16-bit.
The output from ld-decode.py is a stream of 16-bit unsigned values; each value representing a single grey-scale value. The file extension used by ld-decode is .tbc for both NTSC and PAL decoded frames aptly named the Time Base Corrected format.
- PAL output is 1135x625 16-bit values. (280mbps) (2.1GB/min) (126GB/hour)
- NTSC output is 910x525 16-bit values. (226.5mbps) (1.7GB/min) (102GB/hour)
The 16-bit grey-scale values used by the output format are scaled representations of the standard 8-bit digital component values (i.e. an 8-bit right shift of the value will provide the standard 8-bit digital component intensity values).
The frequency values for .tbc to analogue CVBS playback via DAC are the following:
- PAL - 17727262 Hz
- NTSC - 14318181 Hz
EFM output sidecars¶
When digital audio is enabled (the default), the decoder writes the EFM stream alongside the video output:
.efm— one byte per recovered T-value, in disc order. With confidence output off (the--tbcdefault) each byte is the plain T-value 3–11; with it on (always, in CVBS output mode;--efm_conf onfor TBC) each byte packs the T-value into its low nibble and a 4-bit demodulator doubt into its high nibble (t = byte & 0x0F,doubt = byte >> 4; 0 = full trust — so trusted bytes stay plain T-values — and high values are Reed-Solomon erasure candidates). In CVBS output mode a.efm.metaSQLite sidecar indexes the stream per frame, as defined by the EFM extension format of the CVBS file format specification..prefm— the filtered EFM waveform before demodulation (int16 at the capture sample rate), written with--preEFMfor debugging and filter research.
See EFM decoding for the demodulators that produce these streams and the quality oracle that scores them.
Example file sizes¶
The following file sizes show the typical disc usage consumed by an end-to-end capture and decode of a LaserDisc.
Individual decodes will vary from disc-to-disc:
- NPE - PAL CAV disc with 54348 frames
- NPE - LDS (RF Capture 40MSPS 10-bit packed) = 109.4GB
- NPE - LDF (RF Capture 40MSPS 16-bit FLAC compressed) = 22.6GB (Estimate*)
- NPE - TBC (Indexed16) = 77.1GB
- NPE - PCM (48K little Endian 16-bit signed) = 417.4MB
- NPE - RGB (RGB 16-16-16) = 175.6GB
- NPE - AVI (36min 13sec mp4) = 4.1GB