[FFmpeg-user] Creating an advanced filter effect that repeats the outer pixels

Jesper Taxbøl jesper at taxboel.dk
Mon Jun 8 00:57:20 CEST 2015


This works (im using a 1440x1440 test video):


/usr/local/bin/ffmpeg -y -i test.MP4  -t 10 -filter_complex
"[0:v:0]crop=1440:8:0:720[OUT]" -c:v libx264 -pix_fmt yuv420p -preset
ultrafast -tune fastdecode -tune zerolatency -map [OUT] out.mp4


This does not (I change the height in the scale from 8 to 1):


/usr/local/bin/ffmpeg -y -i test.MP4  -t 10 -filter_complex
"[0:v:0]crop=1440:1:0:720[OUT]" -c:v libx264 -pix_fmt yuv420p -preset
ultrafast -tune fastdecode -tune zerolatency -map [OUT] out.mp4

ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers

  built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM
3.6.0svn)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libfaac
--enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus
--enable-libquvi --enable-libx265 --enable-nonfree --enable-vda

  libavutil      54. 20.100 / 54. 20.100

  libavcodec     56. 26.100 / 56. 26.100

  libavformat    56. 25.101 / 56. 25.101

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 11.102 /  5. 11.102

  libavresample   2.  1.  0 /  2.  1.  0

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc    53.  3.100 / 53.  3.100

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe67a00da00] UDTA parsing failed retrying raw

    Last message repeated 1 times

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.MP4':

  Metadata:

    major_brand     : mp42

    minor_version   : 0

    compatible_brands: isomavc1mp42

    creation_time   : 2015-06-03 16:28:40

    original_format : KODAK

    comment         : KODAK PIXPRO SP360

  Duration: 00:00:28.23, start: 0.000000, bitrate: 17023 kb/s

    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1440x1440, 15707 kb/s, 30 fps, 30 tbr, 30k tbn, 60k tbc (default)

    Metadata:

      rotate          : 270

      creation_time   : 2015-06-03 16:28:40

      handler_name    : DataHandler

      encoder         : h264

    Side data:

      displaymatrix: rotation of 90.00 degrees

    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz,
stereo, fltp, 128 kb/s (default)

    Metadata:

      creation_time   : 2015-06-03 16:28:40

      handler_name    : DataHandler

[Parsed_crop_0 @ 0x7fe679e001c0] Invalid too big or non positive size for
width '1440' or height '0'

[Parsed_crop_0 @ 0x7fe679e001c0] Failed to configure input pad on
Parsed_crop_0

I hope it gives enough info.


2015-06-08 0:38 GMT+02:00 Lou <lou at lrcd.com>:

> On Sun, Jun 7, 2015, at 01:57 PM, Jesper Taxbøl wrote:
> >
> > I have tried copying the edge pixel, but the scale filter fails when I
> > try to scale to the needed size.
>
> Please show your ffmpeg command and the complete console output.
>
> > Is there an other way to achieve this clamp effect in a advanced filter
> > chain?
>
> What have you tried? It's hard to suggest an alternative without knowing
> what you already tried.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>



-- 
Jesper Taxbøl
+45 61627501


More information about the ffmpeg-user mailing list