[FFmpeg-user] ffmpeg not working on server
Waleed Afridi
waleedafridi89 at gmail.com
Wed Apr 29 10:35:30 CEST 2015
*Message By Hosting Suport Team.....*
We've uploaded the file '20051210-w50s.flv' to your images/videos folder,
and run the following command from shell directly:
/usr/bin/ffmpeg -i 20051210-w50s.flv -vcodec libx264 -ar 22050 -crf 28
20051210-w50s.mp4 -r 1 -y -vcodec mjpeg -f mjpeg 20051210-w50s.jpg
The following FFMPEG output results:
=============================
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
[flv @ 0x18b6670]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 1000.00
(1000/1) -> 25.00 (25/1)
Input #0, flv, from '20051210-w50s.flv':
Metadata:
duration : 17
width : 360
height : 288
videodatarate : 260
framerate : 25
videocodecid : 4
audiodatarate : 40
audiodelay : 0
audiocodecid : 2
canSeekToEnd : 1
creationdate : Fri Feb 03 11:52:46 2006
Duration: 00:00:16.92, start: 0.000000, bitrate: 306 kb/s
Stream #0.0: Video: vp6f, yuv420p, 360x288, 266 kb/s, 25 tbr, 1k tbn, 1k
tbc
Stream #0.1: Audio: mp3, 22050 Hz, 2 channels, s16, 40 kb/s
File '20051210-w50s.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0x18ba170]broken ffmpeg default settings detected
[libx264 @ 0x18ba170]use an encoding preset (e.g. -vpre medium)
[libx264 @ 0x18ba170]preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 0x18ba170]speed presets are listed in x264 --help
[libx264 @ 0x18ba170]profile is optional; x264 defaults to high
Output #0, mp4, to '20051210-w50s.mp4':
Stream #0.0: Video: libx264, yuv420p, 360x288, q=2-31, 200 kb/s, 90k tbn,
25 tbc
Stream #0.1: Audio: libfaac, 22050 Hz, 2 channels, s16, 64 kb/s
Output #1, mjpeg, to '20051210-w50s.jpg':
Stream #1.0: Video: mjpeg, yuvj420p, 360x288, q=2-31, 200 kb/s, 90k tbn, 1
tbc
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #0.0 -> #1.0
Error while opening encoder for output stream #0.0 - maybe incorrect
parameters such as bit_rate, rate, width or height
===================================
On Wed, Apr 29, 2015 at 12:36 PM, Jan Ehrhardt <phpdev at ehrhardt.nl> wrote:
> Carl Eugen Hoyos in gmane.comp.video.ffmpeg.user (Tue, 28 Apr 2015
> 19:00:10 +0000 (UTC)):
> >Waleed Afridi <waleedafridi89 <at> gmail.com> writes:
> >
> >> ffmpeg-php version 0.6.0-svn
> >
> >This is an unrelated project for which no support
> >was ever offered here.
>
> He does not use it in his PHP-script. He is calling ffmpeg there with
> exec(). @Waleed: try running this command on your server from a console
> (not using PHP):
>
> /usr/bin/ffmpeg -i input_file -vcodec libx264 -ar 22050 -crf 28 \
> output.mp4 -r 1 -y -vcodec mjpeg -f mjpeg output.jpg
>
> Jan
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
--
*Waleed Afridi*
*Web Engineer*
*Alliance IT Solutions*
*www.waleedafridi.com <http://www.waleedafridi.com>*
*Mob: 0333-9010689*
More information about the ffmpeg-user
mailing list