[SOLVED] ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Codecs, formats, encoding/decoding of game audio, video and music
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[SOLVED] ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

https://1fichier.com/?yn94ut9bxsnjzbc8mnpq

Can somebody try to find out which audio format these stream are and hint me in a direction as to which header they need? I've been playing around with genh but to no avail. All files are 48kHz, probably stereo.
Thanks!
Last edited by AlphaTwentyThree on Sat Jun 11, 2022 10:28 am, edited 1 time in total.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by BloodRaynare »

The codec is DVI IMA ADPCM. However, I don't know if genh include support for that. FWIW here's the txth script for them:

Code: Select all

codec = DVI_IMA
channels = 2
sample_rate = 48000
num_samples = data_size
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

perfect, thanks a lot :)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

BloodRaynare wrote:The codec is DVI IMA ADPCM. However, I don't know if genh include support for that. FWIW here's the txth script for them:

Code: Select all

codec = DVI_IMA
channels = 2
sample_rate = 48000
num_samples = data_size

Somehow I can't get those files to play, I only get an error message (Unable to open item for playback). Anything I have to consider? Just created a *.txth file with the above information for each stream.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by BloodRaynare »

AlphaTwentyThree wrote:Somehow I can't get those files to play, I only get an error message (Unable to open item for playback). Anything I have to consider? Just created a *.txth file with the above information for each stream.


You'll need to check "Enable unknown exts" on the vgmstream preference in foobar.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

BloodRaynare wrote:
AlphaTwentyThree wrote:Somehow I can't get those files to play, I only get an error message (Unable to open item for playback). Anything I have to consider? Just created a *.txth file with the above information for each stream.


You'll need to check "Enable unknown exts" on the vgmstream preference in foobar.

same error still...
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by BloodRaynare »

AlphaTwentyThree wrote:same error still...


What's your txth name? it should be (dot)(extension)(dot)txth (So in your example it would be ".raw.txth") for all the raw files in the same directory. If it's per file, just do (name)(dot)(extension)(dot)txth.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

BloodRaynare wrote:
AlphaTwentyThree wrote:same error still...


What's your txth name? it should be (dot)(extension)(dot)txth (So in your example it would be ".raw.txth") for all the raw files in the same directory. If it's per file, just do (name)(dot)(extension)(dot)txth.

It is. That's the thing. I'm quite stumped here tbh as it should clearly work...
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by BloodRaynare »

AlphaTwentyThree wrote:It is. That's the thing. I'm quite stumped here tbh as it should clearly work...


This is maybe kind of shot in the dark, but try check the "Enable common exts" as well.
Also, you just need to drag the raw files, not the txth files in case you didn't know.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

BloodRaynare wrote:Also, you just need to drag the raw files, not the txth files in case you didn't know.

Oh god, I DID NOT KNOW! :roll:
Yeah, works now. ;)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: [SOLVED] ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

forget my message, solved it
Last edited by AlphaTwentyThree on Tue Jun 14, 2022 11:39 am, edited 1 time in total.
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: [SOLVED] ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by BloodRaynare »

AlphaTwentyThree wrote:Sorry, I need to get back to you again... I've established a pseudo-format for these audio streams with the needed information at the start of the stream. I've written this txth, but it doesn't work:

Code: Select all

codec = DVI_IMA
sample_rate = @0x4
channels = @0x08
start_offset = 0x10
num_samples = @0

What's wrong here?


From my experience, if num_samples is not "data_size", then you must specify the data_size itself. You can find the txth commands and what does they do here: https://github.com/vgmstream/vgmstream/ ... oc/TXTH.md
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: [SOLVED] ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

here's the correct txth:

Code: Select all

codec = DVI_IMA
sample_rate = @0
channels = @6$1
start_offset = 8
num_samples = data_size - start_offset

made an error with the length of the variables
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: [SOLVED] ADPCM audio from Tt Fusion *.fmv movies (FMV! identifier)

Post by AlphaTwentyThree »

If you're interested, here's the script for these fmv movies from Tt Fusion games: viewtopic.php?f=17&t=7982&p=72049#p72049