TASVideos

Tool-assisted game movies
When human skills are just not enough

Dada

About me

Hello. 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


Combined RSS Feed
Dada last edited by Dada on 2012-03-17 18:19:02
Page info and history | Latest diff | List referrers | View Source
This page appears to be the personal page of Dada.
The following information is available of this person: Note: Opinions expressed on homepages of our users are the personal opinions of those people, and don't necessarily represent the opinion of the whole TASVideos community.