2012-10-17 2 views
0

mplayer을 사용하여 프레임 버퍼에서 비디오를 재생하려고 시도했으며 프레임 버퍼 드라이버로 uvesafb을 사용하고 있습니다.uplafb 프레임 버퍼의 mplayer가 비디오 재생 전에 검은 색 화면을 표시합니다.

/boot/vmlinuz-2.6.32 root=UUID=7ece6c10-7255-4f21-8cd8-edb096233969 ro quiet console=tty2 nomodeset video=uvesafb:mode_option=1920x1080-16,mtrr=3,scroll=ywrap 

하지만 mplayer으로 동영상을 재생할 때 화면이 잠시 검은 색이 될 것이다, 리셋처럼 보인다 또는 재생하기 전에 화면을 다시 초기 : 보드는 VIA EPIA-N800

GRUB 부트 설정은이 비디오. 이 명령은 같다 :

mplayer -vo fbdev /opt/1.avi 

그리고이 같은 GRUB 부트 설정을 변경하면 출력은

[email protected]:/opt/ytmp# mplayer -vo fbdev /opt/1.avi 
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team 
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 /opt/1.avi. 
AVI file format detected. 
[aviheader] Video stream found, -vid 0 
[aviheader] Audio stream found, -aid 1 
VIDEO: [] 720x576 24bpp 25.000 fps 5459.1 kbps (666.4 kbyte/s) 
Clip info: 
Software: MEncoder 1.0rc3-4.4.4 
========================================================================== 
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough 
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES) 
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 
Unsupported PixelFormat -1 
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2) 
========================================================================== 
========================================================================== 
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3 
AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000) 
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3) 
========================================================================== 
AO: [pulse] Init failed: Connection refused 
Failed to initialize audio driver 'pulse' 
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) 
Starting playback... 
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12) 
Could not find matching colorspace - retrying with -vf scale... 
Opening video filter: [scale] 
VDec: using Planar YV12 as output csp (no 0) 
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect. 
[swscaler @ 0xb5f167a0]using unscaled yuv420p -> rgb565 special converter 
VO: [fbdev] 720x576 => 768x576 BGR 16-bit 
A: 75.0 V: 75.0 A-V: 0.000 ct: 0.024 1875/1875 19% 1% 0.7% 0 0 

MPlayer interrupted by signal 2 in module: sleep_timer 
A: 75.0 V: 75.0 A-V: 0.000 ct: 0.024 1876/1876 19% 1% 0.7% 0 0 
Exiting... (Quit) 

입니다 : 문제는 나타나지 않았다

/boot/vmlinuz-2.6.32 root=UUID=7ece6c10-7255-4f21-8cd8-edb096233969 ro quiet console=tty2 vga=0x317 

합니다. 나는 양쪽 mplayer 출력을 비교했지만 출력은 동일합니다. 이 문제를 해결할 방법이 있습니까?

답변

5

첫 번째 경우 (인수 = nomodeset 비디오 = uvesafb : mode_option = 1920x1080-16) KMS (커널 모드 설정)를 비활성화하고 대신 uvesafb를 사용합니다. KMS가 비활성화 된 경우 가상 터미널과 X11/framebuffer 사이를 전환하면 잠시 동안 화면이 검정색으로 바뀝니다. 두 번째 경우에는 해상도와 KMS가 설정됩니다. 따라서 터미널과 프레임 버퍼간에 문제없이 전환 할 수 있습니다.

+0

그렇다면'mplayer'를 X11/framebuffer가 아닌 가상 터미널로 옮길 수있는 방법이 있습니까? – billy3321

+0

아니요, 가상 터미널에 이미지를 그릴 수 없습니다. 가상 터미널은 텍스트 전용입니다. 어떻게 든 mplayer는 아스키 아트처럼 텍스트로 이미지를 바꿀 수 있습니다 ... – SuperCat

+0

대신 vga 매개 변수를 사용하려고합니다. 따라서 hwinfo --framebuffer를 사용하여 설정을 가져오고'Mode 0x0367 : 1920x1080 (+3840) , 16 bits'로 설정하고 'vga = 0x317'에서 'vga = 0x367'로 전환합니다. 그러나 화면이 1920x1080이 아니며 mplayer가 비디오를 재생하기 전에 화면이 검은 색으로 표시됩니다. 문제는 여전히 있습니다. – billy3321

관련 문제