So Bad It's Good
It is currently Thu Mar 28, 2024 2:01 pm




Post new topic Reply to topic  [ 6 posts ] 
 Windows command line tool for scanning if video is ok? 
Author Message
Half nude banana
Half nude banana
User avatar

Joined: Sat Sep 11, 2010 9:57 am
Posts: 28
Reply with quote
Post Windows command line tool for scanning if video is ok?
Hi.

Anyone knows if there's a (free) command line tool for scanning a video file to check if the video is ok (streams, headers etc.) which can output the result in either standard output or to a text file?

I've moved files from external USB HDs to a NAS, and would like to just run the basic check that all files are still good.

If not, I guess an alternative would be to MD5 sum the source and the destination, but I'm hoping the above is faster.

Any other suggestions are most welcome.

/gh


Sun Aug 28, 2011 8:36 am
Profile
End of Level Boss
End of Level Boss
User avatar

Joined: Fri Mar 16, 2007 5:10 pm
Posts: 7535
Reply with quote
Post Re: Windows command line tool for scanning if video is ok?
There are tools like this for HDTV transport streams, but I haven't seen anything for AVI or MKV encodes.

AVINaptic handles AVIs and MKVs and it can go through a whole video stream to analyze some stuff (for example buffers and quants), but I don't know if it can detect or report corrupted streams.

_________________
Old2New SBiG URL Replacement Script | SBiG searchplugin
my AviSynth Plugins folder | Show Just Image 2 | Doom10


Sun Aug 28, 2011 3:12 pm
Profile
Half nude banana
Half nude banana
User avatar

Joined: Sat Sep 11, 2010 9:57 am
Posts: 28
Reply with quote
Post Re: Windows command line tool for scanning if video is ok?
@elguaxo: thanks for your reply. Much appreciated when coming from you! I'll take a look at AVINaptic. Glad to see the source is available, although I have no clue what language it's written in :)


Sun Aug 28, 2011 3:57 pm
Profile
Half nude banana
Half nude banana
User avatar

Joined: Sat Nov 29, 2008 12:35 am
Posts: 26
Location: Misc / Other
Reply with quote
Post Re: Windows command line tool for scanning if video is ok?
ghesus wrote:
If not, I guess an alternative would be to MD5 sum the source and the destination, but I'm hoping the above is faster.

I don't see how any such too could possibly be faster than md5. If you really want to make sure there are zero errors, you'll have to check every bit, right? And that's what md5 does too.

I sometimes use mplayer with -vo null and -benchmark to check a video file. It'll just play the file as fast as possible without rendering anything. If there's errors, it should (probably) show among the output.
Code:
mplayer -vo null -nosound -benchmark FILE


Sun Aug 28, 2011 11:28 pm
Profile
End of Level Boss
End of Level Boss
User avatar

Joined: Fri Mar 16, 2007 5:10 pm
Posts: 7535
Reply with quote
Post Re: Windows command line tool for scanning if video is ok?
mplayer sounds interesting! I have movie with a glitched video stream. It's just a 1 second hiccup and every video decoder handles it bit differently, but all show some noticeable artifacts around the problematic spot.

Anyways, I tested mplayer -vo null -nosound -benchmark and it reported no errors. I'm sure it will catch more serious problems, but it's not bulletproof.

_________________
Old2New SBiG URL Replacement Script | SBiG searchplugin
my AviSynth Plugins folder | Show Just Image 2 | Doom10


Mon Aug 29, 2011 6:48 am
Profile
Half nude banana
Half nude banana
User avatar

Joined: Sat Sep 11, 2010 9:57 am
Posts: 28
Reply with quote
Post Re: Windows command line tool for scanning if video is ok?
@mersault: thanks for the input.
In the perfect scenario I could imagine the following being done:
1. Check if the video (streams etc.) is playable, in case something prior to the transfer messed it up.
2. MD5 of each copied file, to make sure the transfer went as expected.


Mon Aug 29, 2011 6:48 pm
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: