POC example of theora decoding for the Nintendo 3DS family of systems using libctru and citro2d.
You can create a compatible video file using the following command:
ffmpeg -i 'input.ext' -vcodec theora -vf scale=400:-1 -acodec libvorbis -ar 32000 "output.ogv"
You can change the quality by using the -q:v
flag. The value can be any interger from 0-10 with 10 being the highest quality.
The old 3ds has limited processing power so I do not recomment using 10, but any value between 0 and 7 should be fine. (4 is recommended)
You can also just set the bitrate manually using the -b:v
flag. (Somewhere around 500k is recomended)
You can place your generated videos in the /videos
directory on your sd card, if it doesn't exist, create it.
3ds-dev 3ds-libvorbisidec 3ds-libtheora
Once you complete Prerequsites, run make
.
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
-
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
-
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
-
This notice may not be removed or altered from any source distribution.