Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th October 2007, 16:24   #1  |  Link
j7n
Registered User
 
j7n's Avatar
 
Join Date: Apr 2006
Posts: 80
Verify Integrity of Video Files

Do any of the currently popular container formats, such as Matroska, have error detection? What can I use to verify integrity of my video files?

I know I should have created and stored checksums.
j7n is offline   Reply With Quote
Old 6th October 2007, 20:56   #2  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,685
Another thing is you can mux those checksums into the mkv container as an attachment.

Just create and sfv file using quicksfv or rapidcrc, and store mux that file in with your file in mkvmerge.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 6th October 2007, 21:00   #3  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,685
Unless you are trying to check files that you already had. Frankly the best way is to watch the file. If it checks out, than create a checksum file and mux it in, so that you can check for sure in the future.

Just out of curiousity, what prompted this?
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 6th October 2007, 21:19   #4  |  Link
j7n
Registered User
 
j7n's Avatar
 
Join Date: Apr 2006
Posts: 80
Quote:
what prompted this
I once resorted to 'watching' after a bad memory module was installed. Now a hard drive has failed and I want to ensure that the files that still do read are intact.

From now on I'll just create SFV-md5 files.
j7n is offline   Reply With Quote
Old 7th October 2007, 00:57   #5  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,392
Run the files through ffmpeg. Something like:

ffmpeg -i <file> -f avi -benchmark -y NUL

It'll show a warning anytime a sync error or corruption is detected, something like "overread" or "backstep" for audio or "slice" or "concealing" for video. Some corruptions look like valid streams to the decoder, though, and you can never know without watching.

There's a half-decent chance you'll find a few old errors that you never knew were there, since ffdshow has pretty good error corrections.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
foxyshadis is offline   Reply With Quote
Old 7th October 2007, 13:34   #6  |  Link
j7n
Registered User
 
j7n's Avatar
 
Join Date: Apr 2006
Posts: 80
Yeah ffmpeg is good. I've used it before for MPEG-2 PS, and after uprading to 2007-Sep-10 it now also eats matroska.

So I suppose it is not possible to find errors without decoding. Too bad.
j7n is offline   Reply With Quote
Old 7th October 2007, 21:16   #7  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,392
Video doesn't have any checksums, normally, except for TS, rtsp (maybe?), and headers in OGM, so yeah, it's pretty much impossible to reason about the validity of the data.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
foxyshadis is offline   Reply With Quote
Old 20th July 2012, 23:06   #8  |  Link
pokazene_maslo
Registered User
 
Join Date: Apr 2009
Location: Martin, Slovakia
Posts: 79
Quote:
Originally Posted by foxyshadis View Post
Run the files through ffmpeg. Something like:

ffmpeg -i <file> -f avi -benchmark -y NUL
Great advice, thank you very much! Any idea how to set that "NUL" output in windows?
pokazene_maslo is offline   Reply With Quote
Old 20th July 2012, 23:09   #9  |  Link
SassBot
Guest
 
Posts: n/a
Quote:
Originally Posted by pokazene_maslo View Post
Great advice, thank you very much! Any idea how to set that "NUL" output in windows?
That is how you set it in Windows. "NUL" is the Windows equivalent of /dev/null.
  Reply With Quote
Old 20th July 2012, 23:49   #10  |  Link
pokazene_maslo
Registered User
 
Join Date: Apr 2009
Location: Martin, Slovakia
Posts: 79
Quote:
Originally Posted by SassBot View Post
That is how you set it in Windows. "NUL" is the Windows equivalent of /dev/null.
Hmm, not working for me:
Code:
ffmpeg.exe -i 110629_divx.avi -benchmark -y NUL
...
[NULL @ 0000000001e92ee0] Unable to find a suitable output format for 'NUL'
NUL: Invalid argument
pokazene_maslo is offline   Reply With Quote
Old 21st July 2012, 14:05   #11  |  Link
Placio74
VideoAudio
 
Placio74's Avatar
 
Join Date: Feb 2007
Location: Poland
Posts: 219
You missed something - set output format (-f avi).

If it's omitted, FFmpeg guess output format based on output file name extension.
__________________
VideoAudio.pl - Serwis o technologii wideo & audio
Placio74 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.