Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04
I've just purchased my first NUC and it is my first experience with Intel graphics. I'm putting this in as an upgrade for a much older and now under-powered Nvidia box. I decided to go this way based on what I read here. Unfortunately I'm having some disappointing results with the deinterlacing and I'd really appreciate some help trying to track it down.

All progressive content is playing beautifully. Interlaced content via LiveTV (or recorded) from MythTV backend is having trouble. If I set Deinterlace method to "De-Interlace", I get extremely jerky playback depending on the content. When I open the codec info panel or have debugging enabled, I can see that the FPS is dropping down under 29.97 - around 15 or so. If I use Auto Select, it chooses a different method (I think probably BOB based on the visual results), playback is smooth. I do notice in this mode the FPS is highly variable (again based on content) anywhere between 29.97 up to and including 59.94. Some content runs at a steady 59.94 and this is the same content that plays fine with "De-Interlace" method. This can change on the same channel in the same stream when going to/from commercials.

The content that seems to cause the variable FPS and the jerky playback appears to be that which the original recording was film - movies, TV shows recorded on film, etc. Other content that I'm pretty sure was sourced on video seems to be the smooth playback. If I'm right about that, it seems like it's content that has been Telecined that causes the issue.

I'm using VAAPI hardware acceleration with the SW Filters enabled, but I get the same results with HW Accel turned off, using multithreaded software decode.

CPU not even close to being maxed and load fairly evenly spread between cores.

Settings that I'm using that seem relevant:
Vertical Sync: Let driver decide
Render Method: Auto Detect
HQ scalers: 20%
Decoding method: HW
VDPAU: Off
VAAPI: On
MPEG2: On
H264: On
VC1: Off
Use SW Filter: On
Adjust refresh rate: On Start/Stop
Sync playback to display: Resample Audio
Deinterlace Video: Auto
Deinterlace Method: De-Interlace
Scaling Method: Nearest Neighbor (Lancos3 Optimized for 20% HQ).

My specs:
Openelec official release build 4.0.0 (my first go with OE and I'm really liking it thus far)
Intel NUC D54250WYK1 -> HDMI out -> Yamaha AVR -> HDMI In -> Panasonic VT50 Plasma
MythTV backend 0.27
PVR cmyth add-on

Debug log of a reboot and starting playback for a couple minutes of affected video:
https://spideroak.com/storage/OB2WS5DIN5...51cc1edd96

This repeats repeats constantly during playback:
Code:
14:34:26 T:140635415770880   DEBUG: ffmpeg[3BFFF700]: [src] Flat options syntax is deprecated, use key=value pairs
14:34:26 T:140635415770880   DEBUG: ffmpeg[3BFFF700]: [src] w:1920 h:1080 pixfmt:nv12 tb:1001/60000 fr:0/0 sar:1/1 sws_param:
14:34:26 T:140635415770880   DEBUG: ffmpeg[3BFFF700]: [Parsed_yadif_0] mode:1 parity:-1 deint:1
14:34:27 T:140635415770880   DEBUG: ffmpeg[3BFFF700]: [auto-inserted scaler 0] w:0 h:0 flags:'' interl:0
14:34:27 T:140635415770880   DEBUG: ffmpeg[3BFFF700]: [Parsed_yadif_0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'Parsed_yadif_0'
14:34:27 T:140635415770880   DEBUG: ffmpeg[3BFFF700]: [auto-inserted scaler 0] w:1920 h:1080 fmt:nv12 sar:1/1 -> w:1920 h:1080 fmt:yuv420p sar:1/1 flags:0x2
14:34:27 T:140635415770880   ERROR: CDVDVideoCodecFFmpeg::FilterProcess - cur_buf
14:34:27 T:140635415770880   DEBUG: CDVDPlayerVideo - video decoder returned error

Debug log using "Auto Select" method a few minutes later on the same TV show:
https://spideroak.com/storage/OB2WS5DIN5...5852158333

You can see there are none of the messages called out above.


Messages In This Thread
RE: vaapi-sse4: Deinterlacing Testing - by puithove - 2014-05-13, 20:59
EDID / HDMI Handshake workaround - by Ney - 2014-10-29, 13:58
Thank you! - by Sta11ion - 2015-01-02, 01:51
Logout Mark Read Team Forum Stats Members Help
VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.0416