Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Video playback lag after upgrading from 13.2

  1. #1
    heyjoe NNTP User

    Question Video playback lag after upgrading from 13.2

    After upgrading from 13.2 on my old 32 bit Acer TravelMate 2410 all video playback lags terribly including for the same videos which previously played in 13.2 flawlessly. I use smplayer in xfce as I always have. I tried mpv Media Player - same result. I tried also the "Videos" application however it gives only sound output.

    In case that matters:

    Code:
    acer:~ # /sbin/lspci -nnk|  egrep 'VGA|3D|Display' -A3
    00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2592] (rev 03)
            Subsystem: Acer Incorporated [ALI] Device [1025:006a]
            Kernel modules: i915
    00:02.1 Display controller [0380]: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller [8086:2792] (rev 03)
            Subsystem: Acer Incorporated [ALI] Device [1025:006a]
    00:1d.0 USB controller [0c03]: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 [8086:2658] (rev 03)
            Subsystem: Acer Incorporated [ALI] Device [1025:006a]
    acer:~ # /usr/sbin/hwinfo --gfxcard
    16: PCI 02.0: 0300 VGA compatible controller (VGA)              
      [Created at pci.378]
      Unique ID: _Znp.EtexH6ajTw4
      SysFS ID: /devices/pci0000:00/0000:00:02.0
      SysFS BusID: 0000:00:02.0
      Hardware Class: graphics card
      Model: "Intel 915 GM"
      Vendor: pci 0x8086 "Intel Corporation"
      Device: pci 0x2592 "915 GM"
      SubVendor: pci 0x1025 "Acer Incorporated [ALI]"
      SubDevice: pci 0x006a 
      Revision: 0x03
      Memory Range: 0xb0080000-0xb00fffff (rw,non-prefetchable)
      I/O Ports: 0x1800-0x1807 (rw)
      Memory Range: 0xc0000000-0xcfffffff (ro,non-prefetchable)
      Memory Range: 0xb0000000-0xb003ffff (rw,non-prefetchable)
      Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled)
      IRQ: 10 (no events)
      I/O Ports: 0x3c0-0x3df (rw)
      Module Alias: "pci:v00008086d00002592sv00001025sd0000006Abc03sc00i00"
      Driver Info #0:
        XFree86 v4 Server Module: intel
      Driver Info #1:
        XFree86 v4 Server Module: intel
        3D Support: yes
        Extensions: dri
      Config Status: cfg=new, avail=yes, need=no, active=unknown
    
    
    
    
    21: PCI 02.1: 0380 Display controller
      [Created at pci.378]
      Unique ID: ruGf.Wg8LTupicC7
      SysFS ID: /devices/pci0000:00/0000:00:02.1
      SysFS BusID: 0000:00:02.1
      Hardware Class: graphics card
      Model: "Intel Mobile 915GM/GMS/910GML Express Graphics Controller"
      Vendor: pci 0x8086 "Intel Corporation"
      Device: pci 0x2792 "Mobile 915GM/GMS/910GML Express Graphics Controller"
      SubVendor: pci 0x1025 "Acer Incorporated [ALI]"
      SubDevice: pci 0x006a 
      Revision: 0x03
      Memory Range: 0x20000000-0x2007ffff (rw,non-prefetchable,disabled)
      Module Alias: "pci:v00008086d00002792sv00001025sd0000006Abc03sc80i00"
      Config Status: cfg=new, avail=yes, need=no, active=unknown
    
    
    
    
    Primary display adapter: #16


    This is an old computer but these videos and thousands of others have always played without problems on it, so it is definitely a software issue.

    How can I fix this?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,077
    Blog Entries
    1

    Default Re: Video playback lag after upgrading from 13.2

    It might be useful to show your smplayer config
    Code:
    cat ~/.config/smplayer/smplayer.ini
    In particular the configured video output driver in use.

  3. #3
    heyjoe NNTP User

    Default Re: Video playback lag after upgrading from 13.2

    I haven't changed any settings in smplayer for a long time (long even before upgrading) but there you go: http://paste.opensuse.org/e4756cd6

    It doesn't seem to be an issue with smplayer as mpv Media Player lags too and obviously there is a problem with the so called Videos player in xfce. BTW I found that right clicking a video and choosing to open with MPlayer does NOT lag. I guess the issue might be related to how the player interacts with the graphical environment. Any ideas?

  4. #4
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,077
    Blog Entries
    1

    Default Re: Video playback lag after upgrading from 13.2

    Quote Originally Posted by heyjoe View Post
    I haven't changed any settings in smplayer for a long time (long even before upgrading) but there you go: http://paste.opensuse.org/e4756cd6

    It doesn't seem to be an issue with smplayer as mpv Media Player lags too and obviously there is a problem with the so called Videos player in xfce. BTW I found that right clicking a video and choosing to open with MPlayer does NOT lag. I guess the issue might be related to how the player interacts with the graphical environment. Any ideas?
    You're using the xv driver which should be ok. I don't have any definitive solutions, but I did find this smplayer forum thread describing similar issues and some useful suggestions too. For example, this post describes what you've observed about MPlayer vs smplayer. A suggestion was made to try increasing cache, or disable it completely if that doesn't work. It is probably a good idea to post this issue in that forum as well to widen the support net.

    You might need to examine the MPlayer logs. If run directly from the CLI eg
    Code:
    mplayer /path/to/video_file
    capture the output. Maybe that will provide clues too.

  5. #5
    heyjoe NNTP User

    Default Re: Video playback lag after upgrading from 13.2

    mplayer works fine. Nothing strange in the text output too.

    The question is why the other players don't and why this happened after the update to Tumbleweed. Obviously it is related, right?

    I tried to turn on the debug log of smplayer and in one place I see similar thing to what you show on that link:

    Code:
    [02:01:47:476] MPVProcess::parseLine: 'Run command: set, flags=9, args=[sub-visibility, yes]'
    [02:01:47:477] MPVProcess::parseLine: 'Set property: sub-visibility=yes -> 1'
    [02:01:47:656] MPVProcess::parseLine: ''
    [02:01:47:657] MPVProcess::parseLine: 'Audio/Video desynchronisation detected! Possible reasons include too slow'
    [02:01:47:657] MPVProcess::parseLine: 'hardware, temporary CPU spikes, broken drivers, and broken files. Audio'
    [02:01:47:657] MPVProcess::parseLine: 'position will not match to the video (see A-V status field).'
    [02:01:47:657] MPVProcess::parseLine: ''
    The reason is not 'too slow hardware' because the same hardware was able to play the same videos on 13.2, even with output to 1920x1080 using external VGA cable on a big 50" TV. The video files are not broken either.

    Other lines which mention the word hardware and error:

    Code:
    [02:01:45:648] MPVProcess::parseLine: 'libva info: VA-API version 0.39.4'
    [02:01:45:649] MPVProcess::parseLine: 'libva info: va_getDriverName() returns -1'
    [02:01:45:650] MPVProcess::parseLine: 'libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)'
    [02:01:45:678] MPVProcess::parseLine: '[vo/vdpau] VDPAU is most likely emulated via VA-API.'
    [02:01:45:679] MPVProcess::parseLine: '[vo/vdpau] This is inefficient. Use --vo=opengl instead.'
    [02:01:45:680] MPVProcess::parseLine: '[vd] Container reported FPS: 29.970030'
    [02:01:45:680] MPVProcess::parseLine: '[vd] Codec list:'
    [02:01:45:681] MPVProcess::parseLine: '[vd]     mpeg4 - MPEG-4 part 2'
    [02:01:45:681] MPVProcess::parseLine: '[vd] Opening video decoder mpeg4'
    [02:01:45:681] MPVProcess::parseLine: '[vd] Not trying to use hardware decoding: codec mpeg4 is not on whitelist, or does not support hardware acceleration.'
    [02:01:45:681] MPVProcess::parseLine: '[vd] Using software decoding.'
    [02:01:45:681] MPVProcess::parseLine: '[vd] Requesting 2 threads for decoding.'
    [02:01:45:681] MPVProcess::parseLine: '[vd] Selected video codec: mpeg4 (MPEG-4 part 2)'
    [02:01:45:683] MPVProcess::parseLine: '[vo/vdpau] Assuming 76.000000 FPS for display sync.'
    So what is next?

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,077
    Blog Entries
    1

    Default Re: Video playback lag after upgrading from 13.2

    The output supplied is part of the discovery process, and some further experimentation may be required. Hopefully, others can chime in with advice. You might try posting in the smplayer forum as well.

    With respect to the mpv output, it is probably worth trying the hint given...

    Code:
    [02:01:45:679] MPVProcess::parseLine: '[vo/vdpau] This is inefficient. Use --vo=opengl instead.'

  7. #7
    heyjoe NNTP User

    Default Re: Video playback lag after upgrading from 13.2

    Quote Originally Posted by deano_ferrari View Post

    Code:
    [02:01:45:679] MPVProcess::parseLine: '[vo/vdpau] This is inefficient. Use --vo=opengl instead.'
    Alrighty! That works a little better but still laggy. Any other options to test? I tried all output drivers but nothing improved.

    I have been wondering... is there any GL acceleration of XFCE itself that may be conflicting / slowing down the player itself? I remember having seen this effect on other older machines with KDE where some key combination like alt+shif+f11 (IIRC) used to disable it and then things worked better. Is there such thing in XFCE?

  8. #8

    Default Re: Video playback lag after upgrading from 13.2

    Some of what I'll write, you'll likely already be aware of, but I'll include it here for others too.

    This is an old computer
    Install vainfo (its in vaapi-tools) ... once you have it installed, and provided you have libva installed (which it appears you do from other otuput you provided), then it will return the hardware decoding capabilities of your gpu ... if anything, this chipset might support mpeg2 hardware decoding

    but these videos and thousands of others have always played without problems on it, so it is definitely a software issue.
    It is indeed


    It doesn't seem to be an issue with smplayer as mpv Media Player lags too
    smplayer is, of course, simply a frontend to a playback engine. See: Options > Preferences > General > General > Multimedia engine

    As the susepaste output, as well as the smplayer debug log output, you provided shows, mpv is the selected engine, so its unsurprising the two function the same.


    and obviously there is a problem with the so called Videos player in xfce.
    I'm not familiar with it, but no doubt it is a configuration issue. I'm sure someone familiar could provide assistance with that.


    I found that right clicking a video and choosing to open with MPlayer does NOT lag. I guess the issue might be related to how the player interacts with the graphical environment. Any ideas?
    It has to do with how the encoded video file is decoded and then how that bitstream is displayed on screen


    mplayer works fine. Nothing strange in the text output too.
    But it will give you definitive information about the decoding and output process that is taking place


    The question is why the other players don't
    its simply a configuration issue


    and why this happened after the update to Tumbleweed. Obviously it is related, right?
    Yes, most likely


    I tried to turn on the debug log of smplayer and in one place I see similar thing to what you show on that link:
    The output is illuminating, even if its only fragments


    The reason is not 'too slow hardware' because the same hardware was able to play the same videos on 13.2
    No, the reason is too slow hardware. That its doing something does not mean that its doing what you desire it to do. The way its currently configured, its trying to do something that your system just doesn't have the strength to perform. You simply need to reconfigure it.


    [02:01:45:649] MPVProcess:arseLine: 'libva info: va_getDriverName() returns -1'
    [02:01:45:650] MPVProcess:arseLine: 'libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)'
    libva (aka va-api or vaapi) is looking for a vaapi decoding driver for your hardware and finds none. You're missing vaapi-intel-driver


    [02:01:45:678] MPVProcess:arseLine: '[vo/vdpau] VDPAU is most likely emulated via VA-API.'
    [02:01:45:679] MPVProcess:arseLine: '[vo/vdpau] This is inefficient. Use --vo=opengl instead.'
    its telling you that mpv is trying to use vdpau to output (the "vo") the decoded bitstream. it informs you that this is inefficient, and to use opengl to output.

    the vidoe decoding (the "vd" stuff) shows you that its using software decoding

    Alrighty! That works a little better but still laggy. Any other options to test? I tried all output drivers but nothing improved.
    In smplayer, besides selecting the engine (see above), you want to look at the options at:

    Options > Preferences > General > Video > Output driver ... in your case (i.e. with your hardware), set it to vaapi or xv

    Options > Preferences > Performance > Decoding > Hardware Decoding ... I'd set it on auto

    And, as mentioned, install the vaapi-intel-driver <-- you might not even be able to make use of any hardware decoding, but we'll see

    I have been wondering... is there any GL acceleration of XFCE itself that may be conflicting / slowing down the player itself? I remember having seen this effect on other older machines with KDE where some key combination like alt+shif+f11 (IIRC) used to disable it and then things worked better. Is there such thing in XFCE?
    I'm not familiar with xfce's composting abilities

  9. #9

    Default Re: Video playback lag after upgrading from 13.2

    I'll just tuck a note in here that mplayer available in openSUSE doesn't have vaapi support built in.

    OTOH, mpv does.

  10. #10
    heyjoe NNTP User

    Default Re: Video playback lag after upgrading from 13.2

    Quote Originally Posted by Tyler_K View Post
    Some of what I'll write, you'll likely already be aware of, but I'll include it here for others too.


    Install vainfo (its in vaapi-tools) ... once you have it installed, and provided you have libva installed (which it appears you do from other otuput you provided), then it will return the hardware decoding capabilities of your gpu ... if anything, this chipset might support mpeg2 hardware decoding
    Installed vaapi-tools. Tried all video output drivers - nothing works well enough.

    smplayer is, of course, simply a frontend to a playback engine. See: Options > Preferences > General > General > Multimedia engine
    When selecting multimedia engine to be mplayer videos don't play at all. Black screen.

    But it will give you definitive information about the decoding and output process that is taking place
    There it is:

    http://paste.opensuse.org/0d2cdfbd

    its simply a configuration issue
    How come? The same configuration in 13.2 worked. Now it doesn't. I haven't changed any settings in smplayer?

    No, the reason is too slow hardware. That its doing something does not mean that its doing what you desire it to do. The way its currently configured, its trying to do something that your system just doesn't have the strength to perform. You simply need to reconfigure it.
    But again the question remains: why the same hardware with the same settings was not too slow in 13.2?

    Options > Preferences > Performance > Decoding > Hardware Decoding ... I'd set it on auto
    Tried that too. No change.

    And, as mentioned, install the vaapi-intel-driver <-- you might not even be able to make use of any hardware decoding, but we'll see
    It is installed.

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •