[mythtv] #5900 and AAC 5.1 audio

Markus Schulz msc at antzsystem.de
Sat May 30 16:57:47 UTC 2009


Am Saturday 23 May 2009 schrieb Jean-Yves Avenard:
> Hi
>
> 2009/5/23 foo bar <foobum at gmail.com>:
> > 2009/5/22 Yeechang Lee <ylee at pobox.com>:
> >> Foo bum, I've run into a peculiar issue with your #5900 (with
> >> #5964 too, if it matters) upmixer.
> >
> > Away atm but will look at this and upload new patches soon.
>
> It would be great if you could look at the channel re-ordering issue.
>
> I posted some mods based on your patches where you can basically
> switch between the original mythtv code and yours.
>
> Also, there's an attempt to fix an AC3 channel ordering issue which
> is described in one of the trac entry .
>
> Basically, when listening to 5.1 tracks and doing an output with
> analog audio, the channels are mixed up.
>
> The last patch I put on trac re-order the channels and it works for
> AC3 track, but it broke AAC playback.
> I've made another mod that look at the original codec used and only
> re-order the channels if it's AC3 output to analog.

with your (@Jean-Yves Avenard) latest patchset the upmixing in mythmusic 
is broken.

start playing: (-v audio,playback) 
i got only 2ch pcm audio to my receiver, no DD.

2009-05-30 18:54:05.825 AO: Needs upmix
2009-05-30 18:54:05.825 AO: Killing AudioOutputDSP
2009-05-30 18:54:05.825 Opening audio device 'default'. ch 6(2) sr 44100
2009-05-30 18:54:05.825 Opening ALSA audio device 'default'.
2009-05-30 18:54:05.833 in SetParameters(format=2, channels=6, 
rate=44100, buffer_time=400000, period_time=25000)
2009-05-30 18:54:05.834 get_buffer_size returned 16384
2009-05-30 18:54:05.834 set_period_time_near returned 23219
2009-05-30 18:54:05.834 get_period_size returned 1024
2009-05-30 18:54:05.837 AO: Audio fragment size: 18432
2009-05-30 18:54:05.839 AO: create upmixer
2009-05-30 18:54:05.845 AO: create upmixer done with surround mode 2
2009-05-30 18:54:05.845 AO: Audio Stretch Factor: 1
2009-05-30 18:54:05.845 Audio Codec Used: not set
2009-05-30 18:54:05.845 AO: kickoffOutputAudioLoop: pid = 7636
2009-05-30 18:54:05.845 AO: OutputAudioLoop: Play Event
2009-05-30 18:54:05.845 AO: Ending reconfigure
[mp3 @ 0x9f4c290]mdb:35, lastbuf:0 skipping granule 0
2009-05-30 18:54:05.879 AO: Needs upmix
2009-05-30 18:54:05.879 AO: no change exiting
[mp3 @ 0x9f4c290]mdb:35, lastbuf:0 skipping granule 0
2009-05-30 18:54:05.880 AO: OutputAudioLoop: Play Event
2009-05-30 18:54:05.885 AO: OutputAudioLoop: Play Event
2009-05-30 18:54:05.908 avfdecoder.o: seek time 26
[mp3 @ 0x9f4c290]mdb:79, lastbuf:65 skipping granule 0

after pressing CTRL-U (should disable upmixer, or enable?)
i got no audio at all...

2009-05-30 18:55:16.250 AO: Killing AudioOutputDSP
2009-05-30 18:55:16.252 AO: OutputAudioLoop: Stop Event
2009-05-30 18:55:16.253 AO: kickoffOutputAudioLoop exiting
2009-05-30 18:55:16.256 Opening audio device 'default'. ch 2(2) sr 0
2009-05-30 18:55:16.256 Opening ALSA audio device 'default'.
2009-05-30 18:55:16.256 in SetParameters(format=2, channels=2, rate=0, 
buffer_time=400000, period_time=25000)
2009-05-30 18:55:16.257 AudioOutput Error: Rate doesn't match (requested 
0Hz, got 4000Hz)
2009-05-30 18:55:16.257 AudioOutput Error: Unable to set ALSA parameters
2009-05-30 18:55:16.257 AO, ERROR: Aborting reconfigure
2009-05-30 18:55:16.257 Aborting reconfigure


msc



More information about the mythtv-dev mailing list