Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ts2mpa is a simple tool to extract MPEG Audio from a MPEG-2 Transport Stream.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 CHANGELOG.md
Octocat-spinner-32 Makefile
Octocat-spinner-32 README.md
Octocat-spinner-32 mpa_header.c
Octocat-spinner-32 mpa_header.h
Octocat-spinner-32 ts2mpa.c
Octocat-spinner-32 ts2mpa.h
README.md

ts2mpa

By Nicholas Humfrey njh@aelius.com

ts2mpa is a simple tool to extract MPEG Audio from a MPEG-2 Transport Stream.

Usage:

ts2mpa [options] <infile> <outfile>
  -h             Help - this message.
  -q             Quiet - don't print messages to stderr.
  -p <pid>       Choose a specific transport stream PID.
  -s <streamid>  Choose a specific PES stream ID.

Examples

The following examples are based on DVB-T in London, tuned to BBC Radio coming from the the Crystal Palace transmitter:

Record BBC Radio 4 to disk: dvbstream -o -f 529833330 439 | ts2mpa - recording.mp2

Play BBC Radio 1 through soundcard: dvbstream -o -f 529833330 436 | ts2mpa -q - - | mpg123 -

Todo

  • Add support for resyncing transport stream
  • Automatic output file name choosing
  • Progress bar?
Something went wrong with that request. Please try again.