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.

Conjob not processing videos

8 years 3 weeks ago
  • Allen's Avatar
    Topic Author
  • Allen
  • Offline
  • Fresh Boarder
  • Posts: 54
  • Thank you received: 4
Licenses:
JomSocial Active Socialize Expired

I have the cronjob set to run every 15 mins and it does reliably. When I run it manually it's not processing. I had my host turn on ffmpg and the binary path is /usr/bin/ffmpeg

However I uploaded a very large video and nothing is processing. I've edited the bucket policy for Amazon S3 and have my api for zencoder... tried re-uploading the file and its still not processing.

<?xml version="1.0" encoding="UTF-8"?>
-<messages>
<message>Could not convert video</message>
<message>No temporary videos to delete.</message>
<message>0 files transferred.</message>
<message>No Videos to transfer.</message>
<message>No avatars or cover of users needed to be transferred</message>
<message>No avatars or cover of groups needed to be transferred</message>
<message>No avatars or cover of events needed to be transferred</message>
<message>Removed Pending Invitation for Past Event</message>
<message>No files to transfer.</message>
</messages>

If I remove the FFMPEG and turn on the zencoder then zencoder should be picking up and encoding my videos.

Can you please check up on this.

Thanks

Allen

8 years 3 weeks ago
Licenses:

Hi, Allen.

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 3 weeks ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

HI Allen,

Please you try to execute this command on your terminal server, and let me know what do you get then

/usr/bin/ffmpeg -y -i /home/swlouky/public_html/images/originalvideos/876/NKfphaqO0sP.3gp -vcodec libx264 -strict -2 -crf 23 -vf "scale=800:-2"  /home/swlouky/public_html/images/videos/876/NThBblDqBzD.mp4

thank you!

8 years 3 weeks ago
  • Allen's Avatar
    Topic Author
  • Allen
  • Offline
  • Fresh Boarder
  • Posts: 54
  • Thank you received: 4
Licenses:
JomSocial Active Socialize Expired

My host does not allow terminal access... it worked once and I think they turned off FFMPEG because of the system resources it takes. I need to be able to use Zencoder.

8 years 3 weeks ago
Licenses:

Hi,

please make sure your zencoder properly setup for S3:
app.zencoder.com/docs/guides/getting-started/working-with-s3

Regards

8 years 3 weeks ago
Licenses:

Hi,

there is 2 issues at your site:
1)
the ffmpeg is too old, version 0.10.15. please upgrade it to latest one from ffmpeg.org/
you can asking your server support to upgrade it.

2)
seem your zencoder not properly setup. the task that sent to your zencoder API always return Null result.
please make sure you did this:
app.zencoder.com/docs/guides/getting-started/working-with-s3

and replacing MY-BUCKET with derbycityusa

Regards

8 years 3 weeks ago
  • Allen's Avatar
    Topic Author
  • Allen
  • Offline
  • Fresh Boarder
  • Posts: 54
  • Thank you received: 4
Licenses:
JomSocial Active Socialize Expired

Overtime I try this I get an invalid JSON Code

Exact error message: Policy could not be parsed as a valid JSON string

{
  "Version": "2008-10-17",
  "Id": "ZencoderBucketPolicy",
  "Statement": [
    {
      "Sid": "Stmt1295042087538",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::395540211253:root"
      },
      "Action": [
        "s3:GetObjectAcl",
        "s3:GetObject",
        "s3:PutObjectAcl",
        "s3:PutObject",
        "s3:ListMultipartUploadParts"
      ],
      "Resource": "arn:aws:s3:::derbycityusa/*”
    },
    {
      "Sid": "Stmt1295042087538",
      "Effect": "Allow",
      "Principal": {
        "AWS": "arn:aws:iam::395540211253:root"
      },
      "Action": [
        "s3:ListBucketMultipartUploads",
        "s3:GetBucketLocation"
      ],
      "Resource": "arn:aws:s3:::derbycityusa”
    }
  ]
}


\—————

This is from a previous site (diabetic friends) it worked back in the day I switched bucket name and now it does not work under the setup. I see you have added /usr/bin/ffmpeg back to the config. It will take this policy, yet ZenCoder won’t encode. I don’t see any difference with the policy above except that one will not cut and paste into the bucket policy.
{
	"Version": "2008-10-17",
	"Id": "ZencoderBucketPolicy",
	"Statement": [
		{
			"Sid": "Stmt1295042087538",
			"Effect": "Allow",
			"Principal": {
				"AWS": "arn:aws:iam::395540211253:root"
			},
			"Action": [
				"s3:GetObjectAcl",
				"s3:GetObject",
				"s3:PutObjectAcl",
				"s3:ListMultipartUploadParts",
				"s3:PutObject"
			],
			"Resource": "arn:aws:s3:::derbycityusa/*"
		},
		{
			"Sid": "Stmt1295042087538",
			"Effect": "Allow",
			"Principal": {
				"AWS": "arn:aws:iam::395540211253:root"
			},
			"Action": [
				"s3:ListBucketMultipartUploads",
				"s3:GetBucketLocation"
			],
			"Resource": "arn:aws:s3:::derbycityusa"
		}
	]
}

I really don’t think it’s my bucket policy.

Allen

8 years 3 weeks ago
Licenses:

Hi,

please check it. if using zencoder, the video size cannot using maintain aspect ratio.
so I changing it to 800 x 600

please check it at zencoder jobs list. not sure the video has been converted or not

Regards

8 years 3 weeks ago
  • Allen's Avatar
    Topic Author
  • Allen
  • Offline
  • Fresh Boarder
  • Posts: 54
  • Thank you received: 4
Licenses:
JomSocial Active Socialize Expired

It appears to have done everything but generate a thumbnail.

Allen

8 years 3 weeks ago
Licenses:

Hi,

strange. there is an issue with zencoder. the video not sent to S3
please give me time. I hope I can do something about this.

Regards

8 years 2 weeks ago
Licenses:

Hi,

here the fix:
edit /components/com_community/libraries/videos/php at line 85, find this code

$s3outputBaseUrl = 'http://' . $s3BucketPath . '.s3.amazonaws.com';
changing it to
$s3outputBaseUrl = 's3+REGION://' . $s3BucketPath;

please changing that REGION with your S3 bucket region. to find it, please open the bucket at your S3. the URL will like this:
https://console.aws.amazon.com/s3/home?region=us-west-2#&bucket=......
the correct BaseUrl will be
$s3outputBaseUrl = 's3+us-west-2://' . $s3BucketPath;

after that, try to upload new video again.

Regards

8 years 2 weeks ago
Licenses:

and line 142, change the code from

$video->thumb = $outputThumbUrl . $randomFilename . '_0000.png';
to
$video->thumb = str_replace($s3outputBaseUrl, $s3HttpPath, $outputThumbUrl) . $randomFilename . '_0000.png';

and put this code before that line
$s3HttpPath = "http://".$s3BucketPath.".s3.amazonaws.com";

8 years 2 weeks ago
  • Allen's Avatar
    Topic Author
  • Allen
  • Offline
  • Fresh Boarder
  • Posts: 54
  • Thank you received: 4
Licenses:
JomSocial Active Socialize Expired

I have made these changes and they are still not working ... S3 / ZENCODER is still not converting.

Furthermore I have checked with my host and they have installed the latest FFMPEG at /usr/local/bin/ffmpeg

They migrated me to a brand new server and everything iw 100% up to date.

ffmpeg version N-79696-ga67816b-syslint Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint
libavutil 55. 23.100 / 55. 23.100
libavcodec 57. 38.100 / 57. 38.100
libavformat 57. 35.100 / 57. 35.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 44.100 / 6. 44.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101

8 years 2 weeks ago
Licenses:

Hi,

not sure why that FFMPEG version like that.
FFMPEG version must 2.x. please contact your hosting support for more. if you want still using zencoder.
may I know what region of your S3 bucket? I will put the patch at your site directly.

Regards

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