Changeset 6e81239c76acfebbf1478f1fe41686b68fef1756

Show
Ignore:
Timestamp:
02/03/08 12:55:13 (1 year ago)
Author:
William McBrine <wmcbrine@gmail.com>
git-committer:
William McBrine <wmcbrine@gmail.com> 1202064913 -0500
git-parent:

[4a83ddd83549b68e4487ffc772d95e3375df1dd6], [3be20791af43ba0d603a52d51fb39fedc6208827]

git-author:
William McBrine <wmcbrine@gmail.com> 1202064913 -0500
Message:

Merge git://repo.or.cz/pyTivo/wgw

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • config.py

    rca82992 r3be2079  
    9191        return '-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py %(audio_codec)s -ab %(audio_br)s -f vob -' 
    9292 
    93 def getHDtivos(tsn):  # tsn's of High Definition Tivo's 
     93def isHDtivo(tsn):  # tsn's of High Definition Tivo's 
    9494    return tsn != '' and tsn[:3] in ['648', '652'] 
    9595 
     
    128128        return nearestTivoHeight(height) 
    129129    except NoOptionError: #defaults for S3/S2 TiVo 
    130         if getHDtivos(tsn): 
     130        if isHDtivo(tsn): 
    131131            return 720 
    132132        else: 
     
    144144        return nearestTivoWidth(width) 
    145145    except NoOptionError: #defaults for S3/S2 TiVo 
    146         if getHDtivos(tsn): 
     146        if isHDtivo(tsn): 
    147147            return 1280 
    148148        else: 
     
    162162        return str(min(audiobr, getMaxAudioBR(tsn))) + 'k' 
    163163    except NoOptionError: #defaults for S3/S2 TiVo 
    164         if getHDtivos(tsn): 
     164        if isHDtivo(tsn): 
    165165            return '384k' 
    166166        else: 
     
    176176        return config.get('Server', 'video_br') 
    177177    except NoOptionError: #defaults for S3/S2 TiVo 
    178         if getHDtivos(tsn): 
     178        if isHDtivo(tsn): 
    179179            return '8192k' 
    180180        else: 
     
    203203        return int(int(strtod(config.get('Server', 'max_audio_br'))/1000)/64)*64 
    204204    except NoOptionError:  
    205         if getHDtivos(tsn): 
     205        if isHDtivo(tsn): 
    206206            return int(448) #default to 448, max supported by HD TiVo's 
    207207        else: 
  • plugins/video/transcode.py

    r1fd7a51 r3be2079  
    6666def select_audiocodec(tsn = ''): 
    6767    #check for HD tivo and return compatible audio parameters 
    68     if config.getHDtivos(tsn): 
     68    if config.isHDtivo(tsn): 
    6969        return '-acodec ac3 -ar 48000' 
    7070    else: 
     
    104104    multiplier4by3  =  (4.0 * TIVO_HEIGHT) / (3.0 * TIVO_WIDTH) 
    105105    
    106     if config.getHDtivos(tsn) and height <= TIVO_HEIGHT and config.getOptres() == False: 
     106    if config.isHDtivo(tsn) and height <= TIVO_HEIGHT and config.getOptres() == False: 
    107107        return [] #pass all resolutions to S3/HD, except heights greater than conf height 
    108108                # else, optres is enabled and resizes SD video to the "S2" standard on S3/HD. 
     
    244244        return False 
    245245 
    246     if config.getHDtivos(tsn): 
     246    if config.isHDtivo(tsn): 
    247247        debug_write(['tivo_compatible: ', inFile, ' you have a S3 skiping the rest of the tests', '\n']) 
    248248        return True