In 90s Irvine Welsh published “Trainspotting“, that soon became a bestseller and was filmed by Danny Boyle.
An anthem of punk subculture, and anarchy portrayed by Ewan McGregor and Jonny Lee Miller following great cast. 20 years later, the story got its continuation in “T2: Trainspotting”. Same characters, 20 years older, and somewhat wiser, facing pretty much same problems and unresolved conflicts.
One of the famous monologues from the first movie intro puts an end to what life film characters have chosen:
A quick story on how to do video to text conversion using Amazon S3.
How lazy can you possibly get? Well, that’s my story on how to transcribe text from boring videos, and checking for the keywords, before even checking the video/audio.
For the start, first cornerstone was to actually get the video. Most of the Streaming Players use HLS media player that heavily rely on m3u8 extension (those who remember playlists in WinAmp, might remember it), that sets base URL for all the video segments that will be streamed.
If you hit “Play” on the media player, while having your DevTools Network tab open, you’d see something like that:
After some time google around Python/PHP http bindings to fetch the content, the most optimal solution was ffmpeg:
Once done, you can check the video for consistency (either with -i command, or simply scrolling through the video).
Just to save on whole procedure, we convert mp4 to only mp3 audio stream with “`ffmpeg“` once again:
ffmpeg -i video.mp4 -b:a 192K -vn music.mp3
Since we have mp3 ready for being check, Amazon Transcribe kicks in, but you need to store your mp3 somewhere. The easiest way is to get yourself S3 bucket from Amazon, and point S3 URL of the file using Transcribe.
Overall result, of the same 1.5 hrs video being converted into transcribed text, with enabled/disabled speakers identification. Approximately 25-30 mins to get 1.5 MB JSON file of the text, with separate spk_1|spk_2 and time codes.
To be honest, I wasn’t paying much attention after the announcement of Gutenberg back in 2010.
I never had any dramatic impacts by CKEditor embedded in the WordPress admin panel. I still think it’s one of the best examples of UI/UX text editors on the Web.
The whole development process caught my attention due to React licensing issue that got the Internet buzzing about for couple of months. Eventually, Facebook changed it.
And then I saw this video on the future of WYSIWYG editor. Gutenberg’s impact on the WordPress ecosystem will be a game-changer.
This is huge! The whole ecosystem will change its standards of writing plugins/themes. The concept of expanding viewports going beyond the classical monitor resolution, including wearables and other portable devices.