Video playback stutters / is jumpy (SOLVED)

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Video playback stutters / is jumpy (SOLVED)

Post by chrisonmint » Tue Dec 22, 2015 4:30 pm

I'm running LM 17.3 Cinnamon on a DELL with Intel graphics. Normal usage, moving windows around etc, is tear-free and seems smooth.

But, video playback (mp4 video) stutters and seems to stall every second or so, appears regular. In Video app and also VLC. Very obvious when lots is changing on screen. I have activated the "tear-free" driver option and turned off compositing on full-screen apps as suggested here:
http://forums.linuxmint.com/viewtopic.p ... &p=1104585

Any other thoughts? Smooth video playback seems very hard to do in Linux, its very frustrating!

Is there a new kernel I should be running? Any other settings to make video smooth?

Code: Select all

System:    Host: DELL Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2)
           Desktop: Cinnamon 2.8.6 (Gtk 3.10.8~8+qiana)
           Distro: Linux Mint 17.3 Rosa
Machine:   System: Dell product: Latitude E4310 v: 0001
           Mobo: Dell model: 0T6M8G v: A00 Bios: Dell v: A02 date: 05/28/2010
CPU:       Dual core Intel Core i5 M 520 (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9576
           clock speeds: max: 2400 MHz 1: 1199 MHz 2: 1199 MHz 3: 1199 MHz
           4: 1733 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.17.1 driver: intel
           Resolution: 1366x768@60.0hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile
           GLX Version: 2.1 Mesa 10.5.9 Direct Rendering: Yes
Audio:     Card Intel 5 Series/3400 Series High Definition Audio
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k3.19.0-32-generic
Network:   Card-1: Intel 82577LM Gigabit Network Connection
           driver: e1000e v: 2.3.2-k port: 6040 bus-ID: 00:19.0
           IF: eth0 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6200
           driver: iwlwifi v: in-tree: bus-ID: 02:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 250.1GB (12.1% used)
           ID-1: /dev/sda model: FUJITSU_MHZ2250B size: 250.1GB
Partition: ID-1: / size: 226G used: 25G (12%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 4.08GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 51.0C mobo: 44.0C
           Fan Speeds (in rpm): cpu: N/A fan-2: 0
Info:      Processes: 177 Uptime: 10 min Memory: 692.0/3752.3MB
           Init: Upstart runlevel: 2 Gcc sys: 4.8.4
           Client: Shell (bash 4.3.111) inxi: 2.2.28  
Last edited by chrisonmint on Sat Apr 16, 2016 2:14 pm, edited 1 time in total.

User avatar
TooMuchTime
Level 4
Level 4
Posts: 407
Joined: Fri Mar 11, 2016 10:30 pm

Re: Video playback stutters / is jumpy

Post by TooMuchTime » Tue Apr 12, 2016 10:01 pm

I have a similar problem with any system. I have tried to play an MPEG file created with tivodecode and the playback video is fine but the audio is quite choppy. However, this doesn't happen when I play it on a Mint 17.3 KDE, only on Mint 17.3 Cinnamon, MATE, and XFCE. This sounds like a codec problem, as in KDE has them and the other flavors of Mint don't. Either that or the default video player in KDE is more robust than the default players in Cinnamon, MATE, and XFCE.

I'm still working through it. If you find a fix, please post it here because it might help with my issue. I'll do the same if I find one.

User avatar
amethyst_igor
Level 3
Level 3
Posts: 143
Joined: Thu Feb 25, 2016 9:15 pm
Location: State of Euphoria
Contact:

Re: Video playback stutters / is jumpy

Post by amethyst_igor » Wed Apr 13, 2016 7:14 am

chrisonmint wrote:I'm running LM 17.3 Cinnamon on a DELL with Intel graphics. Normal usage, moving windows around etc, is tear-free and seems smooth.

But, video playback (mp4 video) stutters and seems to stall every second or so, appears regular. In Video app and also VLC. Very obvious when lots is changing on screen. I have activated the "tear-free" driver option and turned off compositing on full-screen apps as suggested here:
http://forums.linuxmint.com/viewtopic.p ... &p=1104585

Any other thoughts? Smooth video playback seems very hard to do in Linux, its very frustrating!

Is there a new kernel I should be running? Any other settings to make video smooth?

Code: Select all

System:    Host: DELL Kernel: 3.19.0-32-generic x86_64 (64 bit gcc: 4.8.2)
           Desktop: Cinnamon 2.8.6 (Gtk 3.10.8~8+qiana)
           Distro: Linux Mint 17.3 Rosa
Machine:   System: Dell product: Latitude E4310 v: 0001
           Mobo: Dell model: 0T6M8G v: A00 Bios: Dell v: A02 date: 05/28/2010
CPU:       Dual core Intel Core i5 M 520 (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9576
           clock speeds: max: 2400 MHz 1: 1199 MHz 2: 1199 MHz 3: 1199 MHz
           4: 1733 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: X.Org 1.17.1 driver: intel
           Resolution: 1366x768@60.0hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile
           GLX Version: 2.1 Mesa 10.5.9 Direct Rendering: Yes
Audio:     Card Intel 5 Series/3400 Series High Definition Audio
           driver: snd_hda_intel bus-ID: 00:1b.0
           Sound: Advanced Linux Sound Architecture v: k3.19.0-32-generic
Network:   Card-1: Intel 82577LM Gigabit Network Connection
           driver: e1000e v: 2.3.2-k port: 6040 bus-ID: 00:19.0
           IF: eth0 state: down mac: <filter>
           Card-2: Intel Centrino Advanced-N 6200
           driver: iwlwifi v: in-tree: bus-ID: 02:00.0
           IF: wlan0 state: up mac: <filter>
Drives:    HDD Total Size: 250.1GB (12.1% used)
           ID-1: /dev/sda model: FUJITSU_MHZ2250B size: 250.1GB
Partition: ID-1: / size: 226G used: 25G (12%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 4.08GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 51.0C mobo: 44.0C
           Fan Speeds (in rpm): cpu: N/A fan-2: 0
Info:      Processes: 177 Uptime: 10 min Memory: 692.0/3752.3MB
           Init: Upstart runlevel: 2 Gcc sys: 4.8.4
           Client: Shell (bash 4.3.111) inxi: 2.2.28  
The question is, are you willing to change media players? VLC is relatively slow on Intel chips. I use nothing but Intel. I have tested media players and find that smplayer is fastest, meaning less stuttering and that kind of thing. It is also a lot simpler to configure than VLC's maze of menus. It is a good idea to install vaapi, because that is the graphical driver for Intel that will help decode video. I recommend that you install vaapi, mpv and smplayer using Software Manager. I took screenshots of my configuration of Smplayer, but it's rather cumbersome to post screenshots here. I will post the configuration on my blog instead, for you and anyone running Intel like me. Click on the pictures to enlarge. I can't read them myself at the default size.
I run both Windows 10 and Linux Mint 18 in dual boot with two SSDs and have other rigs running various versions of Linux. My blog.

Hoser Rob
Level 15
Level 15
Posts: 5650
Joined: Sat Dec 15, 2012 8:57 am

Re: Video playback stutters / is jumpy

Post by Hoser Rob » Wed Apr 13, 2016 12:56 pm

I have a laptop running 17.3 Xfce with the same Ironlake series graphics, but that isn't what I'm typing this on so I'll see what I can find from my bookmarks.

The tear free option is for newer INtel gpus and won't work on anything pre Skylake (I think).

Turning off as much compositing as possible is the right thing to start with.

The steps in the 1st answer here involving the semaphores and the clutter_paint parameters made a big difference, especially the latter:

http://askubuntu.com/questions/292224/b ... l-ironlake

The clutter-paint arg will actually slow down normal window drawing but will speed up video playback a lot.

I agree about vlc vs smplayer ... smplayer has much better video performance. Smplayer isn't actually the fastest mplayer front end but it's not off my much and it also has an excellent interface. In fact it's so good that I've never been bothered by their crappy documentation. I've never needed it.

There are good speed tricks for smplayer/mplayer as well. First, try the steps on this page to assign mplayer output directly to the intel output port:

http://unixangst.com/blog/?p=23

This makes a big difference, and it'll force the xv output module to be used so leave it at that in preferences.

Also in smplayer you need a good size cache for local files. The recommended size is 8192Kb. Also add

-cache-min 50

after the vo=xv stuff you added from the link before. This makes the cache prefill to half capacity every time you open a video. It slows down loading time but plays video better.

Other than the intel specific stuff using a big cache is the biggest performance tweak I've found. You can to it in VLC too but it's buried in input/codecs for some stupid reason. I hate the VLC interface.

I think that's it. Obviously the intel stuff isn't for other makes, and I'll only vouch for it in the Ironlake series chips. I use Xfce, which doesn't have the overhead of Cinnamon, but that laptop has an i3 which is slower than the i5. But I've tested it running smplayer on an external monitor in extended desktop mode with a 1080p HEVC/h265 format video with over 6Mb/s bit rate. And it was pretty much perfect.

User avatar
amethyst_igor
Level 3
Level 3
Posts: 143
Joined: Thu Feb 25, 2016 9:15 pm
Location: State of Euphoria
Contact:

Re: Video playback stutters / is jumpy

Post by amethyst_igor » Wed Apr 13, 2016 1:08 pm

Hoser Rob wrote:I have a laptop running 17.3 Xfce with the same Ironlake series graphics, but that isn't what I'm typing this on so I'll see what I can find from my bookmarks.

The tear free option is for newer INtel gpus and won't work on anything pre Skylake (I think).

Turning off as much compositing as possible is the right thing to start with.

The steps in the 1st answer here involving the semaphores and the clutter_paint parameters made a big difference, especially the latter:

http://askubuntu.com/questions/292224/b ... l-ironlake

The clutter-paint arg will actually slow down normal window drawing but will speed up video playback a lot.

I agree about vlc vs smplayer ... smplayer has much better video performance. Smplayer isn't actually the fastest mplayer front end but it's not off my much and it also has an excellent interface. In fact it's so good that I've never been bothered by their crappy documentation. I've never needed it.

There are good speed tricks for smplayer/mplayer as well. First, try the steps on this page to assign mplayer output directly to the intel output port:

http://unixangst.com/blog/?p=23

This makes a big difference, and it'll force the xv output module to be used so leave it at that in preferences.

Also in smplayer you need a good size cache for local files. The recommended size is 8192Kb. Also add

-cache-min 50

after the vo=xv stuff you added from the link before. This makes the cache prefill to half capacity every time you open a video. It slows down loading time but plays video better.

Other than the intel specific stuff using a big cache is the biggest performance tweak I've found. You can to it in VLC too but it's buried in input/codecs for some stupid reason. I hate the VLC interface.

I think that's it. Obviously the intel stuff isn't for other makes, and I'll only vouch for it in the Ironlake series chips. I use Xfce, which doesn't have the overhead of Cinnamon, but that laptop has an i3 which is slower than the i5. But I've tested it running smplayer on an external monitor in extended desktop mode with a 1080p HEVC/h265 format video with over 6Mb/s bit rate. And it was pretty much perfect.
Ditto and kudos, especially regarding the cache, which I think does help a bit with Smplayer. I set my cache for local files at about 8mb for a hard drive.

I'd recommend MPV over Mplayer, because MPV seems faster. In my living room, I use the very latest versions straight compiled by mc3man and some other dude, I forget his nym. MPV is very actively developed. I'm running a G1830 Celeron and playing 1080p without stuttering, due to Smplayer + MPV + vaapi. Intel HD Graphics is well capable of doing HD. An i3 or i5 is overkill for that purpose (though I wouldn't complain if one appeared in my mailbox). But in order to tap into the Intel chip's video capability, you have to use vaapi.

VLC is more popular than it really deserves and has really fallen behind due to performance issues in today's world of HD video. It was da bomb for a while, though, and I used it until I found I couldn't really get by with it anymore. I still use it to play audio files, though. It's got some nice features for audio.
I run both Windows 10 and Linux Mint 18 in dual boot with two SSDs and have other rigs running various versions of Linux. My blog.

Hoser Rob
Level 15
Level 15
Posts: 5650
Joined: Sat Dec 15, 2012 8:57 am

Re: Video playback stutters / is jumpy

Post by Hoser Rob » Wed Apr 13, 2016 1:39 pm

I don't use mpv with smplayer but I installed a newer mplayer build via ppa to enable HEVC playback. It works just dandy, and I don't want to dick around with possible different mpv syntax.

Here's where I got the ppa source:

http://ubuntuforums.org/showthread.php? ... st13261409

I also installed a newer vlc build for HEVC (same thread) and it works fine, though as usual smplayer performance is better.

These are the only ppa sources I use in 2 mint installs.

Hoser Rob
Level 15
Level 15
Posts: 5650
Joined: Sat Dec 15, 2012 8:57 am

Re: Video playback stutters / is jumpy

Post by Hoser Rob » Wed Apr 13, 2016 1:42 pm

Dang. I forgot the most important thing. If you're running 17.1 or 17.2 with an intel Ironlake gpu, update to 17.3 and make sure you also update the kernel/xorg stack etc stuff. The web point series update doesn't do this automatically.

Mine worked fine in 17 but 17.1 and .2 didn't. There was a regression in the intel i915 driver.

chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Re: Video playback stutters / is jumpy

Post by chrisonmint » Thu Apr 14, 2016 2:36 am

Hoser Rob wrote:Dang. I forgot the most important thing. If you're running 17.1 or 17.2 with an intel Ironlake gpu, update to 17.3 and make sure you also update the kernel/xorg stack etc stuff. The web point series update doesn't do this automatically.

Mine worked fine in 17 but 17.1 and .2 didn't. There was a regression in the intel i915 driver.
thanks to amethyst and hoser rob for your posts. i will definitely try your player suggestions.

Can you advise which kernel i need to move to for my Intel Core i5 M 520? my laptop started on 17.1 and has been upgraded in place, so i likely on an old kernel. What should i try to upgrade to?

thanks again! :D

User avatar
amethyst_igor
Level 3
Level 3
Posts: 143
Joined: Thu Feb 25, 2016 9:15 pm
Location: State of Euphoria
Contact:

Re: Video playback stutters / is jumpy

Post by amethyst_igor » Thu Apr 14, 2016 12:22 pm

chrisonmint wrote:
Hoser Rob wrote:Dang. I forgot the most important thing. If you're running 17.1 or 17.2 with an intel Ironlake gpu, update to 17.3 and make sure you also update the kernel/xorg stack etc stuff. The web point series update doesn't do this automatically.

Mine worked fine in 17 but 17.1 and .2 didn't. There was a regression in the intel i915 driver.
thanks to amethyst and hoser rob for your posts. i will definitely try your player suggestions.

Can you advise which kernel i need to move to for my Intel Core i5 M 520? my laptop started on 17.1 and has been upgraded in place, so i likely on an old kernel. What should i try to upgrade to?

thanks again! :D
Hey there, please edit the subject to include [SOLVED]. Thanks!
For the kernel, the official advice is don't bother, unless something's not working right. That is good advice, and I'd think on it long and hard before upgrading the kernel. Also keep in mind, version 18's right around the corner, and it's going to include a much newer kernel. So you do not have to do anything.
I run both Windows 10 and Linux Mint 18 in dual boot with two SSDs and have other rigs running various versions of Linux. My blog.

chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Re: Video playback stutters / is jumpy

Post by chrisonmint » Thu Apr 14, 2016 4:53 pm

amethyst_igor wrote: Hey there, please edit the subject to include [SOLVED]. Thanks!
For the kernel, the official advice is don't bother, unless something's not working right. That is good advice, and I'd think on it long and hard before upgrading the kernel. Also keep in mind, version 18's right around the corner, and it's going to include a much newer kernel. So you do not have to do anything.
I was hoping that i wont need to upgrade to 18 - especially if i cannot do it in-place. i dont want to have to set up the machine from scratch again!

chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Re: Video playback stutters / is jumpy

Post by chrisonmint » Thu Apr 14, 2016 5:59 pm

amethyst_igor wrote: I'd recommend MPV over Mplayer, because MPV seems faster. In my living room, I use the very latest versions straight compiled by mc3man and some other dude, I forget his nym. MPV is very actively developed. I'm running a G1830 Celeron and playing 1080p without stuttering, due to Smplayer + MPV + vaapi. Intel HD Graphics is well capable of doing HD. An i3 or i5 is overkill for that purpose (though I wouldn't complain if one appeared in my mailbox). But in order to tap into the Intel chip's video capability, you have to use vaapi.
I dont seem to be able to get vaapi as an option in SMPlayer - i installed the following using synaptic:

Code: Select all

libbs2b0 libquvi-scripts libquvi7 libvdpau1 mplayer2 smplayer
  i965-va-driver libva-intel-vaapi-driver
  libguess1 libmowgli2 libva-glx1 mpv
In the SMplayer "performance" section, there is no "hardware decoding" choice to let me pick vaapi.

so far, it chugs just like the Mint video player and VLC. have i missed something with vaapi??

chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Re: Video playback stutters / is jumpy

Post by chrisonmint » Thu Apr 14, 2016 6:03 pm

Oh, and the xvinfo calls my adaptor #1 a "sprite" - can i still set that in the mplayer options?? See below...

Code: Select all

chris@DELL ~ $ xvinfo
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Intel(R) Textured Video"
    number of ports: 16
    port base: 75
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x20
    number of attributes: 1
      "XV_SYNC_TO_VBLANK" (range -1 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
    maximum XvImage size: 8192 x 8192
    Number of image formats: 5
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x434d5658 (XVMC)
        guid: 58564d43-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
  Adaptor #1: "Intel(R) Video Sprite"
    number of ports: 1
    port base: 91
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x20
    number of attributes: 2
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 66046)
      "XV_ALWAYS_ON_TOP" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 0)
    maximum XvImage size: 8192 x 8192
    Number of image formats: 3
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x18424752
        guid: 50415353-5448-524f-5547-485247423234
        bits per pixel: 32
        number of planes: 1
        type: RGB (packed)
        depth: 24
        red, green, blue masks: 0xff0000, 0xff00, 0xff

chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Re: Video playback stutters / is jumpy

Post by chrisonmint » Fri Apr 15, 2016 2:22 am

RE: vaapi

I havent managed to get SMPlayer to run with VAAPI, but I am not sure it will help. I ran MPV on the command line as follows, it was still stuttering...

Code: Select all

mpv --hwdec=vaapi

Detected file format: QuickTime / MOV (libavformat)
Clip info:
 major_brand: mp42
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 creation_time: 2016-04-08 17:11:00
 encoder: HandBrake 0.10.5 2016021100
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (aac)
[stream] Subs      --sid=1 --slang=eng (mov_text)
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/opengl/x11] X11 error: GLXBadFBConfig
[vo/opengl] Could not create GL3 context. Retrying with legacy context.
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Trying to use hardware decoding.
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: AAC (Advanced Audio Coding) [lavc:aac]
AO: [pulse] 48000Hz stereo 2ch float
VO: [opengl] 720x552 => 1024x552 vaapi
AV: 00:00:10 / 01:31:08 (0%) A-V: -0.000

Hoser Rob
Level 15
Level 15
Posts: 5650
Joined: Sat Dec 15, 2012 8:57 am

Re: Video playback stutters / is jumpy

Post by Hoser Rob » Fri Apr 15, 2016 2:52 pm

chrisonmint wrote:... i installed the following using synaptic:

Code: Select all

libbs2b0 libquvi-scripts libquvi7 libvdpau1 mplayer2 smplayer
  i965-va-driver libva-intel-vaapi-driver
  libguess1 libmowgli2 libva-glx1 mpv
In the SMplayer "performance" section, there is no "hardware decoding" choice to let me pick vaapi.

so far, it chugs just like the Mint video player and VLC. have i missed something with vaapi??
Don't use mplayer2, use mplayer. Mplayer2 is a rather dead fork which has been pretty much superseded by mpv.

If you go into synaptic and tell it to remove mplayer2 it will install mplayer as it's a dependency of smplayer. Simple.

I have never messed around with vaapi and don't see a need personally.

User avatar
amethyst_igor
Level 3
Level 3
Posts: 143
Joined: Thu Feb 25, 2016 9:15 pm
Location: State of Euphoria
Contact:

Re: Video playback stutters / is jumpy

Post by amethyst_igor » Sat Apr 16, 2016 5:40 am

chrisonmint wrote:RE: vaapi

I havent managed to get SMPlayer to run with VAAPI, but I am not sure it will help. I ran MPV on the command line as follows, it was still stuttering...

Code: Select all

mpv --hwdec=vaapi

Detected file format: QuickTime / MOV (libavformat)
Clip info:
 major_brand: mp42
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 creation_time: 2016-04-08 17:11:00
 encoder: HandBrake 0.10.5 2016021100
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=eng (aac)
[stream] Subs      --sid=1 --slang=eng (mov_text)
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/opengl/x11] X11 error: GLXBadFBConfig
[vo/opengl] Could not create GL3 context. Retrying with legacy context.
libva info: VA-API version 0.35.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Trying to use hardware decoding.
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: AAC (Advanced Audio Coding) [lavc:aac]
AO: [pulse] 48000Hz stereo 2ch float
VO: [opengl] 720x552 => 1024x552 vaapi
AV: 00:00:10 / 01:31:08 (0%) A-V: -0.000
Per the error message, vaapi seems to depend upon vdpau for some reason or another or in certain situations. Vdpau is associated with Nvidia, yet it also may be needed, even on an Intel-only rig, so I would go ahead and instead that as well. It all seems a bit strange to me, but there is at least some explanation on the ArchLinux wiki, which is where I go whenever I configure much of anything in Linux. I don't find it very interesting and tend to forget the details once I have everything working right, like now.
I run both Windows 10 and Linux Mint 18 in dual boot with two SSDs and have other rigs running various versions of Linux. My blog.

User avatar
amethyst_igor
Level 3
Level 3
Posts: 143
Joined: Thu Feb 25, 2016 9:15 pm
Location: State of Euphoria
Contact:

Re: Video playback stutters / is jumpy

Post by amethyst_igor » Sat Apr 16, 2016 5:49 am

Hoser Rob wrote:
chrisonmint wrote:... i installed the following using synaptic:

Code: Select all

libbs2b0 libquvi-scripts libquvi7 libvdpau1 mplayer2 smplayer
  i965-va-driver libva-intel-vaapi-driver
  libguess1 libmowgli2 libva-glx1 mpv
In the SMplayer "performance" section, there is no "hardware decoding" choice to let me pick vaapi.

so far, it chugs just like the Mint video player and VLC. have i missed something with vaapi??
Don't use mplayer2, use mplayer. Mplayer2 is a rather dead fork which has been pretty much superseded by mpv.

If you go into synaptic and tell it to remove mplayer2 it will install mplayer as it's a dependency of smplayer. Simple.

I have never messed around with vaapi and don't see a need personally.
The purpose for vaapi is to harness the hardware-based video decoding capability (HD video) of the Intel cpu, which is faster and consumes less electricity. If you have a fast enough cpu, then software decoding should suffice, although your video playback will consume more electricity and cpu share. I play HD video, 1080p, on a Haswell Celeron, G1830, configured this way.
I run both Windows 10 and Linux Mint 18 in dual boot with two SSDs and have other rigs running various versions of Linux. My blog.

Hoser Rob
Level 15
Level 15
Posts: 5650
Joined: Sat Dec 15, 2012 8:57 am

Re: Video playback stutters / is jumpy

Post by Hoser Rob » Sat Apr 16, 2016 7:40 am

If you upgraded to 17.3 without updating the kernel/xorg stack and there are still video playback problems you should do all the higher level updates before dicking around with anything else.

chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Re: Video playback stutters / is jumpy

Post by chrisonmint » Sat Apr 16, 2016 2:07 pm

amethyst_igor wrote: The purpose for vaapi is to harness the hardware-based video decoding capability (HD video) of the Intel cpu, which is faster and consumes less electricity. If you have a fast enough cpu, then software decoding should suffice, although your video playback will consume more electricity and cpu share. I play HD video, 1080p, on a Haswell Celeron, G1830, configured this way.
Sounds great - libdpau1 is installed, which i guess is the package that I need. not sure why mplayer isnt seeing it. there is a libdpau-va-gl1 package and some info/doc/dev packages which havent been installed, not sure if any of those are essential.

I tried re-installing lots of these packages, no improvement

chrisonmint
Level 3
Level 3
Posts: 143
Joined: Sun May 03, 2015 10:49 am

Re: Video playback stutters / is jumpy

Post by chrisonmint » Sat Apr 16, 2016 2:13 pm

:D :D :D

I have the solution! xvinfo gave me the clue

Code: Select all

$ xvinfo -short
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Intel(R) Textured Video"
    number of ports: 16
    port base: 75
.............
  Adaptor #1: "Intel(R) Video Sprite"
    number of ports: 1
    port base: 91
One the posts above linked to a page which discussed how the "textured video" output is the one which exhibits video stuttering. I have worked out how to get SMPlayer and mplayer (command line) to use the other XV adaptor:

Code: Select all

mplayer -vo xv:adaptor=1 ....
In SMPlayer, go into preferences > General > Output driver > choose "xv (1 - Intel(R) Video Sprite)"

Supposedly you can make this a global setting for mplayer by putting "vo=xv:adaptor=1" in /etc/mplayer/mplayer.conf

Thanks for everyones help!! No need to mess around with new kernel or risking an upgrade to LM18....

User avatar
amethyst_igor
Level 3
Level 3
Posts: 143
Joined: Thu Feb 25, 2016 9:15 pm
Location: State of Euphoria
Contact:

Re: Video playback stutters / is jumpy

Post by amethyst_igor » Sat Apr 16, 2016 4:45 pm

chrisonmint wrote::D :D :D

I have the solution! xvinfo gave me the clue

Code: Select all

$ xvinfo -short
X-Video Extension version 2.2
screen #0
  Adaptor #0: "Intel(R) Textured Video"
    number of ports: 16
    port base: 75
.............
  Adaptor #1: "Intel(R) Video Sprite"
    number of ports: 1
    port base: 91
One the posts above linked to a page which discussed how the "textured video" output is the one which exhibits video stuttering. I have worked out how to get SMPlayer and mplayer (command line) to use the other XV adaptor:

Code: Select all

mplayer -vo xv:adaptor=1 ....
In SMPlayer, go into preferences > General > Output driver > choose "xv (1 - Intel(R) Video Sprite)"

Supposedly you can make this a global setting for mplayer by putting "vo=xv:adaptor=1" in /etc/mplayer/mplayer.conf

Thanks for everyones help!! No need to mess around with new kernel or risking an upgrade to LM18....
That works OK on my Celeron for some video files, but not all. The poor little Smelleron just doesn't have the horsepower. There are three optimal flavors: xv, Intel Sprite, and Intel Textured, with the latter ones looking better and requiring more cpu. The reason textured causes stuttering is because the cpu has to work more to achieve that textured look. I dropped back to xv for the Smelleron, because it coughed and wheezed on some 1080p files. With your i5 (I think it is?) you should be fine, but if not you can unleash the power of vaapi.
I run both Windows 10 and Linux Mint 18 in dual boot with two SSDs and have other rigs running various versions of Linux. My blog.

Post Reply

Return to “Sound, Multimedia, & Codecs”