Giter Club home page Giter Club logo

anime4k-gui's Introduction

Hello World!

Hi, I'm Mikoล‚aj. I am a Java developer and system administrator from Poland. I'm currently working as freelancer, mainly as Bukkit and Bungeecord plugins programmer. I did some projects with Spring, Go, PHP and more. Contact me if you have some questions!

๐Ÿ‘จโ€๐Ÿ’ผ About me:

  • ๐Ÿ‘จโ€๐Ÿ’ป I'm 22 years old Java Developer
  • ๐Ÿ“– Learing backend web development, mainly Spring with Hibernate
  • ๐Ÿ’ฐ Currently working as freelancer, coding Bukkit and BungeeCord plugins
  • ๐Ÿ› ๏ธ Love Hackintoshes and iOS jailbreaking
  • ๐ŸŒ Visit my website for complete presentation!

๐Ÿ“จ Contact:


โš™๏ธ Tech Stack:

๐Ÿ› ๏ธ Tools:

๐Ÿ“ˆ My Github Stats:

anime4k-gui's People

Contributors

mikigal avatar simplepcbuilding avatar thomasxu02 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

anime4k-gui's Issues

Speed display incorrect

The Speed thing shows as 0.5 speed (this is the speed of the CPU upscaling while the normal full GPU shows it as 1x speed

noted last night in the testing for an unknown reason when using the CPU encoding it breaks the speed

FFMPEG Error: exit status 0xffffffd8 - Intel compatibility problem

I tried many times. But I cannot upscale. Can you fix it, please?
Processing [Big Nova] Shoujo Commando IZUMI - 00 (9AD1DD55).mkv (1 / 1)...
[21:40:55] [Debug] Working directory: C:\Users\ADMIN\Downloads\Anime4K-GUI\Anime4K-GUI
[21:40:55] [Debug] Input path: D:\Shoujo Commando IZUMI 00-15 Full Series Batch MKV[Big Nova] Shoujo Commando IZUMI - 00 (9AD1DD55).mkv
[21:40:55] [Debug] Output path: D:\Shoujo Commando IZUMI 00-15 Full Series Batch MKV[Big Nova] Shoujo Commando IZUMI - 00 (9AD1DD55)_upscaled.mkv
[21:40:55] [Debug] Target resolution: 1440x1080 (4:3)
[21:40:55] [Debug] Shaders: shaders/FSRCNNX_x2_16-0-4-1.glsl
[21:40:55] [Debug] Output format: mkv
[21:40:55] [Debug] FFMPEG command: .\ffmpeg.exe\ffmpeg.exe -hide_banner -y -hwaccel vulkan -i D:\Shoujo Commando IZUMI 00-15 Full Series Batch MKV[Big Nova] Shoujo Commando IZUMI - 00 (9AD1DD55).mkv -init_hw_device vulkan -vf format=yuv420p,hwupload,libplacebo=w=1440:h=1080:upscaler=ewa_lanczos:custom_shader_path=shaders/FSRCNNX_x2_16-0-4-1.glsl,hwdownload,format=yuv420p -c:a copy -c:s mov_text -map 0 -c:v libx264 -preset slow D:\Shoujo Commando IZUMI 00-15 Full Series Batch MKV[Big Nova] Shoujo Commando IZUMI - 00 (9AD1DD55)_upscaled.mkv
[21:40:56] [Debug] Input #0, matroska,webm, from 'D:\Shoujo Commando IZUMI 00-15 Full Series Batch MKV[Big Nova] Shoujo Commando IZUMI - 00 (9AD1DD55).mkv':
[21:40:56] [Debug] Metadata:
[21:40:56] [Debug] encoder : libebml v1.3.6 + libmatroska v1.4.9
[21:40:56] [Debug] creation_time : 2020-04-26T18:36:57.000000Z
[21:40:56] [Debug] Duration: 00:00:20.04, start: 0.000000, bitrate: 1389 kb/s
[21:40:56] [Debug] Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 656x480 [SAR 1:1 DAR 41:30], 23.98 fps, 23.98 tbr, 1k tbn (default)
[21:40:56] [Debug] Metadata:
[21:40:56] [Debug] BPS-eng : 1278062
[21:40:56] [Debug] DURATION-eng : 00:00:20.020000000
[21:40:56] [Debug] NUMBER_OF_FRAMES-eng: 480
[21:40:56] [Debug] NUMBER_OF_BYTES-eng: 3198352
[21:40:56] [Debug] _STATISTICS_WRITING_APP-eng: mkvmerge v30.1.0 ('Forever And More') 64-bit
[21:40:56] [Debug] _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-26 18:36:57
[21:40:56] [Debug] _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[21:40:56] [Debug] Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s (default)
[21:40:56] [Debug] Metadata:
[21:40:56] [Debug] BPS-eng : 106692
[21:40:56] [Debug] DURATION-eng : 00:00:20.040000000
[21:40:56] [Debug] NUMBER_OF_FRAMES-eng: 835
[21:40:56] [Debug] NUMBER_OF_BYTES-eng: 267264
[21:40:56] [Debug] _STATISTICS_WRITING_APP-eng: mkvmerge v30.1.0 ('Forever And More') 64-bit
[21:40:56] [Debug] _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-26 18:36:57
[21:40:56] [Debug] _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[21:40:56] [Debug] Stream #0:2: Subtitle: ass (default)
[21:40:56] [Debug] Metadata:
[21:40:56] [Debug] BPS-eng : 100
[21:40:56] [Debug] DURATION-eng : 00:00:19.680000000
[21:40:56] [Debug] NUMBER_OF_FRAMES-eng: 5
[21:40:56] [Debug] NUMBER_OF_BYTES-eng: 246
[21:40:56] [Debug] _STATISTICS_WRITING_APP-eng: mkvmerge v30.1.0 ('Forever And More') 64-bit
[21:40:56] [Debug] _STATISTICS_WRITING_DATE_UTC-eng: 2020-04-26 18:36:57
[21:40:56] [Debug] _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[21:40:56] [Debug] Stream mapping:
[21:40:56] [Debug] Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
[21:40:56] [Debug] Stream #0:1 -> #0:1 (copy)
[21:40:56] [Debug] Stream #0:2 -> #0:2 (ass (ssa) -> mov_text (native))
[21:40:56] [Debug] Press [q] to stop, [?] for help
[21:40:56] [Debug] Impossible to convert between the formats supported by the filter 'Parsed_format_0' and the filter 'auto_scale_0'
[21:40:56] [Debug] [vf#0:0 @ 000001dbc7899500] Error reinitializing filters!
[21:40:56] [Debug] [vf#0:0 @ 000001dbc7899500] Task finished with error code: -40 (Function not implemented)
[21:40:56] [Debug] [vf#0:0 @ 000001dbc7899500] Terminating thread with return code -40 (Function not implemented)
[21:40:56] [Debug] [vost#0:0/libx264 @ 000001dbc778ae00] Could not open encoder before EOF
[21:40:56] [Debug] [vost#0:0/libx264 @ 000001dbc778ae00] Task finished with error code: -22 (Invalid argument)
[21:40:56] [Debug] [vost#0:0/libx264 @ 000001dbc778ae00] Terminating thread with return code -22 (Invalid argument)
[21:40:56] [Debug] [out#0/matroska @ 000001dbc78087c0] Nothing was written into output file, because at least one of its streams received no packets.
[21:40:56] [Debug] frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A
[21:40:56] [Debug] Conversion failed!

[21:40:57] Critical error occurred, upscaling has been stopped
[21:40:57] Please make issue on GitHub with logs, upscaling settings and your computer specification

[21:40:57] FFMPEG Error:
[21:40:57] exit status 0xffffffd8

[21:40:57] Critical error occurred, upscaling has been stopped
[21:40:57] Please make issue on GitHub with logs, upscaling settings and your computer specification

[21:40:57] FFMPEG logs:
[21:40:57] Input #0, matroska,webm, from 'D:\Shoujo Commando IZUMI 00-15 Full Series Batch MKV[Big Nova] Shoujo Commando IZUMI - 00 (9AD1DD55).mkv':
Metadata:
encoder : libebml v1.3.6 + libmatroska v1.4.9
creation_time : 2020-04-26T18:36:57.000000Z
Duration: 00:00:20.04, start: 0.000000, bitrate: 1389 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 656x480 [SAR 1:1 DAR 41:30], 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
BPS-eng : 1278062
DURATION-eng : 00:00:20.020000000
NUMBER_OF_FRAMES-eng: 480
NUMBER_OF_BYTES-eng: 3198352
_STATISTICS_WRITING_APP-eng: mkvmerge v30.1.0 ('Forever And More') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-04-26 18:36:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: mp3, 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
BPS-eng : 106692
DURATION-eng : 00:00:20.040000000
NUMBER_OF_FRAMES-eng: 835
NUMBER_OF_BYTES-eng: 267264
_STATISTICS_WRITING_APP-eng: mkvmerge v30.1.0 ('Forever And More') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-04-26 18:36:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2: Subtitle: ass (default)
Metadata:
BPS-eng : 100
DURATION-eng : 00:00:19.680000000
NUMBER_OF_FRAMES-eng: 5
NUMBER_OF_BYTES-eng: 246
_STATISTICS_WRITING_APP-eng: mkvmerge v30.1.0 ('Forever And More') 64-bit
_STATISTICS_WRITING_DATE_UTC-eng: 2020-04-26 18:36:57
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (ass (ssa) -> mov_text (native))
Press [q] to stop, [?] for help
Impossible to convert between the formats supported by the filter 'Parsed_format_0' and the filter 'auto_scale_0'
[vf#0:0 @ 000001dbc7899500] Error reinitializing filters!
[vf#0:0 @ 000001dbc7899500] Task finished with error code: -40 (Function not implemented)
[vf#0:0 @ 000001dbc7899500] Terminating thread with return code -40 (Function not implemented)
[vost#0:0/libx264 @ 000001dbc778ae00] Could not open encoder before EOF
[vost#0:0/libx264 @ 000001dbc778ae00] Task finished with error code: -22 (Invalid argument)
[vost#0:0/libx264 @ 000001dbc778ae00] Terminating thread with return code -22 (Invalid argument)
[out#0/matroska @ 000001dbc78087c0] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A
Conversion failed!

Option to select video encoder

i have a 1060 and while with CUDA I can do 1:1 speeds the use of NVENC takes a 200mb into a 30mb low bitrate mess with the Low compression and while I can turn off Hardware A, it takes twice as long to upscale so is there a way to use CUDA to upscale but CPU to encode

Option to choose quality

Can we get an option in the GUI to choose the quality ourselves? What I mean to say is let's say I don't want to use the built-in quality parameters in the GUI and I want to use ffmpeg's crf 0 or crf 52 or whatever, we should be able to do that, maybe perhaps we can also get a input box in the GUI where we can also pass on additional FFmpeg CLI parameters?

Thank you!

Option to burn in subs

Would like an option to burn in subs from mkv file when outputting to mp4 should be feasible if ffmpeg is used under the hood?

[Error] When Converting .mkv with embeded fonts (-c:s mov_text)

Hi Mikigal,

I've done some testing and it looks like there are issue with processing anime with .ass subtitles and .ttf attachments.

I've used the same video file but removed the .ass subtitle and .ttf attachments it appears to covert without issue even if there are still attachment to the .MKV container.

See the log below.

Command from logs

ffmpeg.exe -hide_banner -y -hwaccel_device cuda -hwaccel_output_format cuda -i 1.mkv -init_hw_device vulkan -vf format=yuv420p,hwupload,libplacebo=w=1440:h=1080:upscaler=ewa_lanczos:custom_shader_path=shaders/Anime4K_ModeA.glsl,hwdownload,format=yuv420p -c:a copy -c:s mov_text -map 0 -c:v h264_nvenc -preset slow 1_upscaled.mkv

[matroska @ 000001d46672ae40] Subtitle codec 94213 is not supported.
[out#0/matroska @ 000001d4653630c0] Could not write header (incorrect codec parameters ?): Function not implemented
[vf#0:2 @ 000001d466e82e40] Error sending frames to consumers: Function not implemented
[vf#0:2 @ 000001d466e82e40] Task finished with error code: -40 (Function not implemented)
[vf#0:2 @ 000001d466e82e40] Terminating thread with return code -40 (Function not implemented)
[out#0/matroska @ 000001d4653630c0] Nothing was written into output file, because at least one of its streams received no packets.
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=N/A bitrate=N/A speed=N/A    
Conversion failed!

FFMPEG Error: exit status 0xc0000005

I don't really have much of a clue what's wrong. I don't. When I upload another version of ffmpeg, I get another error

`[20:14:21] Detected GPUs (2):
[20:14:21] 1. Virtual Desktop Monitor
[20:14:21] 2. AMD Radeon (TM) R9 380 Series
[20:14:21] Available GPU acceleration: AMF
[20:14:26] Added file C:\Users\Vladimir\Downloads\ใ€ŒAvidใ€86 - Eighty Six _ AMV.mp4
[20:14:27] Started upscaling! Upscaled videos will be saved in original directory, with _upscaled suffix in files name
[20:14:27] Processing ใ€ŒAvidใ€86 - Eighty Six _ AMV.mp4 (1 / 1)...

[20:14:28] Critical error occurred, upscaling has been stopped
[20:14:28] Please make issue on GitHub with logs, upscaling settings and your computer specification

[20:14:28] FFMPEG Error:
[20:14:28] exit status 0xc0000005

[20:14:28] Critical error occurred, upscaling has been stopped
[20:14:28] Please make issue on GitHub with logs, upscaling settings and your computer specification

[20:14:28] FFMPEG logs:
[20:14:28] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Vladimir\Downloads\ใ€ŒAvidใ€86 - Eighty Six _ AMV.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2021-08-18T08:52:25.000000Z
Duration: 00:04:08.64, start: 0.000000, bitrate: 1124 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 993 kb/s, 24 fps, 24 tbr, 12288 tbn (default)
Metadata:
creation_time : 2021-08-18T08:52:25.000000Z
handler_name : ISO Media file produced by Google Inc. Created on: 08/18/2021.
vendor_id : [0][0][0][0]
Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2021-08-18T08:52:25.000000Z
handler_name : ISO Media file produced by Google Inc. Created on: 08/18/2021.
vendor_id : [0][0][0][0]
[out#0/mp4 @ 0000027361568c00] Codec AVOption preset (Encoding preset) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_amf))`

Problem with the upscaling

I think there is a problem when upscaling, causing the video to not be as good as when upscaling using mpv with anime4k shaders (it might even be worse than the original video tbh). Also, it doesn't seem like the compression is doing well(on a 46 000KB file there is only a difference of 5000KB between low and high settings, and even on the low one we lose 40KB of data).
issue

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.