Git Product home page Git Product logo

k4l-video-trimmer's People

Contributors

dogo avatar wesjon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

k4l-video-trimmer's Issues

Custom setMaxDuration not worked properly.

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 7.0.0
  • Devide Manufacturer: Motorola
  • Device Name: G5 Plus
Reproduction Steps

I implement one application in which I used this trimmer. When we apply custom duration of setMaxDuartion e.g 30 sec(30000 millisecond) Resulted video is not exatly 30 sec. It has random duration like 32,35 or 40 second.

Expected Result

It must be same that we give custom duration

Actual Result

Random duration near by given duration

Tell us what could be improved:

When try trim video from other sources like whatsapp video it's not working

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 8
  • Devide Manufacturer: Smasung
  • Device Name: S8
Reproduction Steps
  1. Select video from whatsapp directory its crashing the app
Expected Result
Actual Result

Tell us what could be improved:

Working fine as independent But NullPointerException on save click

unable to understand the issue as it working as independent sample/test app but when adding to my existing project generate error by clicking on save button.

java.lang.NullPointerException: Attempt to invoke virtual method 'void java.io.InputStream.close()' on a null object reference
at com.coremedia.iso.PropertyBoxParserImpl.(PropertyBoxParserImpl.java:67)
at com.coremedia.iso.IsoFile.(IsoFile.java:59)
at com.googlecode.mp4parser.authoring.container.mp4.MovieCreator.build(MovieCreator.java:49)
at life.knowledge4.videotrimmer.utils.TrimVideoUtils.genVideoUsingMp4Parser(TrimVideoUtils.java:71)
at life.knowledge4.videotrimmer.utils.TrimVideoUtils.startTrim(TrimVideoUtils.java:65)
at life.knowledge4.videotrimmer.K4LVideoTrimmer$11.execute(K4LVideoTrimmer.java:293)
at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

No such method in your libraries

Don't know whats going here. when i search this method in android studio its not there but when i search on your github repo it is there. Maybe i was doing this wrong tell me how can i fix this.
nosuch

See in your Github repo.
2

how can i change "save" and "cancel" button text in the bottom?

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1
  • Devide Manufacturer: Motorola
  • Device Name: G4 Plus
Reproduction Steps
Expected Result
Actual Result

Tell us what could be improved:

Out of memory issue with large files

When I select a large file to trim, on clicking save app crashes with below log

FATAL EXCEPTION: pool-1-thread-1 Process: life.knowledge4.videocroppersample, PID: 32469 java.lang.OutOfMemoryError: Failed to allocate a 440786855 byte allocation with 11418026 free bytes and 239MB until OOM at java.nio.ByteBuffer.allocate(ByteBuffer.java:56) at com.googlecode.mp4parser.AbstractBox.parse(AbstractBox.java:110) at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:107) at com.googlecode.mp4parser.BasicContainer.next(BasicContainer.java:185) at com.googlecode.mp4parser.BasicContainer.hasNext(BasicContainer.java:161) at com.googlecode.mp4parser.util.LazyList$1.hasNext(LazyList.java:55) at com.coremedia.iso.IsoFile.getMovieBox(IsoFile.java:102) at com.googlecode.mp4parser.authoring.container.mp4.MovieCreator.build(MovieCreator.java:51) at life.knowledge4.videotrimmer.utils.TrimVideoUtils.genVideoUsingMp4Parser(TrimVideoUtils.java:71) at life.knowledge4.videotrimmer.utils.TrimVideoUtils.startTrim(TrimVideoUtils.java:65) at life.knowledge4.videotrimmer.K4LVideoTrimmer$12.execute(K4LVideoTrimmer.java:362) at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588) at java.lang.Thread.run(Thread.java:818)

App is Crash

When I click on Save or Channel button on Trim Section App is crash .

When I Click on Channel Button it give me following error :-

FATAL EXCEPTION: main
Process: com.ssalphax.videotrim, PID: 16292
java.lang.NullPointerException: Attempt to invoke interface method 'void life.knowledge4.videotrimmer.interfaces.OnTrimVideoListener.cancelAction()' on a null object reference
at life.knowledge4.videotrimmer.K4LVideoTrimmer$3.onClick(K4LVideoTrimmer.java:162)
at android.view.View.performClick(View.java:6267)
at android.view.View$PerformClick.run(View.java:24763)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6548)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

I am not able to impliment interface onK4LVideoListener.Please Help me!

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1
  • Devide Manufacturer: Motorola
  • Device Name: G4 Plus
Reproduction Steps
Expected Result
Actual Result

Tell us what could be improved:

When i setVideoURI in one activity in two or more time then TimeLineView not updated how to fix them ?

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1
  • Devide Manufacturer: Motorola
  • Device Name: G4 Plus
Reproduction Steps
  1. When i setVideoURI first time working well
  2. after i setVideoURI in same activity then videoview set URI well but TimeLineView in Bitmap not set a new Video Thumbnail

I atteched screenshot show the issue.

Like

screenshot_20160908-100855

Video quality

When trim video then result video quality is low then original video
how to solve this problem

Please reply its urgent

Crash when trimming a video that's on the repository

I've noticed that when trimming the video of the repository, it crashes:

intro.zip

The exception says :

E: Unsupported mime 'audio/ac3'
E: FATAL EXCEPTION: pool-1-thread-1
    Process: life.knowledge4.videocroppersample, PID: 26274
    java.lang.IllegalStateException: Failed to add the track to the muxer
        at android.media.MediaMuxer.nativeAddTrack(Native Method)
        at android.media.MediaMuxer.addTrack(MediaMuxer.java:626)

How come?

When making it trim without sound, it works fine, but then I don't have sound in the output video (of course)...

I wrote about this issue here too:
https://stackoverflow.com/q/54573454/878126

When I change the progressbar to crop the video at specific duration then setMaxDuration is not working properly and video information is showing wrong

I am getting an issue. I have downloaded the latest code and integrate it on Android Studio. When i select a video, k4l-video-trimmer successfully prepared the video and correctly shows video info and snapshots. I have set the max duration to 10 sec but when move the progressbar to crop the video at specific duration, the cropping duration which is showing on screen like (01:21 sec - 01:31 sec) for 10 sec will change to (01:21 sec - 01:36 sec) becomes 15 sec duration that is an issue and when I crop the video, it will crop it for 23 sec. I don't know how to resolve this issue. Please help me to resolve this issue

Fatal Exception: java.lang.IllegalArgumentException

following error happend for my users, i can't reproduce this error, but crashlytics result is

Fatal Exception: java.lang.IllegalArgumentException Raw Text
--
  | android.media.MediaMetadataRetriever.setDataSource (MediaMetadataRetriever.java:75)
  | android.media.MediaMetadataRetriever.setDataSource (MediaMetadataRetriever.java:161)
  | life.knowledge4.videotrimmer.view.TimeLineView$1.execute (TimeLineView.java:83)
  | life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run (BackgroundExecutor.java:210)
  | java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:428)
  | java.lang.Thread.run (Thread.java:761)
  • k4l-video-trimmer version: 1.0.0
  • Device OS version: 6.0.1 , 7.1.1 , 4.4.4
  • Devide Manufacturer: Sony , HUAWEI , samsung
  • Device Name: Xperia X , HUAWEI G7-L01 ,Galaxy J5(2016)

Problem With encoded video

hi i'm using this library and when i get the output file my ivdeo player can't recognize it as a video file. what is your encoding and how can i change it?

After trimming video the lib return octet-stream instead of mp4, wht can I do to fix this, the server that is serving us is not supported that mime type of file, even in the server side it is not possible to check that file type

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1
  • Devide Manufacturer: Motorola
  • Device Name: G4 Plus
Reproduction Steps
Expected Result
Actual Result

Tell us what could be improved:

what could have caused this ?

Hello i implemented your repo and it's great!, i love your work! i know you are working hard on it to fix all the bugs and i thank you for that!, i have a small problem after implementing and updating my application playstore i'm getting the following stack trace :

java.lang.NullPointerException: 
  at life.knowledge4.videotrimmer.K4LVideoTrimmer$4.onClick(K4LVideoTrimmer.java:173)
  at android.view.View.performClick(View.java:5266)
  at android.view.View$PerformClick.run(View.java:21548)
  at android.os.Handler.handleCallback(Handler.java:815)
  at android.os.Handler.dispatchMessage(Handler.java:104)
  at android.os.Looper.loop(Looper.java:207)
  at android.app.ActivityThread.main(ActivityThread.java:5777)
  at java.lang.reflect.Method.invoke(Native Method:0)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)

so i'm wondering what could be causing that, is it a problem with my implementation or is it a bug by your side ? if it's my side can you give me hints of what could be the problem ? thank you!

FileUtils.java problems with Android N

Hi,
inside FileUtils.java there is a problem.
In getDataColumn method you should manage the new ContentProvider management

cursor = context.getContentResolver().query(uri, projection, selection, selectionArgs, null);
column _data table not exists.

If you want that this library works with Android >= N, please fix this issue.

offering

hi
I am exactly looking for something like your app but in html5 javascript platform.
do you know any open source for that?
thanks

Video size more than 100 mb it not trim

If video size more than 100 MB it not trim the video and it show this error and video is more than trim size like 120 sec. and size is 154MB it is not give error or not Trim the video.

java.lang.NullPointerException: Attempt to invoke interface method 'void life.knowledge4.videotrimmer.interfaces.OnTrimVideoListener.getResult(android.net.Uri)' on a null object reference
at life.knowledge4.videotrimmer.K4LVideoTrimmer$4.onClick(K4LVideoTrimmer.java:173)
at android.view.View.performClick(View.java:6267)
at android.view.View$PerformClick.run(View.java:24763)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6548)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

Video always starts from beginning

I expect the video to start playing from where the mHolderTopView is set. Instead each time I push play, the video plays from the beginning.

Occasionally, media player errors are exposed.

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.1.3-SNAPSHOT
  • Device OS version: 7.0.0
  • Devide Manufacturer: Samsung
  • Device Name: Note 5
Reproduction Steps

Play video on device
timeLine.setVideoURI(Uri.fromFile(File(path)))

Expected Result

It must be played as normal.

Actual Result

media player errors are exposed.
The exposed error log is as follows.

isPlaying: called in state MEDIA_PLAYER_STATE_ERROR
MediaPlayer: Error(100,2)
MediaPlayer: Error(1, -32)
MediaPlayer: Error(1, -32)

Tell us what could be improved:

There is no error when playing the same video in VideoView.
What's the problem?

Out Of Memory Error on Android

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1
  • Devide Manufacturer: Samsung
  • Device Name: J7
Reproduction Steps

1.pick a video from gallery Note: selected video must be large movie of type .mkv OR .TS
2. Select some duration and trim
3. It will reproduce the error and app will be crashed

Expected Result
Actual Result

I am pasting the logs of the error here
//***************************************************************************************

09-14 13:38:24.406 27003-27378/com.app.hotspot4beauty E/UncaughtException: java.lang.OutOfMemoryError: Failed to allocate a 1195376660 byte allocation with 13769380 free bytes and 108MB until OOM
at java.nio.ByteBuffer.allocate(ByteBuffer.java:56)
at com.googlecode.mp4parser.AbstractBox.parse(AbstractBox.java:110)
at com.coremedia.iso.AbstractBoxParser.parseBox(AbstractBoxParser.java:107)
at com.googlecode.mp4parser.BasicContainer.next(BasicContainer.java:185)
at com.googlecode.mp4parser.BasicContainer.hasNext(BasicContainer.java:161)
at com.googlecode.mp4parser.util.LazyList$1.hasNext(LazyList.java:55)
at com.coremedia.iso.IsoFile.getMovieBox(IsoFile.java:102)
at com.googlecode.mp4parser.authoring.container.mp4.MovieCreator.build(MovieCreator.java:51)
at life.knowledge4.videotrimmer.utils.TrimVideoUtils.genVideoUsingMp4Parser(TrimVideoUtils.java:71)
at life.knowledge4.videotrimmer.utils.TrimVideoUtils.startTrim(TrimVideoUtils.java:65)
at life.knowledge4.videotrimmer.K4LVideoTrimmer$11.execute(K4LVideoTrimmer.java:293)
at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
//**********************************************************************************************************

Tell us what could be improved:

Video preview not available default ..Currently blank screen

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1
  • Devide Manufacturer: Motorola
  • Device Name: G4 Plus
Reproduction Steps
Expected Result
Actual Result

Tell us what could be improved:

Trimming finished but the file not contain the video

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0 and 1.1.3-SNAPSHOT
  • Device OS version: 5.1.1
  • Devide Manufacturer: Samsung
  • Device Name: SM-J500FN
Reproduction Steps
  1. Open sample app
  2. Load this video http://www.sample-videos.com/index.php#sample-mp4-video (the same with others video)
  3. Select a portion to trim
Expected Result

The trimmed video

Actual Result

A 1kb mp4 without the video

Tell us what could be improved:

At least return an error instead of the result ok

rangeSeekBarView and mHolderTopView not sync in progress

Hi, I have an issue, mHolderTopView position is before than startPosition and while video is playing its position will change and at the end of video its position is wrong and it is after the progressBarView and rangeSeekBarView.
also the position of progressBarView is sync with rangeSeekBarView at the start point, but while we will close to the end of video its position is a little before rangeSeekBarView.
I tested it on sony Xperia sp and android 4.3.

when click on save, application crashed

when click on save, application crashed and shows
java.io.FileNotFoundException: /external/video/media/33131: open failed: ENOENT (No such file or directory)

if file is not here then how its appearing in timeline view please look in this matter

Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1
  • Devide Manufacturer: Motorola
  • Device Name: Turbo
Reproduction Steps
  1. record video and saved
  2. get content uri and set in 'setVideoURI'
  3. video appeared in timeline view
  4. adjust video clips
  5. click on save
Expected Result

it should save video in destination path

Actual Result

application crashed,
showing exception
java.io.FileNotFoundException: /external/video/media/33131: open failed: ENOENT (No such file or
directory)

Tell us what could be improved:

Customizing Video Range Slider

Is there any way to customize the Video Range Slider? I need to change the range selector position as vertical. Please help.

Question: is it really MIT license?

I've noticed that some libraries that offer the same thing have a different license, which is less permissive.
Is it true that it's MIT license? No catch?
What does it use behind the scenes ? Any technical restrictions?

Proguard issue

i cant make a relase build is there any proguard for this library

Video always plays from start and not trimmed correctly

In the video playback the video is always played from the start (no matter the position of the range selector).
Also, the final trimmed video is of incorrect length.
For example, if I select the time range from 8 seconds to 18 seconds. It is always trimmed to the length 0 seconds to 18 seconds.
Is the left range selector position not used?

CancelClicked should call VideoView.stopPlayback

I think cancelClicked should do a bit of cleanup

  1. stop VideoView playback

Also it would be helpful if VideoView is exposed so that we can control some other aspects like its visibility etc..

In my use case the Trimmer is housed in a RelativeLayout and stays hidden. When required we make the RelLayout visible and set URI. But if we click cancel, there is no way to stop the video and hide the videoView. Hiding the Relativelayout does not help because our background is a GLSurfaceView and the Zorder thing messes things up.

Currently I have edited the Trimmer to make VideoView visible on setURI and stop playback & invisible on CancelClicked

While i set 120 as setMaxDuration it cuases this error but while i setMaxDuration 20 it works....is there any time limit for MaxDuration?

FATAL EXCEPTION: pool-8-thread-1
Process: com.peoplescience, PID: 10208
java.lang.OutOfMemoryError
at java.nio.ByteBuffer.allocate(ByteBuffer.java:56)
at life.knowledge4.videotrimmer.utils.FileDataSourceViaHeapImpl.map(FileDataSourceViaHeapImpl.java:70)
at com.googlecode.mp4parser.BasicContainer.getByteBuffer(BasicContainer.java:223)
at com.googlecode.mp4parser.authoring.samples.DefaultMp4SampleList.get(DefaultMp4SampleList.java:181)
at com.googlecode.mp4parser.authoring.samples.DefaultMp4SampleList.get(DefaultMp4SampleList.java:1)
at com.coremedia.iso.boxes.mdat.SampleList.get(SampleList.java:41)
at com.coremedia.iso.boxes.mdat.SampleList.get(SampleList.java:1)
at java.util.AbstractList$SimpleListIterator.next(AbstractList.java:55)
at java.util.AbstractList$SubAbstractList$SubAbstractListIterator.next(AbstractList.java:201)
at java.util.AbstractCollection.toArrayList(AbstractCollection.java:349)
at java.util.AbstractCollection.toArray(AbstractCollection.java:339)
at java.util.ArrayList.addAll(ArrayList.java:188)
at com.googlecode.mp4parser.authoring.tracks.AppendTrack.getSamples(AppendTrack.java:372)
at com.googlecode.mp4parser.authoring.builder.DefaultMp4Builder.build(DefaultMp4Builder.java:96)
at life.knowledge4.videotrimmer.utils.TrimVideoUtils.genVideoUsingMp4Parser(TrimVideoUtils.java:131)
at life.knowledge4.videotrimmer.utils.TrimVideoUtils.startTrim(TrimVideoUtils.java:64)
at life.knowledge4.videotrimmer.K4LVideoTrimmer$11.execute(K4LVideoTrimmer.java:293)
at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:152)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)

Using custom VideoView makes the Seekbar go wrong

I have an issue that is not quite your issue, but I really need your help.
I've downloaded you code and changed the VideoView into a TextureView based one from here
now, the progress indicator is not working correctly (it's like its reading the wrong duration, but I checked, and it gets the right duration).
I cant understand where this bug is coming from.

  • Device OS version: 6.0.1
  • Device Manufacturer: Huawei
  • Device Name: Nexus 6P

Please help me solve this issue.
thank you!

is gradle 1.0 newest?

Hey, I saw "onTrimStarted" and "onError" in OnTrimVideoListener in your example.
But in my project "compile 'life.knowledge4:k4l-video-trimmer:1.0'", I only found "getResult" and "cancelAction".
Thank you!

TimeLineView.java line 87

  • I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • k4l-video-trimmer version: 1.0.3
  • Device OS version: 6.0.1, 5.1
  • Devide Manufacturer: Meizu , Xiaomi
  • Device Name: MX5 , MI 5
Fatal Exception: java.lang.RuntimeException: setDataSource failed: status = 0x80000000
       at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java)
       at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java)
       at android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java)
       at life.knowledge4.videotrimmer.view.TimeLineView$1.execute(TimeLineView.java:87)
       at life.knowledge4.videotrimmer.utils.BackgroundExecutor$Task.run(BackgroundExecutor.java:212)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
       at java.util.concurrent.FutureTask.run(FutureTask.java:237)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:154)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
       at java.lang.Thread.run(Thread.java:818)

Detect if user click directly on Save without trimming

Hello,

I wonder how it is possible to detect if user click directly on the Save button on the bottom right of the screen after he imported his video without changing any setting neither doing any trim (in other words : he kept the video full-length).

Thanks in advance !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.