fxreddit icon indicating copy to clipboard operation
fxreddit copied to clipboard

No audio for rxddit video embeds

Open fadster opened this issue 1 year ago • 4 comments

Embedded videos using rxddit don't have audio.

fadster avatar May 22 '24 05:05 fadster

Reddit does not provide videos with audio out of the box, it uses a streaming system which combines an audio and video stream at runtime. An embed service cannot do this, it can only provide a link to a video file or player directly.

For some videos we do have audio, but especially longer ones are not possible to do through embeds, because it would require manually re-encoding the stream while the embed is loaded. Since this is hosted on Cloudflare workers, re-encoding a video is out of the question, and it would likely be too slow to do for longer videos anyway.

MinnDevelopment avatar May 22 '24 06:05 MinnDevelopment

How does vxReddit handle it? I've seen videos where the audio doesn't work with fxreddit, but it does on vxReddit.

Try this one for example: https://www.reddit.com/r/SipsTea/comments/1ifj2nc

  • No audio: https://www.rxddit.com/r/SipsTea/comments/1ifj2nc
  • Audio works: https://www.vxreddit.com/r/SipsTea/comments/1ifj2nc

Keiyuu avatar Feb 02 '25 19:02 Keiyuu

They download and manually convert the videos, which only works for some cases where the video is short enough. I can't do that on cloudflare workers, since they are not designed for this kind of task (and downloading videos does not scale well for a free service).

MinnDevelopment avatar Feb 03 '25 07:02 MinnDevelopment