Giter VIP home page Giter VIP logo

ffmpegrecorder's Introduction

FFmpegRecorder

FFmpegRecorder is an extension for Unity Recorder that allows recording videos in Unity Editor via FFmpeg.

System Requirements

  • Unity 2019.3 or later

How To Install

The FFmpegRecorder package uses the scoped registry feature to import dependent packages. Please add the following sections to the package manifest file (Packages/manifest.json).

To the scopedRegistries section:

{
  "name": "Keijiro",
  "url": "https://registry.npmjs.com",
  "scopes": [ "jp.keijiro" ]
}

To the dependencies section:

"jp.keijiro.recorder.ffmpeg": "1.0.2"

After changes, the manifest file should look like below:

{
  "scopedRegistries": [
    {
      "name": "Keijiro",
      "url": "https://registry.npmjs.com",
      "scopes": [ "jp.keijiro" ]
    }
  ],
  "dependencies": {
    "jp.keijiro.recorder.ffmpeg": "1.0.2",
    ...

Frequently Asked Questions

Output video is vertically flipped

This issue will be fixed in a future version. At the moment, please manually turn on the "Flip Vertical" option in the recorder settings when you find the output is flipped.

ffmpegrecorder's People

Contributors

keijiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmpegrecorder's Issues

Option to add ffmpeg arguments to settings

The FfmpegRecorderSettings class could benefit from having a field where users can declare their own arguments they want to pass to ffmpeg.

In my use case I'm getting flipped video in the linux editor

Alpha channel

Hey!

Can FFmpegRecorder export the alpha when using the HAP Alpha codec?
My camera clear flags is Solid Color with black and alpha 0.
Since for image sequence, PNG alpha is only enabled for Targeted Camera, I tried that too, no Alpha option appears.

Thanks,
Roger

Unity Recorder 2.2.0

With Unity Recorder 2.2.0 the OutputWidth and OutputHeight are exposed, so there's no need to use GetOutputWidth() in FFMpegRecorderUtil.cs.

FfmpegRecorder.cs, line 35 can be changed from
+ " -video_size " + input.GetOutputWidth() + "x" + input.GetOutputHeight()
to
+ " -video_size " + input.OutputWidth + "x" + input.OutputHeight

Missing executeable?

Where do you have to install FFmpeg to use this script? I have FFmpeg build installed and PATH variables set up. Thanks
Console Error:
Failed to initialize an FFmpeg session due to missing executable file. Please check FFmpeg installation.
UnityEngine.Debug:LogError(Object)
FFmpegOut.Recorder.FfmpegRecorder:BeginRecording(RecordingSession) (at Assets/FFmpegRecorder-master/Packages/jp.keijiro.recorder.ffmpeg/Editor/FfmpegRecorder.cs:22)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Output resolution does not overwrite Game View resolution

Reproduction:

  1. Add Ffmpeg recorder in recorder window
  2. Set Output Resolution to for example 1080p
  3. Open Game window
  4. Set resolution in Game window to for example 60:40
  5. Hit start recording
  6. The output video will be 1080p but stretched from 60:40 (blurry)

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.