Skip to content

Commit

Permalink
MythArchive: update mythburn.py to work with the updated encoding pro…
Browse files Browse the repository at this point in the history
…files

Refs #11299.

Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>

(cherry picked from a784b93)
  • Loading branch information
paul-h authored and stuarta committed Feb 26, 2013
1 parent e7032fb commit cd95946
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mythplugins/mytharchive/mythburn/scripts/mythburn.py
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ def encodeVideoToMPEG2(source, destvideofile, video, audio1, audio2, aspectratio
if audio1[AUDIO_CODEC] == "AC3":
if name == "-acodec":
value = "copy"
if name == "-ar" or name == "-ab" or name == "-ac":
if name == "-ar" or name == "-b:a" or name == "-ac":
name = ""
value = ""

Expand All @@ -2024,15 +2024,13 @@ def encodeVideoToMPEG2(source, destvideofile, video, audio1, audio2, aspectratio
if audio1[AUDIO_CODEC] == "AC3":
if name == "-acodec":
value = "copy"
if name == "-ar" or name == "-ab" or name == "-ac":
if name == "-ar" or name == "-b:a" or name == "-ac":
name = ""
value = ""

if name == "-acodec" or name == "-ar" or name == "-ab" or name == "-ac":
if name == "-acodec" or name == "-ar" or name == "-b:a" or name == "-ac":
command += " " + name + " " + value

command += " -newaudio"

#make sure we get the correct stream(s) that we want
command += " -map 0:%d -map 0:%d " % (video[VIDEO_INDEX], audio1[AUDIO_INDEX])
if audio2[AUDIO_ID] != -1:
Expand Down

0 comments on commit cd95946

Please sign in to comment.