Video posted not working

Hi,

I have a problem with video.

It only works if video is published on the site using Video app. If someone (Standard user, Moderator, Administrator) tries to publish video with "Post to feed" it does not play.

I can see in terminal that ffmpeg is converting video and when is done, the video on the site is not playing.

What could be the cause?

Kind regards
Mayki

  • 622
  • More
Replies (19)
    • Hello Mayki !

      Do you heav any info from the error log about those videos? Did you try to upload the one video via Videos app and via Post to feed form?

      • This is an issue on my site to. The video continuously says converting (Never ending), or I'll go to upload a video and it doesn't do it at all saying " A video is essential, please upload a video ", when I already did it.

        • do you have some kind of vnc client installed????   do you have shell access to your hosting account???  if you have shell access, im happy to log into vnc and you can watch me check the settings on your screen, to get a better idea of whats going on.

          • I have baloo and jeremy checking in on it. But we are waiting to hear from server host on a couple issues with cron jobs not being executed. I'll let you know in a bit. Did yours ever get resolved??

            • okay cool.  :)   keep me updated if its not working yet, but its safe to say i dont know more than baloo does.  :-p   Yeah, I fixed mine, i detailed the steps I had to take to get it working in a bulleted list a few days ago for you, did you miss it?  

              • I may have. Been so busy working other areas of site, lol.

                • James Zandreiatti -  yes, its fixed.  I just saw this.   There were a few main pinch points.  You said you're using a shared ? or are you using a VPS? or is your server dedicated?

                  1. I had to tweak memory limits in php, at the main level of the system wide php, because the phprc was not being respected for the user level.  (this is a config issue with different versions of php running domains as virtual hosts..)  not an una problem.
                  2. also, i had to add this ini_set flag inside /inc/utils.inc.php that baloo had pointed out, which limits the total amount of concurrent memory una is allowed to lock for transcoding purposes.  I've set it to roughly 3x the size of my max upload size, but I feel I can reign this in to 2.2x, just have not tested out that configuration yet to validate it.
                  3. also, it was necessary to set a max_execution_time =  flag in the php config.  i set mine to 500 seconds.
                  4. also, i had to clear the mysql table for the transcoder, and clear the una cache.
                  5. also, it works much better running APC for cache, versus file cache.  if you know that you have a version of php in the 7 series as your version of php, you should have APC configured already by default, in the webserver, without having to turn anything on...

                  i have dedicated server access, if you have the ability to ssh , these are things you can check into, but if you are on a vps you may or may not have the permissions to change them, if you are on shared, then you will have to email your webhost about making these changes for you, because they could have disasterous effects on the rest of the users websites that run on the same box as yours.

                  • I'm on a shared server right now. So having host do things on there side can be a pain. But they have been pretty co-operative.

                    • got you.  yeah its much easier to just be able to go in there yourself but if its shared you gotta respect the heirarchy :)

                      • Y aI may be moving site to my own server. I've got to pick up tomorrow. Not sure if I wanna manage my own yet though.... So much easier when a host has to be responsible for updates, upgrades and technical error, and I can dedicate time to site itself. 

                        I do like the idea of not having the "host bill" as well as full administration

                        • shoot me your email, i'll send you a referral invite to where i've got mine hosted..  i've got about 100 websites under the dedicated server i use there.  you pay monthly, and they rack it, and take care of all the stuff you *dont* want to do, but you get full access to it, and tech support, and they are very competent if you cannot figure out how to install something, and have a very excellent knowledge base of articles written about all the things people would want to commonly do, with step by step and have photos and the commands to run.....    // if you end up liking what they have to offer and sign up, i think i get one month free, but you get to be hooked up with a badass company i've been using for the last 12 years without a single issue, and zero downtime...  

                          • Hi guys,

                            I am hosting UNA on my own server. The ffmpeg transcoder is working fine since it finish the transcoding of video just fine when uploading a video with Video app. Uploading is fine, settings are OK the saying that "Update will be published as soon as video is converted" disappears when ffmpeg finishes transcoding the problem is that video is not playing but only when published as Add new Update or Post to Feed. Everything is OK when publishing video with Video app.

                            LeonidS there is nothing special in Apache error.log that would be helpful regarding this problem. 

                            PS: I have tried and installed another UNA to different folder on my server - there with this second installation - no problem with posting videos as described here. 

                            Where in MySQL, which table stores info about videos being posted as Update or Feed? And where is the default location in una/storage ?

                            • Hello Mayki !

                              Usually, you may see the statuses of all recent uploaded in `sys_transcoder_queue_files`. You may see there what file did get an error during the convertation.

                              • Hi Leonid S 

                                I have checked `sys_transcoder_queue_files`  and ` sys_transcoder_queue` - both are empty.

                                • I have investigate some more with browser's (Chrome) Developer Tools and I found that a part where video source is declared is missing:

                                  - production una site:

                                   <div class="plyr__video-wrapper">
                                  <video id="BxPlyr331941208" controlslist="nodownload" preload="auto" autobuffer="" class="bx-player-plyr bx-player-plyr-standard" poster="https://url-to-una/s/bx_timeline_videos_processed/mt5hckyrgp9mjah87teep2vssrwcrkvt.jpg">
                                  HERE IS A MISSING PART, SEE BELOW (test-una site)
                                  </video>
                                  </div>

                                  - test-una site:

                                  <div class="plyr__video-wrapper">
                                  <video id="BxPlyr1338879303" controlslist="nodownload" preload="auto" autobuffer="" class="bx-player-plyr bx-player-plyr-standard" poster="https://url-to-una-TRST/s/bx_timeline_videos_processed/s2s2irwb8hrw5zvjrqrcy72rcmvvbkc2.jpg">    
                                  <source type="video/mp4" src="https://url-to-una-TEST/s/bx_timeline_videos_processed/s7jdvkdg8efgzr4qyqxjdqfcebrhz8mt.mp4" size="480">
                                  </video>
                                  </div>

                                  So, somehow the "source" part is missing that is why video can not play. Why the source part is missing - well that is a mystery to me....

                                  • this is definitely weird.  i think an important question as well is, why does ffmpeg not get called in the way that it embeds the jpg in the mp4? because.. well, it does that, it's a feature of ffmpeg.  i'm  not going to put the command, but its part of the map function.   m4a, mp4 and mp3 files and others all support embedding jpgs.  

                                    • Mayki videos did not work on my site until i installed the developer module and changed videos from sd to hd, and well a bunch of other stufff too, but perhaps theres something broken in which version of the video its looking for going on here.. i am only guessing, but have you tried going in and either cp'ing out the video example here, or running your systemwide ffprobe binary against it to see its parameters?

                                      • Omar Amer I have set videos to hd long ago. ffmpeg creates jpg files for videos - that is OK. I can see poster of the video in video player but when I press play button video doesn't play. That happens only when video is posted as Post to Feed or Update. If video is added with Video app then video plays normally so I guess everything is ok with ffmpeg?

                                        • Yes, Mayki !

                                          The ffmpeg seems works fine, so if you still has this trouble - please provide me via Messenger the access details to your Control Panel.

                                          Login or Join to comment.