Register - Login
Views: 99845961
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-04-22 12:24:23 AM
Jul - Computers and Technology - Is there any way to convert Stereoscopic 3d (side-by-side) to Anaglyph 3d (Red+Cyan)? New poll - New thread - New reply
Next newer thread | Next older thread
SamEarl13

Nipper Plant
Trying (and failing) to learn Lua.
Level: 43


Posts: 220/419
EXP: 523885
For next: 41161

Since: 02-14-12


Since last post: 4.1 years
Last activity: 18 days

Posted on 11-22-12 07:06:08 AM Link | Quote
I've got a pair of red and cyan 3d glasses but can't get my hands on any movies that actually use it so i was wondering if i could somehow convert a stereoscopic into an anaglyphic instead of the other way around.

____________________
I'm currently saving up for a game so if you are going to buy anything from amazon could you click this link first:
This is the link
Joe
Common spammer
🍬
Level: 111


Posts: 2726/3392
EXP: 14502133
For next: 366227

Since: 08-02-07

From: Pororoca

Since last post: 13 days
Last activity: 47 min.

Posted on 11-22-12 06:50:50 PM Link | Quote
I can help.

The exact workflow depends on the source and destination formats, but most of it is done using AviSynth and some plugins.

What's your source format, and what would you like it to be when you're done?

____________________
Bisqwit
90
Level: 22


Posts: 73/94
EXP: 55468
For next: 2882

Since: 03-12-12

From: Finland

Since last post: 8.5 years
Last activity: 6.6 years

Posted on 11-22-12 06:56:17 PM Link | Quote
Originally posted by SamuelEarl666
I've got a pair of red and cyan 3d glasses but can't get my hands on any movies that actually use it so i was wondering if i could somehow convert a stereoscopic into an anaglyphic instead of the other way around.

You could also upload the stereoscopic video into YouTube, wait for it to be processed, and then choose anaglyphic 3D in the playback options on the video player.
SamEarl13

Nipper Plant
Trying (and failing) to learn Lua.
Level: 43


Posts: 222/419
EXP: 523885
For next: 41161

Since: 02-14-12


Since last post: 4.1 years
Last activity: 18 days

Posted on 11-22-12 07:47:16 PM Link | Quote
Originally posted by Joe
I can help.

The exact workflow depends on the source and destination formats, but most of it is done using AviSynth and some plugins.

What's your source format, and what would you like it to be when you're done?

Both of my files are .mp4 and i either want them to stay as .mp4 or .avi as they are more likely to work on the xbox 360 (so i can watch things in hd).

____________________
I'm currently saving up for a game so if you are going to buy anything from amazon could you click this link first:
This is the link
Joe
Common spammer
🍬
Level: 111


Posts: 2727/3392
EXP: 14502133
For next: 366227

Since: 08-02-07

From: Pororoca

Since last post: 13 days
Last activity: 47 min.

Posted on 11-22-12 10:15:17 PM Link | Quote
All right, those are easy to work with. First, the software you need:

AviSynth
Anaglyph plugin for AviSynth
FFMS2 plugin for AviSynth
x264 (32bit 8bit-depth; if you'd rather use 64-bit, it's slightly more complicated)
Yamb

Install AviSynth and put the plugin DLL files in the plugin directory (something like C:\Program Files\AviSynth 2.5\plugins), and install Yamb.

Create a folder and put your video file and x264.exe in it.

Open Notepad and paste this into it:

FFVideoSource("filename.mp4")

ConvertToRGB32(matrix="Rec709")
Anaglypher(Crop(0,0,-(Width()/2),0), Crop(Width()/2,0,0,0), \
0.456, 0.500, 0.176, \
-0.040, -0.038, -0.016, \
-0.015, -0.021, -0.005, \
-0.043, -0.088, -0.002, \
0.378, 0.734, -0.018, \
-0.072, -0.013, 1.226)
ConvertToYV12(matrix="Rec709")


This script may produce a very tall, thin video for some side-by-side 3D videos. Show me a screenshot of the video so I can be sure it's correct. Replace filename.mp4 with the real filename, and save it as script.avs in the folder with the video files and x264.exe.

Open Notepad again and paste this into it:

@echo off

REM Speed preset. From fastest to slowest, they are:
REM
REM ultrafast, superfast, veryfast, faster, fast, medium, slow, slower,
REM veryslow, placebo
REM
REM Use the slowest that you're willing to wait for.

set speed=veryslow


REM Quality level. It ranges from 1 to 51. Lower numbers give better quality,
REM but also larger files. Higher numbers are worse quality, but smaller files.
REM
REM Most people prefer between 15 and 20.

set quality=15


x264 --profile high --preset %speed% --crf %quality% --vbv-maxrate 24000 --vbv-bufsize 24000 --level 4.1 -o anaglyph.h264 script.avs
pause


Adjust the speed and quality settings as you see fit, and save it as run.cmd.

Double-click on run.cmd and wait for it to encode your video. If it's a full-length movie, it can take a very long time! You can stop it partway through if you're just checking to see how well it works.

Once it's done, open Yamb and choose to create a new MP4 file. Open the h264 file and the original MP4 file. Uncheck the video track from the MP4 file, type in a file name, and click next. Once it completes, you can close Yamb.

I think I covered everything. Let me know if anything doesn't work.

____________________
Next newer thread | Next older thread
Jul - Computers and Technology - Is there any way to convert Stereoscopic 3d (side-by-side) to Anaglyph 3d (Red+Cyan)? New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

29 database queries, 2 query cache hits.
Query execution time: 0.098591 seconds
Script execution time: 0.010187 seconds
Total render time: 0.108778 seconds