Jump to content
The Dark Mod Forums

Recommended Posts

Posted (edited)

I had subtitles correctly set up for a mission (at least I think), but they don't show up in-game. Would be nice to some info in console.

The use case is The hare in the snare mission intro. I followed the info from the wiki page, but the subtitles don't show up in mission intro.

I also encountered previously with the mission intro from mission Written in stone that although there was something wrong with the srt file, the subtitles didn't show up without error.

There are a lot of things that could be wrong, so currently I have only trial and error in such situations.

Edited by datiswous
Posted
12 hours ago, datiswous said:

The use case is The hare in the snare mission intro. I followed the info from the wiki page, but the subtitles don't show up in mission intro.

Actually, this could be because The hare in the snare uses it's own gui?

 

  • 4 months later...
Posted

@stgatilovdo you have a testcase where using fromVideo in a subs file actually works? I tried this with mission The Hare in the Snare and couldn't get the subtitle to show. Then I extracted the audio from the video and used that in the subs file and it worked.

Posted
7 hours ago, datiswous said:

@stgatilovdo you have a testcase where using fromVideo in a subs file actually works? I tried this with mission The Hare in the Snare and couldn't get the subtitle to show. Then I extracted the audio from the video and used that in the subs file and it worked.

I'm pretty sure I tested this case.

Note that subtitles display only if there is appropriate GUI.
If you have your own overlay or own GUI file, then you might be missing proper #include of subtitles.

Posted (edited)
15 hours ago, stgatilov said:

Note that subtitles display only if there is an appropriate GUI.

I don't think it's using it's own gui for the intro video and it works fine if an audio file is used instead of the audio from the video. I don't think there's another mission that uses fromVideo and has subtitles included. I don't actually know any other mission that uses fromVideo.

So I was wondering what you tested it on.

Edited by datiswous
Posted (edited)

As a test I used this guide to make changes to mission Written in Stone so it uses the audio from the video file instead of the seperate audio file. (+ change to fm_root.subs)

Before the change, the subtitles show up. When I do the edit, I still hear the audio, but the subtitles are gone.

Either I'm doing something wrong, or this feature is currently broken.

Edited by datiswous
Posted (edited)

Ok I got it working. The reason is that it's explained wrong in the wiki. The wiki example says this:

subtitles fm_briefing {
    verbosity story
    srt "fromVideo video/briefing/briefing.mp4" "video/briefing/briefing.srt"
}

and

Quote

One complicated case is when you have an FFmpeg-based video with embedded sound. In this case write path to the video file, prepended with fromVideo keyword and space, just like you do in the sound shader. See fm_briefing in the example above.

But it should actually state the video briefing material, instead of briefing video file.

 

Correct? It must be, because now it works correctly, also in The hare in the snare.

 

Edited by datiswous
  • Like 1
Posted
40 minutes ago, datiswous said:

Ok I got it working. The reason is that it's explained wrong in the wiki. The wiki example says this:

subtitles fm_briefing {
    verbosity story
    srt "fromVideo video/briefing/briefing.mp4" "video/briefing/briefing.srt"
}

and

But it should actually state the video briefing material, instead of briefing video file.

 

Correct? It must be, because now it works correctly, also in The hare in the snare.

 

I'm a little surprised that a direct file reference doesn't work but OTOH many Doom 3 conventions prefer def inheritance over direct file references. For example, particle textures.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted (edited)
21 hours ago, stgatilov said:

Note that subtitles display only if there is appropriate GUI.
If you have your own overlay or own GUI file, then you might be missing proper #include of subtitles.

The debrief has it's own gui.  Can the subtitles be included for that gui?

For example by adding this?

	//stgatilov #2454: display subtitles
	#define SUBTITLES_NAMEPREFIX BriefingVideo
	#include "guis/tdm_subtitles_common.gui"

Actually, maybe I should first test if the subtitles don't show up.. Is there a way to cheat a mission ending, so I don't have to play the whole mission?

Edited by datiswous
Posted

Thanks. But the end briefing doesn't show with that cheat, probably because it uses an internal end mission gui that is part of the mission. I wonder if tdm_end_mission does not also skip regular debriefings.

Posted
2 hours ago, datiswous said:

Ok I got it working. The reason is that it's explained wrong in the wiki.
But it should actually state the video briefing material, instead of briefing video file.

Correct? It must be, because now it works correctly, also in The hare in the snare.

Yes, exactly.

There is single code piece which handles "fromVideo", and it accepts material name, as FFmpeg video wiki says.
And the virtual sound sample is named like "fromVideo {mymaterialname}", by this name you assign subtitles to it.

1 hour ago, datiswous said:

The debrief has it's own gui.  Can the subtitles be included for that gui?

For example by adding this?

	//stgatilov #2454: display subtitles
	#define SUBTITLES_NAMEPREFIX BriefingVideo
	#include "guis/tdm_subtitles_common.gui"

Yes, but you need to change the SUBTITLE_NAMEPREFIX to something unique, or you'll get a ton of warnings about name collisions.

24 minutes ago, datiswous said:

Thanks. But the end briefing doesn't show with that cheat, probably because it uses an internal end mission gui that is part of the mission. I wonder if tdm_end_mission does not also skip regular debriefings.

I think standard debriefing video should not be skipped.
As for debriefing, we don't have anything like that yet in core.

Posted
On 6/27/2023 at 5:10 PM, datiswous said:

Actually, maybe I should first test if the subtitles don't show up

I tested and they show up fine in the debrief without any alteration.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...