Best video preparation for unity.

I'm having major issues with the sound on my GUI movie textures. Really inconsistent results...

Doesn't unity have a preferred format for movies that you import? A preferred codec? I'm currently using MOVs with h264. cheers

I too have had these problems. My solution: avoid unity's native importer/converter at all costs for video work. It breaks with big files and gives you inconsistent results.


Workflow to fix audio sync problems, but might have loss of video quality


Export to Mpeg2 format with the following settings:

Pixel ratio: square

Field: lower or upper

width and height adjusted to compensate for square pixels.

download ffmpeg2theora http://v2v.cc/~j/ffmpeg2theora/

on the terminal type (mac version):

cd path/to/file

ffmpeg2theora myfilename.mpg

Drag n drop new .ogv file to your unity assets folder. Done!


Work flow for top video quality, but likely will have audio sync issues.


Same as above accept instead export to H264 or Quicktime Animation (if your video is not progressive)

Use ffmpeg2theora to convert .mov to .ogv

Moral of story: always use ffmpeg2theora for your videos, especially if they are large video files.

Hope this helps!

-P

According to the manual, Unity will automatically converts movies into Ogg Theora videos so your movie format does not change the end result much.

What I would do and others do, is import the highest quality you can, then use the quality slider to create an acceptable compromise between quality and performance. That way if you need a very high quality, you have it, and everywhere else, you can make a duplicate with increased performance where you need it. This is very similar to the max texture settings when importing tex 2D.

One other way to increase quality would be to turn filtering to trilinear.

I’ve used .H264 in a .MOV file with some success.

I find it important to set the audio to uncompressed, otherwise things can break!

It definitely matters what file format it starts as. I’m using Unity 3.5

I’ve used .H264 in a .MOV file with some success.

I find it important to set the audio to uncompressed, otherwise things can break!

It definitely matters what file format it starts as. I’m using Unity 3.5

I use Handbrake 0.9.6 “universal” device profile and then manually remove extra audios. Then create a new profile:

cabac=0:ref=2:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subq=6

Works great - video is good on both iPad and Android! :slight_smile:

you can use Avdshare Video Converter to Convert any MOD to MP4, to AVI, FLV, MKV, MOV, MPG, MTS, etc for playing MOD on or editing MOD in or uploading MOD to any device, media player, editing program or social website.MOD to WMV Converter – Avdshare