Video frames are garbled on new PTB Linux install

Hello,

(Apologies in advance if this is a double post; I attempted to send this message once already but it doesn't seem to have gone through.)

I've hit the limit of my ability to debug a video playback issue I'm running into on a new PTB installation on Ubuntu Linux 16.04 installed via Neurodebian, and I'm hoping for any guidance possible for my next steps forward.

Running SimpleMovieDemo with the default moving circles video works great. However, calling the same script to run on one of my (.mov Quicktime container, H.264-encoded) stimulus videos produces garbled images, resembling the sort of errors you'd see with a codec mis-sizing the video frames (horizontal streaks of colors resembling those in the true video). The same video files play just fine in other GStreamer-based video players. Additionally, the demo PlayMoviesDemo with the "cool" demo video also shows the same problem.

Things I have tried:
Checked to ensure all Gstreamer plugins are installed
Running in Octave instead of Matlab (problem is identical)
Upgrading the Linux kernel
Loading the same videos transcoded to a different container format

Any advice for further things to try would be greatly appreciated. Below is diagnostic information that may be helpful; please let me know if there's anything more I can supply.

Thanks in advance,
Geoffrey Adams
University of Pennsylvania

------------------------------ ------------------------------ -------------
System information:
$ uname -a
Linux <hostname redacted> 4.8.0-41-generic #44~16.04.1-Ubuntu SMP Fri Mar 3 17:11:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

>> PsychtoolboxVersion
3.0.14 - Flavor: Debian package - psychtoolbox-3 (3.0.14.20170103+git6- g605ff5c.dfsg1-1~nd16.04+1)

------------------------------ ------------------------------ -------------
Psychtoolbox reports no errors when running SimpleMovieDemo:

>> SimpleMovieDemo(movieFile)
PTB-INFO: Display ':0' : X-Screen 0 : Assigning primary output as 3 with RandR-CRTC 0 and GPU-CRTC 0.
PTB-INFO: Display ':0' : X-Screen 1 : Assigning primary output as 1 with RandR-CRTC 0 and GPU-CRTC 1.
PTB-INFO: A total of 2 X-Windows display screens is available for use.


PTB-INFO: This is Psychtoolbox-3 for GNU/Linux X11, under Matlab 64-Bit (Version 3.0.14 - Build date: Dec 22 2016).
PTB-INFO: Support status on this operating system release: Linux 4.8.0-41-generic Supported.
PTB-INFO: Type 'PsychtoolboxVersion' for more detailed version information.
PTB-INFO: Most parts of the Psychtoolbox distribution are licensed to you under terms of the MIT License, with
PTB-INFO: some restrictions. See file 'License.txt' in the Psychtoolbox root folder for the exact licensing conditions.

PTB-INFO: Hybrid graphics setup with DRI PRIME muxless render offload detected. Being more lenient wrt. framerate.


PTB-INFO: OpenGL-Renderer is X.Org :: Gallium 0.4 on AMD OLAND (DRM 2.46.0 / 4.8.0-41-generic, LLVM 3.8.0) :: 3.0 Mesa 12.0.6
PTB-INFO: VBL startline = 1200 , VBL Endline = -1
PTB-INFO: Will try to use OS-Builtin OpenML sync control support for accurate Flip timestamping.
PTB-INFO: Measured monitor refresh interval from VBLsync = 16.691127 ms [59.912072 Hz]. (50 valid samples taken, stddev=0.000481 ms.)
PTB-INFO: Reported monitor refresh interval from operating system = 16.680845 ms [59.949001 Hz].
PTB-INFO: Small deviations between reported values are normal and no reason to worry.


INFO: PTB's Screen('Flip', 10) command seems to have missed the requested stimulus presentation deadline
INFO: a total of 17 times out of a total of 178 flips during this session.

INFO: This number is fairly accurate (and indicative of real timing problems in your own code or your system)
INFO: if you provided requested stimulus onset times with the 'when' argument of Screen('Flip', window [, when]);
INFO: If you called Screen('Flip', window); without the 'when' argument, this count is more of a ''mild'' indicator
INFO: of timing behaviour than a hard reliable measurement. Large numbers may indicate problems and should at least
INFO: deserve your closer attention. Cfe. 'help SyncTrouble', the FAQ section at www.psychtoolbox.org and the
INFO: examples in the PDF presentation in PsychDocumentation/ Psychtoolbox3-Slides.pdf for more info and timing tips.

------------------------------ ------------------------------ -------------
Results of some diagnostic commands, executed from within Matlab in case its shell environment is affecting things (I ran GST_DEBUG=3; export GST_DEBUG prior to running matlab):

>> !gst-play-1.0 /home/diana/matlab/surfer3/ media/M2U01164.mov
Press 'k' to see a list of keyboard shortcuts.
Now playing /home/diana/matlab/surfer3/ media/M2U01164.mov
0:00:00.013540052 [336m 4469[00m 0x13ec900 [33;01mWARN [00m [00m basesrc gstbasesrc.c:3489:gst_base_ src_start_complete:<source>[ 00m pad not activated yet
0:00:00.013831452 [336m 4469[00m 0x13ec900 [33;01mWARN [00m [00m basesrc gstbasesrc.c:3489:gst_base_ src_start_complete:<source>[ 00m pad not activated yet
Prerolling...
0:00:00.023352784 [336m 4469[00m 0x7ffb38136400 [33;01mWARN [00m [00m qtdemux qtdemux_types.c:222:qtdemux_ type_get:[00m unknown QuickTime node type tapt
0:00:00.023386732 [336m 4469[00m 0x7ffb38136400 [33;01mWARN [00m [00m qtdemux qtdemux.c:2651:qtdemux_parse_ trex:<qtdemux0>[00m failed to find fragment defaults for stream 1
0:00:00.023421866 [336m 4469[00m 0x7ffb38136400 [33;01mWARN [00m [00m basesrc gstbasesrc.c:2396:gst_base_ src_update_length:<source>[00m processing at or past EOS
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/ i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
Redistribute latency...
Redistribute latency...
0:00:00.113909839 [336m 4469[00m 0x13ec900 [32;01mFIXME [00m [00;01m bin gstbin.c:4149:gst_bin_query:[ 00m implement duration caching in GstBin again
0:00:00.113926533 [336m 4469[00m 0x13ec900 [32;01mFIXME [00m [00;01m bin gstbin.c:4149:gst_bin_query:[ 00m implement duration caching in GstBin again
0:00:00.113930535 [336m 4469[00m 0x13ec900 [32;01mFIXME [00m [00;01m bin gstbin.c:4149:gst_bin_query:[ 00m implement duration caching in GstBin again
Prerolled.
0:00:00.214045655 [336m 4469[00m 0x13ec900 [32;01mFIXME [00m [00;01m bin gstbin.c:4149:gst_bin_query:[ 00m implement duration caching in GstBin again
0:00:00.214060842 [336m 4469[00m 0x13ec900 [32;01mFIXME [00m [00;01m bin gstbin.c:4149:gst_bin_query:[ 00m implement duration caching in GstBin again
0:00:00.214064668 [336m 4469[00m 0x13ec900 [32;01mFIXME [00m [00;01m bin gstbin.c:4149:gst_bin_query:[ 00m implement duration caching in GstBin again

<similar message repeated several hundred times>

XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"

after 445 requests (445 known processed) with 0 events remaining.

(The final error was caused by me closing the video playback window spawned by gst-play. This playback was completely normal.)

------------------------------ ------------------------------ -------------

>> !gst-discoverer-1.0 <full path to example problem file>
Analyzing file://<full path to example problem file>
0:00:00.012454992 [336m 5249[00m 0x130eec0 [33;01mWARN [00m [00m basesrc gstbasesrc.c:3489:gst_base_ src_start_complete:<source>[ 00m pad not activated yet
0:00:00.012623522 [336m 5249[00m 0x130eec0 [33;01mWARN [00m [00m basesrc gstbasesrc.c:3489:gst_base_ src_start_complete:<source>[ 00m pad not activated yet
0:00:00.016888448 [336m 5249[00m 0x7f8c54055630 [33;01mWARN [00m [00m qtdemux qtdemux_types.c:222:qtdemux_ type_get:[00m unknown QuickTime node type tapt
0:00:00.016946990 [336m 5249[00m 0x7f8c54055630 [33;01mWARN [00m [00m qtdemux qtdemux.c:2651:qtdemux_parse_ trex:<qtdemux0>[00m failed to find fragment defaults for stream 1
0:00:00.017013998 [336m 5249[00m 0x7f8c54055630 [33;01mWARN [00m [00m basesrc gstbasesrc.c:2396:gst_base_ src_update_length:<source>[00m processing at or past EOS
libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/ i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
0:00:00.065979251 [336m 5249[00m 0x130eec0 [32;01mFIXME [00m [00;01m bin gstbin.c:4149:gst_bin_query:[ 00m implement duration caching in GstBin again
Done discovering file://<full path to example problem file>

Topology:
container: Quicktime
video: H.264 (Main Profile)

Properties:
Duration: 0:00:13.933333333
Seekable: yes
Tags:
video codec: H.264 / AVC
language code: en
bitrate: 2938629
datetime: 2010-03-06T00:54:48Z
container format: Quicktime

(This information seems to be correct.)
------------------------------ ------------------------------ -------------

>> !ldd /usr/lib/x86_64-linux-gnu/ gstreamer-1.0/libgstlibav.so
linux-vdso.so.1 => (0x00007fff42deb000)
libavfilter-ffmpeg.so.5 => /usr/lib/x86_64-linux-gnu/ libavfilter-ffmpeg.so.5 (0x00007fe3f8e88000)
libavformat-ffmpeg.so.56 => /usr/lib/x86_64-linux-gnu/ libavformat-ffmpeg.so.56 (0x00007fe3f8a89000)
libavcodec-ffmpeg.so.56 => /usr/lib/x86_64-linux-gnu/ libavcodec-ffmpeg.so.56 (0x00007fe3f765a000)
libavutil-ffmpeg.so.54 => /usr/lib/x86_64-linux-gnu/ libavutil-ffmpeg.so.54 (0x00007fe3f73eb000)
libgstaudio-1.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgstaudio-1.0.so.0 (0x00007fe3f718d000)
libgstvideo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgstvideo-1.0.so.0 (0x00007fe3f6f07000)
libgstpbutils-1.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgstpbutils-1.0.so.0 (0x00007fe3f6cd2000)
libgstbase-1.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgstbase-1.0.so.0 (0x00007fe3f6a6d000)
libgstreamer-1.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgstreamer-1.0.so.0 (0x00007fe3f6743000)
libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgobject-2.0.so.0 (0x00007fe3f64f0000)
libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib- 2.0.so.0 (0x00007fe3f61de000)
libpthread.so.0 => /lib/x86_64-linux-gnu/ libpthread.so.0 (0x00007fe3f5fc1000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so. 6 (0x00007fe3f5bf8000)
libswscale-ffmpeg.so.3 => /usr/lib/x86_64-linux-gnu/ libswscale-ffmpeg.so.3 (0x00007fe3f5968000)
libpostproc-ffmpeg.so.53 => /usr/lib/x86_64-linux-gnu/ libpostproc-ffmpeg.so.53 (0x00007fe3f574c000)
libavresample-ffmpeg.so.2 => /usr/lib/x86_64-linux-gnu/ libavresample-ffmpeg.so.2 (0x00007fe3f552a000)
libswresample-ffmpeg.so.1 => /usr/lib/x86_64-linux-gnu/ libswresample-ffmpeg.so.1 (0x00007fe3f530c000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl. so.2 (0x00007fe3f5108000)
libzmq.so.5 => /usr/lib/x86_64-linux-gnu/ libzmq.so.5 (0x00007fe3f4ea2000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so. 6 (0x00007fe3f4b98000)
libopencv_core.so.2.4 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libopencv_core.so.2.4 (0x00007fe3f4733000)
libopencv_imgproc.so.2.4 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libopencv_imgproc.so. 2.4 (0x00007fe3f429d000)
libfribidi.so.0 => /usr/lib/x86_64-linux-gnu/ libfribidi.so.0 (0x00007fe3f4085000)
libfreetype.so.6 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libfreetype.so.6 (0x00007fe3f3df5000)
libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/ libfontconfig.so.1 (0x00007fe3f3bb2000)
libflite_cmu_us_awb.so.1 => /usr/lib/x86_64-linux-gnu/ libflite_cmu_us_awb.so.1 (0x00007fe3f35bc000)
libflite_cmu_us_kal.so.1 => /usr/lib/x86_64-linux-gnu/ libflite_cmu_us_kal.so.1 (0x00007fe3f3259000)
libflite_cmu_us_kal16.so.1 => /usr/lib/x86_64-linux-gnu/ libflite_cmu_us_kal16.so.1 (0x00007fe3f2c82000)
libflite_cmu_us_rms.so.1 => /usr/lib/x86_64-linux-gnu/ libflite_cmu_us_rms.so.1 (0x00007fe3f25e9000)
libflite_cmu_us_slt.so.1 => /usr/lib/x86_64-linux-gnu/ libflite_cmu_us_slt.so.1 (0x00007fe3f1ff3000)
libflite.so.1 => /usr/lib/x86_64-linux-gnu/ libflite.so.1 (0x00007fe3f1dbd000)
libbs2b.so.0 => /usr/lib/x86_64-linux-gnu/ libbs2b.so.0 (0x00007fe3f1bb6000)
libass.so.5 => /usr/lib/x86_64-linux-gnu/ libass.so.5 (0x00007fe3f1986000)
libssh-gcrypt.so.4 => /usr/lib/x86_64-linux-gnu/ libssh-gcrypt.so.4 (0x00007fe3f173c000)
librtmp.so.1 => /usr/lib/x86_64-linux-gnu/ librtmp.so.1 (0x00007fe3f1520000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so. 1 (0x00007fe3f1306000)
libmodplug.so.1 => /usr/lib/x86_64-linux-gnu/ libmodplug.so.1 (0x00007fe3f0f7a000)
libgme.so.0 => /usr/lib/x86_64-linux-gnu/ libgme.so.0 (0x00007fe3f0d2c000)
libbluray.so.1 => /usr/lib/x86_64-linux-gnu/ libbluray.so.1 (0x00007fe3f0ae3000)
libgnutls.so.30 => /usr/lib/x86_64-linux-gnu/ libgnutls.so.30 (0x00007fe3f07b2000)
libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2. so.1.0 (0x00007fe3f05a2000)
libva.so.1 => /usr/lib/x86_64-linux-gnu/ libva.so.1 (0x00007fe3f0386000)
libzvbi.so.0 => /usr/lib/x86_64-linux-gnu/ libzvbi.so.0 (0x00007fe3f00fa000)
libxvidcore.so.4 => /usr/lib/x86_64-linux-gnu/ libxvidcore.so.4 (0x00007fe3efde6000)
libx265.so.79 => /usr/lib/x86_64-linux-gnu/ libx265.so.79 (0x00007fe3ef1c7000)
libx264.so.148 => /usr/lib/x86_64-linux-gnu/ libx264.so.148 (0x00007fe3eee22000)
libwebp.so.5 => /usr/lib/x86_64-linux-gnu/ libwebp.so.5 (0x00007fe3eebc6000)
libwavpack.so.1 => /usr/lib/x86_64-linux-gnu/ libwavpack.so.1 (0x00007fe3ee99d000)
libvpx.so.3 => /usr/lib/x86_64-linux-gnu/ libvpx.so.3 (0x00007fe3ee578000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/ libvorbisenc.so.2 (0x00007fe3ee2cf000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/ libvorbis.so.0 (0x00007fe3ee0a3000)
libvo-amrwbenc.so.0 => /usr/lib/x86_64-linux-gnu/ libvo-amrwbenc.so.0 (0x00007fe3ede88000)
libvo-aacenc.so.0 => /usr/lib/x86_64-linux-gnu/ libvo-aacenc.so.0 (0x00007fe3edc6b000)
libtwolame.so.0 => /usr/lib/x86_64-linux-gnu/ libtwolame.so.0 (0x00007fe3eda48000)
libtheoraenc.so.1 => /usr/lib/x86_64-linux-gnu/ libtheoraenc.so.1 (0x00007fe3ed808000)
libtheoradec.so.1 => /usr/lib/x86_64-linux-gnu/ libtheoradec.so.1 (0x00007fe3ed5ee000)
libspeex.so.1 => /usr/lib/x86_64-linux-gnu/ libspeex.so.1 (0x00007fe3ed3d5000)
libsnappy.so.1 => /usr/lib/x86_64-linux-gnu/ libsnappy.so.1 (0x00007fe3ed1cc000)
libshine.so.3 => /usr/lib/x86_64-linux-gnu/ libshine.so.3 (0x00007fe3ecfbf000)
libschroedinger-1.0.so.0 => /usr/lib/x86_64-linux-gnu/ libschroedinger-1.0.so.0 (0x00007fe3eccea000)
libopus.so.0 => /usr/lib/x86_64-linux-gnu/ libopus.so.0 (0x00007fe3eca9f000)
libopenjpeg.so.5 => /usr/lib/x86_64-linux-gnu/ libopenjpeg.so.5 (0x00007fe3ec87c000)
libopencore-amrwb.so.0 => /usr/lib/x86_64-linux-gnu/ libopencore-amrwb.so.0 (0x00007fe3ec668000)
libopencore-amrnb.so.0 => /usr/lib/x86_64-linux-gnu/ libopencore-amrnb.so.0 (0x00007fe3ec43c000)
libmp3lame.so.0 => /usr/lib/x86_64-linux-gnu/ libmp3lame.so.0 (0x00007fe3ec1c7000)
libgsm.so.1 => /usr/lib/x86_64-linux-gnu/ libgsm.so.1 (0x00007fe3ebfb9000)
libcrystalhd.so.3 => /usr/lib/x86_64-linux-gnu/ libcrystalhd.so.3 (0x00007fe3ebd9d000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma. so.5 (0x00007fe3ebb7b000)
libgsttag-1.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgsttag-1.0.so.0 (0x00007fe3eb93f000)
liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/ liborc-0.4.so.0 (0x00007fe3eb6bf000)
libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/ libgmodule-2.0.so.0 (0x00007fe3eb4ba000)
librt.so.1 => /lib/x86_64-linux-gnu/librt. so.1 (0x00007fe3eb2b2000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/ libffi.so.6 (0x00007fe3eb0aa000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre. so.3 (0x00007fe3eae39000)
/lib64/ld-linux-x86-64.so.2 (0x00005569ef653000)
libsoxr.so.0 => /usr/lib/x86_64-linux-gnu/ libsoxr.so.0 (0x00007fe3eabd4000)
libsodium.so.18 => /usr/lib/x86_64-linux-gnu/ libsodium.so.18 (0x00007fe3ea975000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/ libstdc++.so.6 (0x00007fe3ea5ed000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_ s.so.1 (0x00007fe3ea3d6000)
libcudart.so.7.5 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libcudart.so.7.5 (0x00007fe3ea177000)
libnppc.so.7.5 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libnppc.so.7.5 (0x00007fe3e9f0e000)
libnppi.so.7.5 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libnppi.so.7.5 (0x00007fe3e603d000)
libnpps.so.7.5 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libnpps.so.7.5 (0x00007fe3e584f000)
libtbb.so.2 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libtbb.so.2 (0x00007fe3e5604000)
libcufft.so.7.5 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libcufft.so.7.5 (0x00007fe3de9c9000)
libexpat.so.1 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libexpat.so.1 (0x00007fe3de7a0000)
libflite_usenglish.so.1 => /usr/lib/x86_64-linux-gnu/ libflite_usenglish.so.1 (0x00007fe3de577000)
libflite_cmulex.so.1 => /usr/lib/x86_64-linux-gnu/ libflite_cmulex.so.1 (0x00007fe3de2e1000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/ libasound.so.2 (0x00007fe3ddfe1000)
libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/ libharfbuzz.so.0 (0x00007fe3ddd82000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/ libgcrypt.so.20 (0x00007fe3ddaa1000)
libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/ libgssapi_krb5.so.2 (0x00007fe3dd857000)
libhogweed.so.4 => /usr/lib/x86_64-linux-gnu/ libhogweed.so.4 (0x00007fe3dd623000)
libnettle.so.6 => /usr/lib/x86_64-linux-gnu/ libnettle.so.6 (0x00007fe3dd3ed000)
libgmp.so.10 => /usr/lib/x86_64-linux-gnu/ libgmp.so.10 (0x00007fe3dd16d000)
libxml2.so.2 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libxml2.so.2 (0x00007fe3dce0a000)
libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/ libp11-kit.so.0 (0x00007fe3dcba6000)
libidn.so.11 => /usr/lib/x86_64-linux-gnu/ libidn.so.11 (0x00007fe3dc973000)
libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/ libtasn1.so.6 (0x00007fe3dc75f000)
libpng12.so.0 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libpng12.so.0 (0x00007fe3dc539000)
libnuma.so.1 => /usr/lib/x86_64-linux-gnu/ libnuma.so.1 (0x00007fe3dc32d000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/ libogg.so.0 (0x00007fe3dc124000)
libgomp.so.1 => /usr/lib/x86_64-linux-gnu/ libgomp.so.1 (0x00007fe3dbef5000)
libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/ libgraphite2.so.3 (0x00007fe3dbccf000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg- error.so.0 (0x00007fe3dbabb000)
libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/ libkrb5.so.3 (0x00007fe3db7e9000)
libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/ libk5crypto.so.3 (0x00007fe3db5b9000)
libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_ err.so.2 (0x00007fe3db3b5000)
libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/ libkrb5support.so.0 (0x00007fe3db1aa000)
libicui18n.so.56 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libicui18n.so.56 (0x00007fe3dad2f000)
libicuuc.so.56 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libicuuc.so.56 (0x00007fe3da998000)
libicudata.so.56 => /usr/local/MATLAB/R2016b/bin/ glnxa64/libicudata.so.56 (0x00007fe3d8fb3000)
libkeyutils.so.1 => /lib/x86_64-linux-gnu/ libkeyutils.so.1 (0x00007fe3d8dae000)
libresolv.so.2 => /lib/x86_64-linux-gnu/ libresolv.so.2 (0x00007fe3d8b93000)
Hi Geoff,

very well done problem report! I think this ...

libva info: VA-API version 0.39.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/ i965_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0

... might hint to the problem. It's trying to use the VAAPI hw-accelerated video decoding on your Intel graphics chip. I think vaapi decoding generally doesn't play well with PTB's GStreamer backend. Probably some problems in PTB's code. However hw-decoding was troublesome anyway last time i tested it, because it often imposes various graphics hardware dependent constraints on movie formats/sizes/framerates, and on accurate seeking. Not a big deal for regular video playback on typical videos encoded for DVD/BlueRay/YouTube etc., but a source of trouble for the kind of odd formats and playback applications often used for neuroscience. Therefore i never bothered much to look into fixing this.

Our new hybrid graphics mode might be interfering as well, or might not be fully supported by GStreamer hw video decoding.

Try this:

1. Try to run it without hybrid graphics mode, so all decoding/rendering/display happens on the Intel integrated gfx, instead of offloading the rendering to the AMD dGPU.

2. Uninstall the "gstreamer1.0-vaapi" package with the hw decoding plugins and retry - with or without hybrid graphics mode.

Most likely (2) will be the right solution, but i'm curious about (1).

-mario