stackernews / stacker.news

Internet communities that pay you Bitcoin
https://stacker.news
MIT License
439 stars 113 forks source link

Can't use "record video" as upload option on Safari iOS #1568

Open ekzyis opened 2 weeks ago

ekzyis commented 2 weeks ago

Is there an existing issue for this?

Describe the bug

If you click on Upload, you can upload an existing file or take a photo or video.

If you choose video, the resulting video can't be uploaded because it uses .mov.

Screenshots

signal-2024-11-10-162656

Steps To Reproduce

  1. Click on "upload file"
  2. Select "Take Photo or Video"
  3. Record video and try to upload

Expected behavior

We support MOV format

Logs

No response

Device information

Additional context

No response

Soxasora commented 1 week ago

I was tinkering with this issue and allowing video/quicktime mime type fixes it. The real problem is that embedded mov files can only be seen by Apple users per MDN. Transcoding to mp4 during the upload process could be an option though.

huumn commented 1 week ago

I was looking for something like imgproxy for video awhile ago but I couldn't find anything.

Why aren't more people making stuff we need 😅

Soxasora commented 1 week ago

I could try to make a proof of concept with ffmpeg, this way not only SN could support mov files but also handle compression for all the other videos 🗜️

ekzyis commented 1 week ago

sounds good to me!

Soxasora commented 6 days ago

https://github.com/user-attachments/assets/1855e200-8e9a-42ad-8f7c-6d43ef7f9300

Transcoding 🔁 Being a proof-of-concept for now I'm using Ffmpeg and Node in a docker container.

It even adds an onTranscoding call to update the user on what's happening! (excited for so little)

Oh and hey mov files now work :P

EDIT: I also noticed a bug that prevents iOS (or Safari?) users from uploading videos, I'll open an issue and then PR the hotfix