Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by Thomas-Hawk · Jul 22, 2017 at 03:31 AM · camerarenderingtimelinepngdata storage

How to export video? Cinemachine and Timeline question

It was my understanding that some of the hype over 2017 Unity, and I suppose Cinemachine, was that we would be able to export video files.

Am I mistaken, or just not able to find any documentation?

Certain things that used to allow me to save screenshots seem to have been specifically deprecated with 2017.0: https://docs.unity3d.com/ScriptReference/Application.CaptureScreenshot.html

So, what is the deal? I can't write to a PNG every frame, to later compile into a video - Cinemachine doesn't add specifically the ability to export a video, Where is the Timeline documentation?

I understand that I can use OBS or FRAPS or similar, But if there is latency between the frames of rendering, built or otherwise, that will either show in the recording, or overload my CPU to skip tons of frame altogether.

How do I save the rendered frames in Unity to a video file?

If I can't, then, How, now, do I write what the camera is rendering to a PNG file, before moving to the next frame?

I grabbed this from some documentation and modified it to make some files, which were iteratively named, albeit not to a "frames" folder as specified - it also did not make them as PNGs, I had to name them manually, and even then, it seemed to only produce the top couple of rows of what was being rendered, in a very very tiny image: using UnityEngine; using System.Collections;

public class WriteFrames : MonoBehaviour { public string Screen_Shot_File_Name = "Ss"; int i =0;

  public void LateUpdate (){
      i++;
      //if (snapping == true) {
          //Screen_Shot_File_Name = target.name + System.DateTime.Now.ToString ("__yyyy-MM-dd") + ".png";
          Texture2D tex = new Texture2D (Screen.width, Screen.height, TextureFormat.RGB24, false);
          tex.ReadPixels (new Rect (0, 0, Screen.width, Screen.height), 0, 0);
          tex.Apply ();
          byte[] bytes = tex.EncodeToPNG ();
      string filename = "/frames" + Screen_Shot_File_Name + i.ToString();
          //Write bytes
          System.IO.File.WriteAllBytes (filename, bytes);
          Destroy (tex); //Destroy texture from memory
          //Or use binary writer
          //System.IO.File file = new System.IO.File.Open(filename, System.IO.FileMode.Create);
          //System.IO.BinaryWriter binary= new System.IO.BinaryWriter(file);
          //binary.Write(bytes);
          //file.Close();
          Debug.Log ("Picture snapped!");
      //}
 
  }

} So, that is not quite what I need, apparently, but might show you what my goal is. Please! Any help is appreciated.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tlopez_technicolor · Jul 27, 2017 at 02:44 PM 0
Share

I just found this : http://unitylist.com/r/bw8/generic-frame-recorder

Hope this might help :D

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by julienb · Jul 26, 2017 at 09:59 PM

Use can use https://github.com/unity3d-jp/FrameCapturer to save each frame to PNG

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
1

Answer by tlopez_technicolor · Jul 27, 2017 at 02:29 PM

Hi,

It seems there (is ?) will be a native export tool to directly capture video in the Editor, as it was demonstrated to Unity Europe 2017 a month ago (49:45 : https://www.youtube.com/watch?v=-jZdMFPACpU )

However I cannot see any trace of it right now.... Hope someone could get a clue on this.... :)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image unityarvind · Jul 28, 2017 at 08:04 AM 1
Share

https://github.com/Unity-Technologies/GenericFrameRecorder This one let's you record your video. The one that $$anonymous$$$$anonymous$$yhill showed in the Unite $$anonymous$$eynote.

avatar image Cleo_willo876 · Jul 31, 2018 at 01:45 PM 0
Share

If anyone still looking for this tools for recording videos and exporting it from Unity, you can check for Recorder on the Assetstore, it works alongside cinemachine as far as I know.... and here's a tutorial showing how to use it on Youtube:

https://www.youtube.com/watch?v=Fd85Dm$$anonymous$$r4pU

and here's a link to find it on the asset store:

https://assetstore.unity.com/packages/essentials/beta-projects/recorder-94079

avatar image
1

Answer by warrenblyth · Nov 16, 2017 at 01:18 AM

btw, at UNITE austin 2017, unity rep showed that the 2017.3 beta lets you add a "recorder track" to Timeline, which spits out a .mp4 file (in near real time). (so i'm currently downloading the beta, so I can do this) (i believe this was shown during Mathieu Muller's "Unity For Film: A Walkthrough" talk, in Breakout2 room at 4:15 on Oct4) EDIT: it doesn't appear to be native in 2017.3 beta (yet). but you can download it for any of the 2017.x releases here: https://assetstore.unity.com/packages/essentials/beta-projects/recorder-94079 + and it seems a little wonky. You really need to open tools/record/video to do it. Just placing a recording track on timeline didn't kick in and do anything. and the mp4 video it did generate for me was upside down. so. guessing it's being actively modified at the moment)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by kalyan11 · Aug 17, 2018 at 01:43 PM

can we make video clip export that??

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

111 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity - blur on one camera effects the other as well 0 Answers

rgb value detail 0 Answers

Is it possible to view two camera at the same time? 2 Answers

unity 2017.3.0p1 cam rendering problem 1 Answer

Water refraction from a different level? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges