Adding FFmpeg toolbox into MATLAB

16 ビュー (過去 30 日間)
Andrés Liu
Andrés Liu 2015 年 3 月 7 日
編集済み: Andrés Liu 2015 年 3 月 7 日
How do I "add" the ffmpeg functions toolbox into matlab so that I can use them. This is my code but the ffmpeg part doesn't work.
function transcode(MP3file)
if exist(MP3file, 'file')
ffmpeg -i file.mp3 output.wav;
[y, Fs] = audioread('output.wav');
else
disp('The file doesn't exist')
end
end

回答 (3 件)

Andrés Liu
Andrés Liu 2015 年 3 月 7 日
編集済み: Andrés Liu 2015 年 3 月 7 日
Never mind. I figured out how to install it correctly, I followed these steps: http://adaptivesamples.com/how-to-install-ffmpeg-on-windows/ . Thank you!

Star Strider
Star Strider 2015 年 3 月 7 日
I don’t have any experience with it myself, but the documentation for Working with Raspberry Pi Camera Board implies that the instructions on install it are at the website:
  • Install FFmpeg to your host computer using the appropriate download links in the ffmpeg.org web site following appropriate installation instructions.
  2 件のコメント
Andrés Liu
Andrés Liu 2015 年 3 月 7 日
The website doesn't say anything on how to install it, or at least I can't find it.
Star Strider
Star Strider 2015 年 3 月 7 日
I looked for a while and I can’t find it either. It has ‘Download’ sites (I have no reason to download it so I didn’t), but nothing that I can find about how to install it or configure it in MATLAB, even in the documentation.
Contact MathWorks and ask them.
I have no experience with Raspberry Pi, and I likely won’t for the foreseeable future. After searching for information on how to install the camera board software and finding nothing, I’m not eager to buy the hardware.

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


James Tursa
James Tursa 2015 年 3 月 7 日
編集済み: James Tursa 2015 年 3 月 7 日
Not familiar with ffmpeg, but maybe try the function call syntax (I assume file.mp3 is a typo and you meant MP3file?):
ffmpeg('-i',MP3file,'output.wav');
  2 件のコメント
Andrés Liu
Andrés Liu 2015 年 3 月 7 日
Doesn't work either.
James Tursa
James Tursa 2015 年 3 月 7 日
"Doesn't work" in what way? Do you get an error message? Incorrect output? Or what?

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

カテゴリ

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