iphone sdk> 3.0。视频缩略图? [英] iphone sdk > 3.0 . Video Thumbnail?

查看:73
本文介绍了iphone sdk> 3.0。视频缩略图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从我读过的内容中,苹果并未公开api,以允许开发人员使用当前的sdk获取电影的缩略图。

From what i have read apple doesnt expose the api to allow developers to get a thumbnail of a movie using the current sdk.

任何人都可以分享一些关于他们如何处理的代码吗?
我听说你可以访问相机选择器视图,并在ui图像选择器关闭之前找到图像视图。这看起来有点难看。

Can any one share some code as to how they are going about this? I have heard you can access the camera picker view and find the image view just before the ui image picker is closed. This seems kinda ugly.

我还考虑过使用ffmpeg从电影中抓取一个帧,但不知道如何编译它作为iPhone的库。任何指针都将非常感激

Also ive considered using ffmpeg to grab a frame out of the movie but wouldnt hava a clue as to how to compile it as a library for the iphone. Any pointers would be greatly appreciated

推荐答案

在与缩略图的电影相同的文件夹中有一个jpg。我只用手机录制的视频测试了它,但它运行正常。它的名字与电影的名称不同,因此请获取电影所在的目录路径并迭代.jpg并离开。

There is a jpg in the same folder as the the movie that is the thumbnail. I have only tested it with video recorded from the phone, but it works fine. Its not named the same as the movie, so get the directory path the movie is in and iterate for a .jpg and away you go.

这篇关于iphone sdk> 3.0。视频缩略图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆