{"id":18886954,"url":"https://github.com/lostjared/img2mov","last_synced_at":"2025-04-14T22:33:40.981Z","repository":{"id":110401102,"uuid":"130240047","full_name":"lostjared/img2mov","owner":"lostjared","description":"Unix utility designed to transform a collection of image files into a video file.","archived":false,"fork":false,"pushed_at":"2025-02-11T23:03:36.000Z","size":100,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T10:54:08.560Z","etag":null,"topics":["command-line","cplusplus","image-to-video","opencv","slideshow","video"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostjared.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":"2018-04-19T15:57:58.000Z","updated_at":"2025-02-11T23:03:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"b536df15-b683-45ef-a3e9-8db8128a4f89","html_url":"https://github.com/lostjared/img2mov","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/lostjared%2Fimg2mov","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fimg2mov/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fimg2mov/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fimg2mov/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostjared","download_url":"https://codeload.github.com/lostjared/img2mov/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248972948,"owners_count":21191888,"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":["command-line","cplusplus","image-to-video","opencv","slideshow","video"],"created_at":"2024-11-08T07:32:28.356Z","updated_at":"2025-04-14T22:33:35.971Z","avatar_url":"https://github.com/lostjared.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# img2mov\n\nA simple and efficient tool to convert a series of images into a movie file, with options for extracting frames, specifying output format, and more. \n\n## Requirements\n\n- GCC\n- OpenCV Development Files\n- Autoconf\n- Automake\n\n## Installation\n\n### For Debian/Ubuntu\n\nTo install the required OpenCV development files, run:\n\n```bash\nsudo apt-get install libopencv-dev\n```\n\n## Compilation\n\nYou can compile the program using either `automake` or `CMake`. \n\n### Using Automake\n\nRun the following commands in the terminal:\n\n```bash\n./autogen.sh \u0026\u0026 ./configure \u0026\u0026 make\n```\n\n**Note**: If your CPU has more than one core, you can use `-j` followed by the number of cores to speed up the compilation. For example, if your CPU has 8 cores:\n\n```bash\nmake -j8\n```\n\n### Using CMake\n\nFor compiling with CMake, use:\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake -j8\nsudo make install\n```\n\n## Usage\n\nTo use `img2mov`, you have various options:\n\n- `-v` Print version info\n- `-i` Input directory\n- `-r` Search with regular expression\n- `-m` Match with regular expression\n- `-t` Input file list in text file\n- `-l` Output filename search only; do not create video (instead, output list)\n- `-o` Output video file (.mov)\n- `-w` Frame width\n- `-h` Frame height\n- `-f` Frames per second\n- `-s` Stretch image (if not set, will resize to keep aspect ratio)\n- `-n` Do not sort list of files\n- `-q` Quiet mode\n- `-I` File for images to be extracted\n- `-L` File output prefix for file extraction (e.g., `test1` or `./folder/test1`)\n- `-j` Output as JPEG\n- `-b` Output as BMP\n- `-p` Output as PNG\n- `-E` Extract frame by index\n- `-H` Output as HEVC x265\n- `-4` Pipe to ffmpeg as x264\n- `-5` Pipe to ffmpeg as x265\n- `-7` Path to ffmpeg\n- `-c` CRF Value for ffmpeg pipe\n\nThe program defaults to outputting video as AVC. To use HEVC, use `-H` unless you pipe to ffmpeg.\n\n### Examples\n\n```bash\nimg2mov -i . -o videofile.mp4 -w 1920 -h 1080 -f 24\nimg2mov -i ~/Movies -o outputfile.mp4 -w 1280 -h 720 -f 24 -r 'jpg$'\nimg2mov -i ~/Movies -l file_list.txt -r 'jpg$'\nimg2mov -i . -l output_text.txt -r 'jpg$'\nimg2mov -t input_list.txt -f 24 -w 640 -h 360 -o output.mp4\nimg2mov -t input_list.txt -f 24 -w 640 -h 360 -4 -o output.mp4\nimg2mov -t input_list.txt -f 24 -w 640 -h 360 -5 -o output.mp4 -c 26\n```\n\n#### Extracting Frames\n\nTo extract frames, use `-I` and `-L` to pass the video file and save prefix (location and filename). Example:\n\n```bash\nmkdir frames\nimg2mov -I test.mp4 -L frames/testprefix\n```\n\nOptional: Convert video to jpeg:\n\n```bash\nimg2mov -I test.mp4 -L frames/testprefix -j\n```\n\nOr to output as BMP:\n\n```bash\nimg2mov -I test.mp4 -L testprog -b\n```\n\nTo extract a single frame (example: extract frame 5):\n\n```bash\nimg2mov -I test.mp4 -L prefix -E 5\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fimg2mov","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostjared%2Fimg2mov","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fimg2mov/lists"}