Is there a way to view the contents of an .fsa alignments file? This seems like the most basic admin/exploration tool, but I've spent 30m looking through docs and forums and search results and can't find it. I've even start looking at the code, but my Python is super-rusty, and my first attempt still wasn't working after about 15m:
Code: Select all
#!/usr/bin/env python
import os
import pickle
import zlib
with open( 'foo.fsa', 'rb' ) as foofile:
data = foofile.read()
data = zlib.decompress(data)
data = pickle.loads(data)
print( data )
Still produces noise.
Also, as there an easy way to change the basename used for extracted image filenames inside the alignments file? For example, imagine I originally had a file foo.mp4 that I ran an extraction on, producing a bunch of foo???????.png image files and a foo_alignments.fsa file that references the 'foo' basename.
Now imagine I wanted to change the basename of the video and resulting image set. How do I update the contents of the alignments file to conform to my desired new basename?