v18 Audio/video skips/tearing on RPi3 with beta1
#1
I just built/installed 18.0b1 on a RPi3 and noticed that some videos are unwatchable with the same settings I had enabled under 17.6.  Disabling the "allow hardware acceleration-OMXPlayer" while leaving the "allow hardware acceleration-MMAL" enabled seemed to fix it for some, but others are unwatchable with  OMX disabled or enabled.

To keep this simple, please consider a video shot on an iphone 4 to start with.  Here I need to disable OMX or else it gets choppy and hangs after a few sec of playback.  Under 17.6, no issues.

Debug log while playing a video shot on an iphone (disabling OMXPlayer allows playback in this case): link
Media info on that video: 
Code:
General
Complete name                            : dog.mov
Format                                   : MPEG-4
Format profile                           : QuickTime
Codec ID                                 : qt   0000.00 (qt  )
File size                                : 88.9 MiB
Duration                                 : 34 s 783 ms
Overall bit rate                         : 21.5 Mb/s
Recorded date                            : 2012-06-28T16:14:00-0400
Encoded date                             : UTC 2012-06-28 20:14:00
Tagged date                              : UTC 2012-06-28 20:14:13
Writing application                      : 5.1.1
Writing library                          : Apple QuickTime
Model                                    : iPhone 4S
Make                                     : Apple
com.apple.quicktime.make                 : Apple
com.apple.quicktime.creationdate         : 2012-06-28T16:14:00-0400
com.apple.quicktime.software             : 5.1.1
com.apple.quicktime.model                : iPhone 4S

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings                          : 1 Ref Frames
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Format settings, GOP                     : M=1, N=30
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 34 s 783 ms
Source duration                          : 34 s 802 ms
Bit rate                                 : 21.4 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Rotation                                 : 90°
Frame rate mode                          : Variable
Frame rate                               : 29.970 FPS
Minimum frame rate                       : 28.571 FPS
Maximum frame rate                       : 31.579 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.344
Stream size                              : 88.6 MiB (100%)
Source stream size                       : 88.6 MiB (100%)
Title                                    : Core Media Video
Encoded date                             : UTC 2012-06-28 20:14:00
Tagged date                              : UTC 2012-06-28 20:14:13
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 34 s 783 ms
Source duration                          : 34 s 830 ms
Bit rate mode                            : Constant
Bit rate                                 : 64.0 kb/s
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 266 KiB (0%)
Source stream size                       : 267 KiB (0%)
Title                                    : Core Media Audio
Encoded date                             : UTC 2012-06-28 20:14:00
Tagged date                              : UTC 2012-06-28 20:14:13
Need help programming a Streamzap remote?
Reply
#2
Is it just rotated videos that have the issue?
Are you building from upstream kodi tree? Any different when building from https://github.com/popcornmix/xbmc/tree/newclock5 ?
Reply
#3
@popcornmix - I am building from the tagged github release (https://github.com/xbmc/xbmc/archive/18.0b1-Leia.tar.gz). 

Other videos do the same as well, not just that one that had the rotated content (see below for media-info on one such example).

I can try building from your fork... building 20eb4915 right now; if it completes I will post back.

Code:
General
Complete name                            : foo.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 1 022 MiB
Duration                                 : 48 min 13 s
Overall bit rate                         : 2 954 kb/s
Writing application                      : x264.exe
Writing library                          : mkv2rls x264-tv version built on 2011. febr. 17

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings                          : CABAC / 8 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 8 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 48 min 13 s
Bit rate                                 : 2 511 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.114
Stream size                              : 869 MiB (85%)
Writing library                          : x264 core 119 r2106 07efeb4
Encoding settings                        : cabac=1 / ref=8 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=36 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Codec ID                                 : A_AC3
Duration                                 : 48 min 13 s
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 133 MiB (13%)
Language                                 : English
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Need help programming a Streamzap remote?
Reply
#4
I seem unable to build.  I have the libbluray package my distro provides installed, but it does not contain mpls_data.h it seems.  I am looking for a way to use the internal version currently.
Code:
...
[ 84%] Linking CXX static library platform_linux_network.a
[ 84%] Built target platform_linux_network
[ 84%] Building CXX object build/cores/VideoPlayer/demuxers/CMakeFiles/dvddemuxers.dir/DVDFactoryDemuxer.cpp.o
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp:39:10: fatal error: libbluray/mpls_data.h: No such file or directory
 #include <libbluray/mpls_data.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
...
[ 84%] Building CXX object build/cores/VideoPlayer/codecs/overlay/CMakeFiles/dvdoverlaycodecs.dir/DVDOverlayCodecTX3G.cpp.o
[ 84%] Building CXX object build/platform/linux/input/CMakeFiles/input_linux.dir/LibInputPointer.cpp.o
[ 84%] Building CXX object build/cores/VideoPlayer/CMakeFiles/VideoPlayer.dir/VideoPlayerSubtitle.cpp.o
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp:39:10: fatal error: libbluray/mpls_data.h: No such file or directory
 #include <libbluray/mpls_data.h>
          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Need help programming a Streamzap remote?
Reply
#5
(2018-08-19, 23:58)graysky Wrote: I seem unable to build.  I have the libbluray package my distro provides installed, but it does not contain mpls_data.h it seems.  I am looking for a way to use the internal version currently.

There is no internal libbluray version. Either you use our whole depends system or fix you system library.
Reply
#6
@Rechi - Not sure why the distro package doesn't provide that file... it [the distro libbluray package] is built to my eye correctly:
Code:
./configure --prefix='/usr'
make
make DESTDIR="$pkgdir" install

Yet, it is not included in the package:
Code:
usr
├── bin
│   └── bd_info
├── include
│   └── libbluray
│       ├── bluray.h
│       ├── bluray-version.h
│       ├── clpi_data.h
│       ├── filesystem.h
│       ├── keys.h
│       ├── log_control.h
│       ├── meta_data.h
│       ├── overlay.h
│       └── player_settings.h
├── lib
│   ├── libbluray.so -> libbluray.so.2.0.2
│   ├── libbluray.so.2 -> libbluray.so.2.0.2
│   ├── libbluray.so.2.0.2
│   └── pkgconfig
│       └── libbluray.pc
└── share
    └── java
        └── libbluray-j2se-1.0.2.jar
Need help programming a Streamzap remote?
Reply
#7
I ended-up manually copying uo_mask_table.h and mpls_data.h to /usr/include/libbluray but am experiencing other errors when trying to build from popcornmix's git repo:
Code:
...
[ 86%] Built target video_jobs
Scanning dependencies of target platform_linux_network
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp: In member function ‘void CDVDInputStreamBluray::ProcessEvent()’:
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp:471:11: error: ‘bd_get_clip_infos’ was not declared in this scope
     ret = bd_get_clip_infos(m_bd, m_clip, &clip_start, &clip_in, &bytepos, nullptr);
           ^~~~~~~~~~~~~~~~~
[ 86%] Building CXX object build/platform/linux/CMakeFiles/linuxsupport.dir/LinuxResourceCounter.cpp.o
...
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp: In member function ‘bool CDVDInputStreamBluray::ProcessItem(int)’:
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp:1150:22: error: ‘bd_get_title_mpls’ was not declared in this scope
     MPLS_PL * mpls = bd_get_title_mpls(m_bd);
                      ^~~~~~~~~~~~~~~~~
...
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp:1159:92: error: ‘BLURAY_TITLE_INFO’ {aka ‘struct bd_title_info’} has no member named ‘mvc_base_view_r_flag’
           CLog::Log(LOGDEBUG, "CDVDInputStreamBluray - MVC_Base_view_R_flag: %d", m_title->mvc_base_view_r_flag);
                                                                                            ^~~~~~~~~~~~~~~~~~~~
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp:1162:34: error: ‘BLURAY_TITLE_INFO’ {aka ‘struct bd_title_info’} has no member named ‘mvc_base_view_r_flag’
           m_bFlipEyes = m_title->mvc_base_view_r_flag != 0;
                                  ^~~~~~~~~~~~~~~~~~~~
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp: In member function ‘bool CDVDInputStreamBluray::OpenMVCDemux(int)’:
/scratch/PKGBUILDs-master/alarm/kodi-rbp-git/src/xbmc-newclock5/xbmc/cores/VideoPlayer/DVDInputStreams/DVDInputStreamBluray.cpp:1186:17: error: ‘bd_get_title_mpls’ was not declared in this scope
   MPLS_PL *pl = bd_get_title_mpls(m_bd);
                 ^~~~~~~~~~~~~~~~~
Need help programming a Streamzap remote?
Reply
#8
As you aren't trying to compile code provided in the xbmc/xbmc repo on GitHub, I won't help you. You have to ask the author of that code for help. AFIK it uses a patched libbluray version, so you have to apply those patches too.
Reply
#9
Yes, newclock5 includes patches to libbluray (and ffmpeg). You need to rebuild the "depends" libs as well as kodi.
Reply
#10
(2018-08-20, 09:48)Rechi Wrote: As you aren't trying to compile code provided in the xbmc/xbmc repo on GitHub, I won't help you. You have to ask the author of that code for help. AFIK it uses a patched libbluray version, so you have to apply those patches too.

@Rechi - The issue I am experiencing is with the xbmc/xbmc 18.0b1 build.  I am not using patched libblurray with it, just the distro default.  I am most interested in helping to troubleshoot it since it is the main project.  

@popcornmix - Since I cannot easily compile your build, do you have any insights into the issue I am experiencing using the xbmc/xbmc build?
Need help programming a Streamzap remote?
Reply
#11
(2018-08-20, 19:54)graysky Wrote: @Rechi - The issue I am experiencing is with the xbmc/xbmc 18.0b1 build.

The build errors aren't from xbmc/xbmc repo code.
Reply
#12
(2018-08-20, 20:58)Rechi Wrote:
(2018-08-20, 19:54)graysky Wrote: @Rechi - The issue I am experiencing is with the xbmc/xbmc 18.0b1 build.

The build errors aren't from xbmc/xbmc repo code.   

Correct.  I successfully built xbmc/xbmc (no build errors).  @popcornmix was the first to reply asking me if his version also gave the video tearing I reported so I tried to build his subsequently.  My RPi3 is running xbmc/xbmc code for 18.0b1 (f08d868). 

To be totally clear: I am seeking feedback on the video tearing I am experiencing is with it, not on compiling @popcornmix's fork Smile
graysky's log Wrote:15:09:46.688 T:1930546304 NOTICE: Starting Kodi (18.0-BETA1 Git:20180819-nogitfound). Platform: Linux ARM 32-bit
15:09:46.688 T:1930546304 NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
15:09:46.688 T:1930546304 NOTICE: Kodi compiled Aug 19 2018 by GCC 8.2.0 for Linux ARM 32-bit version 4.17.11 (266507)
15:09:46.688 T:1930546304 NOTICE: Running on Arch Linux ARM 0.0, kernel: Linux ARM 32-bit version 4.14.62-1-ARCH
15:09:46.688 T:1930546304 NOTICE: FFmpeg version/source: 4.0.2-Kodi
15:09:46.688 T:1930546304 NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available
15:09:46.688 T:1930546304 NOTICE: ARM Features: Neon enabled
Need help programming a Streamzap remote?
Reply
#13
In order to solve that compilation error you'll need to build libbluray 1.0.2 with popcornmix's patches and install it.

Most probably you're trying to build his fork.
Reply
#14
@KlotX - I agreed.  But my original issue is not with building it's actually the video tearing... I'm afraid this thread has gotta tainted with the compilation.  I will change the title and start a new one fresh to keep it on target.

EDIT: I asked to have this thread deleted.
Need help programming a Streamzap remote?
Reply
#15
(2018-08-21, 21:34)graysky Wrote: @KlotX - I agreed.  But my original issue is not with building it's actually the video tearing... I'm afraid this thread has gotta tainted with the compilation.  I will change the title and start a new one fresh to keep it on target.
Let me know if you need help with compiling it on the pi. I can help you with that.
Reply

Logout Mark Read Team Forum Stats Members Help
Audio/video skips/tearing on RPi3 with beta10