{"id":20863294,"url":"https://github.com/amirsorouri00/nodejs-ffmpeg-middleware","last_synced_at":"2026-04-23T15:32:10.186Z","repository":{"id":104613390,"uuid":"201009663","full_name":"Amirsorouri00/nodejs-ffmpeg-middleware","owner":"Amirsorouri00","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-21T06:53:49.000Z","size":24483,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T08:15:23.026Z","etag":null,"topics":["ffmpeg","fluent-ffmpeg","hls-server","stream-middleware"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Amirsorouri00.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-08-07T08:42:37.000Z","updated_at":"2019-12-25T05:47:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fddc88e-d9cb-4052-8b45-ac3fde9c693f","html_url":"https://github.com/Amirsorouri00/nodejs-ffmpeg-middleware","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/Amirsorouri00%2Fnodejs-ffmpeg-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirsorouri00%2Fnodejs-ffmpeg-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirsorouri00%2Fnodejs-ffmpeg-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amirsorouri00%2Fnodejs-ffmpeg-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amirsorouri00","download_url":"https://codeload.github.com/Amirsorouri00/nodejs-ffmpeg-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243236509,"owners_count":20258847,"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":["ffmpeg","fluent-ffmpeg","hls-server","stream-middleware"],"created_at":"2024-11-18T05:28:23.266Z","updated_at":"2025-12-25T15:33:27.528Z","avatar_url":"https://github.com/Amirsorouri00.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-ffmpeg-middleware\n\n\n## Installation\n\n### Back-End\n````\n$ git clone \u003crepository_url\u003e\n$ cd to the cloned repo\n$ npm install \n$ node index.js\nServer is Up Now...\n````\n\n### Client-Side\nuse demo.jwplayer in Usefull Links and make a request to the url below:\n* http://127.0.0.1:8000/streams/stream.m3u8\n\n\n## Usefull Links\n* http://demo.jwplayer.com/developer-tools/http-stream-tester/\n* https://github.com/t-mullen/hls-server#producing-streams\n* https://github.com/fluent-ffmpeg/node-fluent-ffmpeg\n* https://codeforgeek.com/how-to-check-if-file-exists-node/\n\n\n\n\n### One-Test\n````\ncd files_dir\nffmpeg -i ../e.mp4     -c:v h264 -crf 21 -preset veryfast    -c:a aac -b:a 128k -ac 2 -f hls  -hls_playlist_type event -hls_time 1   stream.m3u8\ncd ./test\n\nffmpeg -i ../stream0.ts     -c:v h264 -crf 21 -preset veryfast    -c:a aac -b:a 128k -ac 2 -f hls  -hls_playlist_type event -hls_time 10   stream.m3u8\n(OOOOOOOOOORRRRRRRR(with filter use the next one))\nffmpeg -i ../stream0.ts  -vf \"drawtext=text='hellllllooooooooo there' :x=10:y=H-th-10:fontfile=/path/to/font.ttf:fontsize=12:fontcolor=white:shadowcolor=black:shadowx=5:shadowy=5\"   -c:v h264 -crf 21 -preset veryfast    -c:a aac -b:a 128k -ac 2 -f hls  -hls_playlist_type event -hls_time 10   stream.m3u8\n\nmv ../stream0.ts ../yechizi.ts  \n\nmv stream0.ts ../stream0.ts\n\npaly it via node-server and jwplayer and it works.\n\n\nffmpeg -i ../../e.mp4 -c:a libmp3lame -ar 48000 -ab 64k  -c:v libx264 -b:v 128k lags -global_header -map 0 -f segment -segment_list test.m3u8 -segment_time 10 -segment_format mpegts segment_%05d.ts\n\nffmpeg -i ../../e.mp4 -vf \"drawtext=text='hellllllooooooooo there' :x=10:y=H-th-10:fontfile=/path/to/font.ttf:fontsize=12:fontcolor=white:shadowcolor=black:shadowx=5:shadowy=5\" -c:a libmp3lame -ar 48000 -ab 64k  -c:v libx264 -b:v 128k -flags -global_header -map 0 -f segment -segment_list test_f.m3u8 -segment_time 10 -segment_format mpegts segment_f_%05d.ts\n\nffmpeg -i ../../e.mp4 -c 24 -vcodec h264 -acodec aac -ac 1 -strict -2 -b:v 128k -profile:v baseline -maxrate 400k -bufsize 1835k -hls_time 10 -hls_playlist_type vod -vsync 1 index1.m3u8 -c 24 -vcodec libx264 -acodec aac -ac 1 -strict -2 -b:v 128k -profile:v baseline -maxrate 700k -bufsize 1835k -hls_time 10 -hls_playlist_type vod -vsync 1 index2.m3u8\n````\n\n\n\n### Dash\n\n````\n$ ffmpeg -i stream.m3u8 -strict -2 -min_seg_duration 2000 -window_size 5 -extra_window_size 5 -use_template 1 -use_timeline 1 -f dash dash/out.mpd\n````\n\n\n\n## nginx_rtm_conference_i_frame\n\n````\n$ ffprobe -select_streams v -skip_frame nokey -show_frames -v quiet e.mp4 | grep '^pkt_pts_time' | sed 's/pkt_pts_time=//'\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirsorouri00%2Fnodejs-ffmpeg-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirsorouri00%2Fnodejs-ffmpeg-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirsorouri00%2Fnodejs-ffmpeg-middleware/lists"}