Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Videos recorded from a mac build is blue tinted #63

Open
NavigateByCloud opened this issue Apr 15, 2021 · 3 comments
Open

Videos recorded from a mac build is blue tinted #63

NavigateByCloud opened this issue Apr 15, 2021 · 3 comments
Assignees
Labels

Comments

@NavigateByCloud
Copy link

NavigateByCloud commented Apr 15, 2021

Hey!
I tried to make a build on mac from this project. I'm using Unity 2018.4.32. And the videos recorded in the build are all blue tint. Meanwhile, videos recorded from the editor look normal. I suspect the pixel format argument mismatches render texture format somehow. I tried changing the pixel format from "rgba" to "bgra" but it becomes red-tinted. "bgra64be" it becomes green-tinted.

Besides, I got errors in the player log:

[rawvideo @ 0x7ffa80808200] Packet too small (3)
Error while decoding stream #0:0: Invalid data found when processing input

or

FFmpeg returned with warning/error messages. See the following lines for details:
[rawvideo @ 0x7fb75f008200] Invalid buffer size, packet size 8294403 < expected frame_size 16588800
Error while decoding stream #0:0: Invalid argument

Do you have any idea what causes blue tinted? Any insight on that would be quite helpful!

Thank you!

Vanilla

@NavigateByCloud NavigateByCloud changed the title The video is blue tinted recorded from a mac build Videos recorded from a mac build is blue tinted Apr 15, 2021
@keijiro keijiro self-assigned this Apr 16, 2021
@alxdncn
Copy link

alxdncn commented Apr 17, 2021

As a test, I ran through all the different -pixel_format for ffmpeg by changing the command line option specified in FFmpegSession.cs. I also tried cycling through the different color formats for the render texture. Neither gave me the results I was looking for.

@cdg720
Copy link

cdg720 commented Mar 22, 2022

i am also getting this problem with a linux build

OS: Ubuntu 20.04
Unity editor: 2020.3.31f1

update: ok it works fine in editor play but comes out tinted blue with build play

@cdg720
Copy link

cdg720 commented Mar 22, 2022

#44 fixes the problem for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants