Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Probelms getting smooth video playback w MPlayer
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
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Sun Jul 27, 2014 11:02 am    Post subject: Probelms getting smooth video playback w MPlayer Reply with quote

I have problems getting smooth video playback with Mplayer. Playback is usually in slow motion.

My HW is:
# lspci | grep -i VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)

I have followied this Gentoo wiki for the HW config:
http://wiki.gentoo.org/wiki/Intel

And this wiki for VAAPI (HW acceleration)
http://wiki.gentoo.org/wiki/VAAPI
But VAAPI doies not help.

I have not done any specifi tweeking to my xorg.conf

here is my emerge info:

Code:
# emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.12.13-gentoo x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-4550U_CPU_@_1.50GHz-with-gentoo-2.2
KiB Mem:     7853788 total,   4938980 free
KiB Swap:   10485756 total,  10485756 free
Timestamp of tree: Fri, 25 Jul 2014 13:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.3.3
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="rsync://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://ftp.df.lth.se/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"
USE="X \ a52 aac acl acpi alsa amd64 apm berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvb dvd dvdr emboss encode exif fam fbcon ffmpeg firefox flac foomaticcdb fortran ftp gdbm gif gimp git gnuplot gpm gtk handbook iconv ipod ipv6 java joystick jpeg jpeg2k kde kipi kontact latex lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mplayer multilib ncurses networkmanager nls nntp nptl ogg opengl openmp oss pam pango pcre pda pdf phonon plasma png policykit ppds qt3support qt4 quicktime readline rss sasl scanner sdl semantic-desktop sematic-desktop session sockets sound spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vcd vorbis wifi wxwidgets x264 xcb xcomposite xface xine xinerama xml xscreensaver xv xvid 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="sv en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
/Phil
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 5365

PostPosted: Tue Jul 29, 2014 3:07 pm    Post subject: Reply with quote

The first thing I'd check is to see if this is ONLY mplayer. Does VLC play smoothly? Have you tried mplayer2? Etc.
_________________
Gentoo Studio: http://gentoostudio.org
Facebook: http://www.facebook.com/gentoostudio
G+: https://plus.google.com/113947758237122861689/posts
Linux 'Tude Tees: http://moodytudetees.com/index.php/linux-tude-tees
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Sat Aug 09, 2014 12:32 pm    Post subject: Reply with quote

The same problem occurs for vlc. When I run vlc I get the message:

Code:
Audio output failed:
The audio device "default" could not be used:
No such file or directory.


I have also discovered that the problem with mplayer is mostly related to MP4 files (captured by a GOPRO camera). When I play .mov files from another camera (a Canon D5) sound and video is almost OK (sound leads video by a second or so). In vlc I still get the erorr message, as of above, with .mov files.

Am I possibly missing any support in ffmpeg?

# equery uses ffmpeg
Code:
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-video/ffmpeg-1.2.6-r1:
 U I
 - - 3dnow                 : Use the 3DNow! instruction set
 - - 3dnowext              : Enable manually-optimised routines using the AMD 3DNow!Ex SIMD instruction set,
                             present in modern AMD CPUs. (Check for 3dnowext in /proc/cpuinfo to know whether
                             your CPU supports it).
 + + X                     : Add support for X11
 + + aac                   : Enable support for MPEG-4 AAC Audio
 - - aacplus               : AAC+ encoding via media-libs/libaacplus.
 + + alsa                  : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - amr                   : Enables Adaptive Multi-Rate Audio support
 - - avx                   : Adds support for Advanced Vector Extensions instructions (Intel Sandy Bridge, AMD
                             Bulldozer and later chips)
 + + bindist               : Enforces license compatibility constraints via REQUIRED_USE.
 - - bluray                : Enable playback of Blu-ray filesystems
 + + bzip2                 : Use the bzlib compression library
 - - cdio                  : Enables audio CD grabbing with dev-libs/libcdio.
 - - cpudetection          : Enables runtime CPU detection (useful for bindist, compatibility on other CPUs)
 - - debug                 : Enable extra debug codepaths, like asserts and extra output. If you want to get
                             meaningful backtraces see http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - doc                   : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package
                             instead of globally
 + + encode                : Add support for encoding of audio or video files
 - - examples              : Install examples, usually source code
 - - faac                  : Use external faac library for AAC encoding
 - - fdk                   : Use external fdk-aac library for AAC encoding
 + + fftools_aviocat       : cat's a URL to another one, useful for dumping streams.
 + + fftools_cws2fws       : converts cws files (Macromedia Flash, compressed) to fws ones (Macromedia Flash,
                             uncompressed).
 + + fftools_ffescape      : Escapes an input string, adopting the av_get_token() escaping logic.
 + + fftools_ffeval        : A simple expression evalutor.
 + + fftools_fourcc2pixfmt : Shows the relationships between rawvideo pixel formats and FourCC tags.
 + + fftools_graph2dot     : A tool to convert a libavfilter graph to a dot file.
 + + fftools_ismindex      : A tool for creating smooth streaming manifests.
 + + fftools_pktdumper     : Dumps packets as demuxed by libavformat.
 + + fftools_qt-faststart  : Rearranges a Quicktime file to facilitate network streaming.
 + + fftools_trasher       : Writes burts of random data into a file. Great for testing error
                             robustness/resilience/concealment.
 - - flite                 : Adds a text-to-speech filter based on app-accessibility/flite.
 - - fontconfig            : Support for configuring and customizing font access via media-libs/fontconfig
 - - frei0r                : Enable frei0r wrapping in libavfilter
 - - gnutls                : Add support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
 - - gsm                   : Add support for the gsm lossy speech compression codec
 + + hardcoded-tables      : Use pre-calculated tables rather than calculating them on the fly.
 + + iconv                 : Enable support for the iconv character set conversion library
 - - iec61883              : Support for FireWire DV/HDV input device using media-libs/libiec61883.
 - - ieee1394              : Enable FireWire/iLink IEEE1394 support (dv, camera, ...)
 - - jack                  : Add support for the JACK Audio Connection Kit
 + + jpeg2k                : Support for JPEG 2000, a wavelet-based image compression format
 - - libass                : SRT/SSA/ASS (SubRip / SubStation Alpha) subtitle support
 - - libcaca               : Add support for colored ASCII-art graphics
 - - libsoxr               : Enables audio resampling through media-libs/soxr.
 - - libv4l                : Uses media-libs/libv4l for video4linux instead of direct calls. Adds support for
                             more devices via the userspace library.
 + + mmx                   : Use the MMX instruction set
 - - mmxext                : Enables mmx2 support
 - - modplug               : Add libmodplug support for playing SoundTracker-style music files
 + + mp3                   : Add support for reading mp3 files
 + + network               : Enables network streaming support
 - - openal                : Add support for the Open Audio Library
 - - openssl               : Enables dev-libs/openssl support. Adds support for encrypted network protocols
                             (TLS/HTTPS).
 - - opus                  : Adds (decoding) support for the Opus codec via media-libs/opus.
 + + oss                   : Add support for OSS (Open Sound System)
 - - pic                   : Force shared libraries to be built as PIC (this is slower)
 - - pulseaudio            : Add support for PulseAudio sound server
 - - rtmp                  : Enable Real Time Messaging Protocol using librtmp
 - - schroedinger          : Enable Dirac video support (an advanced royalty-free video compression format) via
                             libschroedinger (high-speed implementation in C of the Dirac codec).
 + + sdl                   : Add support for Simple Direct Layer (media library)
 - - speex                 : Add support for the speex audio codec (used for speech)
 - - ssse3                 : Faster floating point optimization for SSSE3 capable chips (Intel Core 2 and later
                             chips)
 - - static-libs           : Build static versions of dynamic libraries as well
 - - test                  : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2
                             handles this internally, so don't set it in make.conf/package.use anymore
 - - theora                : Add support for the Theora Video Compression Codec
 - - threads               : Add threads support for various packages. Usually pthreads
 + + truetype              : Add support for FreeType and/or FreeType2 fonts
 - - twolame               : Enables MP2 encoding via media-sound/twolame as an alternative to the internal
                             encoder.
 - - v4l                   : Enable support for video4linux (using linux-headers or userspace libv4l libraries)
 + + vaapi                 : Enables VAAPI (Video Acceleration API) for hardware decoding
 - - vdpau                 : Enable the Video Decode and Presentation API for Unix acceleration interface
 + + vorbis                : Add support for the OggVorbis audio codec
 - - vpx                   : Enables vp8 codec support using libvpx: Decoding vp8 does not require this to be
                             enabled but libvpx can also be used for decoding; encoding vp8 requires this useflag
                             to be enabled though.
 + + x264                  : Enable h264 encoding using x264
 + + xvid                  : Add support for xvid.org's open-source mpeg-4 codec
 + + zlib                  : Add support for zlib (de)compression

_________________
/Phil
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Sat Aug 09, 2014 2:19 pm    Post subject: Reply with quote

I may have another faulty configuration in my system:

I have both oss and alsa as use flag s in my /etc/portage/make.conf

Code:
USE="bindist mmx sse sse2 -gtk -gnome kde dvd alsa cdr acpi apm crypt cxx dbus dri dvb dvdr fbcon ffmpeg flac foomaticcdb ftp \
gif gimp git gnuplot gtk handbook ipod ipv6 java joystick jpeg jpeg2k kontact latex mp3 mp4 mpeg mplayer multilib networkmanager nntp ogg \
opengl oss pda pdf plasma png quicktime rss sasl scanner sematic-desktop sockets sound spell ssl tiff truetype udev unicode usb \
vaapi vcd wifi X xine xface"


But I have not installed oss. Could this be a cause of my problems?
_________________
/Phil
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Fri Aug 15, 2014 11:27 am    Post subject: Reply with quote

I removed all configs of OSS. Still same problem.

Video (primarily MP4 files) only play in slow motion in all players I have tried; Mplayer, Kplayer, vlc.
_________________
/Phil
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1523
Location: Switzerland (Romandie)

PostPosted: Fri Aug 15, 2014 2:53 pm    Post subject: Reply with quote

What is mplayer output when you play such a mp4 file?
_________________
[[[ To any NSA and FBI agents reading that text: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Tue Aug 19, 2014 8:35 am    Post subject: Reply with quote

The output is:

Code:
$ mplayer GOPR0241.MP4
MPlayer SVN-r36370 (Gentoo)-4.7.3 (C) 2000-2013 MPlayer Team
MMX2 supported but disabled
......
Playing GOPR0241.MP4.
libavformat version 54.63.104 (external)
libavformat file format detected.
[h264 @ 0x7f1b9f58b9a0]Warning: not compiled with thread support, using thread
emulation
[aac @ 0x7f1b9f58b9a0]Warning: not compiled with thread support, using thread
emulation
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO:  [H264]  1920x1080  24bpp  59.940 fps  30002.2 kbps (3662.4 kbyte/s)
Clip-info:
 major_brand: avc1
 minor_version: 0
 compatible_brands: avc1isom
 creation_time: 2012-02-03 00:02:56
Load subtitles in ./
==========================================================================
Opening videodecoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.92.100 (external)
[h264 @ 0x7f1b9f58b9a0]Warning: not compiled with thread support, using thread
emulation
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audiodecoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[aac @ 0x7f1b9f58b9a0]Warning: not compiled with thread support, using thread
emulation
AUDIO: 48000 Hz, 2 ch, floatle, 128.0 kbit/4.17% (ratio: 16002->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO_ALSA] Format floatle is not supported by hardware, trying default.
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect är 1.78:1 - prescaling till korrekt film-aspect.
VO: [xv] 1920x1080 => 1920x1080 Planar YV12
A:   1.7 V:   0.9 A-V:  0.846 ct:  0.017   0/  0 187%  3%  2.6% 50 0


           ***********************************************************
           **** Your system is to slow to play this! ****
           ***********************************************************

Probable causes, problems and suggestions how to fix this:
- Most likely: broken/buggy audio drive routine
  - Try -ao sdl or use the OSS-emulator in ALSA.
  - Experiment with different values of -autosync, 30 is a good start..
- Slow video-ut
  - Try another -vo drivrutin (-vo help för en lista) or try -framedrop!
- Slow CPU
  - Do not attempt to play too large DVD/DivX on a slow CPU! Try -hardframedrop.
- Corrupt file
  - Try with diferent combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc.)
  - Try  -cache 8192.
- Do you use  -cache for playing a non-interleaved AVI file?
  - Try -nocache.
............

A:  19.0 V:  10.3 A-V:  8.643 ct:  0.017   0/  0 178%  2%  2.0% 614 0

Too many video packets in the buffer : (536 i 33606416 byte).
Maybe you are trying to play a non-interleaved stream/file or the decoder may have failed?

For AVI-files, try to force non-interleave with the -ni argument.

A:  39.3 V:  30.7 A-V:  8.636 ct:  0.017   0/  0 175%  2%  1.4% 1297 0

Too many video packets in the buffer :  (537 i 33569004 byte).
Maybe you are trying to play a non-interleaved stream/file or the decoder may have failed?

For AVI-files, try to force non-interleave with the -ni argument.

A:  92.1 V:  83.5 A-V:  8.627 ct:  0.018   0/  0 173%  2%  1.2% 1338 0

Too many video packets in the buffer : (536 i 33580624 byte).
Maybe you are trying to play a non-interleaved stream/file or the decoder may have failed?

For AVI-files, try to force non-interleave with the -ni argument.


My system should not be to slow:

$ uname -a
Code:
Linux phils_x1 3.12.13-gentoo #10 SMP Sun Jun 22 14:25:35 CEST 2014 x86_64
Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz GenuineIntel GNU/Linux


Good graphics card:
Code:
# lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated
Graphics Controller (rev 09)


Kernel parameters are OK:
Code:
Processor type and features  --->
    [*] MTRR (Memory Type Range Register) support
Device Drivers  --->
    Graphics support  --->
        <*> /dev/agpgart (AGP Support)  --->
             <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support
        <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
            <*> Intel 8xx/9xx/G3x/G4x/HD Graphics
            [*]   Enable modesetting on intel by default



Video card setting is OK

# grep VIDEO_CARDS /etc/portage/make.conf
Code:
VIDEO_CARDS="intel i965"


Vaapi is enabled:

# grep vaapi /etc/portage/make.conf
Code:
vaapi vcd wifi X xine xface


Mplayer sees the follwing video-out-driveroutines:

$ mplayer -vo help
MPlayer SVN-r36370 (Gentoo)-4.7.3 (C) 2000-2013 MPlayer Team
Code:
MMX2 supported but disabled
Tillgängliga video-ut-drivrutiner:
        xv      X11/Xv
        gl_nosw OpenGL no software rendering
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        gl      OpenGL
        gl_tiled        X11 (OpenGL) - multiple textures version
        fbdev   Framebuffer Device
        fbdev2  Framebuffer Device
        matrixview      MatrixView (OpenGL)
        v4l2    V4L2 MPEG Video Decoder Output
        null    Null video output
        mpegpes MPEG-PES to DVB card
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        mng     MNG file


One obvious problem is that the video buffer gets flooded. But is thsi the root casue? And how to mitigate?
_________________
/Phil


Last edited by philip on Wed Aug 20, 2014 5:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
ivanoff
n00b
n00b


Joined: 05 Dec 2004
Posts: 41
Location: Toulouse France

PostPosted: Wed Aug 20, 2014 9:42 am    Post subject: Reply with quote

Hello,
I think I had the same problem related to sound. For me it was the sound card (playing a video with no sound was ok, but very choppy with the haswell sound card). Video playing eventually crashed
What solved it for me was activating all support in the following kernel parameters :
Device Drivers > Sound card support > Advanced Linux Sound Architecture > PCI sound devices > Intel HD Audio
Hope This helps.
_________________
Linux, because you know what it is doing.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Wed Aug 20, 2014 5:40 pm    Post subject: Reply with quote

This is what I have before any changes:

Code:
--- Intel HD Audio                                                               
 (64)  Pre-allocated buffer size for HD-audio driver                                 
 [*]   Build hwdep interface for HD-audio driver                                   
 [ ]    Allow dynamic codec reconfiguration                                       
 [ ]   Support digital beep via input layer                                         
 [ ]   Support jack plugging notification via input layer                         
 [ ]   Support initialization patch loading for HD-audio                           
 <*>   Build Realtek HD-audio codec support                                         
 <*>   Build Analog Device HD-audio codec support                                 
 <*>   Build IDT/Sigmatel HD-audio codec support                                   
 <*>   Build VIA HD-audio codec support                                             
 <*>   Build HDMI/DisplayPort HD-audio codec support                               
 <*>   Build Cirrus Logic codec support                                           
 <*>   Build Conexant HD-audio codec support                                       
 <*>   Build Creative CA0110-IBG codec support                                     
 <*>   Build Creative CA0132 codec support                                         
  [ ]     Support new DSP code for CA0132 codec                                     
 <*>   Build C-Media HD-audio codec support                                         
 <*>   Build Silicon Labs 3054 HD-modem codec support                               
  -*-   Enable generic HD-audio codec parser                                         
  (0)   Default time-out for HD-audio power-save mode


Do you mean that you also activated these parameters:
Code:
....
 [ ]    Allow dynamic codec reconfiguration                                       
 [ ]   Support digital beep via input layer                                         
 [ ]   Support jack plugging notification via input layer                         
 [ ]   Support initialization patch loading for HD-audio
 ......
  [ ]     Support new DSP code for CA0132 codec
 ......


?
_________________
/Phil
Back to top
View user's profile Send private message
ivanoff
n00b
n00b


Joined: 05 Dec 2004
Posts: 41
Location: Toulouse France

PostPosted: Wed Aug 20, 2014 10:43 pm    Post subject: Reply with quote

Yes, this is what I did anyway. I think that solved the issue for me. I do not see another action I did that may have been related to sound.
Is it the same for you ? Very choppy sound and bad video synchronization ?
_________________
Linux, because you know what it is doing.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Thu Aug 21, 2014 8:03 pm    Post subject: Reply with quote

Thanks ivanoff,

Yes, exactly: Very choppy sound and bad video synchronization.

I have hopes that this is the root cause, since the output from Mplayer is

Code:
.....
Probable causes, problems and suggestions how to fix this:
- Most likely: broken/buggy audio drive routine
.....

(see my post above)

I'll give it a try and return soon with feedback
_________________
/Phil
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Sun Aug 24, 2014 3:09 pm    Post subject: Reply with quote

I tried to enable the kernel settings as of above. Unfortunately it did not help......
_________________
/Phil
Back to top
View user's profile Send private message
ivanoff
n00b
n00b


Joined: 05 Dec 2004
Posts: 41
Location: Toulouse France

PostPosted: Sun Aug 24, 2014 5:19 pm    Post subject: Reply with quote

Disapointing.
I also remember having configured the default alsa card to use (périphérique is "device")
Code:
aplay --list-devices
**** Liste des Périphériques Matériels PLAYBACK ****
carte 0: HDMI [HDA Intel HDMI], périphérique 3: HDMI 0 [HDMI 0]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: PCH [HDA Intel PCH], périphérique 0: ALC1150 Analog [ALC1150 Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0
carte 1: PCH [HDA Intel PCH], périphérique 1: ALC1150 Digital [ALC1150 Digital]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0

Code:
more ~my_user/.asoundrc
defaults.pcm.!card 1
defaults.pcm.!device 0

_________________
Linux, because you know what it is doing.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 477
Location: Sweden

PostPosted: Sun Aug 24, 2014 5:46 pm    Post subject: Reply with quote

We seem to have a differnce here:

Code:
#  aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC292 Analog [ALC292 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0e


I do not have the "ALC1150 Digital" as you have.

This is what my .asoundrc looks like:

Code:
# cat .asoundrc
pcm.!default {
        type hw
        card 1
}

ctl.!default {
        type hw
        card 0
}

_________________
/Phil
Back to top
View user's profile Send private message
ivanoff
n00b
n00b


Joined: 05 Dec 2004
Posts: 41
Location: Toulouse France

PostPosted: Sun Aug 24, 2014 9:11 pm    Post subject: Reply with quote

Well, it might well be something else after all. Sorry for you. In any case, I came across the following issue on the internet, but I am not sure it's related to your issue.
https://bbs.archlinux.org/viewtopic.php?id=175913
By the way, does alsa work on itself ? Aplay and the likes ?
_________________
Linux, because you know what it is doing.
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