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

21
LINES

< > BotCompany Repo | #1013799 // Convert WAV to MP3 using JAVE/ffmpeg Spike [OK]

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

Download Jar. Uses 11463K of libraries. Click here for Pure Java version (5496L/36K).

!7

lib 1013798 // jave

import it.sauronsoftware.jave.*;

p {
  File source = programFile("input.wav");
  saveLibraryTo(#1013250, source);
  File target = programFile("target.mp3");
  new AudioAttributes audio;
  audio.setCodec("libmp3lame");
  audio.setBitRate(128000);
  audio.setChannels(2);
  audio.setSamplingRate(44100);
  new EncodingAttributes attrs;
  attrs.setFormat("mp3");
  attrs.setAudioAttributes(audio);
  new Encoder encoder;
  encoder.encode(source, target, attrs);
}

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: #1013799
Snippet name: Convert WAV to MP3 using JAVE/ffmpeg Spike [OK]
Eternal ID of this version: #1013799/3
Text MD5: 2e74a2d13ca323ae2938d430f83ab21a
Transpilation MD5: 08d09707cf04808c04cbc1d1c4b332cb
Author: stefan
Category: javax / audio
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-03-28 17:15:57
Source code size: 506 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 420 / 856
Version history: 2 change(s)
Referenced in: [show references]