logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 18-04-2016 12:50:57

Anonyme
Invité

MPV + Configuration

Bonjour,

JESSIE



apt-get install mpv
 



Mon fichier de configuration perso. ( Décodage par la carte graphique GPU )


hwdec=vdpau
vo=vdpau
speed=1
#vo=xv

#deinterlace=yes
#vf=yadif

#hwdec=opengl-hq
#vo=opengl-hq
#softvol-max=value



#ao=pulse
ao=alsa:device=[hw:0,0]

# (This is the default.)
#audio-channels=auto
#audio-channels=5.1
audio-channels=2

# Disable softvol usage, and always use the system mixer if available.
#softvol=no

# Play video at 70% of the volume.
#volume=81



alang=fr
#slang=fr,fra


geometry=1000x576+330+180
save-position-on-quit=yes
#osd-border-color='#ff0000'
screenshot-format=png
screenshot-template=./screenshot%#04n



# Subtitles look
sub-text-font="Droid"
sub-text-font-size=80
sub-text-margin-y=36
sub-text-color="#ffffffff"
sub-text-border-color="#ff262626"
sub-text-border-size=3.2
sub-text-shadow-offset=1
sub-text-shadow-color="#33000000"
sub-text-spacing=0.5
 



Ça peut toujours  aider. smile


EDIT:

1460980821.jpg

Dernière modification par Anonyme (01-04-2017 20:39:36)

#2 18-04-2016 13:22:31

Severian
Membre
Distrib. : Debian GNU/Linux 9.4 (stretch)
Noyau : Linux 4.14.0-0.bpo.3-amd64
(G)UI : Openbox 3.6.1-4
Inscription : 13-12-2014

Re : MPV + Configuration

quand tu lance une vidéo, tu n'as pas de messages d'erreurs ?
(dans la console si tu lance via terminal, sinon dans le fichier .xsession-errors )

le driver VDPAU ne doit il pas être déclaré dans .xsessionrc ?

tu as une configuration particulière pour compton ?

(toutes ces question, parce que j'ai eu beau chercher, pour éviter le tearing, j'ai du adopter une config spécifique à compton, et éviter vdpau, donc je voudrais bien comprendre smile)

Hors ligne

#3 18-04-2016 13:24:14

Anonyme
Invité

Re : MPV + Configuration

Je regarde tout ça et je te dis tout ça ......

#4 18-04-2016 13:41:48

Anonyme
Invité

Re : MPV + Configuration

Bon, xsession-errors au démarrage de la session


Xsession: X session started for patrick at lundi 18 avril 2016, 14:25:36 (UTC+0200)
localuser:patrick being added to access control list
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1
Initializing caja-open-terminal extension
 



Je lance une vidéo 1080P pour voir :

Rien de plus dans le fichier s'inscrit.

Je lance MPV dans le terminal : Rien mise à part la version et les options  du programme.

mpv terminal + UNE_VIDEO


patrick@debian:~/Bureau$ mpv '/media/patrick/1TO-Blue/FILMS/HQ/Fréquence Interdite.mkv'
Playing: /media/patrick/1TO-Blue/FILMS/HQ/Fréquence Interdite.mkv
[stream] Video (+) --vid=1 (h264)
[stream] Audio     --aid=1 --alang=fre 'AC3-2.0-VFQ' (ac3)
[stream] Audio     --aid=2 --alang=eng 'AC3-5.1-VO' (ac3)
[stream] Audio (+) --aid=3 --alang=fre (*) 'AC3-5.1-VFF' (ac3)
[stream] Subs  (+) --sid=1 --slang=fre (*) 'forcés' (subrip)
[stream] Subs      --sid=2 --slang=fre 'complets' (subrip)
[stream] Subs      --sid=3 --slang=eng 'complets' (subrip)
Trying to use hardware decoding.
[ao/alsa] Format float is not supported by hardware, trying default.
AO: [alsa] 48000Hz stereo 2ch s16
VO: [vdpau] 1920x818 => 1920x818 vdpau
[vo/vdpau] Compositing window manager detected. Assuming timing info is inaccurate.
AV: 00:00:14 / 01:58:40 (0%) A-V:  0.000
Saving state.


Exiting... (Quit)
patrick@debian:~/Bureau
 



Rien dans le .xsession-errors

Severian a écrit :


le driver VDPAU ne doit il pas être déclaré dans .xsessionrc ?



Non, je n'ai rien fait de tout ça. wink

Un fichier de configuration compton.conf dans ~/.config/


#################################
#
# Backend
#
#################################

# Backend to use: "xrender" or "glx".
# GLX backend is typically much faster but depends on a sane driver.
backend = "glx";

#################################
#
# GLX backend
#
#################################

glx-no-stencil = true;

# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
# but a 20% increase when only 1/4 is.
# My tests on nouveau show terrible slowdown.
# Useful with --glx-swap-method, as well.
glx-copy-from-front = false;

# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
# May break VSync and is not available on some drivers.
# Overrides --glx-copy-from-front.
# glx-use-copysubbuffermesa = true;

# GLX backend: Avoid rebinding pixmap on window damage.
# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
# Recommended if it works.
# glx-no-rebind-pixmap = true;


# GLX backend: GLX buffer swap method we assume.
# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
# undefined is the slowest and the safest, and the default value.
# copy is fastest, but may fail on some drivers,
# 2-6 are gradually slower but safer (6 is still faster than 0).
# Usually, double buffer means 2, triple buffer means 3.
# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
# Useless with --glx-use-copysubbuffermesa.
# Partially breaks --resize-damage.
# Defaults to undefined.
glx-swap-method = "undefined";

#################################
#
# Shadows
#
#################################

# Enabled client-side shadows on windows.
shadow = true;
# Don't draw shadows on DND windows.
no-dnd-shadow = true;
# Avoid drawing shadows on dock/panel windows.
no-dock-shadow = false;
# Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
clear-shadow = true;
# The blur radius for shadows. (default 12)
shadow-radius = 3;
# The left offset for shadows. (default -15)
shadow-offset-x = -2;
# The top offset for shadows. (default -15)
shadow-offset-y = -2;
# The translucency for shadows. (default .75)
shadow-opacity = 0.85;

# Set if you want different colour shadows
shadow-red = 0.13;
shadow-green = 0.13;
shadow-blue = 0.14;

# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
shadow-exclude = [
#    "! name~=''",
#    "name = 'Notification'",
#    "name = 'Plank'",
#    "name = 'Docky'",
#    "name = 'Kupfer'",
#    "name = 'xfce4-notifyd'",
#    "name *= 'VLC'",
#    "name *= 'compton'",
#    "name *= 'Chromium'",
#    "name *= 'Chrome'",
#    "name *= 'Firefox'",
#    "class_g = 'Conky'",
#    "class_g = 'Kupfer'",
#    "class_g = 'Synapse'",
#    "class_g ?= 'Notify-osd'",
#    "class_g ?= 'Cairo-dock'",
#    "class_g ?= 'Xfce4-notifyd'",
#    "class_g ?= 'Xfce4-power-manager'"
    "name = 'poniesbox'",
    "class_g = 'slop'"
];
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
shadow-ignore-shaped = false;

#################################
#
# Opacity
#
#################################

menu-opacity = 1;
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
alpha-step = 0.06;

# Dim inactive windows. (0.0 - 1.0)
# inactive-dim = 0.2;
# Do not let dimness adjust based on window opacity.
# inactive-dim-fixed = true;
# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
#blur-kern = "7,7,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
#blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
##blur-kern = "3,3,1,1,1,1,1,1,1,1"
blur-background = false;
# Blur background of opaque windows with transparent frames as well.
blur-background-frame = false;
# Do not let blur radius adjust based on window opacity.
blur-background-fixed = false;
blur-background-exclude = [
    "window_type = 'dock'",
    "window_type = 'desktop'"
];

#################################
#
# Fading
#
#################################

# Fade windows during opacity changes.
fading = true;
# The time between steps in a fade in milliseconds. (default 10).
fade-delta = 4;
# Opacity change between steps while fading in. (default 0.028).
fade-in-step = 0.03;
# Opacity change between steps while fading out. (default 0.03).
fade-out-step = 0.03;
# Fade windows in/out when opening/closing
# no-fading-openclose = true;

# Specify a list of conditions of windows that should not be faded.
fade-exclude = [
    "name = 'poniesbox'"
];

#################################
#
# Other
#
#################################

# Try to detect WM windows and mark them as active.
mark-wmwin-focused = true;
# Mark all non-WM but override-redirect windows active (e.g. menus).
mark-ovredir-focused = true;
# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
# Usually more reliable but depends on a EWMH-compliant WM.
use-ewmh-active-win = true;
# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
detect-rounded-corners = true;

# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
# This prevents opacity being ignored for some apps.
# For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
detect-client-opacity = true;

# Specify refresh rate of the screen.
# If not specified or 0, compton will try detecting this with X RandR extension.
refresh-rate = 60;

# Set VSync method. VSync methods currently available:
# none: No VSync
# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental.
# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
# (Note some VSync methods may not be enabled at compile time.)
vsync = "opengl-swc";

# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
# Reported to have no effect, though.
dbe = false;
# Painting on X Composite overlay window. Recommended.
paint-on-overlay = true;

# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
# unless you wish to specify a lower refresh rate than the actual value.
sw-opti = false;

# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
# Known to cause flickering when redirecting/unredirecting windows.
# paint-on-overlay may make the flickering less obvious.
unredir-if-possible = true;

# Specify a list of conditions of windows that should always be considered focused.
focus-exclude = [ ];

# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
detect-transient = true;
# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
detect-client-leader = true;

#################################
#
# Window type settings
#
#################################

wintypes:
{
    tooltip =
    {
        # fade: Fade the particular type of windows.
        fade = true;
        # shadow: Give those windows shadow
        shadow = false;
        # opacity: Default opacity for the type of windows.
        opacity = 0.85;
        # focus: Whether to always consider windows of this type focused.
        focus = true;
    };
};

 



Et  Compton en application au démarrage avec pour commande "compton -b"

l'installation du nvidia-driver par la méthode :


apt-get install nvidia-kernel-dkms nvidia-settings nvidia-driver linux-headers-$(uname -r)
 



Et un fichier xorg.conf basique dans /etc/X11 du type :


Section        "Device"
Identifier    "GeForce GTX 780 Ti"
Driver           "nvidia"
Option         "NoLogo"
EndSection
 



Voilà, si ça peut t'aider smile

EDIT: J'ai fait les tests pour le tearing, je n'ai rien avec Compton.

Pour ce qui est  des vidéos en flash, mais là je m'en fout un peu, rien mis à par quant il y a des explosions, flash de lumière mais dans le sens vertical. Niveau déplacement dans le sens horizontal, tout est OK

Dans la configuration .mpv.conf j'ai commenté l'option :


#deinterlace=yes
#vf=yadif
 



qui fonctionne bien mais me bouffe énormément de ressource et le mot est faible. Il faut que je regarde ça.

Mais la version de MPV est vieille dans les dépots, j'installerai le dernière version plus tard.

Dernière modification par Anonyme (18-04-2016 13:56:52)

#5 18-04-2016 21:18:03

Anonyme
Invité

Re : MPV + Configuration

Rectification

Je me suis gourré de fichier :



backend = "glx";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = "opengl-swc";

# These are important. The first one enables the opengl backend. The last one is the vsync method. Depending on the driver you might need to use a different method.
# The other options are smaller performance tweaks that work well in most cases.
# You can find the rest of the options here: https://github.com/chjj/compton/wiki/perf-guide, and here: https://github.com/chjj/compton/wiki/vsync-guide


# Shadow
shadow = true;      # Enabled client-side shadows on windows.
no-dock-shadow = true;    # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true;   # Don't draw shadows on DND windows.
clear-shadow = true;    # Zero the part of the shadow's mask behind the window (experimental).
shadow-radius = 7;    # The blur radius for shadows. (default 12)
shadow-offset-x = -7;   # The left offset for shadows. (default -15)
shadow-offset-y = -7;   # The top offset for shadows. (default -15)
shadow-exclude = [
 "! name~=''",
 "n:e:Notification",
 "n:e:Plank",
 "n:e:Docky",
 "g:e:Synapse",
 "g:e:Kupfer",
 "g:e:Conky",
 "n:w:*Firefox*",
 "n:w:*Chrome*",
 "n:w:*Chromium*",
 "class_g ?= 'Notify-osd'",
 "class_g ?= 'Cairo-dock'",
 "class_g ?= 'Xfce4-notifyd'",
 "class_g ?= 'Xfce4-power-manager'"
];

# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.

# Fading
fading = true; # Fade windows during opacity changes.
fade-delta = 4; # The time between steps in a fade in milliseconds. (default 10).
fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
#no-fading-openclose = true; # Fade windows in/out when opening/closing

detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what.

# Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; };
};



 




TEST:

https://vimeo.com/13057015

Dernière modification par Anonyme (18-04-2016 21:20:07)

#6 18-04-2016 22:19:37

Severian
Membre
Distrib. : Debian GNU/Linux 9.4 (stretch)
Noyau : Linux 4.14.0-0.bpo.3-amd64
(G)UI : Openbox 3.6.1-4
Inscription : 13-12-2014

Re : MPV + Configuration

hummm ça dépasse mon niveau de compréhension

il y a trop de variables pour ma p'tite tête tongue
une carte amd / ati
deux écrans (pas du tout assortis, 28" et 15")
utilisation de openbox
réglages de compton à comprendre
réglages de mpv à comprendre
les différents drivers (opengl / vdpau / vaapi) et installer les bonnes librairies
le fichier xorg.conf à assortir à tout ça ...

bref ça fait trop
pour l'instant j'ai une configuration qui fonctionne, pas de tearing sur le 28" et peu sur le 15"
bon mpv fait tourner le process à 15-20% pour des vidéos en 720 et 20-30% pour du 1080

je ne sais pas comment régler mpv pour que sur des vidéo hd ou fhd il utilise vdpau et que sur les autres le driver de base ...

bref un jour peut être tongue

Hors ligne

#7 19-04-2016 14:26:25

phlinux
Membre
Distrib. : Buster
Noyau : 5.10
(G)UI : Openbox (+Rox+Feh)
Inscription : 09-05-2009

Re : MPV + Configuration

Bjr,
Déjà est-ce que tu as un ~/.config/mpv.conf ?
Des pistes pour tes réglages :

 ...
#Sortie vidéo
vo = xv,x11,
#Décodage (opengl, vdpau, etc...)
hwdec=auto
...


Pages perso : feh, omegat, udisks, passerelle, schroot vraiment transparent

Hors ligne

#8 19-04-2016 16:51:06

anonyme
Invité

Re : MPV + Configuration

@Severian

tu a un driver libre et une ati
Anonyme a un driver propiétaire et une carte nvidia  et un vdpau nvidia


These libraries provide the Video Decode and Presentation API for Unix.
They provide accelerated video playback (incl. H.264) for the supported
graphics cards.

This package contains the NVIDIA VDPAU driver.
 


toi tu a la version libre (qui va avec mesa )

A moins que les choses évoluent , avec des vidéo de qualité faudra passer par des drivers propriétaires
un gpu contient ce qu il faut pour la vidéo (et la gestion des drm tongue  ) faut il encore que le materiel soit bien géré  hmm

je te cite : => "bon mpv fait tourner le process à 15-20% pour des vidéos en 720 et 20-30% pour du 1080"
avec un driver gpu plus performant ça peut baisser .

@phlinux

je viens d'installer mpv , je n'ai pas de fichier de conf dans mon /home/user/.conf/mpv
faut le créer tongue

Dernière modification par anonyme (19-04-2016 17:08:42)

#9 19-04-2016 18:07:40

Anonyme
Invité

Re : MPV + Configuration

anonyme a écrit :

@Severian
Anonyme a un driver propiétaire et une carte nvidia  et un vdpau nvidia



Et un écran sur 120 HZ  big_smile


Une chose aussi, le compton.conf de mon premier post contrairement à celui que j'ai rectifié me fait du tearing sur les vidéos sur Youtube ( flash ou pas). Chose à approfondir  wink

En tout cas je reposte celui qui va bien chez moi :

compton.conf



backend = "glx";
paint-on-overlay = true;
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
vsync = "opengl-swc";

# These are important. The first one enables the opengl backend. The last one is the vsync method. Depending on the driver you might need to use a different method.
# The other options are smaller performance tweaks that work well in most cases.
# You can find the rest of the options here: https://github.com/chjj/compton/wiki/perf-guide, and here: https://github.com/chjj/compton/wiki/vsync-guide


# Shadow
shadow = true;      # Enabled client-side shadows on windows.
no-dock-shadow = true;    # Avoid drawing shadows on dock/panel windows.
no-dnd-shadow = true;   # Don't draw shadows on DND windows.
clear-shadow = true;    # Zero the part of the shadow's mask behind the window (experimental).
shadow-radius = 7;    # The blur radius for shadows. (default 12)
shadow-offset-x = -7;   # The left offset for shadows. (default -15)
shadow-offset-y = -7;   # The top offset for shadows. (default -15)
shadow-exclude = [
 "! name~=''",
 "n:e:Notification",
 "n:e:Plank",
 "n:e:Docky",
 "g:e:Synapse",
 "g:e:Kupfer",
 "g:e:Conky",
 "n:w:*Firefox*",
 "n:w:*Chrome*",
 "n:w:*Chromium*",
 "class_g ?= 'Notify-osd'",
 "class_g ?= 'Cairo-dock'",
 "class_g ?= 'Xfce4-notifyd'",
 "class_g ?= 'Xfce4-power-manager'"
];

# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.

# Fading
fading = true; # Fade windows during opacity changes.
fade-delta = 4; # The time between steps in a fade in milliseconds. (default 10).
fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
#no-fading-openclose = true; # Fade windows in/out when opening/closing

detect-client-opacity = true; # This prevents opacity being ignored for some apps. For example without this enabled my xfce4-notifyd is 100% opacity no matter what.

# Window type settings
wintypes:
{
  tooltip = { fade = true; shadow = false; };
};



 

Dernière modification par Anonyme (19-04-2016 18:09:18)

#10 19-04-2016 20:50:23

Severian
Membre
Distrib. : Debian GNU/Linux 9.4 (stretch)
Noyau : Linux 4.14.0-0.bpo.3-amd64
(G)UI : Openbox 3.6.1-4
Inscription : 13-12-2014

Re : MPV + Configuration

j'ai fais quelques tests
le fichier mpv.conf

# Use hardware decoding
# Audio
#ao=alsa

# Video
vo = opengl,xv,x11,

hwdec=auto

# border
no-border

# terminal
#no-terminal
quiet
#msg-level=all=error

alang=fr


compton.conf

backend = "glx"; # Enables Opengl backend
paint-on-overlay = true; # These 3 can improve performance, work well in most cases
glx-no-stencil = true;
glx-no-rebind-pixmap = true;
glx-use-copysubbuffermesa = true
#vsync = "opengl"; # Enables one of the vsync methods. Check here for more info: https://github.com/chjj/compton/wiki/vsync-guide

# Fading
fading = true; # Fade windows during opacity changes.
fade-delta = 4; # The time between steps in a fade in milliseconds. (default 10).
fade-in-step = 0.03; # Opacity change between steps while fading in. (default 0.028).
fade-out-step = 0.03; # Opacity change between steps while fading out. (default 0.03).
#no-fading-openclose = true; # Fade windows in/out when opening/closing


vidéo 1080 (mp4 ou mkv)

[stream] Video (+) --vid=1 (*) (h264)
[stream] Audio (+) --aid=1 --alang=und (*) (aac)
File tags:
 major_brand: isom
 minor_version: 1
 compatible_brands: isomavc1
 creation_time: 2016-03-26 19:20:14
Trying to use hardware decoding.
AO: [alsa] 48000Hz stereo 2ch float
VO: [opengl] 1920x1080 => 1920x1080 vdpau


vidéo 720 (mp4 ou mkv)

[stream] Video (+) --vid=1 (*) (h264)
[stream] Audio (+) --aid=1 --alang=und (*) (aac)
File tags:
 major_brand: isom
 minor_version: 1
 compatible_brands: isomavc1iso6
 creation_time: 2016-04-17 10:23:06
Trying to use hardware decoding.
AO: [alsa] 48000Hz stereo 2ch float
VO: [opengl] 1280x720 => 1280x720 vdpau


vidéo "petit format" (avi)

[stream] Video (+) --vid=1 (mpeg4)
[stream] Audio (+) --aid=1 (mp3)
File tags:
 encoder: VirtualDubMod 1.5.10.1 (build 2366/release)
Using software decoding.
AO: [alsa] 48000Hz stereo 2ch s16
VO: [opengl] 720x576 => 720x576 yuv420p


pas de tearing, et pas de blocage de la lecture si je déplace la fenêtre mpv sur le deuxième écran (comme ça me le faisait avec vo=vdpau)
le process ne monde pas à plus de 10% (3 à 5 pour du 720, 5 à 8 pour 1080 et étonnement c'est avec les petites vidéos qu'il est le plus "gourmand" en montant jusqu'à 10%)
je vais laisser comme ça un moment voir si j'ai des erreurs qui apparaissent smile
merci de vos conseils smile

Hors ligne

#11 19-04-2016 20:53:22

Anonyme
Invité

Re : MPV + Configuration

C'est peut-être là que ça se joue :


hwdec=auto
 



Car, c'est sûr, vu les  % que tu donnes, c'est le GPU qui décode tes vidéos wink

Dernière modification par Anonyme (19-04-2016 20:55:20)

#12 19-04-2016 21:00:42

Severian
Membre
Distrib. : Debian GNU/Linux 9.4 (stretch)
Noyau : Linux 4.14.0-0.bpo.3-amd64
(G)UI : Openbox 3.6.1-4
Inscription : 13-12-2014

Re : MPV + Configuration

bhâ je pense que maintenant que je suis sous la barre de 10% le travail est plus partagé entre cpu et gpu tongue

Hors ligne

#13 20-04-2016 07:14:38

anonyme
Invité

Re : MPV + Configuration

447 options quand meme , sur un petit dual core (premiere génération ) ça tourne nickel avec une petite vidéo (gpu GTX770 )
il me reste a tester avec 2 écrans et une vidéo avec plus de qualité
pas de fichier de configuration (pour l'instant )
pour le  tearing , ça me le fait si le gpu est occupé par une autre application (un peu normal ) , manque de fluidité tongue
j'ai environ 10% d utilisation cpu , 3% sur un core et 6% sur l autre core
en plus il me propose de lancer la vidéo (meme pas la peine d'ouvrir une console )
je découvre , habituellement j utilise vlc

#14 20-04-2016 12:41:38

phlinux
Membre
Distrib. : Buster
Noyau : 5.10
(G)UI : Openbox (+Rox+Feh)
Inscription : 09-05-2009

Re : MPV + Configuration

Pareil pour moi je teste. (pasque vlc et ses driver qui n'existent pas : Failed to open VDPAU backend libvdpau_r200.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type" .....)
Ne pas oublier le "classique" lancement en console qui fait apparaître (parfois) des erreurs, ou des manques, de la config.
Par exemple chez phlinux

mpv Deja_Vu.avi


...
[libav/video] mpeg4: Invalid and inefficient vfw-avi packed B frames detected
...
[libav/video] mpeg4: Invalid and inefficient vfw-avi packed B frames detected
[libav/audio] mp3: Header missing << en rouge
...


Pages perso : feh, omegat, udisks, passerelle, schroot vraiment transparent

Hors ligne

#15 21-04-2016 13:05:04

anonyme
Invité

Re : MPV + Configuration

les informations de nvidia-settings , pour VDPAU information
le gpu est en niveau 0 (niveau de 0 a 3 (frequence gpu de 135Mhz et memoire 635Mhz )
(frequence max 1215Mhz et mémoire 7010Mhz)


API version: 1
Supported Codecs:
MPEG1
MPEG2
H264
VC1
MPEG4
DIVX4
DIVX5
 



le gpu ne fait pas grand chose (a voir selon les vidéo )
mode 2 écrans , vidéo sur l écran2 (19 pouces principal 16/9 et 17 pouces le secondaire 4/3) les deux en DVI sur GTX770

ps: pas de xorg.conf (pour le gpu) , config auto du systeme (driver 352.xx)
idem pour mpv , pas de fichier de configuration

Dernière modification par anonyme (21-04-2016 13:09:07)

#16 03-05-2016 15:21:02

--gilles--
Membre
Lieu : Orléans - La Source
Distrib. : Debian 12
Noyau : Linux 6.1.0-18-amd64
(G)UI : Gnome - mutter 43.8-0+deb12u1
Inscription : 15-02-2016

Re : MPV + Configuration

phlinux a écrit :

...
[libav/video] mpeg4: Invalid and inefficient vfw-avi packed B frames detected
...
[libav/video] mpeg4: Invalid and inefficient vfw-avi packed B frames detected
[libav/audio] mp3: Header missing << en rouge
...



As-tu le décodeur-encodeur mp3 lame ?

http://lame.sourceforge.net/

https://packages.debian.org/wheezy/lame


Si tout le monde pense pareil, c'est qu'aucune personne ne pense beaucoup.
 Intel® Core™2 Duo E8500  × 2
4,0 Gio DDR3 - 1333 MHz
Et si vous cherchiez votre solution dans le wiki => https://debian-facile.org/accueil palestine.png

Hors ligne

#17 03-05-2016 16:02:21

phlinux
Membre
Distrib. : Buster
Noyau : 5.10
(G)UI : Openbox (+Rox+Feh)
Inscription : 09-05-2009

Re : MPV + Configuration

Bjr,
Oui il est installé

Pages perso : feh, omegat, udisks, passerelle, schroot vraiment transparent

Hors ligne

Pied de page des forums