[mplayer] telnet으로 접속해서 콘솔의 X에 영화상영 질문

beprog의 이미지

redhat 9.0, mplayer 0.90rc5-3.2.2 를 사용중입니다.

telnet으로 접속한 후에 서버의 모니터(x 환경)에 mplayer 실행시킬 수 있을까요? 오늘 갑자기 궁금해졌습니다.

원격의 컴에서 서버로 telnet 접속하고 root가 된 후 아래 명령을 실행하였습니다.

Quote:

# mplayer /var/ftp/pub/movie/스파이더맨/스파이더맨_CD1.avi
Using GNU internationalization

Original domain: messages

Original dirname: /usr/share/locale

Current domain: mplayer

Current dirname: /usr/local/mplayer/share/locale

MPlayer 0.90rc5-3.2.2 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 3)

Detected cache-line size is 64 bytes

CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/mplayer/etc/mplayer/mplayer.conf

Reading config file /root/.mplayer/config

Warning unknown option sub_unicode at line 4

Reading /root/.mplayer/codecs.conf: can't open '/root/.mplayer/codecs.conf': 그런 파일이나 디렉토리가 없음

Reading /usr/local/mplayer/etc/mplayer/codecs.conf: 50 audio & 136 video codecs

font: can't open file: /root/.mplayer/font/font.desc

Font /usr/local/mplayer/share/mplayer/font/font.desc loaded successfully! (8336 chars)

Using Linux hardware RTC timing (1024Hz).

Can't open input config file /root/.mplayer/input.conf : 그런 파일이나 디렉토리가 없음

Input config file /usr/local/mplayer/etc/mplayer/input.conf parsed : 52 binds

Playing /var/ftp/pub/movie/스파이더맨/스파이더맨_CD1.avi

Cache fill: 0.00% (0 bytes) AVI file format detected.

VIDEO: [DIV3] 640x352 24bpp 23.98 fps 1529.1 kbps (186.7 kbyte/s)

Clip info:

Software: Nandub v1.0rc2

SUB: Detected sub file: /var/ftp/pub/movie/스파이더맨/스파이더맨_CD1.smi

SUB: Detected subtitle file format: sami

SUB: Read 552 subtitles.

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

MP3lib: init layer2&3 finished, tables done

AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)

Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

vo: couldn't open the X11 display ()!

vo: couldn't open the X11 display ()!

[vo_gl] Using 4 as slice_height (0 means image_height).

vo: couldn't open the X11 display ()!

vo: couldn't open the X11 display ()!

vo: couldn't open the X11 display ()!

SDL: Initializing of SDL failed: No available video device.

fbdev: Can't open /dev/fb0: 그런 장치가 없음

==========================================================================

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))

==========================================================================

Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int

AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)

AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)

Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...

Starting playback...

VDec: vo config request - 640 x 352 (preferred csp: Planar YV12)

Could not find matching colorspace - retrying with -vop scale...

Opening video filter: [scale]

VDec: using Planar YV12 as output csp (no 0)

Movie-Aspect is undefined - no prescaling applied.

Using MMX2 for colorspace transform

SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter

VO: [png] 640x352 => 640x352 BGR 24-bit

PNG Warning: compression level set to 0, compression disabled!

PNG Info: Use the -z <n> switch to set compression level from 0 to 9.

PNG Info: (0 = no compression, 1 = fastest, lowest - 9 best, slowest compression)

A: 0.1 V: 0.0 A-V: 0.070 ct: 0.000 1/ 1 0% 0% 0.0% 0 0 3%
A: 0.1 V: 0.0 A-V: 0.097 ct: 0.004 2/ 2 0% 0% 0.0% 0 0 3%
A: 0.2 V: 0.1 A-V: 0.132 ct: 0.008 3/ 3 0% 0% 0.0% 0 0 3%
...
...

그 결과 화면은 나오지 않고 소리만 들렸습니다. 또 현재 디렉토리에 *.png파일이 많이 만들어졌습니다. 제 생각엔 x를 열지 못해서 png 그림파일로 저장한 것 같습니다. 옵션을 조정하면 가능할 것 같은데 잘 안되네요.

-vo xv
-vo x11
-vo gl

로 했을 때도 마찬가지 였습니다.

한가지 걱정되는 root로 로그인 하지 않았다는 겁니다. 다른 일반 사용자로 로그인한 후 su로 root가 되었는데 이런 경우 root의 홈디렉토리에 있는 mplayer 설정파일을 제대로 사용하지 못하는 게 아닐까요?

hys545의 이미지

우선 제가 알기로는 텔넷에서는 x 못엽니다
x manager 이거 스면 x풀그림 원격에서 돌릴수ㅡ 잇습니다
이걸로 리녹스 둠도 하는사람 잇습니다.
이런 풀그림은 윈용도 잇습니다.. :cry:
그리고 su - 이롷게 치면 root의 환경설정 파일 쓸수 잇습니다. 8)

즐린

advanced의 이미지

제가 보았을때는 root로 접속한것이 아니여서 root 의 환경설정 파일을

읽지 않아서 안된건 아닌것 같습니다. mplayer 는 su 로 다른 계정이

되었을때 그 임시로 된 계정의 환경설정 파일을 읽습니다.

그리고 메시지에서 볼 수 있듯이 원인은

Quote:
vo: couldn't open the X11 display ()!

인것 같군요..

기본적인 환경이 갖추어 졌을때

원격 호스트에서
export DISPLAY=your_host:0

로컬 호스트에서
xhost +remote_host

위와 같은 설정으로 당신의 X Server 에 원격의 호스트의 X Client를

돌리는 것이 가능합니다.

모든 응용프로그램은 사용하는데 지장이 없었지만(심지어 VMware) 까지

그러나 저도 전에 위의 방법이나 X Manager 로 Mplayer 를 돌리는

테스트를 해본적이 있었는데 실패했군요..

그리고 소리가 나셨나도 하셨는데 제가 잘 몰라서 그러겠지만 좀

의아 합니다. 저는 불가능 하다고 알고 있거든요 :)

- Advanced -

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.