crop and fade

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

crop and fade

FFmpeg-users mailing list
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:scene=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 ?

Thanks

Fran├žois

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: crop and fade

Michael Koch
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:scene=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...

Re-scaling all images with IrfanView:
File --> Batch Conversion, then select all images, then click on
"advanced", the rest is self-explaining.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: crop and fade

andrei ka
>
> Re-scaling all images with FFmpeg:
> I think that's only possible with a loop in a script. Too complicated.
>

i think he could pipe it...
ffmpeg -i  %%02d.JPG -i audio -vf fps=fps=1,scale=H:W -f nut - | ffmpeg -f
nut -i - -vf zoompan=... ...
&rei
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

FFmpeg-users mailing list
In reply to this post by Michael Koch

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:scen
>> 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 ?

F

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

Michael Koch
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:scen
>>> 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.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

FFmpeg-users mailing list
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

Gyan Doshi-2


On 20-11-2020 01:41 pm, RAPPAZ Francois via ffmpeg-user wrote:

> 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 ?

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.

Regards,
Gyan
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

FFmpeg-users mailing list
>> 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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

Michael Koch
Am 20.11.2020 um 10:58 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 ?
>> 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 ?

I think the command line is correct, and the hint from Gyan was of
course correct. The problem might be that your video player can't
display 25fps at this extremely high resolution. Try a smaller
resolution. It makes no sense to use higher resultion than your monitor
can display.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

FFmpeg-users mailing list
>I think the command line is correct, and the hint from Gyan was of course correct.
>The problem might be that your video player can't display 25fps at this extremely high resolution.
>Try a smaller resolution. It makes no sense to use higher resultion than your monitor can display.
>Michael

I did
ffmpeg -y -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
-vf zoompan=d=10:fps=1:s=5152x3864,framerate=fps=5:interp_start=0:interp_end=255:scene=100 ^
-pix_fmt yuv420p out.mp4

Which gives a nice result.
Thanks !

Is there a way to say : do the fade effect for all pictures, except the last (which is 14.JPG) ?

Fran├žois
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: {Spam?} Re: crop and fade

Michael Koch
Am 20.11.2020 um 11:59 schrieb RAPPAZ Francois via ffmpeg-user:

>> I think the command line is correct, and the hint from Gyan was of course correct.
>> The problem might be that your video player can't display 25fps at this extremely high resolution.
>> Try a smaller resolution. It makes no sense to use higher resultion than your monitor can display.
>> Michael
> I did
> ffmpeg -y -i %%02d.JPG -i SligoAir_WhiteBlanket.mp3 ^
> -vf zoompan=d=10:fps=1:s=5152x3864,framerate=fps=5:interp_start=0:interp_end=255:scene=100 ^
> -pix_fmt yuv420p out.mp4
>
> Which gives a nice result.
> Thanks !

What I meant was to reduce the size, for example to 2000x1500. Reducing
the framerate to 5 might be a problem for some players.

> Is there a way to say : do the fade effect for all pictures, except the last (which is 14.JPG) ?

Duplicate the last picture, so that the last two pictures are the same,
and/or limit the total duration of the video with the -t option to a
suitable length.

Michael

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".