By Anders Lolk Vestergaard on Wednesday, 18 July 2018
Posted in Technical Issues
Replies 12
Likes 0
Views 694
Votes 0
Hi.

I've activated video uploads and entered the right path for ffmpeg. However, the encoding still doesn't work.

It only display "Encoding your video... 0%".

My web hosting provider tells me, that server is working fine.

Can you help?
Hey Anders,

It looks like the logs in ffmpeg is pointing to the following errors,

Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Upon further inspecting, it looks like your ffmpeg library is from version 2.6.x. while our minimum requirements for ffmpeg is 2.8.x. Is it possible that you get your hosting company to upgrade ffmpeg to at least 2.8.x?
·
Wednesday, 18 July 2018 23:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi again.

The hosting company has upgraded the codec to 4.0.1-static. Unfortunately, is still doesn't work.

/Anders
·
Friday, 20 July 2018 20:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Anders,

I am really sorry for the delay of this reply as it is a weekend for us here. Do you have the SSH access to the server so that I can try to check on this?
·
Saturday, 21 July 2018 13:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi again.

The web hosting provider has given access to SSH via cPanel, but at an another domain where I also need the video upload function. I've updated the site information in the original post with access information. I hope, that you have the information you need.
·
Tuesday, 24 July 2018 02:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Anders,

I've checked the video log on your site public_html/media/com_easysocial/videos/6/1679091c5a880faf6fb5e6087eb1b2dc.log which recorded your FFmpeg encoding that process when the user upload a new video on your site Easysocial, it actually still showing this ffmpeg version 2.6.8 when i look at this log file.


ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home3/anderslolk/public_html/media/com_easysocial/videos/6/02a2d43eba379f2248d246405b7fa434':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2015-04-02 10:12:46
Duration: 00:00:29.10, start: 0.000000, bitrate: 134 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1064x720 [SAR 1:1 DAR 133:90], 132 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
Metadata:
creation_time : 2015-04-02 10:12:46
handler_name : Mainconcept MP4 Video Media Handler
encoder : AVC Coding
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (/home3/anderslolk/public_html/media/com_easysocial/videos/6/7716f967.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[libx264 @ 0x17ecec0] using SAR=1/1
[libx264 @ 0x17ecec0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
Output #0, mp4, to '/home3/anderslolk/public_html/media/com_easysocial/videos/6/7716f967.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
Stream #0:0(eng): Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 25 fps (default)
Metadata:
creation_time : 2015-04-02 10:12:46
handler_name : Mainconcept MP4 Video Media Handler
encoder : Lavc56.26.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


Is it possible consult with your hosting company to help you upgrade your FFMpeg version to v2.8.x ? Because different FFmpeg version also have different syntax, it might caused the issue and currently Easysocial only support to this FFMpeg version v2.8.x.

And i also realised if i run this command on your SSH ffmpeg -version , it actually show the different version (4.0.1-static).
http://take.ms/NAJg9

I believe as long as your hosting company can able to help you install this ffmpeg 2.8.x version, then this issue will be solve.
·
Tuesday, 24 July 2018 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi again.

The web hosting company has tried to install the 2.8.x version, but that version is to old for the operating system (CloudLinux 7.5 (CentOS 7.X)), and can't be installed.

Isn't there a way to make it work with 4.x.x version of ffmpeg?

/Anders
·
Thursday, 02 August 2018 01:46
·
0 Likes
·
0 Votes
·
0 Comments
·
To be frank with you, currently we doesn't check for the FFmpeg latest version whether support for Easysocial or not, but based on what i see between these version 2.8.x and 4.x.x, is totally different syntax, it might need more time to work on it in order to compatible with latest FFmpeg version and at the same time need to check whether this update is it can compatible with FFmpeg 2.8.x version is because we need to ensure that other user who installed FFmpeg 2.8.x, it will still work.

Perhaps you can consult with your webhosting provider and see whether they got use this guideline before how to manually compile and install each of the FFmpeg encoder on the server?
https://trac.ffmpeg.org/wiki/CompilationGuide/Centos

This is that 2.8.x latest version zip file https://ffmpeg.org/releases/ffmpeg-2.8.15.tar.bz2
·
Thursday, 02 August 2018 10:55
·
0 Likes
·
0 Votes
·
0 Comments
·
I have the correct path to ffmpeg confirmed by my hosting
/usr/local/bin/ffmpeg
I also confirmed the the version of ffmpeg is 3.02
netestat@c06 [/]# ffmpeg -v

ffmpeg version 3.0.2

but still when I attempt to upload a video
Encoding your video... 0%

It took me along time to find a host that will support ffmpeg and then along time to find a host that will support ffmpeg 2.8x or higher and now I read that it has to be exactly 2.8. sheesh! Headache.

Have there been any updates so that it will work on different versions of ffmpeg?
·
Thursday, 20 September 2018 11:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Daniel,

Perhaps you can start a new thread on our forum and provide us with your site backend and FTP access so we can better have a check and see what is the exact error it returning during encoding process?

Have there been any updates so that it will work on different versions of ffmpeg?

Currently we haven't plan for work different version of ffmpeg yet.
·
Thursday, 20 September 2018 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·

I have the correct path to ffmpeg confirmed by my hosting
/usr/local/bin/ffmpeg
I also confirmed the the version of ffmpeg is 3.02
netestat@c06 [/]# ffmpeg -v

ffmpeg version 3.0.2

but still when I attempt to upload a video
Encoding your video... 0%

It took me along time to find a host that will support ffmpeg and then along time to find a host that will support ffmpeg 2.8x or higher and now I read that it has to be exactly 2.8. sheesh! Headache.

Have there been any updates so that it will work on different versions of ffmpeg?


hi.
i'm using ffmpeg for easysocial and jreviews without any problems.
use a cloud root server (digitalocean or vultr) and a cloud server management service like runcloud and it will work as expected.
·
Monday, 10 December 2018 20:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing noobster.
·
Tuesday, 11 December 2018 10:36
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post