Changeset 72bf4739b44070a029ac4fe25d496cc897bfe466
- Timestamp:
- 12/31/07 13:33:28 (1 year ago)
- git-parent:
[a831e6c85be8b9206c651b1bcb674f6beba51686], [90c92b8fef334c45c9cd5905b20c748ecc6d6394]
- Files:
-
- plugins/video/transcode.py (modified) (2 diffs)
- plugins/video/video.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/video/transcode.py
raf8e504 r90c92b8 81 81 82 82 if optres: 83 optHeight = Config.nearestTivoHeight(height)84 optWidth = Config.nearestTivoWidth(width)83 optHeight = config.nearestTivoHeight(height) 84 optWidth = config.nearestTivoWidth(width) 85 85 if optHeight < TIVO_HEIGHT: 86 86 TIVO_HEIGHT = optHeight … … 222 222 return False 223 223 224 if (inFile[-3:]).lower() == '.ts': 225 debug_write(['tivo_compatible: ', inFile, ' transport stream not supported ', '\n']) 226 return False 227 224 228 if tsn[:3] in ('648', '652'): 225 229 debug_write(['tivo_compatible: ', inFile, ' you have a S3 skiping the rest of the tests', '\n']) plugins/video/video.py
r159e96c r8153cdc 52 52 return int(os.stat(full_path).st_size) 53 53 else: # Must be re-encoded 54 audioBPS = strtod(config.getAudioBR( ))55 videoBPS = strtod(config.getVideoBR( ))54 audioBPS = strtod(config.getAudioBR(tsn)) 55 videoBPS = strtod(config.getVideoBR(tsn)) 56 56 bitrate = audioBPS + videoBPS 57 57 return int((self.__duration(full_path)/1000)*(bitrate * 1.02 / 8))
