You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is pretty weird, but for some reason I haven't seen my cpu usage ever go above 3-4% when using this library. Audio/Video encoding is easily one of the most computation intensive things one can do.
I reckon this has something to do with the atrocious performance. Perhaps there's something wrong with the build script? Can someone more experienced with the ndk chime in please?
As mentioned in another issue I checked out this other project and it seems to be easily 10-15x faster in comparison.
The text was updated successfully, but these errors were encountered:
Bad performance with low CPU usage will generally be caused by waiting for I/O, which means reading from or writing to disk.
For instance, if you are producing data faster than you are able to write to disk, then the write buffers will fill up, and the processing will stall until it can continue to write.
You will need to narrow down the cause of the slowdown before anything really can be done to debug it.
For instance, if you are transcoding, try writing to /dev/null and see if that goes faster. You should also try running the command directly through the terminal to determine if the problem is in the Android library, or the ffmpeg binary.
If you are reading or writing data over the network, that can cause considerable slowdowns.
Also, if your command is exceedingly verbose, for example, an output line for every processed frame, this will trigger log handling functionality in the java code, which may be another source of slowdowns.
I am having the same problem and i think is due to the resources the OS allow for the AsyncTask. While using libx264 it encodes at less then 0.1x speed of the actual input (on a OnePlus One with Sultan LineageOS custom rom). This is a problem...
This is pretty weird, but for some reason I haven't seen my cpu usage ever go above 3-4% when using this library. Audio/Video encoding is easily one of the most computation intensive things one can do.
I reckon this has something to do with the atrocious performance. Perhaps there's something wrong with the build script? Can someone more experienced with the ndk chime in please?
As mentioned in another issue I checked out this other project and it seems to be easily 10-15x faster in comparison.
The text was updated successfully, but these errors were encountered: