Author Topic: Media URL reporting incorrect content type: application/octet-stream  (Read 1859 times)

ravnwolf

  • Newbie
  • *
  • Posts: 3
    • Anairo Media
On certain MP4 video files, PowerPress throws this error.  So far, I haven't been able to determine exactly why it does it on some video files and not others.  At first I thought it might be size as the files I was trying to link to were over 1GB in size (around 2GB).  I trimmed them down and every file I'm trying with so far is under 1GB.  So far, one file works, the other one doesn't.  They were both rendered the same way. 

The files are hosted on Amazon's CloudFront, so I'm thinking it's an issue with how Amazon is handling the metadata tag. 

Here's a file that PowerPress doesn't have a problem with:  http://shows.anairo.com/southgeek/videos/SGRR-Uncut-TweetofThrones.mp4 (984.2MB)

and here is a file, uploaded today, that PowerPress throws the error with:  http://shows.anairo.com/southgeek/videos/sgrr_43.mp4 (904.1MB)

Anyone else trying to stream your video files off of a S3/CloudFront setup?






angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 4016
  • CIO, RawVoice
    • Angelo's Blog
Re: Media URL reporting incorrect content type: application/octet-stream
« Reply #1 on: June 03, 2012, 09:07:20 am »
You need an application that will set the content type in Amazon S3 when the file is initially uploaded. Otherwise S3 will treat it as a basic binary file, hence the content type application/octet-stream. I think Cloudberry explorer works correctly for this,whereas S3Fox does not. You will have to do some testing.

CloudFront just replicates what is set in S3.

PowerPress is correct to warn you about this problem, as application/octet-stream is incorrect and will limit what devices can download your media. Devices include most phones and tablets.

ravnwolf

  • Newbie
  • *
  • Posts: 3
    • Anairo Media
Re: Media URL reporting incorrect content type: application/octet-stream
« Reply #2 on: June 03, 2012, 10:42:56 am »
Thanks, Angelo.  I was just curious why one file would work and the other did not.  I'm uploading the files to my S3 area via Chrome and the regular S3 upload method.  I'll do some more testing to see what the different is between the two files.  The meta tag for each one is the same - application/octet-stream.

Update:  Oddly enough, I used the Cloudberry Explorer to upload the file to my S3 container.  It set the meta data as video/mp4, but my CloudFront link still threw the error.  However, if I used the actual S3 link, PowerPress took it with no problem.  It seems to indicate some strange CloudFront issue or something else I just don't quite understand yet.

« Last Edit: June 03, 2012, 12:08:24 pm by ravnwolf »

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 4016
  • CIO, RawVoice
    • Angelo's Blog
Re: Media URL reporting incorrect content type: application/octet-stream
« Reply #3 on: June 04, 2012, 06:45:34 am »
Did you upload the very same file, or rename the file? I would recommend you read about how CloudFront works, it's a CDN and will cache files and attributes from a server, doesn't necessarily need to be S3 storage either.

The content type application/octet-stream is the problem. If you need us to explain this in great detail, we would have to ask that you pay us for consulting as what you want to do is rather niche. If you grow frustrated trying to manage your own storage/CDN setup, we offer CDN media hosting, learn more here: https://secure.blubrry.com/podcast-publishing-premium-with-hosting/

ravnwolf

  • Newbie
  • *
  • Posts: 3
    • Anairo Media
Re: Media URL reporting incorrect content type: application/octet-stream
« Reply #4 on: June 05, 2012, 06:55:40 pm »
Did you upload the very same file, or rename the file? I would recommend you read about how CloudFront works, it's a CDN and will cache files and attributes from a server, doesn't necessarily need to be S3 storage either.

The content type application/octet-stream is the problem. If you need us to explain this in great detail, we would have to ask that you pay us for consulting as what you want to do is rather niche. If you grow frustrated trying to manage your own storage/CDN setup, we offer CDN media hosting, learn more here: https://secure.blubrry.com/podcast-publishing-premium-with-hosting/

I uploaded the file again, different name, etc.  I do know how CloudFront works and what I'm doing isn't very niche.  I know at least one other TPN member that is doing what I'm doing; maybe I should ask him if he's had this problem before.  As for your CDN offering, I've looked into it.  I already do my own hosting on a VPS, which is where I've stored my files up until I started using S3/CloudFront.  Your pricing is a bit too high, IMHO.

Regardless, thanks for your time, Angelo.  If nothing else you've lead me to a great utility in Cloudberry.

Cheers.

angelo

  • Custom Title
  • Administrator
  • Hero Member
  • *****
  • Posts: 4016
  • CIO, RawVoice
    • Angelo's Blog
Re: Media URL reporting incorrect content type: application/octet-stream
« Reply #5 on: June 06, 2012, 07:52:25 am »
You are taking a "I'm a programmer/administrator" route to hosting your media, that is why I said it is niche. 99.9% of the folks who read this forum CloudFront is over their head.

What you are paying for In My Humble Opinion is the convenience of a seamless uploading experience built into your WordPress blog via PowerPress tied to storage (like S3) and CDN service (like CloudFront). And top that with a consistent flat monthly fee.

Shoot an email in the TechPodcasts Google Group about how to set it up, I know a couple folks there have/are using CloudFront.