SmartTranscoder
Command Line Arguments
–help, -h
Print the help to the console and exit.
–version, -v
Print the version to the console and exit.
–config-file, -c
The path to the main configuration file.
–console-log
Tells service to ignore the –log-config and –log-file parameters and print the log to the console with the default formatting.
–log-config, -l
Default value: smtrc.log.json
The path to the logging configuration file.
–log-file
Default value: smtrc_%Y-%m-%d_%H-%M-%S.%N.log
Log file name pattern. This option is ignored if –log-config is specified.
The following variables can be used in the file name:
- Y — year,
- m — month,
- d — day,
- H — hour,
- M — minute,
- S — second,
- N — the file number among files with the same name.
If no variables are defined, the file will be rotated only on service restart.
Configuration File
The default location of the configuration file is: /opt/smartlabs/smartmedia/transcoder/config/config.json
Basic Parameters
threads, integer
Default value: 4
Number of working threads.
interface, string
Default value: 0.0.0.0
The interface to listen on for incoming connections.
port, integer
The port for incoming FastCGI connections.
use_qsv, boolean
Default value: false
The flag that allows you to enable the use of Intel QuickSync Video hardware acceleration for video transcoding. To use QSV, you need to make sure that the CPU and GPU of the server support this technology and that the Intel MediaSDK library is correctly installed in the system. More information can be found in the Intel MediaSDK documentation.
box_parser_buffer_size, data size
Default value: 5M
The size of the buffer used for parsing of MP4-boxes, which are transferred between the network transcoder and SmartMEDIA Conveyor service.
Each mediasample should fit in the buffer, thus this value must be more than the maximum I-frame size within the video stream. In case of a high-bitrate stream, such as UHD/4K streams, this value might need to be increased.
idle_interval_sec, integer
Default value: 300
The period of client inactivity (in seconds), after which the TCP connection and the transcoding session are closed to save resources.
Configuration example
JSON |
{ “interface” : “192.168.1.56”, “port” : 7783, “threads” : 4, “use_qsv” : true, “box_parser_buffer_size” : “10M” } |