{"id":19392258,"url":"https://github.com/unsignedarduino/rav-converter","last_synced_at":"2026-05-09T07:40:09.831Z","repository":{"id":110638723,"uuid":"469262141","full_name":"UnsignedArduino/RAV-converter","owner":"UnsignedArduino","description":"Encode/decode Raw Audio Video (RAV) files!","archived":false,"fork":false,"pushed_at":"2023-10-03T21:28:38.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T22:12:44.616Z","etag":null,"topics":["decoder","encoder","ffmpeg","media","python","script","video"],"latest_commit_sha":null,"homepage":"","language":"Python","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/UnsignedArduino.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":"2022-03-13T03:43:42.000Z","updated_at":"2023-11-27T01:05:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"63711893-9936-4906-ae5f-fb16de8c3d83","html_url":"https://github.com/UnsignedArduino/RAV-converter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UnsignedArduino/RAV-converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnsignedArduino%2FRAV-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnsignedArduino%2FRAV-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnsignedArduino%2FRAV-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnsignedArduino%2FRAV-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UnsignedArduino","download_url":"https://codeload.github.com/UnsignedArduino/RAV-converter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UnsignedArduino%2FRAV-converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32811656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["decoder","encoder","ffmpeg","media","python","script","video"],"created_at":"2024-11-10T10:31:49.823Z","updated_at":"2026-05-09T07:40:09.815Z","avatar_url":"https://github.com/UnsignedArduino.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAV-converter\n\nEncode/decode Raw Audio Video (RAV) files!\n\nYes, I came up with a name for this horrible format on the spot.\n\n## Script\n\nI've made a Python script that can convert any media file that FFmpeg supports\nto RAV.\n\n### Installation\n\n1. Make sure Python 3 is installed and on path.\n2. Make sure FFmpeg is installed and on path.\n3. Download repo\n4. Install requirements\n\n### Usage\n\nRun with `-h` to show the help:\n\n```commandline\nusage: main.py [-h] -i INPUT [-o OUTPUT] [-d]\n\nEncodes/decodes Raw Audio Video (RAV) files.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -i INPUT, --input INPUT\n                        The input video file, for encoding/decoding.\n  -o OUTPUT, --output OUTPUT\n                        The output path.\n  -d, --decode          Turn a RAV file back into a standard media file\n```\n\n#### Examples:\n\n##### Convert to RAV:\n\n`input.mkv` is the input media file - must be support by your version of\nFFmpeg!\n\n`output.rav` is the output RAV file. Note that this is an extremely lossy\nconversion, see file format below.\n\n```commandline\npython main.py -i \"input.mkv\" -o \"output.rav\"\n```\n\n#### Convert to media file\n\n`output.rav` is an already existing RAV file.\n\n`output.mkv` is the RAV file that has been converted back into a media file.\nNote that RAV files are extremely lossy so the resulting media file will\ndefinitely not look good!\n\n```commandline\npython main.py -i \"output.rav\" -o \"output.mkv\" -d\n```\n\n## Format\n\n### Quality\n\nRAV files carry:\n\n- Audio\n    - 8 bit samples\n    - 32 khz sampling rate\n    - 1 channel\n- Video\n    - 10 FPS\n    - RGB565 bitmap images\n\nImpressive quality, right?\n\n### Byte format\n\nThe header is like this:\n\n| File position | Data type                     | Description                                  |\n|---------------|-------------------------------|----------------------------------------------|\n| 0             | Little endian `unsigned long` | Number of frames.                            |\n| 4             | Byte                          | Audio sample size, (in bits) should equal 8. |\n| 5             | Little endian `unsigned long` | Audio sample rate, should equal 32000.       |\n| 9             | Byte                          | FPS, should equal 10.                        |\n| 10            | Little endian `unsigned int`  | Frame width.                                 |\n| 12            | Little endian `unsigned int`  | Frame height.                                |\n\nThe majority of the file is composed of frames, which last 100 ms (10 FPS) and\nincludes PCM audio and a RGB565 TFT blast-able bitmap.\n\nA frame goes like this:\n\n| Byte offset              | Data type                                   | Description                                                                                                                                                                                             |\n|--------------------------|---------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| +4                       | Little endian `unsigned long`               | The frame number.                                                                                                                                                                                       |\n| +4                       | Little endian `unsigned long`               | The length of the frame.                                                                                                                                                                                |\n| +4                       | Little endian `unsigned long`               | The length of the audio for the frame, should be 16000 bytes.                                                                                                                                           |\n| +32000                   | 32000-byte-long block, `unsigned char`s     | The audio data itself.                                                                                                                                                                                  |\n| +4                       | Little endian `unsigned long`               | The length of the bitmap image for the frame, a variable amount.                                                                                                                                        |\n| +Image length from above | Variable length byte block, `unsigned int`s | The bitmap image itself.                                                                                                                                                                                |\n| +4                       | Little endian `unsigned long`               | The length of the frame, useful for seeking backwards. Note that after seeking backwards this many bytes, you will also have to seek 8 more bytes back for the original frame length and frame counter! |\n\nThen the next frame begins, and repeat until EOF.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funsignedarduino%2Frav-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funsignedarduino%2Frav-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funsignedarduino%2Frav-converter/lists"}