Combining (Sound File with a video file) and (reading certain interval of a sound file)
3 ビュー (過去 30 日間)
古いコメントを表示
Mohamed Maher
2014 年 12 月 27 日
回答済み: Parameswaran Bose
2014 年 12 月 28 日
Hello, I have two questions:
1- How can I combine an existing sound and video files together in my matlab code eg: Video.avi + Sound.mp3 = video.avi but has the audio of 'Sound.mp3'
2-I want to read a specific time interval from a sound file eg: Sound.mp3 [10,40] --> This will read sound file from second 10 to second 40
Thanks in advance
0 件のコメント
採用された回答
Parameswaran Bose
2014 年 12 月 28 日
Hi Mohamed Maher,
This is a very simple task with ffmpeg api. I don't know how to do it in matlab. You can download ffmpeg api from the following location https://www.ffmpeg.org/download.html and search for the commands. you can get lot of help.
(1) ffmpeg -i video.avi -i sound.mp3 video.avi
rgds Parameswaran Bose
0 件のコメント
その他の回答 (1 件)
Parameswaran Bose
2014 年 12 月 28 日
Hi maher, The following command will help you for the second question.
ffmpeg -ss 10 -i file.mp3 -t 40 ofile.mp3
rgds Parameswaran Bose
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Audio and Video Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!