Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check the status of video created after createMediaConcatenationPipeline #2914

Closed
UsmanShafaqat007 opened this issue Jun 28, 2024 · 4 comments
Labels
capture-service Issues related to media capture questions, documentations and setup Triaged

Comments

@UsmanShafaqat007
Copy link

What are you trying to do?

i successfully create a video chunks via

$this->chimeMediaClient->createMediaCapturePipeline([
'ChimeSdkMeetingConfiguration' => [
'ArtifactsConfiguration' => [
'Audio' => [
'MuxType' => 'AudioWithCompositedVideo'
],
'CompositedVideo' => [
'GridViewConfiguration' => [
'ContentShareLayout' => 'Horizontal'
],
'Layout' => 'GridView',
'Resolution' => 'FHD',
],
'Content' => [
'State' => 'Disabled'
],
'Video' => [
'State' => 'Disabled'
],
]
],
'SinkArn' => "arn:aws:s3:::{$this->s3Bucket}/{$this->s3BucketDir}/mediaCaptures/{$videoRecordingUuid}",
'SinkType' => 'S3Bucket',
'SourceArn' => "arn:aws:chime::{$accountId}:meeting:{$meeting['MeetingId']}",
'SourceType' => 'ChimeSdkMeeting',
])

and also be able to generate a complete video using this

$this->chimeMediaClient->createMediaConcatenationPipeline([
'Sinks' => [
[
'S3BucketSinkConfiguration' => [
'Destination' => "arn:aws:s3:::{$this->s3Bucket}/{$this->s3BucketDir}/recordings/{$videoRecordingUuid}",
],
'Type' => 'S3Bucket',
]
],
'Sources' => [
[
'MediaCapturePipelineSourceConfiguration' => [
'ChimeSdkMeetingConfiguration' => [
'ArtifactsConfiguration' => [
'Audio' => [
'State' => 'Enabled',
],
'CompositedVideo' => [
'State' => 'Enabled',
],
'Content' => [
'State' => 'Disabled',
],
'DataChannel' => [
'State' => 'Enabled',
],
'MeetingEvents' => [
'State' => 'Disabled',
],
'TranscriptionMessages' => [
'State' => 'Enabled',
],
'Video' => [
'State' => 'Disabled',
],
],
],
'MediaPipelineArn' => "arn:aws:chime:{$this->chimeMeetingClient->getRegion()}::media-pipeline/{$meetingId}",
],
'Type' => 'MediaCapturePipeline',
],
]
])

issue that i am facing is i am unable to detect if the video is generated successfully by createMediaConcatenationPipeline after few min or after some time i have tried to use GetMediaCapturePipeline or ListMediaCapturePipelines but it just return as empty or not found against the MediaPipelineId. i want to check the status and need to notify our users that the video is ready to view

i need to check if its created successfully so i can delete the small chunk resourrces generated by createMediaCapturePipeline as i no longer need them and if i dont remove them it will cost me as its on s3 so please suggest if there is any solution you guys have on it.
so i can do both check status and remove the Artifacts.

How can the documentation be improved to help your use case?

What documentation have you looked at so far?

https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-chime-sdk-media-pipelines-2021-07-15.html#createmediacapturepipeline

@UsmanShafaqat007 UsmanShafaqat007 changed the title check the status of video crated after createMediaConcatenationPipeline check the status of video created after createMediaConcatenationPipeline Jun 28, 2024
@xuesichao xuesichao added the capture-service Issues related to media capture questions, documentations and setup label Jun 28, 2024
@niborkar
Copy link
Contributor

niborkar commented Jul 1, 2024

In order to get the status of media pipeline, you can leverage media pipeline events- https://docs.aws.amazon.com/chime-sdk/latest/dg/media-pipe-events.html

Alternatively, you can also use GetMediaPipeline or ListMediaPipelines APIs with the mediaPipelineId of concatenation pipeline to get the current status- Stopped status would indicate that concatenation is completed and video is ready to view.

@UsmanShafaqat007
Copy link
Author

when ever i tried to call getmedia and listmedia both return emtpy and there is no indication either the concatenation is completed or failed

@niborkar
Copy link
Contributor

niborkar commented Jul 7, 2024

Do you have the GetMediaPipeline/ListMediaPipelines API call requestID that returned empty response? Also, can you provide us with the capture and concatenation pipelineID we can use to debug?

@xuesichao
Copy link
Contributor

Closing this due to inactivity. Please reopen or submit a support case if this is still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
capture-service Issues related to media capture questions, documentations and setup Triaged
Projects
None yet
Development

No branches or pull requests

3 participants