Reply
Visitor
mizdflop
Posts: 8
Registered: ‎01-26-2009
0 Kudos

Issues with MD5 Hash on Batch Upload

Hello, 

 

For the last 6 months or so we've been creating multiple mp4 renditions and batch uploading. We created a PHP script that made our XML manifest. Until a couple of weeks ago all was working fine. But recently we've been getting errors that the MD5 hashes we create don't match those created on the BC servers. e.g.:

 

'XXX.mp4': The hash computed for the uploaded file does not match the hash reported for the file before upload. 

 

As always we've been using the MD5_file() function in PHP. We're running the PHP through the command line module on an OS X box.

 

Any thoughts on how we might trouble shoot? Or any idea why this might have started happening recently?

 

thanks.  

Brightcove Team
BC-dongsheng
Posts: 14
Registered: ‎02-11-2009
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

hi, could you share with me two things: an erroe message you have got, and the php script you are using?

 

You can sent that to my email dwang at brightcove.com. I will get back to you as soon as I can.

 

ds

ds
New Member
Ashoka
Posts: 1
Registered: ‎08-24-2009
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

It may help to include in both the webpage and the function description that files with same sizes are checked first, before their hashes are computed. -It may help to optionally simply provide a list of the duplicates along with the original files, instead of deleting them. -It may help to provide an option where the duplicate file with the older date gets deleted.

Join Jenny Craig
Brightcove Team
BC-Terran
Posts: 50
Registered: ‎12-16-2008
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

Has this been resolved yet? You may want to try using md5 directly from the command line and see if the results are the same as your perl script.
Contributor
cgranier
Posts: 45
Registered: ‎10-13-2009
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

Would it be possible to get a copy of this script? I'm about to write my own, but would love to save some time if possible.

 

Thanks!

 


mizdflop wrote:

Hello, 

 

For the last 6 months or so we've been creating multiple mp4 renditions and batch uploading. We created a PHP script that made our XML manifest

Visitor
mizdflop
Posts: 8
Registered: ‎01-26-2009
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

Yeah, I'm happy to share. Email me at jayhuntsfish ATSIGN gmail.com

 

I'll send it 

Contributor
cgranier
Posts: 45
Registered: ‎10-13-2009
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

Thanks, I really appreciate it. Sent you an email from my pongalo.com address.
Brightcove Team
BC-ChrisD
Posts: 121
Registered: ‎12-07-2008
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

I know it's only been a day but if you find a resolution to this can you post it back to the forums? I understand you might not want to share all of your code but it would likely be beneficial to others as many are using PHP to generate their Batch manifests.

 

Thanks

Christopher DeGrace
Product Manager
aw
Contributor
aw
Posts: 35
Registered: ‎02-10-2009
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

I have the same problem. My md5 hash code seems to be different from the BC server. I use the PHP md5_file($filename) function, the result is the same like i checked it with the  MD5 für windows tool (that you recommend in your docs).

 

The same is with the filesize (filesize($filename). Its the correct filesize, but the BC  size its a little bit different. So i can't upload the videos.

 

Do you have any ideas?

Contributor
Deckard
Posts: 13
Registered: ‎12-07-2009
0 Kudos

Re: Issues with MD5 Hash on Batch Upload

Same problem here with Java code under Ubuntu. md5sum tool returns the same hash code computed by code.

Tell me if I'm right : XML manifest must be uploaded after video upload is complete ?

Lets's say, XML manifest is uploaded before the end of video upload, could the problem come from the fact you check hash code before the end of video upload ? So the md5 sum is wrong ?

BC Tech and Referral Partner