1.6 rc2 extrange error on upload videos

Asked by Josep Maria

I've just installed 1.6rc2 and I've tried to upload videos from my 1.6rc1 version. I've downloaded from rc1 and uploaded to rc2. this error came with some of the videos:

 Error Image requires a minimum height

It doesn't seem a php limit because I've uploaded larger videos and same mpg format on my rc2 than the ones that show that error. It is also extrange that it says something about image, when I'm uploading mpg video.

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Josep Maria
Solved:
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

Just tried on my 1.6.0-rc2 install and don't see the same issue.

Seeing what's in the Xibo log would be the first step

Revision history for this message
Hubert Haneke (error3) said :
#2

1.6.0-rc2 install

I don't see the same issue with a mpg video (size 21.91M)

Revision history for this message
Alex Harrington (alexharrington) said :
#4

The pertinent section seems to be:

Date: 2014-04-10 09:20:13
Page: module
Function:
Message: Creating new module with MediaID: LayoutID: 0 and RegionID:

Date: 2014-04-10 09:20:13
Page: module
Function:
Message: Module created with MediaID: LayoutID: 0 and RegionID:

Date: 2014-04-10 09:20:13
Page: Media
Function: ValidExtensions
Message: IN

Date: 2014-04-10 09:20:13
Page: Media
Function: LoadModuleInfo
Message: IN

Date: 2014-04-10 09:20:13
Page: content
Function:
Message: Unable to commit/rollBack

What file type is this that you're trying to upload?

Alex

Revision history for this message
Josep Maria (vinolasbcn) said :
#5

Hi,

It has nothing to do with Xibo itself. I've tested function getimagesize() in my debian and in Fedora and it seems to have a bug in fedora:

I've tested with this code:

<?php
$source_image_path = '11.mpg';

$arrrrr = getimagesize($source_image_path);

print("arrrrr :: ");
print_r($arrrrr);
print("");
?>

And this are the results in both machines:
Ubuntu: PHP 5.3.10-1ubuntu3.10
arrrrr ::

Fedora: PHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)
arrrrr :: Array
(
    [0] => 4
    [1] => 0
    [2] => 17
    [3] => width="4" height="0"
    [bits] => 63683
    [mime] => image/vnd.microsoft.icon
)

So, as you can see php 5.3.3 is not handling some mpg videos as expected in fedora php 5.3.3, it thinks they are images. I'll try to dig into php 5.3.3 bugs and see what I can do.
Thanks for the help!

Viñolas