VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. I want to add black bars to a MP4 video file. Someone can help me...which tool i use for this...
    Quote Quote  
  2. There's a switch - someone that wants to add black bars. You might mention what it's for. For example, UncropMKV will add them back to make downloaded MKVs Blu-Ray compliant again.

    And you realize adding the bars means reencoding the whole thing? So, The AviSynth AddBorders command will add back black on any and all sides, however much black you might want. But you'll need to know some AviSynth to be able to use it. There are some programs (MeGUI, for example) that use AviSynth scripts which they allow you to edit and modify.
    Last edited by manono; 31st Oct 2015 at 21:48.
    Quote Quote  
  3. .
    Very simple (since "wisiwig") with "AviDemux" (freeware) — though almost everybody usually asks how to remove, them black stripes... but well...

    The video has to be recoded for sure. So, choose a codec (may be / probably): Video output: "Mpeg4 AVC (x264)".

    If original .aac audio, "Audio output" can be set to "Copy" (no recode). Otherwise, you may need audio recoding — to .aac (with an AVC H.264 video stream).

    To add borders:

    under Video output, click "Filters" button. And under "Available filters", double click "Add borders"; then set their heights (equal or not): Top: XX pixels, Bottom: XX or YY * px. (all even numbers!).

    * Check original video height in pixels and, when adding borders, try to end up with a dividable by 8 total height (or total width, if you want vertical bars), or better: 16 (or, if too difficult, depending on personal requirements, by 4; by 2 works also... at least with "x264" codec / beware of any odd number, either refused or often problematic).


    .
    Last edited by bulgom; 31st Oct 2015 at 19:00.
    Quote Quote  
  4. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    An alternative is FFMpeg, since you must re=encode anyway, and use the pad filter setting the size to a common one that would take care of the divisible by 4,8,16 mentioned earlier:

    Click image for larger version

Name:	ScreenHunter_173 Oct. 31 22.33.jpg
Views:	7962
Size:	75.3 KB
ID:	34286Click image for larger version

Name:	ScreenHunter_173 Oct. 31 22.41.jpg
Views:	7766
Size:	47.3 KB
ID:	34287Click image for larger version

Name:	ScreenHunter_173 Oct. 31 22.35.jpg
Views:	7706
Size:	120.2 KB
ID:	34288

    or use the alternative bars as:
    Click image for larger version

Name:	ScreenHunter_173 Oct. 31 22.48.jpg
Views:	7675
Size:	46.9 KB
ID:	34289Click image for larger version

Name:	ScreenHunter_173 Oct. 31 22.51.jpg
Views:	7832
Size:	120.9 KB
ID:	34290Click image for larger version

Name:	ScreenHunter_173 Oct. 31 22.49.jpg
Views:	7672
Size:	64.4 KB
ID:	34291
    Quote Quote  
  5. Originally Posted by Budman1 View Post
    An alternative is FFMpeg, since you must re=encode anyway, and use the pad filter setting the size to a common one that would take care of the divisible by 4,8,16 mentioned earlier:

    Image
    [Attachment 34286 - Click to enlarge]
    Image
    [Attachment 34287 - Click to enlarge]
    Image
    [Attachment 34288 - Click to enlarge]


    or use the alternative bars as:
    Image
    [Attachment 34289 - Click to enlarge]
    Image
    [Attachment 34290 - Click to enlarge]
    Image
    [Attachment 34291 - Click to enlarge]
    Which Tool are you use in this screenshots ?
    Quote Quote  
  6. Any idea to rotate a video 90 degree right ?
    Quote Quote  
  7. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    The program is something I wrote that does most of what people ask for instructions on. I use it to create the script without taxing my memory and verify it works. Then I post the images for people who are not familiar with FFMpeg or AVIsynth so they can match the script parts to the labeled image. It was designed to stop with the scripts or avisynths saved as files for people to check if they need to learn or change if they already know them.

    Rotating for 90, 180,270 is easily done with the transpose/hflip/vflip:

    -vf transpose=1 (rotate 90)
    -vf transpose=2 (rotate 270)
    -vf vflip,hflip (rotate 180)

    Name:  ScreenHunter_174 Nov. 01 12.56.jpg
Views: 6743
Size:  29.1 KBClick image for larger version

Name:	ScreenHunter_173 Nov. 01 12.52.jpg
Views:	831
Size:	73.4 KB
ID:	34298

    Or if you want by degrees, the later ffmpegs have "rotate" added as a -vf filter. Plus degrees for clockwise and - degrees (-vf "rotate=-10*PI/180") for counterclockwise. Be sure to use CAPITAL letters for the PI/180

    Name:  ScreenHunter_175 Nov. 01 13.00.jpg
Views: 6710
Size:  29.1 KBClick image for larger version

Name:	ScreenHunter_174 Nov. 01 13.00.jpg
Views:	726
Size:	74.6 KB
ID:	34300
    Last edited by Budman1; 1st Nov 2015 at 13:25.
    Quote Quote  
  8. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    You can also use avisynth and get creative:

    Code:
    v1 = DirectShowSource("C:\Users\Bud\Desktop\untitled.rm").converttoyv12.lanczosresize(160,160).Rotate(-45) 
    v2 = v1.TurnLeft()
    v3 = v1.TurnRight()
    v4 = v3.TurnRight()
    v5 = v3.TurnLeft()
    v6 = v3.turnRight()
    StackVertical(StackHorizontal(v2,v1,v3),  StackHorizontal(v5,v4,v6))
    Rotate(45)
    Click image for larger version

Name:	ScreenHunter_175 Nov. 01 13.08.jpg
Views:	642
Size:	30.5 KB
ID:	34301
    Last edited by Budman1; 2nd Nov 2015 at 00:36.
    Quote Quote  
  9. Member
    Join Date
    Mar 2011
    Location
    India
    Search Comp PM
    Originally Posted by Budman1 View Post

    Image
    [Attachment 34288 - Click to enlarge]



    Which Tool are you use in this screenshots ?
    @ Budman1 - I have just started learning FFMpeg commands. The program what you have used as viewed in the screenshot might be useful to me for further learning. Would you like to share it with me. Thanks
    Quote Quote  
  10. Yes, (SOLVE) AviDemux best working...
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!