VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Apr 2024
    Location
    Copenhagen, Denmark
    Search Comp PM
    I've done cropping many times before, but now, it keeps failing for reasons I can't figure out...

    I can do
    Code:
    ffmpeg.exe -i 1920x1080.mkv -map 0 -c:v libx265 -crf 23 -c:a copy -c:s copy output.mkv
    and it works perfectly - but when trying to crop, doing
    Code:
    ffmpeg.exe -i 1920x1080.mkv -map 0 -c:v libx265 -crf 23 -c:a copy -c:s copy -vf crop=1463:1080:229:0 cropped.mkv
    gives
    Code:
    [Parsed_crop_0 @ 00000202e88817c0] Invalid too big or non positive size for width '1463' or height '1080'
    [Parsed_crop_0 @ 00000202e88817c0] Failed to configure input pad on Parsed_crop_0
    [vf#0:3 @ 00000202e883e340] Error reinitializing filters!
    [vf#0:3 @ 00000202e883e340] Task finished with error code: -22 (Invalid argument)
    [vf#0:3 @ 00000202e883e340] Terminating thread with return code -22 (Invalid argument)
    [vost#0:3/libx265 @ 00000202ea4c26c0] Could not open encoder before EOF
    [vost#0:3/libx265 @ 00000202ea4c26c0] Task finished with error code: -22 (Invalid argument)
    [vost#0:3/libx265 @ 00000202ea4c26c0] Terminating thread with return code -22 (Invalid argument)
    x265 [info]: HEVC encoder version 3.5+117-b34fb2c77
    x265 [info]: build info [Windows][GCC 13.2.0][64 bit] 8bit+10bit+12bit
    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    x265 [info]: Main profile, Level-4 (Main tier)
    x265 [info]: Thread pool created using 8 threads
    x265 [info]: Slices                              : 1
    x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
    x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 3
    x265 [info]: Keyframe min / max / scenecut / bias  : 23 / 250 / 40 / 5.00
    x265 [info]: Lookahead / bframes / badapt        : 20 / 4 / 2
    x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
    x265 [info]: References / ref-limit  cu / depth  : 3 / off / on
    x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
    x265 [info]: Rate Control / qCompress            : CRF-23.0 / 0.60
    x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
    x265 [info]: tools: b-intra strong-intra-smoothing lslices=6 deblock sao
    [out#0/matroska @ 00000202e883d100] Nothing was written into output file, because at least one of its streams received no packets.
    frame=    0 fps=0.0 q=27.9 Lq=0.0 size=       0KiB time=N/A bitrate=N/A speed=N/A
    x265 [info]: frame I:      1, Avg QP:27.41  kb/s: 102.43
    x265 [info]: frame P:     20, Avg QP:25.21  kb/s: 2248.84
    x265 [info]: frame B:     56, Avg QP:28.34  kb/s: 778.66
    x265 [info]: Weighted P-Frames: Y:15.0% UV:0.0%
    
    encoded 77 frames in 3.07s (25.08 fps), 1151.74 kb/s, Avg QP:27.51
    Conversion failed!
    Can anyone explain why this fails? As I said, I never had this problem before!?
    Quote Quote  
  2. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    My guess: You want to crop video to an odd width, which is probably illegal in YUV 4:2:0 chroma subsampling.
    Quote Quote  
  3. Agree with LigH.de
    crop=1463:1080:229:0
    Quote Quote  
  4. Member
    Join Date
    Apr 2024
    Location
    Copenhagen, Denmark
    Search Comp PM
    Well, that hasn't been a problem before - and changing it to 1464:1080:228:0 still gives the same error...
    Quote Quote  
  5. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Rander View Post
    Well, that hasn't been a problem before - and changing it to 1464:1080:228:0 still gives the same error...
    What is the resolution of the source?
    Quote Quote  
  6. Tested.
    Your commandline works well, with 1463:1080:229:0 (resulting 1462x1080) and 1464:1080:228:0 (resulting 1464x1080).
    Update your ffmpeg version.
    Quote Quote  
  7. Member
    Join Date
    Apr 2024
    Location
    Copenhagen, Denmark
    Search Comp PM
    Originally Posted by ProWo View Post
    Tested.
    Your commandline works well, with 1463:1080:229:0 (resulting 1462x1080) and 1464:1080:228:0 (resulting 1464x1080).
    Update your ffmpeg version.
    I have V7.0 - is there a newer one?
    Quote Quote  
  8. Member
    Join Date
    Apr 2024
    Location
    Copenhagen, Denmark
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Rander View Post
    Well, that hasn't been a problem before - and changing it to 1464:1080:228:0 still gives the same error...
    What is the resolution of the source?
    1920*1080 (as I thought I had made clear with the filename).
    Quote Quote  
  9. Originally Posted by Rander View Post
    Originally Posted by ProWo View Post
    Tested.
    Your commandline works well, with 1463:1080:229:0 (resulting 1462x1080) and 1464:1080:228:0 (resulting 1464x1080).
    Update your ffmpeg version.
    I have V7.0 - is there a newer one?
    I've tested with this one:
    https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
    Quote Quote  
  10. Member
    Join Date
    Jun 2022
    Location
    Dublin
    Search Comp PM
    Could it be that the source isn’t really 1080?
    Quote Quote  



Similar Threads

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