Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
Bug No cache/buffer is used for m3u8 "playlists", causes stuttering video
#61
For my specific issue, it is fixed in Leia!
Reply
#62
Hello, i have found a related problem.

There exist an video addon, which plays videos from archive of our local public tv (legal content and free to watch, at last here in slovakia).

Users with Kodi Krypton have no issues, but users with Kodi Leia facing unwatchable skipping in stream.

In log i did found this: 

Code:
ffmpeg[178]: [mpegts] PES packet size mismatch
ffmpeg[4874]: [h264] Invalid NAL unit 8, skipping.

So i began to investigate.

Content is hls m3u8 playlist like this:

Code:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:12
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:12.0,
media_w734084447_b2813352_0.ts?auth=b64...
#EXTINF:12.0,
media_w734084447_b2813352_1.ts?auth=b64...
#EXTINF:12.0,
media_w734084447_b2813352_2.ts?auth=b64...
...
#EXT-X-ENDLIST

I have tried configure external player (playercorefactory.xml) - vlc and ffplay 3.4.2 plays ok, but ffplay 4.0.2, 4.1.1 and latest nightbuild not - similar error in log

Code:
4.0.2:
[mpegts @ 000001f0e2b9a000] PES packet size mismatch=    0B f=0/0
[h264 @ 000001f0ea3d5f80] cabac decode of qscale diff failed at 56 27
[h264 @ 000001f0ea3d5f80] error while decoding MB 56 27, bytestream -4

4.1.1:
[mpegts @ 000001f15ed7a000] PES packet size mismatch=    0B f=0/0
[h264 @ 000001f165cf98c0] Invalid NAL unit 0, skipping.  0B f=0/0
[h264 @ 000001f165cf98c0] error while decoding MB 70 42, bytestream -5

After some tries i have found, that if i play that m3u8 url directly with ffplay with option "-infbuf", it plays ok (all three 4.0.2, 4.1.1 and nightly), but uses pretty big amout of vq.

So i have tried tinker with cache settings in advancedsettings.xml but it didn't helped. Then i have dicovered here, that in this case, this setting will not apply and ffmpeg do caching.

But, there is another option. If i play that url with any 4+ ffplay version with "hls+http://..." it uses hls protocol, which "is discouraged" but it works!

So i am asking, it is possible to implement to Leia some of this options? At last support for "hls+http" for VideoPlayer will be great..

Thanks.

P.S. i have tried to simulate non working example, dumped that stream, but problem appears only with stream from original server..

Sorry for my weak english.
Reply
#63
hi cache-sk , I have ended up in a situation which is exactly similar to yours. A local TV station addon servers content as .ts m3u8 and while vlc can play it and and ffplay with infbuf and "hls+http://..." work, using Kodi Matrix. Did you ever find a resolution?

As I understand using external video players we won't be able to control them using smartphone Kodi Remote apps such as Yatse?
Reply

Logout Mark Read Team Forum Stats Members Help
No cache/buffer is used for m3u8 "playlists", causes stuttering video1