Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Video upload/process error

1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,

I've installed ffmpeg and configured it. Video upload works fine for small files.

I've changed values as described here: documentation.jomsocial.com/wiki/Video_L..._Upload_Requirements

When I upoad a larger file (I think larger file is problem, but already 6Mb is too much) it does not end up on the website. In the backend I can see it's processed and in the folder ..\images\originalvideos\738 I can see it's uploaded. In ..\images\videos\738 I can see it's also processed. It also appeares on backend.

To investigate the problem, I've stopped my scheduled task (use Windows instead of Cron) and enered the cron task myself by entering it in a browser: myshadowmc.nl/index.php?option=com_community&task=cron
I can see in my monitor that ffmeg is called and executed. After some time, in my browser where I manually enteren the cron-url, I get an server error 500. It looks like the ffmpeg processing got stuck and the video is not registered on the website. The converted file on the backend seems ok and is playable.

Please have a look yourself, the site is not live yet this week, upload where you want. The file I tested with you can use, it's in thje root of my FTP with name fzMYsLra1qB.mp4

Hope you can get to the problem,

Regards, Rini


Attachments:
1 year 2 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

I've just tried to add a video of about 12Mb, and indeed the bar did not moved to the end, but I got the popup message that video was uploaded and is being processed now. Was the message visible to You, or the bur stucked or something?

I was hoping to reproduce the issue to see, but it worked for me. So I think it may be related with insufficient values for script time execution. I see they are as required, but please try to double them just to be sure it's not the problem. What bothers me is that You got an error 500, so the problem may actually be on a server side. But please try rise those values first.

1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,

Please read my message again, that was not what I wrote!

- The site does not give an error 500, the URL of the cron does: myshadowmc.nl/index.php?option=com_community&task=cron
So from that you can see that something is wrong in the processing of the video.
With me the bar also loads and I also get a popup, that part is fine.
The converted files also appeares on ..\images\videos\738 in the filestructure and is visible in the backend (only).


- to reproduce this situation, I provided you with a video: it's in thje root of my FTP with name fzMYsLra1qB.mp4



- on some video upoads I get a popup with: "(-200) HTTP Error."
What does this message mean?
Video was not uploaded.


Please read my mail carefully, all info to reproduce is there.

==========================

UPDATE: I just did the folowing:
- Stopped Scheduled task so the CRON URL did not run any more (so I can controll the process manually)
- I've uploaded the video you can also test with (see above in my FTP root).
- I've manually started the cron by entering myshadowmc.nl/index.php?option=com_community&task=cron on the address bar on a browser.
- The cron-url runs some time and then I get: 500 - Internal server error.


- When I look at the backend, I see video is loaded but not completely finished (no thumbnail)

- The video is not yet visible on frontend, also no message that video was published.
- However, when I click in the backend on the video name (1):

it opens a new tab with URL: www.myshadowmc.nl/index.php?option=com_c...serid=732&videoid=22
and there is my video I've uploaded. So the error seems not to appear during ffmpeg conversion, but after the conversion, when thumbnails is generated or video is published on frontend.
Please check latest URL yourself, I did not remove the video, it is really there without being published.

Attachments:
1 year 2 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

So sorry for misunderstanding. I've read Your post again and now I'm convinced that the problem is not in Jomsocial, but in ffmpeg library. Maybe not a problem with library itself, but while converting it or passing an information about positive conversion or thumbnail creation. Have You tried to upload the same video again? Maybe the video is simply broken or codded in a way that ffmpeg is unable to complete (or send a message of finished conversion or create a thumbnail). I would search a cause of the problem in server resources or a state of the video itself, for that You would need to compare server settings with ffmpeg library requirements.

Jomsocila picks up only if a positive information of conversion is given, if process stucks in this point than en error 500 may occur.

(-200) HTTP Error means that there were a problem with upload. Can be caused by server resources, lack of space on server or password protected folders (but in both those cases You won't be able to upload any files at all). And again a files with wrongly placed EOF will be uploaded, but the upload process would not stop resulting in error 500, which can be a cause of wrong compression/thumbnail creation.

Finally, I've done tests on 2 of my servers and have never run into problem described. Also this is a single report of such behavior, which leads to a conclusion that the problem is on a server side or with a video. Hope You will agree with me after this explanation.

1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,

I agree with you for a part only.

Because, as I wrote, while getting to 500-error on cron-url, the video however IS indeed converted and available on backend. An image IS created (on backend), and converted video IS viewable (on backend player). So this part is done by ffmpeg and worked fine.

Only thing which is NOT done is publishing the video on FRONTEND, There it does not show up. That's not the part of ffmpeg.

Most strange thing is when you click on VIEW video in backend, a URL to frontpage opens and video plays. BUT, video is NOT listed amoung other frontend-video's. I already gave you the URL: www.myshadowmc.nl/index.php?option=com_c...serid=732&videoid=22 This is the converted video, playable on frontend but NOT listed in videolist.

So, for this, I'm quite sure FFMPEG did his job: converting and fetching thumbnail, but then something goes wrong and AFTERWARDS and error 500 is generated.

>>>> You can check youself: The problem can be reproduced. I've placed the MP4-video in root of my FTP (as described 2 times above) so you can test with. You can also see video is ok, it is ok playable before upload.

1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi, I notice you are testing. Please also test with MP4-file (fzMYsLra1qB.mp4) which is in root of my FTP, as described above. Then you can reproduce the error.

Also, Please look at backend video with ID=22, where is that video on frontend?
This is result of error 500, but ffmpeg did its job ok,

1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi, any news on this? Did you test with the MP4 I provided to reproduce?

1 year 2 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

Yes I did tested and used the file provided on my site. Had the exact same problem as You, but no problems with different videos, so I think this proves that the problem is with this particular video. It may be broken or codded in a way that the ffmpg can't process it. Hard to tell since I'm not an expert in ffmpg plugin, it's not our product, but I can definitely exclude Jomsocial to be a problem in this case.

Did You had this problem with a different video already ?

Attachments:
1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi. But if ffmpeg is the problem, then why is video available on backend, fully converted. And when you click ‘view’ in backend, the video normally displays on frontend. Then ffmpeg did his job and issue lays in jomsocial script not publishing video in frontend.

A lot of other video’s also don’t succeed when uploaded from iPhone. They get the -200 HTTP error I mentioned. Dont’t know yet if this is specific to (I)phone OR not.

Please notice jomsocial is hosted on Windows here, maybe that makes a difference.
I have some other specific issues which Pankaj will test on a testserver I made available for this. Maybe this problem also qualifies for further testing?

1 year 2 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

Sure, please mention it to Pankaj, but I've done an extensive testing to this already and beside the fact that ffmpg does the compression job correctly the information about completion is not send to jomsocial that's why it does not go any further. So basically yes, video is in the backend, but Jomsocial does not know that, since no information was received. But I think it's more connected with the upload problems (-200 HTTP error), than ffmpg itself. Unfortunately uploading is done by server in full, all that Jomsocial does is to check if file was uploaded or not so it can process. So it still can be connected, if the file was not uploaded in full but the process starts than conversion may not be complete and no information will be given. This means I will look for a cause of files not being uploaded properly. Try contacting Your hosting provider, maybe in logs they will have more information what was wrong during this -200 HTTP error appearing, and this will help to get to the bottom of the problem.

1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,
It's running on dedicated Windows 2016 server in Azure, so no provider to ask for logs. If you know what is needed everything is available to look into.
I created a duplicate (clone) of server for Pankaj to test. He has full access (also to console) to test-server to do anything he wants to.
Hope that helps.

Just one thing I was thinking about. I've installed 64bit version of ffmeg on server (since it's a 64 OS). Lately I had issues with 64bit PHP on server (generating errors), so I replaced PHP with 32bit and al problems were solved.

It may also be an idea to replace ffmpeg with 32 bit version?

1 year 2 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

You can try to change it of course. I will ask Pankaj to looks into it. I'm sure the problem is on a server side, but I'm not that skilled in server administration. Hope he will know more about it.

1 year 2 months ago
  • Rini's Avatar
    Topic Author
  • Rini
  • Offline
  • Junior Boarder
  • Posts: 104
  • Thank you received: 0
Licenses:
JomSocial Active

Hi, I also tried 32 bits of ffmep, exactly same. So changed it back to 64 bits.

For your information: in FTP root there is a video1.mp4, this is the file we spoke about in this thread. It's loads, got converted but not published.
I've also added video2.mp4 in FTP root. This video is +/- 32Mb so it should load, since max upload is set to 50Mb (with 1024 in php.ini).

When you try to load video2.mp4 in jomsocial, you get the -200 HTTP error, so now you also have a file you can test with error -200 HTTP.

Users get a lot of there 200-errors.

I've added info and credentials of testsite to admin/mod section of this thread also.

Can you as Pankaj of an other video-specialist to have a look at this to test? Thank you!

1 year 2 months ago
Licenses:
JomSocial Active GURU Active Publisher Active AdAgency Active iSEO Active Socialize Active

Hi

Rised Your question in our bug report, so more developers will be able to check it. Will keep You updated if they will not answer You directly,

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW