Maybe somebody else could try this solution to exclude that i've got another problem...
Installing original Hyperion was my first approach - no luck.
Maybe somebody else could try this solution to exclude that i've got another problem...
Installing original Hyperion was my first approach - no luck.
I can't believe that nobody noticed this bug. I own four different devices, and i've faced the problem on each of them. Or just nobody uses Youtube addon?
"Solved" is related to kernel log spam only (which is really solved). But if it's confusing - ok, I'll correct the title.
I wonder why nobody has reported this issue yet
I can't really remember was it the same on earlier builds or not, but all latest Krypton-based builds have this problem: unsystematic Youtube video stuttering (frame skips), although Kodi detects source's FPS correctly and adjusts screen mode accordingly. Also strange that skip/drop counters stay unchanged.
Build:
Tested on several Kypton-based builds, including latest 8.1.4
Devices & DTBs:
K2 Pro (S905 2/16GB) - gxbb_p200_k2_pro.dtb
K1 Plus (S905 1/8GB) - gxbb_p200_k1_plus.dtb
Coowell V5 (S905X 1/8GB) - gxl_p212_1g.dtb
How to reproduce:
The best way to reproduce the bug - using of FPS testing videos posted below. Just look attentively a while (1-2 minute), and you'll defenetly see it. To ensure that is not a problem of testing videos themselves, you could watch it on any other device with automatic framerate switching (i've used Dune player and TV's internal client).
Sample:
I've uploaded testing videos, so everyone can reproduce the problem. But be patient, it may take some time for the glitch first appearance (1-2 minute or so).
Support logs:
K2 Pro logs. Just in case: the most noticeable glitches was at ~ 16, 58, 73 and 133 sec. of the video.
Unfortunately no
In case someone of the developers wants to reproduce amvideocap issue by himself: you don't really need any additional hardware for this. Just install Hyperion from LE repo (or via HyperCon), put any config file with "/dev/null" as output (example), and just use device as usual - problem will appear, sooner or later.
Oh, ok, you're right So, as i reported, those patches (Memphiz's implemetation) didn't solve the problem. May i ask you also try to remove klog messages from amvideocap, as it done in provided example from my first post? Without those corrections systemd-journal process consumes even more CPU's time than hyperiond itself. And i really hope that this is a reason of playback issues, bacause i don't have any other clue...
TIA from all ambient lighting lovers
The patch is included in my 8.0.2e build.
Hi kszaq! Obviously, you missed my report
problem still persist with same symptoms
Also, Memphiz amvideocap doesn't solve the kernel log spam issue.
Please, maybe someone of the developers could try to build kernel with changes, mentioned in my first post? I'm not experianced enough for build a kernel by myself, but i can do heavy testing There is no need to rebuild a whole LE on every testing iteration - i need just kernel image, so maybe somebody could spend some time for this? Thanks in advance!
The latest test build fixes only fractional frame rates, no other changes.
And now it works just perfect, thank you!
Thanks for your efforts, kszaq! But problem still persist with same symptoms
20:58:09.207 T:3543135136 NOTICE: CVideoPlayerAudio::Process - stream stalled
20:58:10.189 T:3901387680 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:59:20.191 T:3543135136 NOTICE: CVideoPlayerAudio::Process - stream stalled
20:59:20.910 T:3901387680 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
21:00:05.496 T:3543135136 NOTICE: CVideoPlayerAudio::Process - stream stalled
Maybe this bug is related to kernel log spam from amvideocap (check the link in my 1st post).
Hi everybody! I'm using LE8 (builds from kszaq, afl1 and johngalt) either on s905 (K1 Plus) and s905x (Coowell V5) devices, and i've faced same playback problem only when hyperion enabled: absolutely randomly video becomes glitchy, slows down and finally hangs for a while (live-tv) or jumps-over a little bit forward (other media). Same time in kodi.log appears "Process - stream stalled" and "WaitForBuffer - timeout waiting for buffer" warnings. One more thing i've noticed - during hyperion's running there is enormous amount of "codec:amvideocap"-related messages floods the kernel's log (see example below). Googling this messages gave me this, so now i believe that my problems are related to kernel.
Please, could someone of our amazing developers help me to overcome this annoying bug? Many thanks in advance!
...
[35612.339682@0] codec:*****************Into VIDTYPE_VIU_422******************
[35612.339687@0] codec:RGB_phy_addr:67e00000
[35612.339692@0] codec:RGB_addr:ffffffc067e00000
[35612.339703@0] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.339709@0] codec:w=3840-height=544 cur_index:f1
[35612.339715@0] codec:cd.addr:67e00000
[35612.342564@0] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.342571@0] codec:amvideocap_capture_one_frame priv->state=300
[35612.342575@0] codec:amvideocap_capture_one_frame_wait ret=0
[35612.342583@0] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.342588@0] codec:priv->out_width=160 priv->out_height=160
[35612.342593@0] codec: priv->outfmt_byteppix=3, size=76800
[35612.379084@0] codec:start amvideocap_read waitdelay=1000
[35612.379128@0] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.379154@0] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.379178@0] codec:*****************Into VIDTYPE_VIU_422******************
[35612.379198@0] codec:RGB_phy_addr:67e00000
[35612.379215@0] codec:RGB_addr:ffffffc067e00000
[35612.379250@0] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.379272@0] codec:w=3840-height=544 cur_index:f1
[35612.379290@0] codec:cd.addr:67e00000
[35612.382335@0] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.382358@0] codec:amvideocap_capture_one_frame priv->state=300
[35612.382376@0] codec:amvideocap_capture_one_frame_wait ret=0
[35612.382402@0] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.382423@0] codec:priv->out_width=160 priv->out_height=160
[35612.382441@0] codec: priv->outfmt_byteppix=3, size=76800
[35612.419072@3] codec:start amvideocap_read waitdelay=1000
[35612.419114@3] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.419140@3] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.419163@3] codec:*****************Into VIDTYPE_VIU_422******************
[35612.419182@3] codec:RGB_phy_addr:67e00000
[35612.419200@3] codec:RGB_addr:ffffffc067e00000
[35612.419233@3] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.419255@3] codec:w=3840-height=544 cur_index:f1
[35612.419276@3] codec:cd.addr:67e00000
[35612.422338@0] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.422364@0] codec:amvideocap_capture_one_frame priv->state=300
[35612.422383@0] codec:amvideocap_capture_one_frame_wait ret=0
[35612.422410@0] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.422431@0] codec:priv->out_width=160 priv->out_height=160
[35612.422449@0] codec: priv->outfmt_byteppix=3, size=76800
[35612.459681@3] codec:start amvideocap_read waitdelay=1000
[35612.459697@3] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.459705@3] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.459711@3] codec:*****************Into VIDTYPE_VIU_422******************
[35612.459717@3] codec:RGB_phy_addr:67e00000
[35612.459721@3] codec:RGB_addr:ffffffc067e00000
[35612.459731@3] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.459737@3] codec:w=3840-height=544 cur_index:f1
[35612.459742@3] codec:cd.addr:67e00000
[35612.462592@3] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.462598@3] codec:amvideocap_capture_one_frame priv->state=300
[35612.462603@3] codec:amvideocap_capture_one_frame_wait ret=0
[35612.462610@3] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.462616@3] codec:priv->out_width=160 priv->out_height=160
[35612.462621@3] codec: priv->outfmt_byteppix=3, size=76800
[35612.499661@3] codec:start amvideocap_read waitdelay=1000
[35612.499679@3] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.499686@3] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.499693@3] codec:*****************Into VIDTYPE_VIU_422******************
[35612.499699@3] codec:RGB_phy_addr:67e00000
[35612.499703@3] codec:RGB_addr:ffffffc067e00000
[35612.499714@3] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.499720@3] codec:w=3840-height=544 cur_index:f1
[35612.499725@3] codec:cd.addr:67e00000
[35612.502589@3] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.502596@3] codec:amvideocap_capture_one_frame priv->state=300
[35612.502601@3] codec:amvideocap_capture_one_frame_wait ret=0
[35612.502608@3] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.502614@3] codec:priv->out_width=160 priv->out_height=160
[35612.502619@3] codec: priv->outfmt_byteppix=3, size=76800
[35612.540390@3] codec:start amvideocap_read waitdelay=1000
[35612.540407@3] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.540416@3] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.540423@3] codec:*****************Into VIDTYPE_VIU_422******************
[35612.540429@3] codec:RGB_phy_addr:67e00000
[35612.540434@3] codec:RGB_addr:ffffffc067e00000
[35612.540445@3] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.540452@3] codec:w=3840-height=544 cur_index:f1
[35612.540457@3] codec:cd.addr:67e00000
[35612.543332@3] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.543344@3] codec:amvideocap_capture_one_frame priv->state=300
[35612.543349@3] codec:amvideocap_capture_one_frame_wait ret=0
[35612.543357@3] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.543363@3] codec:priv->out_width=160 priv->out_height=160
[35612.543368@3] codec: priv->outfmt_byteppix=3, size=76800
[35612.578968@3] codec:start amvideocap_read waitdelay=1000
[35612.578995@3] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.579009@3] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.579021@3] codec:*****************Into VIDTYPE_VIU_422******************
[35612.579032@3] codec:RGB_phy_addr:67e00000
[35612.579040@3] codec:RGB_addr:ffffffc067e00000
[35612.579060@3] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.579072@3] codec:w=3840-height=544 cur_index:f1
[35612.579082@3] codec:cd.addr:67e00000
[35612.582031@3] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.582046@3] codec:amvideocap_capture_one_frame priv->state=300
[35612.582055@3] codec:amvideocap_capture_one_frame_wait ret=0
[35612.582070@3] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.582080@3] codec:priv->out_width=160 priv->out_height=160
[35612.582090@3] codec: priv->outfmt_byteppix=3, size=76800
[35612.618870@3] codec:start amvideocap_read waitdelay=1000
[35612.618898@3] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.618921@3] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.618933@3] codec:*****************Into VIDTYPE_VIU_422******************
[35612.618944@3] codec:RGB_phy_addr:67e00000
[35612.618952@3] codec:RGB_addr:ffffffc067e00000
[35612.618970@3] codec:y_index=[0xf1] u_index=[0x0] cur_index:f1
[35612.618982@3] codec:w=3840-height=544 cur_index:f1
[35612.618992@3] codec:cd.addr:67e00000
[35612.621962@3] codec:amvideocap_capture_one_frame: capture ok priv->want.fmt=16777728
[35612.621980@3] codec:amvideocap_capture_one_frame priv->state=300
[35612.621990@3] codec:amvideocap_capture_one_frame_wait ret=0
[35612.622004@3] codec:amvideocap_read=0,priv->state=300,priv->vaddr=ffffffc067e00000
[35612.622015@3] codec:priv->out_width=160 priv->out_height=160
[35612.622024@3] codec: priv->outfmt_byteppix=3, size=76800
[35612.659671@3] codec:start amvideocap_read waitdelay=1000
[35612.659687@3] codec:amvideocap_capture_one_frame:start vf= (null),index=0
[35612.659694@3] codec:amvideocap_capture_one_frame: get vf type=3800
[35612.659701@3] codec:*****************Into VIDTYPE_VIU_422******************
...
QuoteTesting johngalt's nougat kernel version corresponding to LE 8.0.2d.
LibreELEC-S905.arm-8.0-8.0.2-devel-201706301510-g834a470-I.img.gz
SD version is build for KI Pro, for other models replace nougat Device Trees.
Pls, @zbigzbig20 verify if is running WP2 internal tuner, I did a adjustment in linux config
Hi afl1! Unfortunately, this build still has buggy frame-switching. As you can notice in the log samples below - media frame rate and screen mode chosen by Kodi does not match in your build
Johngalt's build:
...
02:10:07.659 T:4115902464 NOTICE: VideoPlayer: Opening: smb://NAS4FREE/Downloads/VIDEO/FPS_Tests_r3/FPS_test_1080p23.976_L4.1.mkv
02:10:07.660 T:4115902464 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
02:10:07.660 T:3670307744 NOTICE: Creating InputStream
02:10:07.723 T:3670307744 NOTICE: Creating Demuxer
02:10:07.852 T:3670307744 NOTICE: Opening stream: 0 source: 256
02:10:07.852 T:3670307744 NOTICE: Creating video codec with codec id: 28
02:10:07.852 T:3670307744 NOTICE: Creating video thread
02:10:07.852 T:3670307744 NOTICE: Opening stream: 1 source: 256
02:10:07.852 T:3033527200 NOTICE: running thread: video_thread
02:10:07.852 T:3670307744 NOTICE: Finding audio codec for: 86017
02:10:07.853 T:3670307744 NOTICE: Creating audio thread
02:10:07.853 T:3911988128 NOTICE: running thread: CVideoPlayerAudio::Process()
02:10:07.864 T:3911988128 NOTICE: Creating audio stream (codec id: 86017, channels: 2, sample rate: 48000, no pass-through)
02:10:07.872 T:3033527200 NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
02:10:07.950 T:4115902464 NOTICE: Display resolution ADJUST : 1920x1080 @ 23.98 - Full Screen (28)
...
02:10:55.063 T:4115902464 NOTICE: VideoPlayer: Opening: smb://NAS4FREE/Downloads/VIDEO/FPS_Tests_r3FPS_test_1080p29.97_L4.1.mkv
02:10:55.063 T:4115902464 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
02:10:55.064 T:3670307744 NOTICE: Creating InputStream
02:10:55.090 T:3670307744 NOTICE: Creating Demuxer
02:10:55.152 T:3670307744 NOTICE: Opening stream: 0 source: 256
02:10:55.152 T:3670307744 NOTICE: Creating video codec with codec id: 28
02:10:55.157 T:3670307744 NOTICE: Creating video thread
02:10:55.157 T:3670307744 NOTICE: Opening stream: 1 source: 256
02:10:55.157 T:3033527200 NOTICE: running thread: video_thread
02:10:55.157 T:3670307744 NOTICE: Finding audio codec for: 86017
02:10:55.158 T:3670307744 NOTICE: Creating audio thread
02:10:55.158 T:3911988128 NOTICE: running thread: CVideoPlayerAudio::Process()
02:10:55.173 T:3911988128 NOTICE: Creating audio stream (codec id: 86017, channels: 2, sample rate: 48000, no pass-through)
02:10:55.190 T:3033527200 NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
02:10:55.263 T:4115902464 NOTICE: Display resolution ADJUST : 1920x1080 @ 59.94 - Full Screen (21)
...
Afl1's build:
...
02:00:50.791 T:4115886080 NOTICE: VideoPlayer: Opening: smb://NAS4FREE/Downloads/VIDEO/FPS_Tests_r3/FPS_test_1080p23.976_L4.1.mkv
02:00:50.792 T:4115886080 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
02:00:50.792 T:3707761568 NOTICE: Creating InputStream
02:00:50.857 T:3707761568 NOTICE: Creating Demuxer
02:00:50.927 T:3707761568 NOTICE: Opening stream: 0 source: 256
02:00:50.927 T:3707761568 NOTICE: Creating video codec with codec id: 28
02:00:50.927 T:3707761568 NOTICE: Creating video thread
02:00:50.927 T:3707761568 NOTICE: Opening stream: 1 source: 256
02:00:50.927 T:3016713120 NOTICE: running thread: video_thread
02:00:50.927 T:3707761568 NOTICE: Finding audio codec for: 86017
02:00:50.928 T:3707761568 NOTICE: Creating audio thread
02:00:50.928 T:4028621728 NOTICE: running thread: CVideoPlayerAudio::Process()
02:00:50.928 T:4028621728 NOTICE: CVideoPlayerAudio::Process - sleep 0.1 sec
02:00:50.950 T:3016713120 NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
02:00:50.998 T:4115886080 NOTICE: Display resolution ADJUST : 1920x1080 @ 24.00 - Full Screen (23)
...
01:58:33.098 T:4115886080 NOTICE: VideoPlayer: Opening: smb://NAS4FREE/Downloads/VIDEO/FPS_Tests_r3/FPS_test_1080p29.97_L4.1.mkv
01:58:33.098 T:4115886080 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
01:58:33.098 T:3635295136 NOTICE: Creating InputStream
01:58:33.177 T:3635295136 NOTICE: Creating Demuxer
01:58:33.269 T:3635295136 NOTICE: Opening stream: 0 source: 256
01:58:33.269 T:3635295136 NOTICE: Creating video codec with codec id: 28
01:58:33.278 T:3635295136 NOTICE: Creating video thread
01:58:33.279 T:3025101728 NOTICE: running thread: video_thread
01:58:33.279 T:3635295136 NOTICE: Opening stream: 1 source: 256
01:58:33.279 T:3635295136 NOTICE: Finding audio codec for: 86017
01:58:33.279 T:3635295136 NOTICE: Creating audio thread
01:58:33.279 T:3016713120 NOTICE: running thread: CVideoPlayerAudio::Process()
01:58:33.279 T:3016713120 NOTICE: CVideoPlayerAudio::Process - sleep 0.1 sec
01:58:33.313 T:3025101728 NOTICE: CAMLCodec::OpenDecoder - using V4L2 pts format: 64Bit
01:58:33.360 T:4115886080 NOTICE: Display resolution ADJUST : 1920x1080 @ 60.00 - Full Screen (16)
...
Test build with fixed massive frame skipping.
LibreELEC-S905.arm-8.0-8.0.2-devel-201706271833-gc89478b-I.img.gz
This version is using same kernel as johngatl's Testing7.
Sorry for late report. Pity, but nothing has changed in this build. I even made clean install of it on the brand-new device, but glitch still present.
As i own K2 Pro (not K1 Pro), i've been using DTB from here, maybe my problem related to this? Thanks again for your work!
My builds has the same setup as johngalt 8.0.2- testing7. Pls, try this version, there is support for internal tuner.
Yes, i've just compared Testing7 and your latest build based on it, and i've checked it twice - same result: johngalt's build is ok, but your build does't switch frequency properly. I staying on Testing7 for now, but i really like your improvements of channel switching Bytheway, for judder detection i've used this (if you have some time - perhaps you should try it yourself): FPS testing videos
Hello afl1! Thanks again for your efforts! Unfortunately, I must say that something is wrong with fractional framerate switching in your johngalt-based builds. I have the typical juddering every ~42 sec on 23.976, and ~17 sec on 29.97 (59.94) videos, which doesn't appear on the pure johngalt builds.