ESMERGE(1)

πŸ’– ESMERGE(1) πŸ’–

okay bestie, pull up a chair, because this is the General Commands Manual entry for esmerge and it's about to be your whole personality for the next five minutes ✨


🌸 NAME 🌸

esmerge β€” merge the contents of two ES to make a TS

like... two Elementary Streams walk into a bar and leave as one Transport Stream. it's giving glow-up. πŸ’…


πŸŽ€ 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

that's the whole vibe in one code block, no cap 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so the whole point of this icon is: you take two Elementary Stream (ES) files β€” one with video data, one with audio β€” and you smoosh them together into one output file that's a Transport Stream (TS). matchmaker energy fr fr πŸ’–

πŸ“ Files πŸ“

  • video_file β€” this is the ES file containing video. the visuals. the cinema. 🎬
  • audio_file β€” this is the ES file containing audio. the sound. the vibes. 🎧
  • out_file β€” this is the resultant TS file. the baby. the main character. πŸ‘‘

πŸŽ›οΈ Switches πŸŽ›οΈ

  • -err stdout β€” write error messages to standard output (this is the default, bestie)
  • -err stderr β€” write error messages to standard error (the Unix-traditional way, old-school cool πŸ•°οΈ)
  • -stdin β€” input from standard input, instead of a file. yes, it's a pipe situation. we love a pipe situation πŸͺˆ
  • -v, -verbose β€” output extra information about each audio/video frame. she's chatty, she's telling you everything πŸ’¬
  • -q, -quiet β€” only output error messages. she's mysterious, she's silent, she's ✨selectively present✨
  • -x β€” output diagnostic information. the tea β˜•
  • -h264 β€” the video stream is H.264 (this is the default)
  • -avs β€” the video stream is AVS
  • -vidrate video_hz β€” video frame rate in Hz β€” defaults to 25Hz.
  • -rate audio_hz β€” audio sample rate in Hertz β€” defaults to 44100, i.e., 44.1KHz.
  • -cd β€” equivalent to -rate 44100 (CD rate), the default. retro but make it classic πŸ’Ώ
  • -dat β€” equivalent to -rate 48000 (DAT rate).
  • -adts β€” the audio stream is ADTS (this is the default)
  • -l2 β€” the audio stream is MPEG layer 2 audio
  • -mp2adts β€” the audio stream is MPEG-2 style ADTS regardless of ID bit
  • -mp4adts β€” the audio stream is MPEG-4 style ADTS regardless of ID bit
  • -ac3 β€” the audio stream is Dolby AC-3 in ATSC
  • -patpmtfreq 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. so if you leave it alone, they show up once at the beginning and then mind their own business 🫢

πŸ‘€ SEE ALSO πŸ‘€

esdots(1),

(yes, there's a comma. yes, it's just vibing there alone. iconic, honestly πŸ’€)


⚠️ BUGS ⚠️

for the moment, the video input must be H.264 or AVS, and the audio input must be ADTS, AC-3 ATSC or MPEG layer 2. also, the audio is assumed to have a constant number of samples per frame. no cap, that's the rule, don't come for me 😭


Debian πŸ“ October 28, 2015 πŸ“ that's the source, that's the version, that's the date β€” and that's the whole manpage, bestie. go merge something gorgeous. mwah πŸ’‹βœ¨πŸŒˆ