summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbes1069 <hobbes1069@gmail.com>2010-12-19 14:53:27 (GMT)
committer Paul Harrison <pharrison@mythtv.org>2010-12-19 14:53:27 (GMT)
commit206bde055d2d440a730270bf15c34dcf42992d8f (patch)
tree0d6517c618ce617743315304babef3519ef3fbf2
parent24619027292b12bf7b11d4736f10f13ea59ca3d1 (diff)
MythArchive: Add EAC3 as a valid audio format in the script.
Fixes ticket 9385. Signed-off-by: Paul Harrison <pharrison@mythtv.org>
-rwxr-xr-xmythplugins/mytharchive/mythburn/scripts/mythburn.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mythplugins/mytharchive/mythburn/scripts/mythburn.py b/mythplugins/mytharchive/mythburn/scripts/mythburn.py
index 66ba713..72d56dd 100755
--- a/mythplugins/mytharchive/mythburn/scripts/mythburn.py
+++ b/mythplugins/mytharchive/mythburn/scripts/mythburn.py
@@ -2677,12 +2677,16 @@ def deMultiplexMPEG2File(folder, mediafile, video, audio1, audio2):
command += "-a %d " % (audio1[AUDIO_ID])
elif audio1[AUDIO_CODEC] == 'AC3':
command += "-c %d " % (audio1[AUDIO_ID])
+ elif audio1[AUDIO_CODEC] == 'EAC3':
+ command += "-c %d " % (audio1[AUDIO_ID])
if audio2[AUDIO_ID] != -1:
if audio2[AUDIO_CODEC] == 'MP2':
command += "-a %d " % (audio2[AUDIO_ID])
elif audio2[AUDIO_CODEC] == 'AC3':
command += "-c %d " % (audio2[AUDIO_ID])
+ elif audio2[AUDIO_CODEC] == 'EAC3':
+ command += "-c %d " % (audio2[AUDIO_ID])
else:
command = "mythreplex --demux --fix_sync -o %s " % (folder + "/stream")
@@ -2693,12 +2697,17 @@ def deMultiplexMPEG2File(folder, mediafile, video, audio1, audio2):
command += "-a %d " % (audio1[AUDIO_ID] & 255)
elif audio1[AUDIO_CODEC] == 'AC3':
command += "-c %d " % (audio1[AUDIO_ID] & 255)
+ elif audio1[AUDIO_CODEC] == 'EAC3':
+ command += "-c %d " % (audio1[AUDIO_ID] & 255)
+
if audio2[AUDIO_ID] != -1:
if audio2[AUDIO_CODEC] == 'MP2':
command += "-a %d " % (audio2[AUDIO_ID] & 255)
elif audio2[AUDIO_CODEC] == 'AC3':
command += "-c %d " % (audio2[AUDIO_ID] & 255)
+ elif audio2[AUDIO_CODEC] == 'EAC3':
+ command += "-c %d " % (audio2[AUDIO_ID] & 255)
mediafile = quoteFilename(mediafile)
command += mediafile