December 11th, 2011, 22:03 Posted By: wraggster
Looking for a way to take those youtube 3D vids, that new Japanese ummm well you get the idea, and other 3D vids and play them back correctly on your 3DS? GBAtemp member and Homebrew developer Spinal has a solution. It turns out that it is just a simple matter of reencoding using a tool called ffmpeg. For more information be sure to check the spoiler below or head on over to Spinal's project post.
1. Download or rip your 3D video (youtube has millions of them by now)
2. Download ffmpeg.
3. run the ffmpeg with the following options (assuming that your video is called "video.avi")
If your 3D video is top-bottom format -
CODEffmpeg -y -i "video.avi" -s 400x480 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -vf crop=480:240:0:0 -acodec libmp3lame -ar 44100 -ab 96k -ac 2 "left.avi"ffmpeg -y -i "video.avi" -s 400x480 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -vf crop=400:240:0:240 -an "right.avi"
if your 3D video is side-by-side format -
CODEffmpeg -y -i "video.avi" -s 800x240 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -vf crop=400:240:0:0 -acodec libmp3lame -ar 44100 -ab 96k -ac 2 "left.avi"ffmpeg -y -i "video.avi" -s 800x240 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -vf crop=400:240:400:0 -an "right.avi"
After a short time, you should have "left.avi" and "right.avi". It is now safe to move continue...
note - if the filesize is too large, you can adjust the quality by changing the "-qscale 1" to a different number, 1 - best, 31 = worst.
4. run ffmpeg with the following options to create the final movie file...
CODEffmpeg -y -i "left.avi" -i "right.avi" -vcodec copy -acodec adpcm_ima_wav -ac 2 -vcodec copy -map 0:0 -map 0:1 -map 1:0 "VID_0001.AVI"
You can change "VID_0001.AVI" to a different filename if you like, but it must be LLL_NNNN.AVI to show up on the 3DS.
Once that's done, copy it to the folder on your SD card that all of your photos are stored in and view it in the photo viewer.
*update Some people wanted a 2D version also, so here it is, just a single step for the 2D version
CODEffmpeg -i "video.avi" -s 400x240 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -acodec adpcm_ima_wav -ac 2 "VID_0001.AVI"
For more information and downloads, click here!
There are 0 comments - Join In and Discuss Here