Ffmpeg2dirac

From DiracWiki

Jump to: navigation, search

Contents

[edit] Introduction

ffmpeg2dirac is a utility that converts any file that can be decoded by FFmpeg to Dirac or Theora muxed with Vorbis (if audio exists) in Ogg. It is derived from ffmpeg2theora and uses the same command line interface as ffmpeg2theora in addition to a few Dirac specific command line arguments. By default it uses the dirac-research encoder to encode. If Schroedinger is installed, it uses the Schroedinger encoder if --use-schro argument is provided in the command line.

[edit] Source code

ffmpeg2dirac depends on the following

Build environment
- scons (http://www.scons.org)

For the Ogg container
- Latest release of libogg (1.1.3 or later) from http://xiph.org

For video, at least one of the following video codecs needs to be installed
- Latest release of dirac-software or source from repository on http://diracvideo.org
- Latest release of Schroedinger (later than 1.0.5) or source from repository on http://diracvideo.org
- Latest release of libtheora (1.0.0 or later) from http://xiph.org

For audio
- Latest release of libvorbis (1.2.0 or later) from http://xiph.org

For transcoding
- FFmpeg source revision 17146 or later

Detailed instructions about how to compile ffmpeg2dirac from source can be found in the INSTALL notes in the distribution.

[edit] Win32 binary

Download (standalone ready-to-use binary):

3 video encoders are available:

  • Dirac (default)
  • Schrodinger "--use-schro"
  • Theora "--use-theo"

For audio (if available in the input) Vorbis is the only encoder available.

[edit] Usage

Transcode an MPEG2 video to Dirac in Ogg using dirac-research encoder for video
ffmpeg2dirac -o out.ogv in.m2v

Transcode a DV file to Dirac+Vorbis muxed in Ogg using Schroedinger encoder for video
ffmpeg2dirac -o out.ogv --use-schro in.dv

Transcode a DV file to Theora+Vorbis muxed in Ogg using Theora encoder for video
fmfpeg2dirac -o out.ogv --use-theora in.dv


By default, ffmpeg2dirac uses parameters hardcoded in the source to code the video and audio. These parameters can be overridden from the command line. To get a full list of the command line arguments, run

ffmpegdirac -h


The command line parameters that affect the quality of the output are
--videoquality Valid range (1..255). The higher the value the better the quality
--videobitrate Target video bitrate in kbps
--audioquality Valid range (-2..10)
--audiobitrate Target audio bitrate in kbps.

Detailed desrciption of each command line option can be found in the man page, ffmpeg2dirac.1, in the distribution.

Personal tools