titansgroup / k4l-video-trimmer

A library with UI and mechanisms to trim local videos on Android applications.
MIT License
784 stars 221 forks source link

when click on save, application crashed #51

Open asadd00 opened 5 years ago

asadd00 commented 5 years ago

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:
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:

agueroveraalvaro commented 5 years ago

Directory might not exist yet

inforaamitsolutions commented 5 years ago

its because the file from gallery you selected that file format might not be supported with this... try another one with MP4

jagadishlakkur commented 5 years ago

First convert uri to file path and then pass path to view

String path=FileUtils.getPath(getActivity(), data.getData());

videoTrimmer.setVideoURI(Uri.parse(path));

rawbi commented 3 years ago

@asadd00 did you found any solution ?

ChiragAtharva commented 3 months ago

@asadd00 Any update i am also facing this crash