[MPlayer-users] DVB stream including LATM AAC Audio issues

Nico Sabbi Nicola.Sabbi at poste.it
Tue Jan 8 10:04:24 CET 2008


Il Tuesday 08 January 2008 06:08:02 Steven Ellis ha scritto:
> > Il Monday 07 January 2008 01:38:03 Steven Ellis ha scritto:
> >> Thanks for the patch. I've tried it on my 1 minute sample videos
> >> from
>
> NZ with limited luck
>
> >> tv6.ts produces no audio
> >>
> >> tv7.ts produces a couple of seconds of audio and then crashes
> >> with the
>
> following backtrace
>
> >> Error while decoding frame!
> >> mplayer: mdct.c:63: faad_mdct_init: Assertion `N % 8 == 0'
> >> failed.
> >
> > at least does it sound correctly or corrupt ? :)
>
> The 1-2 seconds I get sound correct before it crashes.

good

>
> I've had an additional play with the file sport.ts and it plays a
> little better if I use the following command line to avoid any
> potential video playback issues
>
> mplayer -vc null sport.ts
>
> This then produced the following output
>
> INITOK: 0, sr: 48000, channels: 2, bits: 27
> framelentype: 4
> unsupported framelentype: 4
> versionA not supported of 970.2 (16:10.2) ??,?%
> versionA not supported
> unsupported multiple programs/streams0.2) ??,?%
> INITOK: 0, sr: 48000, channels: 2, bits: 27?,?%
> framelentype: 0
>
> DECODING 216 FAILED, error: Scalefactor out of range
> INITOK: 0, sr: 48000, channels: 2, bits: 27
> framelentype: 4
> unsupported framelentype: 4
>

[snip]
the major problem with this LATM mess is that the *geniuses* that 
designed it didn't foresee that the short syncword the chose
(11 bits == 0x2b7 aligned to byte position) isn't absolutely
enough to guarantee a real synchronization to the beginning
of a series of frames: this is the reason you see all those
"unsupported" marks.
This is what ISO blesses :(

>
> Also note that there appears to be an issue with the cleanup code
> as if I quit during playback I get an invalid pointer error.
>
> *** glibc detected *** /home/sellis/src/svn/mplayer/mplayer:
> munmap_chunk(): invalid pointer: 0x097e0448 ***
> ======= Backtrace: =========
> /lib/libc.so.6(cfree+0x1bb)[0x8abf2b]
> /home/sellis/src/svn/mplayer/mplayer(qmfs_end+0x1c)[0x84d70fc]
> /home/sellis/src/svn/mplayer/mplayer(sbrDecodeEnd+0x2f)[0x84d45cf]
> /home/sellis/src/svn/mplayer/mplayer(NeAACDecClose+0xb3)[0x84cfbd3]
> /home/sellis/src/svn/mplayer/mplayer(uninit_audio+0xd4)[0x80df2a4]
> /home/sellis/src/svn/mplayer/mplayer(uninit_player+0x5e)[0x8078e4e]
> /home/sellis/src/svn/mplayer/mplayer(exit_player_with_rc+0x2e)[0x80
>7943e]
> /home/sellis/src/svn/mplayer/mplayer(run_command+0x1b8b)[0x8085c5b]
> /home/sellis/src/svn/mplayer/mplayer(main+0x1e1e)[0x807bdce]
> /lib/libc.so.6(__libc_start_main+0xdc)[0x857dec]
>
>
> Steve
>

maybe I forgot to free something.
Anyway, it's time to move this patch entirely to libfaad



More information about the MPlayer-users mailing list