Skip to content

Encoder Command Line

Alexey Yakovenko edited this page Jul 7, 2014 · 1 revision

Introduction

The best way to learn how to write command line for any encoder is to look at standard deadbeef presets.

There are 2 methods of using the encoders: pipe and temp file.

Via pipe

This is the preferred way, but not all encoders support it.

Example:

lame --preset cbr 320 - %o

In this example, "-" means "accept input data on standard input pipe", and %o will be substituted with the output filename, as configured in the main Converter dialog. Make sure to select Method: pipe in the preset configuration dialog.

Via temporary file

Example:

ttaenc -e -o %o %i

In this example, "%o" is the output file name, as configured in the main Converter dialog, while %i is the name of temporary file, which will be written by Converter plugin. Select Method: Temporary file in the preset. This method works with all encoders, but usually has file size limitation (4Gb is RIFF WAVE format limit), and it's not possible to display progress bar while encoding.