xuggler

Concatenate mp3 files in Java

一曲冷凌霜 提交于 2020-02-06 07:50:14
问题 I have some problem with concatenation mp3 files. For example, I have 5 mp3 files. And I want concatenate them to one file. I try this: try { InputStream in = new FileInputStream("C:/a.mp3"); byte[] buffer = new byte[1024]; OutputStream os = new FileOutputStream(new File("C:/output.mp3", true)); int count; while ((count = in.read(buffer)) != -1) { os.write(buffer, 0, count); os.flush(); } in.close(); in = new FileInputStream("C:/b.mp3");// second mp3 while ((count = in.read(buffer)) != -1) {

Error while opening video file from URL and SeekFrame not working Xuggler

前提是你 提交于 2020-01-25 06:40:13
问题 I have video in Azure blob container. I opened the connection using proxy and get the inputStream from the connection and passing to Xuggler. HttpURLConnection conn = null; boolean isUseProxyConnection = proxyFileValues.isUseProxyConnection(); // Use Proxy if (isUseProxyConnection) { proxy = AzureBlobStorageProxyConnection(); } URL urlPath = new URL(inputFile); if (isUseProxyConnection) { // Open Via Proxy conn = (HttpURLConnection) urlPath.openConnection(proxy); } else { // Open without

Xuggler - opening mp4 files crashes/blocks program

≡放荡痞女 提交于 2020-01-14 22:48:42
问题 Short version: Opening/reading mp4 files with Xuggler sometimes does not work properly but causes program to crash. Long version: In my program i read, modify and write video files. It works fine with most formats i tested (avi, flv, mpg, mkv). The Xuggler functions i use are mostly: //Example 1 IContainer container = IContainer.make(); int result = container.open(filename, IContainer.Type.READ, null); and //Example 2 IMediaReader filmReader = ToolFactory.makeReader(filename); filmReader

while installing xuggler in ubuntu 11.10 getting error message

混江龙づ霸主 提交于 2020-01-03 04:25:00
问题 when i am trying to install xuggler through command line i am getting error message,how to solve this,the command line out given below,the out i given here is not the full out,only the last few lines,that is after starting the installation about 15 minute by the command "ant run-tests". allbackHelper*, std::allocator<_Tp> = std::allocator<com::xuggle::ferry::JNIHelper::CallbackHelper*>] [exec] /usr/include/c++/4.6/bits/allocator.h:109:7: note: no known conversion for argument 1 from ‘std::

Xuggler with Red5 Picture is not of the same PixelType as this Coder expected

房东的猫 提交于 2019-12-25 06:38:11
问题 I am writing a Red5 application that will need to use the Xuggler library to capture an rtps stream and convert it to flv. Here is the following code that I'm calling after the Red5 app start method is called. private static void helloXuggler() { String sourceUrl = "rtsp://10.0.1.68:8554/CH001.sdp?AuthMode=Web&AuthValue=6049"; String destinationUrl = "xuggler.m4v"; System.out.printf("transcode %s -> %s\n", sourceUrl, destinationUrl); // create the media reader, not that no BufferedImages need

How to capture live audio via RTMP using xuggler?

依然范特西╮ 提交于 2019-12-25 04:52:01
问题 I am trying to live microphone stream (SPEEX codec) using xuggler but I am getting warning that codec as null. What is fix for this issue? public void audioCapture(String streamName, String sessionId) { IContainer readContainer = IContainer.make(); readContainer.setInputBufferLength(4096); String url = "rtmp://127.0.0.1:1935/live/Session_" + sessionId + "/" + streamName + " live=1"; if (readContainer.open(url, IContainer.Type.READ, null, true, false) < 0) { // if(readContainer.open(url,

How to capture live audio via RTMP using xuggler?

与世无争的帅哥 提交于 2019-12-25 04:51:19
问题 I am trying to live microphone stream (SPEEX codec) using xuggler but I am getting warning that codec as null. What is fix for this issue? public void audioCapture(String streamName, String sessionId) { IContainer readContainer = IContainer.make(); readContainer.setInputBufferLength(4096); String url = "rtmp://127.0.0.1:1935/live/Session_" + sessionId + "/" + streamName + " live=1"; if (readContainer.open(url, IContainer.Type.READ, null, true, false) < 0) { // if(readContainer.open(url,

JFrame displays content only after resizing (Xuggler)

谁说我不能喝 提交于 2019-12-25 04:30:28
问题 I Have written a listener for an IMediaReader from Xuggler. It should show a video in a JPanel what i can add to a JFrame. I have created this JFrame in the class main: class Window extends JFrame { static IMediaReader reader; static Window main; public static void main(String[] args) { new Thread() { public void run() { reader = ToolFactory.makeReader("C:/Users/André/Desktop/Detail.wmv"); reader.addListener(new Player(IMediaViewer.Mode.AUDIO_VIDEO, main)); while (reader.readPacket() == null)

Xuggler Repository Link Broken

一个人想着一个人 提交于 2019-12-23 08:47:02
问题 In my JAVA application, i am using Xuggler for ScreenCapture and other functionality. Now its a maven project so i put Xuggler as dependency in Pom.xml as told in this Link. Now few days ago i cleaned my system, so when i again imported my project, now it is showing "Missing artifact xuggle:xuggle-xuggler:jar:5.4". Though in pom file, repository link is there. I explored more and found out that http://xuggle.googlecode.com/svn/trunk/repo/share/java/xuggle/xuggle-xuggler/5.4/xuggle-xuggler-5.4

Set of questions related to playing sound / video in java

微笑、不失礼 提交于 2019-12-23 04:40:42
问题 There are some set of questions i wanted to ask related to Java Sound which are as follows : Can i use xuggler with netbeans ? If yes can anyone please tell the way out ? What are the audio and video formats xuggler is able to decode Is xuggler the best open source library to play audio and video in java ? Is JLayer a good library to play audio files ? Can i use JLayer to play video files ? I want my program to play mp3,wav,mp4,3gp files (commonly used) which is the best library to use ? 回答1: