[mythtv-commits] mythtv/master commit: 649fa85cb by Jean-Yves Avenard (jyavenard)

MythTV noreply at mythtv.org
Sun Feb 27 03:34:08 UTC 2011


      Author:  Jean-Yves Avenard <jyavenard at mythtv.org>
 Change Date:  2011-02-26T19:32:11-08:00
   Push Date:  2011/02/26 19:34:05 -0800
  Repository:  mythtv
      Branch:  master
New Revision:  649fa85cb41f128606038a9789693657a11cd178
   Changeset:  https://github.com/MythTV/mythtv/commit/649fa85cb

Log:

Add support for E-AC3, TrueHD and DTS-HD digital passthrough.

A big thank you to Anssi Hannulafor his changes to FFmpeg and working with me to get this up and running.
Thanks to foobum for his code review

Details on some of the changes included in this commit are:
- When creating the AudioOutput instance, only open the audio device and set all parameters when we have valid configuration information. This seriously reduces the amount of noise in the logs
- Simplify locking code in audioplayer, in particular do not create more locking than necessary
- E-AC3 , DTS-HD hi-res can be enabled on any platform supporting stereo 192kHz, so change the test to see if hardware supports that mode
- Add ability to play audio-only files with default player. Set -O AudioOnlyPlayback=1
- Add support for 6.144Mbit/s bitrate passthrough. This allows the use of DTS-HD passthrough for card not supporting HBR (ION, 9400M or nvidia GT2xx).
- Make audiooutputsettings digital features more generic and future-proof
- Change digital passthrough auto-configuration:
  Open device with settings:
  AES0=6 AES1=0x82 AES2=0x00 AES3=0x01.

  AES0 = NON_AUDIO | PRO_MODE
  AES1 = original stream, original PCM coder
  AES2 = source and channel unspecified
  AES3 = sample rate unspecified

  by default, ALSA uses AES3=0x02 which force the sampling rate to 48kHz. This break 44.1kHz passthrough with some audio cards.
  On the other hand, with some cards, you need to set 48kHz sample rate to get 44.1kHz passthrough. As the later case is obviously a bug, we do the right thing and set it as it should by default.
  For people finding that they no longer get multi-channel AC3/DTS audio, they need to go into the Advanced Option and check the SPDIF 48k override option
-Up to now, if the user had overriden the passthrough device, we assumed he knew what he was doing and it would disable all consistency tests.
  We now handle errors should the passthrough device not be valid. In the settings screen, an error message will now be shown.
  We also now handle two different AudioOutputSettings type one for PCM output, the other for passthrough. Previously capabilities would only be checked on the main audio device.
-Fix some segfault should the upmixer failed to be initialised properly. Fix timestretch.
-Mythmusic seems to happily supply audio frames to AudioOutput even when audio initialisation fail. As some fields weren't initialised, this could result with some division by zero error
-Audio framework: Main function member will now return an error if called without audio framework properly initialised
-Add an OutputSettings(bool digital) method in AudioOutputBase, get rid of alternation in Reconfigure()
-Check for FORMAT_S16 support for passthru support, use canFeature instead of canAC3 / canLPCM in AO
-Rewrite support for the various DTS streams.
  Can now properly distinguish between the various DTS types:
  - DTS Core
  - DTS-ES
  - DTS 96/24
  - DTS-HD High-Res
  - DTS-HD MA
 Note that if not using-passthrough, only the DTS Core stream can be decoded
-Change in the audio stream can now be properly monitored such as changing DTS audio type.
-Move SPDIF/IEC958 encapsulation within the audio class so avfd doesn't depends directly on any of the audio code.
-Fixes timestamp estimation when timestamps are missing or frames are dropped

Modified:

   mythplugins/mythmusic/mythmusic/musicplayer.cpp
   mythtv/libs/libmyth/audio/audiooutput.h
   mythtv/libs/libmyth/audio/audiooutputalsa.cpp
   mythtv/libs/libmyth/audio/audiooutputalsa.h
   mythtv/libs/libmyth/audio/audiooutputbase.cpp
   mythtv/libs/libmyth/audio/audiooutputbase.h
   mythtv/libs/libmyth/audio/audiooutputdigitalencoder.cpp
   mythtv/libs/libmyth/audio/audiooutputdx.cpp
   mythtv/libs/libmyth/audio/audiooutputdx.h
   mythtv/libs/libmyth/audio/audiooutputsettings.cpp
   mythtv/libs/libmyth/audio/audiooutputsettings.h
   mythtv/libs/libmyth/audio/audiooutpututil.cpp
   mythtv/libs/libmyth/audio/audiooutpututil.h
   mythtv/libs/libmyth/audio/audiosettings.cpp
   mythtv/libs/libmyth/audio/audiosettings.h
   mythtv/libs/libmyth/audio/spdifencoder.cpp
   mythtv/libs/libmyth/audio/spdifencoder.h
   mythtv/libs/libmythtv/audioplayer.cpp
   mythtv/libs/libmythtv/audioplayer.h
   mythtv/libs/libmythtv/avformatdecoder.cpp
   mythtv/libs/libmythtv/avformatdecoder.h
   mythtv/libs/libmythtv/mythplayer.cpp
   mythtv/programs/mythfrontend/audiogeneralsettings.cpp
   mythtv/programs/mythfrontend/audiogeneralsettings.h
   mythtv/programs/mythtranscode/transcode.cpp



More information about the mythtv-commits mailing list