Changeset 6fc56fde667a3f2981f226db032e2595ea8fd2e6

Show
Ignore:
Timestamp:
02/01/08 13:00:09 (1 year ago)
Author:
wgw <tjm1100@gmail.com>
git-committer:
wgw <tjm1100@gmail.com> 1201892409 -0600
git-parent:

[5f2849dbc1a44caff6040d0f3be1359e9a446bcf]

git-author:
wgw <tjm1100@gmail.com> 1201892409 -0600
Message:

move codec function

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • config.py

    r621f4b1 r6fc56fd  
    169169        else: 
    170170            return '192k' 
    171  
    172 def getAudioCodec(tsn = None): 
    173     #check for HD tivo and return compatible audio parameters 
    174     if tsn and tsn[:3] in getHDtivos(): 
    175         return '-acodec ac3 -ar 48000' 
    176     else: 
    177         return '-acodec mp2 -ac 2 -ar 44100' 
    178171 
    179172def getVideoBR(tsn = None): 
  • plugins/video/transcode.py

    r6299a29 r6fc56fd  
    4747    settings = {} 
    4848    settings['audio_br'] = config.getAudioBR(tsn) 
    49     settings['audio_codec'] = config.getAudioCodec(tsn) 
     49    settings['audio_codec'] = select_audiocodec(tsn) 
    5050    settings['video_br'] = config.getVideoBR(tsn) 
    5151    settings['max_video_br'] = config.getMaxVideoBR() 
     
    6363    except: 
    6464        kill(ffmpeg.pid) 
    65         
     65 
     66def select_audiocodec(tsn = ''): 
     67    #check for HD tivo and return compatible audio parameters 
     68    if tsn and tsn[:3] in config.getHDtivos(): 
     69        return '-acodec ac3 -ar 48000' 
     70    else: 
     71        return '-acodec mp2 -ac 2 -ar 44100' 
     72 
    6673def select_aspect(inFile, tsn = ''): 
    6774    TIVO_WIDTH = config.getTivoWidth(tsn)