2.5 vshare conversion error
I am using the 2.5 vshare still and "suddenly" the conversion is not working. I have asked the providers to try commnand line and they claim it is running (ffmpeg and mencoder) but it just is not working anymore. It was working until they upgraded the PHP to 5.2.4. (NOTE: I have still a couple on 2.4 vshare and have that same problem so it is not your versions) I tried both the ffmpeg encoding and the mencoder using the defines in the template_c settings. Ffmpeg gets the file too small (16meg file) error and the mencoder just does nothing, not even a return with an error.
Here is the command that just failed
/usr/bin/mencoder '/home/nylive/public_html/xxxx/share/video/blahblah.mp4' -o /home/nylive/public_html/xxxx/share/flvideo/1199057031307049785.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es -vf harddup
Here are the ffmpeg and mencoder versions :
ffmpeg -version
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2006 Fabrice Bellard, et al.
configuration: --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-mp3lame --enable-libogg --enable-vorbis --enable-a52 --enable-a52bin --enable-pp --enable-shared --enable-pthreads --enable-gpl --disable-strip
libavutil version: 49.1.0
libavcodec version: 51.28.0
libavformat version: 51.7.0
built on Apr 4 2007 17:32:55, gcc: 3.4.6 20060404 (Red Hat 3.4.6-3)
ffmpeg SVN-rUNKNOWN
libavutil 3211520
libavcodec 3349504
libavformat 3344128
mencoder -version
MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz (Family: 6, Model: 15, Stepping: 2)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
-version is not an MEncoder option
Re: 2.5 vshare conversion error
The convert command is for old version of mencoder, if you are using latest version of mencoder/mplayer, you need to replace convert command in include/settings/video_conversion.php
http://docs.buyscripts.in/wiki/Mencoder_options
Re: 2.5 vshare conversion error
I replaced the mencoder line with that for the new mencoder and get errors still:
File: /home/nylive/public_html/musictv.com/share/video/obsidian_footprints_320x240.mp4
-------------------------------------------------------------
UPDATE video SET active='0' where VID=89
-------------------------------------------------------------
Video id: 89
Calling ffmpeg-php -> ffmpeg_movie()
Get video duration - START
Get video duration - END
DURATION: 319.04
Create Thumbnail - START
Create Thumbnail - END
CONVERT COMMAND: /usr/bin/mencoder '/home/nylive/public_html/xxxxx/share/video/obsidian_footprints_320x240.mp4' -o /home/nylive/public_html/xxxxx/share/flvideo/11991211951492906496.flv\ -of lavf -oac mp3lame -lameopts abr:br=56\ -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -ofps 24 -vf harddup
-------------------------------------------------------------
Array
(
[0] => MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
[1] => CPU: Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz (Family: 6, Model: 15, Stepping: 2)
[2] => CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
[3] => Compiled with runtime CPU detection.
[4] =>
[5] => Exiting... (error parsing command line)
)
-------------------------------------------------------------
Return value: Exiting... (error parsing command line)
File Size too small : Bytes, Upload a big video.
The host says it should all work and it is not. AS usual it WAS working just fine. This is not relative to 2.4 or 2.5 as they both broke at the same time. Is there anything could have happened when they upgraded PHP (not mencoder)?"
Re: 2.5 vshare conversion error
You need to verify which convert command works on the server. Send convert command to your web host and ask if it works on the server. If not, ask them what command works on the server. If you have the working mencoder command, update video_conversion.php, this is nothing to do with vshare versions, if mencoder is able to convert video, it should work fine.
Re: 2.5 vshare conversion error
They get the:
/usr/bin/mencoder '/home/nylive/public_html/xxxx/share/video/blahblah.mp4' -o /home/nylive/public_html/xxxx/share/flvideo/1199057031307049785.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es -vf harddup
old verison of the thing working on command line. But I get an unreachable page when manually re-starting the encoding process in the admin and doing a cron. I will probably start the updates tomorrow and see if they did anything that makes it work, but all the sites were working fine and then just stopped. I will test with different files today and get back to you.
Re: 2.5 vshare conversion error
I have tried it with some other file types.
In all cases either an IE "not able to display page" comes up and in case of the mp4 a page comes up that maybe later the video will be available. The admin shows it is started conversion but nothing has happened. Since I have it doing this realtime and the whole process is taking place I am at a loss. My users are leaving and I understand why - it sucks to upload a couple times to get nothing.
What to do when they claim the command line works but the progam is not working anymore? This is 4 sites all at once!
Re: 2.5 vshare conversion error
The mp4 file gets as far as calling up the actual encoding script, but the wmv starts to get the thumbnail and quits it seems. Here is the debug.txt
2008-01-01 5:29:01 -------------------------------------------------------------
2008-01-01 5:29:01 Video id: 90
2008-01-01 5:29:01 Calling ffmpeg-php -> ffmpeg_movie()
2008-01-01 5:29:01 Get video duration - START
2008-01-01 5:29:01 Get video duration - END
2008-01-01 5:29:01 DURATION: 428.995656
2008-01-01 5:29:01 Create Thumbnail - START
2008-01-01 5:29:04 Create Thumbnail - END
2008-01-01 5:29:04 CONVERT COMMAND:
/usr/bin/mencoder '/home/nylive/public_html/xxxx/share/video/at_laid_the_golden_egg_256kb.mp4' -o /home/nylive/public_html/xxx/share/flvideo/1199186944408399296.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:l ast_pred=3 -srate 22050 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es -vf harddup
2008-01-01 5:49:05 Upload Finished
2008-01-01 5:49:05 Video (52) Conversion starting...
2008-01-01 5:49:05 File: /home/nylive/public_html/xxxx.com/share/video/08LittleKing.wmv
2008-01-01 5:49:05 -------------------------------------------------------------
2008-01-01 5:49:05 INSERT INTO video SET
UID='10',
title='testggg',
description='test',
keyword='test',
channel='0|14|0',
addtime='1199188145',
adddate='2008-01-01',
vkey='1442243504',
type='public',
active='0',
approve='1'
2008-01-01 5:49:05 -------------------------------------------------------------
2008-01-01 5:49:05 Video id: 91
2008-01-01 5:49:05 Calling ffmpeg-php -> ffmpeg_movie()
2008-01-01 5:49:05 Get video duration - START
2008-01-01 5:49:05 Get video duration - END
2008-01-01 5:49:05 DURATION: 453.844
2008-01-01 5:49:05 Create Thumbnail - START
Re: 2.5 vshare conversion error
Well, never let the incompetence of host support be underestimated.
Today apthost decided to tell me that the whole conversion problem is due to my Internet explorer cache! NOT!
Please help. I sincerely believe it is the host but just have no way to break through the ignorance. Not log files, not command lines to try and not logins and passwords. Nothing gets them to correct the error. The only change was on their part and I can only see the PHP upgrade. I dont really want to try the Vshare upgrade before it is working - or I won't know if it is an install problem or the hosts issue. I have 2 2.4 versions running and 2 2.5 versions.