Scroll to navigation

ESMERGE(1) General Commands Manual ESMERGE(1)

NAME

esmergeMerge the contents of two ES to make a TS

SYNOPSIS

esmerge [-err stdout] [-err stderr] [-verbose | -v] [-quiet | -q] [-x] [-h264 | -avs] [-vidrate video_hz] [-rate audio_hz | -cd | -dat] [-adts | -l2 | -mp2adts | -mp4adts | -ac3] [-patpmtfreq pat_freq] video_file audio_file out_file

DESCRIPTION

Merge the contents of two Elementary Stream (ES) files, one containing video data, and the other audio, to produce an output file containing Transport Stream (TS).

Files

video_file
is the ES file containing video.
audio_file
is the ES file containing audio.
out_file
is the resultant TS file.

Switches

Write error messages to standard output (the default)
Write error messages to standard error (Unix traditional)
Input from standard input, instead of a file
, -verbose
Output extra information about each audio/video frame
, -quiet
Only output error messages
Output diagnostic information.
The video stream is H.264 (the default)
The video stream is AVS
video_hz
Video frame rate in Hz - defaults to 25Hz.
audio_hz
Audio sample rate in Hertz - defaults to 44100, i.e., 44.1KHz.
Equivalent to -rate 44100 (CD rate), the default.
Equivalent to -rate 48000 (DAT rate).
The audio stream is ADTS (the default)
The audio stream is MPEG layer 2 audio
The audio stream is MPEG-2 style ADTS regardless of ID bit
The audio stream is MPEG-4 style ADTS regardless of ID bit
The audio stream is Dolby AC-3 in ATSC
pat_freq
PAT and PMT will be inserted every pat_freq video frames. By default, pat_freq = 0 and PAT/PMT are inserted only at the start of the output stream.

SEE ALSO

esdots(1),

BUGS

For the moment, the video input must be H.264 or AVS, and the audio input ADTS, AC-3 ATSC or MPEG layer 2. Also, the audio is assumed to have a constant number of samples per frame.

October 28, 2015 Debian