平滑流媒体编码... 10小时编码7分钟MP4视频? [英] Smooth Streaming encoding... 10 hours to encode 7 minute MP4 video?
问题描述
使用Expression Encoder 4 Pro SP1(无编解码器)进行测试 - 来自DreamSpark。
Testing using Expression Encoder 4 Pro SP1 (without codecs) - from DreamSpark.
我正在编码一段7分钟的视频 - 大约需要10个小时。
I'm encoding a 7 minute video - its taking approx 10 hours.
源视频: 42.9MB,7分23秒。 这是MP4(h264),640x480 @ 29.97 fps,立体声音频。 比特率= 806kbps,音频128kbps& 44kHz采样率。 (顺便使用ffmpeg进行编码)
The source video: 42.9MB, 7 minutes 23 seconds. It's a MP4 (h264) at 640x480 @ 29.97 fps, stereo audio. bitrate = 806kbps, audio 128kbps & 44kHz sample rate. (Encoded using ffmpeg, incidentally)
安装了最新的QuickTime .. * grumble * .. (我必须,没有它,Expression不会加载我的文件)
The latest QuickTime is installed ..*grumble*.. (I had to, Expression wouldn't load my file without it)
编码设置是快速预设的"VC-1 IIS Smooth Streaming - SD 480p VBR"。 - 没有变化。 编码过程为2遍,每次通过大约需要4-6个小时。 顺便说一下,改变来自"自动"的线程。到"8"没有区别。
The encoding settings are the quick preset "VC-1 IIS Smooth Streaming - SD 480p VBR" - no changes. The encoding process is 2-pass, each pass taking about 4-6 hours. Incidentally, changing threads from "Auto" to "8" makes no difference.
我在i7 720(8核)上运行Windows 7家庭高级版64位,有6台内存。 CPU使用率约为13-25%。
I'm running Windows 7 Home Premium 64 bit on an i7 720 (8 cores) with 6 gigs of ram. CPU Usage sits around 13-25%.
我没有适合任何GPU加速的视频卡。
I have no suitable video card for any GPU acceleration.
硬盘使用绝对不是瓶颈 我坐着观看资源监视器1-2分钟,同时有零磁盘使用,然后将几百KB的内容一次写入8个.ismv文件(顺便说一句,"系统"进程不是Encoder.exe)。
然后是零,然后是冲刺等等。
Hard drive usage is definitely not a bottleneck. I sat watching resource monitor for 1-2 minutes while there was ZERO disk usage, then presto a few hundred KB was written to 8 .ismv files all at once (by "System" process not Encoder.exe, incidentally). Then zero, then a spurt, etc.
我有3GB未使用(待机)内存。 Encoder.exe的Commit = 587,900KB,工作集= 463,664KB,私有= 391,204KB。 0硬故障/秒。 Encoder.exe作为一个32位应用程序运行。
I have 3GB unused (Standby) memory. Encoder.exe's Commit = 587,900KB, Working set = 463,664KB, Private = 391,204KB. 0 Hard faults/sec. Encoder.exe is running as a 32 bit app.
我还有其他几个类似的mp4,它们都需要花费很多时间来编码。
I have several other similar mp4's that all take many hours to encode.
我也有一些测试WMV的编码速度更快。 我可以在大约5分钟内编码5分钟WMV(800x600 @ 29.97)。
I also have some test WMV's which encode MUCH MUCH faster. I can encode a 5 minute WMV (800x600 @ 29.97) in about 5 minutes.
...
所以...... ....这真的很正常吗? 我是否在使用MP4文件时出错? QuickTime是问题吗? 我该怎么办?
So......... is this really normal? Am I doing something wrong with MP4 files? Is QuickTime the problem? What should I do?
推荐答案
从您所描述的内容来看,它确实看起来像源代码问题,在本例中是QT,这是非常慢的,特别是如果源文件不在本地驱动器上。你应该可以在Win7上解码MP4 / H.264而不需要麻烦,而不需要
的QT。我会尝试在&Options>工具 - >兼容性对话框中禁用所有非Microsoft编解码器。
From what you're describing, it sure looks like a source codec problem, in this case QT, which is notoriously slow, especially if the source file isn't on a local drive. You should be able to decode a MP4/H.264 with no trouble on Win7 without the need of QT. I would try to disable all non-Microsoft codecs in the Options->Tools->Compatibility dialog.
如果这不起作用(它应该自Win7附带 MP4 /H.264编解码器),我建议你尝试使用体面的第三方H.264解码器和MP4解复用器。我知道ffDshow在编码器方面效果不好,所以我不会用它。但我认为
Divx套装有一个不错的选择,当然还有其他选择,如MainConcept,CoreAVC等。
If that doesn't work (it should since Win7 comes with MP4/H.264 codecs), I would suggest you try to use a decent 3rd party H.264 decoder and MP4 demuxer. I know ffDshow doesn't work really well with Encoder, so I would not use that. But I think the Divx package comes with a decent one, and of course there are other choices like MainConcept, CoreAVC, etc.
根据我的体验测试Pro版本,对于像你这样的案例你应该期望的性能应该与WMV源非常相似(关于i7-920上的实时编码)。至少,这就是我从Main Concept MP4和我们附带的
H.264解码器中获得的。
From my experience testing the Pro version, the performance you should expect for a case like yours should be very similar to the WMV source (about real-time encoding on a i7-920). At the least, that's what I'm getting from the Main Concept MP4 and H.264 decoders which we ship with.
最后,我还建议阅读一篇博客文章我最近写了一篇文章,试图解释在使用Expression Encoder进行编码时如何使用系统资源。你可以在这里找到它:
http://blogs.msdn.com/b/expressionencoder/archive/2011/10/03/10219213.aspx
Finally, I would also suggest reading a blog entry I recently wrote to try to explain how the system resources are used while encoding with Expression Encoder. You can find it here: http://blogs.msdn.com/b/expressionencoder/archive/2011/10/03/10219213.aspx
这篇关于平滑流媒体编码... 10小时编码7分钟MP4视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!