mux command


Purpose

Multiplex data files and create a pss file.

Format

command section

mux (Abbreviated form: m)

options section

Options Meaning
-o Overwrite if output file already exists
-d [directory] Specify output directory.
-v Provide detailed progress report.

target file section

Parameter 1 Multiplex instruction file
Parameter 2 (optional) The pss file to be created (if this option is omitted, the file that is created will be the multiplex instruction file with the pss extension.)

Multiplex instruction file

Contains information about file multiplexing.

Basic format

# comment
pss
	min_pack_size [minimum pack size]
	max_pack_size [maximum pack size]
	rate [transfer rate]

	stream [stream type]:[stream number]
		input [input file]

		min_packet_size [minimum packet size]
		max_packet_size [maximum packet size]
		rate [transfer rate]

	end

	# stream repeated...

end

'#' (pound sign) Subsequent characters up to the end of the line will be ignored and treated as a comment.

Keywords are case sensitive.

Keywords are processed line by line. A single line cannot contain multiple keywords and a keyword cannot span multiple lines.

The order of lines within a block is arbitrary. (The input keywords should be placed at the start of the block.)

Description of keywords

Keywords Description Parameter Default value
pss Start of a program stream block None N/A
end End of block None N/A
min_pack_size Minimum pack size (optional) Minimum pack size (bytes) 16384 (16KB)
max_pack_size Maximum pack size (optional) Maximum pack size (bytes) 16384 (16KB)
rate Transfer rate (transfer rates for program streams, MPEG video elementary streams, and audio elementary streams are optional) Transfer rate (bytes/sec) (Calculated automatically)
stream Start of elementary stream block Stream type: streamNumber Stream type->required
Stream ID -> 0
input Elementary stream input file Input file Required
min_packet_size Minimum packet size (optional) Minimum packet size (bytes) 2048 (2KB)
max_packet_size Maximum packet size (optional) Maximum packet size (bytes) 4096 (4KB)
stream_start_delay Stream start delay time (optional) Delay time (ms) 0 ms

Stream type

Keywords Description
video MPEG video elementary stream (*.m2v)
ipu ipu video elementary stream (*.ipu)
adpcm adpcm audio elementary stream (SPU stream file *.ads)
pcm pcm audio elementary stream (SPU stream file *.ads)
data data elementary stream (*.dat)

For MPEG video, stream numbers must be in the range of 0 - 15. Other streams can have stream numbers of integers in the range of 0 - 65536.

Example:

Multiplex ipu video and adpcm audio

pss
	stream ipu
		input video.ipu
		rate 256000 # 2000 kbit/s
	end

	stream adpcm
		input audio.ads
	end

end

Multiplex MPEG video and PCM audio x 2

pss
	stream video:0
		input video.m2v
	end

	stream pcm:0
		input audio1.ads
	end

	stream pcm:1
		input audio2.ads
	end

end

[EOF]

Last update:2000/01/31


SCEI CONFIDENTIAL
Copyright (c) 1999 Sony Computer Entertainment Inc. All Rights Reserved.