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"
+ exe = 'wine ' + bontsdemux + " -nogui -i \"" + bonpin + "\" -delay 167 -nd -sound 0 -o \"" + bonpout + "\" "
#recdblist.printutf8(exe)
- exe = xvfb + ' -a ' + exe
recdblist.printutf8(exe)
os.system(exe.encode('utf-8'))
ffpin1 = pin.replace("ts", "wav")
"""
bontsdemux = configreader.getpath('bontsdemux')
wine = configreader.getpath('wine')
- xvfb = configreader.getpath('xvfb-run')
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 = xvfb + ' -a ' + exe
+ exe = wine + ' ' + bontsdemux + " -nogui -i \"" + bonpin + "\" -delay " + delay + " -nd -sound 1 -o \"" + bonpout + "\" "
recdblist.printutf8(exe)
txt=commands.getoutput(exe.encode('utf-8'))
try:
ffpout2 = ffpin + "_2.wav"
ffpout3 = ffpin + ".m2v"
shutil.move(ffpin1, ffpout1)
- exe = 'wine ' + bontsdemux + " -i \"" + bonpin + "\" -delay " + delay + " -nd -sound 2 -encode Demux\(wav\) -o \"" + bonpout + "\" -start -quit"
- exe = xvfb + ' -a ' + exe
+ exe = 'wine ' + bontsdemux + " -nogui -i \"" + bonpin + "\" -delay " + delay + " -nd -sound 2 -encode Demux\(wav\) -o \"" + bonpout + "\""
recdblist.printutf8(exe)
txt=commands.getoutput(exe.encode('utf-8'))
try:
def pentaaudio2sep(pin):
bontsdemux = configreader.getpath('bontsdemux')
wine = configreader.getpath('wine')
- xvfb = configreader.getpath('xvfb-run')
bonpin = "Z:\\" + pin[1:]
outf = os.path.splitext(pin)[0]
bonpout = "Z:\\" + outf[1:]
- exe = wine + ' ' + bontsdemux + " -i \"" + bonpin + "\" -delay 167 -nd -sound 3 -o \"" + bonpout + "\" -start -quit"
- exe = xvfb + ' -a ' + exe
+ exe = wine + ' ' + bontsdemux + " -nogui -i \"" + bonpin + "\" -delay 167 -nd -sound 3 -o \"" + bonpout + "\" -start -quit"
recdblist.printutf8(exe)
txt=commands.getoutput(exe.encode('utf-8'))
try:
ffpout2 = ffpin + "_2.aac"
shutil.move(ffpin1, ffpout1)
exe = "ffmpeg -i '"+pin+"' -vn -f aac -acodec copy '"+ffpout2+"'"
- exe = xvfb + ' -a ' + exe
recdblist.printutf8(exe)
txt=commands.getoutput(exe.encode('utf-8'))
try:
else:
tv2audio.wav2mp3_lame(ffpout1, ffpout21)
if not os.path.exists(ffpout21):
- exe = wine + ' ' + bontsdemux + " -i \"" + bonpin + "\" -delay 167 -nd -sound 0 -o \"" + bonpout + "\" -start -quit"
- exe = xvfb + ' -a ' + exe
+ exe = wine + ' ' + bontsdemux + " -nogui -i \"" + bonpin + "\" -delay 167 -nd -sound 0 -o \"" + bonpout + "\" "
recdblist.printutf8(exe)
txt=commands.getoutput(exe.encode('utf-8'))
try:
def pentaaudiots2avi(pin, pout):
bontsdemux = configreader.getpath('bontsdemux')
bonpin = "Z:\\" + pin[1:]
- xvfb = configreader.getpath('xvfb-run')
outf = os.path.splitext(pin)[0]
bonpout = "Z:\\" + outf[1:]
- exe = 'wine ' + bontsdemux + " -i \"" + bonpin + "\" -delay 167 -nd -sound 3 -o \"" + bonpout + "\" -start -quit"
- exe = xvfb + ' -a ' + exe
+ exe = 'wine ' + bontsdemux + " -nogui -i \"" + bonpin + "\" -delay 167 -nd -sound 3 -o \"" + bonpout + "\" -start -quit"
recdblist.printutf8(exe)
txt=u"Cmd : "+exe+"\n"
txt=txt+commands.getoutput(exe.encode('utf-8'))