Skip to content

video output is flickering badly after engrave #93

@eyaler

Description

@eyaler

i am getting weird flickering when trying to apply engrave to a video
gmic.run('input /content/input.mp4 fx_engrave 0.5,50,0.8,40,0,0,0,10,1,0,0,0,1,0,50,50 output /content/gmic.mp4,24.800000')

what i tried:

  • made sure my code works ok when using other filters
  • made sure this issue happens also for other videos
  • tried both b/w engrave as above as well as the color option
  • made sure the issue happens also with the default fps, different fps, different codec (btw seems that gmic is not able to output with codec AVC1)
  • gmic-py 2.9.2 and 2.9.4a1
  • I ran engrave filter on video in ZART and did not see a similar issue

possible solutions:

  • perhaps engrave outputs more than one layer and they get interleaved with the frames and i should be doing some merging?
  • i know i can break the video to frames and apply it on the images however i timed it and running on video was ~25% faster.

colab to reproduce (just run it): https://colab.research.google.com/drive/1cUDQhdlMJZee8qYa9BZkWK4cxYfDSjqF?usp=sharing

video showing issue is attached (warning - heavy flickering!):

output.21.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions