Skip to content

Unknown encoder 'libx264' #23

Open
@remycoopermusic

Description

@remycoopermusic

Hi, I get this error. I've tried to install but doesn't seem to work. Any idea how to fix it?

(venv) (base) remy@Remys-MacBook-Pro AI-Youtube-Shorts-Generator % python main.py
Enter YouTube video URL: https://www.youtube.com/*correct link*
Available video streams:
0. Resolution: 1080p, Size: 210.07 MB, Type: Adaptive

  1. Resolution: 720p, Size: 106.85 MB, Type: Adaptive
  2. Resolution: 360p, Size: 25.46 MB, Type: Adaptive
  3. Resolution: 360p, Size: 29.05 MB, Type: Progressive
  4. Resolution: 144p, Size: 6.19 MB, Type: Adaptive
    Enter the number of the video stream to download: 1
    Downloading video: Traveling To Belgium
    Downloading audio...
    Merging video and audio...
    ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
    built with clang version 10.0.0
    configuration: --prefix=/Users/remy/opt/anaconda3 --cc=x86_64-apple-darwin13.4.0-clang --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-pic --enable-pthreads --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libmp3lame
    libavutil 56. 51.100 / 56. 51.100
    libavcodec 58. 91.100 / 58. 91.100
    libavformat 58. 45.100 / 58. 45.100
    libavdevice 58. 10.100 / 58. 10.100
    libavfilter 7. 85.100 / 7. 85.100
    libavresample 4. 0. 0 / 4. 0. 0
    libswscale 5. 7.100 / 5. 7.100
    libswresample 3. 7.100 / 3. 7.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/remy/AI-Youtube-Shorts-Generator/videos/video_Traveling To Belgium.mp4':
    Metadata:
    major_brand : dash
    minor_version : 0
    compatible_brands: iso6avc1mp41
    creation_time : 2025-02-04T12:32:24.000000Z
    Duration: 00:10:28.00, start: 0.000000, bitrate: 1427 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 7 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
    creation_time : 2025-02-04T12:32:24.000000Z
    handler_name : ISO Media file produced by Google Inc.
    Input chore: update FaceCrop.py #1, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/remy/AI-Youtube-Shorts-Generator/videos/audio_Traveling To Belgium.m4a':
    Metadata:
    major_brand : dash
    minor_version : 0
    compatible_brands: iso6mp41
    creation_time : 2025-02-04T12:32:39.000000Z
    encoder : Google
    Duration: 00:10:28.10, start: 0.000000, bitrate: 48 kb/s
    Stream chore: update FaceCrop.py #1:0(und): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 0 kb/s (default)
    Metadata:
    creation_time : 2025-02-04T12:32:39.000000Z
    handler_name : ISO Media file produced by Google Inc.
    Unknown encoder 'libx264'
    An error occurred: ffmpeg error (see stderr output for detail)
    Please make sure you have the latest version of pytube and ffmpeg-python installed.
    You can update them by running:
    pip install --upgrade pytube ffmpeg-python
    Also, ensure that ffmpeg is installed on your system and available in your PATH.
    Unable to Download the video
    (venv) (base) remy@Remys-MacBook-Pro AI-Youtube-Shorts-Generator %

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions