Post Sat Dec 09, 2017 12:19 pm

Media Player video restarts

Hey Folks,

I've just upgraded my installation to 1.9 Pro and seem to be having a problem with the new HTML5 media player. Specifically when I play a HD (1080p) movie in its native resolution the player keeps jumping back to the start.

Now I appreciate this appears to be due to the cpu not being able to 'keep up' performing the transcoding however prior to 1.9 i.e. with the old Flash based player I never had a problem the CPU would encode at least 2x playback speed. Dropping the target quality to 'Medium' removes the problem. The server is a VM running on XenServer 7.2 with the host CPU being 2x Xeon L5630 (quad core + HT), see full details below. I originally assigned 4x VCPU's to the host and in an effort to fix the problem doubled that up to 8x VPUs to no avail. Any pointers much appreciated.

I've just seen this issue playing a 1080p H.264 AVC file (Planar 4:2:0 YUV)

top - 12:31:01 up 8 min, 2 users, load average: 11.01, 7.49, 3.39
Tasks: 157 total, 2 running, 155 sleeping, 0 stopped, 0 zombie
%Cpu0 : 30.2 us, 0.7 sy, 53.0 ni, 13.8 id, 0.0 wa, 0.0 hi, 2.0 si, 0.3 st
%Cpu1 : 32.0 us, 0.3 sy, 51.9 ni, 15.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 23.7 us, 0.3 sy, 59.5 ni, 16.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 29.1 us, 0.7 sy, 56.2 ni, 14.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu4 : 33.0 us, 1.0 sy, 52.0 ni, 13.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.3 st
%Cpu5 : 17.8 us, 1.3 sy, 70.0 ni, 10.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.3 st
%Cpu6 : 27.4 us, 1.7 sy, 62.2 ni, 8.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu7 : 29.5 us, 0.0 sy, 57.7 ni, 12.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 4041008 total, 102608 free, 906904 used, 3031496 buff/cache
KiB Swap: 4317180 total, 4317176 free, 4 used. 2879180 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1375 root 20 0 2352400 474708 31852 R 674.1 11.7 44:53.88 ffmpeg

root@serviio:/home/qladmin# uname -a
Linux serviio 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/Linux

root@serviio:/home/qladmin# cat /etc/debian_version
9.2

root@serviio:/home/qladmin# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 1
Socket(s): 4
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 44
Model name: Intel(R) Xeon(R) CPU L5630 @ 2.13GHz
Stepping: 2
CPU MHz: 2133.482
BogoMIPS: 4266.96
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 12288K
NUMA node0 CPU(s): 0-3
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush acpi mmx fxsr sse sse2 ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm

root@serviio:/home/qladmin# ffmpeg -version
ffmpeg version 3.2.9-1~deb9u1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18) 20170516
configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100