[MPlayer-users] cvidix:nvidia console only mode not working (no X)
Trey Blancher
ectospasm+mplayer-users at gmail.com
Sat Mar 14 21:39:22 CET 2009
I'm trying to get the -vo cvidix:nvidia driver to display a movie in
text-only console mode. I'm trying really hard not to use X Windows,
since this hardware is flaky
enough as it is. I get the furthest with the following command:
sudo mplayer -v -vo cvidix:nvidia example.avi
Here's the console output from that command (see below the output for
further discussion):
MPlayer SVN-r28938-4.3.2 (C) 2000-2009 MPlayer Team
CPU vendor name: AuthenticAMD max cpuid level: 1
CPU: AMD Opteron(tm) Processor 242 (Family: 15, Model: 5, Stepping: 1)
extended cpuid-level: 24
extended cache-info: 67141952
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNowExt: 1 SSE: 1 SSE2: 1 SSSE3: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowExt SSE SSE2 CMOV
get_path('codecs.conf') -> '/home/trey/.mplayer/codecs.conf'
Reading /home/trey/.mplayer/codecs.conf: Can't open
'/home/trey/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 137 audio & 296 video codecs
Configuration: --with-vidix-drivers=nvidia
CommandLine: '-v' '-vo' 'cvidix:nvidia' 'example.avi'
init_freetype
get_path('font/font.desc') -> '/home/trey/.mplayer/font/font.desc'
font: can't open file: /home/trey/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/trey/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/trey/.mplayer/input.conf'
Can't open input config file /home/trey/.mplayer/input.conf: No such file or
directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or
directory
Falling back on default (hardcoded) input config
get_path('example.avi.conf') -> '/home/trey/.mplayer/example.avi.conf'
Playing example.avi.
get_path('sub/') -> '/home/trey/.mplayer/sub/'
[file] File size is 221428314 bytes
STREAM: [file] example.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=0x20A0
======= AVI Header =======
us/frame: 33366 (fps=29.971)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 46747 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 552 x 414
==========================
list_end=0x107C
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids FCC: xvid (64697678)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 29970/1000 = 29.970
Start: 0 Len: 46747
Suggested BufferSize: 0
Quality 10000
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 552
biHeight 414
biPlanes 1
biBitCount 24
biCompression 1145656920='XVID'
biSizeImage 685584
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x20A0
==> 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: 16000/1 = 16000.000
Start: 0 Len: 0
Suggested BufferSize: 8000
Quality -1
Sample size: 1
==========================
Found 'wf', 16 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1
bits/sample: 0
cbSize: 0
==========================================================================
list_end=0xD177322
Found movie at 0x20AC - 0xD177322
Reading INDEX block, 111731 chunks for 46747 frames (fpos=219640618).
AVI index offset: 0x20A8 (movi=0x20AC idx0=0x4 idx1=0xCAA)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial v_pts=0.000 a_pos=0 (0.000)
AVI video size=193728813 (46747) audio size=24953800 (24953800)
VIDEO: [XVID] 552x414 24bpp 29.970 fps 993.6 kbps (121.3 kbyte/s)
Auto-selected AVI audio ID = 1
[V] filefmt:3 fourcc:0x44495658 size:552x414 fps:29.970 ftime:=0.0334
get_path('sub/') -> '/home/trey/.mplayer/sub/'
vidixlib: PROBING: nvidia
[nvidia_vid] Found chip: NV43 [GeForce 6600 LE]
vidixlib: nvidia probed o'k
vidixlib: will use nvidia driver
vidixlib: Attempt to initialize driver at: 0x48a9d0
[nvidia_vid] arch 40 register base 0x7f1dec956000
[nvidia_vid] detected memory size 256 MB
[nvidia_vid] MTRR set up
[nvidia_vid] video mode: 640x400 at 4
vidixlib: 'nvidia'successfully loaded
[VO_SUB_VIDIX] Description: NVIDIA RIVA OVERLAY DRIVER.
[VO_SUB_VIDIX] Author: Sascha Sommer <saschasommer at freenet.de>.
==========================================================================
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, 48000 Hz 128 kbit Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Trying every known audio driver...
ao2: 48000 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
alsa-init: requested format: 48000 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.16
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 at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 552 x 414 (preferred colorspace: Planar YV12)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (552x414->552x414,flags=0,'MPlayer',0x32315659)
[swscaler @ 0xca2ca0]BICUBIC scaler, from yuv420p to yuyv422 using MMX2
[swscaler @ 0xca2ca0]lum srcW=552 srcH=414 dstW=552 dstH=414
xInc=65536 yInc=65536
[swscaler @ 0xca2ca0]chr srcW=276 srcH=207 dstW=276 dstH=414
xInc=65536 yInc=32768
REQ: flags=0x437 req=0x0
VO: [cvidix] 552x414 => 552x414 Packed YUY2
VO: Description: console VIDIX
VO: Author: Sascha Sommer
[nvidia_vid] setting up a 552x414-0x0 video window (src 552x414),
format 0x32595559
vosub_vidix: using 3 buffer(s)
[nvidia_vid] set colorkey 0xff00
*** [vo] Allocating mp_image_t, 560x414x16bpp YUV packed, 463680 bytes
*** [scale] Allocating (slices) mp_image_t, 560x416x12bpp YUV planar,
349440 bytes
A: 0.4 V: 0.0 A-V: 0.389 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0 [J
A: 0.4 V: 0.0 A-V: 0.358 ct: 0.003 2/ 2 ??% ??% ??,?% 1 0 [J
*** [scale] Allocating (slices) mp_image_t, 560x416x12bpp YUV planar,
349440 bytes
get_path('subfont.ttf') -> '/home/trey/.mplayer/subfont.ttf'
get_path('subfont.ttf') -> '/home/trey/.mplayer/subfont.ttf'
A: 0.4 V: 0.1 A-V: 0.348 ct: 0.007 3/ 3 ??% ??% ??,?% 2 0 [J
*** [scale] Allocating (slices) mp_image_t, 560x416x12bpp YUV planar,
349440 bytes
A: 0.4 V: 0.1 A-V: 0.332 ct: 0.010 4/ 4 ??% ??% ??,?% 3 0 [
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: mp3lib
Uninit video: ffmpeg
alsa-uninit: pcm closed
vo: x11 uninit called but X11 not initialized..
Exiting... (Quit)
>From that output I'd expect to see video (it doesn't say "no video").
And from the documentation I've read that's how it's supposed to work.
Not every time I've run that command I've checked the other virtual
consoles to make sure it's not playing on any of them. I've made sure
the nvidia kernel module is loaded, although it seems to be irrelevant
whether it's actually loaded since I get (apparently to my untrained
eyes) identical behavior in both cases.
The audio does seem to work as advertised, however.
More information about the MPlayer-users
mailing list