Transcoding movies for Android devices using WinFF ffmpeg and Ubuntu

This is the easiest way to get the task done, it is not pretty but it should work fine.  I tried it on Ubuntu 11.04 no problems.

So I was wanting to watch some AVI files on my ZTE V9 Android device, but had to recode them into mp4 before watching.  Unfortunately the stock Ubuntu version of winff does not allow mp4 coding natively, however there is a easy workaround

Following the instructions on http://ubuntuforums.org/showthread.php?t=786095, I did this:

sudo apt-get remove ffmpeg x264 libx264-dev
sudo apt-get update
sudo apt-get install build-essential checkinstall git checkinstall libfaac-dev \
    libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
    libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \
    libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev
cd
git clone git://git.videolan.org/x264
cd x264
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default
cd
git clone git://git.videolan.org/ffmpeg
cd ffmpeg
./configure –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb \
    –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 \
    –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab
make
sudo checkinstall –pkgname=ffmpeg –pkgversion=”5:$(date +%Y%m%d%H%M)-git” –backup=no \
  –deldoc=yes –fstrans=no –default
hash x264 ffmpeg ffplay ffprobe
cd ~/x264
make distclean
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default

Install winff using synaptic

apt-get install winff

Download the winff presets from winff site
http://winff.googlecode.com/files/presets-libavcodec52-v6.xml.gz
Extract and copy over the previous ~/.winff/presets.xml  you may want to back up the existing file first.

Open WinFF
In the winff preferences change the path to ffmpeg anf ffplay to:
/usr/local/bin/ffmpeg
/usr/local/bin/ffplay

Looking in the presets, you will notice that there is now a mp4 section and also a Android compatible video section, I chose the Android section for my coding.

WindyCityTech Blogger
windywindycitytech wordpress

Transcoding movies for Android devices using WinFF ffmpeg and Ubuntu

This is the easiest way to get the task done, it is not pretty but it should work fine.  I tried it on Ubuntu 11.04 no problems.

So I was wanting to watch some AVI files on my ZTE V9 Android device, but had to recode them into mp4 before watching.  Unfortunately the stock Ubuntu version of winff does not allow mp4 coding natively, however there is a easy workaround

Following the instructions on http://ubuntuforums.org/showthread.php?t=786095, I did this:

sudo apt-get remove ffmpeg x264 libx264-dev
sudo apt-get update
sudo apt-get install build-essential checkinstall git checkinstall libfaac-dev \
    libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
    libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \
    libxfixes-dev libxvidcore-dev texi2html yasm zlib1g-dev
cd
git clone git://git.videolan.org/x264
cd x264
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default
cd
git clone git://git.videolan.org/ffmpeg
cd ffmpeg
./configure –enable-gpl –enable-libfaac –enable-libmp3lame –enable-libopencore-amrnb \
    –enable-libopencore-amrwb –enable-libtheora –enable-libvorbis –enable-libx264 \
    –enable-libxvid –enable-nonfree –enable-postproc –enable-version3 –enable-x11grab
make
sudo checkinstall –pkgname=ffmpeg –pkgversion=”5:$(date +%Y%m%d%H%M)-git” –backup=no \
  –deldoc=yes –fstrans=no –default
hash x264 ffmpeg ffplay ffprobe
cd ~/x264
make distclean
./configure –enable-static
make
sudo checkinstall –pkgname=x264 –pkgversion=”3:$(./version.sh | \
    awk -F'[” ]’ ‘/POINT/{print $4″+git”$5}’)” –backup=no –deldoc=yes \
    –fstrans=no –default

Install winff using synaptic

apt-get install winff

Download the winff presets from winff site
http://winff.googlecode.com/files/presets-libavcodec52-v6.xml.gz
Extract and copy over the previous ~/.winff/presets.xml  you may want to back up the existing file first.

Open WinFF
In the winff preferences change the path to ffmpeg anf ffplay to:
/usr/local/bin/ffmpeg
/usr/local/bin/ffplay

Looking in the presets, you will notice that there is now a mp4 section and also a Android compatible video section, I chose the Android section for my coding.

WindyCityTech Blogger
windywindycitytech wordpress

Is the SMSPup Facebook App Safe?

Probably not.

First of all, SMSPup collects marketing information from its clients in exchange for free SMS points.  The more they know about you, the better that picture marketeers have on your demographic.  So, where is the best place for marketers to gather your personal information?  Facebook of course, where you are possibly at your most social and uninhibited.

If you sign up for the SMSPup Facebook app you are greeted with the following…


Access my basic information Includes name, profile picture, gender, networks, user ID, list of friends, and any other information I've shared with everyone
.

Even though that looks like the usual Facebook boilerplate, do you really want to have greasy marketers spying on you?

Is the SMSPup Facebook App Safe?

Probably not.

First of all, SMSPup collects marketing information from its clients in exchange for free SMS points.  The more they know about you, the better that picture marketeers have on your demographic.  So, where is the best place for marketers to gather your personal information?  Facebook of course, where you are possibly at your most social and uninhibited.

If you sign up for the SMSPup Facebook app you are greeted with the following…


Access my basic information Includes name, profile picture, gender, networks, user ID, list of friends, and any other information I've shared with everyone
.

Even though that looks like the usual Facebook boilerplate, do you really want to have greasy marketers spying on you?

[Solved] USB Tethering a ZTE V9 SD card using Ubuntu Linux

If you have a ZTE V9 (A.K.A Optus Mytab) and you are tethering it to a linux device, you may be having a little trouble getting the SD car to mount.  Personally, it will mount fine on a windows box but will not mount or show aything in dmesg on my Ubuntu box.

First of all…
You cannot USB mount the SD card and USB Internet tether at the same time, damm.  Portable hotspot still work though!

It is easy to get the USB mounting going though… (Done on Android 2.2)

On the ZTE V9, turn on USB debugging.  Settings > Applications > Development > USB Debugging

On you Linux machine (mine is Ubuntu 11.04)

gksudo gedit /lib/udev/rules.d/40-usb_modeswitch.rules

Search for “0083” and comment out the whole line, like this.
# ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0083", RUN+="usb_modeswitch '%b/

You should be able to plug in your USB cable and mount the SD card like any other USB storage device.

If you want to tether the Internet, you will have to unmount the SD card, so you can check the USB Internet tethering box.

If you have trouble, check you dmesg output upon connection, check you lsusb output and make sure that usb_modeswitch is updated.

WindyCityTech Blogger
windywindycitytech wordpress

[Solved] USB Tethering a ZTE V9 SD card using Ubuntu Linux

If you have a ZTE V9 (A.K.A Optus Mytab) and you are tethering it to a linux device, you may be having a little trouble getting the SD car to mount.  Personally, it will mount fine on a windows box but will not mount or show aything in dmesg on my Ubuntu box.

First of all…
You cannot USB mount the SD card and USB Internet tether at the same time, damm.  Portable hotspot still work though!

It is easy to get the USB mounting going though… (Done on Android 2.2)

On the ZTE V9, turn on USB debugging.  Settings > Applications > Development > USB Debugging

On you Linux machine (mine is Ubuntu 11.04)

gksudo gedit /lib/udev/rules.d/40-usb_modeswitch.rules

Search for “0083” and comment out the whole line, like this.
# ATTRS{idVendor}=="19d2", ATTRS{idProduct}=="0083", RUN+="usb_modeswitch '%b/

You should be able to plug in your USB cable and mount the SD card like any other USB storage device.

If you want to tether the Internet, you will have to unmount the SD card, so you can check the USB Internet tethering box.

If you have trouble, check you dmesg output upon connection, check you lsusb output and make sure that usb_modeswitch is updated.

WindyCityTech Blogger
windywindycitytech wordpress

Optus 3G Broadband is still slow in 2011

Seriously, this carrier is clearly over allocated.

I tried a Optus 3G prepaid sim card and realised that it is utter crap compared with Dodo prepaid.

Even the city with full, bars it’s speed is slower than dial up and the lag is just fucked up!  There have been times that there has been no service for hours even if the modem is reconnected, just frustrating.

Even more fucked up is the dragonistic term and conditions regarding usage:
Usage: is counted in 10MB increments and includes both uploads and downloads. First 30MB per day charged at 10MB.

So download 1kb and get charged for 10Mb???  Sound like a big fucking scam!!!

I would not recommend that you go with Optus 3G where possible.

And seem like I’m not the only one.

WindyCityTech Blogger
windywindycitytech wordpress