Search Unity

Error importing mp4 file

Discussion in 'Linux' started by iwillbenice, Jul 16, 2019.

  1. iwillbenice

    iwillbenice

    Joined:
    Jun 7, 2013
    Posts:
    22
    Hi,
    So I'm on Linux Mint 19.1 running Unity Editor 2019.1.8f1.
    When I try to import .mp4 file into project (Importer Version is set to VideoClip) I get the following 2 error messages:

    1 - Error while reading movie: PATH-TO-VIDEO-FILE
    2 - VideoClip import error for PATH-TO-VIDEO-FILE

    No more info is provided by the error messages.

    I suppose I should sudo apt install some dependencies, but I don't know which ones.
    Help
    Thanks
     
  2. wenderRondonia

    wenderRondonia

    Joined:
    Mar 15, 2015
    Posts:
    29
    also me, converting to ogv tegra imported fine, still looking for option to import mp4 file
    Unity 2019.1.10f1 Ubuntu
     
    PlayerSpirit5 and iwillbenice like this.
  3. iwillbenice

    iwillbenice

    Joined:
    Jun 7, 2013
    Posts:
    22
    Tnx, helped me.
    But still if someone know what is problem with MP4 I would like to hear.
     
  4. PlayerSpirit5

    PlayerSpirit5

    Joined:
    Mar 10, 2019
    Posts:
    1
    Thanks! Worked for me.
     
  5. KevinWelton

    KevinWelton

    Joined:
    Jul 26, 2018
    Posts:
    239
    At this time we don't support MP4 import on Linux. We'd like have a path forward at some point, but we're not there yet. H.264 / H.265 are patent-encumbered. With Mac and Windows this is less of an issue since the platforms themselves cover licensing. With Linux the story is murky since no distro does this.

    I like the idea of supporting 3rd party codecs at some point. We don't have the bandwidth right now, though.

    If you'd like to make your voice heard for better codec support, please log a bug or upvote an existing bug at the Issue Tracker.
     
    danruscoe likes this.
  6. nanpx

    nanpx

    Joined:
    Jan 21, 2022
    Posts:
    1
    Hello there! I had this same issue and resolved it installing 3rd party codecs for mp4 support.
    In Ubuntu-based distributions you should use:
    sudo apt-get install ubuntu-restricted-extras


    Hopefully this will solve your problem.
    Cheers!
     
  7. yumenghan1994

    yumenghan1994

    Joined:
    Oct 22, 2021
    Posts:
    3
    @nanpx i installed in ubuntu but not working

    After packaging the Android package under linux unity, the mp4 still cannot be played
     
    Last edited: Oct 28, 2022
  8. leedime

    leedime

    Joined:
    Jan 4, 2022
    Posts:
    1
    MP4 importing requires QuickTime to be installed on computer.