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

Checking video integrity #104

Open
vpenades opened this issue Oct 21, 2019 · 4 comments
Open

Checking video integrity #104

vpenades opened this issue Oct 21, 2019 · 4 comments

Comments

@vpenades
Copy link

Is it possible to test a video file to know if the video is fine, or if it's been corrupted or incomplete?

@dannylloyd
Copy link

@vpenades I have been doing this by checking the duration of the original video and the converted video afterward, if they durations are within an allowance then I deem it a success.

@vpenades
Copy link
Author

Thanks for the suggestion, but that's not useful to me since what I want is to do an integrity check of any video, not from videos I previously encoded, so I cannot do that kind of comparison.

@AydinAdn
Copy link
Owner

I found this, how-can-i-check-the-integrity-of-a-video-file-avi-mpeg-mp4, however there's no "easy" way of doing that at the moment with this library.

If I'm completely honest, the entire library needed an overhaul a long time ago and I've only just recently got around to doing it. You can check its progress here MajorRefactoring. If you decide to check it out, look at the MediaToolkit.Core.Test project first, MediaToolkit its self is going to be completely deprecated and moving forwards will be removed.

With the new library it's a lot easier to test random FFmpeg arguments you find online as all responses from ffmpeg is logged, there's a default implementation in the MediaToolkit.Core.Test project that prints the responses to the console so you could tinker with it even now

@vpenades
Copy link
Author

I'll give it a try, thanks!

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

3 participants