Hi there,
I must have read hundreds of threads relating to this but I am still having problems getting this to work.
Bacically no videos get converted. If i run the cron job directly from my browser:
I get a white blank page in IE.
If I do it on Chrome I get: "This page contains the following errors: error on line 1 at column 6: XML declaration allowed only at the start of the document"
In Firefox I get: Another XML error (in Danish)
To avoid a long thread:
YES I do have the correct path to ffmpeg according to my host
I am on a CloudLinux solution and not CentOS (according to my host)
Please try to help me out here... Thanks.
Hi Martin,
Can you try excute this FFMPEG code on your command server please :
/usr/bin/ffmpeg -y -i /home/dan11763/public_html/images/originalvideos/originalvideos/62/7uqbYTJpgIi.3gp -vcodec libx264 -acodec aac -strict -2 -crf 23 -s 640x360 /home/dan11763/public_html/images/originalvideos/videos/62/9fddCX7N89M.mp4
Hi Dimas,
Thanks for reporting back.
I forwarded your instructions to my host but got this reply back: "This has to be done through a php script. We cannot help you with that."
Any help from your side then?
Thanks.
Hi,
Thanks for reporting back.
I forwarded your instructions to my host but got this reply back: "This has to be done through a php script. We cannot help you with that."
I tried to put the command in a cron job and got back this report:
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/dan11763/public_html/images/originalvideos/originalvideos/62/7uqbYTJpgIi.3gp':
Metadata:
major_brand : 3gp6
minor_version : 256
compatible_brands: isom3gp6
Duration: 00:01:58.37, start: 0.000000, bitrate: 203 kb/s
Stream #0.0(und): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 169 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream #0.1(und): Audio: aac, 22050 Hz, mono, s16, 31 kb/s
[libx264 @ 0x8d6050]broken ffmpeg default settings detected
[libx264 @ 0x8d6050]use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x8d6050]preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0x8d6050]speed presets are listed in x264 --help
[libx264 @ 0x8d6050]profile is optional; x264 defaults to high Output #0, mp4, to '/home/dan11763/public_html/images/originalvideos/videos/62/9fddCX7N89M.mp4':
Stream #0.0(und): Video: libx264, yuv420p, 640x360 [PAR 3:4 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1(und): Audio: libfaac, 22050 Hz, mono, s16, 64 kb/s Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
Hi,
Oh I see... Are you using sharedhosting or VPS? if you are using VPS I suggest you try install FFMPEG manually
www.ffmpeg.org/download.html
I have this version information from my backend php information:
ffmpeg-php version 0.7.0
ffmpeg-php built on Dec 12 2013 14:52:00
ffmpeg-php gd support enabled
ffmpeg libavcodec version Lavc53.61.100
ffmpeg libavcodec license GPL version 2 or later
ffmpeg libavformat version Lavf53.32.100
ffmpeg libavformat license GPL version 2 or later
ffmpeg swscaler version SwS2.1.100
ffmpeg swscaler license GPL version 2 or later
But I don't get the difference in ffmpeg version nos. from php information and the error log?
Hi Martin,
Ah I see, hard for us inspect the issue from the shared hosting, because the common this issue coming from the server itself, the solution is you need install FFMPEG manually from FFMPEG site.
If you follow FFMPEg from the OS server, sometimes some libraries are broken especially libraries for converting to mp4.
Thank you
I am sorry but I do not understand anything you are saying...
I am not able to install anything as I am on a shared environment (my host should do this )- I guess my situation is quite normal?
If you mean that most customers using shared hosting cannot use this feature, well...
At least try to help me out towards my host - what can I tell them?
And why do these threads regarding cron/video always get so long?
This issue bit tricky, because only happens on FFMPEG installation from Centos product, use ubuntu, mac server and wins everything is working fine.. so the root issue caused by the source FFMPEG server from centos it self... so thats why I recommened you to install FFMPEG manually from the original FFMPEG source..
Anyway, please try this :
/usr/bin/ffmpeg -y -i /home/dan11763/public_html/images/originalvideos/originalvideos/62/7uqbYTJpgIi.3gp -vcodec libx264 -acodec aac -ab 64k -strict -2 -crf 23 -s 640x360 /home/dan11763/public_html/images/originalvideos/videos/62/9fddCX7N89M.mp4
Also please make sure your server alraedy upgrade the FFMPEG version to 2.1.2
Error log below...
However, I need a few things explained;
In my original post I am explaining an issue with the cron job (xml error). Is this caused by what we are trying to do with FFMPEG or a completely different issue?
I also stated in this thread that I am on a CloudLinux solution and not CentOS (according to my host). Are these two things actually the same? And is this the reason why you keep talking about centos?
Error log:
FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/dan11763/public_html/images/originalvideos/originalvideos/62/7uqbYTJpgIi.3gp':
Metadata:
major_brand : 3gp6
minor_version : 256
compatible_brands: isom3gp6
Duration: 00:01:58.37, start: 0.000000, bitrate: 203 kb/s
Stream #0.0(und): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 169 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream #0.1(und): Audio: aac, 22050 Hz, mono, s16, 31 kb/s
[libx264 @ 0x14e5050]broken ffmpeg default settings detected
[libx264 @ 0x14e5050]use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x14e5050]preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0x14e5050]speed presets are listed in x264 --help
[libx264 @ 0x14e5050]profile is optional; x264 defaults to high Output #0, mp4, to '/home/dan11763/public_html/images/originalvideos/videos/62/9fddCX7N89M.mp4':
Stream #0.0(und): Video: libx264, yuv420p, 640x360 [PAR 3:4 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream #0.1(und): Audio: libfaac, 22050 Hz, mono, s16, 64 kb/s Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
Yes this issue come from the 2 issue
#1 the main issue is come from the FFMPEG.. I think your server also use the same FFMPEH source like centos.. for totally solving this you need to try update the FFMPEG to 2.1.2.
#2 sorry I forgot to mention this, cuz this is minor issue, in cron XML I see the empty space, thats why the XML parsing is error on your browser.. for this caused by the 3rd party plugin, but this error wont effected to the cron job functions.
So, if #1 is solved then #2 won't be an issue?Dimas Tekad Santosa wrote: Yes this issue come from the 2 issue
#1 the main issue is come from the FFMPEG.. I think your server also use the same FFMPEH source like centos.. for totally solving this you need to try update the FFMPEG to 2.1.2. - I HAVE ASKED MY HOST FOR THAT
#2 sorry I forgot to mention this, cuz this is minor issue, in cron XML I see the empty space, thats why the XML parsing is error on your browser.. for this caused by the 3rd party plugin, but this error wont effected to the cron job functions.