>> 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 ?
>The zoompan filter automatically rescales its input to 1280x720. >Override it by adding `s=5152x3864` as an option to the zoompan filter. >Remove the `-s` option from the command. I did this ffmpeg -y -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^ -vf zoompan=d=10:fps=1:s=5152x3864,framerate=fps=25:interp_start=0:interp_end=255:scene=100 ^ -pix_fmt yuv420p out.mp4 Which do not give any error but destroys the fading effect Could you give the complete command line ? Here is the start and end of the ouput U:\docs\rappaz\bcu_cal2>ffmpeg -y -i %02d.JPG -i SligoAir_WhiteBlanket.mp3 -vf zoompan=d=10:fps=1:s=5152x3864,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 @ 000001c85cb5b380] time base:1/1 -> 1/25 exact:1 [Parsed_framerate_1 @ 000001c85cb5b380] fps -> fps:25/1 scene score:100.000000 interpolate start:0 end:255 [swscaler @ 000001c85cb5cf40] deprecated pixel format used, make sure you did set range correctly [swscaler @ 000001c85d6323c0] deprecated pixel format used, make sure you did set range correctly [swscaler @ 000001c85d6363c0] deprecated pixel format used, make sure you did set range correctly [libx264 @ 000001c85caf00c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 000001c85caf00c0] profile High, level 6.0, 4:2:0, 8-bit [libx264 @ 000001c85caf00c0] 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), 5152x3864, 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 @ 000001c868359040] deprecated pixel format used, make sure you did set range correctly ..... [swscaler @ 000001c8684a9840] deprecated pixel format used, make sure you did set range correctly [swscaler @ 000001c8684a9840] deprecated pixel format used, make sure you did set range correctly frame= 3500 fps=3.7 q=-1.0 Lsize= 198691kB time=00:02:19.88 bitrate=11636.2kbits/s speed=0.147x video:196457kB audio:2122kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.056662% [libx264 @ 000001c85caf00c0] frame I:14 Avg QP:13.77 size:5037688 [libx264 @ 000001c85caf00c0] frame P:986 Avg QP:17.39 size:128773 [libx264 @ 000001c85caf00c0] frame B:2500 Avg QP:24.63 size: 1469 [libx264 @ 000001c85caf00c0] consecutive B-frames: 4.5% 0.7% 0.4% 94.4% [libx264 @ 000001c85caf00c0] mb I I16..4: 0.4% 96.8% 2.8% [libx264 @ 000001c85caf00c0] mb P I16..4: 0.2% 1.9% 0.2% P16..4: 12.1% 1.5% 2.4% 0.0% 0.0% skip:81.6% [libx264 @ 000001c85caf00c0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.6% 0.0% 0.0% direct: 0.2% skip:99.2% L0:15.6% L1:57.2% BI:27.2% [libx264 @ 000001c85caf00c0] 8x8 transform intra:88.6% inter:66.5% [libx264 @ 000001c85caf00c0] coded y,uvDC,uvAC intra: 81.3% 70.7% 44.5% inter: 3.4% 3.5% 0.3% [libx264 @ 000001c85caf00c0] i16 v,h,dc,p: 27% 23% 16% 34% [libx264 @ 000001c85caf00c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 18% 29% 5% 6% 6% 8% 6% 9% [libx264 @ 000001c85caf00c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 17% 20% 8% 8% 7% 7% 8% 7% [libx264 @ 000001c85caf00c0] i8c dc,h,v,p: 58% 22% 16% 4% [libx264 @ 000001c85caf00c0] Weighted P-Frames: Y:14.6% UV:13.0% [libx264 @ 000001c85caf00c0] ref P L0: 51.6% 30.1% 17.7% 0.6% 0.1% [libx264 @ 000001c85caf00c0] ref B L0: 64.0% 25.6% 10.4% [libx264 @ 000001c85caf00c0] ref B L1: 98.1% 1.9% [libx264 @ 000001c85caf00c0] kb/s:11495.51 [aac @ 000001c85caf1b80] Qavg: 146.295 _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".