
Briareus: Segment-parallel distributed video transcoder in Go, built on FFmpeg
Segment-parallel distributed video transcoder in Go, built on FFmpeg.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Segment-parallel distributed video transcoder in Go, built on FFmpeg.
Briareus divides a video into independently encodable segments at keyframe boundaries. FFmpeg performs the encoding, while Briareus handles probing, segmentation and job execution.
Go 1.27 or newer
FFmpeg and ffprobe on your PATH, with libx264 support
Usage
Place the source video at testdata/test.mp4, then run the following from the project root:
go run ./cmd/briareus
Path Contents
out/segments/ Source segments
out/transcoded/ Transcoded segments
Known Limitations
Open-GOP sources
Briareus splits input at keyframes using stream copy and assumes closed GOPs, where no frame references a frame outside its own GOP.
Some sources, commonly broadcast and Blu-ray content, use open GOPs, where B-frames at the end of one GOP reference the I-frame of the next. Cutting at that I-frame separates those B-frames from their reference, which can cause visual artifacts at segment boundaries.
Content encoded with x264's default settings produces closed GOPs and is unaffected.
Output is written as individual video-only segments. Source audio is not included.
Inputs must be long enough to produce at least two segments at the 10-second target duration.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。