1 | lib 1400128 // JAVE 2 |
2 | lib 1400129 // JAVE 2 Linux 64 |
3 | |
4 | lib 1003619 // commons logging |
5 | |
6 | import ws.schild.jave.*; |
7 | |
8 | static void oggToMP3(File ogg, File mp3) ctex { |
9 | new AudioAttributes audio; |
10 | audio.setCodec("libmp3lame"); |
11 | new EncodingAttributes attrs; |
12 | attrs.setFormat("mp3"); |
13 | attrs.setAudioAttributes(audio); |
14 | print("Converting " + f2s(ogg) + " to " + f2s(mp3)); |
15 | new Encoder().encode(new MultimediaObject(ogg), mp3, attrs); |
16 | print(" [done]"); |
17 | } |
Began life as a copy of #1013801
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1017983 |
Snippet name: | oggToMP3 using JAVE 2 [OK on Linux 64] |
Eternal ID of this version: | #1017983/10 |
Text MD5: | bc9cd7047a4a33f691b68fed9e287eef |
Author: | stefan |
Category: | javax / audio |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-25 17:59:30 |
Source code size: | 470 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 442 / 469 |
Version history: | 9 change(s) |
Referenced in: | [show references] |