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>
Hi, Allen.
I assign developer to this thread.
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
Hi,
please make sure your zencoder properly setup for S3:
app.zencoder.com/docs/guides/getting-started/working-with-s3
Regards
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
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”
}
]
}
{
"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"
}
]
}
Hi,
here the fix:
edit /components/com_community/libraries/videos/php at line 85, find this code
$s3outputBaseUrl = 'http://' . $s3BucketPath . '.s3.amazonaws.com';
$s3outputBaseUrl = 's3+REGION://' . $s3BucketPath;
https://console.aws.amazon.com/s3/home?region=us-west-2#&bucket=......
$s3outputBaseUrl = 's3+us-west-2://' . $s3BucketPath;
and line 142, change the code from
$video->thumb = $outputThumbUrl . $randomFilename . '_0000.png';
$video->thumb = str_replace($s3outputBaseUrl, $s3HttpPath, $outputThumbUrl) . $randomFilename . '_0000.png';
$s3HttpPath = "http://".$s3BucketPath.".s3.amazonaws.com";
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
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