{"id":21406130,"url":"https://github.com/jes/audio2image","last_synced_at":"2025-03-16T17:13:24.699Z","repository":{"id":137661886,"uuid":"327075332","full_name":"jes/audio2image","owner":"jes","description":"Convert audio files to image files","archived":false,"fork":false,"pushed_at":"2021-01-08T16:14:16.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-23T03:44:24.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/jes.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":"2021-01-05T17:46:57.000Z","updated_at":"2022-09-24T01:21:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c9080d3-e9f2-4aaf-9f59-f747e2e8b301","html_url":"https://github.com/jes/audio2image","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/jes%2Faudio2image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jes%2Faudio2image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jes%2Faudio2image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jes%2Faudio2image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jes","download_url":"https://codeload.github.com/jes/audio2image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902297,"owners_count":20366260,"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":[],"created_at":"2024-11-22T16:31:25.334Z","updated_at":"2025-03-16T17:13:24.654Z","avatar_url":"https://github.com/jes.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# audio2image\n\nConvert audio files to image files. The resulting files can be played using `aplay(1)` or similar.\n\nSupported input formats are anything supported by ffmpeg.\n\nSupported output formats are BMP,PPM,PGM,PBM.\n\nExample:\n\n    $ audio2image -r 8000 -c 1 audio.mp3 \u003e image.bmp\n    $ aplay image.bmp\n\nIt works roughly like so:\n\n* transcode the input audio into raw PCM using ffmpeg to the desired sample rate and number of channels (usually 8000 Hz and 1 channel)\n* work out the image dimensions required to contain the PCM\n* write the image header\n* write the PCM bytes\n* write padding 0x80 bytes until image size is filled\n\n## Usage\n\n    usage: audio2image [options] [AUDIOFILE] \u003e [IMAGEFILE]\n\n    This program will decode audio from the given audio file (in any format supported by ffmpeg)\n    and write it out as an image file in NetPBM or BMP format, such that it can\n    be played using aplay(1).\n\n    Image options:\n\n        -f,--format ppm|pgm|pbm|bmp\n            Set the output image format.\n            ppm: 24bpp colour\n            pgm:  8bpp greyscale\n            pbm:  1bpp black and white\n            bmp: 24bpp colour\n            Default: bmp\n\n        -w,--width PIXELS\n            Set the image width in pixels.\n            If height is set but not width, then width will be calculated as:\n                ceil(total_pixels / height)\n            If neither height nor width are set, then both will be calculated as:\n                ceil(sqrt(total_pixels))\n\n        -h,--height PIXELS\n            Set the image height in pixels.\n            If width is set but not height, then height will be calculated as:\n                ceil(total_pixels / width)\n            If neither height nor width are set, then both will be calculated as:\n                ceil(sqrt(total_pixels))\n\n    Audio options:\n\n        -r,--rate HZ\n            Set the output sample rate in Hz. If necessary, the input audio will be\n            resampled to match this. The resampling is quite primitive, for better\n            results use better software.\n            Default: 8000\n\n        -c,--channels CHANNELS\n            Set the number of output channels. Use 2 for stereo output. If necessary, the\n            input channels will be combined or duplicated to match this.\n            Default: 1\n\n    Other options:\n\n        -q,--quiet\n            Don't warn if the specified width/height truncate the audio.\n            Default: off\n\n        -h,--help,--usage\n            Show this text.\n\n    Input is taken from a single filename specified on the command line.\n    Output is given on stdout.\n\n    Examples:\n\n        $ audio2image -r 44100 -c 2 -w 800 -h 600 -f bmp example.wav \u003e example.bmp\n\n## Contact\n\naudio2image is a program by James Stanley. You can email me at james@incoherency.co.uk or read my blog at https://incoherency.co.uk/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjes%2Faudio2image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjes%2Faudio2image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjes%2Faudio2image/lists"}