Warzone2100 / warzone2100

Command the forces of The Project in a battle to rebuild the world after mankind has been nearly destroyed by nuclear missiles. A 100% free and open source real-time strategy game for Windows, macOS, Linux, BSD+
https://wz2100.net
GNU General Public License v2.0
3.2k stars 531 forks source link

Choppy audio in cutscenes #3694

Open danielw1990 opened 7 months ago

danielw1990 commented 7 months ago

Describe the bug In cutscenes, and only there for as far as I could tell from playing the first mission. The audio is completely messed up, it only works for a few milliseconds here and there. But it more broken then it works.

All in game sounds seem to work.

the file seems to be fine, I downloaded it again and got the same md5 checksum: 9a1ee8e8e054a0ad5ef5efb63e361bcc

I guess getting the exact same hash from 2 broken downloads, is sufficiently unlikely to be ruled out as a problem.

To Reproduce Copy https://deac-ams.dl.sourceforge.net/project/warzone2100/warzone2100/Videos/high-quality-en/sequences.wz into the directory Start a new campaign and get into any cutscene.

Expected behavior The audio to be recognizable as intentionally created sound effects or speech. or hear able at all. It's not a volume problem because the random few milliseconds that work are loud enough.

Screenshots or Videos If applicable, add screenshots to help explain your problem.

Your System:

Additional context Since the upgrade to Ubuntu 22.04.4 LTS most audio problems have just disappeared even switching devices now works almost all of the time without problems. In my entire time of using computers starting with win98SE in the early 2000s it literally has never been this smooth before. It was almost suspicious after the upgrade.

Audio devices used: Kingston Wireless Headset Bose Bluetooth speaker

I also found a workaround: Just unpack the files from the WZ archive. I guess this confirms my suspicions about timing/buffer problems.

past-due commented 7 months ago

Interestingly, this doesn't reproduce locally for me.

But I just noticed you seem to be running 4.2.3-3, which looks like the version from the Ubuntu "universe" repo. This is considerably out of date.

Please try uninstalling that (and any associated warzone2100-data and warzone2100-music etc packages), and install the latest release of one of the official builds from: https://wz2100.net

(We have Flatpaks, Snaps, and .DEBs. Either of the first two will automatically keep up to date with the latest releases and are the recommended options.)

Chewbakka-Wakka commented 7 months ago

To add, and correct me if wrong but the new location to acquire said sequences is from this repo: https://github.com/Warzone2100/wz-sequences

past-due commented 7 months ago

To add, and correct me if wrong but the new location to acquire said sequences is from this repo: https://github.com/Warzone2100/wz-sequences

Should be the same files, but yes - that's an alternate location (and may provide faster downloads for some people)

Chewbakka-Wakka commented 1 month ago

Old version.. can prob close this.

Chewbakka-Wakka commented 3 weeks ago

I'd also add that even in new versions the issue remains and what we fundamentally need is the RPL2AVI converter workable rather than hacked together ( based on the code and comments within it ) then use that on the original RPL files to perform a cleaner conversion. If I could get that built on any platform, would want to try it out and then I'd reconvert everything.

From there on a tangent, ideally AV1 codec support added into WZ. - just as a RFE

KJeff01 commented 3 weeks ago

There are rpl/avi sequences in this archive. Use your browser's search function to find "rpl" since there are a lot of files. AFAIK, the rpl2avi files are still in the same state it was when one of the Pumpkin software engineers dropped it off.

Chewbakka-Wakka commented 3 weeks ago

Indeed I do posses all the original RPL files as they are, the point I'm more trying to allude to is that the RPL2AVI converter itself that was used to extract those files into a AVI format... would be worth to check if it can be improved such that the output AVI files may be of better quality. I know the rpl2avi tool is also under 3rd party tools, though building and trying to even use it is hard. Not only due to the 32-bit libs but well, I'm sure you've seen that code.