我尝试按照此处的说明进行操作:http ://www.javacodegeeks.com/2010/05/rtmp-to-rtsp-re-stream-using-wowza-and.html
一切正常,Xuggler 安装没有错误,所有测试都通过了,但是现在当我尝试启动转码器时,我收到了这个错误:
root@heb1:~# java -jar transcoder-1.0.jar
11:25:28.902 [main] WARN com.xuggle.ferry.JNILibrary - Failure: library load of library: xuggle; url: /tmp/xuggle/xuggle6615346873936202632.tmp; error: java.lang.UnsatisfiedLinkError: /tmp/xuggle/xuggle6615346873936202632.tmp: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /tmp/xuggle/xuggle6615346873936202632.tmp)
11:25:46.673 [main] ERROR com.xuggle.xuggler - URL: rtmp://localhost/live/b; Error: could not find output format (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:513)
java.lang.RuntimeException: could not open output url: rtmp://localhost/live/b
at com.xuggle.xuggler.Converter.setupStreams(Converter.java:670)
at com.xuggle.xuggler.Converter.run(Converter.java:1203)
at com.agilio.transcoder.App.main(App.java:34)
所以转码器看到了输入流,但是对于输出它说它找不到输出格式,尽管它被发送到 Xuggler:
String[] parameters = new String[] { "--acodec", "libfaac", "--vcodec",
"libx264", "--vpreset",
"/usr/local/xuggler/share/ffmpeg/libx264-ultrafast.ffpreset",
inputStream, outputStream };