News for hackers. Stuff that matters.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by JoshTriplett on Saturday August 16, 2014 @07:03PM (#8187900)
Very nice. If this had a simple way to add timed annotations ("#ann=top,10s,18.3s,SomeText" or similar), that'd be absurdly useful.

What technology did you build this with? What do you use to decode videos and write out gifs?

Here's a useful bookmarklet to apply this to a video: javascript:location.host="gifyoutube.com"

EDIT: are you getting hammered by traffic right now? Because I tried this on a 15 second video, and it's been processing for ten minutes.

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by RoryGlyphic on Saturday August 16, 2014 @07:21PM (#8187943)
YES. IDEA #1 IS GREAT. Will be done! Also thank you for the bookmarklet. I'll PM you about the tech ^_^

As per the edit - yeah a ton of traffic BUT generally right now 98% of GIFs are making. We have a known problem with vevo and other music videos though :(. If you post the YT link I can look into it and see if it's a traffic thing or just one that wouldn't work normally

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by JoshTriplett on Saturday August 16, 2014 @07:30PM (#8187965)
> YES. IDEA #1 IS GREAT. Will be done!

Thanks! On that note, you'll want to handle fractional seconds for the annotations, or possibly frame numbers.

> I'll PM you about the tech ^_^

I look forward to it.

> As per the edit - yeah a ton of traffic BUT generally right now 98% of GIFs are making. We have a known problem with vevo and other music videos though :(. If you post the YT link I can look into it and see if it's a traffic thing or just one that wouldn't work normally

https://gifyoutube.com/watch?v=BNsrK6P9QvI

I don't know what you normally use to download videos, but you might try youtube-dl; it seems to work on just about everything, and you could script it.

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by RoryGlyphic on Saturday August 16, 2014 @07:33PM (#8187979)
HMmMM Strange! I tried the video and it worked for me :O

I'll try to look into that problem :3. Nice to meet you btw ^_^

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by coolnow on Saturday August 16, 2014 @11:00PM (#8188409)
What's up with the emoticons?
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by thaumasiotes on Saturday August 16, 2014 @11:39PM (#8188466)
If I were to speculate, I'd say RoryGlyphic is younger than you.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by RoryGlyphic on Sunday August 17, 2014 @02:06AM (#8188725)
hahahahahahhaha. Yeee. I also love emoticons. We actually started out with a gif messenger (glyphic) because we loved texting with emoticons/gifs so much.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by Titanbase on Sunday August 17, 2014 @04:04AM (#8188909)
I don't agree, some of the people that use emoticons all the time are actually older than 40.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by Titanbase on Sunday August 17, 2014 @04:02AM (#8188906)
In conversation in Facebook, Skype, et al, they usually have a number of smiley faces.

Some people use them all the time. And they don't have to be graphics, they can be done in text too. :]

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by ErikBjare on Sunday August 17, 2014 @01:28PM (#8189866)
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by RoryGlyphic on Saturday August 16, 2014 @07:21PM (#8187945)
I'll email you about tech* woops
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by stevoo on Sunday August 17, 2014 @04:02AM (#8188905)
Well you are posting at an extremely tech oriented group. I believe i speak for like 90% here that we all want to hear about the tech* wooops.

Shed some light in how you made everything. This is what interests us mostly.

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by superasn on Monday August 18, 2014 @02:22AM (#8191599)
This may not be 100% accurate, but this is one way of doing it:

1) youtube-dl ${video-id} video.avi #download youtube to avi

2) ffmpeg -i video.avi -t 10 out%02d.gif #export avi file to gif frames

3) gifsicle --delay=10 --loop *.gif > anim.gif #makes animated looping gif

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by plaguuuuuu on Monday August 18, 2014 @01:02AM (#8191490)
OP will surely deliver
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by ansh on Sunday August 17, 2014 @02:29AM (#8188769)
Hey, great job with this! I'm really interested in details as well.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by Phlarp on Saturday August 16, 2014 @10:33PM (#8188365)
Me too please!
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by zameericle on Saturday August 16, 2014 @09:13PM (#8188218)
can I read about the tech as well?
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by stanzheng on Saturday August 16, 2014 @09:22PM (#8188237)
Also interested!

Could someone maybe elaborate publically, it seems like something people are interested in :)

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by frik on Sunday August 17, 2014 @03:14AM (#8188845)
Also interested. mplayer?
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by gmanley on Sunday August 17, 2014 @05:25PM (#8190513)
The exif comment of the resulting gif file is 'Lavc54.59.100'. So it's most likely ffmpeg/libav or a tool that utilizes their libraries, such as mplayer. It's fairly simple to produce a GIF from a video file using the ffmpeg cli.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by carlesfe on Sunday August 17, 2014 @05:07AM (#8188979)
Since gifyoutube doesn't support https, this is an updated bookmarklet for thost who use youtube with https and need to change the protocol along with the host:

javascript:location="http://gifyoutube.com"+location.pathname+location.search;

Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by JoshTriplett on Sunday August 17, 2014 @05:14AM (#8188986)
https://gifyoutube.com/ seems to work just fine.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by tnorthcutt on Sunday August 17, 2014 @10:15AM (#8189404)
carlesfe is talking about using the bookmarklet in a situation when you're viewing a youtube video over https
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by laumars on Monday August 18, 2014 @02:53AM (#8191654)
Yes, we all got that. But the reason why doing so would break gifyoutube would have been because gifyoutube didn't support HTTPS. Which is why the former commenter noted that gifyoutube does support SSL.
Re:Show HN: Put “GIF” in front of any YouTube URL and hit enter by RoryGlyphic on Monday August 18, 2014 @03:39AM (#8191748)
Https certified :O