Changeset 9686b71a78da019076ddbbbeb997fd2458c651d5

Show
Ignore:
Timestamp:
04/02/08 23:04:12 (9 months ago)
Author:
Jason <armooo@armooo.net>
git-committer:
Jason <armooo@armooo.net> 1207195452 -0500
git-parent:

[4574b4f1b1074c71a4cc2a2c75361462d9a8fc3b]

git-author:
Jason <armooo@armooo.net> 1207195452 -0500
Message:

FFMpeg will not output a 15 fps mpeg2

Files:

Legend:

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

    rdedb278 r9686b71  
    55info_cache = lrucache.LRUCache(1000) 
    66videotest = os.path.join(os.path.dirname(__file__), 'videotest.mpg') 
     7 
     8BAD_MPEG_FPS = ['15.00'] 
    79 
    810def ffmpeg_path(): 
     
    3840    settings['video_codec'] = select_videocodec(tsn) 
    3941    settings['video_br'] = select_videobr(tsn) 
    40     settings['video_fps'] = select_videofps(tsn) 
     42    settings['video_fps'] = select_videofps(inFile, tsn) 
    4143    settings['max_video_br'] = select_maxvideobr() 
    4244    settings['buff_size'] = select_buffsize() 
     
    9395    return '' 
    9496 
    95 def select_videofps(tsn): 
     97def select_videofps(inFile, tsn): 
     98    type, width, height, fps, millisecs, kbps, akbps, acodec, afreq, vpar =  video_info(inFile) 
    9699    vfps = '-r 29.97'  #default 
    97     if config.isHDtivo(tsn)
     100    if config.isHDtivo(tsn) and fps not in BAD_MPEG_FPS
    98101        vfps = ' ' 
    99102    if config.getVideoFPS(tsn) != None: