xuggle

Audio converting with Xuggler

心已入冬 提交于 2019-11-30 07:42:56
I'm trying to convert aac/wav/wma audio files to mp3 with Xuggler in Java. Unfortunately, I have a big loss of quality. My input file size is about 7MB and my output file size is only 1,5MB. The sample rate is set to 44100 Hz, is there other parameters to set? Thank you for your answers. if (args.length <= 1) throw new IllegalArgumentException("must pass an input filename and output filename as argument"); IMediaWriter writer = ToolFactory.makeWriter(args[1]); String filename = args[0]; // Create a Xuggler container object IContainer container = IContainer.make(); // Open up the container if

What codecs does Xuggler support?

岁酱吖の 提交于 2019-11-30 02:13:17
Yes, I know that the FAQ pretends to answer this, but it doesn't really. Instead it instructs you to build the project from source (and the build instructions are quite convoluted). That kind of defeats the entire point :) Let's save everyone in the world the hassle of having to build yet another open-source project in order to find out whether it actually solves their problem. What codecs does Xuggler support? The reason the FAQ doesn't answer this is that it constantly changes as we ship new versions, and keeping that list in the documentation up to date would take too long. But since you

XUGGLE ERROR: Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

依然范特西╮ 提交于 2019-11-29 06:32:26
I am trying to execute the following code: import com.xuggle.mediatool.IMediaReader; import com.xuggle.mediatool.IMediaWriter; import com.xuggle.mediatool.ToolFactory; public class vidcon { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub IMediaReader reader = ToolFactory.makeReader("test.m4v"); IMediaWriter writer = ToolFactory.makeWriter("out.flv"); reader.addListener(writer); while(reader.readPacket() == null) ; } } But it is is giving me this error: Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory at com

How to join one audio and video file — Xuggler

狂风中的少年 提交于 2019-11-29 05:23:03
I want to combine a video file (flv) with no audio with an audio file (mp3) using Xuggler. At the moment I have taken two streams and combined the video and audio parts of those streams separately like picture in picture. Now i want to combine the audio and video files with each other.. Any suggestion or hints will be appreciated. I am using red5 server. Thanks. Use a MediaConcatenator. See example code "Concatenate Audio And Video" I developed a class that will take two inputs, one audio file and second video file and will merge them to a single audio video file. public static void main

XUGGLE ERROR: Exception in thread “main” java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

一个人想着一个人 提交于 2019-11-28 00:01:05
问题 I am trying to execute the following code: import com.xuggle.mediatool.IMediaReader; import com.xuggle.mediatool.IMediaWriter; import com.xuggle.mediatool.ToolFactory; public class vidcon { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub IMediaReader reader = ToolFactory.makeReader("test.m4v"); IMediaWriter writer = ToolFactory.makeWriter("out.flv"); reader.addListener(writer); while(reader.readPacket() == null) ; } } But it is is giving me

How to join one audio and video file — Xuggler

烈酒焚心 提交于 2019-11-27 23:10:32
问题 I want to combine a video file (flv) with no audio with an audio file (mp3) using Xuggler. At the moment I have taken two streams and combined the video and audio parts of those streams separately like picture in picture. Now i want to combine the audio and video files with each other.. Any suggestion or hints will be appreciated. I am using red5 server. Thanks. 回答1: Use a MediaConcatenator. See example code "Concatenate Audio And Video" 回答2: I developed a class that will take two inputs, one

How do I have to install/configure Xuggle to not get an UnsatisfiedLinkError?

自作多情 提交于 2019-11-26 23:29:24
问题 I am JUST getting started with Xuggle and I downloaded everything into Eclipse and I included them in them in the Referenced Libraries but I made a really simple test, package com.xuggle.xuggler.demos; import com.xuggle.xuggler.IContainer; public class getContainerInfo { public static void main (String [] args){ IContainer myContainer = IContainer.make(); } } and it throws a bunch of errors, 2011-06-12 16:26:52,142 [main] ERROR com.xuggle.ferry.JNILibraryLoader - Could not load library: