{"id":31767984,"url":"https://github.com/n-engine/gen-web","last_synced_at":"2026-04-02T18:45:39.906Z","repository":{"id":92723018,"uuid":"44794279","full_name":"n-engine/gen-web","owner":"n-engine","description":"Bash script to generate preview/gif/webm from a video using ffmpeg","archived":false,"fork":false,"pushed_at":"2015-10-23T07:04:02.000Z","size":148,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-02-28T22:31:25.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/n-engine.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}},"created_at":"2015-10-23T06:11:39.000Z","updated_at":"2023-03-07T02:22:00.549Z","dependencies_parsed_at":"2023-03-07T02:22:00.516Z","dependency_job_id":null,"html_url":"https://github.com/n-engine/gen-web","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/n-engine/gen-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-engine%2Fgen-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-engine%2Fgen-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-engine%2Fgen-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-engine%2Fgen-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n-engine","download_url":"https://codeload.github.com/n-engine/gen-web/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n-engine%2Fgen-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002400,"owners_count":26083375,"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-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2025-10-10T01:50:40.661Z","updated_at":"2025-10-10T01:50:43.953Z","avatar_url":"https://github.com/n-engine.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# - LICENCE -\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n \nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to \u003chttp://unlicense.org/\u003e\n\n- SUMMARY -\n\nExtract image from video and create nor transcode it to :\n- Gif image\n- WebM\n- Png (for preview image)\n- Flv video\n- Time code file (to keep a trace of what and how it was made)\n\n- WHY ? -\n\nOn the web I see people looking for the same command here and here\nasking how to generate gif, flv nor webm file.\nSo, i made this script for who are alooking\nto generate easily web content.\nIt is easy to generate web file as the gif, flv, nor webm\nand can be easily changed to meet the need of the users.\n\n- DEPENDENCY -\n\nThis script depend on these tools :\n-----------------------------------\nbash               : http://tiswww.case.edu/php/chet/bash/bashtop.html\navconv             : http://libav.org\nconvert            : http://www.imagemagick.org\nmediainfo          : http://mediaarea.net\n\nAll of these tool can be easily installed with one command line (ubuntu/debian):\n\n(sudo) apt-get install bash awk mediainfo ffmpeg imagemagick\n\n- COMMAND -\n\ngen_web [video_input] [star_time] [duration_time] [outputname (optional)]\n\n[video_input]    source input (ex.: file.mpg)\n[star_time]      00:00:00 or time in second (ex.: 00:00:48 or 48)\n[duration_time]  00:00:00 or time in second (ex.: 00:00:05 or 5)\n[outputname]     outputname (ex.: ~/my_output_path)\n\nIf output name is not given, the file output will be done in the current\ndirectory with base name of [video_input].\n\nThese files are created by default :\n\n[outputname]_preview.png\n[outputname].gif\n[outputname].webm\n[outputname].flv\n[outputname].rs\n\nOptional: if you do not want flv gif webm or preview image you can \nset environment variable to ignore one of these output format\n\nNO_FLV=1  : does not create flv file\nNO_GIF=1  : does not create gif file\nNO_WEBM=1 : does not create webm file\nNO_PREV=1 : does not create preview file\n\nOther options :\n\nNO_DEBUG=1    : no output message\nALLYES=1      : answer yes to all question\nNO_OPTIMIZE=1 : no gif optimization.\nFULLSPEED=1   : make bigger file but keep a more \"speed\" framerate.\nMAXSIZE=width : set the default maximum width for the gif image\n                aspect is automatically kept.\n\n- EXAMPLE USAGE -\n\nGet a video source :\n--------------------\n\nURL=http://upload.wikimedia.org/wikipedia/commons/7/75\nFILE=Big_Buck_Bunny_Trailer_400p.ogg\nwget ${URL}/${FILE} \n\nEx.1 : Generate with default option our web file :\n\ngen_web ${FILE} 00:00:14 00:00:02 bigbuck_std\n\nthis will generate these files :\n--------------------------------\n 118870 bigbuck_std.flv\n 172275 bigbuck_std.gif\n 427165 bigbuck_std_preview.png\n     71 bigbuck_std.rs\n  63410 bigbuck_std.webm\n\nEx.2 : no output path is given :\n\ngen_web ${FILE} 00:00:14 00:00:02\n\nEx.3 : Generate non optimized video with high speed data, no flv :\n\nFULLSPEED=1 NO_OPTIMIZE=0 NO_FLV=1 gen_web ${FILE} 00:00:14 00:00:02 bigbuck_full\n\nEx.4: recreate web file from reference script ([filename].rs) file :\n\nsource bigbuck_std/bigbuck_std.rs\n$GEN_WEB\n\n- TESTED ON PLATFORM -\n \nDebian weezy Jan 2015\nDebian jessie Oct 2015\n\n- Revision -\n\n- 1 (Octobre 2015)\n removed dependency of ImageMagic (thanks to great filter of ffmpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn-engine%2Fgen-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn-engine%2Fgen-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn-engine%2Fgen-web/lists"}