【问题标题】:iPhone 5 Video FormatiPhone 5 视频格式
【发布时间】:2012-10-08 12:58:58
【问题描述】:

我正在使用 MPMoviePlayerViewController(用于将在 iPhone 4 和 iPhone 5 上运行的应用程序),如下所示:

    NSURL *videoURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:videoFile ofType:videoType]];  
    MPMoviePlayerViewController *moviePlayerVC = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];  
    moviePlayerVC.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    [self presentViewController:moviePlayerVC animated:YES completion:nil];
    MPMoviePlayerController *moviePlayer = moviePlayerVC.moviePlayer;

    // Register to receive a notification when the movie has finished playing.  
    [[NSNotificationCenter defaultCenter] addObserver:self  
                                             selector:@selector(moviePlayBackDidFinish:)  
                                                 name:MPMoviePlayerPlaybackDidFinishNotification  
                                               object:moviePlayer];  
    [[NSNotificationCenter defaultCenter] addObserver:self 
                                             selector:@selector(moviePlayBackDidFinish:) 
                                                 name:MPMoviePlayerDidExitFullscreenNotification 
                                               object:moviePlayer];

    [moviePlayer prepareToPlay];
    [moviePlayer play];

但视频编辑人员需要知道要使用的视频大小(即同时满足 iPhone 4 和 iPhone 5 的需求)。

在此处查看 Apple 的文档:http://developer.apple.com/library/ios/ipad/#documentation/Miscellaneous/Conceptual/iPhoneOSTechOverview/MediaLayer/MediaLayer.html

在视频技术下它指出:

640 x 480 像素

那么,哪种视频尺寸最适合 iPhone 4 和 5。

例如,视频编辑器是否应该以 640 x 480 像素导出视频?

还是应该以 1136 x 640(即 iPhone 5 的屏幕尺寸)导出?

或者可能是 960 x 640 (iPhone 4)?

【问题讨论】:

    标签: iphone video


    【解决方案1】:

    正如您在 Apple 文档中所指出的,支持的最大分辨率为 640 x 480,因此以更高的分辨率导出视频不会有任何额外的优势。

    iOS 中的视频技术支持通过以下方式播放电影文件 .mov、.mp4、.m4v 和 .3gp 文件扩展名并使用 以下压缩标准:

    • H.264 视频,最高 1.5 Mbps,640 x 480 像素,每秒 30 帧, 具有 AAC-LC 音频的 H.264 基线配置文件的低复杂度版本 最高 160 Kbps、48 kHz、.m4v、.mp4 和 .mov 文件中的立体声音频 格式

    • H.264 视频,最高 768 Kbps,320 x 240 像素,每帧 30 帧 二、Baseline Profile 最高 1.3 级,AAC-LC 音频最高 160 Kbps、48 kHz、.m4v、.mp4 和 .mov 文件格式的立体声音频

    • MPEG-4 视频,最高 2.5 Mbps,640 x 480 像素,每秒 30 帧,简单 配置文件具有高达 160 Kbps、48 kHz、立体声音频的 AAC-LC 音频 .m4v、.mp4 和 .mov 文件格式

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-09
      • 2012-08-21
      相关资源
      最近更新 更多