Video Briefing: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(Creation - big old cut & paste from off-line txt)
 
(First cleanup)
Line 1: Line 1:
Title: Video Briefing
<i>Added by Geep, 2020</i>
<i>Added by Geep, 2020</i>


Line 5: Line 4:




== Introduction to Video Briefing ==
== Introduction ==
=== Style and Content ===
=== Style and Content ===


Line 18: Line 17:
* be cognizant of copyright and licensing issues
* be cognizant of copyright and licensing issues


Specific software systems to do all this (video capture & editing, audio recording & editing, animation, and FX) are beyond our scope here.  
Specific software systems to do all this (video capture & editing, audio recording & editing, animation, and FX) are beyond our scope here. Also covered elsewhere [ref coming soon] are in-game video presentations (e.g., on the screen of an in-game laptop) that could convey briefing information.


=== Video and Audio Formats ===
=== Video and Audio Formats ===


Traditionally, games using the id engine have used the RoQ format for video, with separate .ogg audio. RoQ remains supported in TDM for compatability with existing FMs. But starting in TDM 2.06, a focused set of more popular formats is preferable with new FMs. The new formats allow a higher quality presentation. The audio source may be either a separate file, or from the video itself.
Traditionally, games using the id engine have used the RoQ format for video, with separate .OGG audio. RoQ remains supported in TDM for compatability with existing FMs. But starting in TDM 2.06, a focused set of more popular formats is preferable with new FMs. The new formats allow a higher quality presentation. The audio source may be either a separate file, or from the video itself.


== Quick Start ==
== Quick Start ==


The quickest way to implement this in your FM is to copy a video briefing from an existing recent FM, then replace the AV media files with your own. We will use as our example [https://forums.thedarkmod.com/index.php?/topic/19936-fan-mission-shadows-of-northdale-act-ii-down-the-rabbit-hole-by-goldwell-20190320 Goldwell's "Shadows of Northdale ACT II" from 2019]. This has a single-mission briefing, that uses a .mp4 video with a separate .ogg soundtrack. After you have installed it, look within northdale2.pk4 for these files:
The quickest way to implement this in your FM is to copy a video briefing from an existing recent FM, then replace the AV media files with your own. We will use as our example [https://forums.thedarkmod.com/index.php?/topic/19936-fan-mission-shadows-of-northdale-act-ii-down-the-rabbit-hole-by-goldwell-20190320 Goldwell's "Shadows of Northdale ACT II" from 2019]. This has a single-mission briefing and uses a .MP4 video with a separate .OGG soundtrack. After you have installed it, look within northdale2.pk4 for these files:


* guis/mainmenu_background.gui
* guis/mainmenu_background.gui
Line 54: Line 53:
* Video has 1920 wide x 1080 high frames, at 29.97 frames per second.
* Video has 1920 wide x 1080 high frames, at 29.97 frames per second.
* Audio is stereo, 128kps bit rate, 48.000 kHz sampling.
* Audio is stereo, 128kps bit rate, 48.000 kHz sampling.
There are a other media options (e.g., .avi), but in any event be sure to be compliant with format restrictions given in [https://wiki.thedarkmod.com/index.php?title=Cutscene_video_with_FFmpeg Cutscene video with FFmpeg]. There you will also find details of how to use a video's audio instead of a separate audio file. For still more, see [https://forums.thedarkmod.com/index.php?/topic/19447-206-videos-without-roq/ 2.06 - Videos Without RoQ]
There are other media options (e.g., .AVI), but in any event be sure to be compliant with format restrictions given in [https://wiki.thedarkmod.com/index.php?title=Cutscene_video_with_FFmpeg Cutscene video with FFmpeg]. There you will also find details of how to use a video's audio instead of a separate audio file. For still more, see [https://forums.thedarkmod.com/index.php?/topic/19447-206-videos-without-roq/ 2.06 - Videos Without RoQ]


If you do need to work with the RoQ format, you can find similar examples among your installed FMs (i.e., by searching for *.roq files). There is a pioneering (circa 2006) TDM report on "Playing ROQ Video Files" (which also talks about RoQ creation), but better now are the useful links, and approaches using 2015-era tools, found at [https://openarena.fandom.com/wiki/RoQ RoQ - particularly ZaRR's RoQ How-to for OpenArena Mappers]. Note that RoQ file duration is limited to 1 minute. (Possibly the mainmenu_... guis can be used to sequence multiple RoQ files.)
If you do need to work with the RoQ format, you can find similar examples among your installed FMs (i.e., by searching for *.roq files). There is a pioneering (circa 2006) TDM report on "Playing ROQ Video Files" (which also talks about RoQ creation), but better now are the useful links, and approaches using 2015-era tools, found at [https://openarena.fandom.com/wiki/RoQ RoQ - particularly ZaRR's RoQ How-to for OpenArena Mappers]. Note that RoQ file duration is limited to 1 minute. (Possibly the mainmenu_... guis can be used to sequence multiple RoQ files.)


See also: Overview of [https://modwiki.dhewm3.org/GUI_scripting GUI scripting] and [https://www.iddevnet.com/doom3/guis.html idDevNet GUIs]
See also: Overview of [https://modwiki.dhewm3.org/GUI_scripting GUI scripting] and [https://www.iddevnet.com/doom3/guis.html idDevNet GUIs]
[Coming soon: other ways to use video in TDM]There could be other forms of video briefing, e.g., from a laptop screen within the game.


== Debugging Playback ==
== Debugging Playback ==


If your video shows a black screen, you may have a GUI error. In the console, "testgui guis/xxxx.gui" (note the partial path inclusion) may be helpful to locate where.
If your video shows a black screen, you may have a GUI error. In the console, "testgui guis/xxxx.gui" (note the partial path inclusion) may be helpful to locate where.

Revision as of 01:53, 6 March 2020

Added by Geep, 2020

This extends the tutorial on Briefing


Introduction

Style and Content

Like other TDM briefing styles, a video conveys important information or teasers at the game start. After first viewing, the player can subsequently skip it.

A typical "historical doumentary" approach to producing a video briefing would be to:

  • capture screen shots from within the game
  • supplement these with other images
  • assemble the results into a timeline and add pans, zooms, rotations, transitions, titles, overlays, and special effects
  • possibly include video clips, e.g., video capture during game play; animated logos
  • separately develop a soundtrack using standard TDM sound clips and other music, sound effects, and custom narration (with possibly multiple voices). The heart of the briefing is conveyed by the narrator.
  • be cognizant of copyright and licensing issues

Specific software systems to do all this (video capture & editing, audio recording & editing, animation, and FX) are beyond our scope here. Also covered elsewhere [ref coming soon] are in-game video presentations (e.g., on the screen of an in-game laptop) that could convey briefing information.

Video and Audio Formats

Traditionally, games using the id engine have used the RoQ format for video, with separate .OGG audio. RoQ remains supported in TDM for compatability with existing FMs. But starting in TDM 2.06, a focused set of more popular formats is preferable with new FMs. The new formats allow a higher quality presentation. The audio source may be either a separate file, or from the video itself.

Quick Start

The quickest way to implement this in your FM is to copy a video briefing from an existing recent FM, then replace the AV media files with your own. We will use as our example Goldwell's "Shadows of Northdale ACT II" from 2019. This has a single-mission briefing and uses a .MP4 video with a separate .OGG soundtrack. After you have installed it, look within northdale2.pk4 for these files:

  • guis/mainmenu_background.gui
  • guis/mainmenu_briefing_video.gui
  • guis/mainmenu_custom_defs.gui
  • materials/briefing.mtr
  • video/briefing.mp4
  • sound/video/briefing_video.ogg

Copy these to your own FM, creating folders as needed. When you compile and run your FM, you should see and hear the video briefing (with its quite high production values) instead of a text briefing page.

If you want to change media filenames, or make certain other customizations, mainmenu_custom_defs.gui is where to start. It has documentation on additional configurations, like multiple briefings for multi-mission campaigns, or adding mission debriefing videos, that are not covered here.

Skipping a Video Briefing

The video briefing, once started, can be skipped by either:

  • Pressing LMB. This is the best way, though the viewer may not always be aware of it.
  • Using the ESC key. This aborts to the text Briefing page, from which the viewer may navigate to the Objectives page. It is not possible to resume the video briefing.

Regarding the latter, note that Goldwell's method includes a special treatment so that when a briefing video ends normally (not skipped), the viewer arrives directly at the Objectives page, not the Briefing page. Unfortunately, that is not the case with ESC skipping. You might accommodate this by editing the xdata/briefing.xd to have either:

  • No text
  • Something like: "Select 'Objectives' to continue..."
  • A text summary or transcript of the video briefing.

More About Formats

When getting set to replace the media assets with your own, you may find it informative to inspect the properties of northdale2's briefing.mp4 and briefing_video.ogg files, e.g.:

  • Video has 1920 wide x 1080 high frames, at 29.97 frames per second.
  • Audio is stereo, 128kps bit rate, 48.000 kHz sampling.

There are other media options (e.g., .AVI), but in any event be sure to be compliant with format restrictions given in Cutscene video with FFmpeg. There you will also find details of how to use a video's audio instead of a separate audio file. For still more, see 2.06 - Videos Without RoQ

If you do need to work with the RoQ format, you can find similar examples among your installed FMs (i.e., by searching for *.roq files). There is a pioneering (circa 2006) TDM report on "Playing ROQ Video Files" (which also talks about RoQ creation), but better now are the useful links, and approaches using 2015-era tools, found at RoQ - particularly ZaRR's RoQ How-to for OpenArena Mappers. Note that RoQ file duration is limited to 1 minute. (Possibly the mainmenu_... guis can be used to sequence multiple RoQ files.)

See also: Overview of GUI scripting and idDevNet GUIs

Debugging Playback

If your video shows a black screen, you may have a GUI error. In the console, "testgui guis/xxxx.gui" (note the partial path inclusion) may be helpful to locate where.