Hi guys
Trying to do some parallel decoding encoding and thought I'd see what you guys thought was the best approach
Should I initiate Multiple Encoders/Decoders and then call each one in some form of queue or can one initiiation of encoder/decoder support multiple calls?
Or maybe threading is the best way to tackle such a problem, im not familiar with it in case im completely incorrect but if I'm could someone please give a brief overview on how to call it with ipp's encoders/decoders or point me to a document I can read
Thanks any help would be appreciated
Trying to do some parallel decoding encoding and thought I'd see what you guys thought was the best approach
Should I initiate Multiple Encoders/Decoders and then call each one in some form of queue or can one initiiation of encoder/decoder support multiple calls?
Or maybe threading is the best way to tackle such a problem, im not familiar with it in case im completely incorrect but if I'm could someone please give a brief overview on how to call it with ipp's encoders/decoders or point me to a document I can read
Thanks any help would be appreciated
連結已複製
4 回應
Hello,
I am not sure I have fully understood yourquestion:
do you mean if it needs to encode/decode different video streams at the same time? If so, it need to create Multiple Encoders/Decoders UMC instance. Each instance will handle one stream.
The internal threading with UMC encoder/decoder will make the code more fast to handle one video stream. For example, for encoder, it will divide each the video frame into small slices, and handle these slice data in parallel.
Thanks,
Chao
Ok. Implemented multiple encoders/decoders. However i've noticed max CPU usage when I use more than one encoder and decoder?
I've attached the code. Im transcoding data from two mobile phones. WIth the video data first being transcoded before its sent to the other phone. If I run the simulation in one direction the CPU usage is small literally 4% but as soon as I try to simulate in both directions thus using two encoders and 2 decoders the CPU max's out.
Im running on a Intel Atom 330 @ 1.6GHz and 4GB Ram
Surely with the image of size QCIF the CPU shouldn't be fully utilized?
I've attached the code. Im transcoding data from two mobile phones. WIth the video data first being transcoded before its sent to the other phone. If I run the simulation in one direction the CPU usage is small literally 4% but as soon as I try to simulate in both directions thus using two encoders and 2 decoders the CPU max's out.
Im running on a Intel Atom 330 @ 1.6GHz and 4GB Ram
Surely with the image of size QCIF the CPU shouldn't be fully utilized?