Code Monkey home page Code Monkey logo

moviecodecplugin's Introduction

MovieCodec Plugin

Author: LiXizhi Date: 2014.5

How To Build

Git clone to Mod/ folder.

Add environment variable NPLRUNTIME_ROOT that point to git root of NPLRuntime.

Open this folder with visual studio 2017 or above and build the cmake file. The output is Mod/MovieCodecPlugin/MovieCodecPlugin.dll, which has no external dependencies.

Run MakePackage.bat which will generate the MovieCodecPlugin.zip paracraft mod installer file.

How to Build FFMPEG with VCPKG

currently only FFMPEG 4.X is supported. There are some breaking API changes since FFMPEG 5.0.

features: x264,mp3lame,fdk-aac,nonfree .

checkout vcpkg to tag 2022.06.16.1,

then run install command in visual studio 64bit command line:

vcpkg install ffmpeg[x264,mp3lame,fdk-aac,nonfree,postproc]:x86-windows-static
vcpkg install ffmpeg[x264,mp3lame,fdk-aac,nonfree,postproc]:x64-windows-static

copy x86-windows-static from vcpkg package folder to current project folder, replacing all include files and lib files.

How to Build FFMPEG From Source (Not recommended)

currently only FFMPEG 4.X is supported, which is released in 2018. There are some breaking API changes since FFMPEG 5.0. Building FFMPEG static library with visual studio is kind of complicated. follow the offical document, here are some highlights:

  1. install msys2
  2. install yasm
  3. run msys2 shell, and add visual studio cl/link folder to PATH with open command line from visual studio, then open msys2_shell, which will inherit PATH variable.
export PATH="/c/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx86/x86/":$PATH
  1. install pkg-config and diff tools in msys2
pacman -S pkgconf
pacman -S diffutils
  1. run configure in msys2 shell
./configure --toolchain=msvc --enable-gpl --enable-nonfree
make
make install

external libraries are required in order to compile with --enable-libx264 --enable-libmp3lame.

How to Debug

Run "Run.bat" to start debugging the dll. One can also set visual studio's project command line property to match the ones in the bat file like below

command: C:\lxzsrc\ParaEngine\ParaWorld\paraengineclient.exe
command args: dev="C:\lxzsrc\ParaEngine\ParaWorld\Mod\MovieCodecPlugin" mc="true" mod="MovieCodecPlugin" isDevEnv="true"  world="worlds/DesignHouse/TestLiveModel"

How to Install On Win32

Open paracraft's mod site and install MovieCodecPlugin, make sure it is enabled by default.

How to Run

Press F9 or use /record command to launch the movie codec.

image

安装指南

  • 使用Paracraft下载MOD
  • 在Paracraft中按F9或输入/record命令启动插件。

常见问题

- 请确保电脑使用的是立体声输出,否则会crash.

moviecodecplugin's People

Contributors

hyz1992 avatar lixizhi avatar sleepingbuffer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.