Giter Club home page Giter Club logo

Comments (16)

kingslay avatar kingslay commented on September 24, 2024

可以让用户发一下日志吗?

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on September 24, 2024
info KSPlayer: KSPlayerLayer.swift:141 state | playerStateDidChange - buffering
info KSPlayer: AVFFmpegExtension.swift:397 layoutTag | FFmepg channelLayout: 7.1 order: AVChannelOrder(rawValue: 1)
info KSPlayer: AudioEnginePlayer.swift:141 prepare(audioFormat:) | outputFormat channelLayout AudioFormat: <AVAudioFormat 0x28223fc00:  8 ch,  48000 Hz, Float32, deinterleaved>
info KSPlayer: AudioEnginePlayer.swift:143 prepare(audioFormat:) | outputFormat channelLayout tag: 8388616
info KSPlayer: AVFoundationExtension.swift:140 channelLayout() | KSOptions channelLayout: AudioChannelLayoutTag: 8388616, mNumberChannelDescriptions: 0
info KSPlayer: AVFoundationExtension.swift:166 channelLayout() | out channelLayout mask: 1599 nb_channels: 8
info KSPlayer: Resample.swift:192 init(audioDescriptor:audioFormat:) | out channelLayout: 7.1
info KSPlayer: AudioEnginePlayer.swift:144 prepare(audioFormat:) | outputFormat channelLayout channelDescriptions: []
info KSPlayer: KSPlayerLayer.swift:141 state | playerStateDidChange - readyToPlay

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

看这个日志,所有的属性设置都是对的。这个是7.1的视频。

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on September 24, 2024

I can send you the video links to try yourself.

Sound for rears is coming out the fronts.

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

但是我没有7.1的音响设备,无法测试。你本地测试了结果是怎么样呢?

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

I can send you the video links to try yourself.

Sound for rears is coming out the fronts.

是只有后面的声音会有问题吗?其他的声音不会有问题吗?

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on September 24, 2024

I simply play https://www.demolandia.net/downloads.html?id=30191483

My test app is a single button that calls

`
let path = Bundle.main.path(forResource: "71", ofType:"mkv")

KSVideoPlayerView(url: URL(fileURLWithPath: path!), options: myOptions)
`

My soundbar is dolby atmos with surround speakers and was working previously (except when there was the issue with no centre speaker).

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on September 24, 2024

Only the rears are not working correctly.

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

@UnknownCoder807 我试着修复下,也增加了一些日志来帮忙排查。日志可以通过[audio] 来进行过滤。你本地试下

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on September 24, 2024

Still not working.

info KSPlayer: KSPlayerLayer.swift:138 state | playerStateDidChange - buffering
info KSPlayer: KSOptions.swift:316 setAudioSession(audioDescriptor:) | [audio] maximumOutputNumberOfChannels: 32
info KSPlayer: KSOptions.swift:326 setAudioSession(audioDescriptor:) | [audio] isSpatialAudioEnabled: false
info KSPlayer: KSOptions.swift:337 setAudioSession(audioDescriptor:) | [audio] preferredOutputNumberOfChannels: 6
info KSPlayer: AVFFmpegExtension.swift:398 layoutTag | FFmepg channelLayout: 5.1(side) order: AVChannelOrder(rawValue: 1)
info KSPlayer: AudioEnginePlayer.swift:141 prepare(audioFormat:) | [audio] outputFormat AudioFormat: <AVAudioFormat 0x283629e00:  6 ch,  48000 Hz, Float32, deinterleaved>
info KSPlayer: AudioEnginePlayer.swift:143 prepare(audioFormat:) | [audio] outputFormat tag: 7929862
info KSPlayer: AudioEnginePlayer.swift:144 prepare(audioFormat:) | [audio] outputFormat channelDescriptions: []
info KSPlayer: AVFoundationExtension.swift:140 channelLayout() | [audio] channelLayout: AudioChannelLayoutTag: 7929862, mNumberChannelDescriptions: 0
info KSPlayer: AVFoundationExtension.swift:166 channelLayout() | [audio] out mask: 1551 nb_channels: 6
info KSPlayer: Resample.swift:192 init(audioDescriptor:audioFormat:) | out channelLayout: 5.1(side)
info KSPlayer: KSPlayerLayer.swift:138 state | playerStateDidChange - readyToPlay

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

@UnknownCoder807 你可以试下是不是 2f9f711 这个bugfix 引起的。最近音频的改动点就是这个了

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

如果不是这个引起的话,那就在试下 b6e172d @UnknownCoder807 麻烦你了。谢谢

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on September 24, 2024

@UnknownCoder807 你可以试下是不是 2f9f711 这个bugfix 引起的。最近音频的改动点就是这个了

I tried the 2 commits you mentioned and the issue is in both of them.

So I then installed the previous commit dated 2nd May (0609316) and the issue was not there.

So it appears b6e172d is the root of the problem.

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

@UnknownCoder807 麻烦确认下最新的代码是否修复了这个问题了。谢谢

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on September 24, 2024

working fine using latest code.

from ksplayer.

kingslay avatar kingslay commented on September 24, 2024

#523

from ksplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.