how to stop .MPG conversion???

vinilrichard posted 5th of April 2008 in Community Voice. 6 comments.
i don"t need to offer a video download feature in my site plz let me know how to disable .mpg video conversion becoz im loosing a lot of space in my server plz help ...thanks
 
Comments
·Oldest
·Top
Please login to post a comment.
Technoman
i dont really think ur loosing space cause i think when it someone uploads a video to dolphin threw ur site it compresses and so it uses less space on board.
_ _ _ _ __ _ _ _ _ __ _
Or go into admin then ray wigets and diable VIDEO
vinilrichard
the uploaded video is converted into 2 flv for flash streaming and .mpg 4 downloading the video.....i do'nt need to offer video download in my site so i need to disable the .mpg conversion so plz help me thank u
spider
vinilrichard: Hello, I am not sure, but may be the two formats (flv and mpg) are requested by Ray V.Player Widget for normal functioning of Video Player. Before I have the same thought, but when I delete the mpg format - the Video Player never starts the video movie without the two formats (flv&mpg). You said that format is for download, but I am not so sure. If you get the answer of that topic - please tell me.
AlexL
Hello everyone.
mpg format is required only for downloading files uploaded by members previously. You can get rid of this feature and creating mpg file as well, but you will need to go into code slightly :(
Well, first of all, go to Ray Suite admin panel - Video player - settings and turn off downloading ability (Enable files saving), this will hide "Save" button from users. Also while you are in Settings you should pay attention to "Save video quality while converting" setting. see more While it's turned on it provokes larger space consuming by Video Player. If you turn it off it will save some space on your servers thanks to decreasing video quality :) As a rule this is quite enough to save large amount of space on your server, but we can save more if you want, but we should go to code for this:
Go to ray/modules/movie/inc/functions.inc.php and find the following code:
$sFile = $sTempFile . SAVE_EXTENSION;
$sCommand = $sFfmpegPath . $sInput . $sTempFile . $sSize . $sRate . $sQuality . $sTempFile . SAVE_EXTENSION;
@exec($sCommand);
if(!file_exists($sFilesPath . $sFile) || filesize($sFilesPath . $sFile) == 0) return false;
remove it from the file, then find:
&&
rename($sTempFile . SAVE_EXTENSION, $sFileId . SAVE_EXTENSION)
remove it too. Make sure to do it very accurately. Any unnecessary delete will cause errors.
Now we have finished with this file. Open actions.inc.php in the same folder, find "getFile" case and remove that piece of code:
|| !file_exists($sFilesPath . $sSaveFile)
go to "getPlayList" case and remove:
|| !file_exists($sFilesPath . $sSaveFile)

That's all. Enjoy very economic Video player :)
salvoeffe
sorry vinilrichard you did try with this change? working? no longer convert the file MPG? thank
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
PET:0.065125942230225