7aGiven / Phigros_Resource

Phigros apk资源提取
GNU General Public License v3.0
33 stars 13 forks source link

消除音频数据从ogg转化为wav空间损耗 #7

Closed Wzp-2008 closed 8 months ago

Wzp-2008 commented 9 months ago

看起来是鸽游修改了音频格式导致无法提取,使用fsb5库进行格式转换即可(需要libvorbis和libogg)

7aGiven commented 8 months ago

是从mav改为ogg吗,有空我看下

Wzp-2008 commented 8 months ago

其实就是把原本的音频格式使用fsb5又套了一层壳,并且转为ogg

7aGiven commented 8 months ago

经过测试,Phigros 3.3.0,music文件夹并非为空。

7aGiven commented 8 months ago

请检查您的测试环境

7aGiven commented 8 months ago

后续如无确切的复现方法,则会关闭本Pull Request。

7aGiven commented 8 months ago

附带一句,本程序需要大量内存,运行设备至少需要4G内存,否则可能出现因内存不足而导致的无法提取。

7aGiven commented 8 months ago

测试发现linux上运行正常,win10上运行music文件夹为空,确定问题后尝试接受此Pull Request。

7aGiven commented 8 months ago

已确定格式依旧为wav

7aGiven commented 8 months ago

问题已定位,原因是UnityPy所依赖的pyfmodex库更新至0.7.1后不可用。更换回pyfmodex 0.7.0即可。

7aGiven commented 8 months ago

因为pyfmodex 0.7.1为2023年11月23日更新,之前作者的设备未更新pyfmodex库,故可用。

7aGiven commented 8 months ago

这边不认可多增加一个库的做法,将增加requestment.txt与在README.md中注明。

7aGiven commented 8 months ago

已解决,增加requirement.txt与README.md注明。

7aGiven commented 8 months ago

UnityPy更新1.10.7。修复了音频问题。

7aGiven commented 8 months ago

https://github.com/K0lb3/UnityPy/commit/50fcaf1ee64773fcc63ed10c95b98480e478fdbf

7aGiven commented 8 months ago

重新确认,虽然音频路径的后缀为wav,但是文件内容为ogg。

7aGiven commented 8 months ago

鉴于生成的wav文件远大于ogg文件,故将此PR的标签设置为增强,而不是bug。

7aGiven commented 8 months ago

对于需要libvorbis和libogg不太合适

7aGiven commented 8 months ago

根目录增加libogg.dll和libvorbis.dll