Giter Club home page Giter Club logo

Comments (5)

madhavanmalolan avatar madhavanmalolan commented on July 23, 2024

What do you mean it is not working?
Is it crashing? If yes, please share the crash logs
Or is it not giving the expected output? If yes, please state the expected and obtained outputs

from ffmpegandroidlibrary.

madhavanmalolan avatar madhavanmalolan commented on July 23, 2024

There are multiple errors in the command you are trying to run.

  1. time durations are of the format hh:mm:ss. So it should be 00:00:00 instead of 00:00:00:000
  2. The correct command to clip is :
    ffmpeg -i input.mp4 -ss 00:00:01 -to 00:00:02 -async 1 output.mp4
    Please correct your array accordingly

Closing issue because this is FFMPEG command help not a library issue.

from ffmpegandroidlibrary.

GunaseelanArumaikkannu avatar GunaseelanArumaikkannu commented on July 23, 2024

I changed my array as

val array = arrayOf("-i",
                            "/storage/emulated/0/DCIM/Camera/VID_20180429_201732.mp4",
                            "-ss 00:00:01",
                            "-to 00:00:30",
                            "-async 1",
                            "/storage/emulated/0/DCIM/Camera/first_30.mp4")

Now also I am getting same log. The log message is

I/Videokit: start run in main.
    register_exit
I/Videokit: term_init & parse options.
D/Videokit: ERROR OCCURED

I didn't say its library issue. I just need help. Can you help me regards this?

from ffmpegandroidlibrary.

madhavanmalolan avatar madhavanmalolan commented on July 23, 2024

from ffmpegandroidlibrary.

GunaseelanArumaikkannu avatar GunaseelanArumaikkannu commented on July 23, 2024

Hi Friend, I have tried following command with ffmpeg-android its working, but very slow.

val command = arrayOf("-i", selectedImagePath, "-ss", "00:00:01", "-to", "00:00:30", "-async", "1", file.absolutePath)
execFFmpegBinary(command)

But when I try to run the same command using our library, its not working, and it just reloads the activity.

val command = arrayOf("-i", selectedImagePath, "-ss", "00:00:01", "-to", "00:00:30", "-async", "1", file.absolutePath)
instance?.run(command)

#Update#
When I change the command as following and run with ffmpeg-android its finished in fraction of seconds.

val command = arrayOf("-i", selectedImagePath, "-ss", "00:00:01", "-to", "00:00:30", "-async", "1", "-c", "copy", file.absolutePath)

Can you take a look on it.

from ffmpegandroidlibrary.

Related Issues (20)

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.