Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
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.File Existence Check: It validates whether the specified input file exists. If the file does not exist, it displays an error message and exits.
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.
Conversion Process: It uses FFmpeg via
ffmpeg-python
to perform the actual conversion, specifying thelibx264
codec for the output video.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 withlibx264
support for the script to work correctly.Issue no.(must) -
Self Check(Tick After Making pull Request)
If issue was not assigned to you Please don't make a PR. It will marked as invalid.