Permalink
Browse files

MythArchive: update mythburn.py to work with the updated encoding pro…

…files

Refs #11299.

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

(cherry picked from a784b93)
  • Loading branch information...
paul-h authored and jyavenard committed Jan 4, 2013
1 parent 9b5872c commit 4a7667eef841b99d5495899c69d1d50397632c8a
Showing with 3 additions and 5 deletions.
  1. +3 −5 mythplugins/mytharchive/mythburn/scripts/mythburn.py
@@ -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 = ""
@@ -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:

0 comments on commit 4a7667e

Please sign in to comment.