{"id":30226874,"url":"https://github.com/remotion-dev/webcodecs-benchmark","last_synced_at":"2025-09-08T16:49:28.672Z","repository":{"id":270246953,"uuid":"909750464","full_name":"remotion-dev/webcodecs-benchmark","owner":"remotion-dev","description":"Comparing speed of `@remotion/webcodecs` and FFmpeg.wasm","archived":false,"fork":false,"pushed_at":"2024-12-29T17:09:03.000Z","size":6,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T03:49:39.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/remotion-dev.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":"2024-12-29T17:06:44.000Z","updated_at":"2025-08-06T15:20:25.000Z","dependencies_parsed_at":"2024-12-29T18:19:07.890Z","dependency_job_id":"cb15f062-b84c-4622-8aac-c9d045dc5c13","html_url":"https://github.com/remotion-dev/webcodecs-benchmark","commit_stats":null,"previous_names":["remotion-dev/webcodecs-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/remotion-dev/webcodecs-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remotion-dev%2Fwebcodecs-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remotion-dev%2Fwebcodecs-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remotion-dev%2Fwebcodecs-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remotion-dev%2Fwebcodecs-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remotion-dev","download_url":"https://codeload.github.com/remotion-dev/webcodecs-benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remotion-dev%2Fwebcodecs-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274218243,"owners_count":25243357,"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-09-08T02:00:09.813Z","response_time":121,"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-08-14T17:09:39.601Z","updated_at":"2025-09-08T16:49:28.630Z","avatar_url":"https://github.com/remotion-dev.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Benchmarking Video conversion in the browser\n\nThis is a non-scientific, but good-faith benchmark showing that `@remotion/webcodecs` is faster than FFmpeg.wasm to back up claims that we may make in order to promote `@remotion/webcodecs`.\n\n## Test conditions\n\n- Each conversion is run 3 times, average is taken.\n- We alternated between running a test using `@remotion/webcodecs` and alternatives to minimize system load differences\n- Tests were run on Google Chrome 131.0.6778.205 on a M2 MacBook Air running macOS 15.0.1. No other apps and websites were running.\n- Rounding: For `@remotion/webcodecs` the time is **rounded up** to the next second, for FFmpeg.wasm the time is **rounded down** to seconds.\n\n**Settings and versions**:\n`@remotion/webcodecs`: 4.0.244 through https://remotion.dev/convert.\n`FFmpeg.wasm`: Through https://ffmpeg.wide.video, tests executed on December 29, 2024. We selected this interface because it includes the SIMD version of FFmpeg.wasm, which should benefit its speed.\n\n## Converting a MP4 to WebM\n\nAsset used: https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/bigbuckbunny.mp4\nAsset was first downloaded to the machine, download time is not included.\n\nSettings for remotion.dev/convert: Container WebM, Video convert to VP8, Audio convert to Opus\nCommand for FFmpeg.wasm: `ffmpeg -i bigbuckbunny.mp4 -c:v libvpx -c:a libopus bigbuckbunny.webm`\n\n|                     | Run 1  | Run 2  | Run 3  | Average  |\n|---------------------|--------|--------|--------|----------|\n| @remotion/webcodecs | 8sec   | 7sec   | 7sec   | 7.4sec   |\n| FFmpeg.wasm         | 112sec | 116sec | 115sec | 113.3sec |\n\n## Converting an AV1 WebM to MP4\nAsset used: https://remotion-assets.s3.eu-central-1.amazonaws.com/example-videos/av1-bbb.webm\nAsset was first downloaded to the machine, download time is not included.\n\nSettings for remotion.dev/convert: Container MP4, Video convert to H.264\nCommand for FFmpeg.wasm: `ffmpeg -i av1-bbb.webm out.mp4`\n\n|                     | Run 1 | Run 2 | Run 3 | Average |\n|---------------------|-------|-------|-------|---------|\n| @remotion/webcodecs | 4sec  | 4sec  | 4sec  | 4sec    |\n| FFmpeg.wasm         | 22sec | 20sec | 19sec | 20.3sec |\n\n## Summary\n\nIn our tests, we observed every time that `@remotion/webcodecs` is at least 5 times faster. \nTo make a claim in good faith and give the benefit of the doubt in case of any deviations, we make the conservative claim that `@remotion/webcodecs` is 3 times faster on a M2 MacBook.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremotion-dev%2Fwebcodecs-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremotion-dev%2Fwebcodecs-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremotion-dev%2Fwebcodecs-benchmark/lists"}