‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, April 14, 2020 5:31 PM, Paul B Mahol <[email protected]> wrote:
> On 4/14/20, atticus via ffmpeg-user [email protected] wrote: > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Tuesday, April 14, 2020 11:07 AM, Paul B Mahol [email protected] wrote: > > > > > > I thought about this yesterday and came up with something like this: > > > > ffmpeg -i in.JPG -filter_complex "[0:0]loop=loop=-1:start=0:size=100 > > > > [looped] ; [looped] trim=start=0:end=10 [trimmed] ; [trimmed] > > > > fade=type=in:start_frame=0:duration=3:color=black [fadeIn]" -map > > > > [fadeIn] > > > > -c:v h264 -r 60 out.mkv > > > > or this > > > > ffmpeg -loop 1 -i in.JPG -filter_complex "[0:0] trim=start=0:end=200 > > > > [trimmed] ; [trimmed] fade=type=in:start_frame=0:duration=3:color=black > > > > [fadeIn]" -map [fadeIn] -c:v h264 out2.mkv > > > > (I'd just have to add a concat filter to the filter chain and an audio > > > > stream). I'm just not quite sure if there is a more smart way to do this > > > > (which for example would be a bit faster, since this is (in my opinion a > > > > bit > > > > slow for just duplicating a single frame). Well is there a smarter > > > > and/or > > > > faster way? > > > > And can you recommend which of these two commands above might be the > > > > better > > > > one? > > > > > > Please use xfade filter instead. > > > > What for? To not fade out to black and fade then in from black? Or are there > > other benefits of the xfade filter? > > There is transition fadeblack:http://trac.ffmpeg.org/wiki/Xfade Hm well it's more difficult to make the string (when scripting) for the filter when it depends on the next input (and not only on one single input), but since I want to try what it looks like, I tried it but actually I get this command ffmpeg -loop 1 -i quer1.JPG -loop 1 quer2.JPG -filter_complex "[0:0] trim=start=0:end=2 [trim0] ; [1:0] trim=start=0:end=2 [trim1] ; [trim0] [trim1] xfade [out]" -map [out] -c:v h264 out.mkv ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.3.0 (Arch Linux 9.3.0-1) configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3 libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, image2, from 'quer1.JPG': Duration: 00:00:00.04, start: 0.000000, bitrate: 1158076 kb/s Stream #0:0: Video: mjpeg (Baseline), yuvj422p(pc, bt470bg/unknown/unknown), 5184x3888, 25 tbr, 25 tbn, 25 tbc [AVFilterGraph @ 0x559344d4afc0] No such filter: 'xfade' Error initializing complex filters. Invalid argument
publickey - [email protected] - 0xF3A8BCD0.asc
Description: application/pgp-keys
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ffmpeg-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
