RepositorySwiftIEIreland
finnvoor

finnvoor/Transcoding

Simple video transcoding in Swift

74sao
8fork
1issue
1lượt xem

🎬 Chuyển mã video H264/HEVC trong Swift

Gói thư viện Swift nhẹ nhưng mạnh mẽ, được thiết kế riêng cho việc mã hóa/giải mã video tối ưu cho truyền tải qua mạng.

Transcoding là một Swift package đơn giản dùng cho việc mã hóa và giải mã video với các adaptor định dạng Annex-B được tối ưu cho việc truyền tải video qua mạng. Gói thư viện này được sử dụng trong ứng dụng Castaway — một phần mềm streaming thiết bị thu âm HDMI từ iPad hoặc Mac tới Vision Pro lân cận.

✨ Điểm nổi bật

  • VideoEncoder: Chuyển đổi CMSampleBuffer chứa CVPixelBuffer thành luồng dữ liệu nén H264/HEVC.
  • VideoDecoder: Giải mã dữ liệu nén H264/HEVC thành CMSampleBuffer chứa CVPixelBuffer.
  • Cấu hình đa dạng: Hỗ trợ các preset như live capture, active transcoding, background transcoding và ultra-low latency theo khuyến nghị của Apple.
  • Adaptor Annex B: Chuyển đổi dữ liệu nén sang định dạng luồng byte Annex B (ITU-T-REC-H.265), thích hợp cho truyền tải qua mạng.
  • Pipeline ví dụ hoàn chỉnh: Cung cấp ví dụ kết nối encoder và decoder qua luồng Annex B tối ưu độ trễ thấp.
  • Tự động quản lý trạng thái: Tự động reset encoder/decoder khi ứng dụng chuyển sang nền, hỗ trợ gọi invalidate() khi cần.

💡 Vì sao đáng chú ý

Không chỉ là công cụ mã hóa/giải mã đơn thuần, Transcoding tích hợp sẵn các adaptor định dạng Annex B giúp dễ dàng triển khai truyền tải video qua mạng mà không cần xử lý phức tạp. Đặc biệt hữu ích trong các ứng dụng streaming thời gian thực hoặc kết nối thiết bị từ xa như Castaway.


#Swift #VideoTranscoding #H264 #HEVC #AnnexB #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJupyter Notebook
leandromoreira/digital_video_introduction

A hands-on introduction to video technology: image, video, codec (av1, vp9, h265) and more (ffmpeg encoding). Translations: 🇺🇸 🇨🇳 🇯🇵 🇮🇹 🇰🇷 🇷🇺 🇧🇷 🇪🇸

16.4k
Nov 5, 2026
RepositoryTypeScript
goldvideo/demuxer

A tool for demux ts/mp4/flv by typescript. Support HEVC/AVC/AAC codec. https://goldvideo.github.io/demuxer/

202
Apr 24, 2026
RepositorySwift
sunlubo/SwiftFFmpeg

A Swift wrapper for the FFmpeg API

651
Nov 14, 2026
RepositoryJavaScript
illuspas/Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV Media Server

6.2k
Oct 31, 2026
RepositoryPHP
ZoneMinder/zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.

6.0k
Nov 26, 2026
RepositoryJavaScript
numberwolf/h265web.js

https://h265web.com 🔥 作者:常炎隆(Author: ChangYanlong):HEVC/H.265 网页直播/点播播放器 支持硬解! 支持H.265的HttpFLV/HLS/MP4/TS/FLV/M3U8/Websocket/WebRTC/VR360播放。 🔥 A HEVC/H.265 Web Player, Support hard-decoding! for LIVE/VOD stream. Support H.265 Codec with HttpFLV/HLS/MP4/TS/FLV/M3U8/Websocket/WebRTC/VR360.

2.4k
Oct 28, 2026
RepositoryC++
IENT/YUView

The Free and Open Source Cross Platform YUV Viewer with an advanced analytics toolset

2.3k
Nov 25, 2026
RepositoryShell
markus-perl/ffmpeg-build-script

The FFmpeg build script provides an easy way to build a static FFmpeg on OSX and Linux with non-free codecs included.

1.2k
Nov 22, 2026
RepositoryC
ultravideo/kvazaar

An open-source HEVC encoder

973
Nov 18, 2026