From 4f303ec30db202d26880d6aaf27e341ac550ac67 Mon Sep 17 00:00:00 2001 From: wgw Date: Thu, 1 May 2008 20:34:54 -0500 Subject: [PATCH] forgot to remove this after testing There's no telling what the DAR is with PAL 720x576 dvd's. pyTivo fails miserably with this res unless the version of ffmpeg being used returns PAR/DAR. Hence the reason I added the dar1 = 4:3 or 16:9 fix a while back. Latest Windows ffmpeg versions return PAR/DAR, but don't know about versions compiled on other OS's. And then I suppose it's possible that the DAR could be other than 4:3 or 16:9. In which case, pytivo will assume 4:3 again. Still considering modifying pytivo to check for dar2>1.35 but have not run across a file yet that did not report dar1 = 4:3 or 16:9. --- plugins/video/transcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/video/transcode.py b/plugins/video/transcode.py index 534bbfc..ca6c256 100644 --- a/plugins/video/transcode.py +++ b/plugins/video/transcode.py @@ -198,7 +198,7 @@ def select_aspect(inFile, tsn = ''): elif (rwidth, rheight) in [(4, 3), (10, 11), (15, 11), (59, 54), (59, 72), (59, 36), (59, 54)] or dar1 == '4:3': debug_write(__name__, fn_attr(), ['File is within 4:3 list.']) return ['-aspect', '4:3', '-s', str(TIVO_WIDTH) + 'x' + str(TIVO_HEIGHT)] - elif ((rwidth, rheight) in [(5, 4), (16, 9), (20, 11), (40, 33), (118, 81), (59, 27)] or dar1 == '16:9')\ + elif ((rwidth, rheight) in [(16, 9), (20, 11), (40, 33), (118, 81), (59, 27)] or dar1 == '16:9')\ and (aspect169 or config.get169Letterbox(tsn)): debug_write(__name__, fn_attr(), ['File is within 16:9 list and 16:9 allowed.']) if config.get169Blacklist(tsn) or (aspect169 and config.get169Letterbox(tsn)): -- 2.11.4.GIT