{"id":13905524,"url":"https://github.com/mahyarkarimi/ffmpeg-ms","last_synced_at":"2026-05-08T15:53:01.009Z","repository":{"id":146798599,"uuid":"407816339","full_name":"mahyarkarimi/ffmpeg-ms","owner":"mahyarkarimi","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-26T08:48:16.000Z","size":243,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-07T23:43:40.140Z","etag":null,"topics":["converter","fastapi","ffmpeg","microservice","python"],"latest_commit_sha":null,"homepage":"https://mahyarkarimi.github.io/ffmpeg-ms/","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/mahyarkarimi.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}},"created_at":"2021-09-18T09:29:36.000Z","updated_at":"2024-04-06T08:36:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"15c8b78e-4478-4803-a3f6-3e4d841199ab","html_url":"https://github.com/mahyarkarimi/ffmpeg-ms","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahyarkarimi%2Fffmpeg-ms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahyarkarimi%2Fffmpeg-ms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahyarkarimi%2Fffmpeg-ms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahyarkarimi%2Fffmpeg-ms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahyarkarimi","download_url":"https://codeload.github.com/mahyarkarimi/ffmpeg-ms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226336558,"owners_count":17608860,"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","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":["converter","fastapi","ffmpeg","microservice","python"],"created_at":"2024-08-06T23:01:17.788Z","updated_at":"2026-05-08T15:53:00.974Z","avatar_url":"https://github.com/mahyarkarimi.png","language":"Python","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# FFMPEG microservice developed in python fastapi\n\n\u003chr /\u003e\nA microservice for conversion of any sort of media using FFMPEG.\n\n## Quick start\n\n### Deploy using docker\n\n\u003chr /\u003e\n\n[Dockerhub image link](https://hub.docker.com/r/mahyarkarimi/ffmpeg-ms)\n\n```bash\ndocker run --rm -p 8000:8000 mahyarkarimi/ffmpeg-ms:0.1.1-alpine\n```\n\n### Deploy with docker-compose.yml\n\n\u003chr /\u003e\n\n```yml\nversion: '3'\n\nservices:\n    api:\n        image: mahyarkarimi/ffmpeg-ms:0.1.1-alpine\n        restart: unless-stopped\n        ports:\n            - 8000:8000\n        volumes:\n            - ./.htpasswd:/app/.htpasswd\n```\n\n## Features\n\n\u003chr /\u003e\n\n1. Convert any media with given ffmpeg style output format.\n2. Stream output from `/convert` endpoint.\n3. File based download from `/convert-file` endpoint.\n4. Has rate limit for calling each endpoint based on user (default 5 requests per minute).\n5. Can have basic authentication based on `/app/.htpasswd` file generated by htpasswd of apache2-utils. password must be encrypted with the bcrypt algorithm.\n\n## Generate .htpasswd file\n\n\u003chr /\u003e\n\nIn order to activate authentication, generate `.htpasswd` file using `apache2-utils`.\nInstall `apache2-utils` on debian/ubuntu:\n\n```bash\nsudo apt-get install apache2-utils\n```\n\nTo create user run the following command in terminal (replace \\\u003cusername\\\u003e and \\\u003cpassword\\\u003e with your desired credentials):\n\n```bash\nhtpasswd -B -cb .htpasswd \u003cusername\u003e \u003cpassword\u003e \n```\n\n## API Documentation\n\n\u003chr /\u003e\n\nFFMPEG file conversion microservice API documentation\n\n## Version: 0.1.1\n\n**Contact information:**  \nmahyarkarimi@rocketmail.com  \n\n**License:** [MIT](https://opensource.org/license/mit/)\n\n### /convert\n\n#### POST\n\n##### Summary\n\nConvert a media file (video or audio) and get response as stream\n\n##### Description\n\nConvert a media file and return as stream\n\n##### Parameters\n\n| Name | Located in | Description | Required | Schema |\n| ---- | ---------- | ----------- | -------- | ---- |\n| input_options | query |  | No | string |\n| output_options | query |  | Yes | string |\n| buffer_size | query |  | No | integer |\n\n##### Responses\n\n| Code | Description |\n| ---- | ----------- |\n| 200 | Successful operation |\n| 413 | file to convert is larger than upload size limit |\n| 422 | Unprocessable entity when either file in body or action in query parameters is not available |\n\n### /convert-file\n\n#### POST\n\n##### Summary\n\nConvert a media file (video or audio) and get response as file\n\n##### Description\n\nConvert a media file and return as file\n\n##### Parameters\n\n| Name | Located in | Description | Required | Schema |\n| ---- | ---------- | ----------- | -------- | ---- |\n| input_options | query |  | No | string |\n| output_options | query |  | Yes | string |\n\n##### Responses\n\n| Code | Description |\n| ---- | ----------- |\n| 200 | Successful operation |\n| 413 | file to convert is larger than upload size limit |\n| 422 | Unprocessable entity when either file in body or action in query parameters is not available |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahyarkarimi%2Fffmpeg-ms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahyarkarimi%2Fffmpeg-ms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahyarkarimi%2Fffmpeg-ms/lists"}