From 33d44a6c9d2cdede3dd2e99a5bd63442e419798e Mon Sep 17 00:00:00 2001 From: James Cuzella Date: Wed, 11 Sep 2024 20:37:46 -0600 Subject: [PATCH] .config/mpv: Fix mpv channels.conf format Use the azap channels.conf format with mpv Update channel display names & numbers Notes: - "Display Channel" and "Physical Channel" are different! - "Physical Channel" = "RF Channel" and is mapped to the physical frequency in MHz - "Display Channel" = The displayed "channel" number (e.g. 7.1) that the user usually sees when tuning to a channel - `mpv` supports [5 different formats][1], and [6 different `channels.conf.*` filenames][3] - `channels.conf.cbl`: `cbl` format (DVBC) - `channels.conf.atsc`: `atsc` format (ATSC OTA) - `channels.conf.ter`: `ter` format (DVBT) - `channels.conf.isdbt`: `isdbt` format (ISDBT) - `channels.conf.sat`: `sat` format (DVBS) - `channels.conf`: `vdr`, ZAP, or ANY format - The [13 field VDR format][3] appears to be closest to what `w_scan_cpp` produced. $ vdr_conf="%d:%255:%255:%d:%255:%255:%255:%*255:%d:%*d:%*d:%*d\n%n:" $ echo -n "$vdr_conf" | grep -o ':' | wc -l 12 $ echo -n 'Comet:177000:M10:A:6900:113=2:0;116=eng@106:0:0:7:0:461:0:' | grep -o ':' | wc -l 13 - The [ZAP style format][4] supports ATSC, and can be parsed as such $ echo -n 'KDVR KWGN 2.1 CW KWGN Denver:605000000:VSB_8:97:100:6:' | grep -o ':' | wc -l 6 [1]: https://github.com/mpv-player/mpv/blob/f6d931301bd226239d95f59e3f18abfeab692ee9/stream/stream_dvb.c#L257-L264 [2]: https://github.com/mpv-player/mpv/blob/f6d931301bd226239d95f59e3f18abfeab692ee9/stream/stream_dvb.c#L1085-L1107 [3]: https://github.com/mpv-player/mpv/blob/f6d931301bd226239d95f59e3f18abfeab692ee9/stream/stream_dvb.c#L339 [4]: https://github.com/mpv-player/mpv/blob/f6d931301bd226239d95f59e3f18abfeab692ee9/stream/stream_dvb.c#L430 --- dot_azap/channels.conf | 55 ++++++++++--------- .../{channels.conf.atsc => channels.conf.vdr} | 0 .../private_mpv/symlink_channels.conf.atsc | 1 + 3 files changed, 29 insertions(+), 27 deletions(-) rename dot_config/private_mpv/{channels.conf.atsc => channels.conf.vdr} (100%) create mode 100644 dot_config/private_mpv/symlink_channels.conf.atsc diff --git a/dot_azap/channels.conf b/dot_azap/channels.conf index a7d87a9..636d8b2 100644 --- a/dot_azap/channels.conf +++ b/dot_azap/channels.conf @@ -1,44 +1,46 @@ -KMGH-TV 2.3 Comet:177000000:VSB_8:113:116:7 -KMGH-TV 2.4 Charge!:177000000:VSB_8:129:132:8 -SHOP LC:177000000:VSB_8:145:148:9 -HSN:177000000:VSB_8:161:164:10 -KMGH-TV ABC:177000000:VSB_8:49:52:3 -KZCO-LD Mystery:177000000:VSB_8:65:68:4 -???UNKNOWN:177000000:VSB_8:81:84:5 -QVC-2:177000000:VSB_8:97:100:6 -KMGH 2.2 GetTV:189000000:VSB_8:129:132:6 +# Name:Freq (Hz):Modulation:Video PID (decimal):Audio PID (decimal):Src ID +KMGH-TV 2.3 Comet (??No Lock??):177000000:VSB_8:113:116:7 +KMGH-TV 2.4 Charge! (??No Lock??):177000000:VSB_8:129:132:8 +KMGH-TV 3.3 QVC2 (??No Lock??):177000000:VSB_8:97:100:6 +KMGH-TV 3.5 HSN (??No Lock??):177000000:VSB_8:161:164:10 +KMGH-TV 7.1 ABC Denver7 (??No Lock??):177000000:VSB_8:49:52:3 +KZCO-LD 7.2 ION Mystery (??No Lock??):177000000:VSB_8:65:68:4 +KMGH-TV 7.3 Laff (??No Lock??):177000000:VSB_8:81:84:5 +KMGH-TV 7.4 SHOP LC (??No Lock??):177000000:VSB_8:145:148:9 +KUSA 2.2 GetTV:189000000:VSB_8:129:132:6 KUSA-HD 9.1 NBC:189000000:VSB_8:49:52:1 KUSA 9.2 Cozi:189000000:VSB_8:65:68:2 KUSA 9.3 Crime:189000000:VSB_8:81:84:3 KUSA 9.5 Quest:189000000:VSB_8:97:100:4 +KUSA 9.6 The Nest:189000000:VSB_8:113:116:5 KBDI-DT 12.1 PBS-12:213000000:VSB_8:49:52:3 KBDI-TV 12.2 FNX:213000000:VSB_8:65:68:4 KBDI-TV 12.3 DW-TV:213000000:VSB_8:81:84:5 KBDI-TV 12.4 NHK World:213000000:VSB_8:97:100:6 -KPJR-TV 38.5 PosiTiv:491000000:VSB_8:113:116:7 KPJR-TV 38.1 TBN HD:491000000:VSB_8:49:52:3 KPJR-TV 38.2 TBN Inspire:491000000:VSB_8:65:68:4 KPJR-TV 38.3 Smile:491000000:VSB_8:81:84:5 KPJR-TV 38.4 Enlace USA:491000000:VSB_8:97:100:6 -???CRASH:557000000:VSB_8:113:116:5 -???CRASH2:557000000:VSB_8:49:52:1 -???CRASH3:557000000:VSB_8:65:68:2 -???CRASH4:557000000:VSB_8:81:84:3 -???CRASH5:563000000:VSB_8:113:116:7 -???CRASH6:563000000:VSB_8:49:52:3 -???CRASH7:563000000:VSB_8:65:68:4 -???CRASH8:563000000:VSB_8:81:84:5 -???CRASH9:563000000:VSB_8:97:100:6 -???CRASH10:575000000:VSB_8:113:116:7 -???CRASH11:575000000:VSB_8:49:52:3 -???CRASH12:575000000:VSB_8:65:68:4 -???CRASH13:575000000:VSB_8:81:84:5 -???CRASH14:575000000:VSB_8:97:100:6 -???HSN SHOP-LC:581000000:VSB_8:113:116:5 +KPJR-TV 38.5 PosiTiv:491000000:VSB_8:113:116:7 +KTFD-TV 50.1 Unimas:557000000:VSB_8:49:52:1 +KTFD-TV 50.2 LATV:557000000:VSB_8:65:68:2 +KTFD-TV 50.3 The Nest (??No Lock??):557000000:VSB_8:81:84:3 +???NOTHING?? Would be RF 28.5 / 50.5?:557000000:VSB_8:113:116:5 +KDEN-DT 25.1 Telemundo:563000000:VSB_8:49:52:3 +KDEN-DT 25.2 TeleXitos:563000000:VSB_8:65:68:4 +KDEN-DT 25.3 COZI TV:563000000:VSB_8:81:84:5 +KDEN-DT 25.4 American CRIMES:563000000:VSB_8:97:100:6 +KDEN-DT 25.5 Oxygen True Crime:563000000:VSB_8:113:116:7 +KTVD-HD 20.1 My 20 Denver:575000000:VSB_8:49:52:3 +KTVD H&I 20.2 Heroes & Icons:575000000:VSB_8:65:68:4 +KTVD KUSA-HD 9.4 9News:575000000:VSB_8:81:84:5 +KTVD 9.7 True Crime Network:575000000:VSB_8:97:100:6 +KTVD 20.3 Shop LC:575000000:VSB_8:113:116:7 KCEC 14.1 Univision:581000000:VSB_8:49:52:1 KCEC 14.2 Bounce:581000000:VSB_8:65:68:2 KCEC 14.3 GetTV:581000000:VSB_8:81:84:3 KCEC 14.4 Escape:581000000:VSB_8:97:100:4 +KCEC 14.5 HSN ShopLC:581000000:VSB_8:113:116:5 KRMA-TV 6.1 PBS:587000000:VSB_8:49:52:1 KRMA-TV 6.2 PBS Kids:587000000:VSB_8:65:68:2 KRMA-TV 6.3 Create:587000000:VSB_8:81:84:3 @@ -46,5 +48,4 @@ KRMA-TV 6.4 World:587000000:VSB_8:97:100:4 KDVR-DT 31.1 Fox:605000000:VSB_8:49:52:3 KDVR 31.2 Antenna TV:605000000:VSB_8:65:68:4 KDVR 31.3 TBD-TV:605000000:VSB_8:81:84:5 -KWGN-DT 02.1 CW:605000000:VSB_8:97:100:6 - +KDVR KWGN 2.1 CW KWGN Denver:605000000:VSB_8:97:100:6 diff --git a/dot_config/private_mpv/channels.conf.atsc b/dot_config/private_mpv/channels.conf.vdr similarity index 100% rename from dot_config/private_mpv/channels.conf.atsc rename to dot_config/private_mpv/channels.conf.vdr diff --git a/dot_config/private_mpv/symlink_channels.conf.atsc b/dot_config/private_mpv/symlink_channels.conf.atsc new file mode 100644 index 0000000..bffcf6b --- /dev/null +++ b/dot_config/private_mpv/symlink_channels.conf.atsc @@ -0,0 +1 @@ +../../.azap/channels.conf