Search Unity

Video Unity compress video to bad quality

Discussion in 'Audio & Video' started by Gosciu, Jan 6, 2019.

  1. Gosciu

    Gosciu

    Joined:
    Jan 2, 2016
    Posts:
    1
    Hi

    I have a little problem with importing short video to the Unity. I try to play my video with VideoPlayer Component, but I always get S***ty quality. Unity always converts my videos to OGV. In the same time, I have to set codec version to vp8 so it will work on all machines (with other codes we had issues of build crashing because of lack of codec). You can check out my import settings on the picture:

    Does anybody have any idea how I should approach this problem?
    (Unity version 2018.1.9f2)

    Best regards
    Mateusz
     
    Selzier likes this.
  2. Selzier

    Selzier

    Joined:
    Sep 23, 2014
    Posts:
    611
    I got better quality by exporting to WebM format, but there are still compression artifacts and we need a solution from Unity on this one.
     
  3. HZ51

    HZ51

    Joined:
    Jul 28, 2016
    Posts:
    40
    The same problem here. I get very poor webm quality.
     
  4. indieDoroid

    indieDoroid

    Joined:
    Jan 25, 2016
    Posts:
    186
    Same here .. suddenly playback has a ton of artifacts.. it starts off ok, but after 2 seconds the quality drops significantly.
     
  5. indieDoroid

    indieDoroid

    Joined:
    Jan 25, 2016
    Posts:
    186
    Found a fix... for the second time.

    Unity really needs to address their video player problems.

    My solution was:

    1) Download the latest codecs. (I used the KLite codec pack)
    2) Re-Encode the video as MP4 with H.264. (I used Handbrake)
    3) Brought those back into Unity and its ok now.

    Hope it helps.