Media encoding is pending #74
Replies: 14 comments 27 replies
-
Please help me,thank you |
Beta Was this translation helpful? Give feedback.
-
Hi, how did you install the software, was it through the installation script or through the Docker Compose setup? What operating system does the server have? Did it install well? Checkout logs on logs/ dir, they might contain something useful (celery_long.log or debug.log in this case). Most probably something didn't start well (or wasn't installed correctly) |
Beta Was this translation helpful? Give feedback.
-
I uploaded one mp4 and it went fine. I uploaded another mp4 and it gave 'media encoding is pending'. Both are there. Both play. |
Beta Was this translation helpful? Give feedback.
-
OK, so I dug into this one because I started seeing it on every upload. When adding a video file to MediaCMS, the file with upload for a few minutes (depends on each individual's internet speed of course), then the message 'Processing' will be displayed for half a minute, and finally a link to 'View your video' will be displayed in the upper right corner. The 'Processing' message is misleading. It gave me the impression that the transcoding process was taking place and that when 'View your video' was displayed, transcoding had completed and the video would be there ready to be viewed by me. However, what actually happens is I click the link and the player says: Clearly, transcoding has only just begun. In fact, the various resolutions of the video will only gradually become available over the course of several minutes e.g. 240p after 2 min, 360p 3 minutes after that, 480p 5 minutes later, etc, etc, until 1080p becomes available and the transcoding process is done. Depending on the size of the file, the media encoding message might be displayed briefly or for several minutes. Once the 240p version becomes available, the media encoding message won't be displayed anymore. The user will just see the 240p version in the player when they click the link. I suggest we change the message from "Media encoding is pending" to:
Or something along those lines so that our users don't think the site is broken. Maybe the 'Processing' message can be made better as well, but I don't know what happens during processing, so I can't make a suggestion. What happens during processing? |
Beta Was this translation helpful? Give feedback.
-
I have the same problem: Media encoding is pending... The above discussion does not help in my case. Restarting the services do not trigger the bebug.log. The attachment is errorlog.txt, which only has some pagination errors. I also checked the admin page encoding. All of them are in a pending state. Is there other log files I can check to figure out the problem? And there is no "encoded" folder under /home/mediacms.io/mediacms/media_files. The sub dir under that are: chunks,hls, original, uploads, userlogos. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Got something similar, where all my uploaded videos are just sitting on pending... I have enabled the rest of the MP4 encoding setting. |
Beta Was this translation helpful? Give feedback.
-
Hi, the same issue here. The trick to switch media type like suggested by @navillusj doesn't work for me. Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
God bless you @mgogoulos |
Beta Was this translation helpful? Give feedback.
-
Yes, not being able to see encode status is not helpful for me. Been sitting for an hour. Works faster for smaller files, but I don't know what benchmark to work with here since I have no status of encode. Anything planned for that? |
Beta Was this translation helpful? Give feedback.
-
Probably you get "media encoding is pending" issue after server restart. |
Beta Was this translation helpful? Give feedback.
-
Using Docker Compose, the celery_worker container is responsible for transcoding, and more specifically celery_long process. I have noticed that if Docker Compose is not shut down well (eg if you hit ctrl+c and don't let it go dow smoothly) some times celery_long does not start, because it is finding the pid of the process on /var/run/mediacms, a solution to this would be to remove the pid files on /var/run/mediacms/ and restart docker-compose. This is a workaround of course, and celery need run on a better way, but could help in some cases explain why videos get into pending state |
Beta Was this translation helpful? Give feedback.
-
Thanks for all this workarounds. I'm experiencing the same issue. Running with docker and I have folder mediacms in /var/run/. So far, still having the problem |
Beta Was this translation helpful? Give feedback.
-
Hii @mgogoulos |
Beta Was this translation helpful? Give feedback.
-
Hi guys, Several videos did not encoding after uploading to the server because of some memory issues that are fixed now. But how can I retrigger the encoding process for these existing uploaded videos. They still show up as pending. Setting the Media Type to "-----" and back to "Video" does not trigger any encoding progress here. I also tried playing around with the "Encoding" entries and the Status of the "Media" entries. Do I really have to download the files and reupload them again? This can't be the solution, right? Edit: I found the solution in the code myself... Steps are: connect to one of the containers load the code
and run
logout of the container and |
Beta Was this translation helpful? Give feedback.
-
when upload video,it display Media encoding is pending
https://v.qf.al/view?m=IzEkqKQ2q
Beta Was this translation helpful? Give feedback.
All reactions