AviSynth入门与应用指南

合集下载

第一讲 Avid操作入门

第一讲  Avid操作入门

非线性编辑的优点
非线性编辑只要上传一次就可以多次的编辑, 信号质量始终不会变低,所以节省了设备、人 力,提高了效率。非线性编辑需要专用的编辑 软件、硬件,在现在绝大多数的电视电影制作 机构都采用了非线性编辑系统。
二. 影视制作的基本流程
(1)前期准备 当创意部门完全确认方案并获准进入实际制作阶 段后,创意部门会将创意的文案、画面说明以及 故事版全部呈递给制作部门。制作部门将在创意 部门的帮助下,区分拍摄部分与数字制作部分, 并对镜头脚本、导演阐述、灯光影调、音乐样本、 布景方案、演员造型、道具及服装等一切有关拍 摄的所有细节进行全方位的准备工作。 (2)拍摄 依照前期准备的拍摄计划,由摄制组进行拍摄工 作。根据一般的作业习惯,为了提高工作效率, 往往会将机位、景深相似的镜头一起拍摄,而并 非按照镜头脚本的顺序进行。并且,为了保证拍 摄的镜头足够用于剪辑,每个镜头都会尽量拍摄 不止一遍。
(3)数字制作 有些创意内容是实际拍摄工作无法实现的,比如卡 通角色的融合等。数字制作组会根据创意部门提供 的资料进行这些内容的制作工作,为后期制作提供 足够的素材。 (4)后期制作 初剪:初剪,也叫粗剪。一般会按照最初的故事版 中的顺序将拍摄素材与数字素材一并顺接起来,进 行简单的视觉修正,形成一个没有视觉特效、没有 配音和配乐的版本。 (5)特效合成 依照脚本的描述,将需要的特效部分合成到影片中。
考核(以作品考核为主) 考核(以作品考核为主)
50%: 10% 出勤和纪律、学习主动性 20% 笔记、课堂任务、课堂练习 20% 阶段测验 50%:期末考试(包括基本技能和短片制作)
一、 数字视频的基本知识
(1)传统电视系统的组成
电视是目前世界上利用最广泛的传播媒体, 是传送声音和活动图像的传播方式,是应 用电子技术对静止或活动的自然景物影像 进行转换、记录、传送和重现的技术工程。 电视系统主要由信号获取、记录、传送和 接收重现四大部分组成,如图 所示。

Avid_Media_Composer实用手册

Avid_Media_Composer实用手册

Avid Media Composer 操作手册目录1. 登陆 --------------------- 32.Avid操作界面 --------------------- 63.设置 ---------------------- 74.采集 --------------------- 95.导入文件 --------------------- 106.编辑 --------------------- 117.声音处理 --------------------- 168.特技 --------------------- 18过渡特技:叠画、闪白、淡入淡出画中画、遮罩、马赛克、模糊、调色、速度等简单效果:照片、黑白处理等9.字幕 --------------------- 27同期唱词、歌曲唱词调侃字幕人名条10.保存 --------------------- 3212.下载 --------------------- 3213.退出 --------------------- 3213.快捷键 --------------------- 33一、.登陆1.登陆ISIS,默认的是打开电脑会自动启动,如果没有就点击“开始/程序/启动/Clentmanager”,就会弹出ISIS界面,输入用户名和密码后点击connect,并保证在Online下边有个绿色的圆点,如果没有,则需要点击一下Online下边的mount处,让它有绿点出现。

(若没有绿点会导致字幕修改不了或是看不到)◆打开电脑会自动弹出此窗口,然后填写用户名和密码:◆此图为填写后的正确状态:2.双击桌面AVID软件3.启动软件后,点击新建项目,格式选择为1080i/50(是下拉菜单中的倒数第二个),其他设置只要不去改动,全部是默认状态(F盘、外部选中),点击确定。

【注:因为现在是标清向高清转变的过程,所以采集标清素材的时候需要建标清工程,将1080i/50改成25iPAL格式】◆打开软件后会自动弹出此窗口,点击新建项目:◆此图为点击新建项目后弹出的窗口:(主要操作是命名和对格式的选择)4.点击确定后会自动弹出编辑登陆窗口,输入用户名和密码(此处的用户名和密码是编辑自己的名字),点击确定。

AviSynth入门与应用指南

AviSynth入门与应用指南

AviSynth 入门与应用指南[转]AviSynth 入门与应用指南目录 [隐藏]1 AviSynth 的一些基本概念 2 基本认识 3 基本代码o o o o o o o o o o3.1 1. LoadPlugin(),加载插件 3.2 2.源媒体读取 3.3 3.crop()、LanczosResize()裁黑边和调整大小 3.4 4.亮度滤镜 3.5 5.字幕滤镜 3.6 6.其它虑镜介绍 3.7 7.常用音频处理脚本 3.8 8.色彩模式的转换 3.9 9.截图 3.10 10.合成4 压制 DVDo o o o o o o4.1 1.以 avi 文件为例 4.2 2.直接将多 CD 的压制成一个 rmvb 4.3 3.双语的 vcd 分成单语来做 4.4 4.制作成单音轨双语 4.5 5.将双语的 rmvb 制作成单语双声道的方法 4.6 6.用 rmvb 直接压制 DVD 4.7 7.120fps 的 avi 压制成 RM/RMVB[编辑]AviSynth 的一些基本概念AviSynth 是 AVI synthesizer 的缩写,也经常称之为 avs,简单来说就是个合 成平台!在媒体文件和压缩软件之间担任“桥梁”的角色。

这座桥梁不是简单 的独 木桥、而是有栏杆、有台阶(比喻其提供的大量虑镜)。

因此比较灵活!如对 于压制 real 格式来说,源媒体文件是 vob、d2v(DVD 处理过程中的中间文件)、 ac3、mp3、avi、DAT/mpge 等,而应用程序是各种 real 压缩软件如 Helix real producer、BatchRealProducer144 和 EasyRealProducer14,它们都支持 avs 的导入。

当然 avs 并不只是用于 real 压缩。

它是媒体文件和压缩软件之间的 “桥梁”,只要 avs 支持你所需要处理的媒体文件,压缩软件也支持导入 avs 文件,你 都可以通过 avs 对视频进行处理,然后让压缩软件输出你所需要的格式的文 件。

[转载]AVS教程:AviSynth学习手册【第八节Decomb实战篇】

[转载]AVS教程:AviSynth学习手册【第八节Decomb实战篇】

[转载]AVS教程:AviSynth学习手册【第八节Decomb实战篇】实战Decomb做IVTC/Deinterlace处理在上一节中,我们讲解了Decomb中三个场处理函数的使用方法与参数。

在本节中,我们将针对具体例子来讲解这三个函数的组合应用。

首先我们来看纯Interlace片源的Deinterlace处理:范例脚本:LoadPlugin("decomb.dll")#加载Decomb滤镜AVISource("nonfilm.avi")#导入片源FieldDeinterlace()#使用FieldDeinterlace进行Deinterlace处理,全部参数均为默认。

然后,我们来看看针对3:2 pulldown片源只反交错,不删除重复帧的处理:LoadPlugin("decomb.dll")AVISource("film.avi")Telecide(order=1)#使用Telecide函数进行场匹配反交错接下来,我们来看看IVTC(在场匹配反交错的同时删除重复帧)的做法:LoadPlugin("decomb.dll")AVISource("film.avi")Telecide(order=1)Decimate(cycle=5)#用Decimate每五帧删一帧禁用Postprocessing:LoadPlugin("decomb.dll")AVISource("mixed.avi")Telecide(order=1,post=0)#post=0为禁用PostprocessingDecimate(cycle=5)对3:2 pulldown含量很大的影片进行IVTC:LoadPlugin("decomb.dll")AVISource("mixed.avi")Telecide(order=1,guide=1)#使用guide=1对3:2 pulldown的片源处理进行优化Decimate(cycle=5)处理hybird片源:LoadPlugin("decomb.dll")AVISource("hybrid.avi")Telecide(order=1,guide=1)Decimate(mode=3,threshold=2.0)#使用Decimate的mode参数对hybird影片的处理进行优化,具体配制方法请见上一节。

[转载]AVS教程:AviSynth学习手册【第五节IVTCDeinterlace应对策略】

[转载]AVS教程:AviSynth学习手册【第五节IVTCDeinterlace应对策略】

[转载]AVS教程:AviSynth学习手册【第五节IVTCDeinterlace应对策略】接下来的数节中,我们将讲解IVTC/Deinterlace。

IVTC/Deinterlace无论如何都是一个值得大书特书的过程,DVDRip 一半的质量都是取决于IVTC/Deinterlace的好坏。

首先,我们先了解一些概念。

24p:本章经常会遇到这个概念,意思就是,24fps无交错的胶片,经过胶卷过带,最终形成的30fps、每五张中有两张交错的片源。

30i:意思是,30fps、张张都Interlace(交错)的片源。

场匹配反交错:这个动作一般对象指得是24p的影片,通过对(前)中后三帧进行场匹配(具体原理下文会讲),还原原本没有交错的画面。

注意,是还原!这样还原出来的帧和原来没有交错的帧理论上应该是一模一样的。

场匹配反交错是在帧与帧之间进行的。

Deinterlace:反交错,通过一定手段,让原本交错的帧显得不再交错。

注意,是“显得不再交错”而不是“还原”,经过Deinterlace 的画面与原本的画面是有很大差别的。

Deinterlace只在本帧内进行,是对单幅画面的处理。

注意,Deinterlace一定要和场匹配反交错这个概念区分开!否则读下文的时候会非常糊涂。

接下来,我们先来复习一下各种类型片源的处理方案。

24p(也叫Film、3:2 pulldown型)有些影片,讯源是24fps,拍摄的时候是用胶片以24fps拍摄的,每一张都没有交错,例如大部分的电影。

为了要能在NTSC 的电视上播放,电影胶卷过带(telecine)的时候必须转成30fps(即前面说过的3:2 pulldown)。

这种影片,其原始画面其实是 24fps无交错的,可以作IVTC,经过场匹配反交错、删除多余的画面,还原回原本的24fps。

大部分的电影,无庸置疑,其讯源一定是 24fps无交错,可以作 IVTC。

电影转成PAL(25fps)的时候,用的是2:2 pulldown,画面还是无交错的,只是加快播放速度,变成每秒播放 25 张。

Avigilon Control Center 7 软件:高级分析和自学习视频分析说明书

Avigilon Control Center 7 软件:高级分析和自学习视频分析说明书

Avigilon Control Center™ 7 SoftwareNext-Generation Analytics and Self-Learning Video AnalyticsACC™ video management software enables analytic events and alarms to be viewed andsearched through an intuitive user interface. Real-time events and forensic capabilities detectand notify operators of scene changes and rules violations.Avigilon Control Center (ACC) software is an easy-to-use video management software that is designed to optimize the way security professionals manage and interact with high-definition video. It efficiently captures and stores HD video, while intelligently managing bandwidth and storage using our patented High Definition Stream Management (HDSM) technology. Version 7 of the software introduces an entirely new way to monitor live video through its Focus of Attention interface, enabling operators to see at a glance what is happening across the entire site and more effectively triage and respond to the most important events.person or vehicle of interest by entering a physical description, by uploading a photo, or by findingan example in recorded video.Preinstalled on Avigilon Recorders and AppliancesACC software is pre-installed and configured on Avigilon HD Video Appliances, Network VideoRecorders (NVRs), NVR Workstations, ACC ES Recorders, ACC ES Analytics Appliances, ACC ES8-Port Appliances and the H4ES camera line. You can also install the stand-alone ACC software tomeet the needs of a wide variety of projects. Our NVRs come pre-installed with the NVR AnalyticsKit to enable our patented Avigilon Appearance Search technology.Unusual Activity and Unusual Motion Detection (UAD & UMD)Advanced AI technology highlights the unanticipated by automatically flagging unusual activityand motion. Without any configuration, UMD detects atypical movement while UAD is object-aware and detects anomalous behavior (speed and location) of people and vehicles.H5AScalable Integration with External SystemsDistributed architecture features .NET-based and REST-based APIs that can easily be integrated with other systems, such asaccess control and building management.S imple Camera and Server Installation Plug-and-play capabilities for NVRs and cameras that automatically identify themselves on the network, without manual configuration or searching.A vigilon Presence Detector Support The Avigilon Presence Detector™ sensor is a small form factor impulse radar device with self-learning radar analytics that accurately detects the presence of a person even if they have stopped moving or are hidden. It has the ability to detect presence through blankets, cardboard, wood and drywall.Avigilon Control Center Advanced FeaturesSpecialty DevicesHDSM™ TechnologyIntelligently manages HD image communications to optimize network bandwidth and workstation performance for even thehighest resolution Avigilon cameras.HDSM SmartCodec™ Technology SupportAutomatically adjusts compression levels for regions in a scene, to optimize bandwidth while still maintaining imagequality.Avigilon Appearance Search TechnologyQuickly search recorded video to find instances of a person or vehicle across all sites using cameras with Avigilon self-learning analytics. Search for a person by physical description, including clothing color, hair color, gender and age group. Search for a vehicle by physical description, including color and category - car, truck, bus, bicycle, and motorcycle. Searchfor a person or vehicle by uploading a photo.Intelligent SearchPowerful search tools enable you to quickly search recorded video for motion, the presence of classified objects (people or vehicles), background changes in the scene (thumbnail search), and for events.H4 Video Intercom SupportVideo Intercom support provides operators with visual and audio verification of visitors. The H4 Video Intercom integration uses wide dynamic range and echo canceling technologies for clear viewing and two-waycommunication with visitors.ACC Mobile SoftwarePush alarm notifications, live and recorded video, two-way audio, self-learning video analytics overlays, digital output triggers, and PTZ control for Android™ and iOS mobile ing Avigilon Cloud Services, log in to connected ACC siteswithout any complicated firewall configuration.Detailed Management, Monitoring, and Reporting of System Status and SecurityDetailed logs of storage, network, and overall system status to help ensure the highest possible system uptime for criticalapplications.Point-of-Sale Transaction EngineLink HD security recorded video (viewed instantly) withtransaction data to address compliance requirements and help reduce shrinkage and theft.Unusual Motion DetectionU MD technology enables fast video search and is designed to reduce hours of work to minutes by narrowing potentially thousands of motion events to a handful. This allows operators to focus their attention on recorded video needing furtherinvestigation.License Plate Recognition (LPR) AnalyticsSecond generation LPR analytics engine with easy configuration and improved accuracy for faster securityresponse. Multiple license watch lists can trigger unique ACCrules when detecting a match.ACM-ACC InteroperabilityThe Access Control Manager (ACM) system receives, processes, and acts on ACM™ door events, hardware input events, and access grants, enabling operators to unlock access doors directly from a camera view. Identity Verification enables users to see ACM system credentials dynamically displayed with ACC camera views. Identity Search enables users to visually verify access events, and initiate an Avigilon Appearance Search across the entire site for the same person.Avigilon Cloud Services Web ClientSecurely stream live and recorded video from firewall-protected ACC sites using a Chrome or Safari web browser. With no client installation required, this solution leverages Avigilon Cloud Services to support secure peer-to-peer connections to ACC servers.ONVIF ® Profile S, T and G Compliant VMSEnsures interoperability between IP based ONVIF conformant security devices regardless of manufacturer. Allows video and audio recovery from SD cards installed in Profile G cameras incase of network failure.Video ArchiveRetain and manage large amounts of video for on-demand retrieval and review. Extend your storage beyond NVRs using the Avigilon Video Archive for reliable and scalable storage.Unusual Activity DetectionUAD technology enables object-level detection of atypicalactivity. This edge-based intelligence uses advanced AI technology and is designed to be object-aware, enabling operators to know when a person or vehicle is in an unusual location in the scene or moving at an unusual speed.Federal Government Compliance with FIPS 140-2 Certified EncryptionTo comply with policies, Federal Government and other customers can enable FIPS 140-2 certified cryptography on ACC software and on supported Avigilon cameras. Required camera cryptography licenses are centrally managed in ACC.Within ACC, optionally turn on licensed FIPS cryptography on Avigilon cameras. ACC inventories the number of FIPS camera licenses being used and determines whether customers have the required number of licenses within a facility.Facial Recognition TechnologyAI-powered facial recognition algorithms notify operators when a person of interest returns to a facility. Add a person to a face watch list by uploading a photo or from recorded video. Create watch list alarms, monitor the Focus of Attention interface to detect matches, or start an Appearance Search for a person on a watch list.AvigilonCloud ServicesACC SiteAnalog Camera with Encoder MultisensorCameraPro Camera Analytics CameraThird-party integrationACC Virtual MatrixACC ClientACC Mobile 3ACC Site ACC Site ACM Appliance ACM -ACC interoperability AI ApplianceLicense Plate Capture Camera Mini-Dome CameraVideo IntercomACS Web ClientSOLID STATE DRIVE AvigilonPresence DetectorSystem ArchitectureSoftware EditionsVideo Analytics overlays(Next-Generation Video Analytics, Self-Learning Video Analytics, UAD and UMD)Y es Y es Y es Joystick supportY es Y es Y es ACC Mobile 3 app / Web Endpoint including mobile alarm notifications Y es Y es Y es Avigilon Cloud Services Web Client Y es Y es Y es FIPS 140-2 EncryptionY es Y es Y es Certificate management between ACC Client and Server Y es Y es Y es Emergency privilege override Y es Y es Y es Two-factor authentication Y es Y es Y es Password strength meter Y es Y es Y es Light and dark interface themes Y es Y es Y es Editable Site ViewY es Y es Y es Multi-camera export with optional password protection Y es Y es Y es Hourly configurable recording schedule Y es Y es Y es Saved viewsNo Y es Y es Maps with configurable icons and camera thumbnail previews No Y es Y es Integrated web page bookmarking and display No Y es Y es Focus of Attention interface No No Y es Active Directory integration No No Y es Intelligent Virtual Matrix No No Y es Collaborative investigationsNo No Y es Multi-camera privacy blurred export from Avigilon Appearance Search resultsNoNoY esAutomatic device discoveryY es Y es Y es Third-party IP cameras and encoders Y es Y es Y es ONVIF compliant cameras and encodersY es Y es Y es H5A cameras with Next-Generation Video Analytics Y es Y es Y es H4A cameras with Self-Learning Video AnalyticsY es Y es Y es H5SL, H5M, H4SL, H4 Multisensor, H4 PTZ, H4 IR PTZ, H4 Fisheye, H4 Mini Dome,H4ES, and H4 Thermal camerasY es Y es Y es H4 Thermal Elevated Temperature Detection (ETD) cameras Y es Y es Y es Avigilon H3, HD and earlier cameras Y es Y es Y es Fisheye dewarpingY es Y es Y es Avigilon analog video encoderY es Y es Y es Avigilon Presence Detector (APD) sensor No Y es Y es H4 Video Intercom No Y es Y es H4 Pro cameras No No Y es Avigilon AI Appliance No NoY esThe Avigilon Control Center software is offered in three editions: Core, Standard and Enterprise. The Core edition is an entry-level version of our award-winning software that delivers advanced high definition video security capabilities, ease of use, and superior image quality to smaller implementations. The Standard edition is a cost-effective security solution that meets the vital and focused needs of mid-size operations. The Enterprise edition includes all of the Core and Standard features, plus advanced features to make it a powerful, open platform for large-scale video security needs.Cameras per server 2475300+*Cameras per site 247510 000+*Servers per site11100+*Client licenses per server 210Unlimited Rule triggers051Unlimited HDSM technology supportY es Y es Y es HDSM SmartCodec technology support Y es Y es Y es Dual Streaming for ONVIF compliant camerasY esY esY es H.265, H.264, MPEG4, MJPEG, JPEG2000 video compression Y es Y es Y es* Actual limits will depend on the hardware environment. Please review Avigilon server and appliance datasheets for applicable limits.UAD and UMD timeline filtering wtih Skip Play Y es Y es Y es Intelligent motion search Y es Y es Y es Thumbnail search Y es Y es Y es Event search Y es Y es Y es Point-of-sale (POS) transaction search No Y es Y es Avigilon Appearance Search technology No No Y es Alarm search No No Y es License plate event search No No Y esDoor and panel input event triggers No Y es Y es Door access grants No Y es Y es Shared operator access No Y es Y es ACM Identity Verification No Y es Y es ACM Identity Search No Y es Y esPOS transaction engine No Y es Y es Avigilon developed and supported integrations No Y es* Y es Third party system integrations No Y es Y es License Plate Recognition with multiple match lists No No Y es Face Recognition with multiple watch lists No No Y es*CommScope® iPatch®, RS2 Access It!®, DDS Amadeus 5 and DSX onlySystem and motion event e-mail notifications Y es Y es Y es Two person authenticated recorded video viewing Y es Y es Y es Camera replacement Y es Y es Y es Central station notifications including ANSI/SIA DC-09-2013 No Y es Y es Digital input email trigger No Y es Y es Manual digital output trigger No Y es Y es Audio recording and output No Y es Y es APD™ event trigger No Y es Y es Next-Generation Video Analytics and Self-Learning Video Analytics event configuration No Y es Y es Camera standby / privacy mode No Y es Y es Avigilon AI Appliance analytics configuration No No Y es Redundant recording No No Y es Failover connections No No Y es ACC Client alarm notifications and escalation No No Y es One-time Video Archive No Y es Y es Tiered Storage Management with Continuous Archive No No Y esFor the latest list of integrations and add-ons supported by Avigilon Control Center software, visit .System RequirementsACC Client SoftwareACC Server SoftwareNote:• Run Windows Update before launching Avigilon Control Center (ACC) software.• NVR recording throughput and retention times can vary according to the number of cameras, camera resolution, estimated percent of motion, continuous recording settings and predefined retention period. •For best-in-class performance, choose an Avigilon Certified Solution .AVIGILON CERTIFIED SOLUTIONSAVIGILON CERTIFIED SOLUTIONSACC Server WorkstationACC Mobile 3 SoftwareACC Mobile version 3 is available for the listed device platforms and requires the ACC Web Endpoint service. The ACC Web Endpoint service comes pre-installed on the AI NVR, ACC ES HD Recorder, ACC ES Analytics Appliance and ACC ES 8-PortAppliance. For NVR systems and HD Video Appliances, it should be installed on the same server as the ACC Server software.Avigilon Appearance Search Technology and Face RecognitionAvigilon Appearance Search technology and Face Recognition require the ACC Analytics Service to be installed on the same computer as the ACC Server software and must meet the listed system requirements:AVIGILON CERTIFIED SOLUTIONSAVIGILON CERTIFIED SOLUTIONSDec 2020 — Rev 7© 2016 - 2020 Avigilon Corporation. All rights reserved. AVIGILON, the AVIGILON logo, ACC, AVIGILON CONTROL CENTER, ACM, ACCESS CONTROL MANAGER, APD, AVIGILON PRESENCE DETECTOR, AVIGILONAPPEARANCE SEARCH, HDSM, HSDM SmartCodec and HIGH DEFINITION STREAM MANAGEMENT are trademarks of Avigilon Corporation. ONVIF is a trademark of Onvif, Inc. Celeron, Intel, Intel Core and Intel Xeon are trademarks of Intel Corporation or its subsidiaries in the U.S. and/or other countries. Android is a trademark of Google LLC. Apple, Safari, iPad, iPhone and iPod touch are trademarks of Apple Inc. registered in the U.S. and other countrires. Other names or logos mentioned herein may be the trademarks of their respective owners. The absence of the symbols ™ and ® in proximity to each trademark in this document or at all is not a disclaimer of Some images of the product interface have been simulated for illustrative purposes.。

VCB-Studio教程07AviSynth基础与入门

VCB-Studio教程07AviSynth基础与入门

VCB-Studio教程07: AviSynth基础与入门0. 前言这篇教程需要教程6:VS基础与入门作为前置尽管avs早于vs存在了十几年,上手写一个hello world级别的脚本也比vs容易,但是avs混乱的参数传递机制,使得想深入学习avs的使用,比vs其实来的困难。

本教程假定你通过vs教程,已经对变量、参数传递等有了最基本的认识,这样,当我们讨论avs特有的一些机制的时候,不至于从零开始。

AviSynth主页和文档:AviSynth+主页和文档:在线词典:avs目前最新版是avs 2.6.0,只有32bit;avs+是avs的一个改良mod,优势在于,有官方64bit版本。

尽管以vcb-s对于avs+的使用,全局64bit化是可行的,但是因为懒,所以直到转vs之前,vcb-s一直使用32bit 版本的avs。

如果你希望使用64bit的avs,建议使用avs+。

有vs的存在,avs的意义不是很大,至少作为定位高质量、复杂处理的压制,vs优秀的内存管理机制、原生的多线程优化,和各种新科技滤镜,让它对比avs已然优势明显。

但是vcb-s系列教程依旧讲述avs,因为很多以前的教程和脚本是基于avs的,我们需要保证大家能理解并继承上个时代的智慧结晶。

1. 简单的avs脚本以下是一个简单的脚本,以YUV420P16的格式读入一个mkv,并转为RGB32显示:SetMemoryMax(1000)a = ""LWLibavVideoSource(a,format="yuv420p16",stacked=true)dither_convert_yuv_to_rgb(chromak="lanczos",taps=4,noring=true,lsb_in=true)avs原生不支持多线程,但是支持设置最大使用内存。

这里我们用setMemoryMax()来设置最大使用1000MB。

基础工具的安装和调试-VCB-Studio教程专栏

基础工具的安装和调试-VCB-Studio教程专栏

VCB-Studio教程03:基础工具的安装和调试本教程讲述如何安装并调试avisynth+, avspmod, VapourSynth, VapourSynth Editor, MeGUI, mkvtoolnix和MediaInfo. 调试的方法中顺道介绍常见的源-成品对比手段。

1. avisynth+ 和avspmod 的安装avisynth是一直以来滤镜处理的传统工具,后来分裂成avisynth 2.6.0(简称avs 2.6) 和avisynth+(简称avs+),两者大同小异。

本系列教程如无例外,均以avs+ 32bit为准。

avs+只允许标准安装,不像avs 2.6允许标准安装和绿色安装,容易造成版本和滤镜目录的混乱。

SVP(Smooth Video Project)依赖avs运行。

所以如果你需要使用svp,不建议你重新安装avs+。

安装avisynth+之前,先去控制面板-程序,找到之前所有的avs版本,卸载。

如果卸载完了有弹窗问你是否要保留滤镜目录,选否。

然后安装avisynth plus的本体:https:///AviSynth/AviSynthPlus/releases/download/Rel-r1576/AviSynthPlus-r1576.ex eLanguage选English。

安装目录,千万记好你装到哪里。

随后的安装选项,你可以根据你的需要选择32bit(x86)还是64bit(x64),一般情况下推荐只安装稳妥的32bit,毕竟avisynth官方没有64bit版本,一些组合滤镜也很难把所有插件找齐64bit版本:32bit的avs,一般被32bit的自行环境启动,比如说32bit的播放器,32bit的x264。

如果要想让64bit的编码器读取32bit的avs,则要借助avs4x264.exe这样的pipe工具。

同理,64bit的avs只能被64bit的环境自动启动。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

AviSynth 入门与应用指南[转]AviSynth 入门与应用指南目录 [隐藏]1 AviSynth 的一些基本概念 2 基本认识 3 基本代码o o o o o o o o o o3.1 1. LoadPlugin(),加载插件 3.2 2.源媒体读取 3.3 3.crop()、LanczosResize()裁黑边和调整大小 3.4 4.亮度滤镜 3.5 5.字幕滤镜 3.6 6.其它虑镜介绍 3.7 7.常用音频处理脚本 3.8 8.色彩模式的转换 3.9 9.截图 3.10 10.合成4 压制 DVDo o o o o o o4.1 1.以 avi 文件为例 4.2 2.直接将多 CD 的压制成一个 rmvb 4.3 3.双语的 vcd 分成单语来做 4.4 4.制作成单音轨双语 4.5 5.将双语的 rmvb 制作成单语双声道的方法 4.6 6.用 rmvb 直接压制 DVD 4.7 7.120fps 的 avi 压制成 RM/RMVB[编辑]AviSynth 的一些基本概念AviSynth 是 AVI synthesizer 的缩写,也经常称之为 avs,简单来说就是个合 成平台!在媒体文件和压缩软件之间担任“桥梁”的角色。

这座桥梁不是简单 的独 木桥、而是有栏杆、有台阶(比喻其提供的大量虑镜)。

因此比较灵活!如对 于压制 real 格式来说,源媒体文件是 vob、d2v(DVD 处理过程中的中间文件)、 ac3、mp3、avi、DAT/mpge 等,而应用程序是各种 real 压缩软件如 Helix real producer、BatchRealProducer144 和 EasyRealProducer14,它们都支持 avs 的导入。

当然 avs 并不只是用于 real 压缩。

它是媒体文件和压缩软件之间的 “桥梁”,只要 avs 支持你所需要处理的媒体文件,压缩软件也支持导入 avs 文件,你 都可以通过 avs 对视频进行处理,然后让压缩软件输出你所需要的格式的文 件。

也许你还是不明白 AviSynth 能做什么,举些简单的例子,你需要对 一段 avi 进行处理。

你想把画面尺寸缩小,你可以用 avs;你想把画面上的杂点消除, 你可以用 avs;你想把画面处理得锐利些,你还是可以用 avs;AviSynth 是桥 梁,位 于媒体文件和压缩软件之间,压缩软件可以通过 AviSynth 调用和处理媒体文 件。

而且不仅仅是压缩软件,甚至是播放器也能调用 avs,对播放的文件进行 处理, 得要需要的播放效果。

AviSynth 首先要编写建立一个包含特定命令的文本。

注意这里的文本,简 单的说就是 windows 的写字板写出来的文件,你可以用任何一种文本编辑器打 开进行 编辑。

这一特定命令的文本称之为"脚本"(文件后缀名为 avs),这些命令指定 要运行处理的媒体文件和滤镜! AviSynth 的平台和相关滤镜更新比较快,功能不断增加,编辑 avs 脚本也更简 单。

在射手网可以下载到这个平台软件。

至于滤镜可以到得到 /warpenterprises/ 下载,至于 doom9 论坛,大家知 道有这么个乌合的巢穴就可以了![编辑]基本认识上面简单介绍了 AviSynth 的一些基本概念作为引子,在正文开始前,我想首先 交待很重要的一点:avs 脚本及其各种滤镜主要适用于大码率媒体文件的处 理,也 即我们经常接触的 DVDRIP/TVRIP avi 的制作优化。

而对于高度压缩格式的 rmvb 来说,我们利用的 avs 滤镜更应该持慎重态度(如亮虑镜、字幕虑镜、画 面调整等 少数几个)!也就是说 avs 在 rmvb 压制方面,我们需要的是利用 avs 灵活的 “中间人”的角色(看下面的例子)!而不是为了 avs 而去压制!我看到好多 朋友初步接触 rmvb 压制,就在用 avs 压制 DVDRIP-rmvb,完全套用个别论坛给出的 avs 脚本,里面全是各种滤镜,如 3D 增强、柔化、去丝等!这些滤镜如果制作 DVDRIP 的 avi 那是会获得肯定的画质效果,但是用于 rmvb 压制,仿佛就是东施效颦, 忠言逆耳!real 压制的原理和高码率的 mpge4 编码是不同的,后者有视频上层 的概念 ,因此滤镜的修饰作用可以体现。

我看 Doom9 讨论 avs 时,主要还是处理各种 大数据量影像媒体为主。

如处理自己 DV 录制的影视、电视卡录制的视频源之类 的等。

而众所周知的影响 real 媒体压缩效果就是片源效果。

VCD 片源的再怎么处理也 不可能达到 DVD 的效果,而 DVD 片源,再怎么胡乱压制也不会差到哪里。

因此 avs 直接 在 rmvb 的压制中需要适当选择,而不能盲从,特别是对于各种滤镜的选择更要 注意。

一句话 AviSynth 非常灵活,要按具体情况具体分析。

第二,需要认识 avs 的桥梁作用。

修饰之余尽可能的使用压缩软件本身的功 能。

对于 real 压缩,如 rmvb 压制中帧率的改变就可以在压缩软件中进行设 置,而不 要在 avs 中写入相关的语句。

另外各种压缩软件使用的是 real 的压缩内核,而 real 压缩一般以 YV12 的快速处理环境为主。

这也是在使用 avs 压制 rmvb 时需 要注意 的问题。

自己觉得上文对 avs 的介绍及应用范围要比下面的内容来的更重要!这是我 直到现在才撰写完毕这篇小文的良苦之处。

下面先简单的介绍些基本方法和常用滤镜,滤镜可以理解为各种处理视频的 工具。

首先安装 avisynth,并将常用虑镜插件 dll 文件拷贝到安装目录的 plugin 目录里。

[编辑]基本代码LoadPlugin(),加载插件[编辑]1.如: LoadPlugin("VSFilter.dll") 加载字幕插件 LoadPlugin("mpeg2dec3.dll") 加载 DVD 的 mpeg2 编码器插件 LoadPlugin("mpasource.dll") 加载 mp3 插件请下载以上提到的滤镜!并解压制到 plugin 目录里(当然目录可以自己选 定),如果 avs 文件和滤镜不再同一个目录下,记得要把加载滤镜的路径名写 全了。

有些 滤镜或者脚本是 avisynth 核心的滤镜或脚本,也就是 avisynth 本身提供的功 能,这些就不需要加载,其它的都需要加载。

你也可以用 SetWorkingDir 设定 插件 文件的工作路径 SetWorkingDir("d:\GORDIA~1\") # 设定 AVS 脚本调用 dll 插件文件的工作路 径[编辑]2.源媒体读取DirectShowSource("e:\vob\ss.VOB") DirectShowSource()在高版本 avisnyth 中显得更万能些,常用的媒体格式,如 avi、mpge1/dat、mpge2/vob/bin 都可以加载,另外可以不用分离视频和音频 ,而直接压缩!想要直接压制 vob 请使用高版本的 avisynth,如目前的 2.54 。

如果遇到打不开的媒体格式你大都可以试试看 DirectShowSource。

AVISource(e:\avi\1.avi,false) 这个对于 DVDRIP 压制者来说可能更常用些.false 表示禁止音频! mpeg2source("XXX.d2v") 这个用于解码 DVD 的 mpeg2 格式的视频 WAVSource("e:\vob\ss.wav") 读取 wave 音频 AC3SOUECE("e:\vob\ss.ac3") 读取 ac3 音频 MPASOURCE("e:\vob\ss.MP3") 读取 mp3 音频 注:WAVSOURCE 和 AVISOURCE 是属于核心脚本,无须读取插件,但 AC3SOURCE 和 MPASOURCE 需要读取 AC3SOURCE 和 MPASOURCE 插件。

DirectShowSource 的读 取 需要安装各种音频和视频的解码器[编辑]3.crop()、LanczosResize()裁黑边和调整大小vob 文件画面大小一般 720×480。

16:9 宽银幕的都带了很大的黑边,需要裁 减掉。

也是 avs 用于 vob 压制的关键因素之一 裁减黑边和缩放画面是 vob 文件压制中很重要的因素,一般连用。

对于本身就 无黑边的文件直接用 LanczosResize() 16:9 画面的有 2 种情况,请记住这几个数值,在 rmvb 压制中直接套用即可!DVD 变形宽银幕:640×352,608×336 电影宽银幕: 640×272 如要将电影宽银幕的画面比列调整到 640×272,avs 里可以这么写 Crop(8,90,704,300) LanczosResize(640,272) 如要将 DVD 变形宽银幕的画面比列调整到 608×336,avs 里可以这么写 Crop(8,64,704,352) LanczosResize(608,336) 无黑边的画面的直接用 LanczosResize(512,384) 缩小同时画面强制到标准 4:3 请直接记住这几句就可以了得到最佳的 rmvb 画面大小了![编辑]4.亮度滤镜亮度滤镜是使用 avs 压制 vob-rmvb vcd-rmvb 的又一关键因素。

画面太暗的 rmvb 是失败之作 介绍 2 个 Levels(0,1.5,255,0,255) 改第二个,我感觉数值在 1.3-2 之间比较合适,一般 1.5 比较合适 Tweak(0,1,20,1) 4 个浮点数分别表示:调节色度,饱和度,亮度,对比度。

一般将第三个调节 在 0-30 之间,以 15-20 为宜 个人感觉 level()比较好,主要调背景为主,而 vob 文件主要是背景暗。

注意 Tweak 的其他调节可能和颜色控制环境有关,如 YUY2,因此其它的最好不要再 改动 注:ffdshow 目前的版本还是不能支持 mpge2 唉!否则可以利用它来调节亮度 了[编辑]5.字幕滤镜TextSub("h:\avs\jrvs.ssa") 加载水印文本 VobSub("e:\vob\ss.idx") 加载影片字幕[编辑]6.其它虑镜介绍FluxSmooth(5,7) 柔化滤镜 Convolution3d("moviehq") 3D 优化滤镜 2 者需要加载相应的滤镜插件[编辑]7.常用音频处理脚本ResampleAudio(44100) DELAYAUDIO(XXX,30) AmplifydB(wavsource(“XXX.WAV”),3,3) 例子: DelayAudio(wavsource(”XXX.WAV“),-30)30 的单位是毫秒,经典的解 决音画同步问题; 又如: WAVSOURCE(“xxx.wav”).ResampleAudio(48000) 音频重新采样,采样率 48 再如: AmplifydB(wavsource(“xxx.wav”),3,3) 左右声道放大 3DB[编辑]8.色彩模式的转换有些压缩软件不支持某些色彩模式,例如默认情况下 Helix 不能在 YV12 环境下 工作,需要将 DVD 的 YV12 转为 YUY2 video=ConvertToYUY2(video),当然如果你装了 Xvid,Helix 也是可以在 YV12 下工作的 有如下的转换: ConvertToRGB32()、ConvertToRGB24、ConvertToRGB() ConvertToYUY2()、ConvertToYV12() 简单例子: AVISOURCE(“xxx.avi”) ConvertToYUY2() 等价于 AVISOURCE(“xxx.avi”,“YUY2”)或者 AVISOURCE (“xxx.avi”).ConvertToYUY2() 其他的也类似[编辑]9.截图没有想到用 avs 来截图吧,只要用 wmp6.4 或 mpc6468 播放一下写好的 avs 文 件,截图就产生了 directshowsource("C:\1.rmvb",fps=23.976).ConvertToRGB24 trim(0,19) ImageWriter("C:\",0,0,"jpg") 这里我们假设的是要截取的 rmvb 为 C:\的 1.rmvb,要截取的 frame(幅)从第 1 到 20 共 20 幅(trim 是以 0 为第一幅) 保存路径为 C:\,格式为 jpg(支持 bmp, dds,jpg/jpe/jpeg, pal, pcx 格式) 连续截图 Avisource("C:\test,avi",false).ConvertToRGB24 trim(0,19) ImageWriter("C:\",0,0,"jpg") 截取特定的 frame Avisource("C:\test,avi",false).ConvertToRGB24 trim(1920,1920) ImageWriter("C:\",0,0,"jpg")[编辑]10.合成AudioDub(video, audio) 合成常用于 real 格式的压制,制作 rmvb 的时候就需要把视频和音频合成后交 给 real 压缩软件,而制作 avi 则不需要合成视音频。

相关文档
最新文档