ffmpeg trim Unable to find a suitable output format

112
May 07, 2022, at 07:40 AM

As stated in this post i try to split a video using mmpeg, slow down one of the parts and merge them back together.

I use the SSffmpegVideoOperation libary for convenient ffmpeg interactions.

I adapted the slow motion function such that it has a start and end point and now returns the following query

val inputs: ArrayList<String> = ArrayList()
inputs.apply {
    add("-i")
    add(inputVideo)
    add("-filter_complex")
    add("[0:v]trim=0:$startSeconds,setpts=PTS-STARTPTS[v1]")
    add("[0:v]trim=$startSeconds:$endSeconds,setpts=PTS-STARTPTS[v2]")
    add("[0:v]trim=start=$endSeconds,setpts=PTS-STARTPTS[v3]")
    add("[v1]setpts=${setpts}*PTS[slowv]")
    add("[v1][v2][v3]concat=n=2:v=1:a=0[out]")
    add("-map")
    add("[out]")
    add(output)
}

where input and output are valid file paths and startSeconds and endSeconds are Integer values.

But for almost every line expect for the first line with trim i get an error. For example:

[NULL @ 0xb40000781a868290] Unable to find a suitable output format for '[0:v]trim=5:10,setpts=PTS-STARTPTS[v2]'
    [0:v]trim=5:10,setpts=PTS-STARTPTS[v2]: Invalid argument

i tried a lot but cannot find any reason for this.

Rent Charter Buses Company
READ ALSO
Debugging on Android Emulator and Physical Device (Galaxy A10) is crazy slow (MacBook Pro M1)

Debugging on Android Emulator and Physical Device (Galaxy A10) is crazy slow (MacBook Pro M1)

I've got a MacBook Pro M1 (so no access to GenyMotion yet before 33

151
cross compiling ( Android-NDK-Cross-Compile-Build-Automator ) open source utility bindfs for android &amp; other bind mount solutions

cross compiling ( Android-NDK-Cross-Compile-Build-Automator ) open source utility bindfs for android & other bind mount solutions

Background I moved to my new AT&T Samsung phoneunfortunately this is is at Android 10 with selinux enforced there is no way I can change it to permissive and anyway with the proven insecurity it is not worth doing it

130
Android Studio - Open DatePickerDialog from an AppCompatDialog

Android Studio - Open DatePickerDialog from an AppCompatDialog

i want to open a DatePickerDialog from an AppCompatDialog

105
Android Studio BumbleeBee Freeze when gradle is building

Android Studio BumbleeBee Freeze when gradle is building

since i updated to bumblebee android studio suddenly freezes when i want to build/run the appit freezes while gradle is building the project

117