Дано:
Компьютер с ALTLinux подключенный к бранчу p6
$ uname -r
3.0.68-std-def-alt0.M60P.1
Установленные mplayer и mencoder
$ rpm -qa | grep mplayer
gnome-mplayer-1.0.4-alt0.M60P.1
mplayer-tools-1.0-alt35.32772.4.M60P.2
mplayer-1.0-alt35.32772.4.M60P.2
$ rpm -qa | grep mencoder
mencoder-1.0-alt35.32772.4.M60P.2
Имеется следующий файл:
$ mediainfo file.mkv
General
Unique ID : 174827575940219710117471554007524402917 (0x838690FD054FE72E9DC08502625B66E5)
Complete name : file.mkv
Format : Matroska
File size : 8.24 GiB
Duration : 1h 35mn
Overall bit rate : 12.3 Mbps
Encoded date : UTC 2009-10-17 12:09:57
Writing application : mkvmerge v2.9.8 ('C'est le bon') built on Aug 13 2009 12:49:06
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 35mn
Bit rate : 10.3 Mbps
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.281
Stream size : 6.77 GiB (82%)
Writing library : x264 core 76 r1271 496d79d
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=10343 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language : English
Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : A_AC3
Duration : 1h 35mn
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 307 MiB (4%)
Title : AC3 5.1 448 kbps
Language : Russian
Audio #2
ID : 3
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : A_DTS
Duration : 1h 35mn
Bit rate mode : Constant
Bit rate : 1 510 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 1.01 GiB (12%)
Title : DTS 5.1 1536 kbps
Language : English
Text
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Необходимо вторую звуковую дорожку (DTS 5.1) перекодировать в AC3 с битрейтом 384, делаю так:
$ mencoder -ovc frameno -aid 1 -channels 6 -oac lavc -lavcopts acodec=ac3:abitrate=384 -of avi -o sound.avi file.mkv
MEncoder 32772-4.5.3 (C) 2000-2011 MPlayer Team
161 audio & 351 video codecs
success: format: 0 data: 0x0 - 0xface1ea
libavformat file format detected.
[matroska,webm @ 0x8d7f560] max_analyze_duration reached
[matroska,webm @ 0x8d7f560] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0, -alang rus, AC3 5.1 448 kbps
[lavf] stream 2: audio (dca), -aid 1, -alang eng, DTS 5.1 1536 kbps
[lavf] stream 3: subtitle (unknown), -sid 0, -slang eng
VIDEO: [H264] 1920x800 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1920x800 fps:23.976 ftime:=0.0417
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, s16le, 1536.0 kbit/33.33% (ratio: 192000->576000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
[ac3 @ 0x8707780]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:5757.6s 138046f (100%) 43.89fps Trem: 0min 266mb A-V:-0.021 [0:383]
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Recommended video bitrate for 650MB CD: 551
Recommended video bitrate for 700MB CD: 624
Recommended video bitrate for 800MB CD: 770
Recommended video bitrate for 2 x 650MB CD: 1498
Recommended video bitrate for 2 x 700MB CD: 1644
Recommended video bitrate for 2 x 800MB CD: 1935
Video stream: 0.767 kbit/s (95 B/s) size: 552184 bytes 5757.669 secs 138046 frames
Audio stream: 384.000 kbit/s (47999 B/s) size: 276372480 bytes 5757.760 secs
Тоесть, mencoder отработал без ошибок и на выходе имею файл:
$ mediainfo sound.avi
General
Complete name : sound.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 271 MiB
Duration : 1h 35mn
Overall bit rate : 395 Kbps
Writing application : MEncoder 32772-4.5.3
Writing library : MPlayer
Video
ID : 0
Format : FrNo
Codec ID : FrNo
Duration : 1h 35mn
Bit rate : 767 bps
Width : 1 920 pixels
Height : 800 pixels
Display aspect ratio : 2.40:1
Frame rate : 23.976 fps
Bits/(Pixel*Frame) : 0.000
Stream size : 539 KiB (0%)
Audio
ID : 1
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 2000
Duration : 1h 35mn
Bit rate mode : Constant
Bit rate : 384 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 264 MiB (97%)
Alignment : Aligned on interleaves
Interleave, duration : 32 ms (0.77 video frame)
Interleave, preload duration : 512 ms
Пытаюсь его воспроизвести и имею следующее:
$ mplayer sound.avi
MPlayer 32772-4.5.3 (C) 2000-2011 MPlayer Team
161 audio & 351 video codecs
Playing sound.avi.
Cache fill: 0.00% (0 bytes)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [FrNo] 1920x800 24bpp 23.976 fps 0.8 kbps ( 0.1 kbyte/s)
Clip info:
Software: MEncoder 32772-4.5.3
Load subtitles in ./
==========================================================================
Cannot find codec matching selected -vo and video format 0x6F4E7246.
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
A: 736.8 (12:16.8) of 5822.3 ( 1:37:02.2) ??,?% 99%
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
A: 835.1 (13:55.0) of 5822.3 ( 1:37:02.2) 0.2% 99%
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
A: 884.2 (14:44.2) of 5822.3 ( 1:37:02.2) 0.2% 99%
[ac3 @ 0x87b9500]exponent out-of-range
[ac3 @ 0x87b9500]error decoding the audio block
...
И естественно, никакого звука не слышу. Рядом стоит старенький комп с подлюченным бранчем 5.1, и там всё работает как надо. Та же самая строчка выдает великолепный результат. Хочется понять почему на p6 не работает, либо нужно еще что-то доустановить, либо я словил баг?
Кстати, подобным образом пытался пережать ac3 звук, результат тот же. До видео пока не добрался... в процессе.