Same ffmpeg command is running slower on my android project than on ffmpeg-kit-android-test
project
#1043
Unanswered
daniela-mateescu
asked this question in
Q&A
Replies: 1 comment 2 replies
-
It is hard to say why that happens without seeing full console outputs. If you can share those then can compare them and identify the difference. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have modified the
ffmpeg-kit-android-test
project to execute a more simple command, when pressing theencode button
:-loop 1 -i /data/user/0/com.arthenica.ffmpegkit.test/cache/input.jpg -c:v mpeg4 -t 5 -pix_fmt yuv420p -vf "scale=1280:720" -r 30 /storage/emulated/0/DCIM/video.mp4
I am executing the same command from another project:
-loop 1 -i /data/user/0/com.example.mytestapplication/cache/input.jpg -c:v mpeg4 -t 5 -pix_fmt yuv420p -vf "scale=1280:720" -r 30 /storage/emulated/0/DCIM/scenario.mp4
I am using the same image from the disk by copying it to the images from cache.
The problem is that im my app the processing is taking longer than in the official ffmpeg test app(about 30 seconds compared to 10 seconds )
The logs from the test app looks like this:
And the logs from my app:
I am using the same version of the library.
I checked to see if the code looks similar for both and it does.
Can somebody help with this problem please?
Beta Was this translation helpful? Give feedback.
All reactions