Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何将视频文件的音频和视频部分作为单独的文件读取?我需要从视频文件中获取采样率和音频样本。谢谢。
将此用于音频:
video.MultimediaFileReader(videofilename,'AudioOutputPort',true,'VideoOutputPort',false);
并将其用于视频:
video.MultimediaFileReader(videofilename,'AudioOutputPort',false,'VideoOutputPort',true);