HomeOfAviSynthPlusEvolution / L-SMASH-Works

Forked from VFR-maniac/L-SMASH-Works; hydra3333/L-SMASH-Works; l33tmeatwad/L-SMASH-Works; HolyWu/L-SMASH-Works; AkarinVS/L-SMASH-Works.
89 stars 15 forks source link

LSMASHAudioSource is broken #63

Closed tebasuna51 closed 7 months ago

tebasuna51 commented 7 months ago

in the last (LSMASHSource.dll 2024/04/02) LSMASHAudioSource is broken (wrong channels and decode), use always LWLibavAudioSource than seems work fine.

All wav files are informed with wrong number of channels and wrong decoded to 1 or 2 channels, even the stereo is decoded like mono.

For instance, for a standard 5.1 wav the MeGUI log show:

--[Information] [04/04/2024 16:03:23] MediaInfo ---[Information] File: C:\tmp\6p321.wav ----[Information] SamplingRate: 48000 ----[Information] Channels: 6 ----[Information] ChannelPositionsString2: 3/2/0.1 ... --[Warning] [04/04/2024 16:03:27] Channel count mismatch! The input file is reporting 6 channels and the AviSynth script is reporting 2 channels ... --[Information] [04/04/2024 16:03:27] AviSynth script ---[NoImage] LSMASHAudioSource("C:\tmp\6p321.wav", drc_scale=0.0) ---[NoImage] # detected channels: 6 ---[NoImage] # detected channel positions: 3/2/0.1 --[Information] [04/04/2024 16:03:28] Output Decoder ---[Information] [04/04/2024 16:03:28] Channels: 2

Without problems using LWLibavAudioSource

L4cache commented 7 months ago

Is L-SMASH reader supposed to read WAV files?

Asd-g commented 7 months ago

Try the attached version.

LSMASHSource.zip

Asd-g commented 7 months ago

Try the latest version r1192.

tebasuna51 commented 7 months ago

r1192 tested, LSMASHAudioSource now have correct channel count, but still don't read the MaskChannel in wav header like LWLibavAudioSource do.

Asd-g commented 7 months ago

Try the attached version.

LSMASHSource.zip

tebasuna51 commented 7 months ago

Now seems ok. Thanks

tebasuna51 commented 7 months ago

To fast. This .avs:

LWLibavAudioSource("C:\tmp\8w3D.eac3", drc_scale=0)

LSMASHAudioSource("C:\tmp\8w3D.eac3", drc_scale=0)

AudioDubEx(BlankClip(length=Int(1000*AudioLengthF(last)/Audiorate(last)), width=720, height=720, fps=25), last) Info()

Output correct maskchannel MaskChannels : 22031 (FL FR FC LF SL SR TFL TFR) But with LSMASHAudioSource:

AviSynth Open Failure LSMASHAudioSource [Fatal]: The number of tracks equal 0.

Asd-g commented 7 months ago

Can you share sample?

Edit: What version of LSMASHAudioSource can open eac3 file?

tebasuna51 commented 7 months ago

8w3D.zip Created with Audition 2017

I always use LWLibavAudioSource, I don't know if LSMASHAudioSource never support eac3.

Asd-g commented 7 months ago

eac3 raw format isn't supported by l-smash.

If there is error message The number of tracks equal 0. it means that 99% of the cases the input file cannot be read by l-smash.

tebasuna51 commented 7 months ago

You are right, even muxed in mkv or m2ts don't work. I know the wiki info: "Recommended for MP4, MOV, [ISO Base Media] and its derived file formats." But maybe need info about unssuported formats.

Asd-g commented 7 months ago

Anything different than should be considered non-supported: