VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. i have a video with a resolution of 1920:870
    i want to make it 1920:1080 by padding 105px on top (odd number) and 105px on bottom (total of 210px=even number)

    i used:
    pad="1920:1080:0:105"

    but the result is... it add 104px on top and 106px on bottom.

    i tried to use
    pad="1920:1080:0:-105"

    but same result...

    hope someone can help me thanks and have a nice day.
    Quote Quote  
  2. Originally Posted by noctis90210 View Post
    i have a video with a resolution of 1920:870
    i want to make it 1920:1080 by padding 105px on top (odd number) and 105px on bottom (total of 210px=even number)

    i used:
    pad="1920:1080:0:105"

    but the result is... it add 104px on top and 106px on bottom.

    i tried to use
    pad="1920:1080:0:-105"

    but same result...

    hope someone can help me thanks and have a nice day.



    Odd numbers are not allowed if your source video has 4:2:0 chroma subsampling (color information is 1/2 width, 1/2 height; odd number divided by 2 results in non integer value - and you can't have 1/2 a pixel). One workaround is to convert to 4:4:4 (full color samples) before padding (and back to 4:2:0 if required)

    Code:
    -vf "format=yuv444p,pad='1920:1080:0:105',format=yuv420p"
    Quote Quote  
  3. Originally Posted by poisondeathray View Post
    Odd numbers are not allowed if your source video has 4:2:0 chroma subsampling (color information is 1/2 width, 1/2 height; odd number divided by 2 results in non integer value - and you can't have 1/2 a pixel). One workaround is to convert to 4:4:4 (full color samples) before padding (and back to 4:2:0 if required)

    Code:
    -vf "format=yuv444p,pad='1920:1080:0:105',format=yuv420p"
    tested your code and it worked... thanks for sharing your knowledge...
    Quote Quote  
  4. Originally Posted by noctis90210 View Post
    but the result is... it add 104px on top and 106px on bottom.
    You will NEVER see 1 pixel height difference.
    Quote Quote  



Similar Threads

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