<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Piriyaraj S on Medium]]></title>
        <description><![CDATA[Stories by Piriyaraj S on Medium]]></description>
        <link>https://medium.com/@piriyaraj?source=rss-6e44a21c0a77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*o6Z3POvlHYwMKpG5gf4CRw.jpeg</url>
            <title>Stories by Piriyaraj S on Medium</title>
            <link>https://medium.com/@piriyaraj?source=rss-6e44a21c0a77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:21:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@piriyaraj/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Which AI Coding Tool Should You Actually Use in 2026?]]></title>
            <link>https://medium.com/@piriyaraj/which-ai-coding-tool-should-you-actually-use-in-2026-5091862fea01?source=rss-6e44a21c0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/5091862fea01</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[openai-codex]]></category>
            <dc:creator><![CDATA[Piriyaraj S]]></dc:creator>
            <pubDate>Mon, 01 Jun 2026 08:59:37 GMT</pubDate>
            <atom:updated>2026-06-01T08:59:37.862Z</atom:updated>
            <content:encoded><![CDATA[<h3>Google AI Pro vs. OpenAI Codex vs. Claude Code: Which AI Coding Tool Should You Actually Use in 2026?</h3><p><em>The dev community has been asking this question loudly — and the answer isn’t as simple as picking the shiniest one.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VdlTGKgogwvWXYstUyDDVw.png" /></figure><p>The AI coding assistant race has moved fast. A year ago, you had autocomplete. Today you have <strong>autonomous agents</strong> that read your entire codebase, write code, run tests, open pull requests, and fix their own mistakes — all from a single prompt.</p><p>Three tools are leading that conversation right now:</p><ul><li><strong>Google AI Pro</strong> (Gemini 2.5 Pro / Gemini Code Assist)</li><li><strong>OpenAI Codex</strong> (CLI + ChatGPT agent)</li><li><strong>Claude Code</strong> (Anthropic’s terminal-first coding agent)</li></ul><p>A recent thread in r/ClaudeCode sparked a heated debate: <em>which one is actually worth your time?</em> Developers shared real workflow experiences, benchmark opinions, and honest frustrations. This post breaks it all down — no fluff, no paid rankings.</p><h3>First, Let’s Get the “What Is This?” Out of the Way</h3><h3>Google AI Pro — The Context King</h3><p>Google’s entry is powered by <strong>Gemini 2.5 Pro</strong> and comes in two main flavours: the <strong>Gemini CLI</strong> (open source, runs in your terminal) and <strong>Gemini Code Assist</strong> (integrated into IDEs like VS Code and JetBrains). It’s also deeply baked into Google Cloud and Android Studio for teams already living in that ecosystem.</p><p>The headline number: a <strong>1-million-token context window</strong> (expanding to 2M). That’s the ability to hold an entire large codebase in a single conversation. No chunking, no manual context selection — just paste your monorepo and go.</p><p>Access: Personal Google account gets you a generous free tier. Google AI Studio API key for API access. Gemini Code Assist Enterprise for teams.</p><h3>OpenAI Codex — The Versatile Workhorse</h3><p>Codex comes in two shapes: a <strong>cloud-based agent inside ChatGPT</strong> (powered by the codex-1 model, a GPT-4 derivative tuned for coding tasks), and an open-source <strong>Codex CLI</strong> you run locally. The ChatGPT agent is asynchronous — you give it a task, it executes in an isolated cloud sandbox, runs tests, and surfaces a pull request. Tasks can take between 1 and 30 minutes depending on complexity.</p><p>The CLI version is lightweight, fast, and great for interactive pair programming sessions. OpenAI keeps the model closed-source, but the CLI codebase is open.</p><p>Access: ChatGPT Pro/Plus includes the agent. CLI usage is billed via API tokens (~$1.50 per 1M input tokens for codex-mini).</p><h3>Claude Code — The Agentic Powerhouse</h3><p>Claude Code is Anthropic’s terminal-first CLI agent (claude), built around the philosophy of doing one thing extremely well. It plugs into your project, understands the full file structure automatically, edits files, runs shell commands, commits to git, and orchestrates multi-step plans with minimal hand-holding. It supports <strong>sub-agents</strong> — specialist agents spawned for tasks like testing or documentation — and integrates deeply with the open <strong>Model Context Protocol (MCP)</strong> for connecting external tools and services.</p><p>Context window: <strong>200K tokens</strong> (Claude Opus 4), smaller than Gemini but still substantial.</p><p>Access: Claude Pro ($20/mo) or Claude Max ($200/mo) subscription, or pay-as-you-go via API.</p><h3>The Real Comparison: Seven Dimensions That Matter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VfuqoXoHWnh2PnY19uZTng.png" /></figure><h3>1. Context Window — Who Sees More?</h3><p>Tool Context Window Google Gemini 2.5 Pro 1,000,000 tokens (expanding to 2M) Claude Code (Opus 4) 200,000 tokens OpenAI Codex CLI 128,000 tokens</p><p><strong>Winner: Google AI Pro — by a mile.</strong></p><p>For large monorepos or legacy codebases with sprawling dependencies, Gemini’s context advantage is transformative. Developers working on systems with hundreds of files consistently report that Gemini can ingest the full project in one shot, where Claude and Codex require more careful context management.</p><p>That said, context window size doesn’t automatically equal better answers. What matters is whether the model uses that context <em>intelligently</em>.</p><h3>2. Benchmark Performance — Who Codes Better?</h3><p><strong>HumanEval</strong> (code generation accuracy):</p><ul><li>Claude Code (Sonnet/Opus): <strong>~92%</strong></li><li>OpenAI Codex: <strong>~90.2%</strong></li><li>Gemini 2.5 Pro: Competitive, with fewer bugs but occasionally <em>too</em> defensive in implementation choices</li></ul><p><strong>SWE-bench</strong> (real-world multi-file bug fixing):</p><ul><li>Claude Code (Claude 3.7 Sonnet): <strong>70.3%</strong></li><li>OpenAI Codex (o1/o3-mini): <strong>~49%</strong></li></ul><p>Claude leads on the tasks that matter most for production engineering: fixing real bugs that span multiple files and require reasoning about system-wide context. Gemini is close, but Claude’s SWE-bench lead reflects its agentic architecture advantage.</p><h3>3. Agentic Capability — Who Can Run Unsupervised?</h3><p>This is where Claude Code stands apart most clearly.</p><p>Claude Code was designed from the ground up as an <strong>agent</strong>, not an assistant. It:</p><ul><li>Automatically discovers and reads relevant files without being told to</li><li>Plans multi-step execution paths</li><li>Spawns sub-agents for specialist tasks (testing, docs)</li><li>Runs night-shift autonomous workflows reliably</li><li>Handles long-horizon tasks (planning → execution → deployment) with minimal human input</li></ul><p>One developer in the community described it bluntly: <em>“Codex writes agent code. Claude </em><strong><em>runs</em></strong><em> agents.”</em></p><p>ChatGPT’s Codex agent is asynchronous and cloud-isolated, which is excellent for fire-and-forget tasks but limits interactivity. It doesn’t have sub-agent support. Gemini CLI has solid automation, but its agentic depth doesn’t match Claude’s purpose-built architecture, particularly for complex, hours-long autonomous sessions.</p><p><strong>Winner: Claude Code for sustained, complex agentic work. Codex agent for async background tasks.</strong></p><h3>4. Token Efficiency — Who Spends Less?</h3><p>In real-world tests on complex TypeScript challenges, the numbers were stark:</p><p>Tool Tokens consumed (same task) OpenAI Codex ~72,579 Claude Code ~234,772</p><p>Claude Code uses <strong>3x more tokens</strong> than Codex on equivalent tasks. This is a genuine cost consideration at scale. Codex CLI’s lightweight model is optimised for efficiency; Claude’s approach of deeply reading context means it burns more tokens upfront.</p><p><strong>Winner: OpenAI Codex for token efficiency and cost-per-task.</strong></p><h3>5. Setup &amp; Accessibility — Who Gets You Started Fastest?</h3><p>Tool Barrier to Entry Google Gemini CLI Free personal Google account — zero cost to start OpenAI Codex CLI Free via API credits; included with ChatGPT Plus Claude Code Requires Claude Pro ($20/mo) or API key</p><p>Gemini is the easiest on-ramp, especially since it comes pre-installed in Google Cloud Shell. If you’re already paying for ChatGPT, Codex CLI is essentially free. Claude Code requires a dedicated subscription — a real friction point for developers evaluating tools before committing.</p><p><strong>Winner: Google AI Pro for accessibility. Codex for existing ChatGPT users.</strong></p><h3>6. UI, Design &amp; Frontend Coding</h3><p>Community opinions on front-end capabilities are nuanced:</p><ul><li><strong>Gemini 2.5 Pro</strong> consistently gets praised as the “new UI king” — developers report it nailing UI designs close to reference images, with better functional correctness in underlying components</li><li><strong>Claude</strong> is described as excellent at <em>visual quality</em> — pretty frontends, smooth animations, polished design aesthetics</li><li><strong>Codex</strong> is strong in general-purpose code but not particularly celebrated for design work</li></ul><p>For pure UI work: if you care about it working correctly, lean Gemini. If you care about it looking beautiful, lean Claude.</p><h3>7. Ecosystem &amp; Integrations</h3><p>Tool Key Integrations Claude Code GitHub Actions, VS Code, JetBrains, Amazon Bedrock, MCP servers Gemini Code Assist Google Cloud, Vertex AI, BigQuery ML, Android Studio, Cloud Shell OpenAI Codex GitHub (via ChatGPT agent), VS Code extensions, OpenAI API ecosystem</p><p>Your existing stack matters here. Heavy Google Cloud users will find Gemini frictionless. GitHub-centric teams get the most out of Claude’s direct integration. OpenAI’s Codex slots naturally into ChatGPT-heavy workflows.</p><h3>Head-to-Head: Real Developer Workflows</h3><h3>Scenario A: Fixing a Bug in a 100,000-Line Codebase</h3><p><strong>Go with Gemini.</strong> Load the whole thing into context, describe the bug, and Gemini can reason across the entire system without needing you to guide it. This is where the 1M token context turns from a marketing number into a genuine productivity multiplier.</p><h3>Scenario B: Multi-Day Autonomous Feature Development</h3><p><strong>Go with Claude Code.</strong> If you need an agent to plan a feature, implement it across multiple files, run tests, fix failures, and commit — with minimal check-ins from you — Claude Code’s agentic architecture handles this better than any competitor. Developers running “night shift” autonomous sessions consistently report Claude as the most reliable.</p><h3>Scenario C: Quick Bug Fix, Solo File, Tight Budget</h3><p><strong>Go with Codex CLI.</strong> It’s fast, token-efficient, and has smart whole-codebase awareness for surgical fixes. When you asked it to fix one function, it flagged: <em>“This is used in 4 other places. I’ll update all of them.”</em> That’s real value at low cost.</p><h3>Scenario D: UI Component Development</h3><p><strong>Gemini for functional accuracy, Claude for aesthetics.</strong> If you’re building a component that needs to both look great and work correctly, this is genuinely a case where both tools earn their keep at different stages.</p><h3>Scenario E: You Already Pay for ChatGPT Plus</h3><p><strong>Just use Codex.</strong> No extra subscription, familiar interface, solid output. The async agent is particularly good for offloading repetitive tasks to run in the background while you focus on harder problems.</p><h3>Pricing Reality Check</h3><p>Tool Entry Price API Cost Google Gemini CLI Free Google AI Studio pricing OpenAI Codex CLI Free (API credits) ~$1.50/1M input tokens (codex-mini) Claude Code $20/mo (Pro) or API ~$3/1M input (Sonnet), $15/1M (Opus)</p><p>Claude is the most expensive on a subscription basis. But developers who depend on its agentic capabilities and multi-file reasoning typically report it saving significant engineering time — the ROI is there, but you need to actually use it heavily to justify the cost.</p><h3>The Verdict: Who Should Use What</h3><p><strong>Use Google AI Pro if:</strong></p><ul><li>You work with very large codebases or monorepos</li><li>You’re already in the Google Cloud ecosystem</li><li>You want the lowest barrier to entry (free tier)</li><li>Frontend functional accuracy is your priority</li></ul><p><strong>Use OpenAI Codex if:</strong></p><ul><li>You’re already a ChatGPT Plus subscriber</li><li>You want token-efficient, cost-effective coding assistance</li><li>You prefer async background task execution</li><li>You’re a polyglot developer who jumps between languages constantly</li></ul><p><strong>Use Claude Code if:</strong></p><ul><li>You need true autonomous, multi-step agentic execution</li><li>You work on complex multi-file refactors and long-horizon tasks</li><li>You need MCP integrations and custom tool ecosystems</li><li>You’re building agent systems or orchestrating AI workflows</li><li>You want the best raw SWE-bench performance for real-world bug fixing</li></ul><h3>The Community Verdict (from r/ClaudeCode)</h3><p>The consensus from developers who’ve tested all three is roughly this:</p><blockquote>“Claude Code for autonomous agent work and deep refactors. Gemini for giant codebases. Codex when you want something fast, cheap, and already in your existing stack.”</blockquote><p>None of these tools is universally “the best.” The honest answer is that the right tool depends on your stack, your budget, and — critically — the <em>type</em> of coding work you actually do most.</p><p>The developer community is increasingly reaching for all three, using them in combination: Gemini for architectural context, Claude for autonomous execution, Codex for quick interactive debugging. That’s not a cop-out answer; it’s just how good tooling works.</p><h3>Final Thought</h3><p>The era of “pick one AI coding tool and stick with it” is probably over. These assistants are converging on each other’s strengths fast — Codex’s codebase awareness is now legitimately impressive, Gemini’s agent capabilities are improving rapidly, and Claude’s context limits are being pushed.</p><p>What separates serious AI-assisted engineering from toy experiments isn’t the tool — it’s understanding what each one does well and building a workflow around its strengths.</p><p>Pick the right tool for the task. Automate the boring parts. Ship more.</p><p><em>Have you tested all three tools in production? Share your own findings in the comments — the best benchmarks are always the ones from your own codebase.</em></p><p><strong>Tags:</strong> AI Coding, Developer Tools, Claude Code, OpenAI Codex, Gemini, Artificial Intelligence, Software Engineering, Productivity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5091862fea01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Chroma Key Video with OpenCV and MoviePy]]></title>
            <link>https://medium.com/@piriyaraj/creating-a-chroma-key-video-with-opencv-and-moviepy-8d01404315c0?source=rss-6e44a21c0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d01404315c0</guid>
            <category><![CDATA[python-video]]></category>
            <category><![CDATA[green-screen]]></category>
            <category><![CDATA[moviepy]]></category>
            <category><![CDATA[editing-with-moviepy]]></category>
            <category><![CDATA[chroma-key-with-opencv]]></category>
            <dc:creator><![CDATA[Piriyaraj S]]></dc:creator>
            <pubDate>Mon, 29 Jul 2024 04:19:15 GMT</pubDate>
            <atom:updated>2024-07-29T04:19:15.145Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Thumbnail image showing the before and after effect of applying chroma key to a video. The left side displays the original green screen setup, while the right side showcases the same frame with the green screen replaced by another video background." src="https://cdn-images-1.medium.com/max/1024/1*MOY9KLwnLjELBvIoj7GHDw.jpeg" /></figure><p>Chroma keying, or green screening, is a visual effects technique that allows you to replace a particular color in a video, usually green, with another video or image. This technique is widely used in film and television production to create various effects. In this blog post, we’ll learn how to apply chroma keying to combine two videos using OpenCV and MoviePy.</p><h4>Prerequisites</h4><p>Before diving into the code, make sure you have the following libraries installed:</p><ul><li>OpenCV</li><li>NumPy</li><li>MoviePy</li></ul><p>You can install these libraries using pip:</p><pre>pip install opencv-python numpy moviepy</pre><h4>Step-by-Step Guide</h4><p>1. Import Necessary Libraries</p><p>First, import the required libraries:</p><pre>import cv2<br>import numpy as np<br>from moviepy.editor import VideoFileClip, AudioFileClip</pre><p>2. Define the Chroma Key Function</p><p>Create a function that applies the chroma key effect:</p><pre>def apply_chroma_key(source_frame, green_screen_frame, lower_bound, upper_bound):<br>    # Convert green screen frame to HSV color space<br>    hsv = cv2.cvtColor(green_screen_frame, cv2.COLOR_BGR2HSV)<br><br>    # Create a mask for the green color<br>    mask = cv2.inRange(hsv, lower_bound, upper_bound)<br><br>    # Apply morphological operations to clean up the mask<br>    kernel = np.ones((3, 3), np.uint8)<br>    mask = cv2.erode(mask, kernel, iterations=1)<br>    mask = cv2.dilate(mask, kernel, iterations=1)<br><br>    # Invert the mask<br>    mask_inv = cv2.bitwise_not(mask)<br><br>    # Extract the background and foreground<br>    background = cv2.bitwise_and(source_frame, source_frame, mask=mask)<br>    foreground = cv2.bitwise_and(green_screen_frame, green_screen_frame, mask=mask_inv)<br><br>    # Combine background and foreground<br>    combined = cv2.add(background, foreground)<br><br>    return combined</pre><p>3. Set Up Video Paths and Parameters</p><p>Specify the paths to your source video, green screen video, and output video:</p><pre>source_video_path = r&quot;C:\Users\ASUS\Desktop\Spot The Fake Animal For $10,000.mp4&quot;<br>green_screen_video_path = r&quot;C:\Users\ASUS\Desktop\0721 (1).mp4&quot;<br>output_video_path_no_audio = &#39;output_video_no_audio.mp4&#39;<br>output_video_path = &#39;output_video.mp4&#39;</pre><p>4. Open and Process the Videos</p><p>Read the source and green screen videos and process each frame:</p><pre>source_cap = cv2.VideoCapture(source_video_path)<br>green_screen_cap = cv2.VideoCapture(green_screen_video_path)<br><br>frame_width = int(source_cap.get(cv2.CAP_PROP_FRAME_WIDTH))<br>frame_height = int(source_cap.get(cv2.CAP_PROP_FRAME_HEIGHT))<br>fps = int(source_cap.get(cv2.CAP_PROP_FPS))<br><br>fourcc = cv2.VideoWriter_fourcc(*&#39;mp4v&#39;)<br>out = cv2.VideoWriter(output_video_path_no_audio, fourcc, fps, (frame_width, frame_height))<br><br>lower_green = np.array([40, 40, 40])<br>upper_green = np.array([80, 255, 255])<br><br>while True:<br>    ret1, source_frame = source_cap.read()<br>    ret2, green_screen_frame = green_screen_cap.read()<br><br>    if not ret1 or not ret2:<br>        break<br><br>    green_screen_frame = cv2.resize(green_screen_frame, (frame_width, frame_height))<br><br>    result_frame = apply_chroma_key(source_frame, green_screen_frame, lower_green, upper_green)<br><br>    out.write(result_frame)<br><br>source_cap.release()<br>green_screen_cap.release()<br>out.release()<br><br>print(&quot;Chroma key applied and video without audio saved.&quot;)</pre><p>5. Add Audio to the Final Video</p><p>Use MoviePy to add audio from the source video to the processed video:</p><pre>video_clip = VideoFileClip(output_video_path_no_audio)<br>audio_clip = AudioFileClip(source_video_path)<br>final_clip = video_clip.set_audio(audio_clip)<br>final_clip.write_videofile(output_video_path, codec=&#39;libx264&#39;)<br><br>print(&quot;Final video with audio saved.&quot;)</pre><h4>Conclusion</h4><p>By following these steps, you can successfully create a chroma key effect and combine two videos. This technique is powerful for creating engaging video content, whether for professional or personal projects. Experiment with different videos and chroma key settings to achieve the desired results.</p><p>Feel free to modify and expand this code to suit your specific needs. Happy video editing!</p><p><strong>Full Code:</strong></p><pre>import cv2<br>import numpy as np<br>from moviepy.editor import VideoFileClip, AudioFileClip<br><br># Function to apply chroma key<br><br><br>def apply_chroma_key(source_frame, green_screen_frame, lower_bound, upper_bound):<br>    # Convert green screen frame to HSV color space<br>    hsv = cv2.cvtColor(green_screen_frame, cv2.COLOR_BGR2HSV)<br><br>    # Create a mask for the green color<br>    mask = cv2.inRange(hsv, lower_bound, upper_bound)<br><br>    # Apply morphological operations to clean up the mask<br>    kernel = np.ones((3, 3), np.uint8)<br>    mask = cv2.erode(mask, kernel, iterations=1)<br>    mask = cv2.dilate(mask, kernel, iterations=1)<br><br>    # Invert the mask<br>    mask_inv = cv2.bitwise_not(mask)<br><br>    # Extract the background and foreground<br>    background = cv2.bitwise_and(source_frame, source_frame, mask=mask)<br>    foreground = cv2.bitwise_and(<br>        green_screen_frame, green_screen_frame, mask=mask_inv)<br><br>    # Combine background and foreground<br>    combined = cv2.add(background, foreground)<br><br>    return combined<br><br><br># Paths to the source video and green screen video<br>source_video_path = r&quot;C:\Users\ASUS\Desktop\Spot The Fake Animal For $10,000.mp4&quot;<br>green_screen_video_path = r&quot;C:\Users\ASUS\Desktop\0721 (1).mp4&quot;<br>output_video_path_no_audio = &#39;output_video_no_audio.mp4&#39;<br>output_video_path = &#39;output_video.mp4&#39;<br><br># Open the source and green screen videos<br>source_cap = cv2.VideoCapture(source_video_path)<br>green_screen_cap = cv2.VideoCapture(green_screen_video_path)<br><br># Get the video properties<br>frame_width = int(source_cap.get(cv2.CAP_PROP_FRAME_WIDTH))<br>frame_height = int(source_cap.get(cv2.CAP_PROP_FRAME_HEIGHT))<br>fps = int(source_cap.get(cv2.CAP_PROP_FPS))<br><br># Define the codec and create a VideoWriter object to save the output video<br>fourcc = cv2.VideoWriter_fourcc(*&#39;mp4v&#39;)<br>out = cv2.VideoWriter(output_video_path_no_audio, fourcc,<br>                      fps, (frame_width, frame_height))<br><br># Define the range for the green color in HSV<br># Adjust these values as needed for your specific green screen<br>lower_green = np.array([40, 40, 40])<br>upper_green = np.array([80, 255, 255])<br><br>green_screen_width = int(green_screen_cap.get(cv2.CAP_PROP_FRAME_WIDTH))<br>green_screen_height = int(green_screen_cap.get(cv2.CAP_PROP_FRAME_HEIGHT))<br><br>while True:<br>    # Read frames from both videos<br>    ret1, source_frame = source_cap.read()<br>    ret2, green_screen_frame = green_screen_cap.read()<br><br>    # Check if we have reached the end of either video<br>    if not ret1 or not ret2:<br>        break<br><br>    # Resize green screen frame to match source frame size<br>    green_screen_frame = cv2.resize(<br>        green_screen_frame, (frame_width, frame_height))<br><br>    # Apply chroma key<br>    result_frame = apply_chroma_key(<br>        source_frame, green_screen_frame, lower_green, upper_green)<br><br>    # Write the frame to the output video<br>    out.write(result_frame)<br><br># Release everything<br>source_cap.release()<br>green_screen_cap.release()<br>out.release()<br><br>print(&quot;Chroma key applied and video without audio saved.&quot;)<br><br># Now, use moviepy to add the audio from the green screen video to the output video<br># Load the video without audio<br>video_clip = VideoFileClip(output_video_path_no_audio)<br><br># Extract the audio from the green screen video<br>audio_clip = AudioFileClip(source_video_path)<br><br># Set the audio to the video<br>final_clip = video_clip.set_audio(audio_clip)<br><br># Write the final video with audio<br>final_clip.write_videofile(output_video_path, codec=&#39;libx264&#39;)<br><br>print(&quot;Final video with audio saved.&quot;)</pre><p>The used version of libraries</p><pre>opencv-python==4.8.0.74<br>moviepy==1.0.3<br>numpy==1.25.2</pre><p>numpy==1.25.2</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d01404315c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create free Linux RDP in 2024]]></title>
            <link>https://medium.com/@piriyaraj/how-to-create-free-linux-rdp-in-2024-cec39651da95?source=rss-6e44a21c0a77------2</link>
            <guid isPermaLink="false">https://medium.com/p/cec39651da95</guid>
            <dc:creator><![CDATA[Piriyaraj S]]></dc:creator>
            <pubDate>Sun, 14 Jan 2024 09:21:40 GMT</pubDate>
            <atom:updated>2024-01-14T09:37:54.748Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, you can find the way to <strong>create a free RDP</strong> (Remote Desktop protocol). This is only for educational purposes.</p><p>Here we are going to use GitHub to develop free Linux RDP. you are advised to create a new GitHub account for this because it may lead to a ban on your GitHub account.</p><p>Step1: Creating GitHub Codespace</p><p>Create a GitHub Account and a demo repo on it. go to the link <a href="https://github.com/codespaces">code space</a></p><p><a href="https://github.com/codespaces">Build software better, together</a></p><p>Here you can see the button called “New codespace” Click on it.</p><figure><img alt="Button for create codespace." src="https://cdn-images-1.medium.com/max/406/1*2gpo8UvwfR68gnxrF_C7FA.png" /></figure><p>After that, you can see the interface that shown in the below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eK5ItksenH1tQzhymJMcNA.png" /></figure><p>Here you need to select the created repository branch(default main no need to change), then region( you can choose any of those), and machine type I advise choosing a 4-core one because it provides high performance(16GB RAM and 32GB storage). below you can see an example selection</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LrOJXvXrCyC2bY4ASaPPow.png" /></figure><p>After all the selections, click the button “Create codespace” It will redirect you to the Cloud Visual Code Studio as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_ar1Gd8qmLdxRMKgsJvMJw.png" /></figure><p>Step2: Creating RDP</p><p>In this step, you need to follow the below steps. Paste the code in the terminal</p><pre>docker run -d -p 8080:80 piriyaraj1998/gcloudlol</pre><p>It takes some time to complete all the necessary installations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*K_oKsURH0zCagmk1b6Iftg.png" /></figure><p>That&#39;s it you can now access the created RDP by following the below steps.</p><p>Way 01: You can see the popup in the right bottom corner as shown in the below image</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*3QYrUO0BVqJAQxcVZdc_mw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1rjRuMiYamdw5H5DDd0mqQ.png" /></figure><p>here click the open in Browser button, it will open a new tab with RDP</p><p>Way 02:</p><p>Click the port tab in the visual code</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*5e2HTgX347rkimJ4dTAtbQ.png" /></figure><p>here you can see</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0ZmLlbEt9tpG1IVa0yTcUA.png" /></figure><p>Click the link under the forwarded address column then open a new tab with RDP</p><p>The below image shows the created Linux RDP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dbKCQs4-QK7mF1j47xjsBw.png" /></figure><p>Features of created RDP</p><p><strong>OS: Linux<br>Ram: 16 GB<br>Storage: 32GB<br>Network Speed: Around 1.7 Gbps</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*95m1d8lPLFXdYukOH1SYfQ.png" /></figure><p>Note that this is only for educational purposes don&#39;t use it for commercial usage it will lead to a ban on your GitHub account.</p><p>Follow me on:<br><a href="https://github.com/piriyaraj">GitHub</a><br><a href="https://www.facebook.com/spiriyaraj">Facebook</a><br><a href="https://www.instagram.com/piriya_raj/">Instagram</a><br><a href="https://twitter.com/PiriyarajS">Twitter</a><br><a href="https://www.fiverr.com/piriyaraj">Fiverr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cec39651da95" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>