recdblist.addLog(pin, txt, u"Wav2aac_Lameログ-詳細")\r
def ts2single_audio(pts,opts):\r
paac=pts.replace(".ts",".aac")\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
e0=ffmpeg+" -i \""+pts+"\" -y -vn -f aac -acodec copy \""+paac+"\""\r
p0=subprocess.Popen(e0,shell=True)\r
os.waitpid(p0.pid, 0)\r
if not os.path.exists(pts.replace(".ts",".mp3")):\r
ts2single_fp_BonTsDemux(pts,opts)\r
def ts2singlewav(pts,opts):\r
- bontsdemux = configreader.getPathSetting('bontsdemux')\r
+ bontsdemux = configreader.getConfPath('bontsdemux')\r
bonpin = "Z:\\" + pts[1:]\r
outf = os.path.splitext(pts)[0]\r
bonpout = "Z:\\" + outf[1:]\r
recdblist.addCommandLog(ots, u"BonTsDemux 音声取り出し", exe, logt)\r
def ts2single_mp3_ffmpeg(pts):\r
pmp3=pts.replace(".ts",".mp3")\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
e0=ffmpeg+" -i \""+pts+"\" -y -vn -ab 128k \""+pmp3+"\""\r
p0=subprocess.Popen(e0,shell=True)\r
os.waitpid(p0.pid, 0)\r
def ts2single_fp_BonTsDemux(pts,opts):\r
useNero=0\r
try:\r
- if configreader.getPathSetting("useNeroAAC")=="1" and os.path.exists(configreader.getPathSetting("NeroAAC")):\r
+ if configreader.getConfPath("useNeroAAC")=="1" and os.path.exists(configreader.getConfPath("NeroAAC")):\r
useNero=1\r
except:\r
useNero=0\r
"""\r
delay is string\r
"""\r
- bontsdemux = configreader.getPathSetting('bontsdemux')\r
- wine = configreader.getPathSetting('wine')\r
+ bontsdemux = configreader.getConfPath('bontsdemux')\r
+ wine = configreader.getConfPath('wine')\r
bonpin = "Z:\\" + pin[1:]\r
outf = os.path.splitext(pin)[0]\r
bonpout = "Z:\\" + outf[1:]\r
ffpout22=ffpout2.replace(".wav",".mp3")\r
useNero=0\r
try:\r
- if configreader.getPathSetting("useNeroAAC")=="1" and os.path.exists(configreader.getPathSetting("NeroAAC")):\r
+ if configreader.getConfPath("useNeroAAC")=="1" and os.path.exists(configreader.getConfPath("NeroAAC")):\r
useNero=1\r
except:\r
useNero=0\r
os.remove(ffpout1)\r
os.remove(ffpout2)\r
def ts2pentaaudio_BonTsDemux(pin, delay,opts):\r
- bontsdemux = configreader.getPathSetting('bontsdemux')\r
- wine = configreader.getPathSetting('wine')\r
+ bontsdemux = configreader.getConfPath('bontsdemux')\r
+ wine = configreader.getConfPath('wine')\r
bonpin = "Z:\\" + pin[1:]\r
outf = os.path.splitext(pin)[0]\r
bonpout = "Z:\\" + outf[1:]\r
ffpout21=ffpout1.replace(".wav",".mp3")\r
useNero=0\r
try:\r
- if configreader.getPathSetting("useNeroAAC")=="1" and os.path.exists(configreader.getPathSetting("NeroAAC")):\r
+ if configreader.getConfPath("useNeroAAC")=="1" and os.path.exists(configreader.getConfPath("NeroAAC")):\r
useNero=1\r
except:\r
useNero=0\r