thoughtfuldev / anime4k Goto Github PK
View Code? Open in Web Editor NEWMakes it easy to encode a Anime using Anime4K with predefined encoding profiles!
License: GNU General Public License v3.0
Makes it easy to encode a Anime using Anime4K with predefined encoding profiles!
License: GNU General Public License v3.0
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-dev
and 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
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.
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?
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.