add audio to a static image
Mostrar comentarios más antiguos
I have an audio signal and a picture. I'm trying to output a video of the static image for the duration of the audio that's playing. I'm woefully unskilled with the computer vision toolbox (but I have it). Could someone help me with this seemingly simply task?
[xt,fs]=audioread('mywav.wav');
im=imread('myimage.png');
videoFWriter = vision.VideoFileWriter('newvideo.avi','AudioInputPort',true);
videoFrame = im;
step(videoFWriter,videoFrame,xt);
release(videoFWriter);
The output is a video file, but when I try to listen to the audio of it, it's been resampled and all sorts of crazy. Help!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Processing and Computer Vision en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!