-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dolby Digital/DTS passthrough-decoding #432
Comments
I'd say it will be difficult to pass the proper bitstream to decoders (hardware more so than software). |
I quickly found liba52 for DD and libdca for DTS. Meanwhile, I even found a nice explanation about the process -including hardware offloading- under linux (I'm sure gregory38 will like this) EDIT: ffmpeg also supports AC3 |
Be aware that GPL doesn't protect from patents. Liba52 and libdca seems fine but I don't know for ffmpeg. I would personally prefer a nice and working implementation ;) Sound is already erratic enough on linux unfortunately... |
I just posted as much as open-source stuff I could find. Liba52 and libdca would be already enough for pcsx2. Ffmpeg is just another option (we don't need dts-hd or dolby truehd after all). Said this, I barely know the difference between pulseaudio and alsa.. so do what you believe it's better |
Some insights on SPU2 accuracy here. |
Unfortunately using libdca may still violate DTS patents. Not sure how this affects ffmpeg Found on VideoLan's website: "Provisional Warning: DTS Inc. claims that use of libdca software, to decode DTS compressed sound data on a DVD could violate DTS's patent rights. If you are unsure about the legality of using and distributing this code in your country, in particular in the USA, please consult your lawyer before downloading it." |
Ever heard of patent trolling? Said this, it seems libdca is quite outdated compared to libdcadec (for as much as PS2 emu shouldn't need anything past core DTS). So.. if just @gigaherz had time :p |
Doesn't matter -- I tried once, and failed epicly. My attempt not only failed to decode any audio, but it prevented all the dolby-enabled games I had from booting. I simply could not figure out the right bit rate that the spdif passthrough works at, or at least my attempts at doing so caused games to stop working. And either way, the data I managed to dump, was never accepted by the lib. Also, I do have time, I just don't have the brainpower. working a full-time programming job leaves me braindead for the rest of the day. The only moments I have when I can think, are the weekends, and I don't really want to spend those in something like dolby. ;P |
Well, given you would now have a reference implementation to compare, it should be quite easier (prolly still not easy). Said this, we know the story, it's all in the logs I posted on the forums :) |
Reference implementations? Where? Did I miss something? |
Not in the sense "specific to playstation 2", but as I said AC3 and DTS are pretty thoroughly documented standards. |
Yeah I never attempted to -- I did use liba52 in my attempt, I just failed at being able to provide liba52 with any sort of meaningful bitstream. Maybe things have changed, but I'm not really interested in trying again. ;P |
https://github.com/kodi-adsp/adsp.freesurround An open source implementation that seems to be useable outside of Kodi. A reference to it in Dolphin |
For your information, I'm reworking DPLII on Dolphin, and it's not been easy (I made some changes and fixes to FreeSurround). |
I second FreeSurround, hands down |
It's been a while, and I know there's not a lot activity here, but since it's relevant, here's another, recent test: https://youtu.be/a5w-DzR0Xlg Still hoping for a FreeSurround implementation 👀🤞 |
Ok its owrking only in rpcs3 . I thought it works for pcsx2 also . |
@ISuckGood I think PS3 games use Dolby Digital/DTS, which output discrete 5.1 surround channels, as opposed to Dolby Pro-Logic II in PS2, where surround channels have to be extracted from a stereo signal. |
Any news? |
No |
@MMatiasMG please stop bumping issues, if there is anything to be seen, it's clearly visible. |
For those worried about patents. Patents only last 20 years. |
We are aware. I've brought the AC3/DTS patent situation up internally. AFAIK it's still unknown how the bitstream is handled by the SPU. Someone would need to reverse that. |
But the Dolby Prologic II decoding has nothing to do with the bitstream, right? Have you guys also been discussing using the aforementioned FreeSurround implementation in PCSX2? After all, I think, it's somewhat more important than having a couple of cutscenes in surround sound that happen to have AC3 or DTS encoding? Some NFS games (including the exclusive version of NFS:HP2) and others, like Star Ocean, would greatly benefit from decoded DPLII. Especially in the light of the fact that this specific decoder nowadays falls more and more into obscurity. |
Right, the freesurround discussion was off topic to this issue in the first place, this issue is about decoding the digital formats. |
Yeah, fair enough. I've re-read the issue, and it's "Not a real surround" apparently. It seems, though, that this is the only place, where DPLII is being actively and properly discussed at all with examples and the FreeSurround foobar DSP (the Dolphin implementation) is even mentioned. Still, has nothing to do with digital stream decoding indeed. My bad, sorry. |
Yeah, usually DPL decoding discussions were redirected here. |
I have been lately discussing about PCSX2 and its multichannel audio support.
It seems it's not produced in realtime in-game (besides perhaps some experiments with 4.0 DTS?).. though some FMVs used to be encoded with 5.1
Now, I know pro logic is supported, but that's not real surround. I read rama once said we were waiting for proper decoders.
Then I read gigaherz claiming we cannot license any encoders...
But.. wtf? Why would we need to re-encode audio?
We would just need passthrough (just in case the user was indeed using S/PDIF) and decoding, for everybody else
Afaik FOSS decoders already exist for both standards.
Any idea?
The text was updated successfully, but these errors were encountered: