1 #LyX 1.6.7 created this file. For more info see http://www.lyx.org/
6 \use_default_options true
11 \font_typewriter default
12 \font_default_family default
19 \paperfontsize default
27 \paperorientation portrait
30 \paragraph_separation indent
32 \quotes_language english
35 \paperpagestyle default
36 \tracking_changes false
45 Dumping processing tools manual
52 \begin_layout Standard
53 Concatenation of dump files is concatenation of their contents.
54 So cat and similar tools can be used to concatenate dumps.
58 Brief description of tools
62 audiotodump.exe - Convert raw PCM audio to dump file.
66 cutdump.exe - Save section of dump file to another.
70 demuxdump.exe - Save stream from dump file to another.
74 dumpconvert.exe - Convert dump files to variety of formats.
78 dumppackets.exe - Dump contents of dump in textual form (meant for debugging).
82 fmtopcm.exe - Convert individual FM-type stream into PCM-type stream.
86 guessresolution.exe - Try to guess resolution of video.
90 mknulldump.exe - Make empty dump of specified length.
94 muxdump.exe - Mux streams from multiple dumps together.
98 picturestodump.exe - Make dump with specified image or animation.
101 \begin_layout Itemize
102 playdump.exe - Play dump in realtime.
105 \begin_layout Itemize
106 testresizer.exe - Test various resizer algorithms on still image (meant for
110 \begin_layout Section
114 \begin_layout Standard
115 Converts raw PCM audio to dump file containing said audio as PCM audio track.
118 \begin_layout LyX-Code
119 Syntax: audiotodump.exe <options> <input> <stream> <output>
122 \begin_layout Standard
123 Convert raw PCM audio from file <input> to dump named <output>.
124 The audio data is placed as PCM-type stream named <stream>.
127 \begin_layout Subsection
131 \begin_layout Subsubsection
135 \begin_layout Standard
136 Assume that samples in file are 8 bits per channel.
139 \begin_layout Subsubsection
143 \begin_layout Standard
144 See --16bit-little-endian
147 \begin_layout Subsubsection
148 --16bit-little-endian
151 \begin_layout Standard
152 Assume that sample in file are 16 bits per channel and little-endian.
156 \begin_layout Subsubsection
160 \begin_layout Standard
161 Assume that sample in file are 16 bits per channel and big-endian.
164 \begin_layout Subsubsection
168 \begin_layout Standard
169 Assume that samples in file have only one channel.
172 \begin_layout Subsubsection
176 \begin_layout Standard
177 Assume that samples in file have two channels in order left, right, left,
182 \begin_layout Subsubsection
186 \begin_layout Standard
187 Assume that samples in file have two channels in order right, left, right,
191 \begin_layout Subsubsection
195 \begin_layout Standard
196 Assume that samples in file are signed.
200 \begin_layout Subsubsection
204 \begin_layout Standard
205 Assume that samples in file are unsigned.
208 \begin_layout Subsubsection
212 \begin_layout Standard
213 Assume that sampling rate in input file is <rate> Hz.
216 \begin_layout Subsubsection
217 --volume=<left>,<right>
220 \begin_layout Standard
221 Write initial volume <left> for left channel and <right> for right channel
225 \begin_layout Subsubsection
229 \begin_layout Standard
230 Write initial volume <volume> for both channels to output.
233 \begin_layout Section
237 \begin_layout Standard
238 Copies section out of the dump.
241 \begin_layout LyX-Code
242 syntax: cutdump.exe <input> <start> <end> <output>
245 \begin_layout Standard
246 Cuts section <start> to <end> from dump <input> and saves it to <output>.
249 \begin_layout Standard
250 <start> and <end> are specified in nanoseconds if these don't contain '.'.
251 Otherwise these are assumed to be in seconds.
252 So for example both 100000000 and 0.1 signifies 0.1s point.
255 \begin_layout Section
259 \begin_layout Standard
260 Copies stream out of the dump.
263 \begin_layout LyX-Code
264 syntax: demuxdump.exe <input> <stream> <output>
267 \begin_layout Standard
268 Copies stream <stream> from dump <input> and saves it to <output>.
271 \begin_layout Section
275 \begin_layout Standard
276 The main dump to other formats converter.
279 \begin_layout LyX-Code
280 syntax: dumpconvert.exe <options> [<subtitle options>...] [<audio options>...]
284 \begin_layout Standard
287 Note that this tool takes subtitle and audio options (and that they are
288 shared with playdump.exe).
291 \begin_layout Subsection
295 \begin_layout Subsubsection
296 --video-width=<width>
299 \begin_layout Standard
300 Set video output width to <width>.
301 No default, must be specified.
304 \begin_layout Subsubsection
305 --video-height=<height>
308 \begin_layout Standard
309 Set video output height to <height>.
310 No default, must be specified.
313 \begin_layout Subsubsection
314 --video-framerate=<fps>
317 \begin_layout Standard
318 Set video output fps to <fps>.
319 <fps> can also be 'auto' to allow variable-framerate output.
320 Default is fixed 60fps.
323 \begin_layout Subsubsection
324 --video-scale-algo=<algo>
327 \begin_layout Standard
328 Set video scaling algorithm to <algo>.
329 Currently following algorithms are available:
332 \begin_layout Itemize
333 'nearest' (nearest neighbor)
336 \begin_layout Itemize
337 'bilinear' (bilinear interpolation)
340 \begin_layout Itemize
341 'average' (weighted average of covered pixels)
344 \begin_layout Itemize
345 'lanczos1', 'lanczos2', 'lanczos3', 'lanczos4', 'lanczos5' (higher-quality
349 \begin_layout Itemize
350 'xdrop9' (drop every 9th column followed by nearest neighbor, handy for
351 matching 720x400 text mode with 640x400 GFX mode)
354 \begin_layout Itemize
355 'hqx2', 'hqx3', 'hqx4', 'hqx22', 'hqx32', 'hqx42', 'hqx2d', 'hqx3d', 'hqx4d'
356 (HQx resizers; requires compile with HQx support).
359 \begin_layout Standard
360 Additionally <algo> can be in form [<algo> <width> <height>]...
361 <algo> to do multi-step resize with specified intermediate resolutions.
362 The order resizes are performed is from right to left.
365 \begin_layout Subsubsection
367 \begin_inset Quotes erd
370 <algo> <width> <height>
371 \begin_inset Quotes erd
377 \begin_layout Standard
378 Set video scaling algorithm to <algo> for frames that are <width> by <height>
380 set special scaler for specific resolution).
383 \begin_layout Subsubsection
384 --video-max-dedup=<dedup>
387 \begin_layout Standard
388 Allow up to <dedup> consequtive frames to be elided if they are indentical
389 to previous (truly identical, not just
390 \begin_inset Quotes eld
394 \begin_inset Quotes erd
398 Requires variable framerate output.
401 \begin_layout Subsubsection
402 --audio-delay=<delay>
405 \begin_layout Standard
406 Delay audio by <delay> nanoseconds/seconds (seconds if <delay> has '.', nanosecon
408 Delay may be negative.
411 \begin_layout Subsubsection
412 --subtitle-delay=<delay>
415 \begin_layout Standard
416 Delay subtitles by <delay> nanoseconds/seconds (seconds if <delay> has '.',
417 nanoseconds otherwise).
418 Delay may be negative.
421 \begin_layout Subsubsection
422 --output-<format>=<filename>[,<parameters>]
425 \begin_layout Standard
426 Output to <filename> in format <format>.
427 <parameters> is format-dependent parameters.
430 \begin_layout Subsection
434 \begin_layout Subsubsection
438 \begin_layout LyX-Code
439 syntax: --output-oggenc=<filename>[,<oggenc-option>[,<oggenc-option[...]]]
442 \begin_layout Standard
443 Pipe audio to oggenc in order to encode OGG Vorbis to <filename>.
444 Note that audio bitrate and format is automatically set correctly.
445 For oggenc options in form --foo=bar, use foo=bar as <oggenc-option>.
446 For oggenc options of form --baz, use baz as <oggenc-option>
449 \begin_layout Subsubsection
453 \begin_layout LyX-Code
454 syntax: --output-rawaudio=<filename>
457 \begin_layout Standard
458 Write 16-bit stereo little-endian signed audio track in raw format to <filename>.
461 \begin_layout Subsubsection
465 \begin_layout LyX-Code
466 syntax: --output-rawi420=<filename>
469 \begin_layout Standard
470 Write video in raw I420 format to <filename>
473 \begin_layout Subsubsection
477 \begin_layout LyX-Code
478 syntax: --output-rawi420-uvswap=<filename>
481 \begin_layout Standard
482 Write video in raw I420 format to <filename>.
483 Red and blue are swapped.
486 \begin_layout Subsubsection
490 \begin_layout LyX-Code
491 syntax: --output-rawrgbx=<filename>
494 \begin_layout Standard
495 Write video in raw RGBx format to <filename>.
498 \begin_layout Subsubsection
502 \begin_layout LyX-Code
503 syntax: --output-timecodev2=<filename>
506 \begin_layout Standard
507 Write video timestamp data in v2 format to <filename>.
508 Very useful for automatic-/variable-fps encoding.
511 \begin_layout Subsubsection
515 \begin_layout LyX-Code
516 syntax: --output-wav=<filename>
519 \begin_layout Standard
520 Write audio in wav form to <filename>.
521 Note that files with over 1 billion samples are not written properly.
524 \begin_layout Subsubsection
528 \begin_layout LyX-Code
529 syntax: --output-x264=<filename>[,<x264-option>[,<x264-option[...]]]
532 \begin_layout Standard
533 Pipe video to x264 in order to encode h.264 to <filename>.
534 Note that video size is automatically set correctly.
535 For x264 options in form --foo bar, use foo=bar as <x264-option>.
536 For x264 options of form --baz, use baz as <x264-option>.
540 \begin_layout Standard
541 BUG: Framerate is not set correctly automatically.
544 \begin_layout Subsubsection
548 \begin_layout LyX-Code
549 syntax: --output-faac=<filename>[,<option>[,<option>[...]]]
552 \begin_layout Standard
553 Pipe audio to faac in order to encode AAC to <filename>.
554 Interesting options include 'q=<quality>' (set quality), 'c=<freq>' (force
555 bandwidth, default is autodetect).
558 \begin_layout Section
562 \begin_layout Standard
563 Dump the stream in textual format (useful for debugging):
566 \begin_layout LyX-Code
567 syntax: dumppackets.exe <file>
570 \begin_layout Standard
571 Dumps the data in <file> in textual form.
574 \begin_layout Section
578 \begin_layout Standard
579 Convert given stream from FM format to PCM format (this is mainly useful
580 for dumps somehow containing multiple FM streams).
583 \begin_layout LyX-Code
584 syntax: fmtopcm.exe <input> <stream> <rate> <output>
587 \begin_layout Standard
588 Reads dump from <input> and converts FM output on stream <stream> into PCM
589 output at sampling rate <rate>.
590 The output (all other streams plus converted stream) is written to <output>.
593 \begin_layout Section
597 \begin_layout Standard
598 Try to guess proper encoding resolution from dump.
601 \begin_layout LyX-Code
602 sytax: guessresolution.exe <files>...
605 \begin_layout Standard
606 Read given files <files>...
607 and try to guess the proper resolution.
610 \begin_layout Section
614 \begin_layout Standard
615 Make empty clip of specified length.
618 \begin_layout LyX-Code
619 syntax: mknulldump.exe <length> <output>
622 \begin_layout Standard
623 Make empty clip of <length> nanoseconds (seconds if <length> contains dot)
624 and write it to <output>.
627 \begin_layout Section
631 \begin_layout Standard
632 Mux multiple dumps into one.
635 \begin_layout LyX-Code
636 syntax: muxdump.exe <input>...
640 \begin_layout Standard
641 Read dump files <input>...
642 and combine streams, writing result to <output>.
645 \begin_layout Section
649 \begin_layout Standard
650 Transform set of pictures into dump.
653 \begin_layout LyX-Code
654 syntax: picturestodump.exe [--fps=<fps>] <input>...
658 \begin_layout Standard
659 Reads pictures from <input>...
660 and writes dump at <fps> (defaults to 60 if not specified) to <output>
661 containing those pictures.
664 \begin_layout Section
668 \begin_layout Standard
669 Play dump in realtime.
672 \begin_layout LyX-Code
673 syntax: playdump.exe [<subtitle options>...] [<audio options>...] [--audio-rate=<rate>]
676 \begin_layout LyX-Code
677 [--speed=<percent>] <files>...
680 \begin_layout Standard
681 Play concatenation of <files>...
682 at <percent>% realtime speed (default 100%).
683 Use <rate> Hz for audio sampling rate (default 44100Hz).
684 Note that this command accepts audio and subtitle options.
687 \begin_layout Section
691 \begin_layout Standard
692 Resize image and show result.
693 This is mainly intended for debugging resizers.
696 \begin_layout LyX-Code
697 syntax: testresizer.exe <image> <algo> <width> <height>
700 \begin_layout Standard
701 Read <image> and resize it to <width> by <height> using algorithm <algo>
702 (see dumpconvert.exe option --video-scale-algo for possible algorithms).
703 Then display the result on screen.
706 \begin_layout Section
707 Audio processing options
710 \begin_layout Standard
711 Audio processing has three stages:
714 \begin_layout Itemize
715 Per-stream premix filtering
718 \begin_layout Itemize
722 \begin_layout Itemize
726 \begin_layout Standard
727 For each, the operations are done in order they are given on command line.
728 If <stream> is specified for some operation, it occurs as part of premix
729 filtering for that stream.
730 Otherwise it occurs as postmix filtering.
733 \begin_layout Subsection
734 --audio-mixer-filter=[<stream>:]<a0>,<a1>,...
737 \begin_layout Standard
738 Perform FIR filtering using coefficients <a0>, <a1>, ..., given in order of
742 \begin_layout Subsection
743 --audio-mixer-filter=[<stream>:]<a0>,<a1>,...;<b0>,<b1>,...
746 \begin_layout Standard
747 Perform IIR filtering using input coefficents <a0>, <a1>, ..., output coefficients
749 given in order of increasing delay.
752 \begin_layout Subsection
753 --audio-mixer-gain=[<stream>:]<gain>
756 \begin_layout Standard
757 Amplify signal by <gain> dB.
760 \begin_layout Subsection
761 --audio-mixer-attenuate=[<stream>:]<attenuation>
764 \begin_layout Standard
765 Attenuate signal by <attenuation> dB.
768 \begin_layout Subsection
772 \begin_layout Standard
773 Silence specified stream or entiere sound output.
776 \begin_layout Section
777 Subtitle processing options
780 \begin_layout Standard
781 Subtitle option of form foo=bar is given as --video-hardsub-foo=bar on command
782 line and as foo=bar in script file.
783 For option of form baz, the corresponding forms are --video-hardsub-baz
785 Options are processed in order they are encountered, script files are processed
786 immediately when script file option is encountered.
789 \begin_layout Subsection
793 \begin_layout LyX-Code
794 Syntax (command line): --video-hardsub-font=<font>
797 \begin_layout LyX-Code
798 Syntax (script): font=<font>
801 \begin_layout Standard
802 Set the font used to <font>.
803 No default, this has to be set before using any font rendering commands.
806 \begin_layout Subsection
810 \begin_layout LyX-Code
811 Syntax (command line): --video-hardsub-size=<size>
814 \begin_layout LyX-Code
815 Syntax (script): size=<size>
818 \begin_layout Standard
819 Set the size used to <size>.
823 \begin_layout Subsection
827 \begin_layout LyX-Code
828 Syntax (command line): --video-hardsub-xpos=<xpos>
831 \begin_layout LyX-Code
832 Syntax (script): xpos=<xpos>
835 \begin_layout Standard
836 Set the x offset to <xpos> pixels.
837 There are also special offsets left, center and right.
841 \begin_layout Subsection
845 \begin_layout LyX-Code
846 Syntax (command line): --video-hardsub-ypos=<ypos>
849 \begin_layout LyX-Code
850 Syntax (script): ypos=<ypos>
853 \begin_layout Standard
854 Set the y offset to <ypos> pixels.
855 There are also special offsets top, center and bottom.
859 \begin_layout Subsection
863 \begin_layout LyX-Code
864 Syntax (command line): --video-hardsub-duration=<duration>
867 \begin_layout LyX-Code
868 Syntax (script): duration=<duration>
871 \begin_layout Standard
872 Set the duration to <duration> (nano)seconds (seconds being selected if
874 Default is 5.0 (5 seconds).
877 \begin_layout Subsection
881 \begin_layout LyX-Code
882 Syntax (command line): --video-hardsub-halo=<thickness>
885 \begin_layout LyX-Code
886 Syntax (script): halo=<thickness>
889 \begin_layout Standard
890 Set the halo thickness to <thickness> pixels.
895 \begin_layout Subsection
899 \begin_layout LyX-Code
900 Syntax (command line): --video-hardsub-textalign=<align>
903 \begin_layout LyX-Code
904 Syntax (script): textalign=<align>
907 \begin_layout Standard
908 Set the between-lines text alignment to <align>.
909 Valid alignments are left, center and right.
913 \begin_layout Subsection
917 \begin_layout LyX-Code
918 Syntax (command line): --video-hardsub-spacing=<amount>
921 \begin_layout LyX-Code
922 Syntax (script): spacing=<amount>
925 \begin_layout Standard
926 Set the between-lines text spacing to <amount> pixels.
930 \begin_layout Subsection
934 \begin_layout LyX-Code
935 Syntax (command line): --video-hardsub-script=<file>
938 \begin_layout Standard
939 Read file <file> and execute it as subtitle commands.
942 \begin_layout Subsection
943 text=<timestamp>,<text>
946 \begin_layout LyX-Code
947 Syntax (command line): --video-hardsub-text=<timestamp>,<text>
950 \begin_layout LyX-Code
951 Syntax (script): text=<timestamp>,<text>
954 \begin_layout Standard
955 Display <text> at <timestamp> (seconds or nanoseconds, depending on presence
957 The following sequences are special in <text>:
960 \begin_layout Itemize
968 \begin_layout Itemize
974 \begin_layout Itemize
977 A': Authors from runinfo
980 \begin_layout Itemize
983 G': Game name from runinfo
986 \begin_layout Itemize
989 L': Movie length from runinfo.
992 \begin_layout Itemize
995 R': Movie rerecord count from runinfo.
998 \begin_layout Subsection
999 background-color=<color>
1002 \begin_layout LyX-Code
1003 Syntax (command line): --video-hardsub-background-color=<color>
1006 \begin_layout LyX-Code
1007 Syntax (script): background-color=<color>
1010 \begin_layout Standard
1011 Set the background color to <color>.
1012 Following <color> specifications are allowed:
1015 \begin_layout Itemize
1016 '<a>': Partially transparent black.
1017 <a> of 0 is fully transparent, 255 is fully opaque.
1020 \begin_layout Itemize
1021 '<rgb>,<a>': Partially transparent gray.
1022 <a> of 0 is fully transparent, 255 is fully opaque.
1023 <rgb> sets brightness of gray, 0 is black and 255 is white.
1026 \begin_layout Itemize
1027 '<r>,<g>,<b>,<a>': Partially transparent color.
1028 <a> of 0 is fuly transparent, 255 is fully opaque.
1029 <r>, <g> and <b> set the color (0-255 for each component).
1032 \begin_layout Standard
1033 Default is fully transparent.
1036 \begin_layout Subsection
1037 foreground-color=<color>
1040 \begin_layout LyX-Code
1041 Syntax (command line): --video-hardsub-foreground-color=<color>
1044 \begin_layout LyX-Code
1045 Syntax (script): foreground-color=<color>
1048 \begin_layout Standard
1049 Set the foreground color to <color>.
1050 Following <color> specifications are allowed:
1053 \begin_layout Itemize
1054 '<a>': Partially transparent white.
1055 <a> of 0 is fully transparent, 255 is fully opaque.
1058 \begin_layout Itemize
1059 '<rgb>,<a>': Partially transparent gray.
1060 <a> of 0 is fully transparent, 255 is fully opaque.
1061 <rgb> sets brightness of gray, 0 is black and 255 is white.
1064 \begin_layout Itemize
1065 '<r>,<g>,<b>': Fully opaque color.
1066 <r>,<g>, <b> set the color (0-255 for each component).
1069 \begin_layout Itemize
1070 '<r>,<g>,<b>,<a>': Partially transparent color.
1071 <a> of 0 is fuly transparent, 255 is fully opaque.
1072 <r>, <g> and <b> set the color (0-255 for each component).
1075 \begin_layout Standard
1076 Default is fully opaque white.
1079 \begin_layout Subsection
1083 \begin_layout LyX-Code
1084 Syntax (command line): --video-hardsub-halo-color=<color>
1087 \begin_layout LyX-Code
1088 Syntax (script): halo-color=<color>
1091 \begin_layout Standard
1092 Set the halo color to <color>.
1093 Following <color> specifications are allowed:
1096 \begin_layout Itemize
1097 '<a>': Partially transparent black.
1098 <a> of 0 is fully transparent, 255 is fully opaque.
1101 \begin_layout Itemize
1102 '<rgb>,<a>': Partially transparent gray.
1103 <a> of 0 is fully transparent, 255 is fully opaque.
1104 <rgb> sets brightness of gray, 0 is black and 255 is white.
1107 \begin_layout Itemize
1108 '<r>,<g>,<b>': Fully opaque color.
1109 <r>,<g>, <b> set the color (0-255 for each component).
1112 \begin_layout Itemize
1113 '<r>,<g>,<b>,<a>': Partially transparent color.
1114 <a> of 0 is fuly transparent, 255 is fully opaque.
1115 <r>, <g> and <b> set the color (0-255 for each component).
1118 \begin_layout Standard
1119 Default is fully opaque black.
1122 \begin_layout Subsection
1126 \begin_layout LyX-Code
1127 Syntax (command line): --video-hardsub-push
1130 \begin_layout LyX-Code
1131 Syntax (script): push
1134 \begin_layout Standard
1135 Save all settings to settings stack.
1138 \begin_layout Subsection
1142 \begin_layout LyX-Code
1143 Syntax (command line): --video-hardsub-pop
1146 \begin_layout LyX-Code
1147 Syntax (script): pop
1150 \begin_layout Standard
1151 Pop all settings from settings stack and apply them.
1154 \begin_layout Subsection
1158 \begin_layout LyX-Code
1159 Syntax (command line): --video-hardsub-reset
1162 \begin_layout LyX-Code
1163 Syntax (script): reset
1166 \begin_layout Standard
1167 Reset all settings that have defaults to defaults (ones that don't are not