I have released a J2ME video player for Nokia 6233/6234 which basically offers some kind of workaround for the video player (i.e. no seeking).
Note to mods: if this is not the proper place for this, feel free to moderate.
You can find it at http://eucaliptus.ath.cx/~alex/nokia-vid-player/ (freshmeat.net release soon at http://freshmeat.net/projects/nokia-vid-player/ ).
I quote the README:
vid player 0.1 - koalillo-at-fastmail-fm January 26th, 2007
INTRODUCTION
vid player is a J2ME Java application designed for the Nokia 6233/6234 mobile phones that
attempts to fix video playback issues.
The Nokia 6233/6234 default firmware does not allow seeking within videos. If you split
videos in smaller chunks, you find that you cannot play them back in sequence comfortably.
vid player plays continuously files in a folder (with a noticeable but tolerable
gap), fullscreen and turning off the screen blanker. It also provides key combinations to
change the volume, play/pause, jump to the previous/next video in a folder
and jump to the previous/next folder.
VIDEO PREPARATION
I have found the following script to be useful for preparing videos for the program:
--------------
#!/bin/sh
IN="$1"
CHUNK_LENGTH=$2
LENGTH_MS=$(extract "$1" | grep "ms$" | sed "s/^.* \([0123456789]*\) ms$/\1/")
CHUNKS=$(( ($LENGTH_MS + $CHUNK_LENGTH*1000 - 1) / ( $CHUNK_LENGTH * 1000 ) ))
echo Video is $LENGTH_MS ms long
echo Need $CHUNKS chunks of $2 seconds
mencoder "$IN" -vf scale=320:-11,rotate=1 -oac mp3lame -af volnorm=1:1 -ovc lavc -o tmp.avi
for (( CHUNK=0 ; CHUNK<$CHUNKS ; CHUNK=CHUNK+1 ))
do
CHUNK_NAME=0000000$CHUNK
ffmpeg -i tmp.avi -b 150 -ss $(( $CHUNK*$CHUNK_LENGTH )) -t $CHUNK_LENGTH -y -r 15 vid-${CHUNK_NAME: -4}.mp4
done
-------------
Usage is: script <source video> <chunk length in seconds>
This script uses ffmpeg and mencoder to split the source video in fixed-length chunks and encode it
into a 240x320 rotated MPEG4 file, normalizing the volume. It puts the chunks in the current folder,
with vid-0000.mp4 names, and a tmp.avi file which is an intermediate version
The player is hardcoded to look in the device's MicroSD like this:
* MicroSD card (E
* E:\video
* E:\video\<video1>
* E:\video\<video1>\<video1-file1>, ..., E:\video\<video1>\<video1-filen>
* E:\video\<video2>
* E:\video\<video2>\<video2-file1>, ..., E:\video\<video2>\<video2-filem>
PLAYER USAGE
You have to copy the vid.jar and vid.jad files somewhere in the mobile's memory. There, you should
give access rights to the application:
* Select the "vid Midlet Suite" entry in "My Items" folder
* Choose "Options"
* Choose "Application Access"
* Choose "Data access"
* Choose "Add and edit data"
* Choose "Ask Every Time"
After this, open the application. It should ask for access rights a few times (once for each
video folder) and start playing the first video. You can use the phone's keys to control the application:
RMB HUP 3 6 9 #
UP
LEFT FIRE RIGHT 2 5 8 0
DOWN
LMB CALL 1 4 7 *
The following functionality is available:
* HUP: Quit
* UP/DOWN: previous/next folder
* LEFT/RIGHT: previous/next video (rewind/fast-forward)
* FIRE: play/pause
* 1-9: jump to 0%..100% in folder
* #: maximum volume
* 0: increase volume
* *: decrease volume
LICENSE
This software and the associated documentation is in the PUBLIC DOMAIN.
I make no guarantees about the software's behaviour and performance. If
it kills your dog and eats your homework, I'm sorry. It probably contains
horrendous bugs and can hang or otherwise hurt your mobile phone, I
will accept no responsabilities for anything caused by this software.
SOURCE CODE
The source code is also an Eclipse project which can be compiled using
EclipseME (I'm using Eclipse 3.3M4 and EclipseME 1.6.2). You also need
the classes.zip distributed in the Nokia S40 Java SDK (Series 40 Platform SDKs?).
You also need a wireless toolkit (I'm using WTK2.2 from Sun)
You should be able to import the project in your workspace. You should
be able to regenerate the jad/jar files by right-clicking in the project
and selecting J2ME -> Create Package.
CONTACT INFO
I can be reached at koalillo-at-fastmail-dot-fm. Although this software is
PUBLIC DOMAIN, I'd appreciate any contribution if you find this software useful,
or intend to use it comercially. Feedback, patches and requests are appreciated.
I have written this for my own use, annoyed by the poor video playback capabilities
of the Nokia 6234. In case someone from Nokia reads this, this phone is pretty much
excellent, however there's improvable stuff:
* Proper video playback without hacks like this
* Voice control of the audio player
* Better control of the audio player through the hands-free (at least play/pause)
* A2DP support
* SDK support in Linux (development is pretty slow, as I don't have an emulator
that plays video like the phone)
I also have no clue about J2ME, so probably I'm doing things in a wrong and
terrible way.
TODO
* Improve video change gap
* Improve video preparation script
* Nicer interface
* Speed up encoding (each ffmpeg operation has to skip to the bit of video it wants to encode and it's a bit slow)
* Windows version
* Better error handling
* On-screen display
* Menu for choosing among the folders
* Configurable video location
* J2ME signing (or whatever is required to minimize the security questions)
LINKS
* http://www.mplayerhq.hu/ - Mplayer and Mencoder homepage
* http://ffmpeg.mplayerhq.hu/
* http://www.eclipse.org/
* http://www.eclipseme.org/
* http://www.forum.nokia.com/
* http://java.sun.com/products/sjwtoolkit/


Reply With Quote


