OSDN Git Service

fix bug,
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Thu, 26 Nov 2009 15:06:27 +0000 (15:06 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Thu, 26 Nov 2009 15:06:27 +0000 (15:06 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@270 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/tv2mp4.py

index 56608cb..dcb13d1 100644 (file)
@@ -34,10 +34,9 @@ def avi2mp4(pin,pout):
     logo=pin.replace(u".avi",u".log")
     os.environ['LANG']="ja_JP.UTF-8"
     txt= exe1+u"\n"+exe2+u"\n"+exefin+u"\n"
-    print txt
-    txt = txt+commands.getoutput(exe1.encode('utf-8'))
-    txt = txt+commands.getoutput(exe2.encode('utf-8'))
-    txt = txt+commands.getoutput(exefin.encode('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(exefin.encode('utf-8')),'utf-8')
     os.remove(audiopath)
     os.remove(videopath)
     txt = "\n####MP4Box-log####\n"+txt