ToaHartor / GI-cutscenes

A command line program playing with the cutscenes files (USM) from Genshin Impact.
GNU General Public License v3.0
652 stars 73 forks source link

batchDemux into MKVs? #23

Closed IngwiePhoenix closed 2 years ago

IngwiePhoenix commented 2 years ago

So I just batchDemux'd all the cutscenes in prep of rewatching them with friends. But, how do I turn the huge amount of files in my output folder into MKVs as described in the readme?

Thanks :)

ToaHartor commented 2 years ago

Did you end up with a lot of hca, wav and ivf files in the output folder ?

IngwiePhoenix commented 2 years ago

Yep!

I also noticed that appsettings.json didn't have the paths for FFmpeg and mkvtools in it, so I added them manually (and properly escaping backslashes):

{
  "Settings": {
    "MkvMergePath": "C:\\Program Files\\MKVToolNix\\mkvmerge.exe",
    "FfmpegPath": "C:\\ProgramData\\chocolatey\\bin\\ffmpeg.exe",
    "SubsFolder": "./GenshinData/Subtitle"
  }
}

Invocation was: ./GICutscenes.exe batchDemux "...path to genshin..." -o out

Anything I missed?

IngwiePhoenix commented 2 years ago

Full command: .\GICutscenes.exe batchDemux "C:\tools\Genshin Impact\Genshin Impact game\GenshinImpact_Data\StreamingAssets\VideoAssets\StandaloneWindows64" -o out

ToaHartor commented 2 years ago

You're missing a few options in your command line. If you want to merge everything with the subtitles, you can try ./GICutscenes.exe batchDemux "...path to genshin..." -o out -m -s (-m to merge the files and -s to add the subtitles) You might want to add as well the --engine option followed by either internal, ffmpeg or mkvmerge, if you don't then it will simply use its own merging system (internal)

Also, in order to merge the subtitles, you must have the subtitles folder at the path "SubsFolder", and the fonts in the same folder than the program.

Unknow-404 commented 2 years ago

Yep!

I also noticed that appsettings.json didn't have the paths for FFmpeg and mkvtools in it, so I added them manually (and properly escaping backslashes):

{
  "Settings": {
    "MkvMergePath": "C:\\Program Files\\MKVToolNix\\mkvmerge.exe",
    "FfmpegPath": "C:\\ProgramData\\chocolatey\\bin\\ffmpeg.exe",
    "SubsFolder": "./GenshinData/Subtitle"
  }
}

Invocation was: ./GICutscenes.exe batchDemux "...path to genshin..." -o out

Anything I missed?

You should use this option to merge the mkv --merge

IngwiePhoenix commented 2 years ago

I see; those were not documented in the help screen on the tool. Thanks for the info, I'll try that now then!