-
Notifications
You must be signed in to change notification settings - Fork 117
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
Please do something with this automatic mode #146
Comments
More info? |
I have the same problem just like here https://github.com/Michele0303/tiktok-live-recorder/issues/117 After the live finished the program don't stop the recording and I can't do anything. I tried to close or press CTRL-C but the file was not playable. |
I had the same issue and discovered it normally happens when you record for a long time, such as over 10 minutes. However, it sometimes happens on unstable streams. I've created a workaround for this error by updating the recorder to create a new video every 5 minutes, and then I join all the videos at the end. Not elegant but at least the videos aren't corrupted anymore. |
From my experience the stream file often gets corrupted when the person who is live changes the room settings. For example when the streamer changes the room so other users can join. I have made a second script which checks if the recorder is recording and the filesize of the newewst video file is growing, if not it gets restartet, but I still lose the entire file this way. There is probably not even much the maintainer can do, because ffmpeg struggles with it, in my opinion. I have recently found a bot on telegram which can be found at @tiktoklivedwbot and it is the best tiktok live recorder I have seen so far. It seems it never has the problem with corrupted files and additionally it even does not blur the images if camera is disabled, but shows the users profile picture like in the web browser. I have now idea how they do it, but I wish they would opensource this thing. Sadly it does not record automatically. |
I've made some modifications to the TikTok class, specifically to the start_recording function. Instead of directly starting ffmpeg as it was done before, I now use a shell script (Linux-based) to handle the recording process, but it can probably done within the python script like it usually does. I changed it to a shell script so I can play with the ffmpeg settings a bit more easily (for me personally). Here’s what I’ve done:
Results So Far
Maybe someone who is better in python programming than me can implement this settings in a future version.
I use this script here: record_stream.sh
|
I cannot record the live because the program often does not save them and the recorded file is corrupted. I had this problem with this program for almost 1 year now, so please fix it.
The text was updated successfully, but these errors were encountered: