Skip to main content

Posts

ffmpeg video converter

Some tips to remember while using ffmpeg in ubuntu: #install restricted packages (more info in: http://ubuntuforums.org/showthread.php?t=786095 ) sudo apt-get install ubuntu-restricted-extras # video converting with ffmpeg The default ffmpeg installation does not support all features so do this way: sudo apt-get install ffmpeg libavcodec-extra-52 #Change flv/avi files to mp4(parameters customized for nokia 5800 mobile phone) ffmpeg -f mp4 -vcodec libxvid -s 640x360 -b 768k -r 25 -aspect 16:9 -acodec libfaac -ab 96k -ar 44100 -ac 2 output.mp4 -i input.avi/flv #change to mp3 (more info in http://ubuntuforums.org/showthread.php?t=1125181 ) ffmpeg -acodec libmp3lame -ac 2 -ab 128 -vn -y output.mp3 -i “mysource.flv” # bash scrit to convert all files in a folder to mp4 using the above method for i in *; do ffmpeg -f mp4 -vcodec mpeg4 -b 2200k -r 30 -s 640x360 -acodec libfaac -ar 32000 -ab 128k -ac 2 "_$i.mp4" -i "$i"; done # convert all files in the current folder to...

Flex sample example in Eclipse

This is a very basic example which makes use of Flex 3 in the frontend , MySQL for data storage and PHP to glue Flex and MySQL. There are two source files used in this example: i. flex.mxml - for the interface part <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" creationComplete="userRequest.send()"> <mx:HTTPService id="userRequest" url="http://localhost/flex/request.php" useProxy="false" method="POST"> <mx:request xmlns=""> <username>{username.text}</username><emailaddress>{emailaddress.text}</emailaddress> </mx:request> </mx:HTTPService> <mx:Form x="22" y="10" width="493"> <mx:HBox> <mx:Label text="Username"/> <mx:TextInput id="username" /> </mx:HBox> <mx:HBox...

My first step to PHP-MySQL

This is a very basic php-mysql tutorial and I will be trying to make it as simple as possible, since I it to be helpful for the first timers. This is the part of program when I was starting to learn Php-mysql. I was just trying to create a html form, get some data filled and then save the data in the database. And also displaying those data back. It was a messy code but I felt glad enough since it was a tangible piece of my learning process. Since then, if anyone asked me some help regarding the startup, i used to provide this code for them to play with. And I thought it will be a good idea if I can share it. a simple html form <form name="form1" method="post" action="target.php"> <p class="style1" align="left"> <label>Enter your details:</label> </p> <table width="421" bgcolor="#cccccc"> <tbody><tr> <td width="195">Name: <input nam...