Strona 1 z 1

mplayer - ogg - nie ma dźwięku

: 08 listopada 2009, 13:05
autor: thx4
Chciałem obejrzeć animację Big Buck Bunny. ¦ciągnąłem wersję zapisaną w formacie ogg i w mplayerze obraz działa, natomiast zamiast dźwięku są słabo słyszalne trzaski, praktycznie ich nie słychać. W nakładce Smplayer jest to samo.
Zainstalowane kodeki:

Kod: Zaznacz cały

ii  libtheora0                           1.0-2.1                      The Theora Video Compression Codec
ii  libvorbis0a                          1.2.3-3                      The Vorbis General Audio Compression Codec 
ii  libvorbisenc2                        1.2.3-3                      The Vorbis General Audio Compression Codec 
ii  libvorbisfile3                       1.2.3-3                      The Vorbis General Audio Compression Codec
ii  vorbis-tools                         1.2.0-6                      several Ogg Vorbis tools
Log z mplayera:

Kod: Zaznacz cały

[12:56:59][~$] mplayer big_buck_bunny_480p_stereo.ogg 
MPlayer SVN-r29789 (C) 2000-2009 MPlayer Team
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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 big_buck_bunny_480p_stereo.ogg.
[Ogg] stream 0: video (Theora v3.2.1), -vid 0
[Ogg] stream 1: audio (Vorbis), -aid 0
Ogg file format detected.
VIDEO:  [theo]  854x480  24bpp  24.000 fps    0.0 kbps ( 0.0 kbyte/s)
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[theora @ 0x89ac520]Missing extradata!
Could not open codec.
VDecoder init failed :(
Opening video decoder: [theora] Theora/VP3
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x8a8abc0]using unscaled yuv420p -> rgb32 special converter
VO: [gl] 854x480 => 854x480 BGRA 
Selected video codec: [theora] vfm: theora (Theora (free, reworked VP3))
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [ffvorbis] afm: ffmpeg (FFmpeg Vorbis)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 144.2 V: 144.2 A-V:  0.002 ct: -0.011 149/149 26% 22%  2.2% 0 0 
Exiting... (Quit)
Najwidoczniej problem jest w tym momencie

Kod: Zaznacz cały

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[theora @ 0x89ac520]Missing extradata!
Could not open codec. 
Natomiast nic nie znalazłem w sieci konkretnego.

: 08 listopada 2009, 15:40
autor: ilin
Spróbuj inny kodek wymusić

Kod: Zaznacz cały

adam@debian ~ % mplayer -afm help
MPlayer SVN-r29850-4.3.4 (C) 2000-2009 MPlayer Team
Dostępne (wkompilowane) kodeki/sterowniki audio:
    afm:    info:  (comment)
   mp3lib  MPEG layer-2, layer-3 (Optimized to MMX/SSE/3Dnow!)
   liba52  AC3 decoding with liba52
    hwac3  AC3/DTS pass-through S/PDIF
    hwmpa  MPEG audio pass-through (fake decoder) (For hardware decoders)
   ffmpeg  FFmpeg/libavcodec audio decoders
      pcm  Uncompressed PCM audio decoder
   dvdpcm  Uncompressed DVD/VOB LPCM audio decoder
     alaw  aLaw/uLaw audio decoder
 imaadpcm  IMA ADPCM audio decoder
  msadpcm  MS ADPCM audio decoder
 dk3adpcm  Duck Corp. DK3 ADPCM decoder
    msgsm  native GSM/MSGSM audio decoder
    dshow  Win32/DirectShow decoders
      dmo  Win32/DMO decoders
      acm  Win32/ACM decoders
      vqf  TWinVQ decoder (Ported from MPlayerXP)
  qtaudio  QuickTime Audio Decoder (uses win32 quicktime DLLs)
     faad  AAC (MPEG2/4 Advanced Audio Coding) (uses libfaad2)
   tremor  Ogg/Vorbis audio decoder
   libmad  libmad mpeg audio decoder (based on Xine's libmad/xine_decoder.c)
  realaud  RealAudio decoder (binary real audio codecs)

: 08 listopada 2009, 17:32
autor: thx4
Ręczne wymuszenie kodeku vorbis podziałało. Wychodzi na to, że stosował inny kodek audio dla tego filmu. Jest jakaś możliwość przypisania np. plików ogg konkretny kodek?

: 08 listopada 2009, 18:22
autor: ilin
Spróbuj zdefiniować w pliku ~/.mplayer/config dla gmplayera ~/.mplayer/gui.conf

Ale nie wiem jak to będzie miało się do innych formatów.

Możesz podać więcej kodeków to mplayer będzie próbował kilku.