OSDN Git Service

fix mkv2mp4.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Mon, 21 Dec 2009 12:48:46 +0000 (12:48 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Mon, 21 Dec 2009 12:48:46 +0000 (12:48 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@331 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/tv2mp4.py

index 8dce5fe..6b7e3cc 100644 (file)
@@ -141,10 +141,13 @@ def mkv2mp4(pin,pout):
     logo=pin.replace(".avi",".log")
     os.environ['LANG']="ja_JP.UTF-8"
     txt= exe0+"\n"+exe1+"\n"+exe2+"\n"+exe3+"\n"
-    txt = txt+unicode(commands.getoutput(exe0.encode('utf-8')),'utf-8')
-    txt = txt+unicode(commands.getoutput(exe1.encode('utf-8')),'utf-8')
-    txt = txt+unicode(commands.getoutput(exe2.encode('utf-8')),'utf-8')
-    txt = txt+unicode(commands.getoutput(exe3.encode('utf-8')),'utf-8')
+    try:
+        txt = txt+unicode(commands.getoutput(exe0.encode('utf-8')),'utf-8')
+        txt = txt+unicode(commands.getoutput(exe1.encode('utf-8')),'utf-8')
+        txt = txt+unicode(commands.getoutput(exe2.encode('utf-8')),'utf-8')
+        txt = txt+unicode(commands.getoutput(exe3.encode('utf-8')),'utf-8')
+    except:
+        ""
     os.remove(audiopath)
     os.remove(videopath)
     txt = "\n####MKV2MP4-log####\n"+txt