Hello. I am new to the forum. If this is not the correct place to post my question, please let me know.
We want to change the ffmpeg video encoding setting for our community's videos. Is that accomplished via a SE config file? We found the view.tpl for the player but have not found anything for the encoder. Also, would there be a similar setting for creating the video thumbnail?
Hi! This is the perfect place to post if you are not talking about a third party video plugin.
Usually, video encoding settings are set by the server configuration and automatically pulled in to the SocialEngine back end once the path to ffmpeg is entered. You can view them in the video settings. I'll see if someone else can help with this question in case there is something in the SE script that could be configured. Did you already ask the host?
Thank you for answering @Neha
As that is a source file, we (SocialEngine) do not recommend modifications to source files and do not provide support for modified sites. You are encouraged to backup any files you choose to modify. Also, since modifications can cause issues to site stability or performance, you would do so at your own risk. If you aren't familiar with any possible ramifications of modifications, it's best to see expert help or to make your own plugin for the modifications rather than editing source files. Modifications to source files can cause upgrade issues and will be overwritten on upgrades.
Above is a standard warning/notification any time someone wants to modify source files.
Neha Arora said:
Hi, there is a Encode.php file at the below mentioned path where all these settings related to video encoder, ffmpeg and thumbnail are present. You can make the changes to this file according to your requirement.
/application/modules/Video/Plugin/Task/Encode.php
@neha Arora - thank you very helpful.
@donna - indeed thank you for the heads up.
@neha - the encode.php is the bomb. Thanks. When I try to upload a file that is 700MB but a little larger than 1280x720 I get the errors on the upload page:
Eventhough both were entered. Is there a PHP config file I need to edit? There used to be a discussion in SE documentation. Did they remove it?
Thanks in advance.
(BTW - I uploaded the same file manually and used CLI commands to process. It works fine.)
Hi all. The issue was on the PHP.INI file. It allows us to upload a 2Gb file but does not encode the video. Also we are getting a PHP Fatal error:
[23-Jan-2020 20:58:36 UTC] PHP Fatal error: Call to a member function setFromArray() on null in /home/scoa/public_html/application/modules/Video/controllers/IndexController.php on line 207
@Neha, the code suggested by you has the below code, which is not advisable. Kindly check your code and edit if required.
print_r ($values)
Also, as mentioned by Donna, SocialEngine do not recommend modifications to source files. So if still these modifications are being done, first try on the staging site.
As the above, if done wrong and not understood can ruin your site, it is best to seek expert help.
@SocialEngine Moderators - is this something your support team can help with?
No we don't assist with customizations but there are quite a few third party experts who can assist. We give general guidance here but not in depth details as some changes could disrupt a site and have undesired results.