• 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 /
  • Help Room /
avatar image
0
Question by ABSZing · Aug 11, 2017 at 06:49 AM · shadermaterialvideobatchmodeautomation

Missing Hidden/VideoDecode material when building through TeamCity

Hi,

I am attempting to run a build through TeamCity but am unable to play videos in the app it produces.

When playing a video through the Unity Video Player I get these error messages:

 Could not find material Hidden/VideoDecode
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 803)
 
 Could not find video decode shader pass YCbCr_TO_RGB1 in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)
 
 Could not find video decode shader pass YCbCrA_TO_RGBAFull in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)
 
 Could not find video decode shader pass YCbCrA_TO_RGBA in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)
 
 Could not find video decode shader pass Flip_RGBA_To_RGBA in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)
 
 Could not find video decode shader pass Flip_RGBASplit_To_RGBA in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)
 
 Could not find video decode shader pass Flip_SemiPlanarYCbCr_To_RGB1 in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)
 
 Could not find video decode shader pass Flip_SemiPlanarYCbCrA_To_RGBA in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)
 
 Could not find video decode shader pass Composite_RGBA_TO_RGBA in shader <not found>
  
 (Filename: C:/buildslave/unity/build/Runtime/Video/Base/VideoYUV420Convert.cpp Line: 863)

Note that this only occurs if I build through TeamCity.

When building manually (through Unity) there is no issue with video playback.

I understand that TeamCity runs in a different environment but apart from that, I don't understand why it cannot find a Unity internal material.

Thanks in advance.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by karasusan · Aug 17, 2017 at 01:29 AM

Check your Graphic Settings and see "Always Included Shaders".

alt text


スクリーンショット-2017-08-17-102801.png (70.9 kB)
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 ABSZing · Aug 17, 2017 at 02:35 PM 0
Share

Well, that seem to do the trick. I will do more checks on this but from the first tests it seems to work.

Thank you very much!!!

Edit: Just for reference I'm going to leave a link to the forum post here as well. https://forum.unity3d.com/threads/unity-$$anonymous$$mcity-commadline-video-encoder-build-issue.487545/

avatar image WordDive · Jan 31, 2018 at 07:47 AM 0
Share

Attachment seems to have disappeared, but adding Hidden/VideoDecodeAndroid (in addition to Hidden/VideoDecode that was already there) to the Always Included Shaders seemed to do the trick for us.

We are using Fastlane/Jenkins and videos were not rendering on Android with the above Could not find video decode shader pass YCbCr_TO_RGB1 in shader <not found> message being logged. iOS builds were fine, as were the builds done manually from Unity.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

115 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 avatar image avatar image avatar image avatar image

Related Questions

Can't assign material at runtime 1 Answer

apply lighting to custom shader made in shader graph? 0 Answers

Particles Additive shader and standart shader in transtransparent rendering mode doesn't work together 0 Answers

Shader - Video Loss Quality 0 Answers

Intersection Shader intersects with Intersection Shader! 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges