Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

stream_type(1) [debian man page]

STREAM_TYPE(1)							   User Commands						    STREAM_TYPE(1)

NAME
stream_type - attempt to determine if an input stream is TS, PS, or ES SYNOPSIS
stream_type [switches] <infile> DESCRIPTION
TS tools version 1.11, stream_type built Nov 11 2008 17:15:48 Attempt to determine if an input stream is Transport Stream, Program Stream, or Elementary Stream, and if the latter, if it is H.262 or H.264 (i.e., MPEG-2 or MPEG-4/AVC respectively). The mechanisms used are fairly crude, assuming that: - data is byte aligned - for TS, the first byte in the file will be the start of a NAL unit, and PAT/PMT packets will be findable - for PS, the first packet starts immediately at the start of the file, and is a pack header - if the first 1000 packets could be H.262 *or* H.264, then the data is assumed to be H.264 (the program doesn't try to determine sensible sequences of H.262/H.264 packets, so this is a reasonable way of guessing) It is quite possible that data which is not relevant will be misidentified The program exit value is: * 10 if it detects Transport Stream, * 11 if it detects Program Stream, * 12 if it detects Elementary Stream containing H.262 (MPEG-2), * 14 if it detects Elementary Stream containing H.264 (MPEG-4/AVC), * 5 if it looks like it might be PES, * 9 if it really cannot decide, or * 0 if some error occurred Files: <infile> is the file to analyse Switches: -verbose, -v Output more detailed information about how it is making its decision -quiet, -q Only output error messages TS tools version 1.11, stream_type built Nov 11 2008 17:15:48 Attempt to determine if an input stream is Transport Stream, Program Stream, or Elementary Stream, and if the latter, if it is H.262 or H.264 (i.e., MPEG-2 or MPEG-4/AVC respectively). The mechanisms used are fairly crude, assuming that: - data is byte aligned - for TS, the first byte in the file will be the start of a NAL unit, and PAT/PMT packets will be findable - for PS, the first packet starts immediately at the start of the file, and is a pack header - if the first 1000 packets could be H.262 *or* H.264, then the data is assumed to be H.264 (the program doesn't try to determine sensible sequences of H.262/H.264 packets, so this is a reasonable way of guessing) It is quite possible that data which is not relevant will be misidentified The program exit value is: * 10 if it detects Transport Stream, * 11 if it detects Program Stream, * 12 if it detects Elementary Stream containing H.262 (MPEG-2), * 14 if it detects Elementary Stream containing H.264 (MPEG-4/AVC), * 5 if it looks like it might be PES, * 9 if it really cannot decide, or * 0 if some error occurred Files: <infile> is the file to analyse Switches: -verbose, -v Output more detailed information about how it is making its decision -quiet, -q Only output error messages SEE ALSO
The full documentation for stream_type is maintained as a Texinfo manual. Please check http://tstools.berlios.de for more information. stream_type 1.11 November 2008 STREAM_TYPE(1)

Check Out this Related Man Page

ESMERGE(1)							   User Commands							ESMERGE(1)

NAME
esmerge - merge audio and video ES into a TS DESCRIPTION
Usage: esmerge [switches] <video-file> <audio-file> <output-file> TS tools version 1.11, esmerge built Nov 11 2008 17:15:46 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. <output-file> is the resultant TS file. Switches: -quiet, -q Only output error messages. -verbose, -v Output information about each audio/video frame. -x Output diagnostic information. -h264 The video stream is H.264 (the default) -avs The video stream is AVS -vidrate <hz> Video frame rate in Hz - defaults to 25Hz. -rate <hz> Audio sample rate in Hertz - defaults to 44100, i.e., 44.1KHz. -cd Equivalent to -rate 44100 (CD rate), the default. -dat Equivalent to -rate 48000 (DAT rate). -adts The audio stream is ADTS (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 <f> PAT and PMT will be inserted every <f> video frames. by default, f = 0 and PAT/PMT are inserted only at the start of the output stream. Limitations =========== 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. esmerge <video-file> <audio-file> <output-file> TS tools version 1.11, esmerge built Nov 11 2008 17:15:46 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. <output-file> is the resultant TS file. Switches: -quiet, -q Only output error messages. -verbose, -v Output information about each audio/video frame. -x Output diagnostic information. -h264 The video stream is H.264 (the default) -avs The video stream is AVS -vidrate <hz> Video frame rate in Hz - defaults to 25Hz. -rate <hz> Audio sample rate in Hertz - defaults to 44100, i.e., 44.1KHz. -cd Equivalent to -rate 44100 (CD rate), the default. -dat Equivalent to -rate 48000 (DAT rate). -adts The audio stream is ADTS (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 <f> PAT and PMT will be inserted every <f> video frames. by default, f = 0 and PAT/PMT are inserted only at the start of the output stream. Limitations =========== 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. SEE ALSO
The full documentation for esmerge is maintained as a Texinfo manual. If the info and esmerge programs are properly installed at your site, the command info esmerge should give you access to the complete manual. esmerge 1.11 November 2008 ESMERGE(1)
Man Page