EasyPusher Huawei mobile phone hard coding [OMX.IMG.TOPAZ.Encoder] failed to set input port definition parameters.

As an RTSP push tool, EasyPusher has quickly won unanimous praise from the masses at the beginning of its release.

write picture description here

But some users also reported:

EasyPusher在我的华为手机上会闪崩!

I was skeptical at first:

不可能,你给我截个图看看!

As a result, the user took a small video, Nima, it really flashed back, embarrassing.
After getting the log later, I found some print information like this:

[OMX.IMG.TOPAZ.Encoder] failed to set input port definition parameters.

It seems that the encoder hangs up, debug it, and find that when the encoder is initialized, there is no abnormality at first, until the config function is called and hangs up. And it is this encoder, it seems that only Huawei mobile phones are used!

Modify the parameters one by one, and finally found that the colorformat is set to 19, the encoder does not support it, so it hangs up...
The key is that this encoder, in the supported colorformat, contains 19! Garbage...

Finally change the colorformat to 21, it is normal!

Later, I searched the Internet and found that this problem is not rare. For example:
http://bbs.csdn.net/topics/391991576

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325441766&siteId=291194637