Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We are using 7.x-6.4 version of Brightcove. While the upload of videos to Brightcove is working, we are not able to upload the poster or thumbnail image along with the Video. We don't see any error messages and Brightcove is returning a 200 code. But the thumbnail/poster is not set in the uploaded video. Is this a bug or are we missing something?
I had enabled the logging inside the Brightcove API library and here is the trace of API call made to Brightcove:
array (
'request' => 'POST https://ingest.api.brightcove.com/v1/accounts/xyz/videos/abc/ingest-requests',
'request_body' => '{"master":{"url":"https:\\/\\/www.example.com\\/sites\\/default\\/files\\/test_thumb_01_2.mp4"},"profile":"screencast","poster":{"url":"https:\\/\\www.example.com\\/sites\\/default\\/files\\/488285f8-poster.jpg","width":640,"height":362},"thumbnail":{"url":"https:\\/\\/www.example.com\\/sites\\/default\\/files\\/488285f8-thumb.jpg","width":480,"height":272},"capture-images":false}',
'headers' =>
array (
0 => 'Authorization: Bearer AGdxA***_8Q',
1 => 'Content-Length: 414',
2 => 'Content-Type: application/json',
),
'response' =>
array (
0 => 200,
1 => '{"id":"77428206-38a0-48d8-8624-4f38a2dbaedd"}
',
),
'response_headers' => 'HTTP/1.1 200 OK
Access-Control-Allow-Headers: Content-Type, Authorization, Content-Length, X-Requested-With, Cache-Control
Access-Control-Allow-Methods: GET,PUT,POST,PATCH,DELETE,OPTIONS
Access-Control-Allow-Origin: *
BCOV-instance: i-03c96a32, fd392b2, 2016-09-13 10:24:41.273Z
BCOV-REQUEST-ID: 761c2b57-fe36-451a-b2bc-6fa9423a0762
Content-Type: application/json; charset=UTF-8
Date: Tue, 13 Sep 2016 10:24:41 GMT
Server: nginx
Strict-Transport-Security: max-age=600
X-Originating-URL: https://ingest.api.brightcove.com/v1/accounts/xyz/videos/abc/ingest-requests
Content-Length: 46
Connection: keep-alive
',
)
Comments
Comment #2
tamasd CreditAttribution: tamasd at Pronovix commentedCan you check if all the files referenced in this request are exist and reachable by a 3rd party server?
Comment #3
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commentedComment #4
sivapattabhiram CreditAttribution: sivapattabhiram commentedYes. All the 3 files are accessible from the web (checked it using chrome and also curl). Btw, when I looked at the apache access log, I could see GET request only for the video file originating from IP 54.146.*.*. I presume this would be the Brightcove servers. There are no GET requests for the Image files.
I had also enabled the Ingest callback which logged the following response from Brightcove in the watchdog:
array ( 'videoId' => '5136286781001', 'accountId' => '***', 'entityType' => 'ASSET', 'action' => 'CREATE', 'jobId' => 'fd3b109e-a553-41c8-99e5-3217272dcf05', 'entity' => '5136301475001', 'status' => 'SUCCESS', 'version' => '1', )
Comment #5
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commented@sivapattabhiram
I haven't been able to reproduce the issue with these versions:
* 7.x-6.4 and PHP-API-Wrapper 0.8
* 7.x-6.4 and PHP-API-Wrapper 0.7
* 7.x-6.x and PHP-API-Wrapper 0.8
* clean install of 7.x-6.4 and PHP-API-Wrapper 0.8 (including a composer update)
What PHP-API-Wrapper version are you using?
And can you try reproducing the issue in a clean installation of Drupal?
Comment #6
sivapattabhiram CreditAttribution: sivapattabhiram commented@jan.mashat
I tried it in a clean installation of Drupal in our server with 7.x-6.4 and PHP-API-Wrapper 0.8. The problem still persists. The Video upload works wheres the thumbnail and poster images are not set in Brightcove.
Btw, what profile did you use while uploading the videos and are there any specific dimensions for the images?
Comment #7
sivapattabhiram CreditAttribution: sivapattabhiram commentedWe were able to fix this issue. The problem was a missing intermediate certificate in the SSL chain. While the video uploads were working fine, the thumbnail and poster image uploads require that the complete SSL certificate chain is valid. You can check the validity of the SSL chain here: https://www.sslshopper.com/ssl-checker.html. Once we installed the proper intermediate certificates, the poster and thumbnail image uploads started working fine. Thanks for the help.
Comment #8
jan.mashat CreditAttribution: jan.mashat at Pronovix for BrightCove commented