README.md

    Video Conversion Tool

    This Python script converts video files between formats, supporting .mkv, .avi, .mov, and .mp4. Users can select the folder containing the videos, specify the source file extension, and choose the desired output extension. The tool supports remuxing for compatible codecs or full conversion otherwise.

    Features

    1. Multi-format support: Handles .mkv, .avi, .mov, and .mp4 files.

    2. Remuxing: Directly remuxes video files without re-encoding if compatible codecs are detected.

    3. Full conversion: Converts videos frame by frame if remuxing isn’t possible.

    4. Multi-threading: Processes multiple videos concurrently to save time.

    5. User-friendly interface: Uses a graphical folder selection and interactive input for extensions.

    Requirements

    Python 3.7 or higher
    
    OpenCV library (cv2)
    
    Tkinter (included with Python on most systems)
    

    Installation

    1. Install Python 3.7 or later if not already installed.

    2. Install the required libraries:

      pip install opencv-python

    Usage

    1. Run the script:

      python video_conversion_tool.py

    2. A dialog will prompt you to select a folder containing the video files to process.

    3. Enter the source file extension (e.g., .mkv, .avi, .mov, .mp4).

    4. Enter the target file extension (e.g., .mp4, .mkv, .avi, .mov).

    5. The script will process all matching files in the selected folder and save the converted files in a subfolder named отформатированное.

    How It Works

    1. File selection: The user specifies the source and target extensions.

    2. Remuxing check: If the codec is compatible, the tool remuxes the file directly.

    3. Conversion: If remuxing is not possible, the tool converts the video frame by frame.

    4. Multi-threading: Multiple files are processed concurrently to improve performance.

    Limitations

    1. The script relies on OpenCV for video processing, which may not support all codecs and formats.

    2. Output quality depends on the original file and the conversion process.

    3. Remuxing only works for specific codecs like avc1 and mp4v.

    Example

    1. If you have a folder with .mkv videos and want to convert them to .mp4:

    2. Select the folder when prompted.

    3. Enter .mkv as the source extension.

    4. Enter .mp4 as the target extension.

    5. The converted files will be saved in the отформатированное subfolder.

    License

    1. This script is provided “as-is” without any warranty. Feel free to modify and use it for personal or commercial projects.

    Author

    Developed by Nikolas. tg: @my_name_Nikolay

    Конвейеры
    0 успешных
    0 с ошибкой