Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. ## Install the Manzanita applications
  2.  
  3. ##### Create work dir
  4. ```
  5. mkdir ~/Downlaods/manzanita
  6. cd ~/Downlaods/manzanita
  7. ```
  8.  
  9. ##### MP2TSME
  10. ```
  11. wget --user=<USER> --password=<PASSWORD> www.manzanitasystems.com/manzuser/dwbavr.zip
  12. ```
  13. ##### MP4Mux
  14. ```
  15. wget --user=<USER> --password=<PASSWORD> www.manzanitasystems.com/manzuser/etzqgz.zip
  16. ```
  17. ##### Unzip with credentials
  18. ```
  19. unzip -P <PASSWORD> -o dwbavr.zip
  20. unzip -P <PASSWORD> -o etzqgz.zip
  21. ```
  22.  
  23. ##### This may fail if the version changes
  24. ```
  25. tar -xvzf mp2tsme-8.1.78.x86_64.tgz
  26. tar -xvzf mp4mux-3.0.9.x86_64.tgz
  27. ```
  28. ##### Create sys link
  29. ```
  30. ln -s manzanita/mp4mux/mp4mux /usr/bin/mp4mux
  31. ln -s manzanita/mp2tsme/mp2tsme /usr/bin/mp2tsme
  32. ```
  33. ##### Configure license
  34. ###### Only needs to happen once
  35. > Fully automated way to configure the license
  36. ```
  37. $ (echo 3; echo <manzanitaLicenseServer>; echo y; echo <manzanitaCustomerKey> ) | mp4mux -liccfg
  38. $ (echo 3; echo <manzanitaLicenseServer>; echo y; echo <manzanitaCustomerKey> ) | mp2tsme -liccfg
  39. ```
  40.  
  41.  
  42. ## Running the application
  43.  
  44. Using Manzanita embedding(608/708) captions is a 4 step process.
  45.  
  46. 1. Demux the mp4's elementary streams using MP4Mux.
  47. 2. Embed the scc sidecar file into the h.264 video elementary stream using MP2TSME.
  48. 3. Create an MP4Mux config file.
  49. 4. Mux the new video elementary stream that has captions with the audio stream using MP4Mux.
  50.  
  51. ## Steps
  52.  
  53. ##### Create Work Dir
  54. ```
  55. $ mkdir ~/Desktop/manzanita
  56. $ cd ~/Desktop/manzanita
  57. ```
  58.  
  59. ##### Download required files
  60. ```
  61. $ wget <location of an mp4> -O source.mp4
  62. $ wget <location of an scc caption file> -O caption.scc
  63. ```
  64.  
  65. ##### Demux the source mp4
  66. ```
  67. $ mp4mux -dd source.mp4 1 source.h264 2 source.aac
  68. ```
  69.  
  70. ##### Embed the the caption into elementary stream to produce a new file called source_ecc.h264
  71. ```
  72. $ mp2tsme -c source.h264 source_ecc.h264 caption.scc
  73. ```
  74.  
  75. ##### Create the MP4Mux config file
  76. ```
  77. $ echo 'mp4mux-config 2,0
  78. output: {/Users/<USER>/Desktop/manzanita/source_ecc.mp4}
  79. delivery-target: Disabled
  80. movie-fragments: Disabled
  81. fragment-time: 2.0
  82. major-brand: mp42
  83. free-box: Before-mdat
  84. tracks [
  85. video [
  86. filename: {/Users/<USER>/Desktop/manzanita/source_ecc.h264}
  87. track-id: 1
  88. ]
  89. audio [
  90. filename: {/Users/<USER>/Desktop/manzanita/source.acc}
  91. track-id: 2
  92. ]
  93. ]
  94. /mp4mux-config
  95. ' > config.cfg
  96. ```
  97. ###### Run MP4Mux to generate the new mp4 with embedded Closed Captions
  98. ```
  99. $ mp4mux config.cfg
  100. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement