--- a/mythplugins/mytharchive/mythburn/scripts/mythburn.py +++ b/mythplugins/mytharchive/mythburn/scripts/mythburn.py @@ -2435,18 +2435,22 @@ outvideobitrate = "5000k" if videomode == "ntsc": outvideores = "720x480" + width=720 + height=480 else: outvideores = "720x576" + width=720 + height=576 outaudiochannels = 2 outaudiobitrate = 384 outaudiosamplerate = 48000 outaudiocodec = "ac3" deinterlace = 0 - croptop = 0 - cropright = 0 - cropbottom = 0 - cropleft = 0 + cropx = 0 + cropy = 0 + cropwidth = width + cropheight = height qmin = 5 qmax = 31 qdiff = 31 @@ -2471,13 +2475,13 @@ if name == "-deinterlace": deinterlace = 1 if name == "-croptop": - croptop = value + cropx = value if name == "-cropright": - cropright = value + cropwidth = cropwidth - value if name == "-cropbottom": - cropbottom = value + cropheight = cropheight - value if name == "-cropleft": - cropleft = value + cropy = value if name == "-qmin": qmin = value if name == "-qmax": @@ -2526,7 +2530,7 @@ command += "-aspect %s -r %s " % (aspectratio, fps) if (deinterlace == 1): command += "-deinterlace " - command += "-croptop %s -cropright %s -cropbottom %s -cropleft %s " % (croptop, cropright, cropbottom, cropleft) + command += "-vf crop=%s:%s:%s:%s " % (cropwidth, cropheight, cropx, cropy) command += "-s %s -b %s -vcodec mpeg2video " % (outvideores, outvideobitrate) command += "-qmin %s -qmax %s -qdiff %s " % (qmin, qmax, qdiff) command += "-ab %s -ar %s -acodec %s " % (outaudiobitrate, outaudiosamplerate, outaudiocodec)