Comments (6)
@a914-gowtham I uploaded in my bucket and it does not play via link only audio comes. After debugging I found to play a video over Chrome or Mozilla it needs to have an x264 encoder, so I downloaded the library and changed the FFmpeg version to GPL, and added x264 encoder to the execution code now it's working. if u want i can share the code
from android-video-trimmer.
Same Issue Here
from android-video-trimmer.
@rahat14 did you upload the video file to server and used the url in the browser? or else could u share the reproduction steps?
from android-video-trimmer.
yes @rahat14 . that would be great
from android-video-trimmer.
I followed details given by @rahat14 , below is the code changes,
in library build gradle file change implementation 'com.arthenica:mobile-ffmpeg-min:4.4.LTS'
to implementation 'com.arthenica:mobile-ffmpeg-min-gpl:4.4.LTS'
In ActVideoTrimmer class file, search for "mpeg4"
and replace it with "h264"
.
That's it, hope it helps somebody
Thanks @rahat14, @a914-gowtham
from android-video-trimmer.
@rahat14 @praveenb can you help me.
when I am using this
implementation 'com.arthenica:mobile-ffmpeg-min-gpl:4.4.LTS.
my app is crashing on videotrimmer activity (ActVideoTrimmer ).
java.lang.Error: FFmpegKit failed to start on brand: Redmi, model: 21061119AG, device: selene, api level: 33, abis: arm64-v8a armeabi-v7a armeabi, 32bit abis: armeabi-v7a armeabi, 64bit abis: arm64-v8a.
at com.arthenica.ffmpegkit.NativeLoader.loadLibrary(NativeLoader.java:50)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKitAbiDetect(NativeLoader.java:130)
at com.arthenica.ffmpegkit.AbiDetect.(AbiDetect.java:30)
at com.arthenica.ffmpegkit.NativeLoader.loadNativeAbi(NativeLoader.java:65)
at com.arthenica.ffmpegkit.NativeLoader.loadFFmpegKit(NativeLoader.java:173)
at com.arthenica.ffmpegkit.FFmpegKitConfig.(FFmpegKitConfig.java:145)
at com.arthenica.ffmpegkit.FFmpegSession.create(FFmpegSession.java:68)
at com.arthenica.ffmpegkit.FFmpegKit.executeWithArgumentsAsync(FFmpegKit.java:78)
at com.gowtham.library.ui.ActVideoTrimmer.execFFmpegBinary(ActVideoTrimmer.java:610)
at com.gowtham.library.ui.ActVideoTrimmer.trimVideo(ActVideoTrimmer.java:540)
at com.gowtham.library.ui.ActVideoTrimmer.onOptionsItemSelected(ActVideoTrimmer.java:509)
at android.app.Activity.onMenuItemSelected(Activity.java:4555)
at androidx.fragment.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:352)
at androidx.appcompat.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:264)
at androidx.appcompat.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:109)
at androidx.appcompat.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:66)
at androidx.appcompat.widget.Toolbar$1.onMenuItemClick(Toolbar.java:221)
at androidx.appcompat.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:781)
at androidx.appcompat.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:834)
at androidx.appcompat.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:158)
at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:985)
at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:975)
at androidx.appcompat.widget.ActionMenuView.invokeItem(ActionMenuView.java:625)
at androidx.appcompat.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:151)
at android.view.View.performClick(View.java:7575)
at android.view.View.performClickInternal(View.java:7548)
at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0)
at android.view.View$PerformClick.run(View.java:29848)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.app.ActivityThread.main(ActivityThread.java:8294)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: library "libffmpegkit_abidetect.so" not found
at java.lang.Runtime.loadLibrary0(Runtime.java:1082)
at java.lang.Runtime.loadLibrary0(Runtime.java:1003)
at java.lang.System.loadLibrary(System.java:1661)
from android-video-trimmer.
Related Issues (20)
- import com.gowtham.library.utils.TrimVideo HOT 1
- Show message "Storage permission denied" on android 13 and 14 HOT 4
- Not support permission "android.permission.READ_MEDIA_VISUAL_USER_SELECTED" on android 14 HOT 2
- Question about set timer HOT 2
- Compression after trimming mp4 HOT 1
- Trimmer but for Audio? HOT 1
- Class not found when unmarshalling: com.gowtham.library.utils.TrimVideoOptions HOT 4
- Cant create thumbnails from the trimmed videos HOT 8
- MIT License with FFMpeg - Violation? HOT 1
- Crash on all android version HOT 2
- Fatal Exception: java.lang.IllegalArgumentException HOT 1
- HOW TO USE THIS LIB WITHOUT PICKING VIDEO FROM GALLERY HOT 2
- I am suresh, while I taken video from internalstorage video and start to edit but getting crash.please help me HOT 9
- Minor issue, facing error if video file name contains '?' or '#' HOT 1
- How do we set the output destination?
- android 13 cant trim video permission denied.WRITE_EXTERNAL_SORAGE -> READ_EXTERNAL_VIDEO HOT 7
- allow setDestination to Cache directory HOT 2
- protocol not found. "failed to trim" HOT 5
- minify enabled app crashes HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-video-trimmer.