MPEG-4 Xvid VC6.0编译指南

编译emule 源代码error C2520: conversion from unsigned __int64 to double not implemented 安装VS6SP5+VCPP5解决问题 编译emule 源代码时候,编译所需的库cryptopp521,下列语句报错 return (double)t * unitsPerSecondTable[unit] / TicksPerSecond();error C2520: conversion from unsigned __int64 to double not implemented 先安装VS6SP5http://d 阅读详情

From: http://www.chinavideo.org/index.php?option=com_content&task=view&id=127&Itemid=5

 

 David Carroll,Peter Lee   2006-01-09

OK, you've got your copy of Microsoft Visual C++ 6.0. You should be able to just download the source code , click on the project file, and a few second later, you'll have the Xvid Binary. Right? Well, unfortunately, it's not that easy. However, it's not that hard either.

I. Downloading Necessary Files

Xvid depends on a number of libraries and programs that do not come standard with Microsoft Visual C++ 6.0.

You need:

1) Service Pack 5 for Visual Studio 6 - http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/default.asp
The service pack contains all the latest bug fixes for Visual C++ 6.0 as well as updates to essential libraries. You can download the service pack or order it on CD from the M icros oft D evelopers N etwork (MSDN) by clicking the link above.
vc6补丁,所选的语言和VC的语言一致就可以了

2) Visual C++ 6.0 Processor Pack - http://msdn.microsoft.com/vstudio/downloads/tools/ppack/default.aspx
The processors pack adds support for Intel's SSE, SEE2 and AMD's 3DNow! instructions.
支持处理器多媒体汇编指令的补丁

3) NASM - the famous Netwide Assembler - http://sourceforge.net/projects/nasm/
Xvid uses NASM to "compile" the code written in assembly language (the *.asm files). Download the Win32 binary.

4) DirectX 9.0 SDK - http://msdn.microsoft.com/library/default.asp?url=/downloads/list/directx.asp
To build the DirectShow filter, you need the DirectX SDK (S oftware D evelopment K it). Unfortunately for dial-up users, the ~200MB DirectX SDK is no longer available on CD.

5) (optional) Pthreads for Win32 - http://sources.redhat.com/pthreads-win32/
You will need the pthreads library if you want to build the SMP version of the xvid.dll. This is not needed for most users since most users don't have dual processing systems.

II. Configuring the Compiler

1) Installing Service Pack 5

The Service Pack is easy to install since it comes with an installer. The installer's filename is "setupsp5.exe". Just find the file and double-click it.
自解压后,运行setupsp5.exe

2) Installing Visual C++ Processor Pack

Double-click "vcpp5.exe" to install.

3) Installing and Configuring NASM

a) Unzip the file to an easy to remember directory of your choosing (i.e., "C:/DEVELOP/NASM")
b) Xvid expects the filename to be "nasm.exe" (probably because all other versions except the Win32 version has that name). For some reason, the Win32 version NASM has a filename of "nasmw.exe." I recommend making a copy of "nasmw.exe" and renaming it "nasm.exe."
c) Load up Microsoft Visual C++.

i) Click on the "Tools" menu and select "Options."
ii) Click on the "Directories" tab.
iii) Select "Executable Files" from the "Show Directories For" dropdown box.
iv) Add the path to NASM (e.g., "C:/DEVELOP/NASM")

文件名一定要改成nasm.exe ,拷贝到Microsoft Visual Studio6/vc98/bin下即可

4) Installing and Configuring the DirectX SDK

The DirectX SDK comes with an installer. Just double-click on the "setup.exe" file and follow the prompts.

To configure the DirectX SDK:

a) Load up Microsoft Visual C++.
b) Click on the "Tools" menu and select "Options."
c) Click on the "Directories" tab.
d) Select "Include Files" from the "Show Directories For" dropdown box.
e) Add the following entry: "<path to DirectX SDK>/SAMPLES/C++/DIRECTSHOW/BASECLASSES" where you replace <path to DirectX SDK> with the actual path to the DirectX SDK (i.e., "C:/DEVELOP/DXSDK").
f) Use the little up arrow icon to move the entries to the top of the list.

III. Compiling XVID

Now you can download the source code , click on the workspace file, and a few second later, you'll have the Xvid Binary. Just make sure you build the xvidcore first.

IV. Installing XVID

For Windows users, there are really only three files you have to be concerned with:

1) xvid.dll and xvid.inf - both of these files are in the "<path to Xvid source code>/vfw/bin/" directory. The "xvid.dll" file is the Xvid Video for Windows codec. This file is necessary if you wish to encode any videos using a Video for Windows compliant program (i.e., almost every video editor out there). In theory, you should be able to play back Xvid files in the Windows Media Player using this file as well although this functionality appears to be broken at this point. Therefore, if you wish to play back files in a media player, install the "xvid.ax" file (see below). The "xvid.inf" file is the setup information file. Basically, this file tells Windows how to install "xvid.dll".

To install the Xvid Video for Windows codec (aka xvid.dll)

a) Simply right-click the "xvid.inf" and select "Install" from the context menu.

That's it, you're done. To verify that the file has been installed correctly, go to the Control Panel and select "Multimedia", then click on the "Devices" tab and finally see if "XVID" is listed under the "Video Compression Codecs" section. If you wish to uninstall the Xvid codec, select "XVID MPEG-4 CODEC" from the "Add/Remove Program" list in the Control Panel.
控制面板》声音与多媒体,选择硬件tab,...

2) xvid.ax - This file is in the "<path to Xvid source code>/dshow/bin/" directory. The "xvid.ax" file is the Xvid DirectShow filter. Microsoft has decreed that DirectShow shall replace Video for Windows, so in theory you won't need "xvid.dll". However, this isn't true. Instead, the DirectShow filter is used mostly for playback by newer media players. Most video programs still depend on the Video for Windows codec for encoding.
解码,作播放用

To install the Xvid DirectShow filter (aka xvid.ax)

a) First copy the "xvid.ax" file to a safe place (i.e., "C:/Program Files/xvid"). The Video for Windows codec is automatically copied to the Windows system directory when you install it. The DirectShow filter is not. Therefore, if you delete the source code directory, you lose your DirectShow filter.
b) Once you have copied the "xvid.ax" file to a safe place, go to the Start Menu and select "Run." Type "<path to Windows>/system/regsvr32 <path to xvid.ax>/xvid.ax" (i.e, C:/windows/system/regsvr32 C:/Program Files/xvid.ax).
xvid.ax拷贝某个目录后,然后开始》运行》 regsvr32 xvid.ax所在的目录

That's it, you're done. There really is no easy way to verify that the DirectShow filter was properly installed other than to play a Xvid encoded video. To uninstall the DirectShow filter, go to the Start Menu and select "Run." Type "<path to Windows>/system/regsvr32 /u <path to xvid.ax>/xvid.ax"

V. Troubleshooting FAQ

Q . Why do I get the following error message:

Assembling ../../src/utils/x86_asm/mem_transfer_mmx.asm
Bad command or file name

A. You did not correctly install NASM.

Q . What causes this error: "CXvidDecoder.obj : error LNK2001: unresolved external symbol _MEDIASUBTYPE_IYUV"?

A . This is caused by an outdated strmbase.lib. You need to build a new one. The path to the project file is <path to DirectX SDK>/Samples/C++/DirectShow/BaseClasses/baseclasses.dsw. After you build the library, I recommend you copy the strmbase.lib file to <path to DirectX SDK>/lib.

Q . I have ffdshow , do I need to install the XviD DirectShow filter?

A . No, not really.

Q . When trying to open a workspace file (.dsw), I get an "empty" workspace (i.e., there are no source files listed) and/or
     When trying to open a project file (.dsp), I get a"This makefile was not generated by Developer Studio" error.

A . Often, this can be caused by having UNIX line breaks (LF) in the .dsw and .dsp files, as opposed to Windows line breaks (CR/LF). It is interesting to note that .dsw and .dsp files are just text files; you can open them up in any text editor. If you open the .dsw and .dsp files in a text editor that can't handle UNIX line breaks (namely Notepad) you will probably see big, black squares at the end of lines. You can "fix" this error by following this procedure.

a) Do NOT let Microsoft Visual C++ attempt to fix the problem! Press "No" when prompted.
b) Open the .dsw and .dsp files in a text editor that understands UNIX line breaks. WordPad is one and it is available with most copies of Windows.
c) Once open, simply re-save the file (In WordPad, make sure you set the save as type to "Text Document"). All UNIX line breaks should be converted to Windows line breaks.

Also, I have noticed that some "archive" utilities like Winzip will perform the UNIX -> Windows line break conversion automatically so I recommend you use those utilities. At the time of writing, archive utilities that don't perform this conversion include PowerArchiver and WinRAR.

Q . I get lots of error messages similar to the following:

../../src/quant/x86_asm/quantize_mmx.asm:429: parser: instruction expected
../../src/quant/x86_asm/quantize_mmx.asm:430: symbol `movdqa' redefined

A . You are using an old version of NASM, download a newer version from http://sourceforge.net/projects/nasm/

Q . I get a few "fatal: unable to open include file `colorspace_mmx.inc'" errors.

A . This is apparently caused by versions of NASM newer than 0.98.37. For whatever reason, NASM seems to have trouble dealing with relative paths. To fix the problem:

a) Open up the project settings by pressing ALT-F7 or selecting "Settings" from the "Project" menu.
b) Find the following three files under "xvidcore/image/image_asm":

1) colorspace_rgb_mmx.asm
2) colorspace_yuy_mmx.asm
3) colorspace_yuyv_mmx.asm

For each of the files, click on the "Custom Build" tab and change the line in the "Commands" box to read:

"nasm -f win32 -DPREFIX -I"$(InputDir)"/ -o $(IntDir)/$(InputName).obj $(InputPath)"

Instead of:

"nasm -f win32 -DPREFIX -I"$(InputDir)" -o $(IntDir)/$(InputName).obj $(InputPath)"

Notice the extra "/" between the "(InputDir)" and "-o".

Alternately, you could just downgrade back to NASM 0.98.36 .

Q. What does "error C2520: conversion from unsigned __int64 to double not implemented, use signed __int64" mean?

A. It means you need to install the Visual C++ Processor Pack.

Q. I have Visual C++ 6.0 Standard. Microsoft says I need the Professional or Enterprise edition in order to install the Processor Pack. Does this mean I am out of luck?

A. No. But it does mean you can't use the installer. Instead, you have to manually install the Processor Pack. Bascially, you have to:

a) Extract the files to a temporary directory using your favorite archive utilitly (i.e., Winzip).
b) Find the "vcpp.inf" file in the temporary directory and open it. Inside that file is all the information you need to install the processor pack manually.

Hint: An entry like:

[CopyToMsdev98Bin]
EnableSIMD.reg,Enabl__1.reg,32

means you should rename "Enable__1.reg" to "EnableSIMD.reg" and copy it to the <path to Visual C++>/MsDev98/bin directory.

c) Using the information in "vcpp.inf", copy the files from the temporary directory to the proper directories, renaming if necessary.

Q. What causes this error: "C:/xvid/src/image/qpel.c(84) : fatal error C1083: Cannot open include file: 'C://xvid//src//image//qpel.c': No such file or directory."

A. Not exactly sure why that happens - it should work. A quick fix is to open "qpel.c" and replace every instance of

#include __FILE__

with

#include "qpel.c"

 

摄像头 截图 录制 压缩视频 图片生成视频 _1.1 包括的功能有: 1、列举系统中所有的摄像头。 2、对打开的摄像头截图。 3、对打开的摄像头录制视频并压缩。 4、将某一目录下的图片生成一段视频。 所有的函数都在 VedioCapture.dll 中,使用delphi编写。 视频压缩使用FXMPEG4,这是微软的一个免费的mp4视频压缩编码器。录制视频前必须安装这个插件。mpeg4fix.inf上点击右键,选择安装。 视频的输出格式是avi,压缩算法是mp4格式。 图片生成视频只支持jpg或bmp格式的图片。 CSharpTest 是C#调用示例。 Delphitest 是Delphi调用示例。 更新内容: 1.加入了内存bmp生成方式,而不是生成文件。 2.修改多摄像头列表时摄像头名称相同的bug。 立即下载

相关推荐

MPEG4视频压缩器(Advanced Video Compressor) v2012.r4.rar

Advanced Video Compressor 是世界领先的压缩MPEG4数字视频文件(MP4)的FLV, 3GP, AVI和其他流行视频格式的软件。先进的视频压缩( AVC )执行所有的视频处理任务,你需要得到您的视频文件为共享或存储,便携设备的视频转换的准备。

ULONGLONG类型转换为double型提示出错的解决方法(error C2520)

平台VC++ 6.0double pos;ULONGLONG  n,filesize;pos=n/filesize;错误提示:error   C2520:   conversion   from   unsigned   __int64   to   double   not   implemented,   use   signed   __int64  解决方法:由

Thinking -Walking@未名 3224

MPEG-4编/解码技术(VC++源代码)

VC++实现的MPEG-4编/解码,分享给大家~需要的朋友可以看看~

android 定时器 误差,运动会计时器(PC+安卓)版本

本帖最后由 mauve05 于 2017-12-5 09:38 编辑又是一年运动时,各个学校都在开展校运会,这是一件激动人心的盛事啊!对于一些学校来说,专业的体育老师实在不足(拿一个4道次的50米跑来说,需要至少需要9人才能完成,4人终点对应道次计时,1人终点统计,1人起点发令,1人起点准备,1人清道,为了保证公平,终点还要加上录像等1人……),并且很多老师不太会使用秒表,这让统计径赛成绩来说多了...

weixin_29795345的博客 273

动态生成mpeg视频代码

动态生成mpeg 视频 DELPHI 代码

UFS电源管理深度解析:从电气特性到功耗模式优化

本文深度解析UFS电源管理,从VCC、VCCQ、VCCQ2三路供电体系切入,详细阐述了UIC链路休眠(HIBERN8)机制与设备七种功耗模式(Active、Idle、Sleep、Power Down)的切换逻辑。文章重点探讨了如何通过主动功耗管理策略与动态调整激活模式电流等级(bActiveICCLevel),在嵌入式与移动设备中实现性能与功耗的精细平衡与优化。

weixin_29243279的博客 495

How to Compile XviD with Microsoft Visual C++ 6.0

How to Compile XviD with Microsoft Visual C++ 6.0Written by David CarrollLast updated: November 23, 2003modified by Peter Lee on 05.06.11OK, youve got your copy of Microsoft Visual C++ 6.0. You shoul

李世平的专栏 1万+

手把手教你用U盘给海信IP501H刷机:GK6323V100C芯片的4.4.2和9.0固件实战

本文详细介绍了海信IP501H电视盒子基于GK6323V100C芯片的刷机实战指南,涵盖Android 4.4.2强刷和Android 9.0免拆刷机两种方案。从工具准备、短接操作到ADB调试,提供全流程解析和常见问题解决方案,帮助用户安全高效地完成刷机操作。

lemon的博客 1486

How to Compile XviD with Microsoft Visual C++6.0

Xvid 是一个开源(open source)项目,它是目前最流行的Mpeg4解码器之一,下面我介绍一下怎么在VC6环境下编译整个XviD项目.1.构架编译环境Xvid 需要很多标准VC6以外的Libaries.需要:1) Service Pack5 for Visual Studio 6-http://msdn.microsoft.com/vstudio/downloads/updates/sp

quietsummer的专栏 2052

ARM SMMUv3设备树配置实战:从零开始为RK3588搭建IOMMU环境

本文详细介绍了在RK3588平台上配置ARM SMMUv3设备树的实战经验。从理解硬件架构、设备树节点定义,到内核驱动集成与调试,提供了完整的IOMMU环境搭建指南,并分享了解决StreamID冲突、中断配置等常见问题的技巧,帮助开发者高效完成控制器初始化。

l3m4n的博客 906

[Unity]-[UI]-[Image] 关于UI精灵图资源导入设置的详细解释

如果纹理存储了有特定含义的信息,并且您需要着色器中的确切值(例如,平滑度或金属度),请禁用此属性。此选项允许将纹理编码为特定格式(RGBM 或 dLDR,具体取决于平台)并通过后期处理步骤对纹理数据进行处理(推拉式扩张通道)。使用在3D模型的专业法线贴图。通用的纹理类型,一般在Material上的材质图片参数使用,比如漫反射、法线贴图这些。​​Compression​​:ASTC 6x6(移动端)或DXT5(PC)​​Compression​​:BC5(PC)或ASTC 6x6(移动端)

sky_smile_Allen的博客 2175

xvid开放源码xvidcore-1.1.3.zip在VC下成功编译的方法

编译参考xvid源代码中的doc/INSTALL文件,针对其中遇到的问题: 下载NASMhttp://sourceforge.net/projects/nasm  (Win32版本)解压缩后得到nasmw.exe, ndisasmw.exe,将nasmw.exe改为nasm.exe后将这两个文件拷到Microsoft Visual Studio/VC98/Bin下。编译有可能出现以

markman101---神即是道 道法自然 如来 3531

DDPM代码详细解读(2):Unet结构、正向和逆向过程、IS和FID测试、EMA优化

Diffusion Models专栏文章汇总:入门与实战 前言:大部分DDPM相关的论文代码都是基于《Denoising Diffusion Probabilistic Models》和《Diffusion Models Beat GANs on Image Synthesis》贡献代码基础上小改动的。官方的DDPM是tensorflow TPU版本,暂时没有GPU的版本。上一篇文章介绍了数据集加载,超参数的含义、关键参数的计算方法等,这一篇重点解读一下网络结构。 目录 EMA优化 训练目标.

沉迷单车的追风少年 1万+

用Visual C++ 6.0编译xvid

0.xvid简介Xvid(旧称为XviD)是一个开放源代码的MPEG-4视频编解码器,它是基于OpenDivX而编写的。Xvid的主要竞争对手是DivX。但Xvid是开放源代码的,而DivX则只有免费(不是自由)的版本和商用版本。详见百度百科:http://baike.baidu.com/view/30246.htm?fr=ala0_1 1.下载xvid源码官方网站:http://www.xvid.org/目前最新版本是Xvid 1.2.2 stable release(今天:2010年4月24日) 2.编

yjh0628的专栏 985

3D医学影像开发入门<一>:VS2019+DCMTK3.6.8编译及环境配置

3D医学影像开发入门:VS2019+DCMTK3.6.8编译及环境配置

欧特GO 1311

《QEMU/KVM源码分析与应用》读书笔记1 —— 第1章 QEMU与KVM概述

《QEMU/KVM源码分析与应用》学习笔记1 —— 第一章 QEMU与KVM概述

phmatthaus的专栏 1997

Xvid 进行视频编码

1 Vs2005下编译XDiv库1.从网上下载www.xvid.org上下载1.1.2,并解压 http://downloads.xvid.org/downloads/xvidcore-1.2.2.zip2.编译过程中需要用到nasm这个编译汇编的工具http://sourceforge.net/projects/nasm/下 载一个win32版本将你安装的nasm的工具的目录加入VS中如果你你解压的方式,也一样,工具->选项->项目和解决方案->VC++目录 可执行文件下面就是要添加你的的nasm工具的目

markman101---神即是道 道法自然 如来 1万+

OpenClaw与传统AI助手区别,为什么要本地部署

OpenClaw是一款本地部署的开源AI助手框架,与ChatGPT等云端服务相比具有显著优势。它支持完全离线运行,数据隐私性高,所有信息都存储在本地设备上,避免了云端服务的隐私风险。OpenClaw采用模块化设计,可自由定制功能,且无需支付订阅费用,只需一次性硬件投入。推荐在树莓派、迷你主机等设备上部署,最低配置仅需1核CPU和1GB内存。安装过程包含系统初始化、依赖安装、配置设置等步骤,支持通过systemd服务实现开机自启和后台运行。特别适合注重数据安全、需要离线使用或预算有限的用户群体。

一键难忘的博客 1699

Xvid VS2008 的编译过程

<br />这几天做一个BMP2AVI的转换器,要用到XviD Codec的编码器,使用过程中,发现有一个Status窗口弹出来,压缩过程奇慢GraphEdit里的结构如下: <br />PushSourceBitmapSetFilter -> XviD MPEG-4 Codec -> AVI Mux -> FileWriter<br />并且关闭GraphEdit的时候,关闭不了程序,程序失去响应,怀疑是因为Status窗口造成的,google上搜索了一下,发现需要修改XviD的源代码来去掉这个东西。<b

goodadult2012的专栏 1268

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

SAP B1中文培訓教材_SDK

公司内部培训资料,对开发工具 ,DIAPI, UIAPI,Add-ON有详细解说

Visual C++ 6.0 Processor Pack 编译xvidcore1.1.0

VC++6.0下编译xvidcore1.1.0 分类: PXA270&mpeg-4 网络监控一路走来2008-05-26 22:04 211人阅读 评论(0) 收藏 举报 关于在VC++6.0下编译xvidcore的方法在 MPEG-4 Xvid VC6.0编译指南 一文中中已有详细描述,但是因为我的VC6.0装不上sp5/sp5,也就装不上vcpp5.exe(Visu

autumn20080101的专栏 1330

Devexpress16.2.6破解工具

Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具Devexpress16.2.6破解工具

标准源码下载

原地址:http://blog.csdn.net/sunshine1314/article/details/1706521

专注HEVC,H.264,ffmpeg 759

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

VC++6.0下编译xvidcore1.1.0

关于在VC++6.0下编译xvidcore的方法在 MPEG-4 Xvid VC6.0编译指南 一文中中已有详细描述,但是因为我的VC6.0装不上sp5/sp5,也就装不上vcpp5.exe(Visual C++ Processor Pack),所以编译的时候总有错误:error C2520: conversion from unsigned __int64 to double not imp

float的专栏 1142

Visual Studio 2005 XviD编译过程

这几天做一个BMP2AVI的转换器,要用到XviD Codec的编码器,使用过程中,发现有一个Status窗口弹出来,压缩过程奇慢GraphEdit里的结构如下:PushSourceBitmapSetFilter -> XviD MPEG-4 Codec -> AVI Mux -> FileWriter并且关闭GraphEdit的时候,关闭不了程序,程序失去响应,怀疑是因为Status窗口造成的,

markman101---神即是道 道法自然 如来 1406
上一篇: Visual Studio 2008 XviD编译过程
下一篇: 视频相关知识收集
CodeJoker
博客等级 码龄18年 50粉丝 37原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址