Changeset 1875

Show
Ignore:
Timestamp:
10/11/08 20:31:23 (2 months ago)
Author:
duncan
svm:headrev:

cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11157
Message:

[ 2190016 ] mark avi during the rencoding as "incomplete"
Patch from A C G Mennucc applied
Also pulls in another patch with changes to the settings

Location:
freevo
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • freevo/ChangeLog

    r1874 r1875  
    2020 * New wikisubtitles video plug-in to get subtitles for videos (F#2147641) 
    2121 * Updated apple trailers (F#2089598) 
     22 * Updated encoding server to name incomplete encodings with incomplete (F#2190016) 
    2223 * Updated Italian translation (F#2153010) 
    2324 * Updated mouse support so that it is optional (F#2089306) 
  • freevo/src/encodingcore.py

    r1845 r1875  
    6161        'containers'  : [ 'avi', 'mp4', 'mpeg' ], # add mkv back later 
    6262        'videocodecs' : [ 'MPEG 4 (lavc)','MPEG 2 (lavc)', 'XviD', 'H.264' ], 
    63         'audiocodecs' : [ 'MPEG 1 Layer 3 (mp3)', 'MPEG 1 Layer 2 (mp2)', 'AAC (iPod)', 'AC3', 'Vorbis', 'WMAv1',' WMAv2', 'copy' ] 
     63        'audiocodecs' : [ 'MPEG 1 Layer 3 (mp3)', 'MPEG 1 Layer 2 (mp2)', 'AAC (iPod)', 'AC3', 'Vorbis', 
     64            'WMAv1',' WMAv2', 'copy' ] 
    6465    }, 
    6566    'vcodec' : { 
    66         'MPEG 4 (lavc)' : [ 'lavc', '-lavcopts', 'vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:vbitrate=%s:threads=%s%s%s'], 
    67         'MPEG 2 (lavc)' : [ 'lavc', '-lavcopts', 'vcodec=mpeg2video:vhq:vqmin=2:trell:vrc_buf_size=1835:vrc_maxrate=9800:keyint=18:vstrict=0:vbitrate=%s:threads=%s%s%s'], 
     67        'MPEG 4 (lavc)' : [ 'lavc', '-lavcopts', 'vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:'+ 
     68            'vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:vbitrate=%s:threads=%s%s%s'], 
     69        'MPEG 2 (lavc)' : [ 'lavc', '-lavcopts', 'vcodec=mpeg2video:vhq:vqmin=2:trell:vrc_buf_size=1835:'+ 
     70            'vrc_maxrate=9800:keyint=18:vstrict=0:vbitrate=%s:threads=%s%s%s'], 
    6871        'XviD'          : [ 'xvid', '-xvidencopts', 'chroma_opt:vhq=4:bvhq=1:bitrate=%s:threads=%s%s%s'], 
    69         'H.264'         : [ 'x264', '-x264encopts', 'subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:bitrate=%s:threads=%s%s%s'] 
     72        #'H.264'         : [ 'x264', '-x264encopts', 'subq=5:8x8dct:frameref=2:bframes=3:b_pyramid:weight_b:'+ 
     73        #    'bitrate=%s:threads=%s%s%s'] 
     74        'H.264'         : [ 'x264', '-x264encopts', 'subq=7:global_header:trellis=2:partitions=all:no-fast-pskip:'+ 
     75            'me=umh:deblock:direct_pred=auto:level_idc=30:frameref=6:no8x8dct:me_range=32:bframes=0:nob_pyramid:'+ 
     76            'nobrdo:cabac:bitrate=%s:threads=%s%s%s'] 
    7077    }, 
    7178    'container' : { 
     
    468475        #set appropriate videopass, codec independant (lavc is vpass, xvid is pass) 
    469476        if passnr > 0: 
    470             if self.vcodec == 'XviD': 
     477            if self.vcodec == 'XviD' or self.vcodec == 'H.264': 
    471478                passname = ':pass=%s' 
    472479            else: 
     
    553560            args += [ mappings['acodec'][self.acodec][1], 
    554561                      mappings['acodec'][self.acodec][2] % self.abrate ] 
    555         args += [ '-o', output] 
     562        args += [ '-o', output + '~incomplete~' ] 
    556563 
    557564        # don't pass video filter in we have none 
     
    924931            if self.currentjob.rmsource is True: 
    925932                _debug_('Removing source: %s' % self.currentjob.source) 
    926                 os.remove(self.currentjob.source) 
     933                try: 
     934                    os.remove(self.currentjob.source) 
     935                except OSError : 
     936                    _debug_(' cannot remove file '+self.currentjob.source, DWARNING) 
     937            # 
     938            try: 
     939                os.rename(self.currentjob.output + '~incomplete~', self.currentjob.output) 
     940            except OSError : 
     941                _debug_(' cannot rename file to remove ~incomplete~ suffix '+self.currentjob.output, DWARNING) 
    927942            #we are done with this job, remove it 
    928943            del self.qlist[0]