Closed giuliosmedile closed 2 years ago
Same happened to me..i had to manually download the video and move it to the asset/mp4 directory...if you're gonna do the same don't forget to rename the mp4 file to background.mp4
Same happened to me..i had to manually download the video and move it to the asset/mp4 directory...if you're gonna do the same don't forget to rename the mp4 file to background.mp4
did it work?
Same happened to me..i had to manually download the video and move it to the asset/mp4 directory...if you're gonna do the same don't forget to rename the mp4 file to background.mp4
did it work?
Yes it did..has been working smoothly ever since
Try this name once. background.temp.mp4
Same happened to me..i had to manually download the video and move it to the asset/mp4 directory...if you're gonna do the same don't forget to rename the mp4 file to background.mp4
did it work?
Yes it did..has been working smoothly ever since
yes renaming the default filename to background.mp4
worked for me as well
Thanks!
Seems to be working to some extent for me, it passes the downloading and merging phase, but then hangs up again with moviepy.
Deleting original file assets/mp4/background.f308.webm (pass -k to keep)
Background video downloaded successfully!
╭──────────────────────────────────────────────────────────────────────────────╮
│ Finding a spot in the background video to chop... │
╰──────────────────────────────────────────────────────────────────────────────╯
Moviepy - Running:
>>> "+ " ".join(cmd)
Moviepy - Command returned an error
Traceback (most recent call last):
File "main.py", line 22, in <module>
chop_background_video(length)
File "/home/smeds/Downloads/RedditVideoMakerBot-1.0.0/video_creation/background.py", line 45, in chop_background_video
ffmpeg_extract_subclip(
File "/home/smeds/.local/lib/python3.8/site-packages/moviepy/video/io/ffmpeg_tools.py", line 41, in ffmpeg_extract_subclip
subprocess_call(cmd)
File "/home/smeds/.local/lib/python3.8/site-packages/moviepy/tools.py", line 54, in subprocess_call
raise IOError(err.decode('utf8'))
OSError: ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8 (Debian 8.3.0-6)
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
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.16.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 @ 0x6f705c0] track 1: codec frame size is not set
[mp4 @ 0x6f705c0] 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
Hope this is added to the documentation. @ImmaHarry @LukaHietala @FreebieII @CallumIO
Same happened to me..i had to manually download the video and move it to the asset/mp4 directory...if you're gonna do the same don't forget to rename the mp4 file to background.mp4
Seems to be working to some extent for me, it passes the downloading and merging phase, but then hangs up again with moviepy.
Deleting original file assets/mp4/background.f308.webm (pass -k to keep) Background video downloaded successfully! ╭──────────────────────────────────────────────────────────────────────────────╮ │ Finding a spot in the background video to chop... │ ╰──────────────────────────────────────────────────────────────────────────────╯ Moviepy - Running: >>> "+ " ".join(cmd) Moviepy - Command returned an error Traceback (most recent call last): File "main.py", line 22, in <module> chop_background_video(length) File "/home/smeds/Downloads/RedditVideoMakerBot-1.0.0/video_creation/background.py", line 45, in chop_background_video ffmpeg_extract_subclip( File "/home/smeds/.local/lib/python3.8/site-packages/moviepy/video/io/ffmpeg_tools.py", line 41, in ffmpeg_extract_subclip subprocess_call(cmd) File "/home/smeds/.local/lib/python3.8/site-packages/moviepy/tools.py", line 54, in subprocess_call raise IOError(err.decode('utf8')) OSError: ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg 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.16.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 @ 0x6f705c0] track 1: codec frame size is not set [mp4 @ 0x6f705c0] 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
did u download it from the release?i git cloned it from the master branch btw
Any news here?
ADD this line in Dockerfile after downloading the background, for containers
COPY ./background.mp4 /app/assets/mp4/background.mp4
Closing due to being stale and no longer relevant
Can't use the tool, as yt_dlp freaks out when trying to stitch the videos together.