Preserving Audio stream of a Video file.

1 visualización (últimos 30 días)
Nikolay S.
Nikolay S. el 5 de Feb. de 2012
Editada: Greg Heath el 26 de Oct. de 2013
working with video and image processing, and posting functions I consider useful on Matlab File Exchange. I’m usually concerned with image data of the video frames so I have neglected the Audio data so far. Recently when I’ve used my code ( http://www.mathworks.com/matlabcentral/fileexchange/32351-apply2videoframes) to rotate a home video, I’ve noticed Audio data disappears in process. I’ve tried searching for an appropriate function, but neither this forum not Matlab help were able to propose a suitable solution.
What I’d like to have, is an option to take the audio of the input Video file adding it to the resulting video, while both will have same number of frames, and same frame rate. In a more general case of several out Videos (for this code for example http://www.mathworks.com/matlabcentral/fileexchange/34845-crop-vidoe-to-sub-elements ) I’d like to add same input Audio to all out Video files.
Thanks in advance,
Nikolay.
  1 comentario
Nikolay S.
Nikolay S. el 26 de Feb. de 2012
And even in a more general case, dividing the audio stream to N segments (N=number of frames), and associating those audio stream segments with each frame, will allow preserving frame-audio relation..
A word of advise anyone?

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by