VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Member
    Join Date
    May 2009
    Location
    Yugoslavia
    Search Comp PM
    Hi everyone

    I got problem with ffmpeg: I am trying to encode some unsompressed avi (captured using dscaler) to x264 and crop picture eddges.

    Command line that I am using is:
    ffmpeg -i in.avi -acodec libfaac -ab 128k -cropleft 64 -vcodec libx264 -vpre %ffmpeg_hq% -b 1024k -bt 1024k -threads 0 -y out.mp4
    %ffmpeg_hq% is path to x264 preset for high quality

    After starting this I immediately get: "error cropping picture" all over the screen. And if I remove -cropleft 64 from the command everything works fine (but picture doesn't get cropped ).

    Is there any solution or workaround to this? I am using ffmpeg since it's easy to script, so any script frendly solution that does encoding and DOESN'T produce temporary files is aceptable for me.

    My ffmpeg -version output (it should be the latest)
    Code:
    D:\deponija\tv_grab\experiment>ffmpeg -version
    FFmpeg version SVN-r18695-Sherpya, Copyright (c) 2000-2009 Fabrice Bellard, et al.
      libavutil     50. 3. 0 / 50. 3. 0
      libavcodec    52.27. 0 / 52.27. 0
      libavformat   52.32. 0 / 52.32. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    0. 5. 0 /  0. 5. 0
      libswscale     0. 7. 1 /  0. 7. 1
      libpostproc   51. 2. 0 / 51. 2. 0
      built on Apr 27 2009 01:52:58, gcc: 4.5.0 20090426 (experimental)
    FFmpeg SVN-r18695-Sherpya
    libavutil     50. 3. 0 / 50. 3. 0
    libavcodec    52.27. 0 / 52.27. 0
    libavformat   52.32. 0 / 52.32. 0
    libavdevice   52. 2. 0 / 52. 2. 0
    libavfilter    0. 5. 0 /  0. 5. 0
    libswscale     0. 7. 1 /  0. 7. 1
    libpostproc   51. 2. 0 / 51. 2. 0

    Error output that I get for cropping:
    Code:
    FFmpeg version SVN-r18695-Sherpya, Copyright (c) 2000-2009 Fabrice Bellard, et al.
      libavutil     50. 3. 0 / 50. 3. 0
      libavcodec    52.27. 0 / 52.27. 0
      libavformat   52.32. 0 / 52.32. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libavfilter    0. 5. 0 /  0. 5. 0
      libswscale     0. 7. 1 /  0. 7. 1
      libpostproc   51. 2. 0 / 51. 2. 0
      built on Apr 27 2009 01:52:58, gcc: 4.5.0 20090426 (experimental)
    [avi @ 0x3ebb80]non-interleaved AVI
    Input #0, avi, from 'ds000.avi':
      Duration: 00:00:01.34, start: 0.000000, bitrate: 167482 kb/s
        Stream #0.0: Video: rawvideo, yuyv422, 720x576, 25 tbr, 25 tbn, 25 tbc
        Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
    [libx264 @ 0x1789c30]using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
    [libx264 @ 0x1789c30]profile High, level 3.0
    Output #0, mp4, to 'out.mp4':
        Stream #0.0: Video: libx264, yuv420p, 656x576, q=10-51, 1024 kb/s, 25 tbn, 25 tbc
        Stream #0.1: Audio: libfaac, 44100 Hz, stereo, s16, 128 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press [q] to stop encoding
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    error cropping picture
    frame=    0 fps=  0 q=-2.0 Lsize=      12kB time=1.25 bitrate=  77.2kbits/s
    video:0kB audio:11kB global headers:1kB muxing overhead 4.543884%
    [libx264 @ 0x1789c30]final ratefactor: 24.94
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    See https://forum.videohelp.com/topic343287-120.html#1922560 . I guess you need to use avisynth to be able to crop.
    Quote Quote  



Similar Threads

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