From: Chris Rankin <rankincj@ya...> - 2011-08-25 09:30:27
> Most current distros are on ffmpeg-0.6.x, but you are welcome to
> include ffmpeg-0.7.x into xine as a new plugin.
Fedora 15 is on ffmpeg-0.7.x now, and has been for several months. Hopefully, Petri has just nailed the final compatibility bug between 0.6 and 0.7.
> When adding new codecs to xine, the best approach is:
> 1) See if mplayer or videolan already have it and look at what they use
> to support it, and add that to xine.
> 2) Add support yourself to xine, and mplayer and videolan will then copy
Do xine, mplayer and VLC all have mutually-compatible licenses? I'd hesitate to copy code from a different project otherwise, even assuming that their architectures were similar enough to make such copying practical. (I do recall an mplayer developer making angry comments about this to a xine mailing list, many years ago...)
But it's the three-fold duplication of effort that really scares me here. That's not a good use of people's time, even if xine *had* been living up to its end of this pact.
> Here in the UK, HD TV in .ts streams also include a more common audio
> codec stream such as mpeg or AC3 in addition to any higher quality
I believe that HDTV in the UK is actually using LATM HE-AAC for its audio stream, which is *precisely* the codec that I have been struggling (and failing) to get xine to support properly. Removing the PID auto-detection makes xine switch to the FAAD decoder correctly, but then the decoder explodes trying to parse the LATM bits.
And the audio from my French HDTV TS clip is also broken because xine switches to a decoder that can no longer cope. (A/52 in this case: the audio has a bit stream ID of 16, yet the decoder rejects anything with a bit stream ID > 12).
There's not a lot of room to manoeuvre here: xine reads the codec ID from the stream and picks the decoder based on that. And not only is xine's built-in A/52 decoder unable to handle the stream, but the FFmpeg one has been actively removed!
However, seeing as you are a UK resident, you would presumably have a vested interest in enabling HDTV audio in xine. Would you care to assist me adding LATM handling to the FAAD decoder, please?