-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Video to PDF (GUI) #1145
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 to PDF (GUI) #1145
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- delete my_pdf.pdf
- Other changes:
Video to PDF/README.md
Outdated
## Modules used : | ||
- Tkinter | ||
- MoviePy | ||
- Speech Recognition | ||
- OS | ||
- FPDF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the requirement file is already there, you can delete this section
Video to PDF/requirements.txt
Outdated
Tkinter | ||
FPDF | ||
Speech Recognition | ||
MoviePy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mention them in the format so that one can install them using:
pip install -r requirements.txt
Check this file: https://github.com/avinashkranjan/Amazing-Python-Scripts/blob/master/Amazon-Price-Alert/requirements.txt
Video to PDF/script.py
Outdated
pdf.ln(0.5) | ||
|
||
|
||
pdf.output("my_pdf.pdf") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this path:
pdf.output("my_pdf.pdf") | |
pdf.output("./ Video to PDF/my_pdf.pdf") |
Also, the file name needs to be the same as the video file name with added (pdf). For instance,
input: video12.mp4
output: video12 (pdf).pdf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the path now...
but for name of video and pdf to be same I tried writing pdf.output(video_filepath.split('.')[0]+"(pdf)"+".pdf")
but it isn't working....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checkout this PR implementation: #1105
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like this?
filename = os.path.basename(video_filepath)
pdf.output("./Video to PDF/" + filename.split('.')[0] + "(pdf)" + ".pdf")
Also, I have deleted my_pdf.pdf so should I remove the sample video link from README? |
not needed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@avinashkranjan @antrikshmisri please review the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM..🚩
Description
Using this script you can convert any video into a pdf file.
Fixes #1035
Type of change
Please delete options that are not relevant.
Checklist:
README.md
Template for README.md
Project Metadata
If there is no-file/nothing to fill the below fields with, then type: none
Example:
If no requirements.txt needed/present, then type none inRequirments
.Category:
Title: Video to PDF (GUI)
Folder: Video to PDF
Requirements: requirements.txt
Script: script.py
Arguments: none
Contributor: tanvi355
Description: Using this script you can convert any video into a pdf file.