make concat.txt file create in the temp folder

pull/1694/head
sajawalhassan 2 years ago
parent 6279c88f9a
commit 6cdc5d88be

@ -6,7 +6,7 @@ import sys
abs_directory = Path().absolute()
config = settings.check_toml(f"{abs_directory}/utils/.config.template.toml", f"{abs_directory}/config.toml")
num_of_vids_to_be_conc = input("How many videos would you like to be concatenated into a single video? ")
num_of_vids_to_be_conc = input("How many videos would you like to generate that will be concatenated into a single video? ")
try:
num_of_vids_to_be_conc = int(num_of_vids_to_be_conc)
except:

@ -22,5 +22,53 @@
"background_credit": "bbswitzer",
"reddit_title": "34 percent of adults sleep with a stuffed animal or other sentimental object Are you one of these people What do you sleep with",
"filename": "34 percent of adults sleep with a stuffed animal or other sentimental object Are you one of these people What do you sleep with.mp4"
},
{
"subreddit": "AskReddit",
"id": "1482cyu",
"time": "1686633568",
"background_credit": "bbswitzer",
"reddit_title": "Americans what is something us Europeans arent ready to hear",
"filename": "Americans what is something us Europeans arent ready to hear.mp4"
},
{
"subreddit": "",
"id": "147rws8",
"time": "1686635350",
"background_credit": "",
"reddit_title": "skipped",
"filename": ""
},
{
"subreddit": "AskReddit",
"id": "147us0v",
"time": "1686636302",
"background_credit": "bbswitzer",
"reddit_title": "What was the first big newsevent that you remember hearing or watching as a child",
"filename": "What was the first big newsevent that you remember hearing or watching as a child.mp4"
},
{
"subreddit": "AskReddit",
"id": "1482nga",
"time": "1686636937",
"background_credit": "bbswitzer",
"reddit_title": "Whats a cult that pretends its not really a cult",
"filename": "Whats a cult that pretends its not really a cult.mp4"
},
{
"subreddit": "AskReddit",
"id": "147tkvx",
"time": "1686637324",
"background_credit": "bbswitzer",
"reddit_title": "If your spouse passed away would you maintain a relationship with your in-laws Whywhy not",
"filename": "If your spouse passed away would you maintain a relationship with your in-laws Whywhy not.mp4"
},
{
"subreddit": "AskReddit",
"id": "147yabt",
"time": "1686638951",
"background_credit": "bbswitzer",
"reddit_title": "What song has horrific lyrics but a happy beat or vise-versa",
"filename": "What song has horrific lyrics but a happy beat or vise-versa.mp4"
}
]

@ -8,7 +8,7 @@ class VideoGenerator():
self.config = config
def _concatenate_videos(self, video_list, output_file):
concat_file = 'concat.txt'
concat_file = 'assets/temp/concat.txt'
# Create a temporary file containing the list of videos
with open(concat_file, 'w') as file:

Loading…
Cancel
Save