Skip to content
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

Can stream be converted into something besides MP4? #186

Open
Ecdldaiiere opened this issue Dec 28, 2024 · 5 comments
Open

Can stream be converted into something besides MP4? #186

Ecdldaiiere opened this issue Dec 28, 2024 · 5 comments

Comments

@Ecdldaiiere
Copy link

Hi the version 5.7 works pretty well, nice work on the update! With that said, is there a way to make the stream convert to something besides .mp4? As you probably know, mp4 files are notoriously corruptible and just one error in the stream can render the whole video file unplayable.

This was the case yesterday when I was using version 5.7 yesterday. Multiple times the stream would cut off and I would get the message : ('Connection broken: IncompleteRead(0 bytes read, 2 more expected)', IncompleteRead(0bytes read, 2 more expected)). The result is a partially corrupted .mp4 file.

Do you think if it converted to .ts or .mkv it would be better?

@Michele0303
Copy link
Owner

The video was broken because it crashed and was not converted from flv to mp4

@Michele0303
Copy link
Owner

Run this command on your corrupted video:

ffmpeg -i TK_corrupted_video_flv.mp4 -c copy fixed.mp4

@Michele0303
Copy link
Owner

However in version 5.8, it should no longer happen

@Ecdldaiiere
Copy link
Author

I did that command and it works for most of the corrupted videos but there is one corrupted video where even if I do that command it doesn't fix it completely. This particular video is about 1 hour 44 minutes in length. The first 13 minutes is good but at a specific point at like 13 minutes 9 seconds or something like that the time jumps to 1189 hours 8 minutes 14 seconds in my video player (mpv, VLC, etc.). From there, I can fast forward and the video and audio is still fine but I can't seek at any point into the video. I have to use the arrow keys to go back or forward.

When I tried the command on this video I get an output where now I can seek into the video, but anything after the 13 minute mark is slowed down video and even though the length is accurate (1 hour 44 minutes) it doesn't show the full video since it's slowed down. In the command prompt after doing the command I get an endlesss stream of this: https://i.imgur.com/o3yGh8e.png

@Michele0303
Copy link
Owner

Not sure what the problem is, I will try to make changes in the next version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants