FFmpeg
Data Structures | Functions | Variables
soxenc.c File Reference
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
#include "libavutil/dict.h"
#include "avformat.h"
#include "avio_internal.h"
#include "mux.h"
#include "rawenc.h"
#include "sox.h"

Go to the source code of this file.

Data Structures

struct  SoXContext
 

Functions

static int sox_write_header (AVFormatContext *s)
 
static int sox_write_trailer (AVFormatContext *s)
 

Variables

const FFOutputFormat ff_sox_muxer
 

Detailed Description

SoX native format muxer

Author
Daniel Verkamp
See also
http://wiki.multimedia.cx/index.php?title=SoX_native_intermediate_format

Definition in file soxenc.c.

Function Documentation

◆ sox_write_header()

static int sox_write_header ( AVFormatContext s)
static

Definition at line 45 of file soxenc.c.

◆ sox_write_trailer()

static int sox_write_trailer ( AVFormatContext s)
static

Definition at line 87 of file soxenc.c.

Variable Documentation

◆ ff_sox_muxer

const FFOutputFormat ff_sox_muxer
Initial value:
= {
.p.name = "sox",
.p.long_name = NULL_IF_CONFIG_SMALL("SoX (Sound eXchange) native"),
.p.extensions = "sox",
.priv_data_size = sizeof(SoXContext),
.p.audio_codec = AV_CODEC_ID_PCM_S32LE,
.p.video_codec = AV_CODEC_ID_NONE,
.p.subtitle_codec = AV_CODEC_ID_NONE,
.write_header = sox_write_header,
.write_packet = ff_raw_write_packet,
.write_trailer = sox_write_trailer,
.p.flags = AVFMT_NOTIMESTAMPS,
.flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH,
}

Definition at line 108 of file soxenc.c.

AVFMT_NOTIMESTAMPS
#define AVFMT_NOTIMESTAMPS
Format does not need / have any timestamps.
Definition: avformat.h:479
sox_write_trailer
static int sox_write_trailer(AVFormatContext *s)
Definition: soxenc.c:87
ff_raw_write_packet
int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt)
Definition: rawenc.c:31
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
FF_OFMT_FLAG_MAX_ONE_OF_EACH
#define FF_OFMT_FLAG_MAX_ONE_OF_EACH
If this flag is set, it indicates that for each codec type whose corresponding default codec (i....
Definition: mux.h:50
AV_CODEC_ID_PCM_S32LE
@ AV_CODEC_ID_PCM_S32LE
Definition: codec_id.h:336
SoXContext
Definition: soxenc.c:41
sox_write_header
static int sox_write_header(AVFormatContext *s)
Definition: soxenc.c:45