Tuner info in Meta Data

Moderators: Gully, peteru

Post Reply
gjc
Newbie
Posts: 8
Joined: Tue Nov 20, 2018 20:16

Tuner info in Meta Data

Post by gjc » Thu May 16, 2019 17:23

Hi,
Can any of you developers tell me if within any of the files stored for each recording there is an indication of which tuner was used for the recording? And if so, which file, and how to decode the information.
TIA

Cheers,
Greg

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Tuner info in Meta Data

Post by adoxa » Thu May 16, 2019 17:32

If you go to TIMER, select the timer of interest and press INFO, you'll see the log of the timer, which includes the tuner. The tuner is also stored as a tag in the movie itself (by default long YELLOW brings up the tag list). This requires recent firmware (Aug 2018).

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Tuner info in Meta Data

Post by prl » Thu May 16, 2019 17:58

gjc wrote:
Thu May 16, 2019 17:23
Can any of you developers tell me if within any of the files stored for each recording there is an indication of which tuner was used for the recording? And if so, which file, and how to decode the information.

If you really want to access the information from the file, it's in the 5th line of the recording's .ts.meta file. The file is plain text with Unix-style (<LF>) style line separators. It can be mixed in with other tags on the same line, but the tuner tag will have the form Tuner-X where X is the tuner letter, A, B, C, etc. The tags are space-separated.

The tuner tag can be seen in this .ts.meta file:

Code: Select all

1:0:1:213:211:1010:EEEE0000:0:0:0::ABC
Doctor Who
The Parting of the Ways
1557992722
Tuner-A
0
0
f:0,c:000200,c:01028a,c:020240,c:030080
188
0
As an aside, I think that the code that was added to do this has the (probably unintended) side-effect of disabling auto-tagging.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

gjc
Newbie
Posts: 8
Joined: Tue Nov 20, 2018 20:16

Re: Tuner info in Meta Data

Post by gjc » Thu May 16, 2019 18:09

Thanks adoxa and prl

Grumpy_Geoff
Uber Wizard
Posts: 6490
Joined: Thu Mar 05, 2009 22:54
Location: Perth

Re: Tuner info in Meta Data

Post by Grumpy_Geoff » Thu May 16, 2019 18:30

RADIO is also the default button for tags in the media selection list - which is unavailable on the U4 remote, hence I remapped TEXT for tags.

As per previous advice -
Easiest is pressing INFO on the completed (or running) timer if it's still available,
Next easiest is viewing the tag entries in the media selection list (RADIO or Long-YELLOW) then going through each Tuner-X entry
Lastly, quicker than above tag selection is using File Commander (MENU>>Sources / Files) to view the recordings list and locate the recording's *.ts.meta file and view it (OK or TEXT). The line prefixed with '0005:' will have the tuner ID (as Tuner-X) amongst the tag entries.

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Tuner info in Meta Data

Post by prl » Thu May 16, 2019 18:36

Here's a simple awk script that will extract the tuner tag:
awk 'NR == 5 {split($0, tags); for (t in tags){i_f(substr(tags[t], 1, 6) == "Tuner-") {print tags[t]}}}' recordingname.ts.meta

Sucuri (the security front end for the forum) whinges about the "if" in the example (but not here). To make the command work you have to remove the underscore in the "i_f". :roll:
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Tuner info in Meta Data

Post by prl » Sun May 19, 2019 12:06

prl wrote:
Thu May 16, 2019 17:58
As an aside, I think that the code that was added to do this [Tuner tags] has the (probably unintended) side-effect of disabling auto-tagging.

Bug #722: [MovieList] Presence of Tuner tags stops autotagging from working

I'm currently testing a fix.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Tuner info in Meta Data

Post by prl » Sun May 19, 2019 16:54

Fix submitted.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
adoxa
Wizard
Posts: 1490
Joined: Thu Feb 23, 2017 22:58
Location: CQ
Contact:

Re: Tuner info in Meta Data

Post by adoxa » Sun May 19, 2019 17:06

I don't see a pull request...

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Tuner info in Meta Data

Post by prl » Sun May 19, 2019 17:16

Wrong repo. You should see it now.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

Post Reply

Return to “Developers Community”