I am using an API that returns a video in the following format:
{
audio:"data:audio/mp3;base64,//tgx...",
video:{
"frames":[
{"data":"/9j/4AA...","position":0,"time":0.157},
{"data":"/9j/4AA...","position":1,"time":0.105},
....
{"data":"/9j/4AA...","position":n},
],
"fps":9.18,
"duration":20
}
}
As you can see in the object the audio and video are separated, the audio in mp3 format and the video in a frame array. How can I put them together and generate a blob file ('.mp4')
If is not possible, How can I generate Blob from frames array