Preserving Audio stream of a Video file.

2 次查看(过去 30 天)
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 个评论
Nikolay S.
Nikolay S. 2012-2-26
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?

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by