Lately I've noticed that the icons in Watch Recordings are pretty messed up (I'll be more specific in the future), both in the list for each recording and the help list. I made the mistake of trying to figure out the problem(s) for myself. It now being over 30 years since my C++ class, I'm a little over my head here. I've also been playing around with themes, really just trying to fix some things in MythCenter-wide that bug me, but I'm not that good at that either.
It looks like recorded-ui.xml handles the display, based on values provided by playbackbox.cpp, which come from SOMEWHERE and are set by SOMETHING.
My first thought on SOMEWHERE was the recordings table, and I think that's partially right. The things that work, and seem like they'd be pretty simple to keep straight as things change (like editing and transcoding), such as cutlist, commercial flagging, and autoexpire can all be found there. And recently, when I turned off autoexpire using mysql, the icons were immediately updated.
The things that don't work, like audioprops and videoprops, aren't in recorded. It looks like they are in recordedprogram. I have no idea where they come from (SOMETHING), so far the best clue I can find points to mythfilldatabase, which makes no sense since that wouldn't work with things like custom transcodes (and I don't remember seeing any of those update recordedprogram).
Can anyone explain in small words to me how this all works?
Here's one specific example, audio. I think I remember at one time seeing recordings with the surround icon set, but now I have none. Everything is just stereo or not (and not showing the mono icon), except for a handful of recordings which show Dolby Digital. The recordings with a DD icon, are only for ONE show, and only up to a certain recording time (which is right around when I upgraded from v30, switched from the old Schedules Direct method to the new one, and added a second filesystem to my Default storage group).
Code: Select all
MariaDB [mythconverg]> select unique audioprop from recordedprogram;
+--------------+
| audioprop |
+--------------+
| |
| STEREO |
| STEREO,DOLBY |
+--------------+
Code: Select all
MariaDB [mythconverg]> select audioprop,title,subtitle,chanid,starttime from recordedprogram where title like "Quantum Leap" and chanid=2081;
+--------------+--------------+-----------------------------+--------+---------------------+
| audioprop | title | subtitle | chanid | starttime |
+--------------+--------------+-----------------------------+--------+---------------------+
| STEREO,DOLBY | Quantum Leap | July 13, 1985 | 2081 | 2022-09-20 02:00:00 |
| STEREO,DOLBY | Quantum Leap | Atlantis | 2081 | 2022-09-27 02:00:00 |
| STEREO,DOLBY | Quantum Leap | Somebody up There Likes Ben | 2081 | 2022-10-04 02:00:00 |
| STEREO,DOLBY | Quantum Leap | A Decent Proposal | 2081 | 2022-10-11 02:00:00 |
| STEREO,DOLBY | Quantum Leap | What a Disaster! | 2081 | 2022-10-25 02:00:00 |
| STEREO,DOLBY | Quantum Leap | O Ye of Little Faith | 2081 | 2022-11-01 02:00:00 |
| STEREO,DOLBY | Quantum Leap | Stand by Ben | 2081 | 2022-11-08 03:00:00 |
| STEREO,DOLBY | Quantum Leap | Salvation or Bust | 2081 | 2022-11-15 03:00:00 |
| STEREO,DOLBY | Quantum Leap | Fellow Travelers | 2081 | 2023-01-03 03:00:00 |
| STEREO,DOLBY | Quantum Leap | Leap. Die. Repeat. | 2081 | 2023-01-31 03:00:00 |
| STEREO | Quantum Leap | Family Style | 2081 | 2023-02-28 03:00:00 |
| STEREO | Quantum Leap | S.O.S. | 2081 | 2023-03-07 03:00:00 |
| STEREO | Quantum Leap | Ben Song for the Defense | 2081 | 2023-03-14 02:00:00 |
| STEREO | Quantum Leap | Ben, Interrupted | 2081 | 2023-03-21 02:00:00 |
| STEREO | Quantum Leap | The Friendly Skies | 2081 | 2023-03-28 02:00:00 |
| STEREO | Quantum Leap | Judgment Day | 2081 | 2023-04-04 02:00:00 |
+--------------+--------------+-----------------------------+--------+---------------------+
Code: Select all
hawkeye$ ffprobe /export/video/2081_20230131030000.mpg
Input #0, mpeg, from '/export/video/2081_20230131030000.mpg':
Duration: 00:40:19.82, start: 0.391000, bitrate: 6942 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 320 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (visual impaired)
Code: Select all
hawkeye$ ffprobe /export/video2/2081_20230228030000.mpg
Input #0, mpeg, from '/export/video2/2081_20230228030000.mpg':
Duration: 00:45:05.44, start: 0.337833, bitrate: 7440 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 320 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (visual impaired)
I don't see anything different between the two to to why they would show up differently in the db/gui.
I'm also a "little" unclear on how they should show.
1) Both have a surround audio stream and a stereo audio stream. For me, where I only care about one language, I'd say the "better" one should win?
2) All the audio streams shown are AC3, aka Dolby Digital. I have other recordings that are AC3, but no surround track. From what I understand, myth will (if working as intended) only show EITHER DD or Surround, although these two options are not mutually exclusive.
I've got some other, mostly similar, questions mostly about video, but I think I should save them for now.
Thanks