~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to programs/mythtranscode/replex/README

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello
  • Date: 2009-10-02 00:23:18 UTC
  • mfrom: (1.1.36 upstream)
  • Revision ID: james.westby@ubuntu.com-20091002002318-5qu2fr0gxl59egft
Tags: 0.22.0~trunk22167-0ubuntu1
* New upstream checkout (r22167).
  - Fixes some segfaults.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
usage: ./replex [options] <input files>
7
7
 
8
8
options:
9
 
  --help,             -h            :  print help message
10
 
 
11
 
  --audio_pid,        -a <integer>  :  audio PID for TS stream (also used for PS id, default 0xc0)
12
 
  --ac3_id,           -c <integer>  :  ID of AC3 audio for demux (also used for PS id, i.e. 0x80)
13
 
  --video_delay,      -d <integer>  :  video delay in ms
14
 
  --audio_delay,      -e <integer>  :  audio delay in ms
15
 
  --ignore_PTS,       -f            :  ignore all PTS information of original
16
 
  --larger_buffer     -g <integer>  :  video buffer in MB
17
 
  --input_stream,     -i <string>   :  set input stream type (string = TS(default), PS, AVI)
18
 
  --allow_jump,       -j            :  allow jump in the PTS and try repair
19
 
  --keep_PTS,         -k            :  keep and don't correct PTS information of original
20
 
  --min_jump,         -l <integer>  :  don't try to fix jumps in PTS larger than <int> but treat them as a cut (default 100ms)
21
 
  --of,               -o <filename> :  set output file
22
 
  --fillzero          -p            :  fill audio frames with zeros (only MPEG AUDIO)
23
 
  --max_overflow      -q <integer>  :  max_number of overflows allowed (default: 100, 0=no restriction)
24
 
  --scan,             -s            :  scan for streams
25
 
  --type,             -t <string>   :  set output type (string = MPEG2, DVD, HDTV)
26
 
  --video_pid,        -v <integer>  :  video PID for TS stream (also used for PS id, default 0xe0)
27
 
  --vdr,              -x            :  handle AC3 for vdr input file
28
 
  --analyze,          -y <integer>  :  analyze (0=video,1=audio, 2=both)
29
 
  --demux,            -z            :  demux only (-o is basename)
 
9
  --help,             -h:  print help message
 
10
  --type,             -t:  set output type (MPEG2, DVD, HDTV)
 
11
  --of,               -o:  set output file
 
12
  --input_stream,     -i:  set input stream type (TS(default), PS, AVI)
 
13
  --audio_pid,        -a:  audio PID for TS stream (also used for PS id)
 
14
  --ac3_id,           -c:  ID of AC3 audio for demux (also used for PS id)
 
15
  --video_pid,        -v:  video PID for TS stream (also used for PS id)
 
16
  --video_delay,      -d:  video delay in ms
 
17
  --audio_delay,      -e:  audio delay in ms
 
18
  --ignore_PTS,       -f:  ignore all PTS information of original
 
19
  --keep_PTS,         -k:  keep and don't correct PTS information of original
 
20
  --demux,            -z:  demux only (-o is basename)
 
21
  --analyze,          -y:  analyze (0=video,1=audio, 2=both)
 
22
  --scan,             -s:  scan for streams  
 
23
  --vdr,              -x:  handle AC3 for vdr input file
30
24
 
31
25
A typical call would be
32
26
replex -t DVD -o mynewps.mpg myoldts.ts
34
28
Replex can guess the PIDs of your audio and video streams, but
35
29
especially if you have more than one audio stream you should use the
36
30
-v and -a or -c options. The -a and -c options can be used more than
37
 
once to create multiple audio tracks. Use the -s option to find out 
38
 
about the PIDs in your file
 
31
once to create multiple audio tracks.
39
32
 
40
33
The -k option means that replex tries to keep the original PTS spacing,
41
34
which can be helpful in case of corrupt streams. Replex will ignore
46
39
from t]he original and creates the PTS according to the frames that are
47
40
found.
48
41
 
49
 
The -j option lets replex jump over PTS discontiniuties like the ones
50
 
you get from cutting an MPEG file. With -l you can set the minimum time 
51
 
a jump has to have to get treated as cut. The default for that is 100ms.
52
 
If you have video jumps without any audio jumps and they are larger than 
53
 
100ms (usually > 2 frames) you can try increasing the min_jump setting.
54
 
If you set it too high and you have real jumps, e.g. audio and video 
55
 
jumps from a cut, they may not get fixed correctly.
56
 
 
57
 
 
58
 
The -g option can be helpful if you get ringbuffer overflows, it increases
59
 
the video buffer size. Default is 6MB.
60
 
 
61
42
For questions and/or suggestions contact me at mocm@metzlerbros.de.