{"id":30856701,"url":"https://github.com/umstek/tv-media-conv","last_synced_at":"2026-05-07T15:35:13.392Z","repository":{"id":309036279,"uuid":"1034847153","full_name":"umstek/tv-media-conv","owner":"umstek","description":"Bun + ffmpeg batch converter for TV-friendly MP4 (H.264 + AAC) with simple zero-padded filenames.","archived":false,"fork":false,"pushed_at":"2026-01-25T12:14:57.000Z","size":72,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-26T03:31:55.521Z","etag":null,"topics":["aac","batch-converter","bun","ffmpeg","ffmpeg-wrapper","file-renamer","h264","hardware-acceleration","intel-qsv","jellyfin","media-converter","media-server","mp4","plex","transcoding","tv-shows","typescript","video-converter"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/umstek.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-08-09T05:18:40.000Z","updated_at":"2025-10-25T08:02:35.000Z","dependencies_parsed_at":"2025-10-25T10:17:38.182Z","dependency_job_id":null,"html_url":"https://github.com/umstek/tv-media-conv","commit_stats":null,"previous_names":["umstek/tv-media-conv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/umstek/tv-media-conv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Ftv-media-conv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Ftv-media-conv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Ftv-media-conv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Ftv-media-conv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umstek","download_url":"https://codeload.github.com/umstek/tv-media-conv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Ftv-media-conv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32744040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["aac","batch-converter","bun","ffmpeg","ffmpeg-wrapper","file-renamer","h264","hardware-acceleration","intel-qsv","jellyfin","media-converter","media-server","mp4","plex","transcoding","tv-shows","typescript","video-converter"],"created_at":"2025-09-07T12:02:22.619Z","updated_at":"2026-05-07T15:35:13.387Z","avatar_url":"https://github.com/umstek.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tv-media-conv\n\nBun + ffmpeg batch converter for TV-friendly MP4 (H.264 + AAC) with simple zero-padded filenames.\n\n## Prerequisites\n\n- Bun installed\n- ffmpeg and ffprobe available on PATH\n\n## Install\n\n```bash\nbun install\n```\n\n## Usage\n\n### 1) Benchmark the machine\n\nDetects hardware acceleration (Intel QSV, NVIDIA NVENC, AMD AMF) and measures CPU scaling, then writes `tv-media-conv.config.json`.\n\n```bash\nbun run index.ts benchmark --input \u003cfile-or-dir\u003e\n```\n\nOptional: custom config path\n\n```bash\nbun run index.ts benchmark --input \u003cfile-or-dir\u003e --config ./my.config.json\n```\n\n### 2) Convert a folder\n\nConverts all videos under the input folder to MP4 (H.264 + AAC), output filenames `NNN.mp4` for proper TV sorting.\n\n```bash\nbun run index.ts convert --in \"D:/Videos/My Show\" --out \"D:/Videos/My Show/TV\"\n```\n\nOptions:\n\n- `--force`: overwrite existing outputs\n- `--dry-run`: print planned actions without converting\n- `--config \u003cpath\u003e`: use a specific config file\n\n## Hardware Acceleration\n\nThe tool automatically detects and benchmarks available hardware acceleration:\n\n- **Intel QSV** (Quick Sync Video): Uses `h264_qsv` encoder on Intel CPUs with integrated graphics\n- **NVIDIA NVENC**: Uses `h264_nvenc` encoder on NVIDIA GPUs\n- **AMD AMF** (Advanced Media Framework): Uses `h264_amf` encoder on AMD GPUs\n\nEach hardware acceleration type runs one worker alongside CPU workers for maximum throughput. If hardware encoding fails for any file, it automatically falls back to CPU encoding.\n\nNotes:\n\n- Hardware acceleration significantly improves encoding speed (3-10x faster than CPU-only)\n- Multiple hardware acceleration types can be active simultaneously if available\n- Episode numbers are extracted heuristically from filenames (e.g. `S01E03`, `Ep 3`, `03 - title`, etc.).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumstek%2Ftv-media-conv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumstek%2Ftv-media-conv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumstek%2Ftv-media-conv/lists"}