INMU TV

by YuanYu
INMU TV

Summary

Vanilla CRT TVs play video with synced 3D sound: server-wide sync, channels & playlists, volume/brightness, dot-matrix OSD, real CRT on/off and tuning effects, destructible. 
Modders can add channels.

Description

INMU TV
Every vanilla CRT TV (TVSet_01, including the Game Master placeable one) becomes a working television. Use: hold the action and scroll the mouse wheel for volume and brightness.
讓原版 CRT 電視播放影片與同步聲音;按住互動鍵並滾動滑鼠滾輪調整音量與亮度。

NOTES
    - Overrides Prefabs/Props/Furniture/TVSet_01.et (vanilla model and collision kept); TVs are off by default
    - Performance: only switched-on TVs within 30 m are played, at most the 6 nearest
    - Video is stored as frame atlases (VideoWidget does not play video on PC)

FOR MODDERS: ADD YOUR OWN CHANNELS
Add INMU TV as a dependency and add channels to the shared list. Channels of several mods chain together in mod load order (same on server and clients).
How it plays: each channel is a live broadcast. Its programs play back to back on one server clock and loop; a TV switched on joins the program in progress, so every TV and late joiner sees the same picture.

1. DEPENDENCY
addon.gproj: INMU TV DD0E1C0298C6D624 (next to Arma Reforger 58D0FB3206B6F859).

2. PICTURE: FRAME ATLASES
Pack the video frames (e.g. 15 fps, 256x144) row by row from the top-left into square atlases (e.g. 2048x2048, 8 x 14 = 112 frames each), numbered in playback order. Import as UI textures: TextureUI, DXTCompression, GenerateMips 0. One atlas is about 2 MB; a TV keeps two loaded and preloads the next one.
Frames, e.g.: ffmpeg -i video.mp4 -vf fps=15,scale=256:144 frames/f_%05d.png

3. FRAME CLIP (ITV_FrameClipConfig .conf)
    ITV_FrameClipConfig {
     m_aAtlases {
      "{GUID}Assets/YourMod/Frames/YourClip_Atlas_000.edds"
      "{GUID}Assets/YourMod/Frames/YourClip_Atlas_001.edds"
     }
     m_fFps 15
     m_iFrameCount 3300
     m_iFrameWidth 256
     m_iFrameHeight 144
     m_iAtlasSize 2048
     m_iColumns 8
     m_iRows 14
     m_iSourceWidth 426
     m_iSourceHeight 240
     m_fMeanLuma 0.30
    }
    - m_fMeanLuma: average linear luminance (0..1, sRGB -> linear, Rec.709) of all frames; used to level brightness between videos, 0 = off. Program length = frame count / fps.
    - m_fLevelOffsetLV (optional): extra brightness for this clip, -1 = half as bright.
    - m_aFrameIndex { 0 0 1 2 2 ... } (optional): the stored picture shown at each playback frame. Repeated frames (animation holds, still shots) are stored once; the saved space can pay for a sharper size such as 384x216 (5 x 9 per atlas). m_iFrameCount stays the playback frame count.

4. SOUND (OPTIONAL)
An audio project (.acp) with one 3D sound event (default SOUND_ITV_TV) playing your .wav, with two signals:
    - Offset: start position in ms (synced broadcast position, max 300000 ms = 5 minutes per sound file)
    - Volume: 0..1
The picture (frames / fps) sets the program length: make the sound exactly as long. Mono, 11-22 kHz is enough, e.g.: ffmpeg -i video.mp4 -ac 1 -ar 22050 sound.wav

5. CHANNEL (ITV_ChannelConfig .conf)
    ITV_ChannelConfig {
     m_sDisplayName "My Channel"
     m_sFrameClip "{GUID}Configs/YourMod/YourClip.conf"
     m_sSoundProject "{GUID}Sounds/YourMod/YourClip.acp"
     m_sSoundEvent "SOUND_ITV_TV"
    }
Playlist (played in order, then from the start again):
    ITV_ChannelConfig {
     m_sDisplayName "My Playlist"
     m_aPrograms {
      ITV_ProgramConfig "{1111111111111111}" {
       m_sTitle "Song 1"
       m_sFrameClip "{GUID}Configs/YourMod/Song1.conf"
       m_sSoundProject "{GUID}Sounds/YourMod/Song1.acp"
       m_sSoundEvent "SOUND_ITV_TV"
      }
     }
    }
The display name is shown in the action menu and the OSD (Latin in the dot-matrix font, CJK in Noto; about 18 characters fit).

6. REGISTER
    modded class ITV_ChannelRegistry
    {
        override void CollectChannels(notnull array<ResourceName> channels)
        {
            super.CollectChannels(channels);    // keep other mods' channels
            channels.Insert("{GUID}Configs/YourMod/YourChannel.conf");
        }
    }

7. TEST
Place a vanilla TVSet_01, press Play, switch the TV on and use "Channel". The log lists "[INMU TV] Channel N: <name>"; a channel that cannot play shows NO SIGNAL and logs "[INMU TV] ERROR: <reason>", e.g. "frame count needs N atlases" (m_aAtlases too short) or "Cannot load frame clip config" (wrong GUID or path).

TIPS
    - Prefix file names and paths with your mod name (the same path as another mod's file overrides it).
    - One fixed program instead of channels: ITV_VideoScreenComponent.m_sFrameClip (+ m_sSoundProject / m_sSoundEvent).
    - Attributes: m_bStartPoweredOn, m_iStartChannel, m_iStartVolume, m_iStartBrightness, m_fTargetLuma.
    - Server API: RequestTogglePower(), RequestNextChannel(), RequestSetVolume(int), RequestSetBrightness(int).
    - CRT effect sounds / final explosion: m_sFxSoundProject, m_sDestroyedExplosion (empty = off).

License

Arma Public License No Derivatives (APL-ND)

Version
1.0.1
Game Version
1.9.0.42
Version size
63.37 MB
Downloads
19
Created
29.11.2026
Last Modified
30.11.2026
ID
DD0E1C0298C6D624