[FFmpeg-user] zoompan: video is jerking around

Michael Koch astroelectronic at t-online.de
Sun Feb 7 14:24:43 CET 2016


Hi all,

I have a problem with the zoompan filter. The video is jerking around. 
This is especially visible when the zoom factor is quite high, as in the 
below example, where it varies over 100 frames from 5.0 to 5*1.005^99=8.19

Other question: What's the meaning of the "deprecated pixel format used" 
messages, and how can I avoid them?

Thanks,
Michael


ffmpeg -i Baum.JPG -vf 
"zoompan=z='if(eq(zoom,1),5,zoom*1.005)':d=100:x='iw/2-(iw/zoom/2)':y='ih/2-(i
h/zoom/2)'" -c:v mpeg4 -s 1800x1200 -b:v 5M -q:v 2 test.mp4
ffmpeg version N-78304-g37db3e8 Copyright (c) 2000-2016 the FFmpeg 
developers
   built with gcc 5.3.0 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r 
--enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b 
--enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm 
--enable-l
ibilbc --enable-libmodplug --enable-libmp3lame 
--enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex 
--enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-amrwbenc 
--enable-libvorbis --
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 
--enable-lib
x265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma 
--enable-d
ecklink --enable-zlib
   libavutil      55. 17.100 / 55. 17.100
   libavcodec     57. 24.101 / 57. 24.101
   libavformat    57. 24.100 / 57. 24.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 28.100 /  6. 28.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
[mjpeg @ 000000000050cae0] Changing bps to 8
Input #0, image2, from 'Baum.JPG':
   Duration: 00:00:00.04, start: 0.000000, bitrate: 2405737 kb/s
     Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 
5472x3648
[SAR 72:72 DAR 3:2], 25 tbr, 25 tbn, 25 tbc
File 'test.mp4' already exists. Overwrite ? [y/N] y
[swscaler @ 0000000000521100] deprecated pixel format used, make sure 
you did se
t range correctly
Output #0, mp4, to 'test.mp4':
   Metadata:
     encoder         : Lavf57.24.100
     Stream #0:0: Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1800x1200 
[SAR 32:
27 DAR 16:9], q=2-31, 5000 kb/s, 25 fps, 12800 tbn, 25 tbc
     Metadata:
       encoder         : Lavc57.24.101 mpeg4
     Side data:
       unknown side data type 10 (24 bytes)
Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
[swscaler @ 00000000044e2640] deprecated pixel format used, make sure 
you did se
t range correctly
[swscaler @ 00000000044e2640] Warning: data is not aligned! This can 
lead to a s
peedloss
[swscaler @ 0000000000554020] deprecated pixel format used, make sure 
you did se
t range correctly
[swscaler @ 00000000074b85a0] deprecated pixel format used, make sure 
you did se
t range correctly
[swscaler @ 000000000751ce20] deprecated pixel format used, make sure 
you did se
t range correctly
[swscaler @ 00000000078de9e0] deprecated pixel format used, make sure 
you did se
t range correctly
     Last message repeated 3 times
frame=    7 fps=0.0 q=2.0 size=    1592kB time=00:00:00.28 
bitrate=46575.0kbits/
[swscaler @ 00000000078de9e0] deprecated pixel format used, make sure 
you did se
t range correctly
     Last message repeated 15 times
frame=   23 fps= 22 q=2.0 size=    4469kB time=00:00:00.92 
bitrate=39791.2kbits/
[swscaler @ 00000000078de9e0] deprecated pixel format used, make sure 
you did se
t range correctly
     Last message repeated 15 times
frame=   39 fps= 25 q=2.0 size=    7424kB time=00:00:01.56 
bitrate=38987.2kbits/
[swscaler @ 00000000078de9e0] deprecated pixel format used, make sure 
you did se
t range correctly
     Last message repeated 16 times
frame=   56 fps= 27 q=2.0 size=    9829kB time=00:00:02.24 
bitrate=35947.0kbits/
[swscaler @ 00000000078de9e0] deprecated pixel format used, make sure 
you did se
t range correctly
     Last message repeated 16 times
frame=   73 fps= 28 q=2.0 size=   12295kB time=00:00:02.92 
bitrate=34493.6kbits/
[swscaler @ 00000000078de9e0] deprecated pixel format used, make sure 
you did se
t range correctly
     Last message repeated 16 times
frame=   90 fps= 29 q=2.0 size=   14192kB time=00:00:03.60 
bitrate=32294.8kbits/
[swscaler @ 00000000078de9e0] deprecated pixel format used, make sure 
you did se
t range correctly
     Last message repeated 9 times
frame=  100 fps= 29 q=2.0 Lsize=   15333kB time=00:00:04.00 
bitrate=31401.4kbits
/s speed=1.17x
video:15331kB audio:0kB subtitle:0kB other streams:0kB global 
headers:0kB muxing
  overhead: 0.009778%


More information about the ffmpeg-user mailing list