HA6Bots / TikTok-Compilation-Video-Generator

A system of bots that collects clips automatically via custom made filters, lets you easily browse these clips, and puts them together into a compilation video ready to be uploaded straight to any social media platform. Full VPS support is provided, along with an accounts system so multiple users can use the bot at once. This bot is split up into three separate programs. The server. The client. The video generator. These programs perform different functions that when combined creates a very powerful system for auto generating compilation videos.
https://www.youtube.com/watch?v=Ua-NbCDuYrE
MIT License
766 stars 121 forks source link

Editor does not display clip. #19

Open Globularduke66 opened 3 years ago

Globularduke66 commented 3 years ago

No Error Logs or Traceback Windows 10.

The Editor does not display clip while editing. It shows the name of the clip at the top but does not render the clip at all. Nothing else appears to not work

Benjamin-adler commented 3 years ago

Hello.

I had this same error and I found the fix.

In TikTok Client/clientUI.py Change line 379 from:

self.updateClipDuration() self.mediaPlayer.stop() if len(mp4file.split("/")) > 2: self.mediaPlayer.setMedia(QMediaContent(QUrl.fromLocalFile(f'{mp4file}'))); else: self.mediaPlayer.setMedia(QMediaContent(QUrl.fromLocalFile(f'TempClips/{mp4file}.mp4')))

to:

self.updateClipDuration() self.mediaPlayer.stop() if len(mp4file.split("/")) > 2: self.mediaPlayer.setMedia(QMediaContent(QUrl.fromLocalFile(f'{current_path}/{mp4file}'))); else: self.mediaPlayer.setMedia(QMediaContent(QUrl.fromLocalFile(f'{current_path}/TempClips/{mp4file}.mp4')))