[mplayer] dans le framebuffer (résolu)

Applications multimedia / jeux
Avatar de l’utilisateur
Distag
yeomen
Messages : 272
Inscription : dim. 03 avr. 2011, 15:58

[mplayer] dans le framebuffer (résolu)

Message par Distag »

Bonjour,

Suite à la lecture de ce billet http://blog.rom1v.com/2012/04/lire-des- ... ns-un-tty/, j'ai appris qu'il était possible d'afficher des images et de lire une vidéo sans X.
Pour moi, c'est complètement inutile, mais j'aimerais bien tester ça au moins une fois dans ma vie.

J'ai donc installé ceci sur mon poste:

Code : Tout sélectionner

extra/xf86-video-fbdev
extra/fbida
Pour afficher les images, c'est ok.

Mais je n'arrive pas a faire tourner la vidéo, j’obtiens alors pour la commande suivante, cette erreur:

Code : Tout sélectionner

~$ mplayer -vo fbdev filmTest.avi
MPlayer SVN-r35421-4.7.2 (C) 2000-2012 MPlayer Team
199 audio & 415 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing filmTest.avi.
libavformat version 54.36.100 (internal)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x352  12bpp  25.000 fps  862.6 kbps (105.3 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.1.1a (build 1155/release)
Load subtitles in ./
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
VO XOverlay need a subdriver
[VO_SDL] SDL initialization failed: Unable to open mouse.
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
vo: couldn't open the X11 display ()!
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.71.100 (internal)
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
[swscaler @ 0x10ee920]using unscaled yuv420p -> bgra special converter
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.
Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
VO: [fbdev] 640x352 => 640x352 BGRA
Can't put VSCREENINFO: Invalid argument
FATAL: Cannot initialize video driver.

FATAL: Could not initialize video filters (-vf) or video output (-vo).

Exiting... (End of file)
Je ne voie pas comment débloquer mon problème, je me tourne donc vers vous.

Merci d'avance pour toutes vos réponses.
Dernière modification par Distag le ven. 18 janv. 2013, 23:33, modifié 1 fois.
x86_64 | KDE | Clavier Bépo
Tristelune
Elfe
Messages : 516
Inscription : mer. 01 août 2007, 16:38

Re: [mplayer] dans le framebuffer

Message par Tristelune »

Salut, par curiosité, j'ai essayé. Mais j'ai utilisé ceci comme base:

https://bbs.archlinux.org/viewtopic.php?id=36832

Je n'ai pas l'image, mais j'ai le son. Certains ont eu des problèmes similaires,
peut-être que tu arriveras à ta solution. Je n'ai pas creusé plus loin en ce qui me concerne.
Avatar de l’utilisateur
Distag
yeomen
Messages : 272
Inscription : dim. 03 avr. 2011, 15:58

Re: [mplayer] dans le framebuffer

Message par Distag »

Sujet résolu.

Solution:
C'est

Code : Tout sélectionner

mplayer -vo fbdev2 file.avi
et non pas

Code : Tout sélectionner

mplayer -vo fbdev file.avi 
Maintenant, j'ai l'image.
Le son ne me posait pas de problème, c’était juste l'image que je n'avais pas.

Merci beaucoup pour le lien.
x86_64 | KDE | Clavier Bépo
Tristelune
Elfe
Messages : 516
Inscription : mer. 01 août 2007, 16:38

Re: [mplayer] dans le framebuffer (résolu)

Message par Tristelune »

Content que ça ait fonctionné! :D

Du coup je me suis dit que j'allais insister. Après avoir installé les paquets ça ne
voulait pas. C'était parce que je n'avais pas accès au framebuffer. J'ai ajouté
mon utilisateur dans le groupe video et chez moi ça marche aussi. Fantastique! :D
J'ai même un souvenir qu'on peut voir des pdf sans X!
Avatar de l’utilisateur
Distag
yeomen
Messages : 272
Inscription : dim. 03 avr. 2011, 15:58

Re: [mplayer] dans le framebuffer (résolu)

Message par Distag »

Comment?
x86_64 | KDE | Clavier Bépo
Tristelune
Elfe
Messages : 516
Inscription : mer. 01 août 2007, 16:38

Re: [mplayer] dans le framebuffer (résolu)

Message par Tristelune »

Je viens de voir que ça fait partie du paquet fbida, c'est la commande fbgs.
En cherchant j'ai trouvé ceci:

http://kmandla.wordpress.com/2010/04/16 ... lications/

Mais il me semblait qu'il y avait encore un autre programme et je n'arrive plus à y remettre la main dessus.
Sur son blog tu trouveras pas mal d'idées.
Répondre