mdhiggins / sickbeard_mp4_automator

Automatically convert video files to a standardized format with metadata tagging to create a beautiful and uniform media library
MIT License
1.52k stars 202 forks source link

Cannot tag files bigger than 2gb #88

Closed conrelma closed 10 years ago

conrelma commented 10 years ago

I'm using your script to manually tag old movies in mp4 format. When they are bigger than 2gb the tagger seems to fail every time. Al the movies smaller than 2gb also fails.

I've converted the same mkvs to mp4 using manual.py to see if it was something I did wrong with my conversion, but the files still fail that are bigger than 2gb.

Is it a setting I need to change or is there a file size limitation to tagging mp4 files?

mdhiggins commented 10 years ago

What error are you getting?

Also try updating to the 64-bit version of python 27 if possible, that seems to resolve the size issue for most people.

conrelma commented 10 years ago

I'll try to upgrade to 64bit Python.

Here is the error below.

C:\sickbeard_mp4_automator>"C:\python27\python.exe" "C:\sickbeard_mp4_automator\manual.py" "C:\converted hd movies\Despicable Me (HD).mp4" -silent Matched movie title as: Despicable Me 2010-07-08 Processing Despicable Me Tagging file :C:\converted hd movies\Despicable Me (HD).mp4 Trying to write tags Traceback (most recent call last): File "C:\sickbeard_mp4_automator\manual.py", line 239, in main() File "C:\sickbeard_mp4_automator\manual.py", line 220, in main processFile(path, tagdata) File "C:\sickbeard_mp4_automator\manual.py", line 170, in processFile tagmp4.writeTags(output['output']) File "C:\sickbeard_mp4_automator\tmdb_mp4.py", lin e 89, in writeTags video.save() File "C:\sickbeard_mp4_automator\mutageninit. py", line 134, in save return self.tags.save(filename, **kwargs) File "C:\sickbeard_mp4_automator\mutagen\mp4.py", line 299, in save self.__save_existing(fileobj, atoms, path, data) File "C:\sickbeard_mp4_automator\mutagen\mp4.py", line 352, in __save_existing insert_bytes(fileobj, delta, offset) File "C:\sickbeard_mp4_automator\mutagen_util.py" , line 226, in insert_bytes map = mmap.mmap(fobj.fileno(), filesize + size) OverflowError: cannot fit 'long' into an index-sized integer

mdhiggins commented 10 years ago

Let me know how 64 bit python works

conrelma commented 10 years ago

64bit worked! Thanks for an awesome piece of work!

mdhiggins commented 10 years ago

No problem, enjoy! Closing this issue

mdhiggins commented 9 years ago

As of commit 8375e799c53cfa9a0d87d62cccf747072875ee97 a workaround for this issue has been found and tagging should work on 32 bit systems regardless of file size