Changeset 6e2bdccfe6655be1c4887386a36a0ecc2eb3a519

Show
Ignore:
Timestamp:
11/02/07 22:10:27 (1 year ago)
Author:
Jason Michalski <armooo@armooo.net>
git-committer:
Jason Michalski <armooo@armooo.net> 1194059427 +0000
git-parent:

[c269ecd868906465fe97d80f39bbebb7f045efec]

git-author:
Jason Michalski <armooo@armooo.net> 1194059427 +0000
Message:

Per tivo audio video bitrates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Config.py

    rc269ecd r6e2bdcc  
    7777        return 544 
    7878 
    79 def getAudioBR(): 
     79def getAudioBR(tsn = None): 
     80    if tsn and config.has_section('_tivo_' + tsn): 
     81        try: 
     82            return config.get('_tivo_' + tsn, 'audio_br') 
     83        except NoOptionError: 
     84            pass 
     85 
    8086    try: 
    8187        return config.get('Server', 'audio_br') 
     
    8389        return '192K' 
    8490 
    85 def getVideoBR(): 
     91def getVideoBR(tsn = None): 
     92    if tsn and config.has_section('_tivo_' + tsn): 
     93        try: 
     94            return config.get('_tivo_' + tsn, 'video_br') 
     95        except NoOptionError: 
     96            pass 
     97         
    8698    try: 
    8799        return config.get('Server', 'video_br') 
  • plugins/video/transcode.py

    rc269ecd r6e2bdcc  
    88TIVO_WIDTH = Config.getTivoWidth() 
    99TIVO_HEIGHT = Config.getTivoHeight() 
    10 AUDIO_BR = Config.getAudioBR() 
    11 VIDEO_BR = Config.getVideoBR() 
    1210MAX_VIDEO_BR = Config.getMaxVideoBR() 
    1311BUFF_SIZE = Config.getBuffSize() 
     
    4947 
    5048def transcode(inFile, outFile, tsn=''): 
     49    audio_br = Config.getAudioBR(tsn) 
     50    video_br = Config.getVideoBR(tsn) 
     51 
    5152    cmd = [ FFMPEG,  
    5253            '-i', inFile,  
    5354            '-vcodec', 'mpeg2video',  
    5455            '-r', '29.97',  
    55             '-b', VIDEO_BR
     56            '-b', video_br
    5657            '-maxrate', MAX_VIDEO_BR, 
    5758            '-bufsize', BUFF_SIZE 
     
    5960            '-comment', 'pyTivo.py',  
    6061            '-ac', '2',  
    61             '-ab', AUDIO_BR
     62            '-ab', audio_br
    6263            '-ar', '44100',  
    6364            '-f', 'vob',  
  • pyTivo.conf

    r93b6782 r6e2bdcc  
    66#For windows: ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe 
    77#For linux:   ffmpeg=/usr/bin/ffmpeg 
    8 ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe 
    9 #ffmpeg=/usr/bin/ffmpeg 
     8#ffmpeg=c:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe 
     9ffmpeg=/usr/bin/ffmpeg 
    1010 
    1111#This will make a large debug.txt file in you base directory.  It only debugs 
     
    3131##Per tivo options 
    3232# section named _tivo_TSN with the tsn in all caps 
    33 #[_tivo_2400000DEADBEEF] 
     33[_tivo_00000DEADBEEF] 
    3434 
    3535#If you want to use 16:9 or 4:3 on this tivo 
    3636#aspect169=true 
     37 
     38#audio_br=320K 
     39#video_br=12Mi 
    3740 
    3841[MyMovies] 
     
    4346#For windows: path=c:\videos 
    4447#For linux:   path=/media 
    45 path=/media/media/video 
     48path=/home/armooo/Videos 
    4649 
    4750