Coder Social home page Coder Social logo

Comments (5)

ram-mohan avatar ram-mohan commented on July 23, 2024

thank you for raising this issue. can you please try if the above patch set works for you

from libultrahdr.

mcDandy avatar mcDandy commented on July 23, 2024

It works, thank you.
I am however unable to open result raw (which has expacted size) and when converting back to jpeg, it looks wierd (red stripes and dots every other pixel on top of what appears to be a luminance map made up of mostly yellow and purple patches)
out

from libultrahdr.

ram-mohan avatar ram-mohan commented on July 23, 2024

The output is raw rgb data with r, g and b holding 10 bits per pixel and 2 for alpha which are currently null. the pixel format is x2bgr10le.
ffplay-f rawvideo -video_size 4080x3072 -pixel_format x2bgr10le -i outrgb.raw should help

from libultrahdr.

mcDandy avatar mcDandy commented on July 23, 2024

I probably have wierd version of ffmpeg... (4.4.2-0ubuntu0.22.04.1)

[rawvideo @ 0x7efbac000cc0] No such pixel format: x2bgr10le.

Also is there any way to encode the file back to jpeg after editing it?
ultrahdr_app -m 0 -p outrgb.raw -C 1 uses wrong pixel format (result in my last post).

from libultrahdr.

ram-mohan avatar ram-mohan commented on July 23, 2024

That is an older version of ffmpeg. You can get an updated one here, https://github.com/ffbinaries/ffbinaries-prebuilt/releases.

Also is there any way to encode the file back to jpeg after editing it?

currently the encoder library does not take in rgb input. So for now it is not possible. Having said that, we are working on few changes that would resolve this. very soon

from libultrahdr.

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.