フィルターのクリア

hi i hve to add audio file to video file ...but im getting error plz help me..

1 回表示 (過去 30 日間)
Gohan
Gohan 2016 年 10 月 10 日
コメント済み: Gohan 2016 年 10 月 12 日
my code is
videoFReader = vision.VideoFileReader('audio.avi');
[AUDIO,Fs] = wavread('audio.wav');
videoFWriter = vision.VideoFileWriter('myfile.avi');
videoFrame = step(videoFReader);
step(videoFWriter,videoFrame,AUDIO);
release(videoFReader);
release(videoFWriter);
both are different files im getting error as
Error using vision.VideoFileWriter/step
Too many input arguments; expected 1 (in addition to the object handle), got 2.
Error in ex (line 5)
step(videoFWriter,videoFrame,AUDIO);

採用された回答

Walter Roberson
Walter Roberson 2016 年 10 月 10 日
編集済み: Walter Roberson 2016 年 10 月 10 日
Your call to vision.videoFileWriter needs to add 'AudioInputPort', true
  9 件のコメント
Gohan
Gohan 2016 年 10 月 12 日
Sir I'm getting video and audio only a fraction of second sir ... Only to a single frame the audio samples are added ...resultant video has only a fraction of second video with audio
Gohan
Gohan 2016 年 10 月 12 日
Thanku so much sir I'm getting output ....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by