多核theora编码 [英] Multi core theora encoding

查看:103
本文介绍了多核theora编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将上传的视频转换为MP4和OGV,但是在试图加快这一过程的过程中,我们遇到了麻烦.我们发现瓶颈是OGV编码,虽然将350mb AVI转换为MP4可能需要5分钟,但将同一文件转换为OGV大约需要25-30分钟.

We convert uploaded video to MP4 and OGV, but while trying to speed up the process we've hit a wall. We found the bottleneck is the OGV encoding, While it might take 5 minutes to convert a 350mb AVI to MP4, it takes roughly 25-30 minutes to convert the same file to OGV.

avconv支持多线程/多核,但libtheora似乎不支持,有人可以对多核进行编码吗?我发现了一个旧邮件组,其中讨论了一个补丁,但我找不到更多有关它的信息,或者即使它仍然可以使用5年.

avconv supports multithreading/multiple cores but it seems that libtheora doesn't, does anyone have any way of encoding over multiple cores? I found an old mail group which discussed a patch but I can't find much else about it, or if it even still works 5 years on.

所以.多核theora处理是否可能,我应该怎么做?

So. Is multi-core theora processing possible and what should I use to do it?

供参考:

avconv -y -i big_buck_bunny_720p_surround.avi -vcodec libtheora -qscale 10 -bufsize 20M -same_quant -acodec libvorbis -ac 2 -ar 44100 -ab 128k buck.ogv

推荐答案

libtheora的官方站点:

theora-multithread:旧的,不再开发的实验性编码器 基于旧编码器的库,针对SMP/多核进行了优化 系统: theora-multithread svn .有关更多信息,请参见所有线程 此处:多线程Theora编码器.

theora-multithread: old, no longer developed, experimental encoder library based on the old encoder, optimized for SMP/multi core systems: theora-multithread svn. For more info sees all the thread here: Multi-Thread Theora Encoder.

构建该版本,然后尝试使用它构建ffmpeg.如果没有使用较新版本的ffmpeg,请尝试使用较旧版本的代码.

Build that version, then try building ffmpeg using it. If newer versions of ffmpeg don't build with it, try older versions of the code.

还有 ffmpeg2theora 的多线程版本.

这篇关于多核theora编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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