🎬 Advanced Video Transcreator v3.4
This version uses a powerful multi-modal prompt for superior, context-aware 'Transcreation'.
Upload a short video with English text, or provide an Instagram URL and an optional English caption. Clicking 'Download from URL' will download and automatically process the video. The app will analyze the video's mood, style, and caption to generate a perfectly integrated Persian translation and an Instagram caption. Author names (e.g., '- Rumi') are included in the translation and overlaid on a separate line.
How it works:
- Gemini Transcreation: The video and optional English caption are sent to Gemini for a deep, multi-modal analysis. Gemini is specifically instructed to include author names (e.g., '- Rumi') in the essential text, ignore temporary text (like usernames or subtitles), and generate a Persian Instagram caption based on the video and caption input.
- Category Classification: The app selects a category (MEME_HUMOR, COLD_MOTIVATIONAL, WISE_QUOTE, TWITTER_JOKE) based on text, audio, and visuals, using clear definitions for accurate translation.
- Smart BBox Detection: The app first checks for a prominent white header box. If found, it uses that for a clean overlay. If not, it falls back to
EasyOCR
to find the exact pixel location of the essential text Gemini identified. - Render & Composite: The Persian text, including author names on a separate line, is rendered with adaptive color inside the detected bounding box, with a font size that's guaranteed to fit, and placed precisely over the original.
- Finalize with Fade-In: The original audio is merged back into the new video, and a 1-second fade-in is applied using
ffmpeg
. - Instagram Caption: A concise, culturally appropriate caption is generated, incorporating the English caption (if provided), and displayed for use with the translated video.