Make 3D Vids 3DS Compatible

Another World

Emulate the Planet!
OP
Former Staff
Joined
Jan 3, 2008
Messages
10,579
Trophies
2
Age
48
Location
From Where???
Website
wiki.gbatemp.net
XP
5,535
Country
Colombia
gallery_111084_186_202299.png

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 -
Code:
ffmpeg -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 -
Code:
ffmpeg -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...
Code:
ffmpeg -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
Code:
ffmpeg -i "video.avi" -s 400x240 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -acodec adpcm_ima_wav -ac 2 "VID_0001.AVI"
Thanks to Shadow via IRC for the news!​

download.gif
Download FFMPeG.exe
download.gif
A Small Front End by SifJar
icon11.gif
Project Post
 

bdr9

Well-Known Member
Member
Joined
Jul 21, 2008
Messages
558
Trophies
0
Age
28
XP
288
Country
United States
Is there a maximum length or file size for the movie? I'm thinking about converting a feature-length film to watch on my 3DS.
 

SifJar

Not a pirate
Member
Joined
Apr 4, 2009
Messages
6,022
Trophies
0
Website
Visit site
XP
1,175
Country
Is there a maximum length or file size for the movie? I'm thinking about converting a feature-length film to watch on my 3DS.
10 minutes.

But both the batch file and my GUI (and I think most of the other GUIs scattered about the forums, several in my thread, one in another) can split your video. The batch file you must tell it how many videos you need in the end, my GUI should do everything automatically but apparently the first video doesn't work on 3DS when done using my GUI.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: https://youtu.be/MddR6PTmGKg?si=mU2EO5hoE7XXSbSr