create high quality video using ffmpeg
You can use the open source ffmpeg program to convert a media file from low quality to high quality format # /fullpath/to/ffmpeg/ffmpeg -i source.mp4 -c:v libx264 -crf 19 destinationfile.flv OR…
You can use the open source ffmpeg program to convert a media file from low quality to high quality format # /fullpath/to/ffmpeg/ffmpeg -i source.mp4 -c:v libx264 -crf 19 destinationfile.flv OR…
You can use the open source ffmpeg program to convert a media file from one format to another. Below is an exmple: # /fullpath/to/ffmpeglibrary/ffmpeg -i InputFile.FLV OutputFile.mp3 There are various…
You can use the open source ffmpeg program to extract a frame to use as a thumbnail for a video. Below is an exmple: # /fullpath/to/ffmpeglibrary/ffmpeg -i InputFile.FLV -vframes 1…
In Action File ========================================================== $this->form = new youFormclassname(); To set individual Label $this->form->getWidget(‘widgetname’)->setLabel(‘widget Custom label’); To set multiple field label $this->form->getWidgetSchema()->setLabels(array( ‘field_name_1’ => ‘Field 1 Custom Lable’, ‘field_name_2’ => ‘Field…
function replace_tag_with_specific_attr_type( $tagAttribute, $tagAttributeValue, $subjectStr, $tagName=null,$replaceStr ) { if( is_null($tagName) ) $tagName = ‘\w+’; else $tagName = preg_quote($tagName); $tagAttribute = preg_quote($tagAttribute); $tagAttributeValue = preg_quote($tagAttributeValue); $match_regex = “/<(“.$tagName.”)*$tagAttribute\s*=\s*”. “()$tagAttributeValue\\2*>(.*?)<\/\\1>/”; preg_match_all($match_regex, $subjectStr,…
function replace_tag_text($tagName,$subjectStr,$replaceStr) { $tagName = preg_quote($tagName); preg_match_all(‘{<‘.$tagName.'*>(.*?)</’.$tagName.’>}’,$subjectStr,$matches,PREG_PATTERN_ORDER); $result = str_replace($matches,$replaceStr,$subjectStr); return $result; } Usage : Say for Example $ActualStr : ‘<div><span style=”margin: 0px 0px 0px 0px; width: 540px;”>something</span><p style=”float: right;…
$sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot().$sf_request->getPathInfoPrefix() Vinod RamVinod Ram has been in Software Industry since 2006 and has experience of over 16 years in Software Development & Project Management domain specialised majorly in LAMP stack…
If you want to have custom templates for your node. You can create templates specific to node ID as follows. Add the below function in your template.php if its not…
If any of your html element is getting hide behind the flash object such as youtube video player, or any flash player/object Then you should call this function on body…
$sf_request->getUriPrefix().$sf_request->getRelativeUrlRoot().$sf_request->getPathInfoPrefix(); In symfony version 1.4 $request->getUriPrefix().$request->getRelativeUrlRoot().$request->getPathInfoPrefix(); Vinod RamVinod Ram has been in Software Industry since 2006 and has experience of over 16 years in Software Development & Project Management domain…