Producing 3D files in AviSynth - Page 3 at DVinfo.net

Go Back   DV Info Net > Special Interest Areas > 3D Stereoscopic Production & Delivery

3D Stereoscopic Production & Delivery
Discuss 3D (stereoscopic video) acquisition, post and delivery.


Reply
 
Thread Tools Search this Thread
Old December 13th, 2010, 07:14 PM   #31
Trustee
 
Join Date: Oct 2009
Location: Rhinelander, WI
Posts: 1,209
Yes, such an encoder would be nice. And someday someone will release one. But it is still too new.
Adam Stanislav is offline   Reply With Quote
Old December 13th, 2010, 08:14 PM   #32
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
At least there are some open source codes nowadays and i hope somebody -or a team will implement MVC encoder soon. Thanks for your assist btw.
Seref Halulu is offline   Reply With Quote
Old December 14th, 2010, 10:02 AM   #33
Trustee
 
Join Date: Oct 2009
Location: Rhinelander, WI
Posts: 1,209
Perhaps the VLC encoder is the step in the right direction.
Adam Stanislav is offline   Reply With Quote
Old December 20th, 2010, 03:58 PM   #34
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
Hi,

I wanted to share my test results.

For the time being i sticked with x264's frame-packing capabilities; it puts some flags and you everytime have to select "side-by-side" or "top-bottom" options on player's settings according to the source file.
Yesterday i made some trials and i found "TopDown3D"/ "LeftRight3D" is only working with TMT5 in 3D mode.

So for now the best solution is to use "-reduced" option. (IMO)

Here are some scripts: (Created x264 files with those scripts and packed into m2ts /mkv containers work flawlessly in 3D mode with both TMT 5 and PDVD 10 .) And you can open them with MeGui and re-encode to x264 as frame packed... (you may use any desired preset too...)

(Sample avisynth scripts are written for left-right frame packing, you may change "LeftRight3DReduced(lv, rv)" line with "TopDown3DReduced(lv, rv)" )

With DGNVTools of Don.(you need to have a compatible nVidia card and the application of course.):

LoadPlugin("C:\DG\DGDecodeNV.dll")

lv = DGSource("C:\xxx\left.dgi")

rv = DGSource("C:\xxx\right.dgi")

LeftRight3DReduced(lv, rv)

ConvertToYV12()



Or without DGNVTools:

either:

lv = FFVideoSource("C:\xxx\left.m2ts")

rv = FFVideoSource("C:\xxx\right.m2ts")

LeftRight3DReduced(lv, rv)

ConvertToYV12()

or:

lv = directshowsource("C:\xxx\left.m2ts")

rv = directshowsource("C:\xxx\right.m2ts")

LeftRight3DReduced(lv, rv)

ConvertToYV12()


Thanks Adam really for your great tool.

EDIT: btw there are no options here like bold, code, quote, etc. Why? I'm a new boot here; is this the reason?

Last edited by Seref Halulu; December 20th, 2010 at 06:39 PM.
Seref Halulu is offline   Reply With Quote
Old December 20th, 2010, 07:14 PM   #35
Trustee
 
Join Date: Oct 2009
Location: Rhinelander, WI
Posts: 1,209
You're quite welcome. As for bold and such, just use regular BBCode tags (see https://secure.wikimedia.org/wikipedia/en/wiki/BBCode for details). Those work on most web-based fora, including this one.
Adam Stanislav is offline   Reply With Quote
Old December 21st, 2010, 05:02 PM   #36
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
Thanks Adam.
Seref Halulu is offline   Reply With Quote
Old January 14th, 2011, 04:45 PM   #37
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
Hi Adam, me again.

I found left video is extracted as 1088p, so i left DGNVTools to crop the left movie and i used this aviscript:

Quote:
LoadPlugin("C:\DG\DGDecodeNV.dll")
LoadPlugin("H264StereoSource.dll")
lv = DGSource("C:\H264StereoSource_a2\left.dgi")
rv= H264StereoSource("decoder.cfg",64140)
lv = lv.ConvertToYUY2
rv = rv.ConvertToYUY2
HDMI3D(lv, rv)
And used:
Code:
 C:\blabla>x264 --fps 24000/1001 --level 4.1 --sar 1:1 --aud -o adam.264 adam.avs

avs [info]: 1920x2205p 1:1 @ 24000/1001 fps (cfr)
resize [warning]: converting from yuyv422 to yuv422p
resize [error]: resolution 1920x2205 is not compliant with colorspace i420
And?
Seref Halulu is offline   Reply With Quote
Old January 18th, 2011, 05:00 PM   #38
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
FYI those are working:

Quote:
SetMemoryMax (64)
LoadPlugin("C:\DG\DGDecodeNV.dll")
LoadPlugin("H264StereoSource.dll")
lv = DGSource("C:\blabla\left.dgi")
rv= H264StereoSource("decoder.cfg",*****)
LeftRight3D(lv, rv)
ConvertToYV12()
Quote:
SetMemoryMax (64)
LoadPlugin("C:\DG\DGDecodeNV.dll")
LoadPlugin("H264StereoSource.dll")
lv = DGSource("C:\blabla\left.dgi")
rv= H264StereoSource("decoder.cfg",*****)
TopDown3D(lv, rv)
ConvertToYV12()

Last edited by Seref Halulu; January 18th, 2011 at 05:55 PM.
Seref Halulu is offline   Reply With Quote
Old January 18th, 2011, 05:26 PM   #39
Trustee
 
Join Date: Oct 2009
Location: Rhinelander, WI
Posts: 1,209
Yes, sometimes 1080 decodes as 1088 because certain formats have to be divisible by 16. Nothing I can do about it. You may want to try cropping it after you convert it to YV12.
Adam Stanislav is offline   Reply With Quote
Old January 18th, 2011, 05:41 PM   #40
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
But i have tried with ffVideoSource too; FFVideoSource always perceives it as is; 1080...

Quote:
LoadPlugin("H264StereoSource.dll")
lv= FFVideoSource("C:\H264StereoSource_a2\left.m2ts")
rv = H264StereoSource("decoder.cfg",64172)
HDMI3D(lv, rv)
Same result...

Should i still crop after converting to YV12?
Seref Halulu is offline   Reply With Quote
Old January 18th, 2011, 05:57 PM   #41
Trustee
 
Join Date: Oct 2009
Location: Rhinelander, WI
Posts: 1,209
No, if it already is seen as 1080, cropping would be just a waste of time.

But you cannot convert the HDMI videos into a format that expects an even number of lines, such as MPEG, because it always has an odd number of lines (as I explain in Pantarheon 3D AviSynth Toolbox).
Adam Stanislav is offline   Reply With Quote
Old January 18th, 2011, 06:38 PM   #42
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
Yeah, forgot to add "YUY2" lines...

Quote:
LoadPlugin("H264StereoSource.dll")
lv= FFVideoSource("C:\H264StereoSource_a2\left.m2ts")
rv = H264StereoSource("decoder.cfg",64172)
lv = lv.ConvertToYUY2
rv = rv.ConvertToYUY2
HDMI3D(lv, rv)
But:

Quote:
C:\H264StereoSource_a2>x264 --fps 24000/1001 --level 4.1 --sar 1:1 --aud --frames 3000 -o adam_HDMI.264 adam_HDMI.avs

avs [info]: 1920x2205p 1:1 @ 24000/1001 fps (cfr)
resize [warning]: converting from yuyv422 to yuv422p
resize [error]: resolution 1920x2205 is not compliant with colorspace i420
Or? Have i missed something else? Supposed those 45 lines are added automatically or not?
Anyway it seems to be added: 2205...
Seref Halulu is offline   Reply With Quote
Old January 18th, 2011, 08:24 PM   #43
Trustee
 
Join Date: Oct 2009
Location: Rhinelander, WI
Posts: 1,209
Quote:
Originally Posted by Seref Halulu View Post
Have i missed something else? Supposed those 45 lines are added automatically or not?
Anyway it seems to be added: 2205...
Yes, they are added. But do not forget what I said on my web site:

Quote:
That means that HDMI did not create the standard for storage in files but for video players and games to produce the image from some other format, or even on the fly. This is particularly clear when you consider that MPEG files use the YUV format. So, do not blame me, blame HDMI.
HDMI transfers data in the RGB format. So, if you actually want to save it all in a file, instead of converting to YUY2, try converting to RGB and save it as an RGB file.
Adam Stanislav is offline   Reply With Quote
Old January 19th, 2011, 04:36 PM   #44
Regular Crew
 
Join Date: Dec 2010
Location: Istanbul Turkey
Posts: 74
Thanks but it doesn't work:

Quote:
SetMemoryMax (64)
LoadPlugin("H264StereoSource.dll")
lv= FFVideoSource("C:\H264StereoSource_a2\left.m2ts")
rv = H264StereoSource("decoder.cfg",64172)
lv = lv.ConvertToRGB
rv = rv.ConvertToRGB
HDMI3D(lv, rv)
Quote:
C:\H264StereoSource_a2>x264 --fps 24000/1001 --level 4.1 --aud --frames 3000 -o adam_HDMI.264 adam_HDMI.avs

avs [info]: 1920x2205p 0:0 @ 25/1 fps (cfr)
resize [error]: resolution 1920x2205 is not compliant with colorspace i420
Seref Halulu is offline   Reply With Quote
Old January 19th, 2011, 05:22 PM   #45
Trustee
 
Join Date: Oct 2009
Location: Rhinelander, WI
Posts: 1,209
Quote:
Originally Posted by Seref Halulu View Post
Thanks but it doesn't work:
And it never will. You are trying to convert it to an MPEG format which cannot handle video with an odd number of lines. That is what I have been trying to tell you. You could save it in the RGB format with some RGB codec in an AVI file or similar.

The HDMI 1.4a standard was not meant for saving video into files to start with. It is only meant to send video (and audio) data directly to a monitor over a cable. You still can save it in a file, but it cannot be in the color space you are trying to save it in.
Adam Stanislav is offline   Reply
Reply

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

Professional Video
(800) 833-4801
Portland, OR

B&H Photo Video
(866) 521-7381
New York, NY

Z.G.C.
(973) 335-4460
Mountain Lakes, NJ

Abel Cine Tech
(888) 700-4416
N.Y. NY & L.A. CA

Precision Camera
(800) 677-1023
Austin, TX

DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > Special Interest Areas > 3D Stereoscopic Production & Delivery

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 



Google
 

All times are GMT -6. The time now is 11:07 PM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2017 The Digital Video Information Network