-def dualaudiots2avi(pin, pout):
- bontsdemux = configreader.getpath('bontsdemux')
- bonpin = "Z:\\" + pin[1:]
- outf = os.path.splitext(pin)[0]
- bonpout = "Z:\\" + outf[1:]
- xvfb = configreader.getpath('xvfb-run')
- logpath=pin.replace("ts","log")
- exe = 'wine ' + bontsdemux + " -i \"" + bonpin + "\" -delay 167 -nd -sound 0 -o \"" + bonpout + "\" -start -quit"
- #recdblist.printutf8(exe)
- exe = xvfb + ' -a ' + exe
- recdblist.printutf8(exe)
- os.system(exe.encode('utf-8'))
- ffpin1 = pin.replace("ts", "wav")
- ffpin2 = pin.replace("ts", "m2v")
- exe = "ffmpeg -y -i \'" + ffpin1 + "\' -i \'" + ffpin2 + "\' -r 29.97 -vsync 200 -vcodec copy -acodec libmp3lame -async 200 -ab 128k -f avi \'" + pout + "\'"
- recdblist.printutf8(exe)
- #commands.getoutput(exe)
- os.system(exe.encode('utf-8'))
- os.remove(ffpin1)
- os.remove(ffpin2)