mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.52k stars 458 forks source link

After enabling “DO_NOT_TRANSCODE_VIDEO” uploaded video’s do not play but the thumbnail works #976

Open foeyonghai opened 4 months ago

foeyonghai commented 4 months ago

Describe the issue I downloaded and created multiple instances of MediaCMS on an updated Ubuntu server and enabled the “DO_NOT_TRANSCODE_VIDEO” option that was implemented not too long ago. After uploading videos it shows a thumbnail but after clicking on the thumbnail and getting on the page of the video itself it doesn’t play and only shows a black image at the place where the player is expected.

To Reproduce Steps to reproduce the issue:

  1. Download MediaCMS
  2. Tweak the /deploy/settings.py file and change “DO_NOT_ENCODE_VIDEO” to enabled
  3. Installing an instance of the newest MediaCMS using the regular docker-compose file, so docker-compose.yml. I did not tweak any settings except for the password of the admin account of MediaCMS itself.
  4. Upload a video, I tried .vob, .mp4 and some others (just the regular files)
  5. Try to play the video

Expected behavior A working video

Screenshots Will provide but I’m not at home now

Environment (please complete the following information): Ubuntu Server, updated Docker and docker compose

foeyonghai commented 4 months ago

I am not at home now so some places like /deploy/cms/settings.py I need to double check, doing this relying on my memories now.

foeyonghai commented 4 months ago

Okay I did some extended tests and it gets clearer

The behaviour above is in 2 seperate tenants.

I am wondering at this point: which video extentions are supported and which not?

TheFlipside commented 1 month ago

I had a similar issue but I'm using a local installation. I found that when i set "DO_NOT_ENCODE_VIDEO = True" in /home/mediacms.io/mediacms/cms/local_settings.py even after restarting the mediacms service I still had the system do encodings for newly uploaded media. The setting had to be set in /home/mediacms.io/mediacms/cms/settings.py and now it works, newly uploaded media do not trigger any encoding and the only selectable quality on a media is "0-original". It seems the setting is not taken in effect when put in the local settings.