Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1029704 // ffmpeg_speedUpVideo [make timelapse - works - keeps pitch]

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (5429L) is out of date.

sS ffmpeg_speedUpVideo(File inVideo, File outVideo, double factor) {
  double invFactor = 1/factor;
  ret ffmpeg("-i " + platformQuote(inVideo)
    + " -filter_complex " + platformQuote("[0:v]setpts=" + invFactor + "*PTS[v];[0:a]atempo=" + factor + "[a]")
    + " -map " + platformQuote("[v]")
    + " -map " + platformQuote("[a]")
    + " -y " + platformQuote(mkdirsForFile(outVideo)));
}

Author comment

Began life as a copy of #1029703

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1029704
Snippet name: ffmpeg_speedUpVideo [make timelapse - works - keeps pitch]
Eternal ID of this version: #1029704/11
Text MD5: e4cc4a7bddb2a2ed977148b572baffcb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-09 22:00:04
Source code size: 396 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 267
Version history: 10 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029705 - ffmpeg_concatVideos - no re-encode