Xscreensaver и mplayer в asp12

Автор: aes78 Дата: 19.12.2007 09:27 Как-то они не дружат друг с другом. Стоит в mplayer Stop Xscreensaver, а он работает. Если ли возможность его останавливать, не залезая в xscreensaver-demo?
Re: xscreensaver и mplayer в asp12 19.12.2007 09:35Bircoph Хмм, -stop-xsceensaver?
У меня работает, mplayer-071214-r25386 и
xscreensaver-5.02-1.1.

В выводе mplayer -v посмотрите, что он делает
с xscreensaver и с каким
успехом.
Re: xscreensaver и mplayer в asp12 19.12.2007 10:24aes78 mplayer -v не работает:
---
mplayer -v
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 4, Stepping: 9)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/alexander/.mplayer/codecs.conf'
Reading /home/alexander/.mplayer/codecs.conf: Can't open '/home/alexander/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 115 audio & 237 video codecs
Usage: mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
-vo <drv> select video output driver ('-vo help' for a list)
-ao <drv> select audio output driver ('-ao help' for a list)
vcd://<trackno> play (S)VCD (Super Video CD) track (raw device, no mount)
dvd://<titleno> play DVD title from device instead of plain file
-alang/-slang select DVD audio/subtitle language (by 2-char country code)
-ss <position> seek to given (seconds or hh:mm:ss) position
-nosound do not play sound
-fs fullscreen playback (or -vm, -zoom, details in the man page)
-x <x> -y <y> set display resolution (for use with -vm or -zoom)
-sub <file> specify subtitle file to use (also see -subfps, -subdelay)
-playlist <file> specify playlist file
-vid x -aid y select video (x) and audio (y) stream to play
-fps x -srate y change video (x fps) and audio (y Hz) rate
-pp <quality> enable postprocessing filter (details in the man page)
-framedrop enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
<- or -> seek backward/forward 10 seconds
down or up seek backward/forward 1 minute
pgdown or pgup seek backward/forward 10 minutes
< or > step backward/forward in playlist
p or SPACE pause movie (press any key to continue)
q or ESC stop playing and quit program
+ or - adjust audio delay by +/- 0.1 second
o cycle OSD mode: none / seekbar / seekbar + timer
* or / increase or decrease PCM volume
x or z adjust subtitle delay by +/- 0.1 second
r or t adjust subtitle position up/down, also see -vf expand

* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

vo: x11 uninit called but X11 not inited..
---
Re: xscreensaver и mplayer в asp12 19.12.2007 10:57Bircoph > mplayer -v не работает:

Ну а подумать немного? Естественно, нужно указывать имя
файла. Имелось ввиду то, что к вашим обычным опциям и
параметрам командной строки нужно добавить -v.
Re: xscreensaver и mplayer в asp12 19.12.2007 12:40lkanter или запускать gmplayer Улыбка только сначала yum install mplayer-gui
Re: xscreensaver и mplayer в asp12 20.12.2007 21:56aes78 Ничего не нашел про xscreensaver
---
mplayer -v 'Миллион лет до нашей эры.avi'
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.06GHz (Family: 15, Model: 4, Stepping: 9)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/alexander/.mplayer/codecs.conf'
Reading /home/alexander/.mplayer/codecs.conf: Can't open '/home/alexander/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 115 audio & 237 video codecs
Configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/mplayer --mandir=/usr/share/man --confdir=/etc/mplayer --libdir=/usr/lib --codecsdir=/usr/lib/codecs --enable-largefiles --disable-termcap --disable-bitmap-font --enable-lirc --enable-joystick --disable-dvdread-internal --disable-libdvdcss-internal --enable-menu --disable-nemesi --disable-tremor-internal --disable-svga --enable-xvmc --enable-radio --enable-radio-capture --disable-directfb --enable-runtime-cpudetection --target=i386-linux --language=all --with-xvmclib=XvMCW
CommandLine: '-v' 'Миллион лет до нашей эры.avi'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/alexander/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/alexander/.mplayer/input.conf'
Can't open input config file /home/alexander/.mplayer/input.conf: No such file or directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 81 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support. You will not be able to use your remote control.
get_path('Миллион лет до нашей эры.avi.conf') -> '/home/alexander/.mplayer/Миллион лет до нашей эры.avi.conf'

Playing Миллион лет до нашей эры.avi.
get_path('sub/') -> '/home/alexander/.mplayer/sub/'
[file] File size is 732624896 bytes
STREAM: [file] Миллион лет до нашей эры.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: avi format
AVI file format detected.
list_end=0x2292
======= AVI Header =======
us/frame: 40000 (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 141773 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 272
==========================
list_end=0x10F4
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids FCC: divx (78766964)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 25/1 = 25.000
Start: 0 Len: 141773
Suggested BufferSize: 59800
Quality 10000
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 272
biPlanes 1
biBitCount 24
biCompression 808802372='DX50'
biSizeImage 1044480
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x2186
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 32000/1152 = 27.778
Start: 0 Len: 157526
Suggested BufferSize: 1152
Quality -1
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 32000
avg byte/sec: 10032
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x1
mp3.nBlockSize=362
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x2292
AVI: dmlh found (size=248) (total_frames=141773)
list_end=0x22E2
hdr=Software size=43
Software : VirtualDubMod 1.5.4.1 (build 2178/release)
list_end=0x2B61E3A6
Found movie at 0x280C - 0x2B61E3A6
Reading INDEX block, 299299 chunks for 141773 frames (fpos=727835566).
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x48C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=668502094 (141773) audio size=56891124 (157526)
VIDEO: [DX50] 640x272 24bpp 25.000 fps 943.1 kbps (115.1 kbyte/s)
[V] filefmt:3 fourcc:0x30355844 size:640x272 fps:25.00 ftime:=0.0400
Clip info:
Software: VirtualDubMod 1.5.4.1 (build 2178/release)
get_path('sub/') -> '/home/alexander/.mplayer/sub/'
[file] File size is 518 bytes
STREAM: [file] ./карты.txt
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
SUB: Could not determine file format
Cannot load subtitles: ./карты.txt
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2046x2046
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using SSE optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 32000 Hz 32 kbit Joint-Stereo, BPF: 144
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 32000 Hz, 2 ch, s16le, 32.0 kbit/3.12% (ratio: 4000->128000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 32000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 32000Hz/2ch/s16le
[dummy] Was reinitialized: 32000Hz/2ch/s16le
alsa-init: requested format: 32000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.14a
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa-init: got period size 1024
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy@streamminister.de>
AO: Comment: under developement
Building audio filter chain for 32000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 32000Hz/2ch/s16le
[libaf] Adding filter lavcresample
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
[libaf] Reallocating memory in module lavcresample, old len = 0, new len = 65536
[ffmpeg] aspect_ratio: 2.352941
VDec: vo config request - 640 x 272 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 2.35:1 - prescaling to correct movie aspect.
VO Config (640x272->640x272,flags=0,'MPlayer',0x32315659)
VO: [xv] 640x272 => 640x272 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 355 for hw scaling
[xv] dx: 0 dy: 0 dw: 640 dh: 272
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
[xv] dx: 320 dy: 376 dw: 640 dh: 272
XXX initial v_pts=0.000 a_pos=4464 (0.445) 1 ??% ??% ??,?%
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
Unicode font: 4430 glyphs.
*** [vo] Allocating (slices) mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
[xv] dx: 320 dy: 376 dw: 640 dh: 272.167 21636/21636 3% 0% 1
Uninit audio filters... 0.013 ct: 0.169 21637/21637 3% 0% 1
[libaf] Removing filter lavcresample
[libaf] Removing filter dummy
Uninit audio: mp3lib
Uninit video: ffmpeg
Successfully enabled DPMS
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (Quit)
---
gmplayer, kmplayer, smplayer - страшненькие они какие-то, да и настроек в них как-то, что в mplayer действует, то в них может не действовать, хотя вроде бы фронтэнды.
Re: xscreensaver и mplayer в asp12 20.12.2007 22:53redstrannik А сколько времени проигрывался фильм?
Превысило ли время -v просмотра, достаточное для запуска xscreensaver?
Может от-того и нет ничего о нём в "логе"...

Просто подумал...
Re: xscreensaver и mplayer в asp12 20.12.2007 23:54Bircoph > Ничего не нашел про xscreensaver

И не найдёте:

> mplayer -v 'Миллион лет до нашей эры.avi'

Кто -stop-xscreensaver будет указывать?
Re: xscreensaver и mplayer в asp12 21.12.2007 00:27aes78 Я поверил гуевому интерфейсу, потому что там есть кнопка stop xscreensaver, поэтому я считал, что xscreensaver остановлен в любом случае. Оказалось, что в конфигах mplayer эта кнопка ничего не изменила, когда вручную поменял в gui.conf stopscreensaver на yes, проблема разрешилась.
Re: xscreensaver и mplayer в asp12 21.12.2007 00:29Bircoph Гуи -- это лукавый змий-искуситель.
RSS-материал