DVBViewer Buffing on Kodi 17.5

  • Appreciate any help or assistance

    Recently I noticed when I lunch live TV (DVBViewer PVR) any HD channels will not load for a while, first it will display a black screen then follow with the live Tv display but will staggered a times, when I change channel to SD the response is quick to display, every other files types such HEVC, SD, HD plays well, just the the Live TV HD has an issue.

    To understand why the HD channel behaves in the manner, I activate the debug to capture any issue or issues, to be honest i have no clue with code reading nor to understand the solution to this problem.

    I am hoping YOU expert would be able to advice what could be done to alleviate the issue

    Full debug log

    Ubuntu Pastebin

    Brief Errors

    *MOD_EDIT*: we have the full log file for that. :)

    What seem to stands out is the timing between the video/audio is out of sync

    video and audioQuote:22:33:21.189 T:545402122464 DEBUG: AddOnLog: DVBViewer Client: StreamReader: Started; url=http://192.168.1.104:7522/upnp/channelstream/3839.ts

    22:33:21.251 T:545402122464 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10

    22:33:21.567 T:545402122464 DEBUG: CVideoPlayer::HandleMessages - player started 1 (aka VideoPlayer_AUDIO)

    22:33:28.839 T:545402122464 DEBUG: CVideoPlayer::HandleMessages - player started 2 (aka VideoPlayer_VIDEO)

    Edited 2 times, last by e123enitan (October 18, 2017 at 6:00 PM).

  • There is no issue in ffmpeg. ffmpeg is used for demuxing and audio playback. For video is used HW decoding (am_h264).

    Code
    22:33:21.558 T:545402122464   DEBUG: FactoryCodec - Video: am-h264 - Opened

    There is probably issue in starting dequeue decoder buffer to output picture.

    Try to upgrade to my test build, there is more descriptive debug log to help see decoder issue:

    LibreELEC-S905.arm-8.2-devel-201710121457-gd562e8e-I.tar

    BTW: From your log it is hard to classify playback as a ,smooth'. There is a lot of frame skips.

  • There is no issue in ffmpeg. ffmpeg is used for demuxing and audio playback. For video is used HW decoding (am_h264).

    Code
    22:33:21.558 T:545402122464   DEBUG: FactoryCodec - Video: am-h264 - Opened

    There is probably issue in starting dequeue decoder buffer to output picture.

    Try to upgrade to my test build, there is more descriptive debug log to help see decoder issue:

    LibreELEC-S905.arm-8.2-devel-201710121457-gd562e8e-I.tar

    BTW: From your log it is hard to classify playback as a ,smooth'. There is a lot of frame skips.

    Thanks I shall give a try, get a debug log for review.

    Cheers!

  • afl1, here is a new log, thanks for trouble shooting the issue.


    Ubuntu Pastebin

    Ubuntu Pastebin

    Are you sure you did upgrade to my version?

    Your log is for 64 bit build. Your log have to start like this:

    Code
    23:52:44.951 T:4097468512  NOTICE: special://profile/ is mapped to: special://masterprofile/
    23:52:44.951 T:4097468512  NOTICE: -----------------------------------------------------------------------
    23:52:44.952 T:4097468512  NOTICE: Starting Kodi (17.5-RC1 Git:2c0a184). Platform: Linux ARM (Thumb) 32-bit
    23:52:44.952 T:4097468512  NOTICE: Using Release Kodi x32 build
    23:52:44.952 T:4097468512  NOTICE: Kodi compiled Oct 18 2017 by GCC 6.2.0 for Linux ARM (Thumb) 32-bit version 3.14.29 (200221)
    23:52:44.952 T:4097468512  NOTICE: Running on LibreELEC (community): 8.2-devel-201710182338-gd562e8e-I, kernel: Linux ARM 64-bit version 3.14.29
    23:52:44.954 T:4097468512  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
    23:52:44.954 T:4097468512  NOTICE: Host CPU: AArch64 Processor rev 4 (aarch64), 4 cores available
    23:52:44.954 T:4097468512  NOTICE: ARM Features: Neon enabled
  • Are you sure you did upgrade to my version?

    Your log is for 64 bit build. Your log have to start like this:

    Code
    23:52:44.951 T:4097468512  NOTICE: special://profile/ is mapped to: special://masterprofile/
    23:52:44.951 T:4097468512  NOTICE: -----------------------------------------------------------------------
    23:52:44.952 T:4097468512  NOTICE: Starting Kodi (17.5-RC1 Git:2c0a184). Platform: Linux ARM (Thumb) 32-bit
    23:52:44.952 T:4097468512  NOTICE: Using Release Kodi x32 build
    23:52:44.952 T:4097468512  NOTICE: Kodi compiled Oct 18 2017 by GCC 6.2.0 for Linux ARM (Thumb) 32-bit version 3.14.29 (200221)
    23:52:44.952 T:4097468512  NOTICE: Running on LibreELEC (community): 8.2-devel-201710182338-gd562e8e-I, kernel: Linux ARM 64-bit version 3.14.29
    23:52:44.954 T:4097468512  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
    23:52:44.954 T:4097468512  NOTICE: Host CPU: AArch64 Processor rev 4 (aarch64), 4 cores available
    23:52:44.954 T:4097468512  NOTICE: ARM Features: Neon enabled

    I did update with your mod, I don't know why it wont change, when I get home tonight I will give it try, and I shall keep you posted.

    Thanks

    Edited once, last by e123enitan (October 19, 2017 at 4:14 PM).

  • I tried several times, placed the tar file in upload folder, same result each tim, it doesnt downgrade to 32bit. Any othesuggestions?

    Thanks

    Code
    00:01:44.449 T:548277518336  NOTICE: special://profile/ is mapped to: special://masterprofile/
    00:01:44.449 T:548277518336  NOTICE: -----------------------------------------------------------------------
    00:01:44.449 T:548277518336  NOTICE: Starting Kodi (17.5-RC1 Git:2c0a184). Platform: Linux ARM 64-bit
    00:01:44.449 T:548277518336  NOTICE: Using Release Kodi x64 build
    00:01:44.449 T:548277518336  NOTICE: Kodi compiled Oct 10 2017 by GCC 6.2.0 for Linux ARM 64-bit version 3.14.29 (200221)
    00:01:44.449 T:548277518336  NOTICE: Running on LibreELEC (community): 17.4_20171010 8.2, kernel: Linux ARM 64-bit version 3.14.29
  • Cheers!, I shall give it go when I get home tonight, Thanks again for your kind support and quick response.

    Create on SD new LE installation. Use this file:

    LibreELEC-S905.arm-8.2-devel-201710121457-gd562e8e-I.img.g

    Start LE from SD.

    Sorry, weekend was busy, I downloaded your mod flashed to SD Card, insert into my box nothing happen, TV screen was blank, I tried toothpick same nothing happen, so what other option can you think of.

    Thanks

  • Sorry, weekend was busy, I downloaded your mod flashed to SD Card, insert into my box nothing happen, TV screen was blank, I tried toothpick same nothing happen, so what other option can you think of.

    Thanks

    Have you replaced dbt.img with one corresponding to your box? In my SD .img is dtb for KI Pro.

  • I have good news, I was able to installed your build into and SD and it load LE nicely,

    I have to confess with your mod, the issue is gone, change of channels is very fast, no more lag, quality picture is clear.

    Still error with FFMPEG, as you said previously, this may not have anything to do with Live Tv streaming lagginess

    Questions:

    1, How do I get the remote to work, I used USB remote key to navigate

    2, How do I write your mod into emmc internal, with my current mod it quite easy, once to click on the power there is option to write into emmc, so how does yours work.

    log report

    Ubuntu Pastebin



    Edited once, last by e123enitan (October 26, 2017 at 1:54 AM).

  • Copy from your running version remote.conf to /storage/.config/

    To find remote.conf submit via ssh command:

    Code
    find / -name "remote.conf"

    For installing to internal flash memory use command:

    Code
    installtointernal
  • I see issue in missing fps info in video stream hints.

    Code
    00:23:28.689 T:3627021216   DEBUG: CAMLCodec::OpenDecoder hints.width(1920), hints.height(1080), hints.codec(28), hints.codec_tag(27)
    00:23:28.689 T:3627021216   DEBUG: CAMLCodec::OpenDecoder hints.fpsrate(0), hints.fpsscale(0), video_rate(0)
    00:23:28.689 T:3627021216   DEBUG: CAMLCodec::OpenDecoder hints.aspect(1.777778), video_ratio.num(1), video_ratio.den(1)
    00:23:28.689 T:3627021216   DEBUG: CAMLCodec::OpenDecoder hints.orientation(0), hints.forced_aspect(0), hints.extrasize(44)

    AMLCodec uses fps for calculating decoder timesize window to deduce output readiness decoded frame. For 0 fps timesize is 0 and decoder looks like stalled. You can verify this by on-screen debug info pressing on keyboard CTRL-SHIFT-O. In debug info there will be 0 fps for video. I'll try to fix this issue in next test build.