Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Interlacing artifacts in VLC with h264 videos
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
stickstoff
n00b
n00b


Joined: 19 Jun 2004
Posts: 21

PostPosted: Sat Apr 03, 2021 12:42 pm    Post subject: [SOLVED] Interlacing artifacts in VLC with h264 videos Reply with quote

Hi everyone,

For a long time already, I’m seeing artifacts in VLC that look like the video is interlaced even though it’s definitely not (see https://transfer.sh/akU09/h264-artifacts.png for the 480p version of the Big Buck Bunny video).

It only happens in VLC and only for videos with h264 codec. Converting the same video to h265 looks fine in VLC (see https://transfer.sh/W9jBP/h264-artifacts-h265.png).

I’m using KDE Plasma 5.21.3 on a AMD 5700 XT GPU with amdgpu driver and media-libs/mesa-21.0.1. I’m seeing the same on my laptop with Ryzen 4800H, so it might be related to amdgpu, but I’m not sure how to debug or solve this problem.

Code:
# emerge -pv vlc

[ebuild   R    ] media-video/vlc-3.0.12.1-r100:0/5-9::gentoo  USE="X a52 alsa aom dav1d dbus dts dvbpsi dvd encode faad ffmpeg flac gcrypt jpeg libass libnotify libsamplerate mad matroska mp3 mpeg ncurses nfs ogg opus png pulseaudio qt5 samba srt ssl svg theora truetype udev v4l vaapi vdpau vorbis vpx wayland x264 x265 xml zeroconf -archive -aribsub -bidi -bluray -cddb -chromaprint -chromecast -dc1394 -debug (-directx) -fdk -fluidsynth -fontconfig -gme -gnome-keyring -gstreamer -ieee1394 -jack -kate -libcaca -libtar -libtiger -linsys -lirc -live -lua -macosx-notifications -modplug -mtp -musepack -omxil -optimisememory -projectm -rdp -run-as-root -sdl-image -sftp -shout -sid -skins -soxr -speex -taglib -test -tremor -twolame -upnp -vnc -zvbi" CPU_FLAGS_X86="mmx sse" LUA_SINGLE_TARGET="lua5-1 -lua5-2" 0 KiB

Code:
# emerge -pv x264

[ebuild   R    ] media-libs/x264-0.0.20190903-r1:0/157::gentoo  USE="interlaced threads -opencl -pic -static-libs" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="sse" 0 KiB

Code:
# emerge -pv mesa

[ebuild   R   ~] media-libs/mesa-21.0.1::gentoo  USE="X classic dri3 egl gallium gbm gles2 llvm lm-sensors vaapi vdpau vulkan wayland zstd -d3d9 -debug -gles1 -opencl -osmesa (-selinux) -test -unwind -valgrind -vulkan-overlay -xa -xvmc -zink" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="radeonsi (-freedreno) -i915 -i965 -intel -iris (-lima) -nouveau (-panfrost) -r100 -r200 -r300 -r600 -radeon (-v3d) (-vc4) -virgl (-vivante) -vmware" 0 KiB


Any hints or suggestions are welcome.


Last edited by stickstoff on Sat Apr 03, 2021 1:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sat Apr 03, 2021 1:21 pm    Post subject: Reply with quote

Is it maybe a hardware acceleration issue?
What happens if you disable it in vlc?
Code:
Tools → Preferences → Input & Codecs → Codecs → Hardware-accelerated decoding

_________________
:)
Back to top
View user's profile Send private message
stickstoff
n00b
n00b


Joined: 19 Jun 2004
Posts: 21

PostPosted: Sat Apr 03, 2021 1:32 pm    Post subject: Reply with quote

alamahant wrote:
Is it maybe a hardware acceleration issue?
What happens if you disable it in vlc?
Code:
Tools → Preferences → Input & Codecs → Codecs → Hardware-accelerated decoding


Yes, thanks! Disabling the hardware acceleration also solved the problem. It’s a pity though.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3961

PostPosted: Sat Apr 03, 2021 1:45 pm    Post subject: Reply with quote

In the same menu there are some settings pertainig only to h264.
please try playing with them and see if it solves the problem...
_________________
:)


Last edited by alamahant on Sat Apr 03, 2021 1:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
stickstoff
n00b
n00b


Joined: 19 Jun 2004
Posts: 21

PostPosted: Sat Apr 03, 2021 1:45 pm    Post subject: Reply with quote

stickstoff wrote:
alamahant wrote:
Is it maybe a hardware acceleration issue?
What happens if you disable it in vlc?
Code:
Tools → Preferences → Input & Codecs → Codecs → Hardware-accelerated decoding


Yes, thanks! Disabling the hardware acceleration also solved the problem. It’s a pity though.


I’ve tried different settings for hardware acceleration an the only acceleration method that works without artifacts is “VA-API video decoder via DRM”. I’ll stick with this for now and consider this problem solved. Thanks again @alamahant.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum