Vídeos no console

Publicado por In God We Trust em 09/12/2005

[ Hits: 8.210 ]

 


Vídeos no console



Para quem gosta de usar o modo texto, nada como usar ouvindo música, etc. O Mplayer possui um recurso muito interessante e olhando no site do desenvolvedor vi um screenshot como este:
Imagine que legal, você usando o modo texto e um vídeo de sua banda, um filme, rodando de fundo né? Pois bem, basta digitar:

$ mplayer -vo cvidix Nomedoarquivodevideo.xxx

E pronto, seu vídeo estará rodando no fundo. O legal é que isto se aplica a todos os terminais, se você mudar para o tty2, o vídeo estará rodando lá :D

Testei no Slackware com MPlayer-1.0pre7try2, funcionou perfeitamente, tive que rodar como root por causa das permissões do driver cvidix.

Espero que gostem!

Outras dicas deste autor

Pacote abnTeX no Slackware 10.2

Leitura recomendada

Horários diferentes? A culpa é do "UTC"

Simulado LPIC-1 em PT-Br com Virtual CertExam

Pacman 4 com GPG Embarcado

Conversão de vídeos

Instalando o jogo Space Invaders no menu do GRUB

  

Comentários
[1] Comentário enviado por nickmarinho em 21/05/2006 - 18:50h

ô dica boa sô...essa aplicarei mesmo !!!

www.lucianomarinho.com.br

[2] Comentário enviado por slackmen em 11/10/2008 - 11:16h

aqui nao deu certo. Não tenho esse codec de video:

david@darkstar:~$ mplayer -vo help
MPlayer dev-SVN-r27655-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (Family: 15, Model: 6, Stepping: 5)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compilado para CPU x86 com extenções: MMX MMX2 SSE SSE2
Drivers de saída de vídeo disponíveis:
xv X11/Xv
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
gl X11 (OpenGL)
gl2 X11 (OpenGL) - multiple textures version
dga DGA ( Direct Graphic Access V2.0 )
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
svga SVGAlib
aa AAlib
caca libcaca
v4l2 V4L2 MPEG Video Decoder Output
null Null video output
mpegpes MPEG-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
png PNG file
jpeg JPEG file
gif89a animated GIF output
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame

david@darkstar:~$

Qual desses seria o substituto de cvidix?

[3] Comentário enviado por nickmarinho em 11/10/2008 - 11:44h

Aqui também não funciona!

# mplayer -vo cvidix hippiesfromhell-vcd.mpg
MPlayer dev-SVN-r26940
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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 hippiesfromhell-vcd.mpg.
MPEG-PS file format detected.
VIDEO: MPEG1 352x288 (aspect 8) 25.000 fps 1150.0 kbps (143.8 kbyte/s)
vo_cvidix: No vidix driver name provided, probing available ones (-v option for details)!
[nvidia_vid] Found chip: NV34 [GeForce FX 5500]
[nvidia_vid] arch 30 register base 0x7fa14dc09000
[nvidia_vid] detected memory size 256 MB
[nvidia_vid] MTRR set up
[nvidia_vid] video mode: 1280x1024@32
Opening video filter: [scale]
Opening video filter: [spp]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 288 (preferred colorspace: Mpeg PES)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg1] vfm: ffmpeg (FFmpeg MPEG-1)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 5 -> 4
[swscaler @ 0xb2aad0]BICUBIC scaler, from yuv420p to yuyv422 using MMX2
[swscaler @ 0xb2aad0]using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0xb2aad0]using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0xb2aad0]using n-tap MMX scaler for vertical scaling (BGR)
[swscaler @ 0xb2aad0]352x288 -> 352x288
VO: [cvidix] 352x288 => 384x288 Packed YUY2
vo_cvidix: warn: screenwidth and height not set assuming 640x480
[nvidia_vid] setting up a 384x288-0x0 video window (src 352x288), format 0x32595559
[nvidia_vid] set colorkey 0xff00
A: 23.8 V: 23.7 A-V: 0.009 ct: -0.012 577/577 1% 29% 0.3% 6 0

MPlayer interrupted by signal 2 in module: filter_video
A: 23.8 V: 23.8 A-V: 0.025 ct: -0.011 578/578 1% 29% 0.3% 6 0
Exiting... (Quit)



Contribuir com comentário




Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts