wolfgangw / backports

Deep inspection of digital cinema packages
27 stars 12 forks source link

"DCSubtitle: No LoadFont element found. Playback will use a default font" specified when PNG subtitles are used #102

Closed matmat closed 8 months ago

matmat commented 8 months ago

Probably it should not?

Now it is a bit confusing. But I guess it should be possible to mix PNG and xml subtitle (but you would be crazy to do that).

Would it be possible to omit this Hint if the whole composition is only using PNG subtitles?

Also, maybe change the the reel summaries to explicitly mention PNG subtitles? Now it could be interpreted as an empty spot ("DCSubtitle, 1 subtitle")

Here is an excerpt from an example log with PNG subtitles:

(...)
Reel 1:
    95  00:00:03+23 @ 24.0  Entry 00:00:00+00  a74076a1  MainPicture    (MXF Interop, 00:00:03+23, plaintext, 2048x858, avg 3.01 Mb/s, max 4.16 Mb/s, pictures)
    95  00:00:03+23 @ 24.0  Entry 00:00:00+00  ca372310  MainSound  (MXF Interop, 00:00:03+23, plaintext, 16ch 48kHz 24bps, RMS -inf dBFS |.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|, Peak -inf dBFS |.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|.|, audio)
    95  00:00:03+23 @ 24.0  Entry 00:00:00+00  17dd0285  MainSubtitle   (DCSubtitle, 1 subtitle, 00:00:00+00 '' - 00:00:03+22 '')
Reel 2:
  2365  00:01:38+13 @ 24.0  Entry 00:00:00+00  9ac99c41  MainPicture    (MXF Interop, 00:01:38+13, plaintext, 2048x858, avg 151.81 Mb/s, max 209.80 Mb/s, pictures)
  2365  00:01:38+13 @ 24.0  Entry 00:00:00+00  624e58b7  MainSound  (MXF Interop, 00:01:38+13, plaintext, 16ch 48kHz 24bps, RMS -47.14 dBFS |▃|▃|▃|▃|▂|▂|.|.|.|.|.|.|.|.|.|.|, Peak -6.49 dBFS |▃|▃|▆|▃|▃|▃|.|.|.|.|.|.|.|.|.|.|, audio)
  2365  00:01:38+13 @ 24.0  Entry 00:00:00+00  198bed5a  MainSubtitle   (DCSubtitle, 1 subtitle, 00:01:31+01 'Blaga_Lessons_Eng_FINAL17102022_Reel1_0001.png' - 00:01:36+12 'Blaga_Lessons_Eng_FINAL17102022_Reel1_0001.png')
Reel 3:
156213  01:48:28+21 @ 24.0  Entry 00:00:00+00  56372bcb  MainPicture    (MXF Interop, 01:48:28+21, plaintext, 2048x858, avg 209.36 Mb/s, max 209.80 Mb/s, pictures)
156213  01:48:28+21 @ 24.0  Entry 00:00:00+00  9c0710b1  MainSound  (MXF Interop, 01:48:28+21, plaintext, 16ch 48kHz 24bps, RMS -40.81 dBFS |▃|▃|▄|▃|▃|▃|.|.|.|.|.|.|.|.|.|.|, Peak -2.00 dBFS |▇|▇|▇|▅|▆|▇|.|.|.|.|.|.|.|.|.|.|, audio)
156213  01:48:28+21 @ 24.0  Entry 00:00:00+00  394891cc  MainSubtitle   (DCSubtitle, 991 subtitles, 00:00:00+15 'Blaga_Lessons_Eng_FINAL17102022_Reel2_0001.png' - 01:47:44+09 'Blaga_Lessons_Eng_FINAL17102022_Reel2_0991.png')
Reel 4:
  5175  00:03:35+15 @ 24.0  Entry 00:00:00+00  eec3fcc5  MainPicture    (MXF Interop, 00:03:35+15, plaintext, 2048x858, avg 52.91 Mb/s, max 209.80 Mb/s, pictures)
  5175  00:03:35+15 @ 24.0  Entry 00:00:00+00  9758c5a8  MainSound  (MXF Interop, 00:03:35+15, plaintext, 16ch 48kHz 24bps, RMS -39.54 dBFS |▃|▃|▃|▃|▃|▄|.|.|.|.|.|.|.|.|.|.|, Peak -10.96 dBFS |▄|▄|▅|▄|▄|▄|.|.|.|.|.|.|.|.|.|.|, audio)
  5175  00:03:35+15 @ 24.0  Entry 00:00:00+00  b5216e31  MainSubtitle   (DCSubtitle, 1 subtitle, 00:00:00+00 '' - 00:03:35+14 '')
Total duration:
163848  01:53:47+00 @ 24.0
(...)

Hint: CPL ab7a2626-f4ae-42ac-9218-5cadf821a67e: Reel 1: DCSubtitle: No LoadFont element found. Playback will use a default font
(...)
Hint: CPL ab7a2626-f4ae-42ac-9218-5cadf821a67e: Reel 4: DCSubtitle: No LoadFont element found. Playback will use a default font
Hint: CPL a3ce58e4-54c2-49e6-b586-a9e67633cad2: Reel 1: DCSubtitle: No LoadFont element found. Playback will use a default font
(...)
Hint: CPL a3ce58e4-54c2-49e6-b586-a9e67633cad2: Reel 4: DCSubtitle: No LoadFont element found. Playback will use a default font
(...)
wolfgangw commented 8 months ago

This hint is only triggered when there are Text elements present.

Can you check if reels 1 and 4 actually have 1 empty Text element each? Note the in/out Timecodes.

matmat commented 8 months ago

Oh, my bad. You are right. The warnings are for the empty "filler" subtitle files for the first and last reel:

Reel 1:

<?xml version="1.0" encoding="UTF-8"?>
<DCSubtitle Version="1.0">
    <SubtitleID>17dd0285-f283-4d07-ac47-93b2cb2355d8</SubtitleID>
    <MovieTitle> </MovieTitle>
    <ReelNumber>1</ReelNumber>
    <Language>English</Language>
    <Subtitle SpotNumber="1" TimeIn="00:00:00:000" TimeOut="00:00:03:239" FadeUpTime="0" FadeDownTime="0">
        <Text HAlign="center" VAlign="bottom" VPosition="10.00"> </Text>
    </Subtitle>
</DCSubtitle>

Reel 4:

<?xml version="1.0" encoding="UTF-8"?>
<DCSubtitle Version="1.0">
    <SubtitleID>b5216e31-67de-4db7-951c-99d9d42add20</SubtitleID>
    <MovieTitle> </MovieTitle>
    <ReelNumber>1</ReelNumber>
    <Language>English</Language>
    <Subtitle SpotNumber="1" TimeIn="00:00:00:000" TimeOut="00:03:35:156" FadeUpTime="0" FadeDownTime="0">
        <Text HAlign="center" VAlign="bottom" VPosition="10.00"> </Text>
    </Subtitle>
</DCSubtitle>

Reel 2 and 3 have only Image elements, no Text elements.

Still somewhat confusing with the hint issued for the empty filler subs, but probably not worht the trouble doing things differently.

Feel free to close this.