Log in

View Full Version : set 16:9


fenomeno83
16th July 2010, 13:49
how can I set 16:9 for a video?

buzzqw
16th July 2010, 13:56
only by resizing and muxing

avisynth is agnostic about AR

hint: search for FitCD

BHH

fenomeno83
16th July 2010, 14:50
thanks,I explain better..
I have this side by side 3d movie (stereo video), that if you don't use for example stereoscopic player to convert in anaglyph, with a common player you see in this manner
http://img6.imageshack.us/img6/91/immaginejnc.png
(left and right video, every one of 960x1080)

After that I apply this filter to trasform in anaglyph for red and cyan glasses:
video=FFVideoSource ("C:\Users\Alessandro\Desktop\3d\Avatar3Dklipp1.avi")
audio=FFAudioSource("C:\Users\Alessandro\Desktop\3d\Avatar3Dklipp1.avi")
video2d = AudioDub(video,audio)
video2d = ConvertToRGB32(video2d)
videoW = width(video2d)
videoH = height(video2d)
halfW = videoW / 2
f1 = Crop(video2d, 0, 0, halfW, videoH)
f2 = Crop(video2d, halfW, 0, halfW, videoH)
MergeRGB(f2.ShowRed, f1.ShowGreen, f1.ShowBlue)

I get this
http://img36.imageshack.us/img36/7268/immagine2ndk.png
(960x1080)

so I want get the same result when I watch with stereoscopic player, that convert in realtime to anaglyph and 16:9 doubling width (1920x1080)
http://img717.imageshack.us/img717/6403/immagine3qn.png

Keiyakusha
16th July 2010, 14:55
add --sar 2:1 to x264 commandline (if you using x264 of course) and set DAR to 1920x1080 in mkvmerge if you're going to mux this to mkv.
or
Spline36resize(1920,1080) in avisynth, but this is a huge waste IMO.

fenomeno83
16th July 2010, 23:25
thanks to bloody from 3dvision blog finally I use this:

video=FFVideoSource ("C:\Avatar.avi")
audio=FFAudioSource("C:\Avatar.avi")
video2d = AudioDub(video,audio)

video2d = ConvertToRGB32(video2d)

videoW = width(video2d)
videoH = height(video2d)

halfW = videoW / 2

f1 = Crop(video2d, 0, 0, halfW, videoH)
f2 = Crop(video2d, halfW, 0, halfW, videoH)

f1 = Lanczos4Resize(f1, videoW, videoH)
f2 = Lanczos4Resize(f2, videoW, videoH)

MergeRGB(f2.ShowRed, f1.ShowGreen, f1.ShowBlue)

if I use spline36 is better than lanczos4?

trevaaar
17th July 2010, 14:57
The only way to know that is to try both and see which one you think looks better. But as Keiyakusha said you're better off leaving the video at 960x1080 and using --sar 2:1 while encoding to flag players to do the resizing instead, it will save a huge amount of bitrate.