VideoReader: audio from avi
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello Matlab users,
do you know how to import (synchronous) audio from a video file? I use the following code to read the first 10 video frames, but is there a method to import the audio from the avi container?
readerObj = VideoReader(filename);
v = read (readerObj, [1 10]);
Best regards, Philipp
0 Commenti
Risposte (2)
Ryan G
il 11 Ott 2012
Have you tried:
[y,Fs] = audioread('myFile.avi');
If this doesn't work you should get the output from
info = mmfileinfo('xylophone.mpg')
audio = info.Audio
video = info.Video
and determine if the audio portion is supported from MATLAB.
0 Commenti
Vedere anche
Categorie
Scopri di più su Audio and Video Data in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!