From 6116215b50d84a4f166eb6dcccac7cf26eb71cab Mon Sep 17 00:00:00 2001 From: tibs Date: Thu, 26 Feb 2009 12:02:34 +0000 Subject: [PATCH] Improve the tsplay help for "-help ps" to explain what the PID values are actually used for, and why (before it was definitely confusing). --HG-- extra : convert_revision : svn%3Aeff31bef-be4a-0410-a8fe-e47997df2690/trunk%40133 --- tsplay.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tsplay.c b/tsplay.c index b896f46..266a387 100644 --- a/tsplay.c +++ b/tsplay.c @@ -986,7 +986,7 @@ static void print_help_ps() " This switch has no effect on MPEG-1 PS data.\n" " -notdvd, -nodvd The PS data is not from a DVD.\n" "\n" - "Specifying audio/video streams:\n" + "Specifying which audio/video streams to read:\n" "\n" " -vstream Take video from video stream (0..7).\n" " The default is the first video stream found.\n" @@ -999,15 +999,19 @@ static void print_help_ps() " is assumed to have determined which one is wanted,\n" " e.g., using psreport)\n" "\n" - " -vpid is the video PID to use for the data.\n" + "The input PS data does not have PAT/PMT or PID values, and thus tsplay\n" + "must invent them. The following switches may be used to choose particular\n" + "PID values:\n" + "\n" + " -vpid is the PID to output video data with.\n" " Use '-vpid 0x' to specify a hex value.\n" " Defaults to 0x68.\n" - " -apid is the audio PID to use for the data.\n" + " -apid is the PID to output audio data with.\n" " Use '-apid 0x' to specify a hex value.\n" " Defaults to 0x67.\n" - " -pmt is the PMT PID to use.\n" + " -pmt is the PID to output PMT data with.\n" " Use '-pmt 0x' to specify a hex value.\n" - " Defaults to 0x66\n" + " Defaults to 0x66.\n" "\n" "The default values for the various PIDs should suffice in most cases\n" "\n" @@ -1018,6 +1022,9 @@ static void print_help_ps() " -dolby dvb Use stream type 0x06 (the default)\n" " -dolby atsc Use stream type 0x81\n" "\n" + "Finally, it is occasionally useful to tweak how often PAT/PMT are written,\n" + "and how much padding the stream starts with:\n" + "\n" " -prepeat Output the program data (PAT/PMT) after every \n" " PS packs, to allow a TS reader to resynchronise\n" " if it starts reading part way through the stream.\n"