Leapster Explorer: Play Theora Videos

From eLinux.org
Revision as of 04:30, 17 July 2011 by Jrspruitt (Talk | contribs)

Jump to: navigation, search

This how-to will show you how to load your own Theora (Ogg Vorbis) video files on to the Leapster Explorer and play them from the standard User Interface.

Prerequisites

SFTP Access

Programs Needed

ffmpeg2theora

  • There are Windows and Linux versions available.

SFTP Program

  • This tutorial uses the Linux command line, you can also use a GUI program in either Windows or Linux

Convert and Upload Video

Each program needs to contain a few different files in its directory, for it to work correctly with the LeapFrog GUI. First thing you'll need to do, is connect to your device with your SFTP program.

Get Video Packaging

We are going to use the ConnectMovieApp folder as the base template for holding our video file. From your host PC run the following command:

$ scp -r root@10.0.0.2:/LF/Bulk/ProgramFiles/ConnectMovieApp .

Scp will then download the files to your current working directory.

Encoding the video

For Linux ffmpeg2theora is included in most distribution repos so install using your distributions method. On Windows see the link in Programs Needed.

Encoding the file is done with one line:

 ffmpeg2theora -o output_video.ogg -F 12 -H 16000 -x 320 -y 240 input_video.avi

Editing the Package Files

First thing to do is to open the ConnectMovieApp directory and inside the Video directory delete the ConnectMovie.ogg and LExplorer_ConnectMovie_Mix_V6.ogg place your newly encoded file in this directory. You may need to use a Leaplet code or find someone that has the package, that could give you the files, as ConnectMovieApp may not exist on your device.

Open the VideoInfo.json file and replace the ConnectMovie.ogg and LExplorer_ConnectMovie_Mix_V6.ogg lines with your new video filename.

Moving back to the parent directory you can edit the GameInfo.json with some infomation about your video rather then the default you could also use this time to edit the ConnectMovie001.png to something more meaningful.

You also need to update the md5sums for any file you changed, you can find the md5sum in Linux using this command:

 md5sum /path/to/filename

Replace the new md5sums in the packagefiles.md5 file.

Rename the directory from ConnectMovieApp to something that means something.

Upload the Movie

 scp -r NewVid root@10.0.0.2:/LF/Bulk/ProgramFiles/

Unplug the USB cable and enjoy your new video.