Whenever I upload a video in mpg or wmv format I get the following error:

* Conversion failed.
* Command: /usr/bin/ffmpeg -y -i "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/football.mpeg"
-vframes 1 -ss "00:00:02" -an -vcodec mjpeg -f rawvideo -s
""130x100"" "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/football_8.jpg"
* Conversion failed.
* Command: /usr/bin/ffmpeg -i "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/football.mpeg"
-f flv -acodec mp3 -ar 22050 -ab 64k -ac 1 "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/football_8.flv"

I have no clue what I should do...The administrator has already changed the settings in the php.ini file

Any suggestions would be of great help

thanks

Comments

travist’s picture

Status: Active » Needs review

The best thing you can do here is use Shell and actually copy and paste that command in shell and it will tell you why it is failing. Let me know if this helps.

Travis.

snehalm’s picture

thanks a lot for the reply travist.....
its great to get advice from the creator of this awesome module
I yet am not able to figure out the issue..after running the command in shell I get this output:

/usr/bin/ffmpeg -i "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/football.mpeg"
FFmpeg version SVN-r16916, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --enable-static --enable-shared --cc=i686-pc-linux-gnu-gcc --disable-debug --disable-network --disable-optimizations --enable-libmp3lame --enable-libvorbis --disable-demuxer=v4l --disable-demuxer=v4l2 --disable-demuxer=oss --disable-muxer=oss --enable-x11grab --disable-ssse3 --disable-altivec --disable-mmx2 --disable-amd3dnow --cpu=i686 --disable-vhook --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-swscale --disable-stripping
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 3. 0 / 0. 3. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 23 2009 10:09:25, gcc: 4.1.2 (Gentoo 4.1.2 p1.0.2)
Input #0, mpegvideo, from '/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/football.mpeg':
Duration: 00:00:06.96, bitrate: 1097 kb/s
Stream #0.0: Video: mpeg1video, yuv420p, 352x288 [PAR 178:163 DAR 1958:1467], 1098 kb/s, 25.00 tb(r)
At least one output file must be specified
viper$ -f flv -acodec libmp3lame -ar 22050 -ab 64k -ac 1 "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/football_8.flv"

Now it already knows where to put the ouptput file from the path name...but yet the conversion is not working...
What else should I try?

thanks,

Snehal

snehalm’s picture

Hi Travist,

It worked when I put the command on the command line! The flash file was successfully converted.
But still it doesnt work when I convert it by uploading a file. I am guessing it is something to do witht the cron task. Would you haver any ideas??

thanks,

Snehal

attheshow’s picture

Category: bug » support
Status: Needs review » Active
snehalm’s picture

Hi,

This is really strange.
I checked the logging data field in the flashvideo settings.

I inspected the ffmpeg_data table, and it had the following output:

Command: /usr/bin/ffmpeg -y -i "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/WhaleEat_0.wmv" -vframes 1 -ss "00:00:02" -an -vcodec mjpeg -f rawvideo -s ""130x100"" "/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/WhaleEat_0_32.jpg"
Data: FFmpeg version SVN-r16916, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-debug --disable-ffplay --disable-network --disable-optimizations --disable-encoders --disable-demuxer=v4l --disable-demuxer=v4l2 --disable-demuxer=alsa --disable-demuxer=oss --disable-muxer=alsa --disable-muxer=oss --disable-mmx --disable-ssse3 --disable-altivec --disable-mmx2 --disable-amd3dnow --cpu=opteron --disable-vhook --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-swscale --disable-stripping
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.11. 0 / 52.11. 0
libavformat 52.25. 0 / 52.25. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 3. 0 / 0. 3. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 30 2009 13:33:15, gcc: 4.1.1 (Gentoo 4.1.1)

Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, asf, from '/.automount/avenger.cis.ksu.edu/root/exports/home/grads/snehalm/public_html/sites/default/files/WhaleEat_0.wmv':
Duration: 00:00:22.75, start: 5.000000, bitrate: 348 kb/s
Stream #0.0: Audio: wmav2, 32000 Hz, stereo, s16, 32 kb/s
Stream #0.1: Video: wmv3, yuv420p, 320x240, 280 kb/s, 30.00 tb(r)
Unknown encoder 'mjpeg'

Note: This unknown encoder mjpeg

but when I run the above two statements using ssh the jpg thumbnail is successfully created!!
I cannot understand how it behaves differently when the same command is being used?

I would appreciate any comments please!

thanks,

Snehal

ronline’s picture

Component: Miscellaneous » Code

subscribing