Skip to content

Instantly share code, notes, and snippets.

  • libopenh264
$ ffmpeg -h encoder=libopenh264
libopenh264enc AVOptions:
  -loopfilter        <int>        E..V....... enable loop filter (from 0 to 1) (default 1)
  -profile           <int>        E..V....... set profile restrictions (from -99 to 65535) (default -99)
     constrained_baseline 578          E..V.......
     main            77           E..V.......
     high            100          E..V.......
  -max_nal_size      <int>        E..V....... set maximum NAL size in bytes (from 0 to INT_MAX) (default 0)

dash (100G)

공통 정보

  • dash no low latency
  • 8 live channel
  • chunk duration 2s
  • timeout 1s
  • test duration 5m

streamer

|tps|throughput|channel bitrate|user count|

streamer

tps, throughput (2 file hit, 5000 connections, 100G)

size tps throughput test duration
256k 44826.48 94.4Gbit/s 5m
128k 76588.56 80.3Gbit/s 5m
64k 84307.06 44.3Gbit/s 5m
  • ingest, jitp 기능 없이 단순 웹서버 기능만 테스트
  • 128k 테스트 시에 네트워크 한계 성능인 90G 에 10% 정도 못미치는 성능이 나옴
  • throughput 계산은 다음 식을 따름

cproxy

tps, throughput (2 file hit, 5000 connections, 100G)

size tps throughput test duration
64k 170475.80 90.0Gbit/s 10m
32k 200848.55 53.0Gbit/s 5m

raw data(64k, 10m)

2022. 05. 18. (수) 18:13:31 KST

streamer

tps, throughput (2 file hit, 3500 connections, 70G)

size tps throughput test duration cpu usage
128k 59034.05 61.9Gbit/s 5m 70.3%
64k 82353.52 43.3Gbit/s 5m 84.3%
  • ingest, jitp 기능 없이 단순 웹서버 기능만 테스트
  • cproxy 에 비하여 cpu 사용률이 높음
    • 64k 테스트 시에 cpu 사용률이 80% 를 상회하여 네트워크 한계 성능에 미치지 못함
    • 128k 테스트 시에 cpu 사용률(70.3%)은 일정하게 유지되는 값은 아니며 60~80% 사이를 왔다갔다 함

cproxy

tps, throughput (2 file hit, 3500 connections, 70G)

size tps throughput test duration
64k 122201.99 64.3Gbit/s 5m
32k 171682.10 45.3Gbit/s 2m
  • 64k 테스트는 성능 저하 없이 유지되어 5분치 데이터 사용
  • 32k 테스트 시에 2분을 넘어가면 20% 정도 성능 저하 현상이 발생하여 2분치 데이터만 뽑음
    • 테스트 종료 후 클라이언트 재시작 하면 성능이 복구되고 다시 2분 이상 지나면 성능 저하 현상 발생
    • 64k 에서는 발생하지 않음

tps, throughput (1 file hit, 110 connections)

size tps throughput
8k 99844.44 6.7Gbit/s
16k 84460.07 11.2Gbit/s
32k 62774.43 16.5Gbit/s
64k 35368.64 18.6Gbit/s
128k 17753.33 18.6Gbit/s
256k 8920.19 18.7Gbit/s
512k 4467.92 18.7Gbit/s

license-tool

사용 방법

  • 툴 위치 : http://172.16.45.11/castis/tool/license-tool.tar.gz
  • 사용 방법
    • hwid 를 사용하여 hwid.txt 생성
    • license-generator 를 실행 후 key/value 입력
      • streamer / cache-server / slb 에 맞게 각각 필수 항목 입력
      • 모든 항목 입력 후 Key > 프롬프트에서 엔터키 입력
    • license.json 파일을 license-streamer.json 으로 이름 변경

ADS asis/tobe

asis tobe
adative url /OTM/10010_Hsmil.m3u8 /OTM/10010_Hsmil.m3u8
static url /OTM/10010_H.m3u8 /OTM/10010_H.m3u8
chunk url /OTM/10010_H.m3u8?Range=1-2 /OTM/10010_H/10010_H_1.mpg
/OTM/10010_H.m3u8?Range=2-3 /OTM/10010_H/10010_H_2.mpg
base dir /dev/shm/otm /dev/shm/otm
adaptive filepath [base-dir]/10010_Hsmil.m3u8 [base-dir]/10010_Hsmil.m3u8