Skip to content

Latest commit

ย 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ BIK Video Conversion Pipeline for Command & Conquer

๐Ÿ‡ฌ๐Ÿ‡ง English | ๐Ÿ‡ท๐Ÿ‡บ ะ ัƒััะบะธะน

License Platform Status

RAD Tools FFmpeg Batch

Automated MP4 โ†’ BIK conversion pipeline with WAV audio mixing and MIX archive packaging for the Command & Conquer franchise.

๐ŸŽฏ Supported Games

Game Format
Red Alert 1 ๐Ÿ”ด HD + Standard
Red Alert 2 ๐ŸŸก HD + Standard
RA2: Yuri's Revenge ๐ŸŸฃ HD + Standard

๐Ÿ“ฅ Source Files

Download source MP4 videos, BIK files, and WAV audio tracks. Required for Cross_Converted_BIK.bat to work.

Game Link Contents
๐Ÿ”ด Red Alert 1 Yandex.Disk MP4 + WAV
๐ŸŸก Red Alert 2 Yandex.Disk MP4 + BIK + WAV
๐ŸŸฃ RA2: Yuri's Revenge Yandex.Disk MP4 + BIK + WAV

๐Ÿ› ๏ธ Tools & Technologies

Tool Purpose
๐ŸŽฌ radvideo64.exe MP4 โ†’ BIK encoding (Bink 1.0)
๐ŸŽต BinkMix.exe WAV โ†’ BIK audio mixing
๐Ÿ“ฆ ccmix.exe MIX archive packing
๐ŸŽž๏ธ ffmpeg.exe H.265โ†’H.264, MP3โ†’WAV
๐ŸŽฎ binkplay.exe BIK preview player
๐Ÿ”ง CMDParse.exe Universal argument parser

๐Ÿ“œ Scripts

๐Ÿ”„ Core Conversion

Cross_Converted_BIK.bat [flags]
Flag Description
๐ŸŽฏ -GAME:RA1 / -GAME:RA2 / -GAME:RA2YR Filter by game (use multiple for several)
๐Ÿ‘ฅ -GROUP:name / -G:name Filter by voice group (use multiple for several)
๐Ÿ“ -RES:600p Filter by resolution (use multiple for several)
๐Ÿ“+ -RES:600p+ Include noformat
โญ๏ธ -INCREMENTAL Skip converted files
๐Ÿ”„ -RETRY Retry failed files
๐Ÿ‘๏ธ -DRY_RUN Preview mode

Examples:

Cross_Converted_BIK.bat -GAME:RA2
Cross_Converted_BIK.bat -GAME:RA2 -GAME:RA2YR
Cross_Converted_BIK.bat -GAME:RA2 -GROUP:Original -GROUP:7wolf
Cross_Converted_BIK.bat -GAME:RA2 -GROUP:Original -RES:600p -RES:720p
Cross_Converted_BIK.bat -GAME:RA2 -GROUP:Original -RES:600p+
Cross_Converted_BIK.bat -GAME:RA2 -GROUP:"City [Dyadyushka Risyotch]"
Cross_Converted_BIK.bat -GAME:RA2 -GROUP:Original -RES:600p -INCREMENTAL
Cross_Converted_BIK.bat -GAME:RA2 -GROUP:Original -RES:600p -DRY_RUN
Cross_Converted_BIK.bat

๐Ÿ“ฆ MO Vision MIX Packaging

Pack_Mixes_MO_Vision.bat [-GROUP:name] [-GAME:name]
Flag Description
๐Ÿ‘ฅ -GROUP:name Pack specific voice group
๐ŸŽฏ -GAME:name Pack specific game

Examples:

Pack_Mixes_MO_Vision.bat
Pack_Mixes_MO_Vision.bat -GROUP:Original
Pack_Mixes_MO_Vision.bat -GAME:RA2 -GROUP:7wolf
Pack_Mixes_MO_Vision.bat -GAME:RA2YR

๐Ÿ“ฆ Original Games MIX Packaging

Pack_Mixes_Original.bat [-GROUP:name] [-RES:resolution]

Without parameters โ€” processes Original group with 600p resolution.

Examples:

Pack_Mixes_Original.bat
Pack_Mixes_Original.bat -GROUP:Original -RES:1080p
Pack_Mixes_Original.bat -GROUP:"Russian project" -RES:720p
Pack_Mixes_Original.bat -GROUP:7wolf -RES:600pyr

๐ŸŽž๏ธ H.265 โ†’ H.264 Converter

H265.bat

Interactive tool. Prompts for folder path with videos. Converts H.265 to H.264 without audio. Supports MP4, MKV, MOV, AVI, M4V, TS, WEBM, FLV.

๐ŸŽต MP3 โ†’ WAV Converter

MP3_to_WAV.bat [-OVERWRITE] [-DRY_RUN]
Flag Description
๐Ÿ”„ -OVERWRITE Overwrite existing WAV files
๐Ÿ‘๏ธ -DRY_RUN Preview mode

Examples:

MP3_to_WAV.bat
MP3_to_WAV.bat -DRY_RUN
MP3_to_WAV.bat -OVERWRITE

๐Ÿ‘๏ธ BIK Preview

Preview.bat

Interactive preview tool. Step-by-step menu:

  1. Select game (RA1/RA2/RA2YR)
  2. Select MP4 file
  3. Select resolution
  4. Select voice group (or no audio)
  5. Preview in binkplay.exe

๐Ÿ” MIX Diff

MIX_Diff.bat

Interactive comparison tool. Three modes:

  1. Compare two BIK directories
  2. Compare two MIX files
  3. Compare MIX file with directory

๐Ÿ“ Resolution Converter

Resolution_Convert.bat

Interactive tool. Three modes:

  1. Convert single BIK to new resolution
  2. Batch convert all BIK in folder
  3. Convert MP4 to BIK with custom resolution

โœ… Pipeline Test

test.bat

Runs 6 checks:

  1. Tools (radvideo64, BinkMix, ccmix)
  2. Folders (Clean_MP4, WAV_Sound)
  3. MP4 โ†’ BIK conversion
  4. BinkMix.exe existence
  5. Nolang config validation
  6. DRY_RUN mode

๐Ÿ”’ MIX Validation

Validate_MIX.bat

Interactive validation. Select source:

  1. Build\MOV (MO Vision archives)
  2. Build\OriginalGames (original game archives)
  3. Custom path

Checks each MIX file: size > 0, minimum header size, ccmix --verify.

๐Ÿ”ง CMDParse โ€” Argument Parser

CMDParse.exe is a universal argument parser used by all batch scripts.

CMDParse.exe [flags]
Mode Description
--mode:cross Cross_Converted_BIK (default)
--mode:pack_mo Pack_Mixes_MO_Vision
--mode:pack_original Pack_Mixes_Original
--mode:mp3_to_wav MP3_to_WAV
--mode:h265 H265.bat
--mode:preview Preview.bat
--mode:validate Validate_MIX.bat
--mode:resolution Resolution_Convert.bat
--mode:mix_diff MIX_Diff.bat
Flag Description
๐ŸŽฏ -RA1, -RA2, -RA2YR Game flags
๐Ÿ”— -GAME:RA2,RA2YR Comma-separated game list
๐Ÿ‘ฅ -GROUP:Original,7wolf Comma-separated voice groups
๐Ÿ“ -RES:600p,720p+ Comma-separated resolutions
๐Ÿ”„ -DRY_RUN, -INCREMENTAL, -RETRY, -OVERWRITE Mode flags
๐Ÿ“‚ -SOURCE:path, -OUTPUT:path Path parameters
โ“ --help Show help
Utility Description
--list-groups List available voice groups
--list-files List available MP4/BIK files
--verify Verify all BIKs exist for resolutions
--cleanup Remove empty BIK files
--stats Show file statistics

Defaults are loaded from cmdparse.ini.

โš™๏ธ Configuration

๐Ÿ“„ config.ini

All scripts use config_loader.bat with config.ini:

[paths]
radtools_new=third-party\Radtools_New\radvideo64.exe
radtools_old=third-party\Radtools_Old\BinkMix.exe
ccmix=third-party\CCMIX\ccmix.exe
ffmpeg=third-party\ffmpeg.exe

[folders]
mp4_source=Clean_MP4
sound_source=WAV_Sound
clean_bik=Clean_BIK
final_ra1=Final_BIK_RA1
final_ra2=Final_BIK_RA2
final_ra2yr=Final_BIK_RA2YR
build_root=Build

[config]
log_file=conversion_log.txt
failed_file=failed.txt

[nolang]
files_hd=ALLIESMAP_01 ALLIESMAP_02 ...
files_noformat=AFTRMATH AIRFIELD ...

๐Ÿ“„ cmdparse.ini

CMDParse defaults (CLI arguments override these):

[defaults]
mode=cross
games=RA1,RA2,RA2YR
groups=
resolutions=
dry_run=false
incremental=false
retry=false
overwrite=false

๐Ÿ“ Supported Resolutions

Resolution RA2/RA2YR RA1 Bitrate
600p 800x600 1024x600 400 kbps
720p 960x720 1280x720 600 kbps
768p 1024x768 1366x768 700 kbps
900p 1200x900 1600x900 900 kbps
1080p 1400x1080 1920x1080 1150 kbps
600pyr 800x600 โ€” 1100 kbps RA2YR only
noformat โ€” 1024x564 400 kbps RA1 only

๐Ÿ‘ฅ Supported Voice Groups

๐Ÿ”ด Red Alert 1

Original ยท R.G.MVO ยท VHS

๐ŸŸก Red Alert 2

Original ยท 7wolf ยท City [Dyadyushka Risyotch] ยท Fargus ยท Russian project ยท Triada ยท XXI Vek [8 Bit] French ยท German ยท Korean ยท Ukrainian ยท Thai ยท Turkish

๐ŸŸฃ RA2: Yuri's Revenge

Original ยท 7wolf ยท City [Dyadyushka Risyotch] ยท Fargus ยท Triada French ยท German ยท Korean ยท Ukrainian ยท Thai ยท Turkish

โš ๏ธ Important Notes

  • ๐Ÿ–ฅ๏ธ Platform: Windows 10+ (cmd.exe only)
  • โฑ๏ธ Encoding: ~3-10 min per MP4 file
  • ๐Ÿ’พ MIX limit: Max 2GB per MIX file (x86)
  • ๐Ÿ‘ป Hidden windows: radvideo64 and BinkMix run hidden (no popup windows)
  • ๐Ÿ”„ Incremental: -INCREMENTAL skips converted files
  • ๐Ÿ” Retry: Failed files โ†’ failed.txt, use -RETRY
  • ๐Ÿ‘๏ธ Dry run: -DRY_RUN previews without converting
  • ๐Ÿ“ Logging: Timestamps [HH:MM:SS] in log, ETA in console

๐Ÿ“ Directory Structure

.
โ”œโ”€โ”€ Cross_Converted_BIK.bat
โ”œโ”€โ”€ Pack_Mixes_MO_Vision.bat
โ”œโ”€โ”€ Pack_Mixes_Original.bat
โ”œโ”€โ”€ H265.bat
โ”œโ”€โ”€ MP3_to_WAV.bat
โ”œโ”€โ”€ Preview.bat
โ”œโ”€โ”€ MIX_Diff.bat
โ”œโ”€โ”€ Resolution_Convert.bat
โ”œโ”€โ”€ test.bat
โ”œโ”€โ”€ Validate_MIX.bat
โ”œโ”€โ”€ config.ini
โ”œโ”€โ”€ config_loader.bat
โ”œโ”€โ”€ cmdparse.ini
โ”œโ”€โ”€ Readme.md
โ”‚
โ”œโ”€โ”€ third-party/
โ”‚   โ”œโ”€โ”€ CMDParse/       CMDParse.exe + sources
โ”‚   โ”œโ”€โ”€ CCMIX/          ccmix.exe
โ”‚   โ”œโ”€โ”€ Radtools_New/   radvideo64.exe, binkplay.exe
โ”‚   โ”œโ”€โ”€ Radtools_Old/   BinkMix.exe
โ”‚   โ”œโ”€โ”€ Original_MIX_Key/  MIX encryption keys
โ”‚   โ””โ”€โ”€ ffmpeg.exe
โ”‚
โ”œโ”€โ”€ Clean_MP4/          Source MP4 videos
โ”œโ”€โ”€ WAV_Sound/          WAV audio tracks
โ”œโ”€โ”€ Clean_BIK/          Original BIK files
โ”‚
โ”œโ”€โ”€ Final_BIK_RA1/      RA1 output
โ”œโ”€โ”€ Final_BIK_RA2/      RA2 output
โ”œโ”€โ”€ Final_BIK_RA2YR/    RA2YR output
โ”‚
โ”œโ”€โ”€ Build/
โ”‚   โ”œโ”€โ”€ MOV/            MO Vision archives
โ”‚   โ””โ”€โ”€ OriginalGames/  Original game archives
โ”‚
โ””โ”€โ”€ Converted/          H265.bat output

๐Ÿ™ Credits

  • RAD Game Tools โ€” Bink encoder & mixer
  • FFmpeg โ€” Video/audio processing
  • DarK600 โ€” AI-Upscaled cutscenes
  • C&C modding community

About

BIK video conversion script [BINK v1.0] for Command & Conquer games

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages