View Full Version : addborders, how to use different black borders??
darkfight
28th September 2005, 08:41
when i use the addborders filter the encoded mpeg2 movie looks all right but i can see the color of the borders even though its black its kinda black, faint black. i can see this when i play the mpeg2 movie in windows media player. how do i change the borders so they blend with the black background color of wmp?? in other words i dont wanna see the faint black borders in the final dvd movie that i will make.
hrlslcbr
28th September 2005, 23:38
If you want to make a DVD, you must leave that 'not so black' colour as such. The blackest black you can get for DVD authoring is 16,16,16, and not the 0,0,0 you want. (all those numbers are RGB values).
darkfight
29th September 2005, 00:05
that is all?? its that simple?? i have one question how do you make the video less pixelated?? i guess the term is artefacts....not sure. my videos tend to have those i want my avi to look like a dvd.
hrlslcbr
29th September 2005, 00:27
It depends. If the original video looks better, then you could encode it again with higher bitrate. If that blocky video is the 'original' you have, it's impossible to make it look like a DVD film.
darkfight
29th September 2005, 01:12
no the original is a dvd rip. but is there another way of taking that out the artefacts sorry im not really sure what that is. making it close without a higher bit rate???
darkfight
29th September 2005, 01:54
i have a question do i put the color in rgb or hex??
foxyshadis
29th September 2005, 09:30
The usual method of making encodes look nicer at lower bitrates is removing grain and even general smoothing if your needs are extreme enough. It won't be as visually interesting as the original but it won't be as ugly as your current encodes. Search for 'compressibility' for some options. Post-processing helps a lot too, of course.
Not sure what you mean by the last question, since rgb colors can be expressed in hex. Depending on where you put them they might be in a YUV colorspace however.
Edit: Oh, to the addborders function, duh. nm.
neily
29th September 2005, 09:33
Hex.
AddBorders(4,4,4,4,color=$FF0000) - red border
AddBorders(4,4,4,4,color=$00FF00) - green border
AddBorders(4,4,4,4,color=$0000FF) - blue border
Are you sure you want AddBorders() and not Letterbox()? Are you cropping first?
Wilbert
29th September 2005, 09:35
If you want to make a DVD, you must leave that 'not so black' colour as such. The blackest black you can get for DVD authoring is 16,16,16, and not the 0,0,0 you want. (all those numbers are RGB values).
No. Within AviSynth a RGB value of (0,0,0) corresponds with a YUV value of (16,16,16). Which means that if you feed a yuv clip to AddBorders, or a rgb clip which is converted to yuv later in your script, those black bars will have a yuv value of (16,16,16).
@darkfight,
Could you post your script, and the name of the encoder you used to create the mpeg-2?
i have a question do i put the color in rgb or hex??
If you mean decimal or hex, then both are possible.
darkfight
29th September 2005, 11:14
If you mean decimal or hex, then both are possible.
i was looking at the manual http://www.avisynth.org/ColorPresets wondering if i should use the hex or rgb value.
i was using quenc but the script that i was using is this i think not sure if this is accurate since i havent encoded in awhile.
avifileSource("C:\Documents and Settings\xbox 360\Desktop\movie sahara\mof-sahara.avi")
Lanczos4Resize(720,292).addborders(0,94,0,94)
changefps(29.97)
i kinda forgot about this, but refreshing my thoughts on this.
how do you use letterbox?? does letterbox have the color that i have in mind??
Wilbert
29th September 2005, 12:04
Could you upload a short mpeg-2 encoding? I'm pretty sure the black will be (16,16,16) in your mpeg-2. Perhaps something goes wrong during playback.
i was looking at the manual http://www.avisynth.org/ColorPresets wondering if i should use the hex or rgb value.
Both: $ff0000 or 255000000.
how do you use letterbox??
http://www.avisynth.org/Letterbox
sh0dan
29th September 2005, 20:00
No. Within AviSynth a RGB value of (0,0,0) corresponds with a YUV value of (16,16,16).
Wilbert of course means YUV calue of (16,127,127). :)
darkfight
29th September 2005, 21:55
Both: $ff0000 or 255000000.
what im confused i thought hex has # instead of $??? and wheres the commas in between??
Wilbert of course means YUV calue of (16,127,127).
and what is this color??? ......i dont really know what yuv is sorry.
i cant upload any encoded vids because i dont have a web page or anything to upload to atm. but will 16,16,16 do???
Wilbert
29th September 2005, 22:17
what im confused i thought hex has # instead of $???
Normally yes. But not in avs syntax, because '# blabla' are comments.
and wheres the commas in between??
There are none as you can see. When using hex notation, the left two digits is the red channel, the center two green and the right two blue.
and what is this color??? ......i dont really know what yuv is sorry.
Forget about this one. If you still want to know that, have a look at Q3.1 of the AviSynth faq (http://www.avisynth.org/Section+3%3A+Filters%2C+plugins+and+colorspaces#q3.1).
i cant upload any encoded vids because i dont have a web page or anything to upload to atm.
http://forum.doom9.org/showthread.php?t=96362
but will 16,16,16 do???
As i've explained, no it won't.
darkfight
29th September 2005, 22:27
so i can use the $ or # no comma format?? what color is 16,16,16?? the encoded video has no playback problems when i play it in wmp the borders are faint black compared to the black background in wmp. if i encode in quenc with the aspect ratio set there instead of using a script for adding borders the borders of that encoded video matches the wmp background so you cant even see the borders of that mpeg2 file. i didnt use any of the colors i just used default i didnt specify a color.
Wilbert
29th September 2005, 22:39
Relax and read a little bit before responding.
so i can use the $ or # no comma format??
You have to use $. See the examples of Neily.
what color is 16,16,16??
R=16,G=16,B=16 is a little bit grey. R=0,G=0,B=0 is pure black.
the encoded video has no playback problems when i play it in wmp the borders are faint black compared to the black background in wmp.
Just upload a few frames of that MPEG-2 clip, so that i can find out what color the borders have.
darkfight
29th September 2005, 23:55
so what do i use $ or #??? cuz in it shows # for hex. refresh my mind a bit cuz i havent use hex in awhile. so i can use the no comma format 000 for 0 and 001 for 1 and 014 for 14???
darkfight
30th September 2005, 00:05
is there another filter that i can use besides this?? maybe i should look at letterbox huh..
neily
30th September 2005, 00:06
darkfight,
Once again I would raise the suspicion that what you want is LetterBox() not AddBorders(). If you have some garbage at the screen edges, then you either Crop() and then AddBorders() if you want to retain the original dimensions and the garbage is assymetric (be careful not to screw with field order), or simply use LetterBox() if it is symmetric or you don't mind it being assymetric, to cover it up.
In addition, depending on encoding factors, you may end up with not completely uniform borders, for instance if the border width is not a multiple of the DCT block size, or if the encoder does some pre-filtering of it's own. CCE will usually do this unless you tell it not to.
darkfight
30th September 2005, 00:18
how do you use letterbox?? and i was trying to figure out how to use crop and addborders together but i end up with the same color problem. does letterbox resize it to the aspect ratio you would like? and how?
neily
30th September 2005, 00:41
darkfight,
I was writing my last post whilst you were writing yours. A few comments.
Number 1 is to remove the file and link. I don't think that DreamWorks or Doom9 forum would be entirely happy about uploading this material to a public server!
Number 2 is not to upload such a large file to such a slow server.
Number 3 is having viewed (and immediately deleted) the file I really can't see what your border problem is visually - a minor amount of encoding artefacts.
Number 4 is that the video is 720x600 pixels!!! As I previously suspected, you are messing up somewhere, and should probably just be using letterboxing, if anything at all. And if you have borders that are not integrals of 16, you are going to get encoding artefacts in them anyway.
Number 5 is that if the target device is a TV, these borders will not be visible as they are cropped off by the TV. If your target device is a PC, there are better codecs than MPEG2, especially if your clip is representative of the bit rate you intend to use.
Number 6 is read the FAQ.
darkfight
30th September 2005, 01:10
Number 6 is read the FAQ.
what faq??
so your saying the mpeg2 video wont have the borders noticed on a tv?? is that what you ment by the tv cropping it??? my tv is not a 16:9 tv its 4:3. what are artefacts? are those the grainy pixels?? and the video is not 720x600 its 720x480 this is the script
aviSource("C:\Documents and Settings\xbox 360\Desktop\vidz\Madagaskar xvid\Madagaskar xvid.avi")
Lanczos4Resize(720,480).addborders(0,60,0,60)
changefps(29.97)
SSRC(48000)
do i have to remove the link?? because the only way to show the fainted borders is to look at the video thru wmp.
darkfight
30th September 2005, 02:08
is there any way i can encode this video in quenc using only quenc to change my aspect ratio to 16:9 or 2.21:1 instead of using a script to resize the aspect ratio???
Abond
30th September 2005, 08:14
To answer your last question: No, there isn't a way. You need script.
You totaly misunderstand the AddBorders routine. It ADD borders. So in your case indeed the video is 720x600. You can calculate it yourself. Firstly you resize to 480, then you add 60 pixels to the top and 60 pixels to the bottom. 480+60+60=600. So you end up with 720x600.
darkfight
30th September 2005, 08:33
To answer your last question: No, there isn't a way. You need script.
You totaly misunderstand the AddBorders routine. It ADD borders. So in your case indeed the video is 720x600. You can calculate it yourself. Firstly you resize to 480, then you add 60 pixels to the top and 60 pixels to the bottom. 480+60+60=600. So you end up with 720x600.
i didnt misunderstand i just didnt have enough time to figure that out with the many things im doing at the same time. i dont have that time and luxury like i do before im under serious pressure here something you prolly would or wouldnt understand. any how i wouldve figure that out eventually. but thanks for pointing that out i guess...anyway i was referring to the video itself not the whole screen. btw when i use quenc to resize the aspect ratio i think as far as i remember the video itself is bigger than when i use a script of avisynth meaning the borders are a bit smaller like half a cm. but the borders are identical to the background black color of wmp. which im trying to achieve here.
CWR03
30th September 2005, 09:22
neily, you also could have added a Number 7: Read the forum rules, especially rule #6. Madagascar is not yet available on DVD, therefore darkfight is working with "illegally obtained copyrighted material" and is not deserving of any further help here on this matter.
neily
30th September 2005, 12:35
CWR03,
Yeah, I was going to add a Number 7, but I always feel a bit regretful after if ever I come over too strong. I'm with you though, no more help from me.
darkfight
30th September 2005, 21:43
fine i will take the video off but how else can ppl see what i mean about the faint black borders??
CWR03
30th September 2005, 23:58
It doesn't matter - this site operates under the constraints of "Fair Use." It's bad enough that you're asking for help with DVD material you do not own, but clearly the material in question has not been made available on DVD at all. Did you not read rule #6?
darkfight
1st October 2005, 01:00
i was asked to upload the clip or any clip that has the border color problem so i was merely following the mod, i couldve picked a dvd that was out already so y are you so concerned?? this is a mod problem not yours.
Guest
1st October 2005, 01:32
Actually it's your problem. Striked for rule 6.
darkfight
1st October 2005, 02:36
whatever.
darkfight
1st October 2005, 02:44
Just upload a few frames of that MPEG-2 clip, so that i can find out what color the borders have.
he told me to upload the clip so what gives???
Guest
1st October 2005, 02:55
He didn't know it was illegal, and you did. Please drop it.
:readrule:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.