demultiplexing Electronic Arts TGV videos by Alpha23 at 1:29 AM EDT on April 1, 2015
Hi there! I've just written a script to extract the audio track from the old EA TGV videos. Now I'm lacking an extension to use in order for vgmstream to play these files. Here's the documentation: http://wiki.multimedia.cx/index.php?title=Electronic_Arts_1SNx and there are some samples including the script and demuxed audio: http://www.multiup.org/download/e9a9905e39de41f1d54daefbe25a3d2d/TGV.7z Any help is highly appreciated!
Ok, I've found another documentation (http://www.extractor.ru/articles/electronic_arts_audio_file_formats_description) and adjusted my script. However the resulting files can't be played or decoded by any tool I have. As far as I can see, everything should be consistent with the documentation. Nevertheless, can somebody please take a look if the audio stream is created correctly? Here's my second script:
idstring "1SNh" get SIZE_HEADER long # audio header append log MEMORY_FILE 0 SIZE_HEADER append math OFFSET += SIZE_HEADER for i = 1 goto OFFSET getDstring IDENT 3 get MARKER byte get SIZE long if IDENT == "1SN" append log MEMORY_FILE OFFSET SIZE append endif if MARKER == 0x65 callfunction wrapup 1 endif math OFFSET += SIZE next i startfunction wrapup get SIZE asize MEMORY_FILE get NAME basename string NAME += ".as4" log NAME 0 SIZE MEMORY_FILE cleanexit endfunction