Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No video with support format and MIME type found." when uploading video #126

Closed
rlglenn opened this issue Nov 20, 2024 · 5 comments · Fixed by #130
Closed

"No video with support format and MIME type found." when uploading video #126

rlglenn opened this issue Nov 20, 2024 · 5 comments · Fixed by #130

Comments

@rlglenn
Copy link

rlglenn commented Nov 20, 2024

Using Firefox with account on https://demo.havenweb.org, uploaded mp4 video, video controls tag and type="video/mp4" automatically created, but video does not play and get a message: "No video with support format and MIME type found." Am I doing something wrong, or is video not supported?

@mawise
Copy link
Contributor

mawise commented Nov 22, 2024

Video is supported, I just did a test on the running demo and it worked. I suspect it has to do with something like the specific encoding format your video uses. Would you feel comfortable attaching your video to the github issue or otherwise sharing it so I can investigate further?

@mawise
Copy link
Contributor

mawise commented Dec 30, 2024

Without additional information I'm afraid I can't debug this any further.

@mawise mawise closed this as completed Dec 30, 2024
@skycorrigan
Copy link

skycorrigan commented Dec 30, 2024

@mawise I'm having a video upload problem of my own. I can upload an 8 minute video from my desktop to my Haven instance (sits behind nginx proxy manager in a docker container) but I get an error when I try to upload even a 6 second video from my phone to the same Haven instance.

The 8 minute video is in 1080P and the 6 second video is in 720P (purposely used low resolution for testing after initial 1080P error from phone). I've attached the test video, video details, and corresponding video upload screenshots. If you or anyone else could help I'd really appreciate it.

IMG_2336.MOV

IMG_2337
IMG_2338

@mawise
Copy link
Contributor

mawise commented Dec 30, 2024

Thank you for the sample video! This video doesn't work because it is a .mov. Haven currently expects videos to be .mp4. I'll leave some notes for myself from the error logs here. I think I can fix this soon. (Haven should also return a more useful error message in situations where you are uploading an unexpected file type.)

F, [2024-12-30T13:38:46.734654 #29150] FATAL -- : [e4a65eb0-dd8c-46f3-9a4c-dfd4127c5e93]
[e4a65eb0-dd8c-46f3-9a4c-dfd4127c5e93] NoMethodError (undefined method `>' for nil:NilClass

    if image_meta[:width] > 1600 #resize at lower quality with link
                          ^):
[e4a65eb0-dd8c-46f3-9a4c-dfd4127c5e93]
[e4a65eb0-dd8c-46f3-9a4c-dfd4127c5e93] app/controllers/posts_controller.rb:164:in `process_new_image'
[e4a65eb0-dd8c-46f3-9a4c-dfd4127c5e93] app/controllers/posts_controller.rb:208:in `handle_form_submit'
[e4a65eb0-dd8c-46f3-9a4c-dfd4127c5e93] app/controllers/posts_controller.rb:65:in `create'

@mawise mawise reopened this Dec 30, 2024
@skycorrigan
Copy link

skycorrigan commented Dec 30, 2024

Is there anyway to allow Haven to process videos in .mov format, as that's the format that they are recorded into on iOS devices. Would be great for uploading to Haven straight from the iOS devices vs having to convert elsewhere and upload from there. Plus it's an easier way to upload and post for family members while on the go.

I ask this as I'm the father of a 2 y/o boy who limits my time on the computer. Anything that I can do from my phone always works better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants