Re: squeeze, accelerazione video
Il giorno Thu, 27 Jan 2011 12:06:55 +0100
ag <fi3rizi0@gmail.com> ha scritto:
> Salve, uso debian squeeze.
> sapete come abilitare l'accelerazione video (GPU) su vlc e mplayer?
> vlc 1.1.3 mi lascia l'opzione in grigio non selezionabile
con mplayer ho risolto.
Andiamo dall'inizio
1) ho cercato di riprodurre video fullhd presi da questo sito:
http://www.h264info.com/clips.html
2) $ mplayer -vo vdpau -vc ffh264vdpau I\ Am\ Legend\ -\ Trailer.mp4
non andava il video, senza -vo avevo un mucchio di errori e niente
video :-)
...
Error while decoding frame!
[h264_vdpau @ 0xb653af00]get_buffer() failed (-1 0 0 (nil))
[h264_vdpau @ 0xb653af00]decode_slice_header error
[h264_vdpau @ 0xb653af00]no frame!
Error while decoding frame!
[h264_vdpau @ 0xb653af00]B picture before any references, skipping
[h264_vdpau @ 0xb653af00]decode_slice_header error
[h264_vdpau @ 0xb653af00]no frame!
Error while decoding frame!
Too many audio packets in the buffer: (4096 in 2843267 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.
FATAL: Could not initialize video filters (-vf) or video output (-vo).
Exiting... (End of file)
3) seguito il consiglio del forum di nvidia
http://www.nvnews.net/vbulletin/showthread.php?t=123819
cioè
export VDPAU_TRACE=1
export VDPAU_NVIDIA_DEBUG=3
questa volta
$ mplayer -vo vdpau -vc ffh264vdpau I\ Am\ Legend\ -\ Trailer.mp4
riproduceva il video, ma a terminale avevo ancora più errori :-)
(una sfilza di numeri, ricordo tantissimi 16, non li riporto perché
non li ho salvati)
4) ho fatto allora quello che forse era la prima cosa da fare, leggere
il README :-P
http://it.download.nvidia.com/XFree86/Linux-x86/195.36.31/README/editxconfig.html
Remove the following lines:
Load "dri"
Load "GLCore"
In the Module section of the file, add the line (if it does not already
exist):
Load "glx"
Ho fatto che rimuovere quindi *tutti* i "Load" in "Module" lasciando
soltanto Load "glx"; già che avevo aperto vim ho commentato anche il
compositing
Riavviato gdm3
$ mplayer -vo vdpau -vc ffh264vdpau I\ Am\ Legend\ -\ Trailer.mp4
ha funzionato correttamente
Restano quindi 2 questioni ancora in sospeso:
a) perché non riesco a selezionare "usa accelerazione gpu
(sperimentale)" in vlc 1.1.3?
qua dicono
http://www.sidux.com/index.php?name=PNphpBB2&file=printview&t=21307&start=0
"And GPU acceleration is deactivated in the debian package. "
e anche qua
http://wiki.debian.org/DebianMultimedia/BitsFrom
VDPAU hardware acceleration in ffmpeg/mplayer (but feedback is
welcome!)
Qualcuno può confermare?
b) posso riabilitare il compositing?
adesso non provo perché devo vedere un bel po di video in fullhd :-P
p.s.
ho disinstallato i libva che avevo installato, pare non servano
apt-get purge vdpau-va-driver vainfo libva-x11-1 libva1
p.p.s
come scritto qui
http://osdir.com/ml/debian-user-debian/2011-01/msg01105.html
ho editato il mio ~/.mplayer/config
con quello che usciva da qua
mplayer -vc help | grep vdpau
p.p.p.s
riporto il mio xorg.conf
$ cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
#FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection
Section "Module"
# Load "extmod"
# Load "record"
# Load "dbe"
# Load "dri"
# Load "dri2"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
#Section "Extensions"
# Option "Composite" "Enable"
#EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
Identifier "Card0"
# Driver "nouveau"
Driver "nvidia"
Option "NoLogo" "true"
VendorName "nVidia Corporation"
BoardName "C79 [ION]"
BusID "PCI:3:0:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
# SubSection "Display"
# Viewport 0 0
# Depth 1
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 4
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 8
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 15
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 16
# EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Reply to: