Stekeblad / Stekeblads-Video-Uploader

Easier bulk-uploading to Youtube
MIT License
31 stars 13 forks source link

.webm files are not recognized as videos #4

Closed saiif2018 closed 6 years ago

saiif2018 commented 6 years ago

i Noticed that the program does not recognize some video extentions like .webm witch is can be uploaded to youtube :)

Stekeblad commented 6 years ago

The program checks the content type (MIME) of files, not the extension. If the content type of a file you want to upload starts with "video/" it will be accepted. According to webm project webm videos should have the MIME-type "video/webm".

In other words, webm should work. Do other types of video files work? Can you check the content type of one of the files that you could not add?

saiif2018 commented 6 years ago

sorry man i meant .webm files , its says that mime type is video/webm

Stekeblad commented 6 years ago

I am talking about .webm video files

saiif2018 commented 6 years ago

did you try choosing .webm file , i tried diffrent extentions and it worked but .webm dosent work when i pick the file it does not show in the box

saiif2018 commented 6 years ago

its no big issue but i just wanted to notify you about it , because i can just change extention of the videos and it will work fine

Stekeblad commented 6 years ago

I have now tried with a .webm video file and it detects the content type as "null". (It does not know what it is.) I cant find much information on this, the only solution that would make .webm videos to work I can see right now is to add a specific test for the .webm extension but I dont like that solution.

I was about to suggest you migrate to another file format but if it works by just renaming the files, do that!