Merge Audio with Video - ASP.NET Media Handler Pro

15 views
Skip to first unread message

shane

unread,
Nov 29, 2010, 12:19:54 PM11/29/10
to mediasoftpro
[user: Jeo]

Hi,

Can I know if Media Handler Pro can merge/overlay audio into a video?

(overlay a recorded audio on top of an existing video and audio)


Thanks,
Joe

shane

unread,
Nov 29, 2010, 12:20:46 PM11/29/10
to mediasoftpro
Hi,

Yes you can use Media Handler Pro to merge audio track with video and
publish it to another format. Sample code is shown below

// Code to merge mp3 audio track with mp4 video and generate flv
video.

_mhandler.InputPath = RootPath + "\\contents\\original";
_mhandler.OutputPath = RootPath + "\\contents\\flv";
string original_video_path = _mhandler.InputPath + "\\sample.mp4";
string audio_track_path = _mhandler.InputPath + "\\sample.mp3";
string final_video_path = _mhandler.InputPath + "\\sample.flv";
_mhandler.CustomCommand= " -i " + original_video_path + " -i " +
audio_track_path + " -ab 128k -ar 22050 -f flv " + final_video_path +
"";
_mhandler.Execute_FFMPEG();

We recommend u to download the following ffmpeg build in order to
attach video + audio properly.

http://www.mediasoftpro.com/downloads/ffmpeg_r22598.zip

Regards
Reply all
Reply to author
Forward
0 new messages