[FFmpeg-user] {Spam?} Re: crop and fade

RAPPAZ Francois francois.rappaz at unifr.ch
Fri Nov 20 10:11:45 EET 2020


Am 20.11.2020 um 07:27 schrieb RAPPAZ Francois via ffmpeg-user:
> Am 19.11.2020 um 16:37 schrieb RAPPAZ Francois via ffmpeg-user:
>>>> Hi
>>>>
>>>> I tried the fading between pictures and cropping to there original 
>>>>  size (5152 x 3864), so that they are not distorted
>>>>
>>>>  ffmpeg -y -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^ -vf 
>>>>  zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:sc
>>>>  en
>>>>  e=100 ^ -pix_fmt yuv420p -s 5152x3864 out.mp4
>>>>
>>>>  It seems that -s 5152x3864 destroy the fading effect achieved with 
>>>>  the second line
>>>>
>>>>  How can I correct this ?
>>>  You must bring all pictures to the same size _before_ you read them with FFmpeg.
>>>  Re-scaling one image with FFmpeg:
>>>  ffmpeg -i input.jpg -s 5152x3864 output.jpg Re-scaling all images 
>>>  with FFmpeg:
>>> I think that's only possible with a loop in a script. Too complicated.
>>> Re-scaling one image with IrfanView:
>>> Open the image, Image --> Resize/Resample, Save as...
>>>
>>> Michael
>> But my individual pictures are already at 5152x3864. The problem is 
>> that when I do the above command without -s ...x... they are stretched in the horizontal axis 
>>What should be the size to use for my pictures to be displayed  without distortion ?

>And the individual images are not stretched in the horizontal axis?
>Please show the uncut console output.
? you mean "are not stretched verticaly "
U:\docs\rappaz\bcu_cal2>ffmpeg -y -i %02d.JPG -i SligoAir_WhiteBlanket.mp3 -vf zoompan=d=10:fps=1,framerate=fps=25:interp_start=0:interp_end=255:scene=100 -pix_fmt yuv420p out.mp4
ffmpeg version 2020-11-14-git-46e362b765-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.0 (Rev3, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      56. 60.100 / 56. 60.100
  libavcodec     58.112.103 / 58.112.103
  libavformat    58. 64.100 / 58. 64.100
  libavdevice    58. 11.102 / 58. 11.102
  libavfilter     7. 89.100 /  7. 89.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, image2, from '%02d.JPG':
  Duration: 00:00:00.56, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 5152x3864, 25 tbr, 25 tbn, 25 tbc
Input #1, mp3, from 'SligoAir_WhiteBlanket.mp3':
  Duration: 00:02:15.21, start: 0.025057, bitrate: 169 kb/s
    Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 169 kb/s
    Metadata:
      encoder         : LAME3.100
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (mp3 (mp3float) -> aac (native))
Press [q] to stop, [?] for help
[Parsed_framerate_1 @ 00000217d55996c0] time base:1/1 -> 1/25 exact:1
[Parsed_framerate_1 @ 00000217d55996c0] fps -> fps:25/1 scene score:100.000000 interpolate start:0 end:255
[swscaler @ 00000217d5599f40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217d60b9000] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217d60bd000] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 00000217d552f040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 00000217d552f040] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 00000217d552f040] 264 - core 161 r3027 4121277 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    encoder         : Lavf58.64.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(tv, progressive), 1280x720, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
      encoder         : Lavc58.112.103 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.112.103 aac
[swscaler @ 00000217da153180] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3099f40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3099f40] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3099f40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3099f40] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e30a86c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e30a86c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e30ea040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e30ea040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e305ca00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e305ca00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e305ca00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e305ca00] deprecated pixel format used, make sure you did set range correctly
[image2 @ 00000217d54fe440] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[swscaler @ 00000217e306b1c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3060e40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e30612c0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3061740] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3061c40] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3062180] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3082200] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3087f00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3088500] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e316a100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3088b80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3088b80] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3089240] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3089940] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e31d0ac0] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e31d0ac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e31d0ac0] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e316a100] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3173080] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3082200] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3082200] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3082200] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3082200] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3082200] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3193a00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3193a00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e3193a00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3193a00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3193a00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e3193a00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217da195040] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e307b300] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e307b300] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e307b300] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e307ce00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e307ce00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e307ce00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e307ce00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e307eb00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e307eb00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 00000217e307eb00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e307eb00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e307eb00] deprecated pixel format used, make sure you did set range correctly
    Last message repeated 1 times
[swscaler @ 00000217e307eb00] deprecated pixel format used, make sure you did set range correctly
frame= 3500 fps= 69 q=-1.0 Lsize=   12785kB time=00:02:19.88 bitrate= 748.7kbits/s speed=2.75x
video:10551kB audio:2122kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.885549%
[libx264 @ 00000217d552f040] frame I:14    Avg QP:14.23  size:269354
[libx264 @ 00000217d552f040] frame P:1013  Avg QP:16.89  size:  6768
[libx264 @ 00000217d552f040] frame B:2473  Avg QP:23.53  size:    71
[libx264 @ 00000217d552f040] consecutive B-frames:  5.5%  0.7%  0.8% 93.0%
[libx264 @ 00000217d552f040] mb I  I16..4:  4.3% 54.7% 41.0%
[libx264 @ 00000217d552f040] mb P  I16..4:  0.7%  1.2%  0.2%  P16..4: 14.0%  1.8%  2.8%  0.0%  0.0%    skip:79.2%
[libx264 @ 00000217d552f040] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.5%  0.0%  0.0%  direct: 0.1%  skip:99.4%  L0:23.4% L1:57.6% BI:19.1%
[libx264 @ 00000217d552f040] 8x8 transform intra:56.6% inter:63.1%
[libx264 @ 00000217d552f040] coded y,uvDC,uvAC intra: 66.4% 65.6% 44.7% inter: 3.8% 3.9% 0.6%
[libx264 @ 00000217d552f040] i16 v,h,dc,p:  6% 54% 10% 30%
[libx264 @ 00000217d552f040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 39% 24%  3%  5%  3%  9%  3%  9%
[libx264 @ 00000217d552f040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 32% 11%  6%  7%  6% 11%  6% 12%
[libx264 @ 00000217d552f040] i8c dc,h,v,p: 54% 34%  7%  6%
[libx264 @ 00000217d552f040] Weighted P-Frames: Y:15.8% UV:14.4%
[libx264 @ 00000217d552f040] ref P L0: 53.3% 28.4% 17.7%  0.5%  0.1%
[libx264 @ 00000217d552f040] ref B L0: 79.5% 15.9%  4.6%
[libx264 @ 00000217d552f040] ref B L1: 98.4%  1.6%
[libx264 @ 00000217d552f040] kb/s:617.33
[aac @ 00000217d5530b40] Qavg: 146.295
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list