Just watched a video yesterday that played "choppy" and out of sync with audio. Learned a few weeks ago that this can happen with 10 bit files, so I checked and this file is 8-bit.
In Libreelec I brought up stats and CPU does not seem to choke which usually happened when I had issues. Also checked the file on windows and it plays smooth and in sync there.
On screen stats show CPU low values and only a few skips (when playback is choppy the skip counter does not go up). I did notice the err: value as well at (12.3ms in picture) variating constantly with values from -22 to +18 when playing. Never paid much attenttion to this value so unsure if it is a key to the solution.
Below I added Mediainfo (from MPC-HC in windows) and playback screenshot. Happy to add logs if it helps but perhaps this info is already sufficient to show I am asking my pi2 to play a file it is not equiped to handle?
General
Unique ID : 0 (0x0)
Complete name : U:\test.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 3.83 GiB
Duration : 1 h 29 min
Overall bit rate : 6 167 kb/s
Encoded date : UTC 2010-02-22 21:41:29
Writing application : no_variable_data
Writing library : no_variable_data
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Format settings, GOP : M=4, N=33
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 29 min
Bit rate : 5 853 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Top Field First
Bits/(Pixel*Frame) : 0.113
Stream size : 3.64 GiB (95%)
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 1 h 29 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 122 MiB (3%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Display More