View Page Source

Revision (current)
Last Updated by Dada on 3/17/2012 6:19 PM
Back to Page

!!! About me
Hello. [http://www.youtube.com/user/dada78641|Visit me on Youtube.]

!! Currently encoding
* All sorts of stuff.

!! Encoding junk

! x264:

 x264 "X:\input.avs" --crf 24 --keyint 500 --ref 16 --mbtree --bframes 16 --b-adapt 2
 --weightb --direct auto --subme 9 --trellis 2 --aq-mode 1 --partitions all --me umh
 --merange 64 --tcfile-in "X:\input.times.txt" --8x8dct --no-dct-decimate
 --rc-lookahead 250 --fullrange on --muxer auto --output "X:\output.avi"

! mkvmerge:

 mkvmerge --compression -1:none --aspect-ratio 0:4/3 --timecodes 0:input.times.txt
 input.avi input.ogg subs.ssa -o output.mkv

and so on and so forth.

! Putting segment numbers at the back of the filename:

Some emulators make segments that start with a number. VirtualDub requires segment serial numbers to be at the end of the file, otherwise it won't automatically detect all segments. To fix that (code is untested...):

 #!/usr/bin/python
 import os, re
 
 path = './'
 listing = os.listdir(path)
 for file in listing:
     matches = re.match(r'([[0-9]]{3}_)(.+?)\.(.*)', file)
     if matches is not None:
         number = matches.group(1).strip('_')
         name = matches.group(2)
         ext = matches.group(3)
         new_name = '%s_%s.%s' % (name, number, ext)
         print('Renaming %s to %s...' % (file, new_name)'''')
         #os.rename(path+file, path+new_name)
 
 print('All done.')

Note: formatted so that it displays correctly in rendered text, not in source.

! Converting Colloquy transcripts to SRT files: 

This was used to create the author's commentary for FFIX. The code can be found here: http://is.gd/ogSJX3