k4yt3x / video2x

A machine learning-based lossless video super resolution framework. Est. Hack the Valley II, 2018.
https://video2x.org
GNU Affero General Public License v3.0
10.93k stars 1.02k forks source link

Non-zero exit status 1 (& NoneType) #275

Closed shplack closed 4 years ago

shplack commented 4 years ago

Environment Information

Module Version
Video2X GUI 2.3.0 & 2.4.0

Symptom

When choosing multiple files or folders, i.e. batch processing, ffmpeg encountered a NoneType error. It does not encounter this error in single file processing. I was able to reproduce it before, but unable to now. Now I only get this error.

Screenshots or Error Messages

image

Please paste your error message in the code block down below:

[!] ERROR: Subprocess 28312 exited with code 
[!] ERROR: Subprocess execution ran into an 
[!] WARNING: Terminating all processes
Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x\tmp8xy9iwnu
Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpkhak__xk
Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x
Traceback (most recent call 
File "video2x_gui.py", line 101, in 
File "upscaler.py", line 629, in 
File "upscaler.py", line 526, in 
File "upscaler.py", line 382, in 
File "upscaler.py", line 366, in _wait
subprocess.CalledProcessError: Command '['C:\\Users\\cfahe\\Desktop\\video2x\\video2x-4.3.0-win32-full\\dependencies\\ffmpeg-latest-win64-static\\bin\\ffmpeg', '-hwaccel', 'auto', '-y', '-i', 'C:\\Users\\cfahe\\AppData\\Local\\Temp\\video2x\\tmp0v39y03q\\intermediate.mkv', '-i', 'Y:\\Anime\\Naruto\\Season 1\\S01E01.avi', '-map', '0:v?', '-map', '1:a?', '-map', '1:s?', '-map', '1:d?', '-map', '1:t?', '-c', 'copy', '-map_metadata', '0', '-metadata', 'comment=Upscaled by Video2X', '-movflags', 'use_metadata_tags', 'D:\\Anime\\Naruto\\Season 1\\S01E01.avi']' returned non-zero exit status 1.
k4yt3x commented 4 years ago

Is is not enough info. It only tells me that the migration phase ran into a problem, but it's not saying specifically what went wrong. I'll need to see more output from the console.

shplack commented 4 years ago

Alright, I'll try to reproduce it.

shplack commented 4 years ago

So, the folder isn't allowed to have any files other than video files? Got this error while having subtitles in the folder

image

Still working on reproducing the other error.

k4yt3x commented 4 years ago

This error message still doesn't contain any useful output. Which is why it says "When reporting an error, please include console output."

shplack commented 4 years ago

So it does output an upscaled video file, in .mkv even though the input file is .avi. Here is the entirety of the error

[+] INFO: Loading files into processing queue                                                                           [+] INFO: Loading files from directory                                                                                  2020-05-28 22:25:18.801535 [+] INFO: Input path(s): Y:\Anime\Naruto\Season 1                                            [+] INFO: Loaded files into processing queue                                                                            2020-05-28 22:25:18.829611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E01.avi                                    2020-05-28 22:25:18.829611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E02.avi                                    2020-05-28 22:25:18.829611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E03.avi                                    2020-05-28 22:25:18.830611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E03.en.srt                                 2020-05-28 22:25:18.830611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E04.avi                                    2020-05-28 22:25:18.830611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E04.en.srt                                 2020-05-28 22:25:18.830611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E05.avi                                    2020-05-28 22:25:18.830611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E05.en.srt                                 2020-05-28 22:25:18.830611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E06.avi                                    2020-05-28 22:25:18.831612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E07.avi                                    2020-05-28 22:25:18.831612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E08.avi                                    2020-05-28 22:25:18.831612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E09.avi                                    2020-05-28 22:25:18.831612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E10.avi                                    2020-05-28 22:25:18.831612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E11.avi                                    2020-05-28 22:25:18.832611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E12.avi                                    2020-05-28 22:25:18.832611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E13.avi                                    2020-05-28 22:25:18.832611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E14.avi                                    2020-05-28 22:25:18.832611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E15.avi                                    2020-05-28 22:25:18.832611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E16.avi                                    2020-05-28 22:25:18.832611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E17.avi                                    2020-05-28 22:25:18.833612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E18.avi                                    2020-05-28 22:25:18.833612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E19.avi                                    2020-05-28 22:25:18.833612 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E20.avi                                    2020-05-28 22:25:18.834610 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E21.avi                                    2020-05-28 22:25:18.834610 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E22.avi                                    2020-05-28 22:25:18.834610 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E23.avi                                    2020-05-28 22:25:18.834610 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E24.avi                                    2020-05-28 22:25:18.835611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E25.avi                                    2020-05-28 22:25:18.835611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E26-27.avi                                 2020-05-28 22:25:18.835611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E28.avi                                    2020-05-28 22:25:18.836611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E29.avi                                    2020-05-28 22:25:18.836611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E30.avi                                    2020-05-28 22:25:18.837610 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E31.avi                                    2020-05-28 22:25:18.837610 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E32.avi                                    2020-05-28 22:25:18.837610 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E33.avi                                    2020-05-28 22:25:18.839611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E34.avi                                    2020-05-28 22:25:18.839611 [+] INFO: Input file: Y:\Anime\Naruto\Season 1\S01E35.avi                                    2020-05-28 22:25:18.888643 [+] INFO: Creating cache directory C:\Users\cfahe\AppData\Local\Temp\video2x                 2020-05-28 22:25:18.888643 [+] INFO: Extracted frames are being saved to: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpeir28nhk                                                                                                                 2020-05-28 22:25:18.889644 [+] INFO: Upscaled frames are being saved to: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj                                                                                                                  [+] INFO: Reading video information                                                                                     2020-05-28 22:25:18.890645 [+] INFO: Executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\ffmpeg-latest-win64-static\bin\ffprobe' -v quiet -print_format json -show_format -show_streams -i 'Y:\Anime\Naruto\Season 1\S01E01.avi'                                                                                                           [+] INFO: Framerate: 23.976                                                                                             2020-05-28 22:25:19.135644 [+] INFO: Executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\ffmpeg-latest-win64-static\bin\ffmpeg' -hwaccel auto -y -i 'Y:\Anime\Naruto\Season 1\S01E01.avi' -pix_fmt rgba64be 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpeir28nhk\extracted_%0d.png'                                                      2020-05-28 22:25:19.319644 [+] INFO: Main process waiting for subprocesses to exit                                      ffmpeg version git-2020-05-15-b18fd2b Copyright (c) 2000-2020 the FFmpeg developers                                       built with gcc 9.3.1 (GCC) 20200513                                                                                     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf                                        libavutil      56. 45.100 / 56. 45.100                                                                                  libavcodec     58. 84.100 / 58. 84.100                                                                                  libavformat    58. 43.100 / 58. 43.100                                                                                  libavdevice    58.  9.103 / 58.  9.103                                                                                  libavfilter     7. 81.100 /  7. 81.100                                                                                  libswscale      5.  6.101 /  5.  6.101                                                                                  libswresample   3.  6.100 /  3.  6.100                                                                                  libpostproc    55.  6.100 / 55.  6.100                                                                                [mp3float @ 0000025af080f600] Header missing                                                                            Input #0, avi, from 'Y:\Anime\Naruto\Season 1\S01E01.avi':                                                                Metadata:                                                                                                                 encoder         : Nandub v1.0rc2                                                                                        title           : ::. Naruto - Episode 01 - Enter! Uzumaki Naruto .::                                                   ISBJ            : ::. Naruto - Episode 01 - Enter! Uzumaki Naruto .::                                                   artist          : ::. #AnimeOne@irc.Aniverse.com // #ANBUDOM@irc.Aniverse.com .::                                       copyright       :                                                                                                       comment         :                                                                                                     Duration: 00:23:02.01, start: 0.000000, bitrate: 1080 kb/s                                                                Stream #0:0: Video: msmpeg4v3 (DIV3 / 0x33564944), yuv420p, 640x480, 940 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc                                                                                                                       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 127 kb/s                                     Stream mapping:                                                                                                           Stream #0:0 -> #0:0 (msmpeg4v3 (msmpeg4) -> png (native))                                                             Press [q] to stop, [?] for help                                                                                         [swscaler @ 0000025af0949080] No accelerated colorspace conversion found from yuv420p to rgba64be.                      Output #0, image2, to 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpeir28nhk\extracted_%0d.png':                          Metadata:                                                                                                                 comment         :                                                                                                       title           : ::. Naruto - Episode 01 - Enter! Uzumaki Naruto .::                                                   ISBJ            : ::. Naruto - Episode 01 - Enter! Uzumaki Naruto .::                                                   artist          : ::. #AnimeOne@irc.Aniverse.com // #ANBUDOM@irc.Aniverse.com .::                                       copyright       :                                                                                                       encoder         : Lavf58.43.100                                                                                         Stream #0:0: Video: png, rgba64be, 640x480, q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc                           Metadata:                                                                                                                 encoder         : Lavc58.84.100 png                                                                               frame=33135 fps= 51 q=-0.0 Lsize=N/A time=00:23:02.00 bitrate=N/A dup=1 drop=0 speed=2.12x                              video:33750018kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown                   2020-05-28 22:36:11.094991 [+] INFO: Subprocess 36092 exited with code 0                                                2020-05-28 22:36:11.197990 [+] INFO: Executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\ffmpeg-latest-win64-static\bin\ffprobe' -v quiet -pix_fmts                                                                2020-05-28 22:36:11.263936 [+] INFO: {'yuv420p': 12, 'yuyv422': 16, 'rgb24': 24, 'bgr24': 24, 'yuv422p': 16, 'yuv444p': 24, 'yuv410p': 9, 'yuv411p': 12, 'gray': 8, 'monow': 1, 'monob': 1, 'pal8': 8, 'yuvj420p': 12, 'yuvj422p': 16, 'yuvj444p': 24, 'uyvy422': 16, 'uyyvyy411': 12, 'bgr8': 8, 'bgr4': 4, 'bgr4_byte': 4, 'rgb8': 8, 'rgb4': 4, 'rgb4_byte': 4, 'nv12': 12, 'nv21': 12, 'argb': 32, 'rgba': 32, 'abgr': 32, 'bgra': 32, 'gray16be': 16, 'gray16le': 16, 'yuv440p': 16, 'yuvj440p': 16, 'yuva420p': 20, 'rgb48be': 48, 'rgb48le': 48, 'rgb565be': 16, 'rgb565le': 16, 'rgb555be': 15, 'rgb555le': 15, 'bgr565be': 16, 'bgr565le': 16, 'bgr555be': 15, 'bgr555le': 15, 'vaapi_moco': 0, 'vaapi_idct': 0, 'vaapi_vld': 0, 'yuv420p16le': 24, 'yuv420p16be': 24, 'yuv422p16le': 32, 'yuv422p16be': 32, 'yuv444p16le': 48, 'yuv444p16be': 48, 'dxva2_vld': 0, 'rgb444le': 12, 'rgb444be': 12, 'bgr444le': 12, 'bgr444be': 12, 'ya8': 16, 'bgr48be': 48, 'bgr48le': 48, 'yuv420p9be': 13, 'yuv420p9le': 13, 'yuv420p10be': 15, 'yuv420p10le': 15, 'yuv422p10be': 20, 'yuv422p10le': 20, 'yuv444p9be': 27, 'yuv444p9le': 27, 'yuv444p10be': 30, 'yuv444p10le': 30, 'yuv422p9be': 18, 'yuv422p9le': 18, 'gbrp': 24, 'gbrp9be': 27, 'gbrp9le': 27, 'gbrp10be': 30, 'gbrp10le': 30, 'gbrp16be': 48, 'gbrp16le': 48, 'yuva422p': 24, 'yuva444p': 32, 'yuva420p9be': 22, 'yuva420p9le': 22, 'yuva422p9be': 27, 'yuva422p9le': 27, 'yuva444p9be': 36, 'yuva444p9le': 36, 'yuva420p10be': 25, 'yuva420p10le': 25, 'yuva422p10be': 30, 'yuva422p10le': 30, 'yuva444p10be': 40, 'yuva444p10le': 40, 'yuva420p16be': 40, 'yuva420p16le': 40, 'yuva422p16be': 48, 'yuva422p16le': 48, 'yuva444p16be': 64, 'yuva444p16le': 64, 'vdpau': 0, 'xyz12le': 36, 'xyz12be': 36, 'nv16': 16, 'nv20le': 20, 'nv20be': 20, 'rgba64be': 64, 'rgba64le': 64, 'bgra64be': 64, 'bgra64le': 64, 'yvyu422': 16, 'ya16be': 32, 'ya16le': 32, 'gbrap': 32, 'gbrap16be': 64, 'gbrap16le': 64, 'qsv': 0, 'mmal': 0, 'd3d11va_vld': 0, 'cuda': 0, '0rgb': 24, 'rgb0': 24, '0bgr': 24, 'bgr0': 24, 'yuv420p12be': 18, 'yuv420p12le': 18, 'yuv420p14be': 21, 'yuv420p14le': 21, 'yuv422p12be': 24, 'yuv422p12le': 24, 'yuv422p14be': 28, 'yuv422p14le': 28, 'yuv444p12be': 36, 'yuv444p12le': 36, 'yuv444p14be': 42, 'yuv444p14le': 42, 'gbrp12be': 36, 'gbrp12le': 36, 'gbrp14be': 42, 'gbrp14le': 42, 'yuvj411p': 12, 'bayer_bggr8': 8, 'bayer_rggb8': 8, 'bayer_gbrg8': 8, 'bayer_grbg8': 8, 'bayer_bggr16le': 16, 'bayer_bggr16be': 16, 'bayer_rggb16le': 16, 'bayer_rggb16be': 16, 'bayer_gbrg16le': 16, 'bayer_gbrg16be': 16, 'bayer_grbg16le': 16, 'bayer_grbg16be': 16, 'xvmc': 0, 'yuv440p10le': 20, 'yuv440p10be': 20, 'yuv440p12le': 24, 'yuv440p12be': 24, 'ayuv64le': 64, 'ayuv64be': 64, 'videotoolbox_vld': 0, 'p010le': 15, 'p010be': 15, 'gbrap12be': 48, 'gbrap12le': 48, 'gbrap10be': 40, 'gbrap10le': 40, 'mediacodec': 0, 'gray12be': 12, 'gray12le': 12, 'gray10be': 10, 'gray10le': 10, 'p016le': 24, 'p016be': 24, 'd3d11': 0, 'gray9be': 9, 'gray9le': 9, 'gbrpf32be': 96, 'gbrpf32le': 96, 'gbrapf32be': 128, 'gbrapf32le': 128, 'drm_prime': 0, 'opencl': 0, 'gray14be': 14, 'gray14le': 14, 'grayf32be': 32, 'grayf32le': 32, 'yuva422p12be': 36, 'yuva422p12le': 36, 'yuva444p12be': 48, 'yuva444p12le': 48, 'nv24': 24, 'nv42': 24, 'vulkan': 0, 'y210be': 20, 'y210le': 20}                                                                                                             [+] INFO: Starting to upscale extracted frames                                                                          2020-05-28 22:36:20.490804 [+] INFO: [upscaler] Subprocess 33840 executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\waifu2x-caffe\waifu2x-caffe-cui' --tta 0 --gpu 0 --batch_size 1 --crop_size 128 --output_depth 64 --output_quality 8 --process gpu --model_dir 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\waifu2x-caffe\models\cunet' --noise_level 3 --mode noise_scale --output_extention png --scale_ratio 2.0 --input_path 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpeir28nhk\0' --output_path 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj'                                                                                                                     2020-05-28 22:36:20.523823 [+] INFO: Starting progress monitor                                                          2020-05-28 22:36:20.524805 [+] INFO: Starting upscaled image cleaner                                                    2020-05-28 22:36:20.525829 [+] INFO: Main process waiting for subprocesses to exit                                      Upscaling Progress: 100%|#####################################################9| 33133/33135 [3:17:43<00:00,  2.88it/s] 変換に成功しました                                                                                                      Upscaling Progress: 100%|######################################################| 33135/33135 [3:17:44<00:00,  2.34it/s]2020-05-29 01:54:05.600994 [+] INFO: Subprocess 28020 exited with code 0                                                 2020-05-29 01:54:05.707059 [+] INFO: Killing progress monitor                                                           Upscaling Progress: 100%|######################################################| 33135/33135 [3:17:45<00:00,  2.79it/s] 2020-05-29 01:54:06.419955 [+] INFO: Killing upscaled image cleaner                                                     [+] INFO: Upscaling completed                                                                                           [+] INFO: Converting extracted frames into video                                                                        2020-05-29 01:54:22.610138 [+] INFO: Executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\ffmpeg-latest-win64-static\bin\ffmpeg' -r 23.976 -hwaccel auto -y -f image2 -i 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj\extracted_%d.png' -vcodec libx264 -pix_fmt yuv420p -crf 17 -vf 'pad=ceil(iw/2)*2:ceil(ih/2)*2' -tune animation 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj\intermediate.mkv'                                             2020-05-29 01:54:22.838259 [+] INFO: Main process waiting for subprocesses to exit                                      ffmpeg version git-2020-05-15-b18fd2b Copyright (c) 2000-2020 the FFmpeg developers                                       built with gcc 9.3.1 (GCC) 20200513                                                                                     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf                                        libavutil      56. 45.100 / 56. 45.100                                                                                  libavcodec     58. 84.100 / 58. 84.100                                                                                  libavformat    58. 43.100 / 58. 43.100                                                                                  libavdevice    58.  9.103 / 58.  9.103                                                                                  libavfilter     7. 81.100 /  7. 81.100                                                                                  libswscale      5.  6.101 /  5.  6.101                                                                                  libswresample   3.  6.100 /  3.  6.100                                                                                  libpostproc    55.  6.100 / 55.  6.100                                                                                Input #0, image2, from 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj\extracted_%d.png':                          Duration: 00:23:02.01, start: 0.000000, bitrate: N/A                                                                      Stream #0:0: Video: png, rgba(pc), 1280x960, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc                             Stream mapping:                                                                                                           Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))                                                                  Press [q] to stop, [?] for help                                                                                         [libx264 @ 000001fb9d110c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2                      [libx264 @ 000001fb9d110c00] profile High, level 4.0, 4:2:0, 8-bit                                                      [libx264 @ 000001fb9d110c00] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=6 deblock=1:1:1 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=0.40:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=5 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=17.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:0.60                                          Output #0, matroska, to 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj\intermediate.mkv':                         Metadata:                                                                                                                 encoder         : Lavf58.43.100                                                                                         Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p, 1280x960, q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc        Metadata:                                                                                                                 encoder         : Lavc58.84.100 libx264                                                                               Side data:                                                                                                                cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A                                                     frame=33135 fps= 94 q=-1.0 Lsize=  346020kB time=00:23:01.88 bitrate=2051.3kbits/s speed=3.91x                          video:345772kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.071653%                   [libx264 @ 000001fb9d110c00] frame I:389   Avg QP:13.11  size: 74671                                                    [libx264 @ 000001fb9d110c00] frame P:8039  Avg QP:15.76  size: 27234                                                    [libx264 @ 000001fb9d110c00] frame B:24707 Avg QP:19.77  size:  4294                                                    [libx264 @ 000001fb9d110c00] consecutive B-frames:  4.2%  4.5%  3.4% 30.8% 19.7% 37.4%                                  [libx264 @ 000001fb9d110c00] mb I  I16..4: 16.4% 57.0% 26.6%                                                            [libx264 @ 000001fb9d110c00] mb P  I16..4:  6.5% 15.0%  2.6%  P16..4: 28.5% 13.1%  5.8%  0.0%  0.0%    skip:28.6%       [libx264 @ 000001fb9d110c00] mb B  I16..4:  0.6%  0.9%  0.1%  B16..8: 21.9%  2.5%  0.4%  direct: 1.8%  skip:71.9%  L0:39.2% L1:54.9% BI: 5.9%                                                                                                   [libx264 @ 000001fb9d110c00] 8x8 transform intra:60.3% inter:75.4%                                                      [libx264 @ 000001fb9d110c00] coded y,uvDC,uvAC intra: 33.1% 59.8% 24.9% inter: 9.4% 12.0% 0.8%                          [libx264 @ 000001fb9d110c00] i16 v,h,dc,p: 39% 25%  9% 27%                                                              [libx264 @ 000001fb9d110c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 17% 27%  5%  6%  5%  5%  5%  4%                         [libx264 @ 000001fb9d110c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 15%  5%  9%  7%  7%  5%  4%                         [libx264 @ 000001fb9d110c00] i8c dc,h,v,p: 51% 21% 19%  9%                                                              [libx264 @ 000001fb9d110c00] Weighted P-Frames: Y:4.4% UV:2.1%                                                          [libx264 @ 000001fb9d110c00] ref P L0: 60.5%  9.6% 15.9%  5.2%  4.4%  3.9%  0.4%  0.0%                                  [libx264 @ 000001fb9d110c00] ref B L0: 85.4%  8.9%  3.2%  1.7%  0.7%                                                    [libx264 @ 000001fb9d110c00] ref B L1: 97.3%  2.7%                                                                      [libx264 @ 000001fb9d110c00] kb/s:2049.60                                                                               2020-05-29 02:00:16.238286 [+] INFO: Subprocess 18324 exited with code 0                                                [+] INFO: Conversion completed                                                                                          [+] INFO: Migrating audio, subtitles and other streams to upscaled video                                                2020-05-29 02:00:16.345337 [+] INFO: Executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\ffmpeg-latest-win64-static\bin\ffmpeg' -hwaccel auto -y -i 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj\intermediate.mkv' -i 'Y:\Anime\Naruto\Season 1\S01E01.avi' -map '0:v?' -map '1:a?' -map '1:s?' -map '1:d?' -map '1:t?' -c copy -map_metadata 0 -metadata 'comment=Upscaled by Video2X' -movflags use_metadata_tags 'D:\Anime\Naruto\Season 1\S01E01.avi'                                                                                                                        2020-05-29 02:00:16.358335 [+] INFO: Main process waiting for subprocesses to exit                                      ffmpeg version git-2020-05-15-b18fd2b Copyright (c) 2000-2020 the FFmpeg developers                                       built with gcc 9.3.1 (GCC) 20200513                                                                                     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf                                        libavutil      56. 45.100 / 56. 45.100                                                                                  libavcodec     58. 84.100 / 58. 84.100                                                                                  libavformat    58. 43.100 / 58. 43.100                                                                                  libavdevice    58.  9.103 / 58.  9.103                                                                                  libavfilter     7. 81.100 /  7. 81.100                                                                                  libswscale      5.  6.101 /  5.  6.101                                                                                  libswresample   3.  6.100 /  3.  6.100                                                                                  libpostproc    55.  6.100 / 55.  6.100                                                                                Input #0, matroska,webm, from 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj\intermediate.mkv':                   Metadata:                                                                                                                 ENCODER         : Lavf58.43.100                                                                                       Duration: 00:23:02.01, start: 0.000000, bitrate: 2051 kb/s                                                                Stream #0:0: Video: h264 (High), yuv420p(progressive), 1280x960, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)      Metadata:                                                                                                                 ENCODER         : Lavc58.84.100 libx264                                                                                 DURATION        : 00:23:02.007000000                                                                              [mp3float @ 000001c00234d500] Header missing                                                                            Input #1, avi, from 'Y:\Anime\Naruto\Season 1\S01E01.avi':                                                                Metadata:                                                                                                                 encoder         : Nandub v1.0rc2                                                                                        title           : ::. Naruto - Episode 01 - Enter! Uzumaki Naruto .::                                                   ISBJ            : ::. Naruto - Episode 01 - Enter! Uzumaki Naruto .::                                                   artist          : ::. #AnimeOne@irc.Aniverse.com // #ANBUDOM@irc.Aniverse.com .::                                       copyright       :                                                                                                       comment         :                                                                                                     Duration: 00:23:02.01, start: 0.000000, bitrate: 1080 kb/s                                                                Stream #1:0: Video: msmpeg4v3 (DIV3 / 0x33564944), yuv420p, 640x480, 940 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc                                                                                                                       Stream #1:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 127 kb/s                                     Output #0, avi, to 'D:\Anime\Naruto\Season 1\S01E01.avi':                                                                 Metadata:                                                                                                                 ICMT            : Upscaled by Video2X                                                                                   ISFT            : Lavf58.43.100                                                                                         Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 1280x960, q=2-31, 23.98 fps, 23.98 tbr, 47.95 tbn, 47.95 tbc (default)                                                                                               Metadata:                                                                                                                 ENCODER         : Lavc58.84.100 libx264                                                                                 DURATION        : 00:23:02.007000000                                                                                  Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, fltp, 127 kb/s                                     Stream mapping:                                                                                                           Stream #0:0 -> #0:0 (copy)                                                                                              Stream #1:1 -> #0:1 (copy)                                                                                            Press [q] to stop, [?] for help                                                                                         [avi @ 000001c001f67640] H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option with ffmpeg)                                                              av_interleaved_write_frame(): Invalid data found when processing input                                                  frame=    1 fps=0.0 q=-1.0 Lsize=      10kB time=00:00:00.00 bitrate=N/A speed=   0x                                    video:20kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown                         Conversion failed!                                                                                                      [!] ERROR: Subprocess 32892 exited with code 1                                                                          [!] ERROR: Subprocess execution ran into an error                                                                       [!] WARNING: Terminating all processes                                                                                  Traceback (most recent call last):                                                                                        File "upscaler.py", line 587, in run                                                                                    File "upscaler.py", line 382, in _wait                                                                                  File "upscaler.py", line 366, in _wait                                                                                subprocess.CalledProcessError: Command '['C:\\Users\\cfahe\\Desktop\\video2x\\video2x-4.3.0-win32-full\\dependencies\\ffmpeg-latest-win64-static\\bin\\ffmpeg', '-hwaccel', 'auto', '-y', '-i', 'C:\\Users\\cfahe\\AppData\\Local\\Temp\\video2x\\tmpseqfmvqj\\intermediate.mkv', '-i', 'Y:\\Anime\\Naruto\\Season 1\\S01E01.avi', '-map', '0:v?', '-map', '1:a?', '-map', '1:s?', '-map', '1:d?', '-map', '1:t?', '-c', 'copy', '-map_metadata', '0', '-metadata', 'comment=Upscaled by Video2X', '-movflags', 'use_metadata_tags', 'D:\\Anime\\Naruto\\Season 1\\S01E01.avi']' returned non-zero exit status 1.       [!] ERROR: Failed to migrate streams                                                                                    [!] WARNING: Trying to output video without additional streams                                                          [+] INFO: Writing intermediate file to: D:\Anime\Naruto\Season 1\S01E01.mkv                                             Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpeir28nhk                                      Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpseqfmvqj                                      Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x                                                  2020-05-29 02:00:30.306249 [+] INFO: Creating cache directory C:\Users\cfahe\AppData\Local\Temp\video2x                 2020-05-29 02:00:30.307250 [+] INFO: Extracted frames are being saved to: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpov4r5je6                                                                                                                 2020-05-29 02:00:30.308248 [+] INFO: Upscaled frames are being saved to: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpu8g1ka5v                                                                                                                  [+] INFO: Reading video information                                                                                     2020-05-29 02:00:30.309249 [+] INFO: Executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\ffmpeg-latest-win64-static\bin\ffprobe' -v quiet -print_format json -show_format -show_streams -i 'Y:\Anime\Naruto\Season 1\S01E02.avi'                                                                                                           [+] INFO: Framerate: 23.976                                                                                             2020-05-29 02:00:35.730342 [+] INFO: Executing: 'C:\Users\cfahe\Desktop\video2x\video2x-4.3.0-win32-full\dependencies\ffmpeg-latest-win64-static\bin\ffmpeg' -hwaccel auto -y -i 'Y:\Anime\Naruto\Season 1\S01E02.avi' -pix_fmt rgba64be 'C:\Users\cfahe\AppData\Local\Temp\video2x\tmpov4r5je6\extracted_%0d.png'                                                      2020-05-29 02:00:35.736325 [+] INFO: Main process waiting for subprocesses to exit                                      [!] ERROR: Subprocess 32892 exited with code 1                                                                          [!] ERROR: Subprocess execution ran into an error                                                                       [!] WARNING: Terminating all processes                                                                                  Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpov4r5je6                                      Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x\tmpu8g1ka5v                                      Cleaning up cache directory: C:\Users\cfahe\AppData\Local\Temp\video2x                                                  Traceback (most recent call last):                                                                                        File "video2x_gui.py", line 101, in run                                                                                 File "upscaler.py", line 629, in run                                                                                    File "upscaler.py", line 526, in run                                                                                    File "upscaler.py", line 382, in _wait                                                                                  File "upscaler.py", line 366, in _wait                                                                                subprocess.CalledProcessError: Command '['C:\\Users\\cfahe\\Desktop\\video2x\\video2x-4.3.0-win32-full\\dependencies\\ffmpeg-latest-win64-static\\bin\\ffmpeg', '-hwaccel', 'auto', '-y', '-i', 'C:\\Users\\cfahe\\AppData\\Local\\Temp\\video2x\\tmpseqfmvqj\\intermediate.mkv', '-i', 'Y:\\Anime\\Naruto\\Season 1\\S01E01.avi', '-map', '0:v?', '-map', '1:a?', '-map', '1:s?', '-map', '1:d?', '-map', '1:t?', '-c', 'copy', '-map_metadata', '0', '-metadata', 'comment=Upscaled by Video2X', '-movflags', 'use_metadata_tags', 'D:\\Anime\\Naruto\\Season 1\\S01E01.avi']' returned non-zero exit status 1.
k4yt3x commented 4 years ago

H.264 bitstream malformed, no startcode found, use the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb' option with ffmpeg)

You have the same problem as #257

k4yt3x commented 4 years ago

So, the folder isn't allowed to have any files other than video files? Got this error while having subtitles in the folder

image

Still working on reproducing the other error.

I also don't see this error anywhere in the output. I'm closing this issue. If you're still getting errors after following instructions in #257, then feel free to keep posting here and I'll take another look.

shplack commented 4 years ago

Unfortunately I have another problem. It seems AAC isn't compatible with h264_mp4toannexb.

Codec 'aac' (86018) is not supported by the bitstream filter 'h264_mp4toannexb'. Supported codecs are: h264 (27) Error initializing bitstream filter: h264_mp4toannexb

What audio codec can I use instead or is there another solution to my earlier problem?

k4yt3x commented 4 years ago

-bsf:v h264_mp4toannexb do not try applying the filter on the audio stream.

shplack commented 4 years ago

I applied the fix as in issue #257. How do I avoid applying the filter on the audio stream?

k4yt3x commented 4 years ago

image

-bsf:v h264_mp4toannexb do not try applying the filter on the audio stream.

shplack commented 4 years ago

That fixed it