outContainer = IContainer.make();outContainer.open("/Products/YouTube/properties/" + propertyRef + "/Property.mov", IContainer.Type.WRITE, null);
ICodec codec = ICodec.findEncodingCodec(ICodec.ID.CODEC_ID_MPEG4);outStream = outContainer.addNewStream(codec);outStreamCoder = outStream.getStreamCoder();
I am using 3.4 at the moment.
I have tried to use 5.2 and 5.4 but I am just seeing blank video files; the file is the correct size but all the frames are black. I have tried everything but I can't work out what's going on with v 5.x. I tried changing the code and removing all the flags and just using
writer = ToolFactory.makeWriter("/Products/YouTube/properties/Testing/" + propertyRef + ".mov");
writer.addVideoStream(0, 0, ICodec.ID.CODEC_ID_MPEG4, WIDTH, HEIGHT);
but that too generated exactly the same 'blank' output. All I have done is change the ,jar files and nothing else! I have tried all the variations of the various 5.x jars and had no joy whatsoever. I am on OX 1.7.3 and Java 1.6.x and am using NetBeans. I am a Java programmer of 16 years experience so I'm not a novice… I have posted a note with regard to my 5.x issues but so far no luck resolving that either!
Anyway back to the buffer issue and your reply. I have moved the
outStreamCoder.setCodec(codec);
line but that makes no difference. I have been playing with the flags and I have managed to control the file size; it does seem to be setting the compression for the video.
With regard to IStreamCoder, I do not know how to set the bit rate and tolerance within that class. Is there an example anywhere?
You mentioned that some code has been deprecated (although I can't get 5.x to function) is there any documentation on this? Again I have looked and looked and seen nothing. Checked all the examples and tutorials; they appear all to be unchanged.
Thanks.
I v a n ...
---------------------------------------------------------------------
Ivan Markovic
SculptLight
http://www.sculptlight.com
Mobile (+44) (0)751 3053944
Office (+44) (0)20 7243 3696
> --
> You received this message because you are subscribed to the Google Groups "xuggler-users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/xuggler-users/-/oYCE5lg-js8J.
> To post to this group, send email to xuggle...@googlegroups.com.
> To unsubscribe from this group, send email to xuggler-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/xuggler-users?hl=en.