tonches / moovrelocator

Automatically exported from code.google.com/p/moovrelocator
Other
0 stars 0 forks source link

Filesize Issue? #5

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm having an issue with a basic MOOV operation.  I think it's due to the 
filesize, because all my other test cases where the file was < 18 MB, it hasn't 
failed, when it's 18mb +, then the script crashes.

I've debugged it, so it is defintely failing wihin fix() function of the 
Moovrelocator.class.

More specificially, inside the _readBytes(), in the last "else" condition:

            } else {
$bytes = fread($this->_fp, $currentAtom->getSize());
$this->_middleBytes->writeBytes($bytes);
            }

From my debugging, i noticed it goes into this condition 2x (since there are 4 
atom objects.  I figured out it is on the 2nd run, where the "size" of the 
currentAtom is a LARGE number.

Are there limitations to this script?

ANYHELP would be greatly appreciated!

Original issue reported on code.google.com by tyson.w...@gmail.com on 31 Mar 2011 at 8:43

GoogleCodeExporter commented 9 years ago
hi!

Can you tell me the "size" of currentAtom at the 2nd run exactly and can you 
provide me the file as download anywhere so that i can try to reproduce this 
bug.

first aid:
Maybe it's just a memory_limit issue with PHP?!
You can try to increase the amount of memory one script can consume.

@runtime with:
"@ini_set("memory_limit",'32M');"
for example - or try to modify it directly in your php.ini

Original comment by phpflues...@googlemail.com on 7 Apr 2011 at 12:06

GoogleCodeExporter commented 9 years ago
The problem is that the way it is reading you have to have enough memory to 
read the entire file.  So there needs to be a way to not load the entire file 
into memory otherwise you will be limited by which files you can actually 
perform the move on.  Perhaps you can read files in a little bit at a time.

Original comment by saulpow...@gmail.com on 27 Apr 2011 at 7:16

GoogleCodeExporter commented 9 years ago
It tried to allocate 260946394 bytes at this place (line 507)
Total file size is 261760506. Does moovrelocator.class realy need to load all 
file in memory to relocate atom?
I upload sample file here - http://www.megaupload.com/?d=MDT5VB0A

Original comment by ghj...@gmail.com on 28 Sep 2011 at 5:42

GoogleCodeExporter commented 9 years ago
Guys, i too am getting something similar to ;

[It tried to allocate 260946394 bytes at this place (line 507)
Total file size is 261760506. Does moovrelocator.class realy need to load all 
file in memory to relocate atom?]

Any workaround ?

Original comment by meswara2...@gmail.com on 11 Jan 2012 at 6:34

GoogleCodeExporter commented 9 years ago
i tried to up the limit with "@ini_set("memory_limit",'32M');"   still no 
go...same message

Original comment by nunya...@gmail.com on 14 Feb 2012 at 6:00

GoogleCodeExporter commented 9 years ago
THIS SOLVED IT FOR ME...I went on the root and added this line to my .htaccess 
file...

php_value_memory_limit 128M  

or use whatever value for the memory...i've had to up it as high as 512 to get 
the 10 minutes or longer clips to go.

Original comment by nunya...@gmail.com on 15 Feb 2012 at 2:03

GoogleCodeExporter commented 9 years ago
Fails for 1.8GB video on Windows.  I don't know PHP.  Please help.

Original comment by rmartin....@gmail.com on 1 Jul 2013 at 4:06