Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server
It seems there is another issue with picture size - doing this (also tested even bigger)

Code:
diff --git a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
index 27f09e8..fa91d67 100644
--- a/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
+++ b/xbmc/cores/dvdplayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
@@ -424,7 +424,8 @@ bool CDVDDemuxFFmpeg::Open(CDVDInputStream* pInput, bool streaminfo, bool filein
   bool isBluray = pInput->IsStreamType(DVDSTREAM_TYPE_BLURAY);
   if (iformat && (strcmp(iformat->name, "mpegts") == 0) && !fileinfo && !isBluray)
   {
-    av_opt_set_int(m_pFormatContext, "analyzeduration", 500000, 0);
+    av_opt_set_int(m_pFormatContext, "analyzeduration", 5000000, 0);
+    av_opt_set_int(m_pFormatContext, "probesize", 6000000, 0);
     m_checkvideo = true;
     skipCreateStreams = true;
   }

Works in the sense that the audio now gets detected as stereo, but no picture size is listed by kodi ffmpeg (unlike with cli), though I see 0x2160 as a size in the log so maybe some dec-hex mixup somewhere.

This is a fresh git kodi, ffmpeg is also now fresh, was 17th and both ffmpeg versions always id the video correctly including size even with really small probe/analyze options (maybe it gets it elsewhere?).

Code:
17:41:52 T:139699799385856    INFO: ffmpeg[7F0E64EAE700]: Input #0, mpegts, from '/mnt/sdb1/UHD/elemental-test-sequences/UHD_ENT_Transformer_Quad_chunk_0.ts':
17:41:52 T:139699799385856    INFO: ffmpeg[7F0E64EAE700]:   Duration: 00:01:21.37, start: 1.083411, bitrate: 51544 kb/s
17:41:52 T:139699799385856    INFO: ffmpeg[7F0E64EAE700]:   Program 1
17:41:52 T:139699799385856    INFO: ffmpeg[7F0E64EAE700]:     Stream #0:0[0x101]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024), yuv420p10le(tv, bt709), 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
17:41:52 T:139699799385856    INFO: ffmpeg[7F0E64EAE700]:     Stream #0:1[0x102](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
17:41:52 T:139699799385856   DEBUG: CDVDDemuxFFmpeg::AddStream(0, ...) -> 0
17:41:52 T:139699799385856   DEBUG: CDVDDemuxFFmpeg::AddStream(1, ...) -> 1
17:41:52 T:139699799385856  NOTICE: Opening stream: 0 source: 256
17:41:52 T:139699799385856  NOTICE: Creating video codec with codec id: 1211250229
17:41:52 T:139699799385856   DEBUG: CDVDFactoryCodec: compiled in hardware support: AMCodec:no MediaCodec:no OpenMax:no libstagefright:no VDPAU:yes VAAPI:no iMXVPU:no MMAL:no
17:41:52 T:139699799385856   DEBUG: FactoryCodec - Video:  - Opening
17:41:52 T:139699799385856  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: HEVC (High Efficiency Video Coding)
17:41:52 T:139699799385856   ERROR: ffmpeg[7F0E64EAE700]: [IMGUTILS] Picture size 0x2160 is invalid
17:41:52 T:139699799385856   DEBUG: ffmpeg[7F0E64EAE700]: [hevc] Ignoring invalid width/height values
17:41:52 T:139699799385856   ERROR: ffmpeg[7F0E64EAE700]: [IMGUTILS] Picture size 0x0 is invalid

cli ffmpeg git -
Code:
ffmpeg -probesize 6M -analyzeduration 5M -i UHD_ENT_Transformer_Quad_chunk_0.ts
ffmpeg version N-74713-g16229fa Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --prefix=/usr --disable-doc --enable-gpl --enable-nonfree --enable-opencl --enable-libvpx --enable-libschroedinger --enable-libx265 --enable-libdcadec --enable-libfdk-aac --enable-libmp3lame --enable-libx264 --enable-x11grab
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 59.100 / 56. 59.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.100 /  5. 40.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
[mpegts @ 0x2e2f6a0] PES packet size mismatch
Input #0, mpegts, from 'UHD_ENT_Transformer_Quad_chunk_0.ts':
  Duration: 00:01:21.37, start: 1.083411, bitrate: 51544 kb/s
  Program 1
    Stream #0:0[0x101]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024), yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 23.98 tbc
    Stream #0:1[0x102](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 127 kb/s
Reply


Messages In This Thread
RE: New Era: VAAPI with EGL interoperation - by AndyFurniss - 2015-08-29, 19:04
Live TV broken again? - by schamane - 2016-02-29, 19:56
Random crashes - by hal2100 - 2016-03-08, 22:03
Strange Behaviour - by MicTie - 2016-12-07, 10:46
Working lirc with mce remote - by fr1day - 2019-08-10, 17:36
Logout Mark Read Team Forum Stats Members Help
Intel VAAPI howto with Leia v18 nightly based on Ubuntu 18.04 server18