四国研究所

伟大而光荣的四国研究所在大家的努力下向前走

52 成员544 主题2,815 回复0 张照片

VCD-MPEG4

小
小鱼儿〖四国研究所〗
2001-04-15 21:15
将VCD转换成MPEG 4

为什么要将VCD转成MPEG4呢?因为MPEG4是一种有损压缩格式,我们能根据自己的需要为“庞大”的VCD文件减肥!据测试,一部采用MPEG1格式压缩的VCD光盘(90分钟,约900MB),用600的码率转换时生成的MPEG4文件仅为168MB,其“减肥”效果超过80%!可谓非常惊人!当然,在这种情况下高速运动的画面(如激烈的搏杀等)表现效果可能会不理想,但如果你采用910的码率来压缩,不仅图像质量会有提升,而且在高速运动的画面上亦会有上佳的表现。此时生成的MPEG4文件虽然会达到335MB,但相比原来900MB的容量,其压缩比仍然高达2.7!动心了吧?我们一起动手来试着转换一次!

将DAT格式转换成MPEG1格式

一般的影音文件格式都是DAT,要想将它转换成MPEG4格式,首先得让它成为MPEG家庭中的一员——也就是说,你需要先将DAT格式的文件转换成MPEG1格式的。有许多软件都能完成这个工作,网上有专门格式转换工具,比如Vcdgear 2.0 (http://www.vcdgear.com/files/vcdgear20.zip)就是一个支持相当多格式、功能非常强大的VCD 格式转换软件!它有DOS和Windows两种工作模式,而且提供了许多参数,比较适合有较高应用水平且喜欢自己定制的人使用。

豪杰的《超级解霸》则提供了更适合普通用户的方便的转换方式:用《超级解霸》打开DAT格式文件后,单击程序主界面上的[循环/选择录制区域]按钮,将播放进度指示滑块移动需要录制文件的开始处,单击[选择开始点],然后再将播放进度指示滑块移动需要录制文件的结束处,单击[选择结束点],此时将要转制的部分内容选择完毕,单击[录像指定区域为MPG或MPV文件]按钮即可弹出一对话框,将[保存类型]选择为[MPEG系统流(*.MPG)]即可。不过这种方法会单独生成一个文件,硬盘要有足够的空间。

安装MPEG4驱动

好了,我们现在有了MPEG文件。不过要想将它转换成MPEG4 AVI 文件,同样需要专门的转换工具,一般我们选择VirtualDub 1.3D来进行 MPEG4 的编码压缩。

需要注意的是:由于进行MPEG4压缩必须要有DIVX MPEG4 的压缩编码驱动程序,因此在进行将MPEG文件转换成MPEG4 AVI文件之前,必须安装它,你可以到http://divx.ctw.cc处下载它的最新版本,日前其最新版为3.2Beta版,下载下来的压缩包文件为560KB,解压后按其默认路径安装,然后运行Run Me First!!程序即可。从http://www.geocities.com/virtualdub/index.html上下载VirtualDub 1.3D后将其解压到任一目录下直接运行VirtualDub.exe即可。在程序主界面下选择[FILE]菜单下的[OPER VIDEO FILE]命令,打开需要进行转换的视频文件,然后先对音频和视频进行设置。

音频设置

在[AUDIO]菜单下先将默认的[Direct stream copy] (从源视频文件上直接拷贝音频模式)改为[Full processing mode] (经压缩处理的模式),然后单击[Compression]来选择具体的音频压缩方案。虽然现在音频压缩的格式有许多种,但功能最强大最实用仍非MP3莫属,因此我们选择[MPEG Layer-3]作为音频压缩格式。选中MP3格式后对话框右侧会出现各种采样频率要求你选择,这些参数将会直接影响MPEG4 文件的音频质量。一般情况下立体声电影选择 96 KBit/s, 44100Hz,Stereo 12KB/s即可。如果你对单频有特殊要求(如要制作的是MTV 或专业的音乐作品等),可以相应地将采样频率先高一些,但毫无疑问生成的MPEG4文件会大一些。

视频设置

和音频设置相似,先选中[VIDEO]菜单下的[Full processing mode],然后选择[Compression],由于是制作MPEG4 AVI格式文件,我们选择DivX MPEG-4 [Fast- Motion]格式,如果要对视频码率进行设置,可以单击[Configure]按钮,在如图1所示的对话框中的[Data Rate]下直接用鼠标拖动滑块即可选择码率。

图1

码率是影响压缩后文件大小的最主要因素,因此如果你只是转换一个普通的VCD电影,可以选择600,稍好一点的选择默认的910,当然,如果你要求制作的VCD 画面特别好,或是有快速运动的物体、全屏变化剧烈的色彩等,为了在压缩后不失真,可以将此码率设为1000以上。

格式转换

好了,现在准备工作都做完了,在Virtualdub 主界面下选择[File]菜单下的[SAVE AVI]命令,会弹出一个窗口告诉你正在生成MPEG4 编码 AVI 文件的各种数据,[Processing thread priority]下可以选择生成文件的速度,如果你想把这个任务放到 WINDOWS 后台执行,不妨选择[NORMAL],如果你想尽快录制完毕,可以选择[HIGHest]用最快的速度运行!此时Virtualdub的主界面如图2所示:界面左侧为录制后的画面,右侧为原画面。

图2

好了,压缩完毕后,你的MPEG4文件就诞生了,当然要想播放它的话,还得有支持MPEG形式的播放器哦!
因为想一个人而寂寞 因为爱一个人而温柔
…因为有一个梦而执著 因为等一个人而折磨
……因为想一个人而解脱 因为爱一个人而宽容
………因为有一个梦而放纵 因为等一个人而漂泊
小
小鱼儿〖四国研究所〗
2001-04-16 05:17
DiVX to VCD
Ever wanted to convert that DivX movie you have back to MPEG-1, so you can burn a VCD - well, below is a short guide on how to do this - there are probably better ways around to do this, but below is the method I use which is quite easy to do.

Start by downloading and installing the following software :
iFilmEdit
Nero Burning ROM
VirtualDub
XingMPEG Encoder - please run the .reg file in the archive prior to installation


--------------------------------------------------------------------------------

1. Sorting out the audio :
Most DivX movies come with MP3 or WMA audio compression. Unfortunately, most of the AVI to MPEG-1 conversion tools do not support compressed audio, so the only way to convert DivX to MPEG-1 with audio is to decompress the audio first.

You can do this using VirtualDub - there are two methods :

Decompress audio within the AVI file

1. Load your DivX/AVI file into VirtualDUB.
2. From the "Video" menu, select "Direct Stream Copy".
3. From the "Audio" menu, select "Full Processing Mode".
4. From the "Audio" menu, select "Compression" and choose "".
5. Save the AVI file - your new AVI file should have non-compressed audio. The problem with this is that the AVI file can get really big, and may exceed the 2 GB AVI file size barrier - in this case, you should extract the audio of the AVI file to a WAV file instead (see below).


Extract the audio of the AVI file to a WAV file
1. Load your DivX/AVI file into VirtualDub.
2. From the "Audio" menu, select "Full Processing Mode".
3. From the "Audio" menu, select "Compression" and choose "".
4. From the "File" menu, select "Save WAV".


2. Convert the video :
Once you have an AVI with an uncompressed audio, you'll need to use XingMPEG Encoder to compress the video to MPEG-1


Start XingMPEG Encoder and select to open a new job.


There are already many included profiles you can use - if you want to make a VCD compatible MPEG-1 file, please use the profiles under the "VideoCD" section. You should choose either "PAL" or "NTSC" depending on the resolution/framerate of your DivX file - clicking on these profiles will show you the properties of this profile - make sure that it matches as closely as possible to the properties of your DivX file (you can check the properties of your DivX file by right clicking on it and selecting "properties"). After you have selected the correct profile, click the "Next" button


Change "Stream Type" to "System"


In the "Video Filename" section, load your original DivX video file


If you choose the extract the audio of the AVI file to a WAV file, in the "Audio Filename" section, load the uncompressed WAV file you made before. Otherwise, leave this section alone.


In the "Target Filename" section, choose the location/filename of your final converted MPEG-1 file.


Click "Finish"


Your JOB file has now been created - you can press "Encode" at any time to start the encoding. A preview windows on the right will display the video currentl being converted. You can press the "Pause" button at any time to abort the encoding - I suggest you test the conversion by converting a small section first, and then pressing "Pause" to abort the encoding - test the output file to see if it is playable and whether the sound is in sync or not.


3. Cut the MPEG-1 File :
The resulting MPG file may be larger than can be fitted on 1 CD-R, so you will need to cut it. I suggest using iFilmEdit to do this. This program is shareware, and can be used for 30 days before you'll need to register and pay for it.

To cut MPG files, all you need to do is to load the MPEG file into this program. In the "footage" window, drag the clip into the "player" window. Go to the "preferences" menu, and change the option to "VideoCD" in the "VideoCD Mode" section. Now use the "mark in" (where the clip starts) and "mark out" (where the clip ends) buttons (bottom left of the Player window) to select the first part of the movie you want to cut (I suggest cutting the first half of the movie) - please take note of the hour:minutes:seconds that your clip ends at. The, go to the "edit" menu and select "record" - the clip you want to cut should now be in the "record" window. Highlight the "record" window and save the clip by going to the "file" menu and selecting "save as". Repeat this for the second half of the movie, making sure you "mark in" at the right spot.


4. Burn the VCD :
Once you have a converted VCD compliant MPEG-1 file, you can use a Video-CD compatible CD-R software to burn a VCD.


Pop an empty CD-R into your CD writer drive.


Start Nero Burning ROM - the "New Compilation" window should pop up, and you should select the "Video-CD" compilation option. You don't need to change any of the default settings, but you can add things like a volume lable to the VCD, if you wish. Click on the "New" button when you are done.


Now drag your converted MPEG-1 file into the new "Video1" window that comes up.


After you are done dragging the files over, from the "File" menu, select "Write CD" to start writing the CD-R.


Done !!
因为想一个人而寂寞 因为爱一个人而温柔
…因为有一个梦而执著 因为等一个人而折磨
……因为想一个人而解脱 因为爱一个人而宽容
………因为有一个梦而放纵 因为等一个人而漂泊
叶
叶@四国研究所
2001-04-16 20:03
mpeg4可以转回vcd吗?

.....枫叶年轻时

四国研究所
小
小鱼儿〖四国研究所〗
2001-04-17 09:26
可以
上面那则英文的短文就是关于MPEG4到VCD的转换的.
MPEG4=DIVX格式
因为想一个人而寂寞 因为爱一个人而温柔
…因为有一个梦而执著 因为等一个人而折磨
……因为想一个人而解脱 因为爱一个人而宽容
………因为有一个梦而放纵 因为等一个人而漂泊
叶
叶@四国研究所
2001-04-17 21:12
有翻译吗?

.....枫叶年轻时

四国研究所
小
小鱼儿〖四国研究所〗
2001-04-18 10:38
等我考好吧
我会翻译过来,不过可能要等我先考完前三科了…… :o)
因为想一个人而寂寞 因为爱一个人而温柔
…因为有一个梦而执著 因为等一个人而折磨
……因为想一个人而解脱 因为爱一个人而宽容
………因为有一个梦而放纵 因为等一个人而漂泊
1 / 1

登录后回复。