Today in need of free blackberry video converter, I wrote a script which can convert videos into blackberry format. Currently it is supporting most of the Blackberry models, If your model is not listed in script then let me know. I named the script as blackberry movie converter. I have tested it on Ubuntu 10.10. You can modify the script as per your need.

To run the script you need to install ffmpeg on you Ubuntu. To do so on Ubuntu run,

wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && apt-get --quiet update && apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && apt-get --quiet update

apt-get --yes install app-install-data-medibuntu apport-hooks-medibuntu

apt-get install libavcodec-unstripped-52 ffmpeg lame

If you are having Ubuntu 11.04 then instead of above code run,

wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && apt-get --quiet update && apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && apt-get --quiet update

apt-get --yes install app-install-data-medibuntu apport-hooks-medibuntu

apt-get install libavcodec52 libavcodec-dev ffmpeg lame libavcodec-extra-52

Now create a file called blackberry_converter.sh in /bin and copy following content into it.

#!/bin/bash
# A simple shell to convert movies for Blackberry Devices with ffmpeg
# Ubuntu
# ----------------------------------------------------------------------------
# Written by Vidyadhar D S 
# vidyadhards@gmail.com techienote.com@gmail.com
# ----------------------------------------------------------------------------

#480 x 360 pixels (Curve 8900/Tour 9630/Bold 9650/Bold 9700/Bold 9780)
#360 × 480 pixels (Storm 9500/Torch 9800 )
#480 × 320 pixels (Bold 9000)
#360 × 400 pixels (Pearl 3G)
#320 × 240 pixels (8300/8500/8700/8800/Curve 3G)
#240 × 260 pixels (7100/8100 Series)
#240 × 160 pixels (7200/7300 Series)

#1. Curve 8900/Tour 9630/Bold 9650/Bold 9700/Bold 9780
#2. Storm 9500/Torch 9800
#3. Bold 9000
#4. Pearl 3G
#5. 8300/8500/8700/8800/Curve 3G
#6. 7100/8100 Series
#7. 7200/7300 Series

#Dont Modify Below lines
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
clear
echo "1. Curve 8900/Tour 9630/Bold 9650/Bold 9700/Bold 9780"
echo "2. Storm 9500/Torch 9800"
echo "3. Bold 9000"
echo "4. Pearl 3G"
echo "5. 8300/8500/8700/8800/Curve 3G"
echo "6. 7100/8100 Series"
echo "7. 7200/7300 Series"
echo "Refer the above list & Type the 'No of the List' from which your model Belongs to (1,2,3,4,5,6,7):"
read NO

mkdir Blackberry_Movies
if [ $NO -eq 1 ]; then
        ls -1 |
        while read FILENAME; do
        ffmpeg -i "${FILENAME}" -vcodec mpeg4 -vtag XVID -s 480x680 -qscale 10 -ab 48k -ar 22050 -ac 1 -acodec libmp3lame "./Blackberry_Movies/${FILENAME}.mp4" &
        done
else

        if [ $NO -eq 2 ]; then
                ls -1 |
                while read FILENAME; do
                ffmpeg -i "${FILENAME}" -vcodec mpeg4 -vtag XVID -s 360x480 -qscale 10 -ab 48k -ar 22050 -ac 1 -acodec libmp3lame "./Blackberry_Movies/${FILENAME}.mp4" &
                done
        else

                if [ $NO -eq 3 ]; then
                        ls -1 |
                        while read FILENAME; do
                        ffmpeg -i "${FILENAME}" -vcodec mpeg4 -vtag XVID -s 480x320 -qscale 10 -ab 48k -ar 22050 -ac 1 -acodec libmp3lame "./Blackberry_Movies/${FILENAME}.mp4" &
                        done
                else

                        if [ $NO -eq 4 ]; then
                                ls -1 |
                                while read FILENAME; do
                                ffmpeg -i "${FILENAME}" -vcodec mpeg4 -vtag XVID -s 360x400 -qscale 10 -ab 48k -ar 22050 -ac 1 -acodec libmp3lame "./Blackberry_Movies/${FILENAME}.mp4" &
                        done
                        else

                                if [ $NO -eq 5 ]; then
                                        ls -1 |
                                        while read FILENAME; do
                                        ffmpeg -i "${FILENAME}" -vcodec mpeg4 -vtag XVID -s 320x240 -qscale 10 -ab 48k -ar 22050 -ac 1 -acodec libmp3lame "./Blackberry_Movies/${FILENAME}.mp4" &
                                        done
                                else

                                        if [ $NO -eq 6 ]; then
                                                ls -1 |
                                                while read FILENAME; do
                                                ffmpeg -i "${FILENAME}" -vcodec mpeg4 -vtag XVID -s 240x260 -qscale 10 -ab 48k -ar 22050 -ac 1 -acodec libmp3lame "./Blackberry_Movies/${FILENAME}.mp4" &
                                                done
                                        else

                                                if [ $NO -eq 7 ]; then
                                                        ls -1 |
                                                        while read FILENAME; do
                                                        ffmpeg -i "${FILENAME}" -vcodec mpeg4 -vtag XVID -s 240x100 -qscale 10 -ab 48k -ar 22050 -ac 1 -acodec libmp3lame "./Blackberry_Movies/${FILENAME}.mp4" &
                                                        done
                                                else
                                                        echo "Your Model Not Supported"
                                                fi
                                        fi
                                fi
                        fi
                fi
        fi
fi
done

Make it executable

chmod +x /bin/blackberry_converter.sh

How to Use
For eg. I have created one movies folder in my home folder and dumped all the files which I want to convert into it.
Next, Just go to the movies folder and run blackberry_converter.sh
It will convert all media and saves it by creating a Blackberry_Movies folder in the current folder.

Blackberry Video Converter – Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *