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).

!7
lib 1006715 lib 1006717 lib 1006721 // jcodec 0.2.0 + samples

import org.jcodec.samples.transcode.*;

p {
  // .avi not supported yet (see https://github.com/jcodec/jcodec/issues/166)
  inputFilePath("Input video (.mkv)", voidfunc(final File inFile) {
    thread {
      File outFile = prepareProgramFile(inFile.getName() + ".mp4");
      S[] args = {f2s(inFile), f2s(outFile)};
      TranscodeMain.main(args);
      print("Converted " + inFile + " to " + outFile);
    }
  });
}

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: 562 / 659
Version history: 3 change(s)
Referenced in: