Closed Nu70ry closed 10 months ago
Is ffmpeg
installed correctly on your system (as described in the readme file) Try for example ffmpeg -v
in your terminal and see if it works ?
seems that ffmpeg is indeed missing i did it with "pip install ffmpeg" since i do prefer to not clutter my system with lots of programs. but i now installed it with chocolatey and it works, thank you !
But now i cannot save the video merged with the subtitles, i can save the subtitles on its own tho. i get this error if i try to save the video merged with subtitles:
(console)
ffmpeg version 6.1.1-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --pkg-config=pkgconf --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-dxva2 --enable-d3d11va --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'B:\Video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf58.45.100
artist : Converted Video
album_artist : Converted Video
title : Video
Duration: 00:01:06.12, start: 0.000000, bitrate: 4501 kb/s
Stream #0:0[0x1](und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 4359 kb/s, 60 fps, 60 tbr, 15360 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Input #1, srt, from 'C:\Users\battr\AppData\Local\Temp\tmpk3g7jb2b.srt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: subrip
[sost#0:2 @ 000001bed060efc0] Automatic encoder selection failed Default encoder for format mp4 (codec none) is probably disabled. Please choose an encoder manually.
[sost#0:2 @ 000001bed060efc0] Error selecting an encoder
Error opening output file B:\Video-subs-merged.mp4.
Error opening output files: Encoder not found
ffmpeg error (see stderr output for detail)
webui only says something went wrong and points me to the console.
Also, are these warnings at startup expect to happen and can be ignored? or will they cause some trouble at some point?
[08:02:04] WARNING The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. torch_audio_backend.py:19
WARNING torchvision is not available - cannot save figures train_logger.py:264
WARNING The torchaudio backend is switched to 'soundfile'. Note that 'sox_io' is not supported on Windows. torch_audio_backend.py:19
2024-01-13 08:02:05.266 WARNING streamlit.runtime.caching.cache_data_api: No runtime found, using MemoryCacheStorageManager
Thank you for your fast responses, its much appreciated.
From the error, ffmpeg says that the codec needed for this video is not installed or missing, what type of video format are you using ? If you can share it I will give it a try on my end ? Also, I would suggest trying the docker image, you will get a container with everything installed, besides you won't clutter your entire system with third party software as well.
The video file was indeed corrupt, i tried another one and it worked. Thank you for your help.
At startup i get multiple warnings.
when i input the path to a video file, i get this warning:
Warning: temperature does not have a supported UI
if i try to run the program on the video file i get these errors:
all of the above were copied from console here is what webui inside the browser gives out:
some additional infos about my system:
Windows 11 Python 3.10.6
installed packages:
edit: solved first problem with fresh reinstall of python, updated with new error.