Git Product home page Git Product logo

Comments (3)

artclarke avatar artclarke commented on August 23, 2024

pretty impossible to guess at this without code to see what you're doing :(

from xuggle-xuggler.

unnivm avatar unnivm commented on August 23, 2024

Hello Clarke,

I have solved that issue in a different way so that is the reason I did not
pursue that. However, now I am facing a different issue. I am adding here
with the code:

I created MediaWriter Object:
writer = ToolFactory.makeWriter(outputFilename);

Then I got my screen size:
screenBounds = Toolkit.getDefaultToolkit().getScreenSize();

screenBounds.width = 1225; // avi format will work with these resolution
screenBounds.height = 736; // avi format will work with these resolution

writer.open();
writer.addVideoStream(0, 0, screenBounds.width, screenBounds.height);

If I do like this , I am getting the following runtime exception: The above
code looks pretty straight forward.

Exception in thread "main" java.lang.RuntimeException: could not open
stream com.xuggle.xuggler.IStream@76547664
[index:0;id:0;streamcoder:com.xuggle.xuggler.IStreamCoder@76547720
[codec=com.xuggle.xuggler.ICodec@76481776[type=CODEC_TYPE_VIDEO;id=CODEC_ID_H264;name=libx264;];time
base=1/1000000;frame rate=0/0;pixel
type=YUV420P;width=1225;height=736;];framerate:0/0;timebase:1/90000;direction:OUTBOUND;]:
Operation not permitted

Because I am developing a screen recorder for my client.

But if I comment the above line, then it will work

//screenBounds.width = 1225; // avi format will work with these resolution
// screenBounds.height = 736; // avi format will work with these
resolution

It will work as expected !.

This looks quiet interesting, I am leaving the video type open so that the
frame work can decide which codec to be used based on the extension. The
above error will happen if we use .mp4/.mov

Any clue what I am doing wrong here.

Thanks for your framework,

Yours Sincerely,
Unni Mana

On Mon, Nov 23, 2015 at 4:29 AM, Art Clarke [email protected]
wrote:

pretty impossible to guess at this without code to see what you're doing :(


Reply to this email directly or view it on GitHub
#24 (comment)
.


If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

from xuggle-xuggler.

unnivm avatar unnivm commented on August 23, 2024

Hello!,

I was able to handle this issue. When I select recording area is odd
number, then it is throwing the above Runtime exception. However, I managed
it by changing to even number in my capturing area so that it is working,

You can close this issue,

Thanks,

Unni

On Mon, Nov 23, 2015 at 8:57 AM, unni mana [email protected] wrote:

Hello Clarke,

I have solved that issue in a different way so that is the reason I did
not pursue that. However, now I am facing a different issue. I am adding
here with the code:

I created MediaWriter Object:
writer = ToolFactory.makeWriter(outputFilename);

Then I got my screen size:
screenBounds = Toolkit.getDefaultToolkit().getScreenSize();

screenBounds.width = 1225; // avi format will work with these resolution
screenBounds.height = 736; // avi format will work with these resolution

writer.open();
writer.addVideoStream(0, 0, screenBounds.width, screenBounds.height);

If I do like this , I am getting the following runtime exception: The
above code looks pretty straight forward.

Exception in thread "main" java.lang.RuntimeException: could not open
stream com.xuggle.xuggler.IStream@76547664
[index:0;id:0;streamcoder:com.xuggle.xuggler.IStreamCoder@76547720
[codec=com.xuggle.xuggler.ICodec@76481776[type=CODEC_TYPE_VIDEO;id=CODEC_ID_H264;name=libx264;];time
base=1/1000000;frame rate=0/0;pixel
type=YUV420P;width=1225;height=736;];framerate:0/0;timebase:1/90000;direction:OUTBOUND;]:
Operation not permitted

Because I am developing a screen recorder for my client.

But if I comment the above line, then it will work

//screenBounds.width = 1225; // avi format will work with these resolution
// screenBounds.height = 736; // avi format will work with these
resolution

It will work as expected !.

This looks quiet interesting, I am leaving the video type open so that the
frame work can decide which codec to be used based on the extension. The
above error will happen if we use .mp4/.mov

Any clue what I am doing wrong here.

Thanks for your framework,

Yours Sincerely,
Unni Mana

On Mon, Nov 23, 2015 at 4:29 AM, Art Clarke [email protected]
wrote:

pretty impossible to guess at this without code to see what you're doing
:(


Reply to this email directly or view it on GitHub
#24 (comment)
.


If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku


If not played, Free Sudoku Android Game
https://play.google.com/store/apps/details?id=com.gamerfan.sudoku

from xuggle-xuggler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.