Preserving Audio stream of a Video file.

2 views (last 30 days)
Nikolay S.
Nikolay S. on 5 Feb 2012
Edited: Greg Heath on 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 Comment
Nikolay S.
Nikolay S. on 26 Feb 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?

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!