Forget the end of play and try this:
Expected:
Result:
This is a malfunction, as the player should either accept or not accept the new position. But if accepted, it shouldn't report the old one when the state changes.
Hello Alexander.
When you change the position of this seek bar, even if you go to the end of the file or you don’t (this problem is general), the player should first update the position, then change the state based on that position. This bug creates many problems that require workaround. The one above is just one of them. Another is that after changing the position and tap play, it would for a moment show the old position because not yet updated. Therefore if I tell the player to go to position B and start playing, it’s an error that when it starts playing (aka changes state to playing) it is back on position A, before going to B.
I was an engineer for the live video team of Twitter. And an engineer for the Google Home Nest Camera stream consumption. I can give me my honest opinion that there are several conflicts in VLCKit between state and position/progress. Those errors don’t happen when you use Apple AVPlayer SDK on top of the same application logic.
Thank you.
Best.
Sent from my iPhone
On Feb 28, 2023, at 5:39 AM, Alexandre Janniaux (@alexandre-janniaux) gitlab@videolan.org wrote:
Alexandre Janniaux commented:
I'm not sure to see any problem. Position and currentProgress are properties reported by the demux, and it depends on the data it receives. If there is no report at the end of the file, there is not report to the application either, and if the playback is not running, there is no demux to report this kind of information.
The application should behave depending on player progress and player state imho.
-- Reply to this email directly or view it on GitLab: #690 (comment 371076) You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
To reproduce:
Change the position
of the player to the end.
Observe these logs:
(lldb) po vlcState
VLCMediaPlayerStateEnded
(lldb) po duration
125.952
(lldb) po currentProgress
6.0999999999999996
(lldb) po position
0.048428963869810104
This also creates problems in other cases, but this is very clear.
It does, thank you. We can close the ticket.
On Feb 20, 2023, at 1:57 AM, Felix Paul Kühne (@fkuehne) gitlab@videolan.org wrote:
Felix Paul Kühne commented:
By default, VLCKit will use the blend deinterlace algorithm which is very fast but not the most beautiful. As @alexandre-janniaux mentioned, there is no "best" algorithm. There is always the trade-off to make between image quality and CPU load, especially as deinterlacing on Apple TV is currently done in software with no GPU acceleration, so it will be always slow and video content prone to lagging.
Does this answer your question?
-- Reply to this email directly or view it on GitLab: #687 (comment 369925) You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
Best deinterlace means that uses the best method to make the stream smooth. Thanks!
Thank you.
The question is: When set to auto, it also selects the best deinterlace method automatically? Or do we need still to select a deinterlace method? Someone is saying that it doesn't select the best deinterlace method and that we should select the "X" method, that's why the question.
There's some sort of documentation on this?
Question:
When we select auto deinterlace on Vlckit, it enables deinterlace when needed. However it seems it doesn’t automatically select the right deinterlace method.
Users say that other apps with vlc can do this. So I was wondering if you could explain what’s the real functionality of “auto” and if the above can be accomplished somehow.
Thank you.
Hello, what is the right way to close a connection?
I call stop
on the VLCMediaPlayer as soon as the user leaves the player, and I can verify the player is deallocated. Although that, the connection remains open for 30-60 seconds with the server from where the stream is provided.
Testing another app that uses VLC, the connection gets closed immediately after exiting the player.
Can you help?
Thank you.
The last time this was working well was with version 3.4.1b11
.
It might be the libvlc bump.
Anyway, after some tests it come out that:
init
), there's no red screen;initWithOptions:
, where we only pass the hardware acceleration setting), sometime, someone gets red screen (on any channel resolution);Apparently, switching the hardware acceleration to ON if OFF or to OFF if ON, solves the issue. Streams work correctly when users use AVPlayer for supported formats.
Actually it seems adding the subtitles in the end, but it take like 1-2 mins with frozen video.
Hi Felix, what do you mean with inspect and try locally?
PS. unfortunately for some reason not even add SRT subtitles anymore. The SRT link works properly. Tried with different subtitles:
2022-12-06 19:00:58.510348-0800 TargetName[36799:1077179] received product with id full.sub12.family
2022-12-06 19:00:58.510526-0800 TargetName[36799:1077179] received product with id full.sub1
2022-12-06 19:01:29.757441-0800 TargetName[36799:1077382] [DBG] | | | + Track Type=subtitle
2022-12-06 19:01:29.758510-0800 TargetName[36799:1077382] [DBG] | | | + Track Type=subtitle
[Theater] Subtitle font size set
2022-12-06 19:01:32.199944-0800 TargetName[36799:1077382] [WARN] refusing to decode non validated subtitle codec
2022-12-06 19:02:16.400205-0800 TargetName[36799:1077382] [DBG] loading spu-es slave: https://www.opensubtitles.com/download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt (forced: 1)
2022-12-06 19:02:16.400557-0800 TargetName[36799:1077382] [DBG] `https://www.opensubtitles.com/download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt' gives access `https' demux `subtitle' path `www.opensubtitles.com/download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt'
2022-12-06 19:02:16.406433-0800 TargetName[36799:1077382] [DBG] creating demux: access='https' demux='subtitle' location='www.opensubtitles.com/download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt' file='(null)'
2022-12-06 19:02:16.408382-0800 TargetName[36799:1077382] [DBG] creating access: https://www.opensubtitles.com/download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt
2022-12-06 19:02:16.410332-0800 TargetName[36799:1077382] [DBG] resolving www.opensubtitles.com ...
2022-12-06 19:02:46.416115-0800 TargetName[36799:1077382] [DBG] open TLS session for www.opensubtitles.com
GET /download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt HTTP/1.1
Host: www.opensubtitles.com
Content-Security-Policy: default-src 'self'; font-src 'self' fonts.googleapis.com code.cdn.mozilla.net https: data:; img-src 'self' image.tmdb.org m.media-amazon.com https: data:; object-src 'self'; form-action 'self' forum.opensubtitles.com localhost:4200 www.opensubtitles.com; frame-src 'self' opensubtitles.test.onfastspring.com opensubtitles.onfastspring.com *.cloudfront.net api.blink.net *.tawk.to tawk.to test.blink.net blink.net www.recaptcha.net www.google.com www.youtube.com; connect-src 'self' opensubtitles.test.onfastspring.com opensubtitles.onfastspring.com *.cloudfront.net rb-dev:8082 *.tawk.to wss://*.tawk.to cdn.datatables.net www.google-analytics.com test.blink.net api.blink.net blink.net www.gstatic.com *.blink.net api.test.blink.net; base-uri 'self' test.blink.net api.blink.net blink.net *.blink.net; frame-ancestors 'self'; script-src 'self' *.cloudfront.net bam.eu01.nr-data.net www.google.com cdn.datatables.net www.recaptcha.net www.google-analytics.com https: 'unsafe-inline' 'unsafe-eval'; style-src 'self' cdnjs.cloudflare.com https: 'unsafe-inline'
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
2022-12-06 19:02:47.171156-0800 TargetName[36799:1077382] [DBG] attachment of directory-extractor failed for https://www.opensubtitles.com/download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt
2022-12-06 19:02:47.172276-0800 TargetName[36799:1077382] [DBG] creating demux: access='https' demux='subtitle' location='www.opensubtitles.com/download/3E029AC2971DAC5A77816F246E0E15F9E02207FD277CD3CB8B6438326A0334FE03A51ED5D932489C10487C0C880E16B49F35FCCA59A151B5968BFB3B8A2D2C1129A16A63733977B7980C65E3B1181E63778D12ECB66AAFE85576246316BD21150E94DBAA5616F6800A260C8CCA14360C2A9E2E4EAF7AAD805B02043B273E81265A93EF2FD9982DE05441423DF1927EFAF668525BC10B0E297691B39054C6814DFEDF94669436014241DA1530B75C2ADEC839D2E877921D39B20A987D0FCAD6267F4A07D6D11FF2BD9829324734605A7769324B57A4674544EBDD88408A3F819AD6C2CAA25CDE19D3818DEBC5CB8252D2F569821A345C7508AD37305A0F438BD6C0A34461D94522304DC929E739BDB2E9B12D1D2E5779A452903C4A8121A834E81BC3F1A00F98CDC06E4AB2EF6B24AE1A8F73F91013AADF7A/subfile/Jurassic.World.Fallen.Kingdom.2018.1080p.BluRay.x264-SPARKS.srt' file='(null)'
2022-12-06 19:02:47.172891-0800 TargetName[36799:1077382] [DBG] looking for demux module matching "subtitle": 46 candidates
2022-12-06 19:02:47.173352-0800 TargetName[36799:1077382] [DBG] this doesn't seem to be a vobsub file
2022-12-06 19:02:47.175017-0800 TargetName[36799:1077382] [DBG] autodetecting subtitle format
2022-12-06 19:02:47.175675-0800 TargetName[36799:1077382] [DBG] detected SubRIP format
2022-12-06 19:02:47.175956-0800 TargetName[36799:1077382] [DBG] loading all subtitles...
2022-12-06 19:02:47.528847-0800 TargetName[36799:1077382] [DBG] loaded 1285 subtitles
2022-12-06 19:02:47.529322-0800 TargetName[36799:1077382] [DBG] using demux module "subtitle"
2022-12-06 19:02:47.529995-0800 TargetName[36799:1077382] [DBG] killing decoder fourcc `subt'
2022-12-06 19:02:47.530270-0800 TargetName[36799:1077382] [DBG] removing module "subsdec"
2022-12-06 19:02:47.531364-0800 TargetName[36799:1077382] [WARN] refusing to decode non validated subtitle codec
2022-12-06 19:02:47.531927-0800 TargetName[36799:1077382] [DBG] using spu decoder module "subsdec"
but where that [DBG] cannot set negative rate
comes from then? I couldn't find it in VLC.
Unfortunately, this keeps happening. I will have to revert VLCKit to the previous version.
I.e.
https://twitter.com/Bilal10B/status/1599814137982246912?s=20&t=cqmeDFbUK7Z-iZYFIeLHVQ
I'll give it a try, as soon as possible. Thank you.
yes I use addPlaybackSlave:httpURL type:VLCMediaPlaybackSlaveTypeSubtitle enforce:true
If download is fast it'll freeze for a couple of seconds, but if the request takes more os opensubtitles is slow to respond or goes in timeout, VLC will be frozen for all time.
Ideally it should run the request/download in background without affecting the stream.
The download of external subtitles should be performed in the background. However, for some reason, it freezes the player even during the download.
ie.
[DBG] net: connecting to dl.opensubtitles.org port 80
// ... stuck here for a minute
[WARN] failed to add
Expected:
The player should freeze during the subtitles download.
This was tested on 3.5.0.
Several people started to get a red screen when trying to play on iOS or tvOS .ts
or mkv
, mp4
files (audio would work).
Unfortunately, I don't have other info other than their screenshots, but this suddenly started in v3.5.0. I remember this happening years ago on simulator.
Are you familiar with this kind of issue? Do you know what it could depend on based on past experience?
Thank you.