Opened 13 years ago

Last modified 13 years ago

#818 new defect

Cannot switch audio channels with -af pan enabled

Reported by: baxter.kylie@… Owned by: reynaldo@…
Priority: normal Component: af
Version: 1.0pre7 Severity: normal
Keywords: Cc: reimar
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:


Hi. I ran into this on my mythbox (slim gentoo).

I recently added pan (2:1:0:0:1:1:0:0:1:0.5:0.5:1) to my standard filter chain to downmix all of my audio to two channels so the hi-fi could handle audio duties. When I did this, however, I found that issuing the switch_audio command (on the fly via lirc) would cause mplayer to crash out. At first I thought it was bad media (matroska) but I tried it with several other pieces I had ripped myself and verified to work before and these too were killed on command issuance.

Upon further inspection I found the source of the error. It seems that during the middle of a channel switch the number of channels drops to 0. Pan requires the number of output channels to be between 1 and 6. When the switch occurs pan causes the audio chain to break and returns a -2 (fatal) error code.

Is it possible for this channel requirement to be removed from the pan filter to take this situation into account?


Change History (2)

comment:1 Changed 13 years ago by compn

i think this is now fixed in svn, please check

comment:2 Changed 13 years ago by reimar

  • Cc Reimar.Doeffinger@… added

No, it is not, but there should be another bug report with an (somewhat incorrect) patch. The problem is not only pan, all filters forget their settings on reinit, though not all fail as completely as pan.

Note: See TracTickets for help on using tickets.