Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Commodder Brazorf  
#1 Posted : Sunday, September 22, 2024 5:03:06 AM(UTC)
Commodder Brazorf
Private
Joined: 9/22/2024(UTC)
Posts: 4

Hi everybody,

As a not-so-good English speaker, I'm trying to add subtitles to Generals briefing videos. This is what I've seen so far, with some help from this page (in Russian, translated by Google Translate):

General's Dissection. Command & Conquer: Generals, Part 1


  • INI.big - Campaign.ini contains campaign data. Briefing audio data are "BriefingVoice", which identifies briefing audio data, and "VoiceLength", which is the duration in seconds of audio file; briefing does not end if this length is reached, so it's used for making the video end when audio ends and not earlier (or it should). Example: BriefingVoice for USA 1 mission is "BriefingUSA01".
  • The "BriefingVoice" item refers to a "DialogEvent" item in INI.big - Speech.ini; its "Filename" item contains the name of the audio file of the briefing. Example: DialogEvent BriefingUSA01 file for USA 1 mission is mu1xou01.wav.
  • The audio file is a WAV file contained in SpeechEnglish.big.


Now, the problem. I've successfully managed to add subtitles to Zero Hour briefings by applying this process:

  • convert from BIK to MP4 using RAD Video Tools
  • write a SRT file by using transcripts from C&C Fandom Zero Hour Transcripts, timing added empirically by listening
  • embed SRT to MP4 file using FFMPEG
  • reconvert MP4 to BIK

For Generals videos, this does not work, because video and audio are separated, and audio starts after a delay, so writing the SRT with the correct timing is almost impossible using the BIK file only as a source for symchronizing timing in SRT. I've overcome this first problem by using mission videos from YouTube (after cutting to the briefing start) as a source for the SRT timing, but there's another problem: the VoiceLength values seem to be too short for making the video end when audio ends; video ends earlier if loading is enough fast. This can be easily seen for GLA 1 mission, whose briefing audio is the longest: even in YouTube, I can see that the audio track continues after the briefing video has faded away, so subtitling by burning SRT into BIK looks impossible.

I suspect VoiceLength values do not include the (somewhat long) initial delay, so I'm thinking of adding the delay also in the SRT file as a solution, but it's somewhat a guess. Is there a better known alternative for subtitling Generals briefings, even by using a custom DLL or similar?

Edited by user Sunday, September 22, 2024 7:55:54 AM(UTC)  | Reason: Not specified

Sponsor
Offline Commodder Brazorf  
#2 Posted : Sunday, October 13, 2024 3:26:15 AM(UTC)
Commodder Brazorf
Private
Joined: 9/22/2024(UTC)
Posts: 4

Small update: VoiceLength has no effect. I tried setting it to 60 seconds for first GLA mission, but loading screen disappears as soon as loading finishes, not when audio briefingfinishes; it continues after loading screen disappears.

Edited by user Sunday, October 13, 2024 3:27:09 AM(UTC)  | Reason: Not specified

Offline Commodder Brazorf  
#3 Posted : Saturday, October 19, 2024 4:15:53 AM(UTC)
Commodder Brazorf
Private
Joined: 9/22/2024(UTC)
Posts: 4

I've found the trick: extending video duration until subtitles end. In this way, the video is played completely even if loading ends before it.
Offline AdrianeMapMaker  
#4 Posted : Saturday, November 2, 2024 5:13:56 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,165
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
this is quite interesting project, are you planning to release it on moddb ?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb

UserPostedImage





Offline Commodder Brazorf  
#5 Posted : Sunday, November 3, 2024 3:26:13 AM(UTC)
Commodder Brazorf
Private
Joined: 9/22/2024(UTC)
Posts: 4

Originally Posted by: AdrianeMapMaker Go to Quoted Post
this is quite interesting project, are you planning to release it on moddb ?


Done:

https://www.moddb.com/mods/generals-briefing-english-subtitles

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.