"Embed code appears to be invalid"... for YouTube?

I haven't been able to submit any videos for a couple months now at least. I've been sifting on and off again for over 5 years, and I haven't changed the way I do it. Why does it suddenly not work?

Here's what I do:
1. In YouTube, go to the Share > Embed section under the YouTube video
2. Copy the embed code
3. Paste the embed code into Video Sift's "Submit New Video" section.

Example embed code:
<iframe width="560" height="315" src="//www.youtube.com/embed/UTUMt05_nCI" frameborder="0" allowfullscreen></iframe>

I've also tried switching computers, with no success.

I miss sharing those random gems when I find them! Help!
lullaby_lune says...

Yeah, I picked that example on purpose because I knew it was already sifted. The message *should* tell me that it's a dupe. Instead, I just get an error "Embed code appears to be invalid."

My husband is a fellow sifter, and he isn't having this issue, so I tried logging in to my account and submitting from his computer... Sadly, I still get the same error.

notarobot says...

Lullaby_lune is my wife, so we occasionally log in on the same computer. While we were in China together we used VPNs to access videos that might have otherwise been caught by the great firewall. Would either of these things have anything to do with her having issues? I've never had problems with embeds.

pumkinandstorm says...

I'm so happy that worked for you! I'm going to check to see what you submitted now.

lullaby_lune said:

@pumkinandstorm
Huh! That actually worked! Video Sift converts the address bar link to a longer iframe embed, and accepts it. Problem solved. Thanks!

It's still weird that the regular iframe embed code provided by YouTube doesn't work for me.

braschlosan says...

I came to say this. You paste the url and click the check button and it automagically converts it to the full embed.

pumkinandstorm said:

When submitting youtube videos I always copy and paste the address bar link (the www.youtube one) instead of using the embed code. Maybe give that a try.

Spacedog79 says...

I am not able to submit videos with either the youtube address or the embed code.

If I put the address in https://www.youtube.com/watch?v=vEU13R5jt1w it reports "Sorry, that video host is not supported, and you are not yet privileged to submit from unknown hosts. :-("

If I use the embed code: It repots "Embed code appears to be invalid".

I'm normally pretty good at these things but this has me stumped. Other videos I've tried have the same effect, and lullaby_lune's example video simply says the video has already been submitted.

Have tried different computers and Chrome and IE with no joy so far.

chingalera jokingly says...

Did you try restarting the computer?

Spacedog79 said:

I am not able to submit videos with either the youtube address or the embed code.

If I put the address in https://www.youtube.com/watch?v=vEU13R5jt1w it reports "Sorry, that video host is not supported, and you are not yet privileged to submit from unknown hosts. :-("

If I use the embed code: It repots "Embed code appears to be invalid".

I'm normally pretty good at these things but this has me stumped. Other videos I've tried have the same effect, and lullaby_lune's example video simply says the video has already been submitted.

Have tried different computers and Chrome and IE with no joy so far.

Spacedog79 says...

Got it submitted now using the VideoSift Bookmarklet in IE. It still reported that the embed was invalid but when I hit submit it worked anyway. Perhaps it would have worked in Chrome if I had just ignored the message too?

radx says...

@lucky760

I know this is an old one, but I just came across the issue again when I tried to submit a YT video that did not provide the old embed code (yeah, I prefer traditional methods).

Anyway, here's the default code:

<iframe width="640" height="480"
src="//www.youtube.com/embed/OPcV9uIY5i4?rel=0"
frameborder="0" allowfullscreen></iframe>

Can you modify the code generator to correct the underlined part, add the missing 'https:'?

I suppose most people use the url instead while others simply add both protocol and colon by hand, but still...

Pretty please.

Zawash says...

Yes - the problem is the missing "http:" or "https:" - neither Vimeo nor YouTube supplies the protocol in their generated embed HTML. And since those are two of the major sources of submitted content, this is a problem.
When submitting a video with a missing http:, the validation reports that it is ok, but the submitted video does not work.

It should be enough with a simple regular expression to detect and correct the missing protocol, making it much easier for new users to submit videos.
https://xkcd.com/208/

Send this Article to a Friend



Separate multiple emails with a comma (,); limit 5 recipients






Your email has been sent successfully!

Manage this Video in Your Playlists

New Blog Posts from All Members