Changeset 445
- Timestamp:
- Dec 1, 2011, 4:54:47 PM (13 years ago)
- Location:
- trunk/UTIL/PYTHON
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot.py
r444 r445 486 486 if mrate is not None: 487 487 print "Re-encoding movie.. first pass" 488 video.first_pass(filename=moviename,quality=mquality )488 video.first_pass(filename=moviename,quality=mquality,rate=mrate) 489 489 print "Re-encoding movie.. second pass" 490 video.second_pass(filename=moviename,quality=mquality )490 video.second_pass(filename=moviename,quality=mquality,rate=mrate) 491 491 492 492 ############### -
trunk/UTIL/PYTHON/videosink.py
r444 r445 22 22 self.p.stdin.write(image.tostring()) 23 23 24 def first_pass(self,filename="output",quality=False ) :24 def first_pass(self,filename="output",quality=False,rate=10) : 25 25 26 26 … … 31 31 '-of', 'rawvideo', 32 32 '-nosound', 33 '-ofps',str(rate), 33 34 '-ovc', 'x264', 34 35 '-x264encopts', 'subq=1:frameref=1:bitrate='+bitrate+':bframes=1:pass=1', … … 38 39 subprocess.call(cmdstring,shell=False) 39 40 40 def second_pass(self,filename="output",quality=False ) :41 def second_pass(self,filename="output",quality=False,rate=10) : 41 42 bitrate="7200" 42 43 if quality:bitrate="50000" … … 45 46 '-of', 'rawvideo', 46 47 '-nosound', 48 '-ofps',str(rate), 47 49 '-ovc', 'x264', 48 50 '-x264encopts', 'subq=6:frameref=5:bitrate='+bitrate+':me=umh:partitions=all:bframes=1:me_range=16:cabac:weightb:deblock:pass=2',
Note: See TracChangeset
for help on using the changeset viewer.