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

17
LINES

< > BotCompany Repo | #1017983 // oggToMP3 using JAVE 2 [OK on Linux 64]

JavaX fragment (include)

lib 1400128 // JAVE 2
lib 1400129 // JAVE 2 Linux 64

lib 1003619 // commons logging

import ws.schild.jave.*;

static void oggToMP3(File ogg, File mp3) ctex {
  new AudioAttributes audio;
  audio.setCodec("libmp3lame");
  new EncodingAttributes attrs;
  attrs.setFormat("mp3");
  attrs.setAudioAttributes(audio);
  print("Converting " + f2s(ogg) + " to " + f2s(mp3));
  new Encoder().encode(new MultimediaObject(ogg), mp3, attrs);
  print("  [done]");
}

Author comment

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: 335 / 371
Version history: 9 change(s)
Referenced in: [show references]