tanersener / mobile-ffmpeg

FFmpeg for Android, iOS and tvOS. Not maintained anymore. Superseded by FFmpegKit.
https://tanersener.github.io/mobile-ffmpeg
GNU General Public License v3.0
3.85k stars 787 forks source link

libx264 for option vcodec not found even using 'full-gpl' #665

Closed Duna closed 3 years ago

Duna commented 3 years ago

Description I have downloaded the sample application with package id: com.arthenica.mobileffmpeg.test and I modified the gradle file accordingly to the Readme to have libx264 vcodec included: implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.4' or implementation 'com.arthenica:mobile-ffmpeg-full-gpl:4.4.LTS'

Expected behavior When I execute the command -version the codec libx264 should be present in the lib Command used: -i /storage/emulated/0/DCIM/Camera/20210125_193031.mp4 -vcodec libx264 -c:a copy /storage/emulated/0/DCIM/Camera/file.mp4

Current behavior libx264 is missing

Screenshots file

Logs Parsing a group of options: output url /data/user/0/com.arthenica.mobileffmpeg.test/files/video.mp4. Applying option map (set input stream mapping) with argument [video]. Applying option c:v (codec name) with argument libx264. Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30. Successfully parsed a group of options. Opening an output file: /data/user/0/com.arthenica.mobileffmpeg.test/files/video.mp4. Unknown encoder 'libx264'

Environment

Other Add any other context about the problem here.

Duna commented 3 years ago

-i /storage/emulated/0/DCIM/Camera/20210125_193031.mp4 -vcodec libx264 -c:a copy /storage/emulated/0/DCIM/Camera/file.mp4 - command used

tanersener commented 3 years ago

Your screenshot and your logs don't match. If you're running the test app, I suggest testing x264 encoding from the video tab. It will tell you whether x264 is there or not.

Duna commented 3 years ago

Is there a mapping from linux based ffmpeg command line and this library? it seems when I execute the command line -i /storage/emulated/0/DCIM/Camera/20210125_193031.mp4 -c:v libx264 -c:a copy /storage/emulated/0/DCIM/Camera/file.mp4in the sample app it trows me the error: Failed to set value 'libx264' for option 'c:v': Option not found

tanersener commented 3 years ago

This project uses the same source code as the linux ffmpeg. It's not the issue here.

Moreover, I tested your command and didn't get an error. I don't know how you set your command, it might be an issue about it.

Duna commented 3 years ago

I just paste it in the sample project in the first fragment

On Wed., Jan. 27, 2021, 20:21 Taner Şener, notifications@github.com wrote:

This project uses the same source code as the linux ffmpeg. It's not the issue here.

Moreover, I tested your command and didn't get an error. I don't know how you set your command, it might be an issue about it.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/tanersener/mobile-ffmpeg/issues/665#issuecomment-768479769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA473QXKO277RCZUUSAOQZ3S4BKTFANCNFSM4WVJDZOQ .

Duna commented 3 years ago

here it is the screenshot

tanersener commented 3 years ago

Do you paste the command into the text box on the fragment when your emulator is running?

Duna commented 3 years ago

Nevermind, I succeeded :)

lexluthors commented 3 years ago

Nevermind, I succeeded :)

I also encountered the same problem, how did you solve it?