home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 15 / MA_Cover_15.iso / c / mplex.readme < prev    next >
Encoding:
Text File  |  1998-10-05  |  3.8 KB  |  124 lines

  1. Introdution
  2. ***********
  3. This is an Amiga version of Christph Moars MPEG-
  4. multiplexer "MPLEX". This tool enables you to mix a
  5. MPEG video and audiostream into one single MPEG-System stream.
  6. In other words:
  7. Now you can create MPEG videos with sound!
  8.  
  9.  
  10.  
  11. Example
  12. *******
  13. To demonstrate the usage of mplex we need a video and a matching
  14. audiostream. Here we simply split an existing system stream
  15. into its single parts and the join them together again using
  16. mplex. We will use splitmpeg (Aminet) to split the promotion
  17. video for Maxon Cinema 4D from the CD of German AmigaPlus 8/98.
  18.  
  19. 9.Leer1:MpgTest> splitmpeg cd0:cinema4d.mpg
  20.  
  21. SYSTEM HEADER
  22. -------------
  23. Maximum Multiplexed data rate =176400 bytes per second
  24. Max number of audio streams = 1
  25. Bitrate is variable
  26. Multiplexed stream meets constrained parameters
  27. There is a constant rational relationship between the
  28. audio sampling rate and the system clock frequency in the system
  29. target decoder
  30. There is a constant rational relationship between the
  31. video picture rate and the system clock frequency in the system
  32. target decoder
  33. Max number of video streams = 0
  34. Reserved_byte = ff
  35. Stream Information
  36.     for stream 1c0 :         Buffer bound = 32768 bytes
  37.  
  38.  
  39. Processing Complete
  40.   Processed 17087 Packs , 2 system headers and 17089 Packets
  41. 9.Leer1:MpgTest>
  42.  
  43. When this command has finished we got three new files:
  44. Leer1:MpgTest/stm190.mpg    (Paddingstream)
  45. Leer1:MpgTest/stm192.mpg    (Audiostream)
  46. Leer1:MpgTest/stm224.mpg    (Videostream)
  47. Only the audio and video file is of intrest for us.
  48.  
  49.  
  50.  
  51. Multiplexing of the both streams
  52. ********************************
  53. Now we can use mplex to (re)mix these two streams to a new
  54. single systemstream.
  55.  
  56. mplex-1.1 stm224.mpg stm192.mpg system.mpg
  57.  
  58. Attention!
  59. Do not forget to specify the outputfile! There will be no
  60. warning from mplex. Mplex will assume that you want to create
  61. a systemfile without audio or video, so it will use the second
  62. parameter as the output filename. This file will then be overwritten!
  63.  
  64. First mplex scans the video and audiostream and displays a lot of
  65. information about your streams.
  66. Then you have to input some parameters.
  67.  
  68. The following values have been used for testing:
  69.  
  70. sector size (CD-ROM 2324 bytes)          :   2324
  71. packs to packets ratio                   :      1
  72. STD video buffer in kB (CSPS: max 46 kB) :     40
  73. STD audio buffer in kB (CSPS: max  4 kB) :      4
  74. target data rate (e.g. 175050)           : 175050
  75. startup sectors_delay                    :      8
  76. startup sectors_delay                    :      0
  77. video stream startup offset (ms)         :      0
  78.  
  79. The answer to the question "very verbose mode?" should be "n",
  80. otherwise a huge amount of messages will be displayed.
  81.  
  82.  
  83.  
  84. Speed, differnt versions
  85. ************************
  86. The program has been compiled using SAS/C for 68000 and ppc as well
  87. as using gcc (Geek-Gadgets, ADE) for 68000.
  88. The SAS/C version has stack checking enabled, so it should work with
  89. every configuration without any problems.
  90. The gcc version runs a little bit faster but needs the ixemul.library.
  91.  
  92. For the example above I got the following results (68060/50/604e/200)
  93. sas68k 6 Min  8 Sek
  94. gcc68k 4 Min 55 Sek
  95. sasppc 2 Min 46 Sek
  96.  
  97.  
  98.  
  99. notice, changes to the original
  100. *********************************
  101. I have only compiled the program for the Amiga, I can not help you
  102. with the correct parameters! Please read the documentations in the
  103. original archive!
  104. With gcc no changes to the original files were necessary.
  105. There are some smaller changes for the SAS compiler. The changes are
  106. in the file main.c and they are well commented.
  107.  
  108. And now start your own project!
  109. Alexander Fritsch
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117. PS.
  118. If you are a programmer and still locking for a good idea what to
  119. do:
  120. In the Aminet there seems to be no program for creating MPEG videos
  121. (or audio files) directly from VLabMotion/Movieshop. So you could make
  122. an AREXX script or something like that...
  123.  
  124.