juancarmena / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

ERROR com.xuggle.xuggler - Could not find output format (../../../../../../../csrc/com/xuggle/xuggler/Container.cpp:299) #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In eclipse
2. Xuggle 1.21

This simple code:

IContainer NewContainer = IContainer.make();
    IContainerFormat format = IContainerFormat.make();

    if (format.setInputFormat("flv") < 0)
        throw new RuntimeException("dont find");

    if
(NewContainer.open("/usr/local/xuggler-1.21/test/fixtures/newfile.flv",IContaine
r.Type.WRITE,format)
< 0)
        throw new IllegalArgumentException("coul not create the file");

sorry if is my error, but is not easy to me... :)

Ah.. by the way... the idea here is to create .flv file, with the right header.

So one more time... Thank you. :)

Original issue reported on code.google.com by barros...@gmail.com on 19 Mar 2009 at 5:49

GoogleCodeExporter commented 8 years ago
You are attempting to write a file, but you're setting the Input format.  
Instead
call IContainerFormat.setOutputFormat when creating a format to be used for 
writing.

Original comment by art.cla...@gmail.com on 19 Mar 2009 at 5:53

GoogleCodeExporter commented 8 years ago
Thank you one more time.

I saw a email, that go to [xuggler-users] list (xuggler googlecode wiki) that
suggestes the creation of wiki to xuggler. I think that is greate ideia.. 
Because
xuggler is growing up a lot, and it was good to have some place where we can 
post
some code, change ideas, etc.

Just idea. :)

M.Barros

Original comment by barros...@gmail.com on 20 Mar 2009 at 10:28