Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Playing HD video
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 183
Location: Bulgaria

PostPosted: Sat Nov 21, 2015 5:22 pm    Post subject: Playing HD video Reply with quote

Hi,

I have a TV connected with HDMI to my PC and it runs fine more or less. However while playing full hd video it is far from smooth and I would like to do something about this :)

Hardware is
MB ASUS P8Z77-V
CPU Intel Core i7 3770
8GB RAM
using integrated video

I guess external videocard will help, but still. Do you think that I need one? If so - any recommendations? I don't need 3d performance, just good acceleration for HD video.

Thanks
Back to top
View user's profile Send private message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 183
Location: Bulgaria

PostPosted: Sat Nov 21, 2015 5:38 pm    Post subject: Reply with quote

some more info, i'm using vaapi

localhost ~ # vainfo
libva info: VA-API version 0.35.1
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
vainfo: VA-API version: 0.35 (libva 1.3.1)
vainfo: Driver version: Intel i965 driver - 1.3.0
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sat Nov 21, 2015 6:44 pm    Post subject: Reply with quote

stoil,

That system should be able to do HD video with the framebuffer driver - it should not need any help.

Please post your
Code:
emerge --info

Also the output of
Code:
groups
for your normal user. Its possbible to have accelerated graphics set set, then not use them.

What does glxinfo say about hardware acceleration ... its in the first few lines of output.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 183
Location: Bulgaria

PostPosted: Sun Nov 22, 2015 10:03 am    Post subject: Reply with quote

Here's some output:

emerge --info
Portage 2.2.20.1 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.3.0-gentoo x86_64)
=================================================================
System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem: 7624784 total, 771500 free
KiB Swap: 8227836 total, 8227724 free
Timestamp of repository gentoo: Sat, 21 Nov 2015 17:00:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p39::gentoo
dev-java/java-config: 2.2.0::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10-r1::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.17::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.21-r1::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000

science
location: /var/lib/layman/science
masters: gentoo
priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Q3AEULA PUEL dlj-1.1 skype-eula AdobeFlash-10 AdobeFlash-10.1 RTCW-ETEULA Oracle-BCLA-JavaSE AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avi berkdb bluetooth bluray branding bzip2 cairo canon cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative divx dri drm dts dv dvb dvd dvdr dvdread emboss encode exif fam firefox flac fortran gallium gbm gdbm gif glamor gles2 gpg gpm gtk iconv icq ieee1394 ipv6 java jpeg kde kipi lame lcms ldap libnotify mad mjpeg mmx mmxext mng modules mp3 mp4 mpeg mtp multilib ncurses nls nptl nvidia ogg opengl openmp openvg pam pango pcre pdf phonon plasma png policykit ppds qml qt3support qt4 qt5 quicktime rdesktop readline samba sdl seccomp semantic-desktop session spell sse sse2 sse3 ssl ssse3 startup-notification subtitles subversion svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis widgets win32codecs wxwidgets x264 x265 xa xattr xcb xcomposite xinerama xml xscreensaver xulrunner xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en bg en_GB de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965 vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


groups
lp wheel audio cdrom video games cdrw usb users plugdev dwnl android kvm


glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
Back to top
View user's profile Send private message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 183
Location: Bulgaria

PostPosted: Sun Nov 22, 2015 10:11 am    Post subject: Reply with quote

when I say that it is not smooth - it is visible when for example the picture is moved relatively fast right/left. In such case areas of the picture are not refreshed fast enough.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Nov 22, 2015 11:36 am    Post subject: Reply with quote

stoil,

Your emerge -- info is good.
What of the other two questions I asked?

Please post /var/log/Xorg.0.log onto a pastebin, so we can see how X is running.
What video player application are you using?
What USE flags is it built with?

Horizontal video artefacts sound like an interlace problem but you should not be using interlace on HD.
You can ... but you shouldn't, unless your source material is produced using interlace.
Then you need to use a deinterlace filter on playback.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 183
Location: Bulgaria

PostPosted: Sun Nov 22, 2015 11:39 am    Post subject: Reply with quote

many thanks for the support.
here is groups and glxinfo:

sh-4.3$ groups
lp wheel audio cdrom video games cdrw usb users plugdev dwnl android kvm


sh-4.3$ glxinfo
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_swap_control
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile,
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Desktop
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.3.7
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile


X log is comming
Back to top
View user's profile Send private message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 183
Location: Bulgaria

PostPosted: Sun Nov 22, 2015 12:04 pm    Post subject: Reply with quote

While I was collecting info suddenly the problem went away. The difference was that monitor was duplicated to the TV.
When I made it separate it still worked fine. I checked refresh rate and it was at 30Hz. Once I changed it to 50 - the problem was reproduced.

Since the video itself is with lower rate this should be the reason, right?

I guess this has nothing todo with applications, but still - here are the use flags. I can provide X logs if still needed.

sh-4.3$ equery uses mpv
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-video/mpv-0.9.2-r1:
U I
+ + X : Add support for X11
+ + alsa : Add support for media-libs/alsa-lib (Advanced Linux Sound
Architecture)
+ + bluray : Enable playback of Blu-ray filesystems
- - bs2b : Enable Bauer stereophonic-to-binaural headphone filter
- - cdio : Enable CDDA support via dev-libs/libcdio-paranoia
+ + cli : Build mpv CLI player
- - doc-pdf : Build documentation in pdf format
+ + drm : Enable Kernel Mode Setting / Direct Rendering Manager based
video output
+ + dvb : Add support for DVB (Digital Video Broadcasting)
+ + dvd : Add support for DVDs
- - egl : Enable EGL backend for X11 OpenGL video output
(experimental)
+ + enca : Enable support for charset discovery and conversion using
app-i18n/enca
+ + encode : Add support for encoding of audio or video files
+ + iconv : Enable support for the iconv character set conversion
library
- - jack : Add support for the JACK Audio Connection Kit
+ + jpeg : Enable support for saving screenshots to JPEG format
- - ladspa : Enable the ability to support ladspa plugins
+ + lcms : Add lcms support (color management engine)
+ + libass : SRT/SSA/ASS (SubRip / SubStation Alpha) subtitle support
- - libav : Prefer libav over ffmpeg whenever both are supported
- - libguess : Enable support for charset discovery and conversion using
app-i18n/libguess
- - libmpv : Build mpv shared library
+ + lua : Enable Lua scripting, OSC (On Screen Controller) GUI and
net-misc/youtube-dl hook-script
+ + luajit : Use dev-lang/luajit instead of dev-lang/lua
- - openal : Add support for the Open Audio Library
+ + opengl : Add support for OpenGL (3D graphics)
- - oss : Add support for OSS (Open Sound System)
- - pulseaudio : Add support for PulseAudio sound server
- - pvr : Enable Video4Linux2 MPEG PVR
- - raspberry-pi : Enable support for the Raspberry Pi
- - rubberband : Enable high quality pitch correction via
media-libs/rubberband
+ + samba : Add support for SAMBA (Windows File and Printer sharing)
- - sdl : Enable media-libs/libsdl2 based video and audio outputs
- - v4l : Enable support for video4linux (using linux-headers or
userspace libv4l libraries)
+ + vaapi : Enable Video Acceleration API for hardware decoding
- - vdpau : Enable the Video Decode and Presentation API for Unix
acceleration interface
- - vf-dlopen : Install additional video filters for using with -vf dlopen
- - wayland : Enable dev-libs/wayland backend
+ + xinerama : Add support for the xinerama X11 extension, which is
mandatory if you work in multiple monitors setup
+ + xscreensaver : Add support for XScreenSaver extension
+ + xv : Add in optional support for the Xvideo extension (an X API
for video playback)
Back to top
View user's profile Send private message
stoil
Apprentice
Apprentice


Joined: 12 Apr 2006
Posts: 183
Location: Bulgaria

PostPosted: Sun Nov 22, 2015 8:06 pm    Post subject: Reply with quote

hm. it is not refresh rate. It works fine only if monitor and TV are displaying the same thing. I'm not sure what could be the reason.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54028
Location: 56N 3W

PostPosted: Sun Nov 22, 2015 8:53 pm    Post subject: Reply with quote

stoil,

stoil wrote:
I checked refresh rate and it was at 30Hz. Once I changed it to 50 - the problem was reproduced.

Isn't HD material made for 60Hz ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 778
Location: Brooklyn, New York

PostPosted: Mon Dec 28, 2015 8:16 pm    Post subject: Reply with quote

You want 60HZ for HD video and if you have enough ram to hold the video file, copy it to /tmp then play from there to avoid I/O on drive.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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