Error witht movies longer than 3 hours

Fixed and closed topics
Locked
landruid
User
Posts: 12
Joined: Thu Jan 12, 2012 11:43 pm
Location: Amersfoort, The Netherlands
Contact:

Error witht movies longer than 3 hours

Post by landruid »

Hi,

I guess i have found an problem.
In my database i have also some movies and tv-series.
When i update through web, the update freezes, no output on screen been shown.

When i update through shell php /var/www/...../update.php update (i don't use silent 'cause i'd like t see the info's), after some time waiting the next info is schowed;

Pearl_Harbor.
Processing file info...
var/www/...../Schindlers_list.avi
ERROR
----------------------------------------------------------
Failed to open file:
/var/www/...../Schindlers_List.avi
Check File Permission.
root@server1:~#_


I've schecked the permissions and they are the same as other files, and the codec is also the same as the other files.
When i delete the file there is no failure.

I've tested is with three .avi files play-time longer than 3 hours and with these files the script freezes.
Also tested it with a .avi file with a play-time shorter than 3 hours and it gives no problem.

Used Files
Schindlers_list.avi (3:07:11) [Failed]
Green_Mile.avi (3:01:05) [Failed]
Bankock_Hilton.avi (4:11:47) [Failed]
Pearl_Harbor.avi (2:55:35) [Passed]

What could be the problem, or will it be solved at the next version???
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Error witht movies longer than 3 hours

Post by wbartels »

What is the filesize of these movies?
landruid
User
Posts: 12
Joined: Thu Jan 12, 2012 11:43 pm
Location: Amersfoort, The Netherlands
Contact:

Re: Error witht movies longer than 3 hours

Post by landruid »

Hi Willem,
The file sizes:

Schindlers_list.avi (3:07:11) 2.416.854 kB
Green_Mile.avi (3:01:05) 2.224.027 kB
Bankock_Hilton.avi (4:11:47) 3.023.973 kB
Pearl_Harbor.avi (2:55:35) 1.048.459 kB
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Error witht movies longer than 3 hours

Post by wbartels »

This is not a bug, but a limitation of 32-bit PHP.
32-bit PHP doesn't support files larger that 2GB.
For support of files larger than 2GB a 64-bit PHP version is needed!

See readme.txt:

Code: Select all

+------------------------------------------------------------------------+
| Very large files                                                       | 
+------------------------------------------------------------------------+
netjukebox 5.25 and up supports files larger than 2GB (64-bit PHP installations only).
landruid
User
Posts: 12
Joined: Thu Jan 12, 2012 11:43 pm
Location: Amersfoort, The Netherlands
Contact:

Re: Error witht movies longer than 3 hours

Post by landruid »

Ok,

that's clear ;)

Is it possible that the next update skips files larger than 2GB?
When the script is at a file larger than 2GB it stops after the message it was failed to open the file.

The running server is also a samba server, and at this moment i've fixed the problem to rename the files larger than 2GB's from .avi to .avi.divx :idea:
It would be nice that it will be solved in the future so i can rerenem the files bigger than 2Gig's. ;)
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Error witht movies longer than 3 hours

Post by wbartels »

landruid wrote:Ok,

that's clear ;)

Is it possible that the next update skips files larger than 2GB?
When the script is at a file larger than 2GB it stops after the message it was failed to open the file.

The running server is also a samba server, and at this moment i've fixed the problem to rename the files larger than 2GB's from .avi to .avi.divx :idea:
It would be nice that it will be solved in the future so i can rerenem the files bigger than 2Gig's. ;)
Maybe this will work:
Update option_max_2gb_check two times in the update.php script like this:

Code: Select all

$getID3->option_max_2gb_check = true;
landruid
User
Posts: 12
Joined: Thu Jan 12, 2012 11:43 pm
Location: Amersfoort, The Netherlands
Contact:

Re: Error witht movies longer than 3 hours

Post by landruid »

Maybe this will work:
Update option_max_2gb_check two times in the update.php script like this:

Code: Select all

$getID3->option_max_2gb_check = true;
[/quote]


I've tried it with your reply, it give the same error output, i have also tried it with false with same error output.
seems not to work at this line
hmmz, i'll put it back to null ;)
User avatar
wbartels
netjukebox developer
Posts: 881
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Error witht movies longer than 3 hours

Post by wbartels »

This is not a bug but a PHP limitation.
Locked