Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video converter #946

Closed
wants to merge 3 commits into from
Closed

Video converter #946

wants to merge 3 commits into from

Conversation

AdriaGual
Copy link

@AdriaGual AdriaGual commented Oct 9, 2023

Video Converter

This Python script is designed to convert video files from one format to another, specifically from various video formats (e.g., .avi, .mov) to the .mp4 format. It uses the ffmpeg-python library to perform the conversion.

Issue n. 944

Functionality

  1. Input Validation: It accepts a command-line argument -i or --input, allowing you to specify the path to the input video file that you want to convert.

  2. File Existence Check: It validates whether the specified input file exists. If the file does not exist, it displays an error message and exits.

  3. Output File Generation: It extracts the base name (without the file extension) of the input file to generate the output file name with a .mp4 extension.

  4. Conversion Process: It uses FFmpeg via ffmpeg-python to perform the actual conversion, specifying the libx264 codec for the output video.

  5. Success Message: After successful conversion, it displays a message indicating that the conversion was successful and mentions the name of the output .mp4 file.

Usage

To use this script, provide the input video file path as a command-line argument using -i or --input. Ensure that you have a properly configured FFmpeg installation with libx264 support for the script to work correctly.

Issue no.(must) -

Self Check(Tick After Making pull Request)

  • This issue was assigned to me.
  • One Change in one Pull Request
  • My file is in proper folder (Name of folder should be in lowercase with no space in between) (E.g. meet_schedular)
  • I am following clean code and Documentation and my code is well linted with flake8.
  • I have added README.md and requirements.txt (Include version numbers too e.g. pandas==0.0.1) with my script
  • I have used REPO README TEAMPLATE (Necessary)
  • Just including required dependencies in requirements.txt (Don't include Python version too)

If issue was not assigned to you Please don't make a PR. It will marked as invalid.

@AdriaGual AdriaGual closed this by deleting the head repository Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant