Converting videos for your BlackBerry on Linux
It took me a while to get this right so I thought I would share it. This is a bash script using ffmpeg to encode video so it will play on your BlackBerry (I am using an 8310 although small modifications like resolution should make it play on others).
You can also achieve better video quality or smaller file sizes by adjusting the number after qscale. 1 for best and I think it is 30/31 for worst quality (smallest file sizes but really bad quality). I played with the -qscale setting a bit and found that 10 was a pretty good balance between quality and size. For 45 minutes of video the files ended up being about 60-75mb. The reason for the size change is that the qscale setting adjusts the bitrate throughout the video to achieve the same quality as opposed to using a constant bitrate throughout the video.
To save space (and also mean two people can share a pair of headphones at the same time without missing anything) it converts the audio to 1 channel (-ac 1). If the audio is too tinny for you you can play with the -ab and -ar parameters. Although I found some values would cause the audio to get out of sync with the video.
Thanks a lot. Nice script! :)
|All times are GMT -5. The time now is 12:22 AM.|
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.