08-17-2009 05:10 PM
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.
08-18-2009 02:21 AM
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
08-24-2009 02:27 PM
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 Craig08-31-2009 10:55 AM
10-13-2009 03:44 PM
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
10-13-2009 03:48 PM
Yeah, I'm happy to share. Email me at jayhuntsfish ATSIGN gmail.com
I'll send it
10-13-2009 04:35 PM
10-14-2009 08:55 AM
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
10-29-2009 03:14 PM
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?
01-29-2010 03:31 AM
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 ?
Brightcove Inc., a leading global provider of cloud content services, provides a family of products used to publish and distribute the world's professional digital media. The company's products include Brightcove Video Cloud, the market-leading online video platform, and Brightcove App Cloud, the pioneering content app platform. Together, more than 4,200 customers in 50 countries rely on Brightcove's cloud content services to build and operate exceptional media experiences across PCs, smartphones, tablets and connected TVs.
Brightcove Inc.
© 2012 Brightcove Inc.
