def __init__(self, filepath): if not filepath.endswith('.3gp'): raise ValueError("Not a .3gp file") self.filepath = filepath

For now, here’s a for handling .3gp files:

Just let me know the exact scenario, and I’ll refine it.