wger icon indicating copy to clipboard operation
wger copied to clipboard

File type is not supported

Open youssefeladawy opened this issue 3 years ago • 7 comments

Steps to Reproduce

  1. ... Select Workout
  2. ... Add New Video
  3. ... Upload .mp4 Video

Expected results: The video gets uploaded

Actual results: File type is not supported

tried different .mp4 videos some work and some dont work at all.

youssefeladawy avatar Aug 24 '22 13:08 youssefeladawy

Mhhh, at the moment we don't log any other information. Does this always happen with the same videos?

rolandgeider avatar Aug 25 '22 10:08 rolandgeider

Mhhh, at the moment we don't log any other information. Does this always happen with the same videos?

Yea it does you can try this sample https://file-examples.com/index.php/sample-video-files/sample-mp4-files/ and it wont work

I tried a couple of different videos that I have some of them worked while the others didnt

youssefeladawy avatar Aug 25 '22 19:08 youssefeladawy

Ah cool, then I can try to debug this on my side

rolandgeider avatar Aug 25 '22 19:08 rolandgeider

Thank you so much, here's also an example from one of my videos: https://drive.google.com/file/d/1DIMus1uwB1k-CRrrOt3A3TZO2iJbunYZ/view?usp=sharing

youssefeladawy avatar Aug 25 '22 19:08 youssefeladawy

Sorry to be bothering you, but I have an update and it might sound weird!

After a couple of tests on multiple files with different codecs, resolutions, aspect ratio, frame rate & bit rate; I think this has to do with file size, any video file of size less than 3 megabytes wont be accepted other than that it seems to work just fine

EDIT: The issue seems to be that ffmpeg cant read the file so it raises 'File type is not supported exception'

youssefeladawy avatar Aug 30 '22 00:08 youssefeladawy

that makes sense, I had only tested this with the handful of codecs I was planning on using. I would guess installing a couple of packages would solve the issue

rolandgeider avatar Aug 30 '22 06:08 rolandgeider

While I haven't tried yet, the internet says installing libavcodec-extra would probably get the necessary codecs

rolandgeider avatar Aug 31 '22 19:08 rolandgeider