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

17
LINES

< > BotCompany Repo | #1006725 // Add audio to video [dev.]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 1936K of libraries. Click here for Pure Java version (2286L/16K/64K).

1  
!7
2  
lib 1006715 lib 1006717 lib 1006721 // jcodec 0.2.0 + samples
3  
4  
import org.jcodec.samples.transcode.*;
5  
6  
p {
7  
  final File inFile = getProgramFile(#1006716, "test.mp4");
8  
  inputFilePath("Audio file", voidfunc(final File audioFile) {
9  
    thread {
10  
      File outFile = prepareProgramFile(audioFile.getName() + "-" + inFile.getName());
11  
      copyFile(inFile, outFile);
12  
      S[] args = {"--o:ac=copy", f2s(audioFile), f2s(outFile)};
13  
      TranscodeMain.main(args);
14  
      print("Added " + audioFile + " to " + inFile + ", yielding " + outFile);
15  
    }
16  
  });
17  
}

Author comment

Began life as a copy of #1006720

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006725
Snippet name: Add audio to video [dev.]
Eternal ID of this version: #1006725/3
Text MD5: f5ae3869156a6db465dfc390c10043ed
Transpilation MD5: 9434d566b5a8324d1ed0498ceeaa2284
Author: stefan
Category: javax video
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-02-03 00:30:39
Source code size: 570 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 465 / 547
Version history: 2 change(s)
Referenced in: [show references]