help! Có pác nào hay anh em nào bik chuyển phim HD 2d thàng 3D không ?

shasumaya

New Member
Thật tình là em rất thik công nghệ coi phim 3D. Mà em không bik soft nào chuyển từ 2D sang 3D hết. Xjn các pác hướng dẫn em làm được không. Em xjn cám ơn rất nhiều. :):):):). Mà các pác cho em hỏi là kính Red-Cyan khi xem phim từ 2D chuyển sang 3D có hại mắt không ??
 

lkt1827

New Member
Ðề: help! Có pác nào hay anh em nào bik chuyển phim HD 2d thàng 3D không ?

Có trang này HD chuyển 2D --> 3D dùng Avisynth nhưng toàn tiếng anh coi mệt thiệt.

Mã:
http://3dvision-blog.com/2d-to-3d-realtime-video-conversion-with-avisynth-v0-2b/

Bác nào giỏi tiếng anh vô dịch dùm.
 

linhmoiday

New Member
Ðề: help! Có pác nào hay anh em nào bik chuyển phim HD 2d thàng 3D không ?

Bạn copy đoạn mã sau vào avysynth, Đổi tên tệp tin ở ngay đầu đoạn script “Avatar_Trailer_HD.avi” thành tên tệp tin video mà người dùng đang muốn chuyển sang 3D
Sau đó mở avysynth bằng Stereoscopic Player thế là có phim 3D để xem rùi, bạn muốn lưu phìm thì dùng phần mềm encoder như MeGUI

## 2D to 3D Realtime Video Conversion Avisynth script v0.3b
## Made by Anton Belev at 3D Vision Blog
## http://www.3dvision-blog.com
## Additionally extended by Martin Haverland at audiomh.de for quality resize
## and different output modes including interlaced format for use in non-3d specific players e.g. windows media player.

## Open the video file for conversion, change the video file name
video2d = DirectShowSource("Avatar_Trailer_HD.avi")

## Increase video brightnes on dark videos, good for 3D Vision owners
# video2d = video2d.Tweak(Bright=10)

## Convert to RGB32 to avoid the width restrictions
video2d = ConvertToRGB32(video2d)

## Optional aspect ratio maintaining quality resize for 3d monitor target resolution.
## Very cpu intensive, may be for offline use only, e.g. in virtualdubmod.
## 2x 3.0ghz cpu may give you a framerate of 16fps while running the whole script in virtualdubmod including xvid compression in HDTV quality saving setting.
## Offers great quality in the result video for fullscreen playback in every .avs capable player later.
## Also reduces ghosting if the original file resolution is smaller than the target resolution.
# videoW = width(video2d)
# videoH = height(video2d)
## For 19" Zalman use 1280, for 22" Zalman Trimon it is 1680 etc.
# hzTargetSize = 1280
# video2d = Lanczos4Resize(video2d, hzTargetsize, hzTargetsize * videoH / videoW)
## Commenting out the above resizing maintains realtime capability!

## Get video width/height and set the frame stretch factor
## Lower the value 100 to increase frame stretch, may introduce ghosting
videoW = width(video2d)
videoH = height(video2d)
ResW = videoW + (videoW / 100)
CropW = (ResW - videoW) / 2

## Create variables for left and right frame with one frame difference
## This is the Plufrich-like simulation that creates illusion of depth from movement
f1 = video2d
f2 = DeleteFrame(video2d, 0)

## Stretch the right frame to further the depth effect
f1 = LanczosResize(f1, ResW, videoH)
f1 = Crop(f1, 0, 0, videoW, videoH)

## Stretch the left frame to further the depth effect
f2 = LanczosResize(f2, ResW, videoH)
f2 = Crop(f2, CropW, 0, videoW, videoH)

## Output the two video frames in a side-by-side / parallel format
## Use this as a default for playing back on 3D Vision (Side by Side L/R)
StackHorizontal(f2, f1)

## Output the two video frames in a Above/Below format (like Sony?)
# StackVertical(f2,f1)

## Output the two video frames in a page flipping format for shutter glasses etc.
## The Tweak as proposed by eslave is for brighter image, modify the value 30
# f1 = f1.ConvertToYV12.Tweak(Bright=30)
# f2 = f2.ConvertToYV12.Tweak(Bright=30)
# Interleave(f2,f1)

## Output the two video frames in anaglyph red-cyan as proposed by eslave
# MergeRGB(f2.ShowRed, f1.ShowGreen, f1.ShowBlue)

## For reversed anaglyph i.e. cyan-red
# MergeRGB(f1.ShowRed, f2.ShowGreen, f2.ShowBlue)

## Output the two video frames in anaglyph yellow-blue as proposed by eslave (untested)
# f1 = f1.ConvertToYV12(matrix="PC.601").tweak(bright=12.5, sat=1.25, coring=false)
# f1 = f1.ConvertToRGB32
# f1 = f1.Levels(0, 1.05, 255, 0, 255, coring=false)
# MergeRGB(f2.ShowRed, f1.ShowGreen, f1.ShowBlue)

## Output the two video frames in anaglyph blue-Yellow as proposed by eslave (untested)
# f2 = f2.ConvertToYV12(matrix="PC.601").tweak(bright=12.5, sat=1.25, coring=false)
# f2 = f2.ConvertToRGB32
# f2 = f2.Levels(0, 1.05, 255, 0, 255, coring=false)
# MergeRGB(f1.ShowRed, f2.ShowGreen, f2.ShowBlue)

## Output two video frames in Interlaced mode
## Ueed for Zalman Trimon, Acer Aspire 3D etc.
# f1 = SeparateFields(f1)
# f1 = SelectEven(f1)
# f2 = SeparateFields(f2)
# f2 = SelectOdd(f2)
# interleave(f2,f1)
# AssumeFieldBased()
# weave()
 

hien_sg

Member
Ðề: help! Có pác nào hay anh em nào bik chuyển phim HD 2d thàng 3D không ?

Hi Các Bác.
Có 1 cách đơn giản, mà chất lượng hình ảnh khá ấn tượng:
Cài chương trình Total media5 , chương trình nầy hổ trợ trực tiếp chuyển đổi phim 2D thành 3D. Chương trình dễ xài, và thao tác chuyển đổi nhanh ( mấy vài giây là từ 2D--->3D).
Vài dòng chia sẽ.
 

Cara

Active Member
Ðề: help! Có pác nào hay anh em nào bik chuyển phim HD 2d thàng 3D không ?

Các bác thích convert 2D sang 3D kiểu này để tự sướng chứ người khác xem không biết có cảm giác sướng giống vậy hem nữa.
Nếu đơn giản thế thì James Cameron chẳng giàu nhất giới Hollywood nổi và Avatar chẳng phải tốn 15 năm...
 
Bên trên