Opened 15 years ago
Last modified 15 years ago
#2011 new defect
lavcac3enc: Error at audio filter chain pre-init!
| Reported by: | Owned by: | reimar | |
|---|---|---|---|
| Priority: | normal | Component: | af |
| Version: | unspecified | Severity: | normal |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Reproduced by developer: | no | Analyzed by developer: | no |
Description
Hello,
I'm trying the following:
$ mplayer -channels 6 -ao alsa:device=iec958 -af lavcac3enc -vo null 2L38SACD_tr1_mch_96kHz.flac
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
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 2L38SACD_tr1_mch_96kHz.flac.
Detected file format: raw FLAC (libavformat)
[flac @ 0x8826bc0]max_analyze_duration reached
[lavf] stream 0: audio (flac), -aid 0
Clip info:
ALBUM: MOZART Violin Concertos
ARTIST: Maianne Thorsen / TrondheimSolistene
COMMENT: Lindberg Lyd (2L38SACD) Recorded in DXD.
COMPOSER: WOLFGANG AMADEUS MOZART 1756–1791
DATE: 21. desember 2007
disc: 1
GENRE: Classical
PERFORMER: Maianne Thorsen / TrondheimSolistene
TITLE: Allegro from no. 4 in D major KV 218
TOTALDISCS: 1
TOTALTRACKS: 9
track: 1
WAVEFORMATEXTENSIBLE_CHANNEL_MASK: 0x003F
Load subtitles in .
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 96000 Hz, 6 ch, s32le, 0.0 kbit/0.00% (ratio: 0->2304000)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
[ac3 @ 0x14ea300]channel_layout not specified
[ac3 @ 0x14ea300]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
[libaf] Unable to correct audio format. This error should never uccur, please send bugreport.
Error at audio filter chain pre-init!
Exiting... (Fatal error)
Also tried mplayer1. Same problem.

AC3 does not support 96 kHz and MPlayer cannot automatically convert at that point.
You have to use e.g. -af lavcresample=48000,lavcac3enc
And there is no "mplayer1", there is only MPlayer and a separate fork that decided to call itself "mplayer2".