You are browsing as a guest. Sign up (or log in) to start making projects!

Dur Converter

  • 5 Devlogs
  • 7 Total hours

A simple converter that convert video or image into .dur file

Ship #1 Pending review

This is a simple converter that help you convert you video into .dur file. See more about .dur format here https://github.com/durdraw/durdraw/blob/master/durformat.md.
Beside converting, it also allows you to downsample your result, meaning you can either:

  • Reduce resolution
  • Reduce FPS
    For a smaller outpput
    Originally I made this for the Ly but seem like it not working well.
    Btw, hope you enjoy this project :D

NOTE I’m using durdraw and Ly (the one with login form) for demoing the result of this software, NOT the software itself, it just a converter :_D

  • 5 devlogs
  • 7h
Try project → See source code →
Open comments for this post

45m 49s logged

I just found out that the background coloring is not working due to a known issue in Python’s curses library, so the upper half unicode trick will not work for now :sad-cat-thumbs-up:
So I make --half-frame flag as a workaround of this issue, as it still compressing 2 pixels into 1 character but just the color of the upper pixel be chosen.

0
0
4
Open comments for this post

1h 20m 51s logged

The fact that this is the first commit is kinda crazy :hm:
Btw, I have been setting up the CLI for ease of access and the CICD workflow so it will publish the code to PYPI for me :yaaaaaaay:

1
0
127
Open comments for this post

1h 54m 49s logged

I have switched to NumPy and the performance is very WOW (sorry, I dont know how to describe it ;-;).
But the conversion just take about 15-30 mins (tks to Claude for explaining things for me), the whole remaining time is just me trying to figuring out why Ly (the display manager) keep throwing out of bound error, turn out it is a known bug from durdraw :cry_smile:

0
0
9
Open comments for this post

2h 18m 10s logged

I have done the converting image into Ansi art.
The problem is a pixel on terminal usually equal to 2 pixel on the picture.
So this function basically treat a pixel on terminal as 2 pixel on the picture, then using the foreground and background coloring to workaround the 2-pixel problem.
In theory, it should work now, but the size of the object is just too big so I’m implement NumPy to solve this problem :okay-1:

0
0
8

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…