I'm trying to understand some behavior I have been seeing with a number of videos containing AC3 audio. When looking at the Codec Information window, the AC3 audio is often (but not always, depending on the video) recognized as 2.0 stereo audio. When I use SPDIF pass-through, the decoder (Logitech z-5450) clearly separates the channels into what seems to be real 5.1. I hear the voices coming from the center speaker, and the rear speakers make distinguished sounds as well. But when I have a 5.1 speaker system connected via 3 stereo jack cables, I get the typical stereo sound (voices come mainly from left&right as opposed from center). Videos where audio is properly recognized by VLC as 5.1 play fine when I connect my audio system with 3 RCA cables.
This in itself isn't a 'problem' since I can just use SPDIF, but I wonder why VLC recognizes the audio as 2.0 stereo only, when my hardware decoder manages to produce 5.1 from the same audio stream.
It appears to be common across libavcodec players (MPlayer and VLC are the two I tried).