1233
you are viewing a single comment's thread
view the rest of the comments
[-] CodexArcanum@lemmy.world 8 points 3 months ago

That's standard Markdown syntax for embedded links: instead of linking, just show the content. Usually only for images but I think some sites will allow audio (and video?!) embeds as well.

[-] ChaoticNeutralCzech@feddit.org 7 points 3 months ago* (last edited 3 months ago)

Yes, video too, but support by clients is inconsistent (some don't show playback controls and loop it like a gif, some just display a link). By default, the media hosting server allows for up to 900 frames (up to 30-37 seconds of smooth video) and 2160p; the audio track is removed; the filesize limit is 40 MiB (most instance owners set it way lower, perhaps 5 or 10). There is a caveat: all media must be encoded to a single codec of the instance owner's choice: VP9 (default), H264, H265, AV1, or VP8. Uploading in one of the others is possible but beware: it is going to be reencoded by the server, and if the process doesn't finish within the timeout of 30 seconds, you get the error ffmpeg timed out. In 30 seconds, a server without HW acceleration will typically only process a very short video (for feddit.org, it's about 1 MiB's worth of H265) so anything longer than a few seconds will fail! To take advantage of the full upload limit, you must reencode the video yourself to VP9 or whatever other codec is set (you can tell by uploading a tiny file in any codec and inspecting the output).

You can use the following command to reencode the video to VP9:

ffmpeg -i input.mkv \
  -r 899/<duration> `only use this for longer videos where you need to reduce frames to 900` \
  -c:a libopus -b:a 48k `audio will probably be removed anyway` \
  -c:v vp9 \
  -crf 32 `constant quality mode, lower is better quality, try finding lowest value satisfying filesize limit` \
  output.webm

FFmpeg can do much more to the video: resize, crop, trim etc. Look it up. If you want GUI, try Handbrake.

Alternatively, just use a more lenient hoster like GitHub or catbox.moe and embed the file from there, which has no aforementioned limits: ![Big Buck Bunny 4K](https://upload.wikimedia.org/wikipedia/commons/c/c0/Big_Buck_Bunny_4K.webm) will embed a 10-minute 4K movie.

[-] CodexArcanum@lemmy.world 1 points 3 months ago

Wow! Thanks for the detailed response, I definitely did not know all that about it, nor would have thought to look it up.

[-] MeThisGuy@feddit.nl 1 points 3 months ago

I want to embed you

this post was submitted on 01 Aug 2024
1233 points (98.0% liked)

Lemmy Shitpost

26822 readers
1602 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 1 year ago
MODERATORS