Video upload gives error 400
While uploading a video, an error 400 throws up. Here is the complete error code.
Http failure response for https://cinemr.s3.amazonaws.com/cinemr_dev/1056186287834271763/source?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=%2F20191224%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20191224T122714Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=c4692cd484d0ae1eaf0d32e41b29e6382122c903b26f7cab292c9fd93d215a6b: 400 Bad Request
@benhayward.ben Do we need to make changes in settings.php and if Yes then exactly what changes ?
PS: I tried to follow the link and it returns an xml saying Permanent Redirect.
I tried modifying the settings.php and the AWS and video upload related to files to reflect our own s3 bucket and entered the key and secret, I have also created the elastic trans-coder and linked it with the bucket. The settings look like this:
$CONFIG->set('aws', [ 'key' => 'AKIATEWZVOZKDWHLSJ35', 'secret' => '************************', 'useRoles' => false, 'bucket' => 'elasticbeanstalk-ap-south-1-216278595156', 'staticStorage' => 'cinemr_dev', 'region' => 'ap-south-1', 'account_id' => '216278595156', 'elastic_transcoder' => [ 'pipeline_id' => '1577104947725-2esizr', 'presets' => [ "360.mp4" => "1351620000001-000040", "720.mp4" => "1351620000001-000010", "360.webm" => "1351620000001-100260", "720.webm" => "1351620000001-100250" ], 'dir' => 'cinemr_dev' ], 'queue' => [ 'namespace' => 'EmiDev', 'wait_seconds' => 3, ] ]);
$CONFIG->cinemr_url = 'https://elasticbeanstalk-ap-south-1-216278595156.s3.amazonaws.com/cinemr_dev/';
I have also modified the bucket name 'cinemr' in the Core files. Currently this is the error I am getting when uploading
In inspect, it appears as 403 error. When I enter the link in the browser, I get the following xml
@benhayward.ben , If you could just point me towards where its going wrong, please.
changed the description
@benhayward.ben Looking forward to hearing from you
OK. CORS had to be enabled. The above issue is solved. Now we are getting 'The video is being transcoded' for a 1 mb video file. Needless to say, Cant play it as well.
@benhayward.ben, i have been trying to find why the transcoding never ends, and discovered that the transcoding actually never even started. The video is being uploaded to s3 properly. But when i check the elastic transcoder jobs list, it is empty. I can't ascertain why this is happening though. I checked the code in AWS.php and other related files, but they seemed fine. I have updated the settings.php with transcoder pipeline details as well as changed the custom video presets to the ones in AWS. Are there any settings inaws that i should check that might be causing this issue ?
@benhayward.ben awaiting reply