{"id":13582888,"url":"https://github.com/bilashcse/video-editor","last_synced_at":"2025-04-06T18:31:45.363Z","repository":{"id":34279102,"uuid":"38167067","full_name":"bilashcse/video-editor","owner":"bilashcse","description":"API based Online Video Editing using FFMPEG \u0026 NodeJs for Backend Editing","archived":false,"fork":false,"pushed_at":"2023-03-05T05:25:06.000Z","size":58984,"stargazers_count":287,"open_issues_count":4,"forks_count":75,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-05T23:41:23.899Z","etag":null,"topics":["audio","edit-videos","ffmpeg","nodejs","video-editor","video-processing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bilashcse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2015-06-27T16:35:15.000Z","updated_at":"2024-11-05T06:34:14.000Z","dependencies_parsed_at":"2024-11-05T23:42:45.413Z","dependency_job_id":null,"html_url":"https://github.com/bilashcse/video-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilashcse%2Fvideo-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilashcse%2Fvideo-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilashcse%2Fvideo-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilashcse%2Fvideo-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bilashcse","download_url":"https://codeload.github.com/bilashcse/video-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247530944,"owners_count":20953876,"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":["audio","edit-videos","ffmpeg","nodejs","video-editor","video-processing"],"created_at":"2024-08-01T15:03:06.043Z","updated_at":"2025-04-06T18:31:43.199Z","avatar_url":"https://github.com/bilashcse.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","HarmonyOS","Developer Tools \u0026 Libraries"],"sub_categories":["Windows Manager","🚀 How to contribute"],"readme":"# API based Online Video Editor\n\n\nNodeJs, AngularJs \u0026 FFMPEG based web video editor. I have showing the backend logic for editing video. Actually when someone try to edit video using NodeJs, ffmpeg, he cant think how to start \u0026 how he can do it. So I have implemented this video editor with very simple logic with ffmpeg. All resource are together here \u0026 anybody can start from here. If someone analysis these codes, he can understand the basic for video editor\u003cbr\u003e\n\n\n# Feature Implemented :\n- Mute a Video\n- Remove Video \u0026 save Only audio.\n- Showing Video Metadata.\n- Genarate Thumbnail.\n- Cropping Video\n- Effect : Fadein, Fadeout,Blur, Sharpen.\n\n# Working on :\n- Watermark\n- More Video Effects\n- Add new sound\n- Add Text\n\n## Configure mechine: ( Linux )\n```javascript\n1. SSH into your instance and become root\nsudo su -\n\n2. Go to the the /usr/local/bin directory\ncd /usr/local/bin\n\n3. Inside the /usr/local/bin directory, create an \"ffmpeg\" directory\nmkdir ffmpeg\n\n4. Go into the new directory\ncd ffmpeg\n\n5. Go to static build directory at http://ffmpeg.gusari.org/static/64bit/ and pick the \nlatest version of FFMPEG - as of this writing, it was ffmpeg.static.64bit.2014-02-16.tar.gz\nwget http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-02-16.tar.gz\n\n6. The file should now be in /usr/local/bin/ffmpeg. Untar it...\ntar -xzf ffmpeg.static.64bit.2014-02-16.tar.gz\n\n5. Run it and check what the latest version is \n./ffmpeg -version\n6. If you want to be able to execute FFMPEG from any directory, simply create a symlink into /usr/bin like this:\nln -s /usr/local/bin/ffmpeg/ffmpeg /usr/bin/ffmpeg\nln -s /usr/local/bin/ffmpeg/ffprobe /usr/bin/ffprobe\n\nThe first part (/usr/local/bin/ffmpeg/ffmpeg) is where the file is located after I untarred \nthe file. The second part (/usr/bin/ffmpeg) is where we want the symlink to go\n\n```\n\n## Configure mechine: ( Mac )\n```javascript\n$ brew install ffmpeg --force\n$ brew link ffmpeg\n```\n\n# How ffmpeg, NodeJs works:\n\n## Mute Video : To disable audio you can use noAudio( ) method.\n```javascript\n    ffmpeg('public/raw/test.mp4') //Input Video File\n    .output('public/edited/noaudio/output.mp4') // Output File\n    .noAudio().videoCodec('copy')\n    .on('end', function(err) {\n        if(!err)\n        {\n            console.log(\"Conversion Done\");\n        }\n\n    });\n    .on('error', function(err){\n        console.log('error: ', +err);\n\n    }).run();\n\n\n```\n\n## Remove Video \u0026 save Only audio : \n```javascript\n    ffmpeg('public/raw/test.mp4')  // Input Video File\n    .output('public/edited/removevideo/output.mp3') // Output  File\n    .on('end', function(err) {\n        if(!err)\n        {\n        \tconsole.log(\"Remove video is done\");\n        }\n\n    })\n    .on('error', function(err){\n        console.log('error: '+err);\n    }).run();\n```  \n\n## Showing Video Metadata:\n```javascript\nffmpeg.ffprobe('public/raw/test.mp4', function(err, metadata) { // Input video File\n   if(err){\n    console.log(\"MetaData not Found. \"+err);\n   }\n   else{\n    console.log(metadata)\n   }\n});\n``` \n## Genarate Thumbnail:\n```javascript\n    var ffmpeg = require('fluent-ffmpeg'); \n    var probe = require('node-ffprobe');\n    probe('public/raw/test.mp4', function(err, probeData) \n    {\n\n        var proc = new ffmpeg('public/raw/test.mp4'); // Input File\n\n        proc.screenshots({\n            timestamps: ['50%','80%'],\n            folder: 'public/edited/thumbnail/output', // Thumbnail Location\n            size: '392x220'\n        }).on('end', function() {\n           console.log('Screenshots taken');\n        });\n\n    });\n``` \n\n## Cropping Video:\n```javascript\n    ffmpeg('public/raw/input.mp4') //Input Video File\n    .output('public/edited/cropvideo/output.mp4') // Output File\n    .audioCodec('libmp3lame') // Audio Codec\n    .videoCodec('libx264')  // Video Codec\n    .setStartTime(03) // Start Position\n    .setDuration(5) // Duration\n    .on('end', function(err) {\n        if(!err)\n        {\n\n            console.log(\"Conversion Done\");\n            res.send('Video Cropping Done');\n\n        }\n\n    })\n    .on('error', function(err){\n        console.log('error: ', +err);\n\n    }).run();\n```\n\n# Copyright\n\nCopyright (c) 2016 Nazmul Hossain\n\n# License : The MIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilashcse%2Fvideo-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilashcse%2Fvideo-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilashcse%2Fvideo-editor/lists"}