I’m uploading an audio only file and assigning the mediatype as audio but anything longer than 1 second it removed the speaker thumbnail and leaves you a black box (probably extracted from no video from from file)
so I try to replace it with a thumbnail after conversion. I get forbidden access using updateThumbnailFromUrl
If the file you’re uploading is audio only, I see no reason for it not to be assigned the default audio thumbnail. If the file has a video track, however, I can see why this would happen. You can check whether a video track exists using the mediainfo util. If that’s the case and you are only interested in the audio, you can use ffmpeg to extract only the audio track and save it onto a separate file.
As for KalturaAPIException SERVICE_FORBIDDEN The access to service [media->updateThumbnailFromUrl] is forbidden, I don’t see you’re setting a KS in your code… are you setting it and did not provide the full code?
sorry for not getting back, been busy. seems I forgot to paste session into testme after starting a session. used to be you didn’t have to do that will subsequent calls after started a session.
back back to original issue. audio thumbnail gets replaced with black because the transcoding removes it and tries to find a frame of nothing. and I was trying to swap thumbnail before transcodes finish. so I have to do a cron that checks whether the ntry is ready then swap in the audio thumbnail