fsphil / hacktv

Analogue TV transmitter for the HackRF
GNU General Public License v3.0
669 stars 80 forks source link

Tweak PAL-D/K audio levels and add support for A2 Stereo variants in System D/K #100

Closed shenglin00 closed 1 year ago

shenglin00 commented 1 year ago

Following Czech technical standard CSN 367523 and Chinese standard GB/T 9308. btw, the PAL-D/K system, or "systems", is totally a mess :)

fsphil commented 1 year ago

Thanks for this, and I agree these standards are all a bit of a mess :-) I'd prefer these variations where added as separate modes, rather than having dedicated arguments that affect a specific mode.

shenglin00 commented 1 year ago

Thank you for review! I think it is not appropriate to list them all as separate modes. If we list all of them, we need to add at least four new modes, the PAL-D/K (OIRT), PAL-D (China), PAL-D1 (Poland), and PAL-D/K (with A2-BG stereo subcarrier). If we add SECAM-D/K, two new modes are needed, SECAM-D/K (A2-DK2) and SECAM-D/K (A2-DK3).

As shown in the table below, the modes marked in bold italic (basically A2-DK2 and A2-DK3) are rarely used. However, because they have both been used for a short period, most TV sound processor chips support them.

What do you think about adding an argument --a2stereo-freq, to tune the frequency of the A2 subcarrier in system already have formal standards and provide the frequency in systems that don't have a standard?

Country Color system NICAM A2 Stereo Note & Ref
China PAL-D NICAM-DK / 5.85 / -10 / -25±3 A2-DK2 / 6.742 / -13 / -20 PAL broadcasting started from 1973
the A2 Stereo standard was released, but not be used in practical broadcasting
Czech/Slovakia PAL-D/K - A2-DK1 / 6.258 / -13 / -20 SECAM to PAL transition started from 1992,
according to D. Liska, K. Trpak and P. Gregora, "Prague TV centre on the way from PAL/SECAM to digital broadcasting," International Broadcasting Convention (Conf. Publ. No. 428), Amsterdam, Netherlands, 1996, pp. 419-424, doi: 10.1049/cp:19960845.
Poland PAL-D1 NICAM-DK / 5.85 / -13 / -20 A2-DK1 / 6.258 / -13 / -20 SECAM to PAL transition started from 1993, according to EBU I33-1997
Poland PAL-D/K† - A2-DK1 / 6.258 / -13 / -20 be used in some cable networks before 1997
†.may also have SECAM versions
ref: https://elhu.pl/standtv.html
Poland PAL-D/K† - A2-DK2 / 6.742 / -13 / -20 same as above
Poland PAL-D/K† - A2-DK3 / 5.742 / -13 / -20 same as above
Hungary SECAM-D/K -> PAL-D(?)/B1/G NICAM-BG / 5.85 / -13 / -20 - not NICAM-DK, according to EBU I33-1997
Russia SECAM-D/K NICAM-DK / 5.85 / -10 / -27* ( -25** ) - *. from ITU-R BS.707
**. MTV Russia tested in 2003
ref: http://lib.broadcasting.ru/articles2/Oborandteh/nicam728
Czech/Slovakia SECAM-D/K - A2-DK1 / 6.258 / -13 / -20 SECAM broadcasting from 1973 to 1994