Code Monkey home page Code Monkey logo

anime4k's People

Contributors

thoughtfuldev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

anime4k's Issues

missing lib in readme.md

heyo,

Thank you for making this. You did the world a great service :D


The readme.md is missing some information in the "Installing / Getting started" section. One also needs to install libmediainfo-devand mkvtoolnix, e.g. on ubuntu: sudo apt install libmediainfo-dev mkvtoolnix


on a side note: some instructions on how to do upscaling by a definied ratio (e.g. times two) or how to upscale while keeping aspect-ration would be nice to have, especially since older shows tend to have different aspect ratios than 1080p et al. So simply upscaling to 3840 x 2160 will (probably?) introduce distortion

For now I just use ffprobe, and then calculated the height and width manually, but the command for ffprobe is a bit clunky, so having an option for it, would be very convinient. The command looks something like this: fprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 \[Reaktor\]\ GTO\ -\ Great\ Teacher\ Onizuka\ -\ E02\ \[576p\]\[x265\]\[10-bit\].mkv

gpu error

Hi, even if in the requirements list there is "A dedicated GPU (no VM) [AMD/NVIDIA/Intel]" I need it also when I use only cpu encoding?
I get these errors:
[gpu] Could not initialize EGL.
[gpu] Could not create offscreen ra context.
[user_filter_wrapper] Creating filter 'gpu' failed.
[vo/lavc] error encoding at EOF
Video: no video
No video or audio streams selected.

[encode] no data written to target file

I'm launching commands in ubuntu shell on windows.

shaders name update

I've seen const.py for updating shaders names, but since there is the new shaders version 4.0.1 how can I implement them?

File is 10Bit error?

running (cpu):
python3 Anime4K.py -m shader --shader_dir "./shaders" --width 3840 --height 2160 -i input.mkv --output x264_upscale.mkv

results in:
File is 10Bit Traceback (most recent call last): File "Anime4K.py", line 54, in <module> shader(fn, args['width'], args['height'], args['shader_dir'], args['bit'], outname) File "/home/sinnx3/Anime4K/shader.py", line 281, in shader cpu_shader(fn, width, height, shader, ten_bit, outname, files=files) File "/home/sinnx3/Anime4K/shader.py", line 384, in cpu_shader _m = MediaInfo.parse(fn) File "/home/sinnx3/.local/lib/python3.8/site-packages/pymediainfo/__init__.py", line 421, in parse lib, handle, lib_version_str, lib_version = cls._get_library(library_file) File "/home/sinnx3/.local/lib/python3.8/site-packages/pymediainfo/__init__.py", line 323, in _get_library raise OSError("Failed to load library") OSError: Failed to load library sinnx3@DESKTOP-D3LHBKG:~/Anime4K$

running (gpu):
python3 Anime4K.py -m shader --shader_dir "./shaders" --width 3840 --height 2160 -i input.mkv --output x264_upscale.mkv

File is 10Bit Traceback (most recent call last): File "Anime4K.py", line 54, in <module> shader(fn, args['width'], args['height'], args['shader_dir'], args['bit'], outname) File "/home/sinnx3/Anime4K/shader.py", line 283, in shader gpu_shader(fn, width, height, shader, ten_bit, outname, files=files) File "/home/sinnx3/Anime4K/shader.py", line 305, in gpu_shader _m = MediaInfo.parse(fn) File "/home/sinnx3/.local/lib/python3.8/site-packages/pymediainfo/__init__.py", line 421, in parse lib, handle, lib_version_str, lib_version = cls._get_library(library_file) File "/home/sinnx3/.local/lib/python3.8/site-packages/pymediainfo/__init__.py", line 323, in _get_library raise OSError("Failed to load library") OSError: Failed to load library

Thanks :D

I made anime4KCPP build on macOS. Check it out, it might be faster than this. I personally decided to use less intensive shaders which my laptop could support running in realtime. Also, I noticed just using the sharpeners without upscaling was good enough for some videos without being as intensive.

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.