Giter Club home page Giter Club logo

Comments (13)

kingslay avatar kingslay commented on June 20, 2024 1

你后面给的URL可以复现这个问题了

from ksplayer.

kingslay avatar kingslay commented on June 20, 2024 1

不是所有的mov都会有这个问题,就iPhone手机拍的才会。我也试着要用range来进行判断。但是无法获取range的信息。所以你可能需要用avplayer来进行播放。我的项目有提供了一个avplayer的实现。

from ksplayer.

kingslay avatar kingslay commented on June 20, 2024 1

这个问题你可以用最新的代码试下,应该不会那么慢了。

from ksplayer.

kingslay avatar kingslay commented on June 20, 2024

这个url打不开,报错
Unable to negotiate TLS/SSL session: -9806
https://neckaros.000webhostapp.com/test.mov: Input/output error
我用vlc也是打不开

from ksplayer.

neckaros avatar neckaros commented on June 20, 2024

It plays in VLC from my country:
image
Maybe it's blocked in mine?
I have the same issue on my personal server but it's not public so i found this free host. Maybe you have some place else where i can share it with a direct link?

from ksplayer.

kingslay avatar kingslay commented on June 20, 2024

你可以把url发到我的邮箱。我的邮箱在reademe 里面有写

from ksplayer.

neckaros avatar neckaros commented on June 20, 2024

I think i found a solution. I took another smaller video and uploaded it to Github:
https://github.com/neckaros/KSPlayer/raw/develop/2.mov

from ksplayer.

neckaros avatar neckaros commented on June 20, 2024

Tell me if you are able to reproduce with this link otherwise I will email you

Thanks

from ksplayer.

kingslay avatar kingslay commented on June 20, 2024

找到原因了 因为ffmpeg在下载mov视频的时候 分成很多段进行下载。所以导致很慢。而vlc只分为两段来下载。我看mpv也是分为很多段下载。 这个需要ffmpeg进行处理下 你可以用ffplay播放 也会有这个问题

from ksplayer.

neckaros avatar neckaros commented on June 20, 2024

Thanks!
I think they found a solution here: https://stackoverflow.com/questions/61652486/ffmpeg-making-requests-for-each-frame-when-decoding-a-stream-slow-performance

not sure it apply for your implementation ?

from ksplayer.

kingslay avatar kingslay commented on June 20, 2024

这个解决方案对于mov的视频是可以,但是在播放其他视频的,就会出问题了。而且不好控制buffer_size。当用户拍摄的mov视频很大,超过buffer_size的大小的话。那还是会继续卡顿

from ksplayer.

neckaros avatar neckaros commented on June 20, 2024

thanks again for all your help!

Would it be possible to apply only on MOV containers and obtain the buffer size like he said:
You can get that value from the second network request bytes range when you are opening the format context (first network request is made with bytes range 0-* and then the second network request is made with bytes range XXXX-* where XXXX should be the buffer size)
From that and what he says: not the whole video is necessary but the first part of audio only ?

i can fallback to iOS or VLC player but I guess iPhone video over network would often be used on an iOS player

from ksplayer.

neckaros avatar neckaros commented on June 20, 2024

Letting AVPlayer as the primary player is indeed a good workaround

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.