Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
30th December 2018, 12:34 | #2 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Wrong forum.
Maybe move to New and alternative a/v containers, or some other forum. EDIT: To below. I just wanted for you to get the best answer, you may not have gotten any answers in this forum.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 30th December 2018 at 14:11. |
30th December 2018, 15:34 | #4 | Link |
Registered User
Join Date: Oct 2018
Posts: 35
|
Is this what you are trying to do:
YourVideo = ColorBars(640,480) # This should be the video you are adding black bars to. I'm using ColorBars as a test. BarH = 100 # Your desired height of each black bar BarW = YourVideo.Width # Width of black bar has to be the same as your video BlackBar = BlankClip(YourVideo, Width = BarW, Height = BarH) # Create a black bar using your video as a template (so that the pixel type, fps, etc. match) FinalVideo = StackVertical(BlackBar, YourVideo, BlackBar) # Place a black bar on top and below your video Return FinalVideo |
30th December 2018, 15:54 | #5 | Link |
Suspended for forum rule violations
Join Date: Jul 2006
Posts: 528
|
See this post: https://forum.doom9.org/showthread.p...25#post1861425
|
30th December 2018, 16:20 | #6 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
__________________
Groucho's Avisynth Stuff |
|
30th December 2018, 19:03 | #7 | Link | |
Suspended for forum rule violations
Join Date: Jul 2006
Posts: 528
|
Quote:
|
|
30th December 2018, 19:23 | #8 | Link | |
Registered User
Join Date: Oct 2018
Posts: 35
|
Quote:
|
|
30th December 2018, 22:27 | #10 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Not sure that it can, I assumed that you do not want to re-encode the clip because of the ffmpeg requirement.
But In Avisynth eg, Code:
BTOP=100 # or whatever, best be a multiple of two BBOT=100 # Ditto AviSource("...") AddBorders(0,BTOP,0,BBOT,Color=$000000) # Black Return Last I do note that the old Letterbox docs were wrong, Letterbox(clip,int top,int bottom,int "left",int "right",int "color") Left and Right were never args to letterbox, should have been x1 and x2.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
31st December 2018, 12:48 | #11 | Link |
Suspended for forum rule violations
Join Date: Jul 2006
Posts: 528
|
@StainlessS
Thanks for trying to help. I really don't understand how avisynth works. It would be ideal if encoding could be avoided because it's very timeconsuming. I don't ask you to micromanage me but I need more guidance with values and how to "load" these values into avisynth, like using a batfile if possible? Basically its about to pad an mkv, 3840x1598 to 3840x2160 keeping correct color values. Kind regards Code:
Color primaries : BT.2020 Transfer characteristics : PQ Matrix coefficients : BT.2020 non-constant Mastering display color primaries : Display P3 Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2 Maximum Content Light Level : 1125 cd/m2 Maximum Frame-Average Light Level : 248 cd/m2 |
31st December 2018, 13:12 | #12 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
So, since you already have a batch file that adds them with ffmpeg and you learned in the other thread how to adjust the colour metadata you're good to go. You don't need Avisynth in this case.
__________________
Groucho's Avisynth Stuff |
|
31st December 2018, 13:31 | #13 | Link | |
Suspended for forum rule violations
Join Date: Jul 2006
Posts: 528
|
Quote:
Regards |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|