square pixels when playing a video with DRM
#1
Hello,
TV Sony XG9505 with android TV 8.0.0
Kodi 18.5
addon : catch-up TV to watch french Live TV and replay

Playing a video without DRM on a TV channel is no problem.
When I play a video with DRM on the same channel, there are regularly square pixels on the image and distortion.
I have no problem playing this video with DRM on an android tv 7.1.1.1 box with the same kodi and catch-up TV versions
Is there a bug with the kodi player and/or inputstream.adaptive on android TV 8.0.0 ?
Both devices are with widevine L1, I don't understand why it doesn't work well on Sony android TV.

A log when i play video with DRM on Sony TV is here :
https://paste.kodi.tv/ivuhifowun.kodi

Thank you
Reply
#2
In this log (post #) i find :
Code:
2019-12-14 16:16:49.344 T:13607   DEBUG: CPtsTracker: detected pattern of length 59: -120000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 40000.00 80000.00 160000.00, frameduration: 40000.000000
2019-12-14 16:16:49.828 T:13607   DEBUG: CPtsTracker: pattern lost on diff 40000.000000, number of losses 1
Code:
2019-12-14 16:17:05.110 T:13607   DEBUG: CPtsTracker: pattern lost on diff 160000.000000, number of losses 2
Code:
2019-12-14 16:17:13.407 T:13607   DEBUG: CPtsTracker: pattern lost on diff 80000.000000, number of losses 3

On android 7.1.1 box or with my smartphone android 8.1.0, i have only this line
Code:
2019-12-14 16:17:03.879 T:13607   DEBUG: CPtsTracker: detected pattern of length 1: 40000.00, frameduration: 40000.000000
Reply
#3
Jep - means your TV or whatever has a too slow chain, it looses the presentation time stamps, means it can be decoder or renderer issue - both suck on Sony TVs :-) - cheap mediatek devices.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#4
Quote:2019-12-14 16:17:00.474 T:13615   DEBUG: AddOnLog: InputStream Adaptive: Download https://das-q1-ssl.tf1.fr/2/USP-0x0/03/3...8000-4.m4s? finished, avg speed: 6490213.83byte/s, current speed: 3235463.00byte/s
2019-12-14 16:17:00.763 T:13590   DEBUG: AddOnLog: InputStream Adaptive: Download https://das-q1-ssl.tf1.fr/2/USP-0x0/03/3...1971-4.m4s? finished, avg speed: 6835873.00byte/s, current speed: 6835873.00byte/s
Try to reduce the max speed if possible, perhaps your device can cope with lower rate bistream
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
Thank for your answer
This is the box who is ok for video :
Code:
2019-12-14 16:00:24.077 T:8890  NOTICE: -----------------------------------------------------------------------
2019-12-14 16:00:24.077 T:8890  NOTICE: Starting Kodi (18.5 Git:20191116-37f51f6e63). Platform: Android ARM 32-bit
2019-12-14 16:00:24.077 T:8890  NOTICE: Using Release Kodi x32 build
2019-12-14 16:00:24.077 T:8890  NOTICE: Kodi compiled 2019-11-16 by Clang 7.0.2 (https://android.googlesource.com/toolchain/clang 003100370607242ddd5815e4a043907ea9004281) (https://android.googlesource.com/toolchain/llvm 1d739ffb0366421d383e04ff80ec2ee591315116) for Android ARM 32-bit API level 21 (API level 21)
2019-12-14 16:00:24.078 T:8890  NOTICE: Running on Freebox Freebox Player Mini v2 with Android 7.1.1 API level 25, kernel: Linux ARM 32-bit version 4.1.20-1.9pre-02981-ge60c4de77e5c
2019-12-14 16:00:24.080 T:8890  NOTICE: FFmpeg version/source: 4.0.4-Kodi
2019-12-14 16:00:24.080 T:8890  NOTICE: Host CPU: ARMv7 Processor rev 3 (v7l), 2 cores available
2019-12-14 16:00:24.081 T:8890  NOTICE: Product: full_fbx6lcv2, Device: fbx6lcv2, Board: unknown - Manufacturer: Freebox, Brand: Freebox, Model: Freebox Player Mini v2, Hardware: fbx6lcv2
2019-12-14 16:00:24.088 T:8890  NOTICE: External storage path = /storage/emulated/0; status = ok
2019-12-14 16:00:24.088 T:8890  NOTICE: ARM Features: Neon enabled
2019-12-14 16:00:24.088 T:8890  NOTICE: special://xbmc/ is mapped to: /data/user/0/org.xbmc.kodi/cache/apk/assets
2019-12-14 16:00:24.088 T:8890  NOTICE: special://xbmcbin/ is mapped to: /data/user/0/org.xbmc.kodi/cache/apk/assets
2019-12-14 16:00:24.088 T:8890  NOTICE: special://xbmcbinaddons/ is mapped to: /data/user/0/org.xbmc.kodi/cache/apk/assets/addons
2019-12-14 16:00:24.088 T:8890  NOTICE: special://masterprofile/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata
2019-12-14 16:00:24.089 T:8890  NOTICE: special://envhome/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files
2019-12-14 16:00:24.089 T:8890  NOTICE: special://home/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi
2019-12-14 16:00:24.089 T:8890  NOTICE: special://temp/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp
2019-12-14 16:00:24.089 T:8890  NOTICE: special://logpath/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp
2019-12-14 16:00:24.089 T:8890  NOTICE: The executable running is: /data/app/org.xbmc.kodi-2/lib/arm/libkodi.so
2019-12-14 16:00:24.110 T:8890  NOTICE: Local hostname: 192.168.0.6
2019-12-14 16:00:24.110 T:8890  NOTICE: Log File is located: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp/kodi.log
2019-12-14 16:00:24.111 T:8890  NOTICE: -----------------------------------------------------------------------
Is it better than TV Sony ?

I tried the add-on youtube (because it use inputstream.adaptive) with Sony video 4K on youtube
The log is here :
https://paste.kodi.tv/jexiyehire.kodi

I read
Code:
 DEBUG: AddOnLog: InputStream Adaptive: Download https://r10---sn-4gxx-25ge7.googlevideo....9_aROJRCDQ== finished, avg speed: 9729591.00byte/s, current speed: 9729591.00byte/s
2019-12-15 13:54:48.151 T:9471   DEBUG: CPtsTracker: detected pattern of length 1: 33366.70, frameduration: 33366.666667
avg speed: 9729591.00byte/s, current speed: 9729591.00byte/s but I have no problem with this video but it's without drm.
Quote:Try to reduce the max speed if possible,
How ? in inpustream configuration ?

Thank you Smile
Reply
#6
@peak3d  Do you have an additional idea?
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#7
(2019-12-15, 16:36)fritsch Wrote: @peak3d  Do you have an additional idea?

Jep, have heared of this issue on some devices. It normaly only occur if Video AND Audio are DRM encrypted, and that using one DRM session for both could lead to the issues.
Idea would be to return false here: https://github.com/peak3d/inputstream.ad...i.cpp#L458 and retry.
Reply
#8
Yes i think it’s the problem
In inputream.adaptive configuration, i select in General > Media : video
And then the picture is ok without pixels but i have not sound ...
Will an update solve this issue ?
Thank you
Reply
#9
Or perhaps i can solve it with editing the file and write false line 458 ?
Is it possible ? Where is the file ?
Thank you
Reply
#10
It's source code.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#11
Ok sorry
so I must waiting to have a kodi or android update
Sony should send this android 9 update at the end of the year or beginning of next year
I hope it will help to solve this problem.

Thank you for your help and job Smile
Reply
#12
Hello,
Should I write an issue on inputstream.adaptive github for this problem ?
Thank you
Reply
#13
Nobody knows if kodi 18.6 will fix this inputstream.adaptive bug? @peak3d ?
Thank you
Reply
#14
I'll add an option for using separate drm sessions. Unfortunately drm initialization is currently single threaded, means that stream startup will be slow down.
Reply
#15
(2020-01-05, 14:44)peak3d Wrote: I'll add an option for using separate drm sessions. Unfortunately drm initialization is currently single threaded, means that stream startup will be slow down.
Hello,
Is this option with kodi 18.6 ?
Update yesterday but i don’t find an option for using separate drm sessions.
Reply

Logout Mark Read Team Forum Stats Members Help
square pixels when playing a video with DRM0