-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slow to start iPhone video (tested in TracyPlayer) #570
Comments
这个url打不开,报错 |
你可以把url发到我的邮箱。我的邮箱在reademe 里面有写 |
I think i found a solution. I took another smaller video and uploaded it to Github: |
Tell me if you are able to reproduce with this link otherwise I will email you Thanks |
你后面给的URL可以复现这个问题了 |
找到原因了 因为ffmpeg在下载mov视频的时候 分成很多段进行下载。所以导致很慢。而vlc只分为两段来下载。我看mpv也是分为很多段下载。 这个需要ffmpeg进行处理下 你可以用ffplay播放 也会有这个问题 |
Thanks! not sure it apply for your implementation ? |
这个解决方案对于mov的视频是可以,但是在播放其他视频的,就会出问题了。而且不好控制buffer_size。当用户拍摄的mov视频很大,超过buffer_size的大小的话。那还是会继续卡顿 |
thanks again for all your help! Would it be possible to apply only on MOV containers and obtain the buffer size like he said: i can fallback to iOS or VLC player but I guess iPhone video over network would often be used on an iOS player |
不是所有的mov都会有这个问题,就iPhone手机拍的才会。我也试着要用range来进行判断。但是无法获取range的信息。所以你可能需要用avplayer来进行播放。我的项目有提供了一个avplayer的实现。 |
Letting AVPlayer as the primary player is indeed a good workaround |
这个问题你可以用最新的代码试下,应该不会那么慢了。 |
Describe the bug
In TracyPlayer from TestFlight and my own application:
Video taken from iPhone 12 Pro (the exemple i have) takes a lot of buffering time when played from URL.
It starts instantly with same URL in VLC or web browser.
It starts instantly if I download and open from file
To Reproduce
Steps to reproduce the behavior:
Expected behavior
if you open the same url in the browser or VLC it start instantly
Screenshots
Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: