Leapster Explorer: Play Theora Videos

From eLinux.org
Revision as of 10:53, 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

All programs are available for Windows and Linux.

ffmpeg2theora

LAME mp3 Encoder

OpenDidj Video Template Package (If you no longer have ConnectMovieApp installed)

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

Encoding the Menu Audio

The menu sound is played after you make a selection, and it asks you if you are sure. The mp3 found in the Audio/ folder is the one used, to encode you're own using LAME run:

lame.exe -b 48 -m m --resample 44 <input>.wav <output>.mp3

Then replace the one provided and change the name in the main directories GameInfo.json file to point it.

Editing the Package Files

Depending on your firmware version, ConnectMovieApp may no longer be available. You can use the OpenDidj version which was pulled from an old update. Anywhere you see OpenDidj, you can replace it with your name.

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.

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.
{"cc_re__cc_re__cc_by_sa_3_0": ["sion</a></li>\n\t\t\t<li id=\"t-permalink\"><a href=\"/index.php?title=Leapster_Explorer:_Play_Theora_Videos&amp;oldid=57853\" title=\"Permanent link to this revision of the page\">Permanent link</a></li>\n\t\t\t<li id=\"t-info\"><a href=\"/index.php?title=Leapster_Explorer:_Play_Theora_Videos&amp;action=info\">Page information</a></li>\n\t\t</ul>\n\t</div>\n</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div id=\"footer\" role=\"contentinfo\">\n\t\t\t\t\t\t\t<ul id=\"footer-info\">\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-info-copyright\">Content is available under <a class=\"external\" rel=\"nofollow\" href=\"http://creativecommons.org/licenses/by-sa/3.0/\">a Creative Commons Attribution-ShareAlike 3.0 Unported License</a> unless otherwise noted.</li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t<ul id=\"footer-places\">\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-privacy\"><a href=\"/eLinux.org:Privacy_policy\" title=\"eLinux.org:Privacy policy\">Privacy policy</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-about\"><a href=\"/eLinux.org:About\" title=\"eLinux.org:About\">About eLinux.org</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-disclaimer\"><a href=\"/eLinux.org:General_disclaimer\" title=\"eLinux.or", "\t\t\t\t\t<li id=\"footer-places-privacy\"><a href=\"/eLinux.org:Privacy_policy\" title=\"eLinux.org:Privacy policy\">Privacy policy</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-about\"><a href=\"/eLinux.org:About\" title=\"eLinux.org:About\">About eLinux.org</a></li>\n\t\t\t\t\t\t\t\t\t\t\t<li id=\"footer-places-disclaimer\"><a href=\"/eLinux.org:General_disclaimer\" title=\"eLinux.org:General disclaimer\">Disclaimers</a></li>\n\t\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t\t\t<ul id=\"footer-icons\" class=\"noprint\">\n\t\t\t\t\t<li id=\"footer-copyrightico\">\n\t\t\t\t\t\t<a href=\"http://creativecommons.org/licenses/by-sa/3.0/\"><img src=\"http://i.creativecommons.org/l/by-sa/3.0/88x31.png\" alt=\"a Creative Commons Attribution-ShareAlike 3.0 Unported License\" width=\"88\" height=\"31\" /></a>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id=\"footer-poweredbyico\">\n\t\t\t\t\t\t<a href=\"//www.mediawiki.org/\"><img src=\"/skins/common/images/poweredby_mediawiki_88x31.png\" alt=\"Powered by MediaWiki\" width=\"88\" height=\"31\" /></a>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t\t\t\t<div style=\"clear:both\"></div>\n\t\t</div>\n\t\t<script>/*<![CDATA[*/window.jQuery && jQuery.ready();/*]]>*/</script"], "copyright__copyright__copyright": ["", "ovie.ogg and LExplorer_ConnectMovie_Mix_V6.ogg lines with your new video filename.\n\nMoving 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.\n\nRename the directory from ConnectMovieApp to something that means something.\n\nUpload the Movie\n\n scp -r NewVid root@10.0.0.2:/LF/Bulk/ProgramFiles/\n\nUnplug the USB cable and enjoy your new video.", "ovie.ogg and LExplorer_ConnectMovie_Mix_V6.ogg lines with your new video filename.\n\nMoving 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.\n\nRename the directory from ConnectMovieApp to something that means something.\n\nUpload the Movie\n\n scp -r NewVid root@10.0.0.2:/LF/Bulk/ProgramFiles/\n\nUnplug the USB cable and enjoy your new video."]}