Coverter not working

clonecharizard3236

New Member
YetiShare User
Nov 17, 2013
16
0
0
Can anyone help with this issue I have after uploading a video and after the converter has run I get an error saying there is no file in the _cache folder. :?:

root@********* [~]# php /home/syberhiv/public_html/plugins/mediaconverter/converter/convert.php
mv: cannot stat `/home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/4f00d747dbd6a90a05c84ca772505cb1_new.mp4': No such file or directory
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Can you first login to the script admin, go to manage plugins, select 'settings' on the media converter. Then ensure 'output cron messages' is set to yes.

Then upload another media file, such as an avi and manually trigger the convert.php file via SSH again.

This should output a load of onscreen feedback as well as the ffmpeg response.
 

clonecharizard3236

New Member
YetiShare User
Nov 17, 2013
16
0
0
Don't look like its converting the file?

root@*********** [~]# php /home/syberhiv/public_html/plugins/mediaconverter/converter/convert.php
Found 1 pending conversion, id #4.
Getting file from storage...
Converting file...
FFMPEG Command:
ffmpeg -i /home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/cadc56bc123d6d34f2c342f7cd49b6ed.avi -vcodec libx264 -b:v 1400k -flags +aic+mv4 -vf "scale=438:320" -vf "movie=/home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/_watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" /home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/cadc56bc123d6d34f2c342f7cd49b6ed_new.mp4

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

Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 23.98 (24000/1001)
Input #0, avi, from '/home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/cadc56bc123d6d34f2c342f7cd49b6ed.avi':
Duration: 00:26:23.75, start: 0.000000, bitrate: 915 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 480x352 [PAR 1:1 DAR 15:11], 23.98 fps, 23.98 tbr, 23.98 tbn, 30k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
Unrecognized option 'b:v'
FFMPEG Command:
ffmpeg -i /home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/cadc56bc123d6d34f2c342f7cd49b6ed.avi -vcodec libx264 -b:v 1400k -flags +aic+mv4 -vf "scale=438:320" -vf "movie=/home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/_watermark.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]" /home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/cadc56bc123d6d34f2c342f7cd49b6ed_new.mp4

Result:

mv: cannot stat `/home/syberhiv/public_html/plugins/mediaconverter/converter/_cache/cadc56bc123d6d34f2c342f7cd49b6ed_new.mp4': No such file or directory
Failed conversion, id #4.
root@^^^^^^^ [~]#
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
Unrecognized option 'b:v'
Your ffmpeg version is too old. You'll need version 0.7 or greater, 0.8 if possible.

For info, our dev version information is:

ffmpeg version 0.8.6
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
If you have a look at the top of convert.php in the code, it will show you how to run the ffmpeg installer. It takes a while to run but it normally gets the correct version installed along with a load of codecs.
 

clonecharizard3236

New Member
YetiShare User
Nov 17, 2013
16
0
0
Ok it worked on one video, I upload 6 one flv and 5 mp4, after a day and half its still running the first convertion now thats not right and it will not stop. I'm now doing a reboot of the server and deleting the videos. :|
 

clonecharizard3236

New Member
YetiShare User
Nov 17, 2013
16
0
0
No not happy it killed my site and my server, the website now looks like it has no tempates just text and the converter is still running converting what I don't, no I removed and deleted all files and temp files to. So it should all be clean also I
have this Fatal error: Class 'Auth' not found in /home/syberhiv/public_html/admin/_header.inc.php on line 10

Look like I'll have to do a full reinstall as this upgrade don't work or there is some other issue I haven't found. As this is now moving into another issue you may what to move this post elsewhere under a heading of script error
 

adam

Administrator
Staff member
Dec 5, 2009
2,046
108
63
"Fatal error: Class 'Auth' not found"
Are all the files still in includes? It sounds like some of the files have been removed.

The pending conversion is only the database showing it's pending, so it's likely it failed somehow and didn't update the database to failed. If you look in your database at 'plugin_mediaconverter_queue' table, you should see the queue. Have a look in the notes column for any clues as to why the other one didn't finish. Deleting (or changing the status to failed) will allow the others to run.

I've clear out this table, re-upload the file that failed and manually trigger it via the command line to check for any issues. Ensure 'output cron messages' via the plugin settings it set to yes.
 

clonecharizard3236

New Member
YetiShare User
Nov 17, 2013
16
0
0
Right reinstalled files, looking over everything I did after setting up the website, the domain owner on my server I'd reset it to root I've put it back as self owned. that fixed my server issue with connection with putty. So once again I can input the command for the converter, That works as it should and is running now :)
Next I need to test if the converter can work on it own on the cron job and there are no database connection issues and I'm all set, I will update you on that last step.

Oh and if anyone is asking I didn't delete or remove anything from the includes fold
 

clonecharizard3236

New Member
YetiShare User
Nov 17, 2013
16
0
0
Right reinstalled files, looking over everything I did after setting up the website, the domain owner on my server I'd reset it to root I've put it back as self owned. that fixed my server issue with connection with putty. So once again I can input the command for the converter, That works as it should and is running now :)
Next I need to test if the converter can work on it own on the cron job and there are no database connection issues and I'm all set, I will update you on that last step.

Oh and if anyone is asking I didn't delete or remove anything from the includes fold