bonpin = "Z:\\" + pts[1:]
outf = os.path.splitext(pts)[0]
bonpout = "Z:\\" + outf[1:]
- xvfb = configreader.getpath('xvfb-run')
- vf=""
delayt=""
- exe = 'wine ' + bontsdemux + " -i \"" + bonpin + "\" "+delayt+" -nd "+vf+"-sound 0 -o \"" + bonpout + "\" -start -quit"
+ exe = 'wine ' + bontsdemux + " -i \"" + bonpin + "\" "+delayt+" -nd -sound 0 -o \"" + bonpout + "\""
#recdblist.printutf8(exe)
- exe = xvfb + ' -a ' + exe
recdblist.printutf8(exe)
p=subprocess.Popen(exe.encode('utf-8'),shell=True)
os.waitpid(p.pid, 0)
bonpin = "Z:\\" + pin[1:]
outf = os.path.splitext(pin)[0]
bonpout = "Z:\\" + outf[1:]
- exe = wine + ' ' + bontsdemux + " -i \"" + bonpin + "\" -delay " + delay + " -nd -sound 1 -o \"" + bonpout + "\" -start -quit"
+ exe = wine + ' ' + bontsdemux + " -i \"" + bonpin + "\" -delay " + delay + " -nd -sound 1 -o \"" + bonpout + "\""
recdblist.printutf8(exe)
txt=commands.getoutput(exe.encode('utf-8'))
try:
shutil.move(ffpin1, ffpout1)
exe = 'wine ' + bontsdemux + " -i \"" + bonpin + "\" -delay " + delay + " -nd -sound 2 -encode Demux\(wav\) -o \"" + bonpout + "\""
recdblist.printutf8(exe)
- exe = xvfb + ' -a ' + exe
txt=commands.getoutput(exe.encode('utf-8'))
try:
recdblist.addCommandLog(pin, u"BonTsDemux 第二音声取り出し", exe, txt)
wav2mp3_lame(ffpout1, ffpout21)
if not os.path.exists(ffpout21):
exe = wine + ' ' + bontsdemux + " -i \"" + bonpin + "\" -delay "+delay+" -nd -sound 0 -o \"" + bonpout + "\""
- exe = xvfb + ' -a ' + exe
recdblist.printutf8(exe)
txt=commands.getoutput(exe.encode('utf-8'))
try: