osx - AVFoundation (AVPlayer) supported formats? No .vob or .mpg containers? -


To play random video in fullscreen, use the app player in a Mac app here, but when I want to play I am In vob files or .MPG files I get only one black screen that keeps running until the video plays.

Does AVFoundation do not support playback from these containers? I thought that since they were playable with the Stock Quicktime player, they would also work with AVPlayer.

static methods that you can ask for supported video UTI:

 < Code> + (NSArray *) audiovisual type  

At 10.9.1, this system defines UTI:

  • public.aifc-audio
  • Public. MPEG
  • Public. Public.aac-audio
  • public.mpeg-4
  • public.au-audio
  • public. Public.mp2
  • public.3gpp2
  • public.ac3-audio
  • public.mp3
  • < Public.mpeg-4-audio

    Here's the one. Public. Mpg2 - transport-stream

  • public.3gpp
  • public.mpeg-4-audio
  • Therefore it seems that at least .mpg container should be supported.

    , .mpg files can have MPEG-1 or MPEG-2 video, but only MPEG-2 video is supported. That's why this is probably the reason that the file loads but nothing appears.

    Quick time is used to play video in library formats (as mentioned), so you can look at it is also a way to decide whether any file modernization Required:

      + modernity: error:  

    Comments