[FFmpeg-user] Create a video using images and audio with blend and zoom filters using FFmpeg
Nikhil M Ranka
nikhil.r at geazy.com
Wed Oct 12 14:53:05 EEST 2016
Thank for the reply. It is this command that I am facing issues with. Can
you tell me how to fix it? Have already spent hours if not days finding a
solution for this
**Blend with zoom**
>
> ffmpeg \
> -loop 1 -t 5 -i 164470_2.jpg \
> -loop 1 -t 5 -i 164470_3.jpg \
> -loop 1 -t 5 -i 164470_5.jpg \
> -filter_complex \
> "[0:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoo
> m/2)':y='ih/2-(ih/zoom/2)'[v0]; \
> [1:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v1];
> \
> [2:v]zoompan=z='min(zoom+0.0015,1.5)':d=700:x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)'[v2];
> \
> [1:v][0:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b1v];
> \
> [2:v][1:v]blend=all_expr='A*(if(gte(T,1.5),1,T/1.5))+B*(1-(if(gte(T,1.5),1,T/1.5)))'[b2v];
> \
> [v0][b1v][v1][b2v][v2]concat=n=5,format=yuv420p[v]" \
> -map "[v]" -aspect 16:9 outWithBlendAndZoom.mp4
This command did not work out, I am not sure why. Here is the output:
ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg
> developers
> built on Oct 31 2014 05:16:04 with gcc 4.6 (Debian 4.6.3-1)
> configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32
> --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static'
> --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static'
> --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static --disable-shared
> --disable-ffserver --disable-doc --enable-bzlib --enable-zlib
> --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl
> --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray
> --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex
> --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3
> --enable-libvpx
> libavutil 52. 89.100 / 52. 89.100
> libavcodec 55. 66.101 / 55. 66.101
> libavformat 55. 43.100 / 55. 43.100
> libavdevice 55. 13.101 / 55. 13.101
> libavfilter 4. 8.100 / 4. 8.100
> libswscale 2. 6.100 / 2. 6.100
> libswresample 0. 19.100 / 0. 19.100
> libpostproc 52. 3.100 / 52. 3.100
> Input #0, image2, from '164470_2.jpg':
> Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
> Stream #0:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25
> tbr, 25 tbn, 25 tbc
> Input #1, image2, from '164470_3.jpg':
> Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
> Stream #1:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25
> tbr, 25 tbn, 25 tbc
> Input #2, image2, from '164470_5.jpg':
> Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
> Stream #2:0: Video: mjpeg, yuvj422p(pc), 1600x1200, 25 fps, 25
> tbr, 25 tbn, 25 tbc
> File 'outWithBlendAndZoom.mp4' already exists. Overwrite ? [y/N] y
> [swscaler @ 0xba66100] deprecated pixel format used, make sure you did
> set range correctly
> [swscaler @ 0xbaa23a0] deprecated pixel format used, make sure you did
> set range correctly
> [swscaler @ 0xbac4680] deprecated pixel format used, make sure you did
> set range correctly
> [swscaler @ 0xbae6960] deprecated pixel format used, make sure you did
> set range correctly
> [swscaler @ 0xbb07260] deprecated pixel format used, make sure you did
> set range correctly
> [swscaler @ 0xbb2af20] deprecated pixel format used, make sure you did
> set range correctly
> [swscaler @ 0xbb4d200] deprecated pixel format used, make sure you did
> set range correctly
> [Parsed_concat_5 @ 0xba8e060] Input link in1:v0 parameters (size
> 1600x1200, SAR 0:1) do not match the corresponding output link in0:v0
> parameters (1280x720, SAR 0:1)
> [Parsed_concat_5 @ 0xba8e060] Failed to configure output pad on
> Parsed_concat_5
Regards,
*Nikhil*
More information about the ffmpeg-user
mailing list