- Home /
Importing and Playing a Video
I understand how to implement video playback with putting a Movie Texture on a Game Object or Material, with a little bit of scripting.
I just can't seem to get the video (mp4) to play at all. I've imported it to Assets by drag and drop and by manually browsing my files, but it does not play in the inspector and will not place as a texture onto the material.
I'm using Unity Personal, and can't tell whether or not I need to get Pro.
Not sure what I'm missing here!
UPDATE: I converted my video to .mov and got the following error "Error while reading movie: file/location.mov UnityEditorInternal.InternalEditorUtility:ProjectWindowDrag(HierarchyProperty, Boolean"
I read somewhere that Unity may be running out of memory while converting to ogg due to the video being too large in file size?
Answer by Kumsan · Jul 07, 2015 at 06:56 AM
Hi Haewonhwang, thats because you are using Personal instead of pro. But there is a way around this. Convert your MP4 file to .ogg using VLC media player or using any other video converter. Then, import it to Unity and use it as a movieTexture. This time it will recognize the file as a video.
http://www.activovision.com/pogg/doku.php?id=how_to_convert_a_video_to_ogg_with_vlc
Personal and Pro editions of Unity 5 have exactly the same engine features. $$anonymous$$P4 simply isn't a supported video format, so the advice to convert to .ogg is still valid.
@$$anonymous$$umsan - no, Unity only supports .ogg. From http://docs.unity3d.com/$$anonymous$$anual/class-$$anonymous$$ovieTexture.html, "When a video file is added to your Project, it will automatically be imported and converted to Ogg Theora format."
@tanoshimi I did hear that Personal and Pro have the same engine features-- so what are the main differences between the two now?
@$$anonymous$$umsan thanks for your answer! However, now I am getting an error when I import to Unity: Errors during the import of AudioClip FSBTool ERROR: The format of the source file is invalid, see output for details.
@haewonhang the same as it always has been - if your corporate revenue exceeds $100,000, you need Pro.
And what are the details shown in the output?
Answer by andrematui · Sep 11, 2015 at 04:51 PM
I use Unity Personal and this happens to me as well (with .mov, .avi and .mp4 files). When this error happens, try renaming the imported video in the Project tab. Unity will freeze for some time and afterwards the video will have been properly imported and can be used normally.
Answer by Lahmeck · Jun 23, 2016 at 02:14 PM
I had the same problem, usig Unity 5.3. After many different tries, I finally, and you may not believe me, drag the video files, even the MP4 one to "Materials" folder in Assets, and it worked. I have non Pro edition, and before I tried in a "Movies" folder, with no good result.
I find this crazy, you may try and see if it works.
Answer by Red_Dragon69 · Jun 01, 2016 at 01:37 PM
Hy, this may be an old post but i ran into the same issue and solved it as follows:
I closed Unity (Personal Edition) and installed the newest QuickTime.
IMPORTANT: Start Unity as administrator. If you don't do so, Unity can't launch the conversion tool. (The conversion tool is located under "Unity\Editor\Data\Tools\QuicktimeTools.exe")
Now it's possible to add the video to the project assets and Unity will convert it into the right format.
Please note, when playing the video via movie texture file, that the audio has to be started seperate.
Answer by arjunh · Nov 29, 2016 at 06:55 AM
for unity personal edition this works --first of all you have to install quicktime, then import the video. and u should restart the unity. Now u can play the video like a boss.