동영상 및 음악파일 재생문제(gl, gl2 이외 no video)

iroors의 이미지

Linux : Ubuntu 8.04 Hardy
VGA : ATI Radeon X2300

안녕하세요~

ATI Driver 문제에 이어 또 이렇게 질문드립니다.

이번엔 동영상 및 음악파일이 제대로 재생이 안되는데요.

우선 이렇게 코덱들을 설치하였습니다.

sudo apt-get update
 
sudo apt-get install w32codecs
 
sudo aptitude install gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-plugins-bad-multiverse gstreamer0.10-ffmpeg
 
sudo apt-get install gstreamer0.10-pitfdll gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gxine libxine-main1 libxine-extracodecs ogle ogle-gui

플레이어로는 Kaffeine, Totem Player, xine, vlc 로 테스트 해봤구요.

모두 소리가 안납니다.

(동영상뿐만 아니라 mp3를 재생해도 재생이 안되더군요.)

vlc를 제외하고는 10초쯤 재생되다가 먹통이 되어버립니다.

vlc는 영상은 나오지만 역시 소리는 안나오구요.

터미널에서 mplayer로 테스트를 해보면...

sudo mplayer -vo gl -ao alsa Secret.2007.SE.XViD.AC3-DTS.2AUDIO-WAF.avi 
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 Secret.2007.SE.XViD.AC3-DTS.2AUDIO-WAF.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
[aviheader] Audio stream found, -aid 2
AVI: ODML: Building ODML index (3 superindexchunks).
VIDEO:  [XVID]  800x336  12bpp  23.976 fps  1889.8 kbps (230.7 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.2 (build 2540/release)
SUB: Detected subtitle file format: sami
SUB: Read 839 subtitles.
SUB: Added subtitle file (1): ./Secret.2007.SE.XviD.AC3-DTS.2AUDIO-WAF.smi
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
xscreensaver_disable: Could not find XScreenSaver window.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 800 x 336 (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 2.38:1 - prescaling to correct movie aspect.
[swscaler @ 0x8934890]SwScaler: using unscaled yuv420p -> rgb32 special converter
VO: [gl] 800x336 => 800x336 BGRA 
A:   8.8 V:   8.8 A-V:  0.000 ct:  0.000 212/212  5% 40%  0.5% 1 0 

소리가 재생이 되더군요. (일단 소리가 난다는것에 안도감이...^^;;)

xv, xll, xvidix 등 드라이버를 이용하면 no video로 나오면서 영상은 안나옵니다.

하지만, gl, gl2 드라이버를 이용하면 영상이 계속 깜빡이기는 하지만 재생은 되구요.

(3D 게임을 해보면 계속 깜빡이던데 혹시 이것도 관계가 있을까요?)

왜 이럴까요?

긴글 읽어 주셔서 감사합니다.

조언부탁드려요~^^

doodoo의 이미지

Secret.2007.SE.XViD.AC3-DTS.2AUDIO-WAF.avi <---이 파일이 어떤건지 잘 몰라서 -,.-
테스트를 해 볼수가 없을것 같군요...

혹시 xvid 관련 라이브러리 dev 관련 패키지는 인스톨 하셨습니까?
libxv-dev libxvmc-dev libxvidcore4 libxvidcore4-dev 이런것들....

iroors의 이미지

답변주셔서 감사합니다. 길이 보이네요~^^

코덱설치만으로 끝나는게 아니였군요.

알려주신 4개의 라이브러리 외에 다른것도 필요한가요?

제 검색실력으로는 다른 라이브러리를 못찾겠네요.

Error opening/initializing the selected video_out (-vo) device.

여전히 xv 드라이버가 안먹히네요.

sudo mplayer -vo xv -ao alsa Secret.2007.SE.XViD.AC3-DTS.2AUDIO-WAF.avi 
[sudo] password for z: 
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T8100  @ 2.10GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Cannot load bitmap font: /usr/share/fonts/ttf/korean/baekmuk/batang.ttf
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 Secret.2007.SE.XViD.AC3-DTS.2AUDIO-WAF.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
[aviheader] Audio stream found, -aid 2
AVI: ODML: Building ODML index (3 superindexchunks).
VIDEO:  [XVID]  800x336  12bpp  23.976 fps  1889.8 kbps (230.7 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.5.10.2 (build 2540/release)
SUB: Detected subtitle file format: sami
SUB: Read 839 subtitles.
SUB: Added subtitle file (1): ./Secret.2007.SE.XviD.AC3-DTS.2AUDIO-WAF.smi
xscreensaver_disable: Could not find XScreenSaver window.
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
doodoo의 이미지

혹시 apt-get install 해서 인스톨 하신겁니까?
아니면 소스 가져다가 컴파일 하신겁니까?

만약 저라면 소스 가져다가 컴파일을 한번해보겠습니다.(제가 그러고 있거든요..)

소스 가져다가 .configure 한번 치면 그 결과로 지금 있는 라이브러리가 xv, xvid, gl,gl2
등등을 지원하는지 혹은 alsa . oss등을 지원하는지 바로 표시해 주거든요..

그걸 확인하고 그다음 make, make install 돌립니다. 그러면 바로 /usr/local/ 아래에
설치가 됩니다...

어떤 상황에서는 apt-get 으로 설치한 mplayer 는 자꾸 죽습니다 7.10때에도 그랬고
그전 버젼에서도 그랬습니다...그래서 꼭 컴파일해 쓰게되죠, xine-ui 는 안그럽니다.

한번 테스트 해 보시길 바랍니다.
MPlayer-1.0rc1.tar.bz2 저는 이 버젼을 씁니다.

성공하시길.....

doodoo의 이미지

참고로 저의 configure 결과입니다.

  Enabled optional drivers:
    Input: ftp network pvr tv-v4l2 tv-v4l tv mpdvdkit2 vcd dvb
    Codecs: x264 xvid libavcodec real xanim faad2 libmpeg2 liba52 mp3lib libtheora tremor(internal) l
ibmad
    Audio output: alsa oss nas sdl mpegpes(dvb)
    Video output: xvidix cvidix md5sum sdl pnm jpeg png mpegpes(dvb) opengl xv x11 xover tga
    Audio filters:
  Disabled optional drivers:
    Input: vstream radio live555 cdda dvdread dvdnav smb
    Codecs: qtx libdv amr_wb amr_nb faac musepack libdts speex twolame toolame liblzo gif
    Audio output: sun openal jack polyp esd arts ivtv dxr2
    Video output: winvidix bl zr zr2 ivtv dxr3 dxr2 vesa gif89a fbdev svga caca aa ggi xmga mga dga xvmc dfbmga directfb tdfx_vid s3fb tdfxfb 3dfx
    Audio filters: ladspa

어...이상하군..전엔 x264가 disable 되어 있었는데....

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.