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.
![image](https://private-user-images.githubusercontent.com/4996054/368139631-e5c5ec72-4124-4d35-b0e3-4937a2703db5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTg2NDAsIm5iZiI6MTczODg5ODM0MCwicGF0aCI6Ii80OTk2MDU0LzM2ODEzOTYzMS1lNWM1ZWM3Mi00MTI0LTRkMzUtYjBlMy00OTM3YTI3MDNkYjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMDMxOTAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTQyMjFmYjliMjYxMTBhOWI2NWFhNTJjYmFlZGJmMTMxZmU2ZWJjNDk0MGVkMzlhOGFkYmZjMDM5MzdkNWRjNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.AlBqL7Wwq5ZHPLgJ0BkQrR_siP8UQBSIakXYeGCFrFQ)
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:
![image](https://private-user-images.githubusercontent.com/4996054/368140744-eddb20b7-8714-477f-8cf9-595b7152477f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTg2NDAsIm5iZiI6MTczODg5ODM0MCwicGF0aCI6Ii80OTk2MDU0LzM2ODE0MDc0NC1lZGRiMjBiNy04NzE0LTQ3N2YtOGNmOS01OTViNzE1MjQ3N2YucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMDMxOTAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWJiMDkzMjE4ZGUzN2I0ODMxMzM2YTI5ZGQzMGFhN2Y4NTgxYzkxMmIyMDgzZWZjODQ3MDJiMzg2ZDM5OGY5ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.cYJTEefqp50cYvYGb6nS_W9wlddxwHIbkiQrRn5pvNM)
And the logs from my app:
![image](https://private-user-images.githubusercontent.com/4996054/368144595-7041c8a7-962f-466f-b62e-6621a3556486.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4OTg2NDAsIm5iZiI6MTczODg5ODM0MCwicGF0aCI6Ii80OTk2MDU0LzM2ODE0NDU5NS03MDQxYzhhNy05NjJmLTQ2NmYtYjYyZS02NjIxYTM1NTY0ODYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMDMxOTAwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Nzc4ZGY2ZTA3ZjA2Y2M1MjIwYWU5OWI3YmJjMDFiMTc5NWM3MjFjNWFlZmZmNTQ3YWJhZDU3MzdlZWYyM2VjZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.TkCZqIFX_w6Dcjzooz0GIlGq0KVNziF0uoBK4dkiz8k)
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