Changeset 1875
- Timestamp:
- 10/11/08 20:31:23 (2 months ago)
- svm:headrev:
cc3e1ea1-1e01-0410-8d68-8b121e83a9d5:11157- Location:
- freevo
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
src/encodingcore.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
freevo/ChangeLog
r1874 r1875 20 20 * New wikisubtitles video plug-in to get subtitles for videos (F#2147641) 21 21 * Updated apple trailers (F#2089598) 22 * Updated encoding server to name incomplete encodings with incomplete (F#2190016) 22 23 * Updated Italian translation (F#2153010) 23 24 * Updated mouse support so that it is optional (F#2089306) -
freevo/src/encodingcore.py
r1845 r1875 61 61 'containers' : [ 'avi', 'mp4', 'mpeg' ], # add mkv back later 62 62 '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' ] 64 65 }, 65 66 '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'], 68 71 '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'] 70 77 }, 71 78 'container' : { … … 468 475 #set appropriate videopass, codec independant (lavc is vpass, xvid is pass) 469 476 if passnr > 0: 470 if self.vcodec == 'XviD' :477 if self.vcodec == 'XviD' or self.vcodec == 'H.264': 471 478 passname = ':pass=%s' 472 479 else: … … 553 560 args += [ mappings['acodec'][self.acodec][1], 554 561 mappings['acodec'][self.acodec][2] % self.abrate ] 555 args += [ '-o', output ]562 args += [ '-o', output + '~incomplete~' ] 556 563 557 564 # don't pass video filter in we have none … … 924 931 if self.currentjob.rmsource is True: 925 932 _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) 927 942 #we are done with this job, remove it 928 943 del self.qlist[0]
