49
Appendix 2 - Configuration file for the O.S. toolchain
Configuration file for the Open Source toolchain (in YAML format), items changed from the
default value are highlighted in green.
temp_dir: '/tmp/'
segment_prefix: 'os_sample'
index_prefix: 'os_stream'
# type of logging: STDOUT, FILE
log_type: 'STDOUT'
log_level: 'DEBUG'
# where the origin video is going to come from
input_location: 'jonathan_ive_design.mp4'
# segment length in seconds
segment_length: 10
# this is the URL where the stream (ts) files will end up
url_prefix: ""
# this command is used for multirate encodings and is what pushes the encoders
source_command: 'cat %s'
# This is the location of the segmenter
segmenter_binary: './live_segmenter'
# the encoding profile to use
encoding_profile: [ 'ep_128k', 'ep_386k', 'ep_512k' ]
# The upload profile to use
transfer_profile: 'copy_dev'
# Encoding profiles
ep_128k:
ffmpeg_command: "ffmpeg -er 4 -y -i %s -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 480x270
-vcodec libx264 -b 128k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5
-trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 128k
-maxrate 128k -bufsize 128k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4
-level 30 -aspect 480:270 -g 30 -async 2 - | %s %s %s %s %s"
bandwidth: 128000
ep_386k:
ffmpeg_command: "ffmpeg -er 4 -y -i %s -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 480x270
-vcodec libx264 -b 386k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5
-trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 386k
-maxrate 386k -bufsize 386k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4
-level 30 -aspect 480:270 -g 30 -async 2 - | %s %s %s %s %s"
bandwidth: 386000
ep_512k:
ffmpeg_command: "ffmpeg -er 4 -y -i %s -f mpegts -acodec libmp3lame -ar 48000 -ab 64k -s 480x270
-vcodec libx264 -b 512k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5
-trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 512k
-maxrate 512k -bufsize 512k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4
-level 30 -aspect 480:270 -g 30 -async 2 - | %s %s %s %s %s"
bandwidth: 512000
copy_dev:
transfer_type: 'copy'
directory: '/var/www/vps.bedesign.be/http_live/os_10'
26