打印

[社区发布] [原创]视频和音频合成教程

您是第17744个浏览者

[原创]视频和音频合成教程

原创文章,非经本人同意请不要转载

我已经在这篇教程的最后地方,提供了该教程的WORD版,有需要的人可以去www.mofile.com自行下载!这么久没有整理过这篇文章了,实在惭愧,那么就今天来修理一下吧!

前言:

我想写一篇关于合成的教程很旧了,但一来自己好懒惰,二来自己又没什么时间,所以拖到现在才写出来,但愿这篇教程可以帮助更多想搞粤语动画合成的朋友!费话不多说拉,要明白我具体合成方法,很有必要先知道我的总体思想。我的思想就是:将粤语音频从A文件提取出来,然后将B文件的视频提取出来,将提取出来的视频转成MPEG,将粤语音频按照这个MPEG来编辑(让音频跟视频同步),将编辑好的音频合成到提取出来的视频中(注意,我的方法并不是将其直接合成到MPEG中再转),OK,大功告成!!

前提:

音频来源文件A.rmvb

视频来源文件B.rmvb

需要到的软件:

Adobe Premiere Pro(视频编辑软件)

RMA(分离工具)

其他文件格式转换工具

(RMVB/RM转换成MPEG,大家可以参考下这篇文章,虽然我不是用这种方法

http://www.dreamxt.com/dispbbs.asp?boardID=51&ID=25981&page=1)

是不是很简单啊,下面请看我的详细步骤:

1:用RMA工具将A.rmvb的音频分离出来,称为:a.rm,将B.rmvb的视频分离出来,称为:b.rmvb

(具体细节请见下面的配套教程)

2:将a.rm转成WAV格式,称为:a.wav,因为Adobe Premiere Pro并不支持RM格式的编辑,所以没办法

3:将b.rmvb转成MPEG格式,称为:b.mpeg, 同样原因,Adobe Premiere Pro并不支持RMVB格式的编辑,所以没办法,顺便提一下,AVI的文件是可以直接导入的,但前提是没有用其他如DVIX等工具压缩过,你也不一定要转成MPEG格式,只要是Adobe Premiere Pro支持的格式就OK拉,看过前言你应该都明白这个MPEG文件的用意何在了,所以我们并不需要将其转得很高清晰,只要可以用来编辑声音同步就可以了!

4. 运行Adobe Premiere Pro,先创建一个项目,会弹出一个设置窗口,填写路径和名字,其他如图所示,请按照我的设定来设置!


 

5.运行Adobe Premiere Pro,用快捷键CTRL+I将a.wav和b.mpeg分别导入Adobe Premiere Pro

6.先将导入的视频文件b.mpeg拖到视频栏(如下图,但切记要让它跟视频栏顶头阿)


 

7.这一步就是做我们的核心步骤了,不要闪眼阿。我们先双击a.wav,然后在音频编辑窗口中(其实也可以编辑视频)看到它会被以波形的形式显示出来(如上图),这时候我们先看看我的b.mpeg究竟从哪里开始,点击播放键看看(如图所示的A),同时这里也是观看合成效果的地方。知道在哪里开始了,就截取相应的音频与它同步。首先用1(如图)选择开始点(我们可以方便地用3返回开始点),

再用2选择选择结束点(我们可以方便地用4返回结束点),然后你就会看到有一段区域被突显出来了(如图所示),将鼠标放在上面然后将它拖到音频栏(但切记要让它跟音频栏顶头阿),再用A预览一下,看它们是不是同步,如果不同步就将原来的区域再截长或截短(视声音跟视频是快了还是慢了)。但将调整好后音频截取区域拖过去音频栏前,先将原来的音频截取区域清除了(点击右键,选择CLEAR)。直到音频跟视频同步了就大功告成了!这一步也是最花时间的一步!

8.将编辑好的音频文件导出来,选择:FILE/EXPORT/AUDIO将音频文件导出来,改名字为:OK.wav。

  当然你也可以通过SETTINGS按钮来设定输出的文件参数。注意:我这里只是导出了音频文件,并没有导出视频文件。

9.将OK.WAV转成RM格式,称:OK.RM。

10.用RMA工具将OK.RM和b.rmvb合成,然后重建索引

11.看看一下我们辛苦搞来的成果巴。。。。。。。。。

总结:

大家应该明白了巴,但其中的有些细节我还没有提到,但相信大家随便按按就会明白的了,就不多说了,现在说明一下为什么我不直接将视频文件和音频文件一起合成到出来。因为无论什么样的视频转换都会产生质量的下降,所以我这里就直接不转了,只是编辑音频文件,让它跟视频文件相同步,这样就可以轻轻松松的达到我们的目的了!

以下是RMA的教程:
 

RealMedia Analyzer(rma)是一个在DOS下运行的小程序,别因为这小看它,它在分析rm/rmvb文件信息、修复受损的文件、分离合成rmvb文件的视频和音频等方面有着其他软件不可代替的地位!

rma的用法简单介绍如下:

以下假设和rma在同一个文件夹下有一个1.rmvb文件

rma必须在DOS窗口下运行,方法是:开始->所有程序->附件->命令提示符(2k/xp)或Ms-DOS方式(98/me)。

rma 1.rmvb ——分析文件的完整性

rma -d 1.rmvb ——分析文件的信息(包括包涵几个流,各个流的波特率等等,很详细)

rma -s 1.rmvb ——分离文件的视频和音频部分

rma -j/1.rm//2.rm/ 3.rm—— 将1.rm和2.rm(一个是纯视频,一个是纯音频)合并为3.rm

rma -jq1000/1.rm//2.rm/ 3.rm

同样是合并,但1.rm延迟1000毫秒

rma -i 1.rmvb ——重建文件索引(没有索引的rmvb可以播放,但播放时不能拖动)

rma用于修复rm文件也是最好的,这里就不多说了。下面以一个实例说明rma再分离合并视频音频方面的作用。

问题:现在手上有一个电影的粤语版的DVDRip,以及这个电影国语版的RMVB,怎样利用这两个资源“制造”一个压缩组的国语版的RMVB呢?

步骤如下:

1。先压制那个DVDRip,可以选择无音频的方式

2。现假设刚压好的文件是1.rmvb,另一个rmvb文件是2.rmvb,这两个文件和rma都在同一个文件夹中

3。rma -s 1.rmvb

   分离1.rmvb的视频和音频流,(如果用无音频方式压制可以省略这一步了)

得到1.000和1.001这两个文件,其中大的那个就是我们需要的视频部分(带有压缩组水印的)。

4。rma -s 2.rmvb

   同样分离2.rmvb的视频和音频流,这次我们需要的是音频部分。

5。把我们需要的视频部分是改名为v.rmvb,音频部分是改名为a.rm(不改名也可以,我只是为了说明起来直观)

    rma -j/a.rm//v.rmvb/ 3.rmvb

   将2者合成为新的文件:3.rmvb

6。rma -i 3.rmvb

  为3.rmvb建立索引

至此,我们需要的文件就制造成功了。但是,还有可能存在声音和画面不同步现象,因此需要测试一下。测试中发现声音早了2秒,我们返回第五步

rma -jq2000/a.rm//v.rmvb 3.rmvb 之后还要再建立索引。

如果是声音迟了2秒呢?那就这样:

rma -jq2000/v.rmvb//a.rm 3.rmvb

以下辅上WORD文档:为统计有多少人下过,所以。。。

[UseMoney=1]

3773769776913968(不会过期)


[/UseMoney]




[此贴子已经被作者于2007-4-29 1:29:22编辑过]

附件

FQ2WmeP4.jpg (65.25 KB)

2006-1-18 02:13

[原创]我自己写的合成教程

FQ2WmeP4.jpg

1qo9xLW1.jpg (65.25 KB)

2007-4-18 21:53

[原创]视频和音频合成教程

1qo9xLW1.jpg

CaMo6yBY.jpg (40.72 KB)

2007-4-18 21:53

[原创]视频和音频合成教程

CaMo6yBY.jpg

VAmbdVj1.jpg (135.82 KB)

2007-4-18 21:53

[原创]视频和音频合成教程

VAmbdVj1.jpg

TOP

楼主,图片显示不了啊

想启航,份缔造,海相聚

我们拥有同一个天空;脚踩同一片土地;愿我们拥有同一块心灵的净土!

TOP

以下是引用红枫在2006-1-17 16:17:05的发言:

楼主,图片显示不了啊

战长动作好快阿,已经OK拉

TOP

以下是引用yoyozhang在2006-1-17 16:20:03的发言:

战长动作好快阿,已经OK拉

我这里还是显示不到啊~

想启航,份缔造,海相聚

我们拥有同一个天空;脚踩同一片土地;愿我们拥有同一块心灵的净土!

TOP

以下是引用红枫在2006-1-17 16:48:33的发言:

我这里还是显示不到啊~

你直接点击那个交叉就可以看到的拉,我都不知道为什么会这样,我在这里上传完地图片,但又看不到地址,不知道点来引用,所以用做163的相册来搞,一是你来帮我改改拉,你应该有这个权限的!

TOP

有无搞·······错!!!!!

买咗仲要回复····

TOP

睇唔倒图嘅???

TOP

请问是合成什么的教程呢?

TOP

点个交叉就可以看到的拉

TOP

以下是引用monkey在2006-1-17 17:58:18的发言:
请问是合成什么的教程呢?

将音频合成到视频里面

TOP

At present, the mainstream of the smartphone operating systems including Symbian, Windows Mobile and Linux, and so on, each has developed into a more mature mobile application platform. One, Symbian currently holds the largest market share, Windows Mobile has the best PC compatibility, Linux is reflected in the development of more flexible and customizable nature. In addition, a number of professional application platforms, such as RIM's Black Berry, Apple's iPhone, such as Mac OS operating system, is also a new attitude emerging. These were smart phone operating system and its corresponding end to the perfect combination for the consumers to experience high-quality operation at the same time, for a variety of software applications to provide a wealth of strong support for the environment.

Compare the current 2.5G applications, the Chinese mobile phone software business mainly based on the K-Java treasure chest of business to start operations. However, K-Java platform to the extreme lack of control over the hardware device, which allows terminal manufacturers to introduce a variety of cameras, memory cards, Bluetooth devices, such as in the K-Java platform are difficult to display their abilities. The smart phone operating systems can operating in depth the underlying hardware, such as software developers will be able to join the Symbian platform on the development of camera-enabled mobile phones to identify the game, and so on, this is the current K-Java platform can not be done.

  In addition, a variety of smart phones, without exception, are equipped with PC and data communications lines and even individual cell phone began to have a wireless connection of Wi-Fi functionality. In this way, the last of the traditional mobile remote central office to download the application of a single release channel are gradually being broken, more and more users do not need the involvement of mobile operators will be able to download and install from the other channels to use their own favorite applications. For example, is the author used a Windows Mobile phone, not only with USB / IR / Bluetooth connection with the computer automatically synchronize Outlook information, a variety of software installation procedure is as easy as using USB.

  For such as Nokia and Motorola mobile phone terminal operators, handset in the face of homogenization and increasingly fierce price war, which is badly in need of new business growth point to maintain the leading position in the market. Nokia, for example, it has in the past, "mobile phone"
Completely changed the positioning of the brand-new "multimedia computers" and the network, software, Web2.0 and so force in an attempt to create an integrated platform for the great wireless applications. This includes Microsoft's operating system providers, but also through mobile phone operating system software with its PC business integration, to implement the gradual penetration of the market. Apple shocked early in 2007 released a new iPhone mobile phone concept, in addition to its stunning appearance, the integration of Google, Yahoo and other Internet applications, is also one of its biggest selling point. These companies have their own rich market experience and strong R & D resources to the accumulation of design, and their full involvement in the field of telecommunications has made it more and more IT and the Internet zone with multiple features.

Today, the smart phone's share of Chinese mobile phone market has been close to 10% over the next five years and will maintain double-digit growth rate. The Chinese market is due to the promotion of concepts such as 3G, will soon be ushered in the smart phone market, the outbreak of the period. I expected to see five years, with the central office end of the separation of the dual platform application framework for 3G mobile phones will in fact be established. In that case, operators should be how to deal with these new technologies and the impact of this application?