RedditVideoMakerBot
RedditVideoMakerBot copied to clipboard
ffmpeg Isssue On line 45 of Background.py
On the following line, I get this error: line Any help will be appreciated
Additional info:
- Host: Windows 10 Pro 21H2
- Python: 3.9.4 in a venv
- IDE: vscode
- CPU: Ryzen 7 3700x
Error:
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
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-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-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'assets/mp4/background.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf59.24.100
Duration: 01:20:13.08, start: 0.000000, bitrate: 10571 kb/s
Stream #0:0(eng): Video: vp9 (Profile 0) (vp09 / 0x39307076), yuv420p(tv, bt709), 2560x1440, 10419 kb/s, SAR 1:1 DAR 16:9, 59.90 fps, 59.94 tbr, 16k tbn, 16k tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: opus (Opus / 0x7375704F), 48000 Hz, stereo, fltp, 137 kb/s (default)
Metadata:
handler_name : SoundHandler
[mp4 @ 000001ac134800c0] track 1: codec frame size is not set
[mp4 @ 000001ac134800c0] opus in MP4 support is experimental, add '-strict -2' if you want to use it.
Could not write header for output file #0 (incorrect codec parameters ?): Experimental feature
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Last message repeated 1 times
File "C:\Users\user\Documents\RedditVideoMakerBot\video_creation\background.py", line 45, in chop_background_video
ffmpeg_extract_subclip(
File "C:\Users\User\Documents\RedditVideoMakerBot\main.py", line 22, in <module>
chop_background_video(length)
What command causes this error to happen?
This should not happen, unless you are trying to fetch a custom video
no custom video I did have to use choco to install FFmpeg tho
Why, what caused the fact that you needed to manually install ffmpeg?
I don't know it just never installed automatically.
It seems if I uninstall FFmpeg and delete the video file it fixes itself
thanks for your help