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

17
LINES

< > BotCompany Repo | #1006720 // Extract audio from video to .wav using JCodec [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 // jcodec 0.2.0
3  
lib 1006717 // jcodec 0.2.0 javase
4  
lib 1006721 // jcocec 0.2.0 samples (TranscodeMain)
5  
6  
import org.jcodec.samples.transcode.*;
7  
8  
p {
9  
  inputFilePath("Video to extract audio from", voidfunc(final File inVideo) {
10  
    thread {
11  
      File outWav = prepareProgramFile(inVideo.getName() + ".wav");
12  
      S[] args = {"--o:ac=pcm", f2s(inVideo), f2s(outWav)};
13  
      TranscodeMain.main(args);
14  
      print("Extracted " + inVideo + " to " + outWav);
15  
    }
16  
  });
17  
}

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: #1006720
Snippet name: Extract audio from video to .wav using JCodec [dev.]
Eternal ID of this version: #1006720/8
Text MD5: bb56e7ffff4bb622bfda2cb4e4c95a1f
Transpilation MD5: d1074296b7f426dd831702df57e3ddbf
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:10:47
Source code size: 498 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 1082 / 1231
Version history: 7 change(s)
Referenced in: [show references]