Changeset c1d881f21b141fb2f7e119a80670ac76774dcf2e

Show
Ignore:
Timestamp:
12/03/07 21:22:45 (1 year ago)
Author:
Jason Michalski <armooo@armooo.net>
git-committer:
Jason Michalski <armooo@armooo.net> 1196738565 -0600
git-parent:

[5b28e1c0764cb417669a19ef08b2757615918467]

git-author:
Jason Michalski <armooo@armooo.net> 1195449644 -0600
Message:

S3 mpeg settings

All mpeg going to S3 will not be transcoded
Please report mpeg files that will not play on your S3 They will be
so they can be transcoded.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/video/transcode.py

    rc887ec1 rc1d881f  
    3535         
    3636def output_video(inFile, outFile, tsn=''): 
    37     if tivo_compatable(inFile): 
     37    if tivo_compatable(inFile, tsn): 
    3838        debug_write(['output_video: ', inFile, ' is tivo compatible\n']) 
    3939        f = file(inFile, 'rb') 
     
    208208            return settings 
    209209 
    210 def tivo_compatable(inFile): 
     210def tivo_compatable(inFile, tsn = ''): 
    211211    suportedModes = [[720, 480], [704, 480], [544, 480], [480, 480], [352, 480]] 
    212212    type, width, height, fps, millisecs =  video_info(inFile) 
     
    221221        debug_write(['tivo_compatible: ', inFile, ' is not mpeg2video it is ', type, '\n']) 
    222222        return False 
     223 
     224    if tsn[:3] in ('648', '652'): 
     225        debug_write(['tivo_compatible: ', inFile, ' you have a S3 skiping the rest of the tests', '\n']) 
     226        return True 
    223227 
    224228    if not fps == '29.97': 
  • plugins/video/video.py

    r5b28e1c rc1d881f  
    4646        return transcode.video_info(full_path)[4] 
    4747 
    48     def __est_size(self, full_path): 
     48    def __est_size(self, full_path, tsn = ''): 
    4949        #Size is estimated by taking audio and video bit rate adding 2% 
    5050 
     
    124124    def QueryContainer(self, handler, query): 
    125125         
     126        tsn =  handler.headers.getheader('tsn', '') 
    126127        subcname = query['Container'][0] 
    127128        cname = subcname.split('/')[0]