Skip to content

Commit

Permalink
MythArchive: Add EAC3 as a valid audio format in the script.
Browse files Browse the repository at this point in the history
Fixes ticket 9385.

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
  • Loading branch information
hobbes1069 authored and wagnerrp committed Dec 19, 2010
1 parent 30a2515 commit edf87f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions mythplugins/mytharchive/mythburn/scripts/mythburn.py
Expand Up @@ -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")
Expand All @@ -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
Expand Down

0 comments on commit edf87f5

Please sign in to comment.