Note: All tools used are linked at the bottom of the post.
In this guide I will cover:
- How to extract content from the game and locate audio and video files
- How to convert the audio and video into formats such as .wav, .mp3, and .mp4
Extracting the files from the game using Gibbed DeusEx3
- Extract the contents of the Gibbed DeusEx3 archive into the installation location for Deus Ex: Human Revolution
- Drag and drop BIGFILE.000 onto Gibbed.DeusEx3.Unpack.exe to start the extraction
- The command prompt will open showing the progress of the extraction and close when completeNote: The extraction will fail if the file path is too long. As shown above, the extraction paths are quite long already, so it’s better to perform this extraction at the root of a drive. If this becomes a problem, you can copy all of the BIGFILEs (000 through 008) into a new folder at the root of the drive you’re using. Be mindful of disk space too, as each extraction has the size of about 17 GB.
Locate and extract audio
- Navigate to the .mul file. In the bigfile.xml namemap and in the filename, voiceover audio is denoted by the prefixes "dia" "rad" "3tr" and are mostly found in the \pc-w\audio\streams\vo\eng folder in each of the extracted folders, as well as in the _UNKNOWN folder, but these are not named clearly. Adam Jensen’s voice is seperate from the NPC audio as well which would be found in the npcs/unique folder under each location Music is located in the default\pc-w\music folder
Below is a table showing the different kind of voice audio that can be found:
Convert audio using vgmstream
- Extract vgmstream archive. The vgmstream-cli.exe program is supposed to be used within the command line, but also works via the file browser (the following instructions will cover the latter)
Convert audio using FSB Extractor (alternative method)
- Load the .fsb file with Main > Open…
Locate and extract video cinematics using VGMToolbox
- Navigate to the .usm file. In the bigfile.xml namemap and in the filename, cinematics are denoted by the prefixes "cut" "sce" "cin". Most cinematics can be found within individual folders in:
BIGFILE_unpack\default\pc-w\design_database\videos\cinematics\final_cinematics
Example: - Multiple files will then be extracted in the folder the .usm file was in. The .m2v file is the video, and the .adx files are all audio streams, one with music/sound effects, the rest with voice over, all different based on localisation. The English one should be first, usually denoted with a 1 after the first number, the sfx denoted with a 0. For example in the screenshot below the sound effects are in the file ending in 40534641 and English voice over is the file ending in 41534641. I will come back to this point later when combining the audio and video streams.
Convert cinematic audio using FFmpeg-based ADX converter
- Extract the contents of FFmpeg-based-ADX-converter archive
Convert cinematic video using VLC Media Player
- Open VLC Media Player > Media > Convert/Save
- The Profile edition window will open. Encapsulation tab > check MP4/MOV > Video codec tab > check Keep original video track > Audio codec tab > keep it unchecked (there is no audio in the video) > SaveNote: You can choose not to modify the original codec to maintain the same quality as shown above, however due to the original file format .m2v the converted output from VLC will be using the MPEG-1 codec even as an .mp4. This kind of video tends to not have support in modern software or browsers, so you may need to change the codec to be "web friendly". To do this when converting you need to set the format to H.264 instead. As for the bitrate, just set it to a number close to the original file and Save.
Combine extracted audio and video into one .mp4 file
As mentioned before, the video cutscenes contain multiple additional audio channels for language localization. In order to combine audio and video a language needs to be selected for the character's voices to be in the final video.
- After converting the .adx files into .wav, select the .wav file that contains the stream with the language you want. Then find the main stereo audio channel that has the music, sound effects, and so on (it should be the first one).
- Open Audacity (or any other audio editing software you prefer), and load both .wav files as different channels. Do not move them around individually, as they should be synced together automatically.
- Select all the audio and export all as a combined Stereo .wav file.Now we have a .wav file that contains a mixdown of the music, sound effects, and dialogue, and we have an .mp4 file with video but no sound. These two files need to be combined into one .mp4 file so we can get video with sound. To do this you need ffmpeg.
- Download ffmpeg and extract the .zip. Within the extracted files, there should be a folder called bin. Inside bin you should find ffmpeg.exe. Place the .mp4 video and the .wav file you want to combine into this folder.
- In the address bar, type in cmd, and tap the enter key. Now a Command Prompt window will open within the folder.
- Enter the following command, making sure to match the file names for the .mp4 and .wav with the files you have. Please note that special characters can cause cmd to behave strangely or fail to work properly, so if you run into any issues I would advise just to rename the video to video.mp4 and the audio to audio.wav and then run the command without modifying it:
ffmpeg -i video.mp4 -i audio.wav -c:v copy -shortest output.mp4
If you are interested in understanding more about what the command does, I went into more details about it in another guide. - Once complete you'll find a video within the same folder named output.mp4 which should now have both audio and video playing.
View the result on YouTube:
Tools
- Gibbed DeusEx3:
https://www.moddb.com/games/deus-ex-3/downloads/gibbeds-deus-ex-hr-tools - vgmstream:
https://github.com/vgmstream/vgmstream-releases/releases/download/nightly/vgmstream-win64.zip - FSB Extractor:
http://aezay.dk/aezay/fsbextractor - VGMToolbox:
https://sourceforge.net/projects/vgmtoolbox - FFmpeg-based ADX converter:
https://github.com/OSA413/FFmpeg-based-ADX-converter - VLC Media Player:
https://www.videolan.org - Audacity:
https://www.audacityteam.org/download/ - ffmpeg:
https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
No comments:
Post a Comment