OSDN Git Service

implement movie size getting error recovery mode.
[rec10/rec10-git.git] / rec10 / trunk / src / ts2x264.py
index 345dbf7..9731e4e 100644 (file)
@@ -139,8 +139,16 @@ def encode_sar(pin,pout,size,is24fps,quality,crf,deinterlace=1):
         harddup=",harddup"
         encvf=encvf+harddup
         x264streamsize=str(tsize[0])+u"x"+str(tsize[1])
-    if tsize[0] <= 0 and tsize[1] <= 0:
+    if tsize[0] <= 0 or tsize[1] <= 0:
+        encvf="-sws 9 -vf yadif=0,pp=l5"
+        harddup=",hqdn3d=2:1:2,unsharp=l3x3:0.75:c3x3:0.75,harddup"
+        ofps="-ofps 30000/1001"
+        fps="-fps 30000/1001"
+        x264fps="30000/1001"
         tsize=[1280,720]
+        encvf = encvf + ",scale=-2:720::0:3,expand=1280:720"+harddup
+        x264streamsize=u"1280x720"
+        x264_bitrate="2500"
     if quality==1:
         x264preset=u"ultrafast"
     elif quality==2: