trešdiena, 2025. gada 3. septembris

Upscale with A.I VIDEOS

Great choice! The ShotCut + Upscayl combo gives you a GUI-based workflow to upscale videos on Ubuntu 22.04 — with no command line required for basic use.


🎯 What You'll Achieve

  1. Split your video into image frames using ShotCut (or FFmpeg, optionally).

  2. Upscale the frames using Upscayl (AI image upscaler).

  3. Reassemble the upscaled frames back into a video using ShotCut.


🧰 What You Need


🧱 Step-by-Step Guide


🔧 Step 1: Install ShotCut

📦 Install via Flatpak (Recommended)

sudo apt install flatpak -y flatpak install flathub org.shotcut.Shotcut

✅ Launch with:

flatpak run org.shotcut.Shotcut

🤖 Step 2: Install Upscayl (GUI AI Image Upscaler)

📥 Download .AppImage (Easiest)

  1. Go to: https://github.com/upscayl/upscayl/releases

  2. Download the latest Upscayl-x.x.x.AppImage

  3. Make it executable:

chmod +x Upscayl-*.AppImage ./Upscayl-*.AppImage

🎞️ Step 3: Extract Frames from Video using ShotCut

  1. Open your video in ShotCut.

  2. Drag the video to the timeline.

  3. Go to File > Export Frame (or use the “Export” tab).

  4. Choose an image format (e.g., PNG or JPG).

  5. Export all frames as images manually — or use ShotCut’s “Export > Advanced > Format = image sequence” option to do it automatically.

Alternatively, extract frames via FFmpeg:

mkdir frames ffmpeg -i yourvideo.mp4 frames/frame%04d.png

🧠 Step 4: Upscale Frames with Upscayl

  1. Launch Upscayl.

  2. Select the folder with the exported frames.

  3. Choose an AI model (Real-ESRGAN-based models work best).

  4. Set output folder.

  5. Click "Upscayl" and wait for processing.

Upscayl supports batch processing, so it will upscale all frames in one go.


🎬 Step 5: Reassemble Upscaled Frames into a Video

Option 1: Use ShotCut

  1. Open ShotCut and create a new project.

  2. Drag the upscaled images (sorted in order) into the timeline.

  3. Set the frame rate to match the original video.

  4. Export as video.

Option 2: Use FFmpeg (faster)

ffmpeg -framerate 30 -i upscaled/frame%04d.png -i original_audio.aac -c:v libx264 -pix_fmt yuv420p output.mp4
  • Adjust -framerate to match original.

  • If you want to keep original audio, extract it first:

ffmpeg -i yourvideo.mp4 -q:a 0 -map a original_audio.aac

🎉 Done!

You now have a fully upscaled version of your video using AI — all on Ubuntu, no complex CLI tools or Docker needed.


📝 Bonus: Automate the Process?

Want a simple shell script to automate this (frame extraction + reassembly)? Just ask, and I’ll generate one tailored to your workflow.

Let me know if you’d like help optimizing for speed, quality, or GPU usage.

Nav komentāru:

Ierakstīt komentāru