Closed MPThLee closed 1 year ago
Please try adding the following to LocalSettings.php:
$wgAWSRepoZones['transcoded'] = [
'container' => 'local-transcoded',
'path' => '/transcoded',
'isPublic' => true
];
It worked. Video is uploaded to bucket! But somehow, it's not ended well. DivisionByZeroError was showed up.
2023-07-19 08:59:43 webVideoTranscodePrioritized File:[filename].mp4 transcodeMode=derivative transcodeKey=180p.vp9.webm prioritized=1 namespace=6 title=[filename].mp4 requestId=f22e99ac0119b0f767d9f3c5 (uuid=e4edec26e87245e794088cb31001520c,timestamp=1689749890) STARTING
2023-07-19 08:59:59 webVideoTranscodePrioritized File:[filename].mp4 transcodeMode=derivative transcodeKey=180p.vp9.webm prioritized=1 namespace=6 title=[filename].mp4 requestId=f22e99ac0119b0f767d9f3c5 (uuid=e4edec26e87245e794088cb31001520c,timestamp=1689749890) t=16413 error=DivisionByZeroError: Division by zero
And it seems like getLength()
on File
is returns 0
somehow... Error was not enough to tell so I looked up sentry and:
I don't know it is issue with AWS or TimedMediaHandler. But File should be referred somewhere in the AWS?
Sorry, Seems like TimedMediaHandler doesn't have correct metadata(for already uploaded videos) in DB which causes this division by zero error. Issue with AWS is solved. Thank you!
I'm trying to transcode videos with TimedMediaHandler. And It seems like failed with this error (on runJobs):
I searched a bit and
[Bucket] is missing and is a required parameter
is throwed via PHP AWS SDK. But it is weird that s3 is works ok on Web. I'm thinking that E:AWS is incompatible with TimedMediaHandler, or maybe just a bug. I have no idea, so I posted this issue here. If this is not possible to do, closing this issue. It's my first time to work with videos on mediawiki. Without transcode, it works well.