What's the common modern standard for animated video overlays? (e.g. if you want to add an animated logo to video recorded from the camera)
动画视频叠加的常见现代标准是什么? (例如,如果您想为从相机录制的视频添加动画徽标)
During research, I've found the following options:
在研究期间,我发现了以下选项:
-
GIF - seems to be pretty outdated technology
GIF - 似乎是相当过时的技术
-
FLV - supports alpha-channel, but no longer supported by Adobe. Requires FFMPEG.
FLV - 支持alpha通道,但不再受Adobe支持。需要FFMPEG。
-
PNG sequence - the downside of this is having multiple files for each frame.
PNG序列 - 其缺点是每帧有多个文件。
What's the right format/technology to use?
什么是正确的格式/技术?
Ideally, what is natively supported on iOS (doesn't require FFMPEG)?
理想情况下,iOS上本机支持的内容(不需要FFMPEG)?
2 个解决方案
#1
1
If you want to overlay your custom video animation over video which user will be recorded I suggest to use GPUImage framework which allow a lot video/photo customization's and different graphic effects. For example how to mix two videos: nice article. Also I suggest you to read article about Chroma key which are something like standard of video/photo mixing. (because as I understand you just want make something like watermark?). GPUImage also has Chroma key filter which you can use in your purpose.
如果你想将自定义视频动画覆盖在用户将被录制的视频上,我建议使用GPUImage框架,它允许很多视频/照片自定义和不同的图形效果。例如,如何混合两个视频:好文章。另外,我建议你阅读有关色度键的文章,它类似于视频/照片混合的标准。 (因为根据我的理解,你只想制作像水印一样的东西?)。 GPUImage还具有色度键过滤器,您可以将其用于您的目的。
By default Apple supports h264 codec in mp4 container. So your video should be in this codec. Hope I fully answered on your question
默认情况下,Apple支持mp4容器中的h264编解码器。所以你的视频应该在这个编解码器中。希望我完全回答你的问题
#2
0
The best way to add overlays using the AVFoundation framework supplied by apple itself. Speaking about the other ways such as GIF, FLV, they are not supported natively by APPLE which puts you out of luck.
使用apple本身提供的AVFoundation框架添加叠加层的最佳方法。谈到其他方式,如GIF,FLV,它们本身并不受APPLE的支持,这会让你失去运气。
Apple suggests various tools such as AVVideoCompositionCoreAnimationTool that lets you stitch the Core Animations and the videos together.
Apple建议使用各种工具,例如AVVideoCompositionCoreAnimationTool,它可以将核心动画和视频拼接在一起。
Here is a link that explains how to add various effects such as Colored borders with custom sizes. Multiple overlays. Text for subtitles or captions. Tilt effects. Twinkle, rotate, and fade animation effects!
这是一个链接,解释如何添加各种效果,如自定义大小的彩色边框。多个叠加层。字幕或标题的文字。倾斜效果。闪烁,旋转和淡化动画效果!
I am not sure how much of this is application for the application that wanted to add animations while recording. May be some one else could help in it. I hope this helps you about the native way to add animations in recorded videos in iOS.
我不确定这个应用程序有多少是想要在录制时添加动画的应用程序。也许其他人可以帮助它。我希望这可以帮助您了解在iOS中录制的视频中添加动画的原生方式。
#1
1
If you want to overlay your custom video animation over video which user will be recorded I suggest to use GPUImage framework which allow a lot video/photo customization's and different graphic effects. For example how to mix two videos: nice article. Also I suggest you to read article about Chroma key which are something like standard of video/photo mixing. (because as I understand you just want make something like watermark?). GPUImage also has Chroma key filter which you can use in your purpose.
如果你想将自定义视频动画覆盖在用户将被录制的视频上,我建议使用GPUImage框架,它允许很多视频/照片自定义和不同的图形效果。例如,如何混合两个视频:好文章。另外,我建议你阅读有关色度键的文章,它类似于视频/照片混合的标准。 (因为根据我的理解,你只想制作像水印一样的东西?)。 GPUImage还具有色度键过滤器,您可以将其用于您的目的。
By default Apple supports h264 codec in mp4 container. So your video should be in this codec. Hope I fully answered on your question
默认情况下,Apple支持mp4容器中的h264编解码器。所以你的视频应该在这个编解码器中。希望我完全回答你的问题
#2
0
The best way to add overlays using the AVFoundation framework supplied by apple itself. Speaking about the other ways such as GIF, FLV, they are not supported natively by APPLE which puts you out of luck.
使用apple本身提供的AVFoundation框架添加叠加层的最佳方法。谈到其他方式,如GIF,FLV,它们本身并不受APPLE的支持,这会让你失去运气。
Apple suggests various tools such as AVVideoCompositionCoreAnimationTool that lets you stitch the Core Animations and the videos together.
Apple建议使用各种工具,例如AVVideoCompositionCoreAnimationTool,它可以将核心动画和视频拼接在一起。
Here is a link that explains how to add various effects such as Colored borders with custom sizes. Multiple overlays. Text for subtitles or captions. Tilt effects. Twinkle, rotate, and fade animation effects!
这是一个链接,解释如何添加各种效果,如自定义大小的彩色边框。多个叠加层。字幕或标题的文字。倾斜效果。闪烁,旋转和淡化动画效果!
I am not sure how much of this is application for the application that wanted to add animations while recording. May be some one else could help in it. I hope this helps you about the native way to add animations in recorded videos in iOS.
我不确定这个应用程序有多少是想要在录制时添加动画的应用程序。也许其他人可以帮助它。我希望这可以帮助您了解在iOS中录制的视频中添加动画的原生方式。