{"id":42085920,"url":"https://github.com/themactep/streamripper-rb","last_synced_at":"2026-01-26T10:18:21.903Z","repository":{"id":331936782,"uuid":"1100011087","full_name":"themactep/streamripper-rb","owner":"themactep","description":"StreamRipper as a ruby web app","archived":false,"fork":false,"pushed_at":"2026-01-11T17:47:30.000Z","size":1143,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-11T20:30:05.141Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/themactep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-19T18:13:07.000Z","updated_at":"2026-01-11T17:47:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/themactep/streamripper-rb","commit_stats":null,"previous_names":["themactep/streamripper-rb"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/themactep/streamripper-rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themactep%2Fstreamripper-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themactep%2Fstreamripper-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themactep%2Fstreamripper-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themactep%2Fstreamripper-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/themactep","download_url":"https://codeload.github.com/themactep/streamripper-rb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/themactep%2Fstreamripper-rb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28774301,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T09:42:00.929Z","status":"ssl_error","status_checked_at":"2026-01-26T09:42:00.591Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2026-01-26T10:18:21.342Z","updated_at":"2026-01-26T10:18:21.898Z","avatar_url":"https://github.com/themactep.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamripper - RTSP Stream Analyzer \u0026 H.264 Video Extractor\n\nA comprehensive Ruby application to capture, analyze, and extract H.264 video from RTSP streams with forensic capabilities and web UI.\n\n## Installation\n\n### Local Installation\n\n```bash\ngit clone https://github.com/yourusername/streamripper-rb.git\ncd streamripper-rb\nbundle install\nchmod +x bin/streamripper\n```\n\n### Docker / Podman\n\nBuild and run with Docker:\n\n```bash\ndocker-compose up -d\n```\n\nOr with Podman:\n\n```bash\npodman-compose up -d\n```\n\nThe web UI will be available at http://localhost:8080\n\nTo use a different port, edit `docker-compose.yml` or use:\n```bash\ndocker-compose up -d --port \"8081:8080\"\n```\n\n## Quick Start\n\n### Web UI (Recommended)\n\nLocal:\n```bash\n./bin/streamripper web --port 8080\n```\n\nDocker/Podman:\n```bash\ndocker-compose up -d\n# or\npodman-compose up -d\n```\n\nThen open http://localhost:8080 in your browser.\n\nTo bind to all interfaces (useful for Docker/Podman):\n```bash\n./bin/streamripper web --port 8080 --host 0.0.0.0\n```\n\n### CLI Capture\n\n```bash\n./bin/streamripper capture rtsp://camera-ip:554/stream --duration 30\n```\n\n## Output Files\n\nAfter capture, the following files are generated:\n\n```\nlogs/streams/{host}_{endpoint}/{timestamp}/\n├── raw_stream.bin          # Complete RTSP-over-TCP stream (true raw data)\n├── analysis.json           # Packet metadata and analysis\n├── stream.h264             # De-fragmented H.264 video stream\n├── stream.mp4              # Playable MP4 video file\n└── frames/\n    ├── frame00001.bin      # Individual H.264 frames\n    ├── frame00002.bin\n    └── ...\n```\n\n### Raw Stream Format\n\nThe `raw_stream.bin` file contains the complete RTSP-over-TCP stream with framing:\n\n```\n$ \u003cchannel\u003e \u003clength\u003e \u003cRTP packet\u003e\n$ \u003cchannel\u003e \u003clength\u003e \u003cRTP packet\u003e\n...\n```\n\nWhere:\n- `$` = 0x24 (RTSP marker)\n- `\u003cchannel\u003e` = 1 byte (0=video RTP, 1=video RTCP, 2=audio RTP, 3=audio RTCP)\n- `\u003clength\u003e` = 2 bytes big-endian (RTP packet size)\n- `\u003cRTP packet\u003e` = variable length RTP data\n\n### Analysis JSON\n\nPacket-level metadata including:\n- RTP timestamp and sequence numbers\n- Frame type (I-frame, P-frame, SPS, PPS, etc.)\n- Packet size and timing information\n- Timestamp deviation analysis\n\n### Frame Files\n\nIndividual H.264 NAL units with start codes:\n```\n00 00 01 \u003cNAL header\u003e \u003cNAL data\u003e\n```\n\n## Testing\n\nRun the test suite:\n\n```bash\nbundle exec rspec\n```\n\nRun specific test file:\n\n```bash\nbundle exec rspec spec/packet_analyzer_spec.rb\n```\n\n## Architecture\n\n### Core Modules\n\n- **RTSPFetcher** (`lib/streamripper/rtsp_fetcher.rb`): RTSP protocol handling and packet reading\n- **PacketAnalyzer** (`lib/streamripper/packet_analyzer.rb`): RTP packet parsing and metadata extraction\n- **StreamSaver** (`lib/streamripper/stream_saver.rb`): Raw stream data persistence\n- **WebServer** (`lib/streamripper/web_server.rb`): Web UI and API server\n- **OutputManager** (`lib/streamripper/output_manager.rb`): Output directory management\n\n## Requirements\n\n### Local Installation\n- Ruby 2.7+\n- Bundler\n- FFmpeg (for MP4 generation)\n\n### Docker / Podman\n- Docker or Podman (no Ruby required locally)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemactep%2Fstreamripper-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemactep%2Fstreamripper-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemactep%2Fstreamripper-rb/lists"}