Skip to content

GStreamer#751

Open
ngcores wants to merge 4 commits into
YouROK:masterfrom
ngcores:master
Open

GStreamer#751
ngcores wants to merge 4 commits into
YouROK:masterfrom
ngcores:master

Conversation

@ngcores

@ngcores ngcores commented Jun 22, 2026

Copy link
Copy Markdown

Транскодинг видео и аудио

настройки в settings.json

"gst": {
  "gstVersion": 1.28,      // если версия ниже, указываем ее
  "inactiveMinutes": 5,    // 5 минут без активности, задача будет в режиме горячий pipeline без заморозки и т.д
  "tempfs": true,          // файловый буфер потока между m4s и змейкой 
  "tempfs_ring": 0,        // каждая единица 32Mb ~30s видео | 10 = 320Mb буфера, ~300s видео между змейкой и pipeline
  "aacBitrateKbps": 256,   // звук кодируется в AAC 256 кбит/с
  "segmentSeconds": 6,
  "transcodeH264": false, // false дает поток как есть (copy) | true кодирует видео 
  "transcodeH265": false, // false copy | H265 > H264
  "transcodeAV1": false,  // false copy | AV1 > H264
  "transcodeVP9": false,  // false copy | VP9 > H264
  "videoBitrate": 10000,  // если включен транскодинг видео 

  // очередь буфера в RAM памяти для обработки боксов 
  "pipelineTimeSeconds": 20, // 20 секунд или pipelineVideoQueue
  "pipelineAudioQueue": 4,   // 4mb
  "pipelineVideoQueue": 32   // 32Mb
}

Пакеты в linux

apt-get update

apt-get install -y --no-install-recommends \
    ffmpeg \
    libgstreamer1.0-0 \
    libgstreamer-plugins-base1.0-0 \
    gstreamer1.0-plugins-base \
    gstreamer1.0-plugins-good \
    gstreamer1.0-plugins-bad \
    gstreamer1.0-libav \
    gstreamer1.0-plugins-base-apps \
    gstreamer1.0-tools \
    ca-certificates

Для Windows нужен
https://gstreamer.freedesktop.org/data/pkg/windows/1.28.3/mingw/gstreamer-1.0-mingw-x86_64-1.28.3.exe

Сам поток
http://IP:8090/gst/:hash/master.m3u8?index=1&audio=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants