HN2new | past | comments | ask | show | jobs | submitlogin

I wrote a video recorder specifically for one show on a streaming site that had low-level DRM enabled. DRM meant that tools couldn't grab the stream directly, but it was low level enough that the screen could be recorded. So what I did is write PHP software that used Selenium to open a browser with DRM enabled, logged in to the site, located my show, started it, started screen and audio recording with FFMPEG, and when the episode ended, stopped recording and moved to the next episode. To speed up the process, the program started multiple instances of this, and I used PulseAudio sinks to record their audios separately. It was magical to watch this work, like I was in a real TV studio. I also wrote an OCR solution with Tesseract and ffmpeg in bash, that grabs the title card frame and parses the text out of it. Time spent is around 20 hours. After the thing was done and I already had some episodes, my partner and I come to an agreement that the show is pretty toxic, and we don't want it in our lives after all, so I deleted the episodes that I had, and haven't used the software since.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: