View Full Version : Adding Borders for SVCD Encoding
Merlink
21st March 2003, 12:01
Hello...
I'd like to encode some anime into SVCD but i think i should add some borders at the edges of the pictures...
how can i do?
I use Avisynth 2.5.0 (YV12)
Thanks a Lot ^_^
See Ya
sh0dan
21st March 2003, 12:03
Use letterbox() to black out parts of existing video.
Use Addborders() to add borders without overwriting existing video.
Merlink
21st March 2003, 12:28
Tnx, i used this script:
#SVCD = 480x576
clip = AVIFileSource("i:\itarelease\[ita] scryed ep01 (knights).avi").bicubicresize(480,576).AddBorders(8,8,8,8)
return clip
but now i get a strange video...
All the Red colors, shifted to Blue and vice versa....
Where is my mistake? :D
Tnx again...
See Ya
Merlink
21st March 2003, 12:34
uhm...
I solved using DirectShowSource instead of AVIFileSource...
sh0dan
21st March 2003, 12:51
Use swapuv() - your file is probably DivX or MJPEG.
AviSource is in general more reliable than DirectShowSource
Merlink
21st March 2003, 13:48
Ok, i changed the code to:
[code]
clip = AviFileSource("i:\itarelease\[ita] scryed ep01 (knights).avi", false, "YUY2").BicubicResize(464,560).AddBorders(8,8,8,8)
return clip
[/clip]
or
[code]
AviFileSource("i:\itarelease\[ita] scryed ep01 (knights).avi", false).BicubicResize(464,560).AddBorders(8,8,8,8)
[/clip]
or the 2 combined...
(I changed the fourcc to xvid and solved the colorshifted problem)
now:
Mediaplayer opens it correctly ... no problems here...
Tmpeg / cce returns error...invalid video file source or similar
Tnx agaaaaaaain :D
See Ya
manono
21st March 2003, 15:10
Hi-
I suspect your resize and addborders will wind up giving you bad AR. I might suggest you use FitCD (http://shh.dvdboard.de/) to give you the correct values.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.