OSDN Git Service

prepare to use epgdump instead of tsEpg2xml.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Thu, 9 Jul 2009 15:49:53 +0000 (15:49 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Thu, 9 Jul 2009 15:49:53 +0000 (15:49 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@66 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/config.ini
rec10/trunk/src/ts2epg.py
rec10/trunk/src/ts2x264.py

index f1269a8..7ab3309 100644 (file)
@@ -11,6 +11,7 @@ temppath=/pt1-tools/temp
 recpath=/home/ftpusr/ftp3/Recording
 cmdow=/pt1-tools/tstools/cmdow.exe
 cmdwine=wine /pt1-tools/tstools/cmdow.exe /run /hid
+epgdump=/pt1-tools/epgdump/epgdump
 gridserver_port=10910
 wine=wine 
 epg2xmlpath=/media/ramdisk
index 040faa1..e9be5d9 100644 (file)
@@ -27,12 +27,14 @@ def write(pout,ch):
     else :
         mode=chdb.bctypesearch('te'+ch)['ontv']
     tsepg2xml=configreader.getpath("tsepg2xml")
+    epgdump=configreader.getpath("epgdump")
     time.sleep(5)
     tv2ts.tv2tsmix(pout+".ts",ch,"180")
     if not os.access(pout+".ts", os.F_OK):
         time.sleep(10)
         tv2ts.tv2tsmix(pout+".ts",ch,"180")
     exe="export LANG=ja_JP.UTF-8 && /usr/bin/nice -n 19 wine "+tsepg2xml+" "+mode+" "+pout+".ts >"+pout
+    #exe="export LANG=ja_JP.UTF-8 && /usr/bin/nice -n 19 "+epgdump+" "+mode+" "+pout+".ts "+pout
     print exe
     os.system(exe)
 
index 5908d27..b8216f3 100644 (file)
@@ -66,5 +66,6 @@ def ts2x264(pin,pout,opts):#sizeは"HD"か"SD"
         os.system(pas2exe)
     else:
         pas1exe="mencoder \'"+pin+"\' -ovc x264 "+encvf+" -x264encopts "+bitrate+":threads=auto -oac mp3lame -lameopts cbr:br=128  -o \'"+pout+"\'"
+        pas1exe="/usr/bin/nice -n 19 "+pas1exe
         os.system(pas1exe)
     status.setEncoding(status.getEncoding()-1)
\ No newline at end of file