Skip to content
Browse files

MythArchive: Add EAC3 as a valid audio format in the script.

Fixes ticket 9385.

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
  • Loading branch information...
1 parent 2461902 commit 206bde055d2d440a730270bf15c34dcf42992d8f @hobbes1069 hobbes1069 committed with Paul Harrison Dec 19, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 mythplugins/mytharchive/mythburn/scripts/mythburn.py
View
9 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

0 comments on commit 206bde0

Please sign in to comment.
Something went wrong with that request. Please try again.