EE4 SDK,最稳定的方式来运行实时作业? [英] EE4 SDK, most stable way to run live jobs?

查看:61
本文介绍了EE4 SDK,最稳定的方式来运行实时作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




 


我们有一个小应用程序可以对文件进行实时编码。所以我们设置了这个工作,包括预设,来源等。然后在退出
程序之前可以多次启动和停止。每次我们想要开始和停止我们只需要打电话;



job.StartEncoding();



然后;



< span style ="font-family:Consolas"> job.StopEncoding();



 


< p style ="margin:0cm 0cm 0pt"> 问题是我们应该处理的稳定性/可靠性每次编码后的作业,然后再次重新运行作业设置? (会有什么不同吗?)



目前我们保持相同的工作直到程序退出,然后我们打电话;



< p style ="margin:0cm 0cm 0pt"> job.Dispose();



 


另外,有没有办法在实时编码中捕获错误并自动重启过程?



 


< span style ="font-family:Consolas">最后是EE4 SP2? ☺



 


提前致谢。


解决方案

你好,


如果你想要最稳定的情况我建议在自己的进程中启动每个编码工作。对于大多数事情来说,这是过度杀伤,但这将确保绝对清洁。这真的取决于你是否有任何问题。由于
用于检查errros,是的,livejob有一个状态回调,您可以监视编码错误。实时样本使用回调但不检查错误。


问候


-Matt


Hi,

 

We have a little app that encodes live to a file. So we setup the job, with presets, the source, etc. Then when may start and stop multiple times before we exit the program. Each time we want to start and stop we just call;

job.StartEncoding();

And then;

job.StopEncoding();

 

Question is for stability/reliability should we dispose of a job after each encode, then re-run the job setup the again? (would that make any difference?)

At the moment we keep the same job going till program exit, then we call;

job.Dispose();

 

Also, is there a way to catch an error in a live encode and automatically restart the process?

 

Lastly EE4 SP2? ☺

 

Thanks in advance.

解决方案

Hello,

If you want the most stable situation the I would suggest launching each encoding job in its own process. For most things this is overkill, but that would make certain of being absolutely clean. It really depends on if you are having any issues or not. As for checking for errros, yes, livejob has a status callback which you can monitor for encoding errors. The live sample uses the callback though it doesn't check for errors.

Regards

-Matt


这篇关于EE4 SDK,最稳定的方式来运行实时作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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