pesintta / vdr-plugin-vaapidevice

VDR VAAPIDevice Plug-in
9 stars 11 forks source link

driver issue ? #99

Closed 9000h closed 6 years ago

9000h commented 6 years ago

VAAPIDEVICE SYSTEM INFORMATION REPORT

inxi
System:    Kernel: 4.15.9-041509-generic x86_64 bits: 64 gcc: 7.2.0
           Console: tty 0 Distro: Ubuntu Bionic Beaver (development branch)
Machine:   Device: laptop System: Acer product: Aspire ES1-533 v: V1.12 serial: <filter>
           Mobo: Acer model: Stego_AP v: V1.12 serial: <filter>
           UEFI: Insyde v: V1.12 date: 10/18/2017
CPU:       Quad core Intel Pentium N4200 (-MCP-) arch: N/A cache: 1024 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 8755
           clock speeds: max: 2500 MHz 1: 1789 MHz 2: 1927 MHz 3: 1813 MHz
           4: 1870 MHz
Graphics:  Card: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.19.6 driver: i915
           Resolution: 1920x1080@60.01hz
           OpenGL: renderer: Mesa DRI Intel HD Graphics 505 (Broxton)
           version: 4.5 Mesa 18.0.0-rc4 Direct Render: Yes
Audio:     Card Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
           driver: snd_hda_intel bus-ID: 00:0e.0
           Sound: Advanced Linux Sound Architecture v: k4.15.9-041509-generic
vainfo
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Broxton - 2.0.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
ffmpeg
ffmpeg version 3.4.git-1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-5ubuntu1)
libavutil      56.  7.100 / 56.  7.100
libavcodec     58.  9.100 / 58.  9.100
libavformat    58.  3.100 / 58.  3.100
libavdevice    58.  0.100 / 58.  0.100
libavfilter     7. 11.101 /  7. 11.101
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  0.101 /  5.  0.101
libswresample   3.  0.101 /  3.  0.101
libpostproc    55.  0.100 / 55.  0.100
gcc
7
svdrpsend
220 <filter> SVDRP VideoDiskRecorder 2.3.8; Sun Mar 11 19:46:12 2018; UTF-8
900- Frames: missed(0) duped(720) dropped(0) total(209) PTS( 8:00:30.592) drift(175) audio(441) video(0)
900- Video: h264/vaapi_vld 1280x720p 16:9 @ 1389x759 - Intel i965 driver for Intel(R) Broxton - 2.0.0
900- Audio: mp2 48000Hz 2 channels
900 Command: vaapidevice -d :0.0 -v va-api -a pulse -c softvol -w alsa-driver-broken
221 <filter> closing connection
INCLUDE THIS REPORT INTO YOUR GITHUB ISSUE

Also include any additional information (screen shots, log messages, etc) that could help with identifying and resolving the issue. this was show up for the first time WARNING: invalid surface provided for second field vdr: gen8_mfd.c:558: gen8_mfd_avc_directmode_state: Assertion `obj_surface->bo && obj_surface->private_data' failed. Magick: abort due to signal 6 (SIGABRT) "Abort"... Aborted (core dumped)

pesintta commented 6 years ago

This could be also that the assumption made in 19e1101eb7c0f1f763e6f43a89db617584c18cc2 about driver handling invalid surfaces is incorrect. Can you revert that commit and see if issue is reproduced?

9000h commented 6 years ago

will try

9000h commented 6 years ago

not sure whats going on but with the reverted commit there is a new visual issue showing up on channel change with channels with lower resolution than the screen the first new frame is showing up unscaled an the zoomed to the screen size.

9000h commented 6 years ago

https://github.com/pesintta/vdr-plugin-vaapidevice/blob/95c37e2edd4af81847d18510d76dedcce8e915e5/video.c#L1658

if I comment out both lines it make no visible difference here

9000h commented 6 years ago

another part from the syslog shows large negative values for duping frame

Mar 11 22:17:13 acer533 vdr: [3685] switching to channel 69 S19.2E-1-1082-20007 (PULS 4 Austria)
Mar 11 22:17:13 acer533 vdr: [3912] device 1 receiver thread ended (pid=3685, tid=3912)
Mar 11 22:17:13 acer533 vdr: [3920] device 1 receiver thread started (pid=3685, tid=3920, prio=high)
Mar 11 22:17:14 acer533 vdr: [3728] VAAPI-ERROR: video: initial slow down video, frame 34
Mar 11 22:17:14 acer533 vdr: [3728] VAAPI-ERROR: video: decoder buffer empty, duping frame (-2097164944/0) 0 v-buf
Mar 11 22:17:14 acer533 vdr: [3728] VAAPI: video: --:--:--.---   +0    0   0/\ms   0+1 v-buf
9000h commented 6 years ago

still getting sometimes on the console

WARNING: invalid surface provided for second field the channel where this is happen

France 24 HD (in English);GLOBECAST:11565:HC34M5O20P35S1:S13.0E:29900:818=27:828=eng@3;838=eng@106:0:0:808:318:15300:0