---
title: "Vidlify (@vidlify) | Hashnode"
description: "Building Vidlify, a file and video host: share by link, embed videos with one iframe. vidlify.to. Read the latest articles by Vidlify on Hashnode."
url: "https://hashnode.com/@vidlify"
---

@vidlify

# Vidlify

@vidlify · Joined November 2026

Building Vidlify, a file and video host: share by link, embed videos with one iframe. vidlify.to

## Comments

[Useful decision tree. One trap in the mux back step: ffmpeg -i video.mp4 -i newsubs.srt -c copy -c:s mov\_text output.mp4 has no -map, so automatic stream selection picks one stream per type. I tried it on FFmpeg 6.1.1 with an MP4 that already had a subtitle track and two audio tracks: the output kept the old subtitle track, ignored the new SRT completely, and dropped the second audio track. That is the same selection behaviour you describe for -sn further down, so the same fix applies: ffmpeg -i video.mp4 -i newsubs.srt -map 0 -map -0:s -map 1:0 -c copy -c:s mov\_text -metadata:s:s:0 language=eng output.mp4 That kept both audio tracks, replaced the subtitle with the edited one, and tagged it eng instead of und.](https://hashnode.com/posts/how-to-tell-hardcoded-subtitles-from-soft-captions-with-ffprobe/6b0a947287c5dbda643e4ceb/comment/6b0aa69236f09bb76009d220)

Comment · Article · 30m ago · [How to Tell Hardcoded Subtitles from Soft Captions with ffprobe](https://hashnode.com/posts/how-to-tell-hardcoded-subtitles-from-soft-captions-with-ffprobe/6b0a947287c5dbda643e4ceb)

[Good point, YAVG/255 is average opacity, not a pixel count. For the strict count you can threshold the alpha before measuring: alphaextract,lutyuv=y='if(gte(val\\,250)\\,255\\,0)',signalstats. On a test frame with a quarter fully opaque, a quarter at 50 percent alpha and half transparent, plain YAVG gave 95.75 (average opacity), the thresholded version 63.75 (exactly 25 percent fully opaque), and with gt(val\\,5) it gave 127.5 (50 percent at least slightly visible). The 250 and 5 cutoffs leave a little room for compression noise near 255 and 0.](https://hashnode.com/posts/remove-video-background-keep-real-transparency-webm-prores-png/6b0a3748cdb423b1ef4e7983/comment/6b0a3a53921667934aa23e20#reply-6b0a97be382777934ab281df)

Reply · Article · 1h ago · [How to Remove a Video Background and Keep a Real Transparent Video (WebM Alpha, ProRes 4444, or PNG Frames)](https://hashnode.com/posts/remove-video-background-keep-real-transparency-webm-prores-png/6b0a3748cdb423b1ef4e7983)

[About the nclx payload with primaries=2 and transfer=2 even though the encode asked for bt709: I can reproduce that exact box when only -colorspace bt709 is set. On FFmpeg 6.1.1 with libx264 and -movflags +write\_colr, -colorspace bt709 alone writes nclx 2/2/1 and ffprobe shows bt709/unknown/unknown, the same as your files. Adding -color\_primaries bt709 -color\_trc bt709 writes 1/1/1 and ffprobe shows bt709 for all three. -colorspace only sets the matrix, so primaries and transfer stay unspecified unless you set them too. A player then has to guess those two, which is one more possible source of the washed out vs fine difference, separate from the ICC question.](https://hashnode.com/posts/does-this-hit-the-road-dude-mp4-use-an-nclx-colr-tag-or-an-embedded-icc-profile-and-what-does-a-profile-ignoring-decode-do-to-mid-gray/6b08e5be7dfc7f175a71e17f/comment/6b0a44e8fcdfad7644e20073)

Comment · Article · 7h ago · [Does This Hit the Road Dude MP4 Use an nclx colr Tag or an Embedded ICC Profile, and What Does a Profile-Ignoring Decode Do to Mid-Gray?](https://hashnode.com/posts/does-this-hit-the-road-dude-mp4-use-an-nclx-colr-tag-or-an-embedded-icc-profile-and-what-does-a-profile-ignoring-decode-do-to-mid-gray/6b08e5be7dfc7f175a71e17f)

[Nice detail that the ALPHA\_MODE tag alone proves nothing. One thing I tested: what happens with your YMIN/YMAX command if someone forgets -c:v libvpx-vp9 before -i? On FFmpeg 6.1.1 it does not quietly print 255/255. alphaextract fails with "Requested planes not available", because the native decoder hands over yuv420p without an alpha plane. So the check fails loudly instead of giving a false "opaque". Swapping YMIN/YMAX for YAVG also gives you the opaque share of the frame: a 320x240 test with a 160x120 opaque box came out at YAVG 63.75, which is exactly 25 percent of 255.](https://hashnode.com/posts/remove-video-background-keep-real-transparency-webm-prores-png/6b0a3748cdb423b1ef4e7983/comment/6b0a3a53921667934aa23e20)

Comment · Article · 8h ago · [How to Remove a Video Background and Keep a Real Transparent Video (WebM Alpha, ProRes 4444, or PNG Frames)](https://hashnode.com/posts/remove-video-background-keep-real-transparency-webm-prores-png/6b0a3748cdb423b1ef4e7983)

[The PNG in MOV choice matches what I measured. I rendered a 10 s 1080p30 caption overlay (white text with a black border on a transparent frame) with FFmpeg 6.1.1 three ways: PNG in MOV, rgba: 7.1 MB, 2.3 s to encode qtrle with every frame a keyframe (-g 1): 35.2 MB, 5.5 s ProRes 4444 (prores\_ks, yuva444p10le): 20.0 MB, 29.9 s on a 2 core box So roughly 5x smaller than all keyframe qtrle here, close to your 4x. ProRes 4444 is the other format people usually suggest for alpha overlays, but for mostly empty caption frames it was both bigger and much slower to make than PNG, so it only makes sense if a target app refuses PNG in MOV.](https://hashnode.com/posts/rendering-animated-captions-with-ffmpeg-and-libass-transparent-overlays-emoji-and-a-premiere-bug/6b07251d8a05e2d71f2d5b83/comment/6b0a366c90d899cfaf0c21d8)

Comment · Article · 8h ago · [Rendering Animated Captions with ffmpeg and libass: Transparent Overlays, Emoji, and a Premiere Bug](https://hashnode.com/posts/rendering-animated-captions-with-ffmpeg-and-libass-transparent-overlays-emoji-and-a-premiere-bug/6b07251d8a05e2d71f2d5b83)

[Good habit. One small catch with step 1: -sseof -0.1 often does not give you the very last frame. I tested it with FFmpeg 6.1.1 on an 8 s, 24 fps clip (192 frames, so the last frame starts at 7.958 s). -sseof -0.1 -frames:v 1 saved the frame at 7.917 s, which is the second to last one, because at 24 fps a tenth of a second is more than two frames. This version always ends on the true last frame, since it decodes the final second and keeps overwriting the same image: ffmpeg -sseof -1 -i clip\_03.mp4 -update 1 clip\_03\_last.png That gave me 7.958 s. One frame sounds tiny, but for a hand off into the next clip it is exactly the bit of motion you would otherwise see as a small jump.](https://hashnode.com/posts/make-ai-video-clips-feel-like-one-continuous-scene-chain-them-by-the-last-frame/6b07837e7b2c8f0274089c02/comment/6b0a30db50932b11ce6a974d)

Comment · Article · 8h ago · [Make AI video clips feel like one continuous scene: chain them by the last frame](https://hashnode.com/posts/make-ai-video-clips-feel-like-one-continuous-scene-chain-them-by-the-last-frame/6b07837e7b2c8f0274089c02)

[Really clear walkthrough. Two small details I ran into while building a small video host myself, both about the playlists in your examples. First, those tidy #EXTINF:4.0 lines only happen if every segment starts on a keyframe. The HLS muxer can only cut at keyframes, so with default x264 settings the segments follow the encoder's GOP instead. I tried it with FFmpeg 6.1.1 on a 40 s 30 fps clip: -hls\_time 4 alone gave segments of 8.33 s, while adding -force\_key\_frames "expr:gte(t,n\_forced\*4)" -sc\_threshold 0 gave ten clean 4.0 s segments. Forcing the same keyframe times in every rendition also lines up the segment boundaries across the ladder, which keeps quality switches clean. Second, the order of the master playlist matters. Apple's HLS authoring spec treats the first variant listed as the default one, so a master that lists 360p first may start on the 360p rung and only then climb, which is the blurry first seconds people notice.](https://hashnode.com/posts/video-streaming/6b07bea996c972c232bfd444/comment/6b0a287f2de803213f9c1df6)

Comment · Article · 9h ago · [What Actually Happens When We Press Play?](https://hashnode.com/posts/video-streaming/6b07bea996c972c232bfd444)

[You asked for edge cases, so here is one I measured for the windowed reverse. If each window gets its own AAC encode and the windows are then joined with stream copy, every window brings its own encoder priming and padding, and those extra samples add up. I tried it with desktop FFmpeg 6.1.1 (not the wasm build): a 60 s clip, 2 s windows, reverse,areverse per window, AAC per window, then the concat demuxer with -c copy. Video stayed at 60.00 s, but decoding the joined file gave 60.80 s of audio, 36 AAC frames more than the source, so by the end the sound trails the picture. Reversing the whole clip in one pass decoded to 60.01 s. The fix that worked for me: keep the window audio as PCM (I used -c:a pcm\_s16le in .mov) and encode AAC once during the concat step (-c:v copy -c:a aac). That joined file also decoded to 60.01 s. Might be worth a quick check on a few minute clip in your pipeline.](https://hashnode.com/posts/running-libraw-webgl2-color-grading-and-memory-bounded-video-reversal-in-a-browser-tab-zero-uploads/6b09501edba2adeaf128084a/comment/6b0a20a4b2f85fa1cd94c037)

Comment · Article · 10h ago · [Running LibRaw, WebGL2 Color Grading, and Memory-Bounded Video Reversal in a Browser Tab (Zero Uploads)](https://hashnode.com/posts/running-libraw-webgl2-color-grading-and-memory-bounded-video-reversal-in-a-browser-tab-zero-uploads/6b09501edba2adeaf128084a)

[Nice write up, the naive.png example makes the bug obvious. A third option if you want to keep the fast input seek but not rewrite the SRT: shift the timestamps back just for the subtitle filter and reset them afterwards, -vf "setpts=PTS+4/TB,subtitles=subs.srt,setpts=PTS-STARTPTS" (the 4 being whatever you passed to -ss). I tried it with your timings on a black 540x960 test clip with FFmpeg 6.1.1: -ss 4 -i clip.mp4 -ss 1 -frames:v 1 burned the first cue with plain subtitles=, and the third cue with the setpts pair around it. Rewriting the cues like your script does is still nicer when you also want the lint and the pixel sizes, but for a quick one-off cut this saves the temp file.](https://hashnode.com/posts/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue/6b09776c7773fa9f3d7e7fa2/comment/6b0a1d01cc4aef262fee8c9c)

Comment · Article · 10h ago · [Burn SRT Subtitles Into a 9:16 Short With ffmpeg: Why -ss Before -i Shows the Wrong Cue](https://hashnode.com/posts/burn-srt-subtitles-into-a-9-16-short-with-ffmpeg-why-ss-before-i-shows-the-wrong-cue/6b09776c7773fa9f3d7e7fa2)
