{"id":13988797,"url":"https://github.com/evliang/avel","last_synced_at":"2025-07-22T09:31:30.980Z","repository":{"id":217319300,"uuid":"213543272","full_name":"evliang/avel","owner":"evliang","description":"Python ffmpeg wrapper for audio and video editing (trim, subtitles/overlay, concat, merge, \u0026 more!)","archived":false,"fork":false,"pushed_at":"2019-10-28T19:51:31.000Z","size":33,"stargazers_count":23,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-29T07:36:59.618Z","etag":null,"topics":["audio-editing","clips","video-editing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evliang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-08T03:43:46.000Z","updated_at":"2024-11-07T08:33:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c34a92d-6d0f-4068-98cd-6e0949353c5c","html_url":"https://github.com/evliang/avel","commit_stats":null,"previous_names":["evliang/avel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evliang/avel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evliang%2Favel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evliang%2Favel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evliang%2Favel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evliang%2Favel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evliang","download_url":"https://codeload.github.com/evliang/avel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evliang%2Favel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266465082,"owners_count":23933059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-editing","clips","video-editing"],"created_at":"2024-08-09T13:01:21.966Z","updated_at":"2025-07-22T09:31:30.678Z","avatar_url":"https://github.com/evliang.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# avel: Audio \u0026 Video Editing Library\n\n## Overview\n\navel is a library of functions for video editing and generation. It supports trimming, combining video clips with different dimensions, adding text overlays, merging audio, and more. \n\n## Installation\n\nYou must have [Python 3](https://www.python.org/downloads/) and [ffmpeg](https://ffmpeg.org/download.html) installed on your machine. Ensure that both `ffmpeg` and `ffprobe` are available from the command line.\nTo install `avel` run:\n\n```\npip install git+https://github.com/evliang/avel.git\n```\n\n## Video library functions\n\nCreate clips of a video (original video is preserved)\n```Python\ntrim_video(f'input.mp4', 'output0.mp4', 4, 8.2)\ntrim_video(f'input.mp4', 'output1.mp4', '00:00:42.000', '00:01:33.700')\n```\n\nCombine multiple clips into one file\n```Python\ncombine_videos([\"file1.mp4\", \"file2.mkv\", \"file3.avi\"], \"combined.mkv\")\n```\n\nCreate a video with 16:9 ratio, adding a blur effect to the sides (if applicable)\n```Python\nblur_video(\"combined.mkv\", \"blurred.mkv\")\n```\n\nAdd text on top of video (e.g. subtitles, watermark) using a dictionary of options\n```Python\noverlays = [\n    create_drawtext_dict(\"avel\", \"right\", \"bottom\", 40),\n    create_drawtext_dict(\"Hello World!\", \"mid_x\", \"bottom\", 50, enable=\"between(t,0,8)\") ]\n\ndrawtext(\"input.mkv\", \"output.mkv\", overlays)\n```\n\n## Audio library functions\n\nExtract audio from a video\n```Python\nextract_audio(\"video.mp4\", \"audio1.m4a\", 15, 30)\n```\n\nCombine list of audio files into one longer audio file, with an 8-second transition\n```Python\ncombine_audio([\"audio1.m4a\", \"audio2.mp3\"], \"output.mp3\", transition_time=8)\n```\n\nMerge two audio files into one (e.g. foreground and background)\n```Python\nmerge_audio(\"main.mp3\", \"background.mp3\", \"output.mp3\", vol1=1.0, vol2=0.4)\n```\n\nCombine audio and video file into one video file\n```Python\ncombine_audio_video(audioPath, videoPath, output_filename)\n```\n\n## Examples\n\nSee example folder for some scripts that I created for my own use case","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevliang%2Favel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevliang%2Favel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevliang%2Favel/lists"}