Comments (13)
你后面给的URL可以复现这个问题了
from ksplayer.
不是所有的mov都会有这个问题,就iPhone手机拍的才会。我也试着要用range来进行判断。但是无法获取range的信息。所以你可能需要用avplayer来进行播放。我的项目有提供了一个avplayer的实现。
from ksplayer.
这个问题你可以用最新的代码试下,应该不会那么慢了。
from ksplayer.
这个url打不开,报错
Unable to negotiate TLS/SSL session: -9806
https://neckaros.000webhostapp.com/test.mov: Input/output error
我用vlc也是打不开
from ksplayer.
It plays in VLC from my country:
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.
你可以把url发到我的邮箱。我的邮箱在reademe 里面有写
from ksplayer.
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.
Tell me if you are able to reproduce with this link otherwise I will email you
Thanks
from ksplayer.
找到原因了 因为ffmpeg在下载mov视频的时候 分成很多段进行下载。所以导致很慢。而vlc只分为两段来下载。我看mpv也是分为很多段下载。 这个需要ffmpeg进行处理下 你可以用ffplay播放 也会有这个问题
from ksplayer.
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.
这个解决方案对于mov的视频是可以,但是在播放其他视频的,就会出问题了。而且不好控制buffer_size。当用户拍摄的mov视频很大,超过buffer_size的大小的话。那还是会继续卡顿
from ksplayer.
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.
Letting AVPlayer as the primary player is indeed a good workaround
from ksplayer.
Related Issues (20)
- Video stutters (visionOS) HOT 5
- Installing via SPM as a package dependency fails in Xcode 15.3. HOT 1
- Video rebuffers? on seek in demo even cache option enabled HOT 9
- FPS Variability HOT 17
- Dolby Vision is purple HOT 6
- Playing this streams times out HOT 7
- Stream buffers very frequently on 3G but OK on WiFi HOT 1
- 前后台切换bug HOT 2
- [tvOS] 4K content on 1080p displays stutter and buffer a lot HOT 5
- TracyPlayer does not play stream HOT 5
- avformat can't open input - In test app it works, production app it doesn't HOT 2
- Cannot run AV1 codecs Video HOT 4
- 打开了logLevel为debug,还是没有显示debug的日志 HOT 2
- Invalid bundle identifier when pushing to testflight using KSPlayer via SPM (doesnt happen over ccoapods) HOT 2
- Xcode 15.4上传App Store报错
- Can the caching function be added? HOT 5
- 您好,如何在不播放的情况下,获取视频的总时间长度? 目前貌似没有 api 可以获取? HOT 1
- Stream doesn't start HOT 2
- Compilation warning in AudioEnginePlayer.swift
- Unable to add via Swift Package manager HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksplayer.