Preserving Audio stream of a Video file.

2 vues (au cours des 30 derniers jours)
Nikolay S.
Nikolay S. le 5 Fév 2012
Modifié(e) : Greg Heath le 26 Oct 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 commentaire
Nikolay S.
Nikolay S. le 26 Fév 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?

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by