Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/69505485-7d60-8001-98fc-66951636b1d8
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: You can do this by lying to the container metadata duration / timescale while keeping almost no actual frames. === You can do this by lying to the container metadata (duration / timescale) while keeping almost no actual frames. Plex relies heavily on MP4 container metadata, not actual frame count. The most reliable approach is FFmpeg with a very low framerate + stretched duration metadata. ==== This produces a valid MP4 that Plex will see as ~90 minutes, while staying ~1 MB. ==== <syntaxhighlight lang="bash">ffmpeg -f lavfi -i color=c=black:s=16x16:r=0.000185 \ -c:v libx264 \ -pix_fmt yuv420p \ -t 5400 \ -movflags +faststart \ -profile:v baseline \ -level 1.0 \ -an \ 90min.mp4 </syntaxhighlight> ===== - 5400 seconds = 90 minutes ===== * 0.000185 fps β only ~1 frame per 90 minutes * Tiny resolution (16Γ16) * No audio * Baseline profile = Plex friendly Result: * ~500 KB β 1 MB * Plex reports 1h 30m duration * Plays instantly (or βendsβ immediately depending on client) ==== If you want to keep exactly one frame and force duration metadata: ==== <syntaxhighlight lang="bash">ffmpeg -loop 1 -i black.png \ -c:v libx264 \ -t 5400 \ -video_track_timescale 1000 \ -movflags +faststart \ -an \ 90min.mp4 </syntaxhighlight> Where black.png is a single black pixel or tiny image. This relies on MP4 timing metadata, which Plex respects. ==== Run: ==== <syntaxhighlight lang="bash">ffprobe 90min.mp4 </syntaxhighlight> Look for: <syntaxhighlight>Duration: 01:30:00.00 </syntaxhighlight> If ffprobe sees it correctly, Plex almost certainly will. ==== - Plex does not validate frame density ==== * Plex trusts MP4 duration atom * Avoid MKV β Plex recalculates duration sometimes * No audio = smaller file and fewer playback issues ==== I can: ==== * Tune this to exactly 1.00 MB * Make Plex think itβs TV-episode length instead * Embed fake chapter markers * Make it seekable or non-seekable * Generate a version that never actually plays but still scans cleanly Just say the word.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)