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

16
LINES

< > BotCompany Repo | #1006734 // Transcode mkv to .mp4 [.dev]

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

Uses 1936K of libraries. Click here for Pure Java version (2289L/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  
  // .avi not supported yet (see https://github.com/jcodec/jcodec/issues/166)
8  
  inputFilePath("Input video (.mkv)", voidfunc(final File inFile) {
9  
    thread {
10  
      File outFile = prepareProgramFile(inFile.getName() + ".mp4");
11  
      S[] args = {f2s(inFile), f2s(outFile)};
12  
      TranscodeMain.main(args);
13  
      print("Converted " + inFile + " to " + outFile);
14  
    }
15  
  });
16  
}

Author comment

Began life as a copy of #1006725

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: #1006734
Snippet name: Transcode mkv to .mp4 [.dev]
Eternal ID of this version: #1006734/4
Text MD5: 00eeae0ae0ea91c3c503654ebd9fea71
Transpilation MD5: a0808230e935b9a09a0bbe0e1a75749f
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 04:20:09
Source code size: 498 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 561 / 659
Version history: 3 change(s)
Referenced in: [show references]