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: