Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问,录制视频怎么指定固定宽高呀 —— 2.6.0版本支持导出指定尺寸视频 #166

Closed
CHENDONGY opened this issue Dec 14, 2017 · 12 comments

Comments

@CHENDONGY
Copy link

CHENDONGY commented Dec 14, 2017

需求ios和安卓宽高统一,请问这个怎么配置

@longitachi
Copy link
Owner

longitachi commented Dec 14, 2017

typedef NS_ENUM(NSUInteger, ZLCaptureSessionPreset) {
    ZLCaptureSessionPreset325x288,
    ZLCaptureSessionPreset640x480,
    ZLCaptureSessionPreset1280x720,
    ZLCaptureSessionPreset1920x1080,
    ZLCaptureSessionPreset3840x2160,
};

这个是支持的视频大小,宽高需要注意横竖屏录制,例如1920 * 1080 竖屏录制则为1080 * 1920 横屏则为1920 * 1080

@CHENDONGY
Copy link
Author

typedef NS_ENUM(NSUInteger, ZLCaptureSessionPreset) {
    ZLCaptureSessionPreset325x288,
    ZLCaptureSessionPreset640x480,
    ZLCaptureSessionPreset1280x720,
    ZLCaptureSessionPreset1920x1080,
    ZLCaptureSessionPreset3840x2160,
};

这个是设置拍摄清晰度的吗? 我想录制视频长宽为 480 x 480 大小的视频,如果这种需求现在项目似乎不支持。想要达到这种需求需要怎么进行修改

@CHENDONGY
Copy link
Author

现在需求就是需要视频宽高相等,设置ZLCaptureSessionPreset现在是满足不了要求的。有什么好的建议吗

@longitachi
Copy link
Owner

拍摄暂时应该是不可设置的,你可以百度下视频压缩大小看能否实现

@CHENDONGY
Copy link
Author

CHENDONGY commented Dec 15, 2017

找到一个自定义宽高的项目
https://github.com/LingLemon/XFAVFoundation

如果可以的话下个版本能不能增加这个功能呢

@longitachi
Copy link
Owner

我先看下这个项目

@CHENDONGY
Copy link
Author

好的,如果能够支持自定义就更好了

@CHENDONGY
Copy link
Author

能支持这个功能吗

@longitachi
Copy link
Owner

我大概看了下,他这个录制的方法,跟我的差别太大了。 我在看其他保存时候时候的裁剪方法。下午测试下回复你

@longitachi
Copy link
Owner

你好,拍摄时候就不做这个指定宽高的功能了,下个版本会提供一个导出视频时候导出指定宽高的api。

@CHENDONGY
Copy link
Author

好的,谢谢

@longitachi
Copy link
Owner

2.6.0版本支持导出指定尺寸视频

@longitachi longitachi changed the title 请问,录制视频怎么指定固定宽高呀 请问,录制视频怎么指定固定宽高呀 —— 2.6.0版本支持导出指定尺寸视频 Dec 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants