Any little change in the video file results in change of file size, correct?

Posted on 2013-01-29
Last Modified: 2013-01-30
Dear experts

I should create a WinForm C# application which works with video files. The files are keep both in FTP server and locally on HDDs. When a user want to watch a video file first I check on HDD and if the file is missing, or it is different then I should start download. The question is – how to determine if a video file is different than the others /both files are with same names/? For now I plan to use their size FileBytes, is this enough for 99.99 of the cases?

 The video files will be played in TV, so there will be a case where the movie is created with for example Adobe Premiere, then it is modified very little and save again – is this mean that the file’s result size (bytes)  will be different than the previous file?
Question by:dvplayltd
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3

Expert Comment

ID: 38830467
The MD5 hash is unique for all file types.

You can try if it is feasible in your case.

Author Comment

ID: 38830550
Well, this is not my question, my question is with video edition softwares like Adobe Premiere and exc. - are thay always make video files with different size, but as you start to talk about this – fine.

 I guess I can easy make a MD5 has to my local file, but is there a command to FTP server to create MD5 hash and to return it to me ? I need to work with all FTP servers both under Windows and Linyx .
LVL 16

Accepted Solution

AlexPace earned 500 total points
ID: 38830690
Some FTP clients and servers support integrity checking protocol-level commands like XMD5, XCRC and/or XSHA1.  These are not supported by FileZilla but others like Robo-FTP and Voyager support them.

If all the supported file types are known and you also control the server then perhaps you could use information in the file header bytes to avoid generating a fingerprint of the whole thing on both ends.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 38831853
We are going in other direction, let remain the question:

  When 2 video files are different with for example one letter fixed in a title in the video file /made with video editor software like Adobe Premier/ - this will result in file with different size, or it is possible both files (old and new one) to get exactly same size in bytes on HDD???
LVL 16

Expert Comment

ID: 38832053
Actual file size (not size on disk) is probably good enough for 99% ... it would be rare to come up with the exact same size unless there is a concern of deliberate tampering.  If there is no money involved then what is the motivation to tamper?  A prank perhaps...  If there is money involved then use a hash.

Author Comment

ID: 38832280
hash will require too much power from CPU, and this will be operation done all the time.

A money are not involved and nobady will have finance interest to make special dublicate, but it is quite possible the TV channel to make a new version of video file which is different with one letter shown as title on the movie, and then this change should be detected, or the customer wil watch the old version from its HDD, while there is a new version on FTP.

In short, the question is for video movies editor ...

Author Closing Comment

ID: 38834387
10x. One friend workng in video area tell me that for my case the new and old file will be with equal size. So I should check local and FTP file with XMD5 ... Could you please recomended me most populiar protocol suported from public FTP servers? My ask is for big name in FTP servers , like IIS7 , Apache under Linyx and so on - i'm using shared FTP server hosted in data center, not some home made FTP .
LVL 16

Expert Comment

ID: 38835705
FTP directory listings usually show the last modified time.  After downloading a copy of the file you could use your app to programmatically change the last modified date on the local copy.  It would be unlikley that the file size and date would both remain the same unless someone was intentially messing with you. Integrity checking is hte only way to prevent that but even then I suspect a XCRC may run a faster on the server's CPU than an XMD5.

Author Comment

ID: 38838208
Your last idea for last modify date is good, but I already implement XMD5 check. Because the video files will be played with playout software I  need not only to check for a new video file version, but also to make 100 % sure that there no error on FTP download/upload and this could be ensure only of XMD5 check.

Thanks for your answer and time!

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
Viewers will learn the basics of creating custom device Racks in Ableton Live. Place instrument(s) and effects onto a track, and select them all by holding the Shift key and clicking on the device title bars: Group them by typing Command-G (Ctrl-G…
Viewers will learn how to create and use Simpler instruments in Ableton Live. Load new Simpler into an empty MIDI track: Select a sample and drop it into sample window in Simpler: If sample is not pitched at C3, adjust tuning with Transpose para…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question