video-compression-ffm
v1.2.4
Published
This will compress video and add watermark on it
Downloads
22
Maintainers
Readme
��#� �M�e�d�i�a� �C�o�m�p�r�e�s�s�i�o�n�
�
�
�
�>� �C�o�n�v�e�r�t� �y�o�u�r� �m�u�l�t�i�m�e�d�i�a� �i�n� �n�o�d�e�j�s� �a�s� �e�a�s�y� �a�s� �y�o�u� �l�i�k�e�
�
�#�#� �D�e�s�c�r�i�p�t�i�o�n�
�
�
�
�B�y� �i�n�s�t�a�l�l�i�n�g� �t�h�i�s� �m�o�d�u�l�e�,� �y�o�u� �c�a�n� �e�a�s�i�l�y� ���c�o�n�v�e�r�t��� �(�w�i�t�h� ���c�o�m�p�r�e�s�s�i�o�n���)� �y�o�u�r� �m�e�d�i�a� �i�n� �N�o�d�e�.�J�S�.�
�
�
�
�T�h�i�s� �m�o�d�u�l�e� �u�s�e�s� �t�w�o� �o�t�h�e�r� �m�a�i�n� �m�o�d�u�l�e�s� �t�h�a�t� �a�r�e� �r�e�f�e�r�r�e�d� �t�o�,� �a�t� �t�h�e� �e�n�d� �o�f� �t�h�i�s� �p�a�g�e�.� �\�
�
�B�e�s�i�d�e�s�,� �[���f�f�m�p�e�g���]�(�h�t�t�p�s�:�/�/�f�f�m�p�e�g�.�o�r�g�/�)� �t�o�o�l�s� �a�r�e� �u�t�i�l�i�z�e�d� �f�o�r� �h�a�v�i�n�g� �a� �b�e�t�t�e�r� �p�e�r�f�o�r�m�a�n�c�e�.�
�
�
�
�I�n�s�t�a�l�l� �t�h�e� �m�o�d�u�l�e� �b�y� �u�s�i�n�g� �o�n�e� �o�f� �t�h�e�s�e� �c�o�m�m�a�n�d�s�:�
�
�
�
��
��b�a�s�h�
�
�n�p�m� �i�n�s�t�a�l�l� �-�-�s�a�v�e� �v�i�d�e�o�-�c�o�m�p�r�e�s�s�i�o�n�-�f�f�m�
�
�
��
�
�
�
�
�O�R�
�
�
�
��
��b�a�s�h�
�
�y�a�r�n� �a�d�d� �v�i�d�e�o�-�c�o�m�p�r�e�s�s�i�o�n�-�f�f�m�
�
�
��
�
�
�
�
�-�-�-�-�
�
�
�
�#�#�#� �V�e�r�s�i�o�n� �1�.�x�.�x�
�
�
�
�\�>�>� �T�h�e� ���c�o�n�v�e�r�s�i�o�n��� �c�o�u�l�d� �b�e� �a�p�p�l�i�e�d� �t�o� �t�h�e�s�e� �e�x�t�e�n�s�i�o�n�s�:�
�
�
�
�-� �I�m�a�g�e�s� �=�>� �(��"�j�p�g�"�,� �"�j�p�e�g�"�,� �"�p�n�g�"�,� �"�g�i�f�"�,� �"�s�v�g�"�,� �"�w�e�b�p�"�
� �)�
�
�-� �V�i�d�e�o�s� �=�>� �(��a�l�l� �f�o�r�m�a�t�s� �s�u�p�p�o�r�t�e�d� �b�y�
� �[�f�f�m�p�e�g�]�(�h�t�t�p�s�:�/�/�f�f�m�p�e�g�.�o�r�g�)�)�
�
�-� �A�u�d�i�o�s� �=�>� �(��a�l�l� �f�o�r�m�a�t�s� �s�u�p�p�o�r�t�e�d� �b�y�
� �[�f�f�m�p�e�g�]�(�h�t�t�p�s�:�/�/�f�f�m�p�e�g�.�o�r�g�)�)�
�
�
�
�\�>�>� �T�h�e� ���c�o�m�p�r�e�s�s�i�o�n��� �i�s� �j�u�s�t� �b�e�i�n�g� �a�p�p�l�i�e�d� �t�o� �t�h�e� �V�i�d�e�o�s� �(�a�n�d� �n�o�t� �t�h�e� �o�t�h�e�r� �m�e�d�i�a�)�
�
�
�
�-�-�-�-�
�
�
�
�#�#�#� �V�e�r�s�i�o�n� �2�.�x�.�x�
�
�
�
�>� �I�n� �P�r�o�g�r�e�s�s� �.�.�.�
�
�
�
�-�-�-�-�
�
�-�-�-�-�
�
�-�-�-�-�
�
�
�
�#�#� �P�r�e�r�e�q�u�i�s�i�t�e�s�
�
�
�
�#�#�#� �1�.� �I�n�s�t�a�l�l� �F�F�m�p�e�g� �t�o�o�l�s� �o�n� �y�o�u�r� �s�y�s�t�e�m�
�
�
�
�I�t�s� �s�i�z�e� �i�s� �a�b�o�u�t� �6�7�.�5�M�
�
�
�
�Y�o�u� �c�a�n� �f�i�n�d� �t�h�e� �i�n�s�t�a�l�l�a�t�i�o�n� �s�o�l�u�t�i�o�n�s� �a�t� �t�h�e�i�r� �w�e�b�s�i�t�e� �h�e�r�e�:� ���[�f�f�m�p�e�g�]�(�h�t�t�p�s�:�/�/�f�f�m�p�e�g�.�o�r�g�/�)���
�
�
�
�O�R�
�
�
�
�Y�o�u� �c�a�n� �d�o� �t�h�e� �f�o�l�l�o�w�i�n�g� �c�o�m�m�a�n�d�s� �i�n� �p�r�e�f�e�r�e�n�c�e� �t�o� �t�h�e� �f�i�r�s�t� �a�p�p�r�o�a�c�h�:�
�
�
�
�-� �W�i�n�d�o�w�s� �:� � �\�
�
� � �f�i�r�s�t�,� �y�o�u� �n�e�e�d� �t�o� �i�n�s�t�a�l�l� �a� �d�o�w�n�l�o�a�d� �p�a�c�k�a�g�e� �m�a�n�a�g�e�r� �f�o�r� �w�i�n�d�o�w�s� �(�s�t�h� �l�i�k�e� �a�p�t� �f�o�r� �L�i�n�u�x�)�.� �\�
�
� � �I� �h�i�g�h�l�y� �r�e�c�o�m�m�e�n�d� �y�o�u� �t�o� �d�o�w�n�l�o�a�d� �a�n�d� �i�n�s�t�a�l�l� ��c�h�o�c�o�
� �p�a�c�k�a�g�e� �m�a�n�a�g�e�r� �f�r�o�m� �t�h�e�i�r� �w�e�b�s�i�t�e�:� ���[�c�h�o�c�o�l�a�t�e�y�]�(�h�t�t�p�s�:�/�/�c�h�o�c�o�l�a�t�e�y�.�o�r�g�/�)��� �\�
�
� � �a�f�t�e�r� �t�h�e� �i�n�s�t�a�l�l�a�t�i�o�n�,� �j�u�s�t� �o�p�e�n� �u�p� �a� ���c�o�m�m�a�n�d� �l�i�n�e��� �(�c�m�d� �o�r� �P�o�w�e�r�S�h�e�l�l�)� �a�s� ���a�d�m�i�n�i�s�t�r�a�t�o�r��� �a�n�d� �t�h�e�n� �d�o� �t�h�e� �c�o�m�m�a�n�d�s� �b�e�l�o�w�:�
�
�
�
� � ��
��b�a�s�h�
�
� � �c�h�o�c�o� �i�n�s�t�a�l�l� �f�f�m�p�e�g�
�
� � �
��
�
�
�
�
�-� �L�i�n�u�x� �(�U�b�u�n�t�u�)� �:�
�
�
�
� � ��
��b�a�s�h�
�
� � �s�u�d�o� �a�p�t� �u�p�d�a�t�e�
�
� � �s�u�d�o� �a�p�t� �i�n�s�t�a�l�l� �f�f�m�p�e�g�
�
� � �
��
�
�
�
�
�-� �M�a�c� �:�
�
�
�
� � ��
��b�a�s�h�
�
� � �b�r�e�w� �i�n�s�t�a�l�l� �f�f�m�p�e�g� �-�-�f�o�r�c�e�
�
� � �b�r�e�w� �l�i�n�k� �f�f�m�p�e�g�
�
� � �
��
�
�
�
�
��N�o�t�i�c�e�:�� �\�
�
���M�a�k�e� �s�u�r�e� �t�h�e� �F�F�m�p�e�g� �a�d�d�r�e�s�s� �i�s� �a�d�d�e�d� �t�o� �t�h�e� �e�n�v�i�r�o�n�m�e�n�t� �P�a�t�h���
�
�
�
�-�-�-�-�
�
�-�-�-�-�
�
�-�-�-�-�
�
�
�
�#�#� �U�s�a�g�e�
�
�
�
�T�h�i�s� �p�r�o�j�e�c�t� �h�a�s� �b�e�e�n� �a�c�c�o�m�p�l�i�s�h�e�d� �w�i�t�h� ��n�o�d�e� �v�1�2�.�1�6�.�3��.� �\�
�
�I�f� �y�o�u� �c�a�n�n�o�t� �r�u�n� �(�a�n�d� �h�a�v�i�n�g� �e�r�r�o�r�s�)� �j�u�s�t� �f�e�e�l� �f�r�e�e� �t�o� �o�p�e�n� �a�n� �i�s�s�u�e� �o�n� �i�t�s� �G�i�t�H�u�b� �p�a�g�e�.�
�
�
�
��
��j�s�
�
�v�a�r� �c�o�m�p�r�e�s�s� �=� �r�e�q�u�i�r�e�(�'�v�i�d�e�o�-�c�o�m�p�r�e�s�s�i�o�n�-�f�f�m�'�)�;�
�
�
�
�/�*�
�
� �*�*� �i�n�p�u�t� �[�s�t�r�i�n�g�]�:� �t�h�e� �i�n�p�u�t� �m�e�d�i�a� �p�a�t�h� �t�o� �t�h�e� �f�i�l�e�
�
� �*�*� �o�u�t�p�u�t� �[�s�t�r�i�n�g�]�:� �t�h�e� �p�a�t�h� �f�o�r� �t�h�e� �o�u�t�p�u�t� �m�e�d�i�a�
�
� �*�*� �o�p�t�i�o�n�s� �[�o�b�j�e�c�t�]�:� �t�h�e� �o�p�t�i�o�n�s� �i�n�c�l�u�d�e�s� �r�e�s�o�l�u�t�i�o�n�
�
� �*�*� �v�e�r�b�o�s�e� �[�b�o�o�l�e�a�n�]�:� �w�h�e�t�h�e�r� �p�r�i�n�t� �t�h�e� �l�o�g�s� �o�r� �n�o�t�
�
� �*�/�
�
�c�o�m�p�r�e�s�s�(�i�n�p�u�t�,� �o�u�t�p�u�t�,� �o�p�t�i�o�n�s�)�;�
�
�
��
�
�
�
�
�#�#�#� �E�x�a�m�p�l�e�s�
�
�
�
��
��j�s�
�
�v�a�r� �c�o�m�p�r�e�s�s� �=� �r�e�q�u�i�r�e�(�'�v�i�d�e�o�-�c�o�m�p�r�e�s�s�i�o�n�-�f�f�m�'�)�;�
�
�
�
�
�
�/�/� �c�o�n�v�e�r�t�(�'�.�/�d�o�g�.�m�p�4�'�,� �'�.�/�d�o�g�.�m�p�4�'�)�;� �/�/�w�i�t�h� �n�o� �c�a�l�l�b�a�c�k�s�
�
�
�
�/�/� �c�o�n�v�e�r�t�(�'�d�o�g�.�p�n�g�'�,� �'�d�o�g�.�w�e�b�p�'�,� �(�)� �=�>� �c�o�n�s�o�l�e�.�l�o�g�(�"�p�n�g� �=�>� �w�e�b�p�"�)�)�;� �/�/�w�i�t�h� �a� �s�i�m�p�l�e� �c�a�l�l�b�a�c�k�
�
�
�
�/�/� �c�o�n�v�e�r�t�(�'�d�r�i�n�k�i�n�g�.�m�k�v�'�,� �'�d�r�i�n�k�i�n�g�.�m�p�4�'�,� �(�e�r�r�)� �=�>� �{�
�
�/�/� � � �i�f� �(�!�e�r�r�)�{�
�
�/�/� � � � � �c�o�n�s�o�l�e�.�l�o�g�(�"�C�o�m�p�l�e�t�e�d�!�"�)�
�
�/�/� � � �}�
�
�/�/� �}�)�;� �/�/�w�i�t�h� �a� �c�o�m�p�l�e�t�e� �c�a�l�l�b�a�c�k�
�
�
�
�/�/� �c�o�n�v�e�r�t�(�'�b�a�d�-�g�u�y�-�v�i�d�e�o�.�m�p�4�'�,� �'�b�a�d�-�g�u�y�-�a�u�d�i�o�.�m�p�3�'�,� �n�u�l�l�,� �f�a�l�s�e�)�;� �/�/�w�i�t�h� �n�o� �v�e�r�b�o�s�e�
�
�
�
�c�o�n�v�e�r�t�(�'�b�i�l�l�i�e�-�e�i�l�i�s�h�.�m�p�4�'�,� �'�b�i�l�l�i�e�-�e�i�l�i�s�h�-�c�o�m�p�r�e�s�s�e�d�.�m�p�4�'�)�;� �/�/�j�u�s�t� �c�o�m�p�r�e�s�s�i�n�g�
�
�
�
�
��
�
�
�
�
�-�-�-�-�
�
�-�-�-�-�
�
�-�-�-�-�
�
�
�
�#�#� �R�e�f�e�r�e�n�c�e�s�
�
�
�
�A�s� �I� �s�a�i�d� �b�e�f�o�r�e�,� �t�h�i�s� �m�o�d�u�l�e� �u�s�e�s� �s�o�m�e� �o�t�h�e�r� �t�o�o�l�s�:�
�
�
�
�-� �[�f�f�m�p�e�g�]�(�h�t�t�p�s�:�/�/�f�f�m�p�e�g�.�o�r�g�/�)� �t�o�o�l�s�
�
�-� �[�f�l�u�e�n�t�-�f�f�m�p�e�g�]�(�h�t�t�p�s�:�/�/�w�w�w�.�n�p�m�j�s�.�c�o�m�/�p�a�c�k�a�g�e�/�f�l�u�e�n�t�-�f�f�m�p�e�g�)� �m�o�d�u�l�e�
�
�<�!�-�-� �-� �[�i�m�a�g�e�m�i�n�]�(�h�t�t�p�s�:�/�/�w�w�w�.�n�p�m�j�s�.�c�o�m�/�p�a�c�k�a�g�e�/�i�m�a�g�e�m�i�n�)� �m�o�d�u�l�e� �-�-�>�
�
�
�
�F�i�n�a�l�l�y� �I� �t�h�a�n�k� �t�h�e� �d�e�v�e�l�o�p�e�r�s� �o�f� �t�h�e� �t�o�o�l�s� �m�e�n�t�i�o�n�e�d� �b�e�f�o�r�e�.�