HN Hall of Fame Weekly email

How to Write a Video Player in Less Than 1000 Lines

dranger.com Books & learning Tutorials & guides Software engineering Candidate
Screenshot of dranger.com captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 3 calendar years, with breakout response in 2 of them.

submissions
3
submitters
3
observed span
2013–2022
peak thread · 60 comments
127 pts
latest 20+ return · 2022-10-30
102 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

How to write a video player in 2 lines: #! /bin/sh vlc "$1" In all seriousness though, if you are using libraries to implement almost all of the complex functionality, then the "less than 1000 lines" comment is not very relevant.

tbirdz·127-point thread·

This tutorial is very outdated, eg. `AVPicture`, which is used throughout, is completely deprecated and removed from the library, so you will simply encounter linker errors trying to follow this tutorial and will have to replace every `avpicture` call made in the tutorial. Also, `avcodec_decode_video2` is deprecated and you have to use `avcodec_send_packet` and `avcodec_receive_frame`. The FFmpeg libraries are possibly the worst thing I have ever worked with in my life. I have never been more afraid to use a…

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
230

reference only — not used in Hall rules or ranking

Total comments
80

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2013-03-05How to Write a Video Player in Less Than 1000 Linesakandiah10
2016-03-06How to Write a Video Player in Less Than 1000 LinesFirst breakout · Best threadstriking12760
2022-10-30An ffmpeg and SDL Tutorial (2015)Latest 20+ point returnswyx10220