Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/okikio/inthistweet. ✨ Futuristic ✨ twitter image, gif and video downloader. Enter a Tweet URL, cli inthistweet.app
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185---import Layout from '../layouts/Layout.astro';import FFmpegEditor from '../components/ffmpeg.svelte';
// import ffmpegURL from "@ffmpeg.wasm/main/dist/ffmpeg.min.js?url";
import { Button, TextBlock, InfoBar } from 'fluent-svelte';
import Logo from "~icons/local/logo";import ProductHuntLogo from "~icons/local/product-hunt-logo";import FileIconsFfmpeg from '~icons/file-icons/ffmpeg';
import MdiGithub from '~icons/mdi/github';import MdiTwitter from '~icons/mdi/twitter';
Astro.response.headers.set("Cross-Origin-Opener-Policy", "same-origin");Astro.response.headers.set("Cross-Origin-Embedder-Policy", "require-corp");
export const prerender = false;---
<Layout title="FFmpeg Playground - in this tweet?" description="Using ffmpeg to convert between media types, e.g. convert a video from m3u8 to mp4, mp4 to avi, avi to gif, etc... Use it in conjunction with inthisweet.app for even better combinations"> <section class="social-media"> <menu class="flex justify-center gap-1 sm:gap-4"> <Button href="/" variant="standard" rel="noopener" aria-label="Go home"> <span class="flex flex-row items-center gap-2"> <Logo class="logo" /><span class="lt-sm:hidden font-[family:Inter]">In this tweet</span> </span> </Button>
<div class="flex-grow" /> <Button class="flex gap-2" variant="hyperlink" href="/ffmpeg"> <FileIconsFfmpeg /> FFmpeg </Button> <Button class="flex gap-2" variant="hyperlink" href="https://github.com/okikio/inthistweet" rel="noopener"> <MdiGithub /> GitHub </Button>
<Button class="flex gap-2" variant="hyperlink" href="https://twitter.com/@inthistweet_dev" rel="noopener"> <MdiTwitter /> Twitter </Button> </menu> </section>
<header class="pt-8 py-4 sm:py-8 md:pt-14 text-center"> <div class="title"> <TextBlock variant="display"> <span class="inline-flex items-center gap-6 title-display" id="title-display"> FFmpeg Playground <Logo class="logo" /> </span> </TextBlock> </div> <div class="text-gray-900/60 dark:text-gray-200/80 max-w-[48ch] lg:max-w-[60ch] xl:max-w-[75ch] mx-auto"> <TextBlock variant="body"> <span class="leading-7"> Enter a video or image URL, enter your ffmpeg config, click search, and enjoy. You can also open files by clicking the folder button. </span> </TextBlock> </div> </header>
<main> <FFmpegEditor value={new URL(Astro.url).searchParams.get('q') ?? ''} client:load /> </main>
<div> <a href="https://www.producthunt.com/posts/ffmpeg-playground-in-this-tweet?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-ffmpeg-playground-in-this-tweet" target="_blank" rel="noopener"> <img src="/product-hunt-badge-light.svg" alt="Upvote on ProductHunt" width="150" height="32" class="text-center mx-auto block dark:hidden" loading="lazy" > <img src="/product-hunt-badge-dark.svg" alt="Upvote on ProductHunt" width="150" height="32" class="text-center mx-auto hidden dark:block" loading="lazy" > <!-- <img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=373878&theme=neutral" alt="in this tweet - ✨ Futuristic ✨ twitter video, gif and image downloader. | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" class="text-center mx-auto block dark:hidden" loading="lazy" crossorigin="anonymous" /> <img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=373878&theme=dark" alt="in this tweet - ✨ Futuristic ✨ twitter video, gif and image downloader. | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" class="text-center mx-auto hidden dark:block" loading="lazy" crossorigin="anonymous" /> --> </a> </div>
<footer class="copyright py-4 sm:py-8"> <div class="flex flex-row flex-wrap gap-x-8 gap-y-4 justify-center"> <div> <span> © {new Date().getFullYear()} </span> <a class="copyright-link" href="https://okikio.dev" rel="noopener">Okiki Ojo</a> </div> </div> </footer>
{/** <script src={ffmpegURL} is:inline></script>
<script> import Measure from "../scripts/measure"; Measure(window); </script> */}</Layout>
<style lang="scss"> .social-media, header, footer, main { margin: auto; padding: 0.75rem;
@apply max-w-[60ch] md:max-w-[75ch] xl:max-w-[80ch]; }
.logo-short { height: 1em; }
.logo :global(path) { @apply stroke-black; @apply dark:stroke-white; }
@sm { .social-media, header, footer, main { padding: 1.5rem; } }
:global(.title #title-display) { @apply pb-4; @apply lt-xxsm:text-2xl text-4xl sm:text-6xl; }
:global(.icon-button svg.logo) { inline-size: auto; flex-shrink: 0; }
.copyright { text-align: center; }
:global(.link), .copyright-link, .credit-link { color: var(--fds-accent-default); display: inline-flex; align-items: center; @apply gap-1; }
.copyright-link:hover, .credit-link:hover { text-decoration: underline; }</style>