OSDN Git Service

fix mp4 vfr.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Mon, 21 Dec 2009 22:43:11 +0000 (22:43 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Mon, 21 Dec 2009 22:43:11 +0000 (22:43 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@340 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/tv2mp4.py

index c28fa89..25c11bc 100644 (file)
@@ -32,7 +32,7 @@ def avi2mp4(pin,pout,opt):
     dir=os.path.split(pin)[0]
     title=os.path.split(pin)[1]
     title=os.path.splitext(title)[0]
-    etitle=base64.b16encode(title)
+    etitle=base64.b16encode(title.encode('utf-8'))
     audiopath=os.path.join(dir,etitle+u"_audio.raw")
     videopath=os.path.join(dir,etitle+u"_video.264")
     exes=[]
@@ -51,7 +51,7 @@ def avi2mp4(pin,pout,opt):
         evfr.append("ffmpeg -i '"+pints+"' -vn -f aac -acodec copy '"+pinaac+"'")
         evfr.append(wineexe+u" "+cfr2tc+u" '"+"Z:\\"+pin+"' '"+"Z:\\"+pin120+u"' 'Z:\\"+pintimecode+u"' 2")
         evfr.append(exe+u" -aviraw video \'"+pin120+u"\'")
-        videotpath=os.path.join(dir,etitle+u".120_video.264")
+        videotpath=os.path.join(dir,etitle+u".120_video.h264")
         evfr.append(exe+u" -fps 29.970030 -add \'"+videotpath+"\' -add \'"+pinaac+"\' -new \'"+pmp4+"\'")
         evfr.append(wineexe+u" "+dtsedit+u" -tc \'Z:\\"+pintimecode+u"\' \'Z:\\"+pmp4+"\' -o \'Z:\\"+pout+"\'")
         exes=evfr