I found an example of live rtmp broadcasting using xuggle, but I can not run it, because the xuggle distributions do not include libx264-normal.ffpreset, which is suggested to be taken from the distribution. Perhaps the example only applies to older versions of xuggle, if so, are there any live streaming examples using the latest version of xuggle?
import com.xuggle.xuggler.Configuration; import com.xuggle.xuggler.ICodec; import com.xuggle.xuggler.IContainer; import com.xuggle.xuggler.IContainerFormat; import com.xuggle.xuggler.IPacket; import com.xuggle.xuggler.IPixelFormat; import com.xuggle.xuggler.IRational; import com.xuggle.xuggler.IStream; import com.xuggle.xuggler.IStreamCoder; import com.xuggle.xuggler.IVideoPicture; import com.xuggle.xuggler.video.ConverterFactory; import com.xuggle.xuggler.video.IConverter; import java.awt.AWTException; import java.awt.Rectangle; import java.awt.Robot; import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class XugglerRtmpReferenceImpl { private static String url = ""; private static String fileName = "/home/pavel/test.flv"; private static int framesToEncode = 60;
source share