Giter Club home page Giter Club logo

Comments (12)

Tom712 avatar Tom712 commented on June 9, 2024

Hello, I would like to work on this issue could you assign it to me please?

from ascii-media-player.

PK-cod3ch3mist avatar PK-cod3ch3mist commented on June 9, 2024

Hi @Tom712, sure. Do you have an approach in mind?

from ascii-media-player.

Tom712 avatar Tom712 commented on June 9, 2024

I am thinking about using opencv library to get the video resolution and then resize the terminal using that. Need to experiment with it a little past that.

from ascii-media-player.

PK-cod3ch3mist avatar PK-cod3ch3mist commented on June 9, 2024

Hi @Tom712, I think that you possibly misunderstood the issue. There already is a function that changes the resolution of the video based on the current terminal size and font. This is the get_pixel_matrix function.

I do not intend to do this the other way round. Because it should be the user's choice to resize the terminal.

However, what we do need is if te user resizes the terminal mid render, the output should not overflow the terminal boundaries and the video resolution should again be changed accordingly.

Basically check if terminal is resized, if yes, call get_pixel_matrix and resize media and caption windows.

from ascii-media-player.

Tom712 avatar Tom712 commented on June 9, 2024

Alright, I'll admit I misunderstood the issue however, I would still like to work on it.

from ascii-media-player.

Tom712 avatar Tom712 commented on June 9, 2024

@PK-cod3ch3mist Hello, will you assign me the issue?

from ascii-media-player.

PK-cod3ch3mist avatar PK-cod3ch3mist commented on June 9, 2024

Yes okay @Tom712.

from ascii-media-player.

PK-cod3ch3mist avatar PK-cod3ch3mist commented on June 9, 2024

Hi @Tom712, any updates on the automatic resize?

from ascii-media-player.

Tom712 avatar Tom712 commented on June 9, 2024

Sorry not yet. I had to focus on my school assignment but i'll work on this week.

from ascii-media-player.

PK-cod3ch3mist avatar PK-cod3ch3mist commented on June 9, 2024

Hi @Tom712. Any updates or approach you thought of?

from ascii-media-player.

Tom712 avatar Tom712 commented on June 9, 2024

@PK-cod3ch3mist Yes I am working on it, I am just on a holiday with family right now, sorry for the late reply.

from ascii-media-player.

Tom712 avatar Tom712 commented on June 9, 2024

@PK-cod3ch3mist Hello I have finished the automatic resizing and created a pull request.
I'll admit it took me too long do this but hopefully its satisfactory.
I already mentioned this in the description of the pull request but i'll say it here again I had to change the import of cv2 because it wouldnt work otherwise on a fresh Virtual Machine running Ubuntu.

from ascii-media-player.

Related Issues (7)

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.