encodeMencoderSar_lavf(pin, pout,size,is24fps,quality,crf,deinterlace)\r
except Exception, inst:\r
recdblist.addCommonlogEX("Error in X", "ts2x264(ts2x264.py)", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
+ elif re.search("Y",opts):\r
+ try:\r
+ encodeMencoderSar_lavf(pin, pout,size,is24fps,quality,crf,deinterlace)\r
+ if os.path.exists(pout):\r
+ if not os.path.getsize(pout)>1*1000:\r
+ recdblist.addCommonlogEX("Warning", "Old mencoder option used.", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
+ try:\r
+ encodeMencoderSar(pin, pout,size,is24fps,quality,crf,deinterlace)\r
+ except Exception, inst:\r
+ recdblist.addCommonlogEX("Error", "ts2x264_mencoder_old(ts2x264.py)", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
+ else:\r
+ recdblist.addCommonlogEX("Warning", "Old mencoder option used.", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
+ try:\r
+ encodeMencoderSar(pin, pout,size,is24fps,quality,crf,deinterlace)\r
+ except Exception, inst:\r
+ recdblist.addCommonlogEX("Error", "ts2x264_mencoder_old(ts2x264.py)", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
+ except Exception, inst:\r
+ recdblist.addCommonlogEX("Error", "ts2x264(ts2x264.py)", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
else:\r
try:\r
encodeMencoderSar(pin, pout,size,is24fps,quality,crf,deinterlace)\r
except Exception, inst:\r
recdblist.addCommonlogEX("Error", "ts2x264(ts2x264.py)", str(type(inst)), str(inst)+traceback.format_exc(),log_level=200)\r
+\r
def encodeMencoderSar(pin,pout,size,is24fps,quality,crf,deinterlace=1):\r
mencoder=configreader.getConfPath("mencoder")\r
tee=configreader.getConfPath("tee")\r