x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby VLCFanNumber1 » 04 Jan 2020 18:06

Hello,

On x265/HEVC videos, the seek is slow with VLC (more or less 2 seconds) but not with MPC-HC which is instantaneous.

Since a video is better than words, watch this :
https://youtu.be/bTtC7VfAp4s

I know that I can enable the "Fast Seek" option on VLC but it moves from keyframe to frame and I want frame accurate seeking.

Thanks for your help,

VLCFanNumber1.

MEDIA INFO :

Code: Select all

General Complete name : J:\_LEBONCOIN\FISE Chateauroux 2019-07-21, BMX Freestyle Park Pro (Finale) - HD 1080p HEVC FR.mp4 Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 (isom/iso2/mp41) File size : 1.09 GiB Duration : 1 h 13 min Overall bit rate : 2 140 kb/s Encoded date : UTC 2019-08-13 00:56:30 Tagged date : UTC 2019-08-13 00:56:30 Writing application : HandBrake 1.2.2 2019022300 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main@L4.1@Main Codec ID : hvc1 Codec ID/Info : High Efficiency Video Coding Duration : 1 h 13 min Bit rate : 2 001 kb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 50.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Bits/(Pixel*Frame) : 0.019 Stream size : 1.02 GiB (94%) Writing library : x265 2.9:[Windows][GCC 8.2.0][64 bit] 8bit+10bit+12bit Encoding settings : cpuid=1049583 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=50 / keyint=500 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=20 / lookahead-slices=6 / scenecut=40 / radl=0 / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=abr / bitrate=2000 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=2 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=1 / transfer=1 / colormatrix=1 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-mv-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei Encoded date : UTC 2019-08-13 00:56:30 Tagged date : UTC 2019-08-13 00:56:30 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709 Codec configuration box : hvcC Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : mp4a-40-2 Duration : 1 h 13 min Bit rate mode : Constant Bit rate : 129 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 67.2 MiB (6%) Title : Stereo Language : French Default : Yes Alternate group : 1 Encoded date : UTC 2019-08-13 00:56:30 Tagged date : UTC 2019-08-13 00:56:30

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby VLCFanNumber1 » 21 Jan 2020 04:54

anyone ?

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby Lotesdelere » 21 Jan 2020 10:06

Please open Tools -> Messages (set Verbosity to 2) before you start the playback, and then paste the full resulting log here or on Pastebin.com if it's too long.

Also upload a short sample of a problematic file to Zippyshare.com (200 MB max) or to WeTransfer.com and then post the link to the file here.
http://www.zippyshare.com
https://wetransfer.com

If needed cut it with DGsplit and read here about how to do it:
http://forum.videolan.org/viewtopic.php?f=14&t=57724&p=193335#p193335
100 MB max should be enough.

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby VLCFanNumber1 » 22 Jan 2020 09:18

Thanks for your reply Lotesdelere. I hope you, or someone else, will be able to help.

VIDEO SAMPLE : https://www107.zippyshare.com/v/39XUzuRP/file.html

FULL LOG : https://pastebin.com/4Z4eTAqY

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby Lotesdelere » 22 Jan 2020 11:33

Well, I can't really reproduce the issue. The longest waiting time I got is less than a second.
Try with and without hardware acceleration.
And BTW, what is your hardware ? Especially the graphics card and its video driver version number.

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby VLCFanNumber1 » 22 Jan 2020 11:51

The delay is even longer without hardware acceleration.

Graphics card : AMD RADEON RX580
Driver version : 19.12.2 (it's the latest stable version that was released on December 4th 2019)

OS : Windows 7 Pro SP1
CPU : i7-3770 @3.4Ghz
RAM : 32 GB

PS : Not sure but VLC seems to have a problem seeking videos that have a long keyframe interval (at least on my PC). But when the keyframe interval is 1, the seeking is instantaneous.

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby Lotesdelere » 22 Jan 2020 15:14

It seems it's not using D3D11 for some reason and to fall back to D3D9.
Can you check which video module is used during the playback ? Tools -> Messages -> Modules Tree

Can you also try with forcing the decoding threads to 1 ?
Tools -> Preferences -> Show settings: ALL
Input/Codecs -> Video Codecs -> FFmeg then Threads on the right panel.
Save, exit and restart VLC.

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby VLCFanNumber1 » 22 Jan 2020 15:33

It seems it's not using D3D11 for some reason and to fall back to D3D9.
Can you check which video module is used during the playback ? Tools -> Messages -> Modules Tree
D3D9 is used.
Can you also try with forcing the decoding threads to 1 ?
Tools -> Preferences -> Show settings: ALL
Input/Codecs -> Video Codecs -> FFmeg then Threads on the right panel.
Save, exit and restart VLC.
It doesn't change anything, unfortunately.
I also tried forcing D3D11 hardware acceleration but the video becomes choppy so I've just left it to "automatic".

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby Lotesdelere » 22 Jan 2020 15:37

I also tried forcing D3D11 hardware acceleration but the video becomes choppy so I've just left it to "automatic".

Combinations that should work:

Tools -> Preferences -> Video
Output = Direct3D9
Tools -> Preferences -> Input/Codecs
Hardware accelerated decoding = DXVA 2.0

or

Tools -> Preferences -> Video
Output = Direct3D11
Tools -> Preferences -> Input/Codecs
Hardware accelerated decoding = D3D11 Video Acceleration

or

Tools -> Preferences -> Video
Output = OpenGL
Tools -> Preferences -> Input/Codecs
Hardware accelerated decoding = Disable or Automatic

VLCFanNumber1
Blank Cone
Blank Cone
Posts: 58
Joined: 19 May 2014 19:30

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby VLCFanNumber1 » 22 Jan 2020 15:49

None worked (the video plays normally but the seeking is slow).

Lotesdelere
Cone Master
Cone Master
Posts: 9975
Joined: 08 Sep 2006 04:39
Location: Europe

Re: x265/HEVC is slow to seek with VLC 3.0.8 but not with MPC-HC

Postby Lotesdelere » 23 Jan 2020 13:52

Can you try a VLC 4.0.0 nightly build ?

https://nightlies.videolan.org


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 52 guests