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)
- Voices/Dialogues not heard with AudioUnit HOT 2
- AudioUnit crashes HOT 2
- *** Important Issues to be fixed HOT 9
- Issue with some live tv streams HOT 14
- OpenSSL not enabled by default HOT 2
- Can't seek forward/bakwards with a pre-recorded .ts stream (TVOS) HOT 16
- 可以在播放的时候,适时的改变视频源的分辨率吗? HOT 1
- 在播放某个视频时会出现拖影,闪屏的问题 HOT 2
- VisionOS: 在ImmersiveSpace中渲染基于Metal的VR视频 HOT 2
- iOS真机前后台切换bug
- Small subtitles on iPad HOT 3
- 添加 Package 无法将最新的 FFmpegKit 添加进去 HOT 4
- Broken subtitle track names HOT 2
- SwiftUI player view 没有初始化 PIPController HOT 1
- 7.1 played as stereo HOT 1
- Interlaced stream looks shaky if the reference frame =1 using Yadifx2 HOT 13
- Unable to use the remote in tvOS HOT 5
- Sound problems on 7.1 tracks HOT 3
- 在播放途中闪退 HOT 4
- Deinterlacing problem with some Top Field First videos HOT 18
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.