Ok - have everything basically working. Video uploads, creates thumbnail, etc. However, when going to play, simply shows a black screen with play arrow. Clicking does nothing. What am I missing. Site is at http://mmvideos.org
Printable View
Ok - have everything basically working. Video uploads, creates thumbnail, etc. However, when going to play, simply shows a black screen with play arrow. Clicking does nothing. What am I missing. Site is at http://mmvideos.org
Have tried both quicktime and wmv files with saem result - any help here on this?
Check the debug log to find the convert command, then run the command on the server to see if the command can convert the video file to FLV format.
If video is not getting converted, problem will be with mencoder installation.
See
Video Not Playing
Video not getting converted to flv
Does not make sense because it is on the same server as this site http://www.philadelphiadance.tv/ which is running an older version of vshare and all works fine - calling up exact same mmencoder
Here is the results of debug txt....
2007-10-11 9:43:31 File: /home/mmvideos/public_html/video/Lament.wmv
2007-10-11 9:43:31 -------------------------------------------------------------
2007-10-11 9:43:31 INSERT INTO video SET
UID='2',
title='Lament',
description='RED. Philly Fringe 2007.',
keyword='RED2007',
channel='0|26|0',
addtime='1192110211',
adddate='2007-10-11',
vkey='948888931',
type='public',
active='0',
approve='0'
2007-10-11 9:43:31 -------------------------------------------------------------
2007-10-11 9:43:31 Video id: 2
2007-10-11 9:43:31 Calling ffmpeg-php -> ffmpeg_movie()
2007-10-11 9:43:31 Get video duration - START
2007-10-11 9:43:31 Get video duration - END
2007-10-11 9:43:31 DURATION: 159.327
2007-10-11 9:43:31 Create Thumbnail - START
2007-10-11 9:43:59 Create Thumbnail - END
2007-10-11 9:43:59 CONVERT COMMAND:
/usr/bin/mencoder '/home/mmvideos/public_html/video/Lament.wmv' -o /home/mmvideos/public_html/flvideo/1192110239901913206.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
2007-10-11 9:44:00 -------------------------------------------------------------
2007-10-11 9:44:00
2007-10-11 9:44:00 -------------------------------------------------------------
2007-10-11 9:44:00 Return value:
2007-10-11 9:44:00 File Size too small : Bytes, Upload a big video.
2007-10-11 9:44:00 Calling process_video[2,0]
Created convert.php file
<html>
<body bgcolor="Black" text="White">
<?php
error_reporting(E_ALL);
$convert_command = "/usr/bin/mencoder '/home/mmvideos/public_html/video/ristinamodel_balloons_2__2_.mpeg' -o /home/mmvideos/public_html/flvideo/119214297363517344.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";
$var = exec($convert_command,$exec_result);
echo "<pre>";
for($i=0;$i<count($exec_result);$i++){
echo $exec_result[$i] . "
";
}
?>
</body>
</html>
Can be found at http://mmvideos.org/convert.php
All I get is a black window
Please help at a loss here
This is because your PHP can't run the command or mencoder not on the server. Contact your web host with the url of the script and ask why the command is not running, they will be able to provide a solution.
1. I am my own web host
2. mmencoder is running on the server and works with the other site using vshare that is hosted on the same server
3. the calls are the same from what I can see, only difference is version numbers of your script
Side note on all this. Why not have all the requirements test when going through install script? Similar to what you have for checking permissions. If any of these are supposedly not functioning on server, then installation is flagged and no one is wasting each other's time.
As I said have older version of your software 2.1 fully paid running on same server with no problems other than most functions are not present but at least videos upload and play. Have never been able to upgrade this and get it to work with upgrade, so reverted back to old version. Something is better than nothing.
Bought another full 2.5 copy for new site, thinking you now had things working better and installing easier. Guess I was wrong. And tech support seems to still be limited to telling me the server is not working properly. Even had a consultant for $75 check out the functions mmencoder, ffmpeg, etc, and he sees nothing wrong.
Perhaps you should offer a install fix/support service for a small fee since you folks seem to be the only ones who know what is what with this. And no I do not want to host on another service. I just want what I paid for to work.
Above test script should work, it is just basic PHP script to run a system command from PHP script.
If that is not working, there should be some problem with PHP restriction, mencoder installation or its path.
To verify mencoder is working, login to ssh and run following command in SSH prompt
Code:/usr/bin/mencoder '/home/mmvideos/public_html/video/ristinamodel_balloons_2__2_.mpeg' -o /home/mmvideos/public_html/flvideo/119214297363517344.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050 -ofps 24 -vf harddup
Code:ls - l /home/mmvideos/public_html/video/ristinamodel_balloons_2__2_.mpeg
ls -l /home/mmvideos/public_html/flvideo/119214297363517344.flv
Paid installation for vshare is available with [email protected]
Since you already paid for installation, ask the installer to run the above commands on ssh prompt and see it works or not.
ssh to box and ran. here is what I get... (NOTE: mencoder is at /usr/local/bin/mencoder not /usr/bin/mencoder
root@web2 [/]# /usr/local/bin/mencoder '/home/mmvideos/public_html/video/Lament.wmv' -o /home/mmvideos/public_html/flvideo/119214297363517344.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
MEncoder dev-SVN-r23390-3.4.6 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(TM) XP 2600+ (Family: 6, Model: 10, Stepping: 0)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
success: format: 0 data: 0x0 - 0x1f2a1c0
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV1] 720x480 24bpp 1000.000 fps 1500.0 kbps (183.1 kbyte/s)
[V] filefmt:6 fourcc:0x31564D57 size:720x480 fps:1000.00 ftime:=0.0010
================================================== ========================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16005->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
================================================== ========================
** MUXER_LAVF ************************************************** ***************
If you wish to use libavformat muxing, you must ensure that your video stream
does not contain B frames (out of order decoding) and specify:
-lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es
on the command line.
REMEMBER: MEncoder's libavformat muxing is presently broken and will generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
************************************************** *****************************
Cannot initialize muxer.
Exiting...
The command is not working, you are using old version of mencoder.
You need to edit include/settings/video_conversion.php and change mencoder conversion command to the one for older version, then try reuploading the video.
BINGO! It is now working fine. One last - how can i clear out permanently all the old video attempts? I notice in admin panel removing them does not really do so, just de-activates them. Would like to remove all together to start fresh.