Back to blogYouTube Video

Published July 10, 2026

This AI video pipeline is a game changer!

Can't play the video or having issues? Here's the direct link.

AI Summary

Hassan Aziz demonstrates 'Phantom Editor,' a personal suite of Python and Bash automation scripts designed to streamline the entire content creation pipeline. By automating the editing, uploading, sharing, and management of long-form videos, the system reduces the creator's manual effort to simply recording the raw footage, with all post-production and distribution tasks handled by the automated pipeline.

Key Takeaways

  • Phantom Editor uses Python and Bash to automate video editing and platform management.
  • The pipeline eliminates most manual post-production, allowing the creator to focus solely on recording.
  • The system handles the end-to-end workflow from raw footage to uploaded content across YouTube and other platforms.

Description

Book a call: https://calendly.com/itshassanaziz/discuss-a-project ==== ==== ==== Phantom Editor is my personal collection of Python/Bash automation scripts that edit, upload, share, and manage my content across YT and other platforms. In this video, I'm gonna show you how easily and quickly I can edit and upload a long-form video on my channel. I've automated so much of my workflow that the only thing I really need to do is press record and yap for 30m. Everything else happens behind-the-scenes for me. ==== ==== ==== LINKS Website: https://www.hassandev.me Portfolio: https://www.hassandev.me/work YouTube: https://www.youtube.com/@itshassanaziz?sub_confirmation=1 My Book: https://www.hassandev.me/designing-websites X / Twitter: https://x.com/nothassanaziz

Transcript

Auto-generated transcript
I post a lot of content. I started off on YouTube, just posting videos. And since then, I've also started posting on Instagram, TikTok, Twitter, and it's becoming a lot for just one person to manage, right? Now, being the programmer that I am, I've built a couple of Python and Bash-based automations that do most of the editing, uploading, and all the other repetitive stuff and content creation for me. It's gotten to the point where the only thing I need to do is press record on my phone, speak whatever I want to say, and then everything else is just done for me. I don't need to do anything else besides that. All the editing, uploading to different platforms, everything is done for me using a couple of simple Python scripts. And it's entirely deterministic. You could run these scripts a thousand times, you'd get the same input, or rather, you'd get the same output for the same input. 100% deterministic, no LLM hallucination crap, reliable, and always guaranteed to work now I just recorded a new video this morning and I was just about to you know use these automations to edit and upload it so I thought why not make a demo video just showcasing the stuff that I've built over here and just show you how much time and energy that these automations are saving me right and hopefully this inspires you as well to automate some of your own work right so let's begin so here's what we need to do there are seven steps to you know editing and uploading a long form video on my channel this is the workflow that i use other people could use something else but this is what i use right so we need to do some audio processing this is basically just noise reduction normalizing the audio etc etc right then we need to trim the silences right so So in any video you record, you're going to have silent bits where you're just thinking of what to say. You're pretty much quiet. You're not saying anything. Obviously, we don't want those bits in the final video, right? So we need to remove them. We do that step. Then we attach the webcam mask. So for most of my videos, you're going to see most of my videos are just talking head videos where I'm just speaking directly to the camera, right? You can see my entire face. There's no screen or anything. That's one thing. and then in other bits in the same video, I'll have my screen up over here and you'll see me in the top right corner as like a webcam or something, right? That's what step three does. It's going to identify exactly where we need to show our screens and it going to put my face up at the top right corner in exactly those durations right now how it detects that is a little fancy and i explain that when we get to it but yeah step four we add captions right so subtitles and stuff this is more important in short form than long form but it is something that could potentially be useful i don't usually add captions to my long form videos but i'm gonna show you this step anyway right just to demo all the different features we have in this project then we add some background music this is probably the simplest and easiest step in the entire pipeline and once we're done with that the the video is pretty much ready right then we just need to upload it so we upload it to youtube and we share it on twitter right we share a link of the video on twitter so we need to do all seven of these steps let's begin okay so right here you can see the entire project that i've got right the video is titled coding has turned into a slot production factory and the first thing we're doing is just processing the audio so i literally just run the audio process command and it's going to do it all for me it's going to apply noise reduction it's going to normalize the audio it's going to merge that processed audio back into the video file and then it'll give me that all right so with the audio processing done the next step is to trim the silences right so let's do that i'm just going to run another command edit trim dash silences pass in the new video file and it'll do it all for me so let me just quickly explain how this works right we're using the faster whisper model to generate captions with timestamps for the entire video we know exactly when i say each word and exactly where the silent bits are and once we find those we can just remove them using ffmpeg right super simple process once we actually understand it and as you can see after removing the silences the video file is literally just 12 minutes and 14 seconds which is a huge savings right we went from 21 minutes to 12 minutes now the next step is to attach the webcam mask right so let's run a command for that as well so i'm just going to run that command i'm going to pass in my screen video and i'm going to pass in my face video which is the webcam video right so while this runs let me just explain how this is happening because it can probably seem like a very fancy magical kind of automation if you're if it's your first time seeing this so let me explain how this works basically it's again using faster whisper to generate captions for the entire video and then it's going to find the exact points in the video where i say a voice command right now this voice command for my case is basically just saying the words webcam start and webcam stop right When I say start it going to attach my webcam and show my screen right It's going to attach my webcam in the top right corner of the screen or the top right corner of the video, and it's going to show my computer screen, right? And when I say webcam stop, it's going to stop that and it's just going to show my entire face, right? The screen, my computer screen is just going to be invisible at that point. So that's literally all that's going on, right? basic voice commands that get transcribed by using Faster Whisper. And once we detect those durations, we just use FFmpeg to attach the webcam mask. Super simple process. And if you're really smart, you're thinking, hang on just a second. I could use these voice command thingies and Faster Whisper to create really, really advanced kinds of edits as well. And you would be right to think that. I haven't built that myself yet, but it is something that you could potentially do and it wouldn't be very complicated either. Anyway, the webcam stuff just finished. So let me show you what that actually looks like now. You can see you're seeing my entire face in the video right now, right? If I just fast forward it a little bit, there we go. You can see that I've got a webcam attached at the top right now and you can see my entire screen where I'm showing Twitter and then my video script. I don't know why I'm showing you guys that but yeah, you can see this works perfectly right and over here around the four minute mark you can see that the PC screen disappears and you see my entire face again super cool automation right now Let's also now we do have one issue which I forgot to address earlier in the video Basically since we needed to attach the webcam mask we had to trim silences after attaching the mask so I messed up the order of the steps over here so I'm gonna run the trim silences command again on this new video file the screen auto webcam file right so yeah that's my bad but yeah this shouldn't take long okay so we've trimmed silences for the second time now because I've messed up the order of the steps but here we go now the next step is to add captions and then add background music and then you can just upload it and share it across all platforms so let's do that I'm going to run the command phantom edit captions and I'm just gonna pass in the current video file that we've got right and I'm going to use the preset long so I've got two presets over here one for short form content and one for long form content right and these just define the maximum words per caption the width of the caption box etc etc right basically just styling stuff right and once we have the captions i just going to add background music i can select from a list of tracks over here that i've got saved on my computer obviously i can add more as well but yeah let's add some background music i'm going to select the hello world track and i'm going to set the volume to five percent because i don't want the music to you know overshadow my own voice right i need you guys to hear what i'm saying let's let this finish it should be pretty fast and there we go now we have background music as well as captions now lastly we need to upload this to youtube right so first of all we need to create a metadata file this is gonna hold the title description etc etc of the video right i'm just gonna put some random stuff over here we're gonna have a tweet template as well then we just clear everything and there's the metadata file now finally we just run the youtube upload command we pass in the final video file that we've got it's going to read its metadata and it's going to upload the entire thing to youtube now since we didn't design a thumbnail for this it's going to warn us that we don't have a thumbnail and youtube will just auto select it for now this is fine but obviously for most videos i will design a thumbnail first right now the upload is complete it's going to tweet it as well on my profile and share the link over there and there we go everything's complete and now if i go over to my youtube here's the entire video you can also see the captions down there as well and if i go over to my twitter profile you can see that the the video link was posted over here as well so super useful stuff saves me hours and hours probably 15 or 20 hours every single week in just content creation alone and all it is is just a bunch of python scripts and a couple of bash scripts that just do some simple tasks for me and save me a lot of time now if you're wondering how i built all of these it's entirely ai generated code the only difference is it doesn't use ai under the hood which means there's no risk of hallucinations or invalid output or whatever right they are entirely deterministic 100 reliable scripts and they save me a lot of time and if And if you're a content creator in 2026, I need you to be using these as well because you're missing out. Like you could be saving 10, 20 hours every single week and you're not. You need to automate these kinds of repetitive tasks as much as possible. All right. But those automations also need to be reliable, which is why I'm using deterministic, simple scripts instead of some AI agent that's going to hallucinate on me sooner or later. So yeah, hope that helps.

Share this article

All great things started with a conversation

If you've got a cool project or opportunity and you want me to be a part of it, set up a free meeting with me here, and let's talk. 😊