Download Jar. Uses 11463K of libraries. Click here for Pure Java version (5496L/36K).
1 | !7 |
2 | |
3 | lib 1013798 // jave |
4 | |
5 | import it.sauronsoftware.jave.*; |
6 | |
7 | p {
|
8 | File source = programFile("input.wav");
|
9 | saveLibraryTo(#1013250, source); |
10 | File target = programFile("target.mp3");
|
11 | new AudioAttributes audio; |
12 | audio.setCodec("libmp3lame");
|
13 | audio.setBitRate(128000); |
14 | audio.setChannels(2); |
15 | audio.setSamplingRate(44100); |
16 | new EncodingAttributes attrs; |
17 | attrs.setFormat("mp3");
|
18 | attrs.setAudioAttributes(audio); |
19 | new Encoder encoder; |
20 | encoder.encode(source, target, attrs); |
21 | } |
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: | 808 / 1697 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |