Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Video Issues with mp4 encoding in VideoPlayer on OSX builds

Discussion in 'Audio & Video' started by gschomburg, May 25, 2017.

  1. gschomburg

    gschomburg

    Joined:
    May 25, 2017
    Posts:
    1
    Has anyone had any luck playing videos (mp4) using the VideoPlayer component on Mac OSX?
    I'm trying to load videos from StreamingAssets everything looks fine in the editor and in Windows the build works fine, however all my Mac builds fail to play the video. I'm pretty sure it's some sort of encoding issue, I've done a bunch of different encoding tests, but so far none of them have been able to play in Mac builds,
    Has anyone got this working, what encoding settings did you use? I'm using 5.6.1f1
     
  2. Maverick

    Maverick

    Joined:
    Dec 18, 2009
    Posts:
    225
    We have even bigger problem. Video is playing just fine in editor, but when build using "Cloud Build" service the same video is no more and in logs we have:

    We also have similar problems with some windows machines.
     
  3. MaestroMMT

    MaestroMMT

    Joined:
    May 31, 2015
    Posts:
    26
    Same issue here, since 5.6, video don't working on OSX. ( I am not using videoplayer ).I have the sound but not images.
     
  4. _Audrius

    _Audrius

    QA Minion Unity Technologies

    Joined:
    Jul 9, 2014
    Posts:
    4
    Please, submit bug report for this issue and post case number here.
     
  5. Gloriaivy

    Gloriaivy

    Joined:
    May 19, 2017
    Posts:
    2
    Here are Mac supported video formats/codec and audio formats/codec:
    Mac supported video file formats: QuickTime Movie (.mov), MPEG-4 (.mp4, .m4v), MPEG-2 (OSX 10.0-10.6 are exclusive), MPEG-1, 3GPP, 3GPP2, AVCHD (OSX 10.0-10.7 are exclusive), AVI ((Motion JPEG only), DV;

    * Mac supported video codecs: MPEG-2, MPEG-4, H.264, H.263 H.261, Apple ProRes, Apple Pixlet, Animation, Cinepak, Component Video, DV, DVC Pro 50, Graphics, Motion JPEG, Photo JPEG, Sorenson Video 2, Sorenson Video 3, H.263, H.261, Apple ProRes, Apple Pixlet, Animation, Cinepak, Component Video, DV, DVC Pro 50, Graphics, Motion JPEG, Photo JPEG, Sorenson Video 2, Sorenson Video 3

    * Mac supported audio file formats: M4A, m4b, .m4p (all are iTunes audio), MP3, Core Audio (.caf), AIFF, AU, SD2, WAV, SND, AMR

    * Mac supported audio codecs: AAC, HE-AAC, Apple Lossless,MP3, AMR Narrowband, MS ADPCM, QDesign Music 2, Qualcomm PureVoice (QCELP), IMA 4:1, MACE 3:1 (Mac OS X 10.6.x only), MACE 6:1 (Mac OS X 10.6.x only), ALaw 2:1, ULaw 2:1, Integer (24-bit, 32-bit), Floating Point (32-Bit,64-Bit)