Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Quan Nguyen
    @nnquan

    Hi there,

    I am working with Blendmode in Precomps Layer. I found that rlottie only supports Blendmode 1,2,3 ( lottieparser.h line 610 model::BlendMode LottieParserImpl::getBlendMode() ). Currently I need to use Blendmode 9 SoftLight. What files do I need to work with to do this?

    Subhransu
    @smohantty
    @nnquan , unfortunately rlottie dosen't support other blend modes.
    Quan Nguyen
    @nnquan
    Yes, I hope that the blend mode is developed in the future.
    rebornfz
    @rebornfz
    Hello, Where can I get rlottie's api documentation´╝č
    rebornfz
    @rebornfz
    How do I output a video?
    Hermet Park
    @hermet
    @rebornfz hello, you can check header files in the project
    @rebornfz for the output, please read the basic guide doc first => https://github.com/samsung/rlottie#readme
    @rebornfz then check samples in the rlottie project => https://github.com/Samsung/rlottie/tree/master/example
    rebornfz
    @rebornfz
    thank you
    VaughanKM
    @VaughanKM
    Hello, I'm having some troubles with using rlottie for my project and I was hoping I could ask you for some help. I'm creating a windows application using Visual Studio 2015 with managed code (compiled with /clr, code generated using Multi-threaded DLL /MD), so to avoid the incompatibilities with the unmanaged library at compile time I wrote a wrapper library to access rlottie. I can create objects such as Surfaces and Animations in the library I created alright, but when I go to use functions such as loadFromFile it gives me heap access errors. Has anyone run into something similar?
    Or is there another way to use the library with managed code without the need for a wrapper library?
    Hermet Park
    @hermet
    @smohantty ping?
    VaughanKM
    @VaughanKM
    I was able to solve the heap issue by porting my project to Visual Studio 2019, it's working great now. I guess the heap allocation is version dependent. Thanks for the speedy reply!
    Hermet Park
    @hermet
    @VaughanKM great. thanks for your info!
    rebornfz
    @rebornfz
    Hello´╝îI change the code in lottie2gif.cpp to change the width and height.
    Most of the time, it can run correctly.
    But when I render this gif https://lottiefiles.com/43721-keywords, it went wrong when width/height > 400.
    It run well when width/height = 400.
    rebornfz
    @rebornfz
    When the size is 200*200, most of them are fine.
    Errors often occur when the size is increased
    Hermet Park
    @hermet
    @rebornfz you might change the size in wrong way.
    @rebornfz buffer memory size and specified size must be identical.
    rebornfz
    @rebornfz
    I only change the width and height in the rlottie::Surface surface(buffer, width , height , stride)
    @hermet
    Hermet Park
    @hermet
    @rebornfz that's why... you just changed the number but didn't change the buffer memory.
    @rebornfz please double check where buffer come from how it initialize the buffer memory
    rebornfz
    @rebornfz
    @hermet sorry I've mispoken. This is my code:
    @hermet player->size(w1, h1);
    w = w1;
    h = h1;
    std::cout << w << " " << h << std::endl;
    auto buffer = std::unique_ptr<uint32_t[]>(new uint32_t[w * h]);
    size_t frameCount = player->totalFrame();
        GifBuilder builder(gifName.data(), w, h, bgColor);
        for (size_t i = 0; i < frameCount ; i++) {
            rlottie::Surface surface(buffer.get(), w, h, w * 4);
            player->renderSync(i, surface);
            builder.addFrame(surface);
        }
    Hermet Park
    @hermet
    @rebornfz and you say, 200x200 works fine
    @rebornfz what exact size has that issue?
    rebornfz
    @rebornfz
    800*800, and It run well when width/height = 400.
    @hermet
    rebornfz
    @rebornfz
    @hermet Will reading json fail if there is an unsupported After Effects Features?
    Hermet Park
    @hermet
    @rebornfz could be. but not usual.
    i just forgot the size issue you requested. let me test now.
    @rebornfz so did u use in the command ? $lottie2gif input.json 800x800
    @rebornfz because i couldn't find any issue here. it perfectly works fine.
    rebornfz
    @rebornfz
    @hermet I'll look again, maybe I was wrong
    rebornfz
    @rebornfz
    @hermet I tried the lottie2gif input.json 800x800, and it core dumped
    @hermet The gdb information:

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #0 0x00007f0d70ddeaeb in gray_record_cell(grayTWorker) () from /home/rlottie/build/librlottie.so.0

    #1 0x00007f0d70ddeb90 in gray_set_cell(grayTWorker
    , long, long) () from /home/rlottie/build/librlottie.so.0

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #2 0xfffffff93aa9f259 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #3 0x0000000000000cab in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #4 0x00007f0d6f062c78 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #5 0x00007f0d70ddeea3 in gray_render_line(grayTWorker*, long, long) () from /home/rlottie/build/librlottie.so.0

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #6 0x0000000000003b00 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #7 0xffffffffffc86d00 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #8 0x00000000000cabd8 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #9 0xffffffffffffc86d in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #10 0xffffffff14176000 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #11 0x8c8c380021ed7e75 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #12 0xfffffffdc85aaad7 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #13 0x0000000cbde871ee in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #14 0xffffffff8c8c3800 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #15 0x0000000237a55529 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    #16 0x0000000000000000 in ?? ()

    Python Exception <type 'exceptions.NameError'> Installation error: gdb.execute_unwinders function is missing:

    The lottie2gif ran for a few minutes and then failed
    The top information:
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                        
    3113443 root 20 0 4157064 10688 1716 S 100.0 0.0 3:12.28 lottie2gif
    rebornfz
    @rebornfz
    @hermet I cann't read this json https://t16img.yangkeduo.com/video-edit-service-public/ae/20210506215627799.json. Even if I change the url to base64.
    Hermet Park
    @hermet
    @rebornfz checked the crash. rlottie is untable... but i think there is no point to use lottie animation for that resource.
    @rebornfz checked the resource, it's composed frames with images. I think you can use gif animation in this case. it's better .
    Alexander Salas Bastidas
    @ajsb85
    Hi everyone.
    I want to port rlottie to Qt to MCU, emWin, awtk, TouchGFX, Arduino_GFX, Adafruit_GFX, LovyanGFX, TFT_eSPI, Ucglib, and more...
    Welcome brain storm :smile:
    Alexander Salas Bastidas
    @ajsb85
    Hermet Park
    @hermet
    @ajsb85 cool
    Alexander Salas Bastidas
    @ajsb85