Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by Alexx · Jul 18, 2011 at 08:28 AM · qualitymovie texture

Run movie in VLC player

The reason for this question is that I'm not satisfied with the quality of the video from Movie texture. I used Miro converter to import FullHD movie inside Unity, but when I display it on large screen the movie playback does not look smooth - it looks like some frames are lost. Therefore, I thought about playing a movie in full screen VLC player which is run from the Unity, but I don't know how to run external application from Unity. Are there any other solutions to my issue? Or suggestions? Thank you very much in advance. My regards, Aleksandra

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Marnix · Jul 18, 2011 at 09:07 AM

You can run other applications from outside Unity with C#, but it will open a new window with your movie.

Have a look at System.Diagnostics.Process
http://msdn.microsoft.com/en-us/library/system.diagnostics.process.aspx

If you are looking for another way of playing movie files, maybe you should search for external libraries and embed them into your game. Like BINK or something. But these libraries are quite expensive. AND you need a pro license to import dll's.

Maybe you should ask for related libraries at gamedev stackexchange. Maybe there is some simple DLL that you can embed into your game.

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 Alexx · Jul 18, 2011 at 03:09 PM

Thank you very much. I used the following code:

 string _path = "C:\\Users\\Saska\\Desktop\\Videi\\intro.mpg --fullscreen vlc://quit --intf dummy";
             foo = new Process();
             foo.StartInfo.FileName = "C:\\Program Files\\VideoLAN\\VLC\\vlc.exe";
             foo.StartInfo.Arguments = _path;
             foo.StartInfo.CreateNoWindow = true;
             foo.StartInfo.WindowStyle = ProcessWindowStyle.Minimized;
 
             foo.Start();

But VLC player minimizes my Unity app, and when the movie finishes, I have to click on taskbar in Windows to make Unity window in full screen. How I can avoid minimization of Unity window, so it runs underneath VLC player in full screen?

Comment
Add comment · Show 3 · 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 Marnix · Jul 18, 2011 at 03:14 PM 0
Share

@$$anonymous$$x Fullscreen windows will probably always get $$anonymous$$imized when you run another process. You could run Unity in windowed mode or create a plugin for VLC that maximizes unity again. But I'm sure there are other ways for this as well.

avatar image Alexx · Jul 18, 2011 at 03:28 PM 0
Share

Ok, I thought this is an issue of Windows. I don't know what I can do because transition from Unity to VLC goes via my Desktop and this really looks awkward. I want to avoid this as well, so plug-in for VLC isn't the best solution. Thank you anyway.

avatar image Marnix · Jul 18, 2011 at 03:55 PM 0
Share

@$$anonymous$$x updated my answer about 3rd party libraries

avatar image
0

Answer by chassets · Apr 12, 2016 at 07:24 AM

If you're still interested in using VLC from Unity, I created a VLC for Unity plugin: check out this thread http://forum.unity3d.com/threads/released-vlc-player-for-unity.387372/ or the package on the asset store here, where you can try out a demo.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

MovieTexture Quality 0 Answers

Improve shadow quality? 4 Answers

Ingame Quality Settings not recognized 1 Answer

FBX Importer Quality not soo good as in Blender 2 Answers

NGUI Volume And Quality Controle With Sliders Not working 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