Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move MOOV atom to start of file #10

Closed
mstrelan opened this issue Feb 22, 2013 · 2 comments
Closed

Move MOOV atom to start of file #10

mstrelan opened this issue Feb 22, 2013 · 2 comments

Comments

@mstrelan
Copy link
Contributor

Wow, lots of commits lately, I'll have to check it out. I've read a fair bit about relocating the "MOOV" atom to the start of the file to allow for much faster streaming of large files. I haven't really found any good reference material on it, but I downloaded Atomboxstudio to inspect the atoms, and an Adobe Air application called QT Index Swapper to rearrange the atoms.

You can see the correct order of atoms in the right hand pane here:
new-girl-atoms

Is this easy/possible to do in sickbeard_mp4_automator? I imagine it involves tinkering with mp4.py. I found this issue but the patch doesn't really seem to do anything - http://code.google.com/p/mutagen/issues/detail?id=80&colspec=ID%20Type%20Status%20Priority%20Milestone%20Summary

@mdhiggins
Copy link
Owner

Hm yeah I don't see how that patch does anything. Modifying the mp4.py would be where that would need to take place, I just don't know how to go about doing that.

@mstrelan
Copy link
Contributor Author

I wonder if we could do a sort immediately after this

def __init__(self, fileobj): self.atoms = [] fileobj.seek(0, 2) end = fileobj.tell() fileobj.seek(0) while fileobj.tell() + 8 <= end: self.atoms.append(Atom(fileobj))

And then hopefully that gets written to the file when other metadata is saved, I'm not sure.

@mdhiggins
Copy link
Owner

There is a python script called QTFaststart that can accomplish this that could be incorporated. However, I'm thinking there might be a way to have the mutagen tag writer do it as well which would be a more ideal option.

https://github.com/danielgtaylor/qtfaststart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants