[FFmpeg-user] Npm - videoshow taking long time to convert video from images

Vivek Jain vivek.jain at mindtickle.com
Fri Feb 10 08:55:38 EET 2017


Hi,

I am trying to create video using npm-videoshow, but it appears to take
considerable time (~3 minutes for 14 minute video). Could someone please
advise how can the timing be improved.

*Input supplied to videoshow:*
Image-Loop list:

[ { path: '/tmp/out_1.png', loop: 153 },  { path: '/tmp/out_2.png', loop:
711 } ]

VideoOptions:

{ fps: 25,  videoBitrate: 1024,  videoCodec: 'libx264',  size: '640x?',
 audioBitrate: '128k',

  audioChannels: 2,  format: 'mp4',  pixelFormat: 'yuv420p' }

Here's *Videoshow module output*:

ffmpeg process started: ffmpeg -i
/var/folders/9f/1wx7q0954l94rhtc4r6r95xw0000gn/T/videoshow-4b27c460-1ad5-450b-a1a0-66bd9519dafc
-i
/var/folders/9f/1wx7q0954l94rhtc4r6r95xw0000gn/T/videoshow-40f0337c-d67e-4b47-b050-10f11d36daff
-y -filter_complex concat=n=2:v=1:a=0 video_test.mp4

ffmpeg process started: ffmpeg -i
/var/folders/9f/1wx7q0954l94rhtc4r6r95xw0000gn/T/videoshow-0bdf6f71-cc4d-498c-b7bf-eaf1eccaa9a6
-i /tmp/audio.mp3 -y -b:a 128k -ac 2 -r 25 -b:v 1024k -vcodec libx264
-filter:v scale=w=640:h=trunc(ow/a/2)*2 -f mp4 -map 0:0 -map 1:0 -t 864 -af
afade=t=in:ss=0:st=0:d=3 -af afade=t=out:st=861:d=3 -pix_fmt yuv420p
video_test.mp4

Video created in: video_test.mp4
Total Time in conversion: 3 minutes 5 seconds

-- 
Thanks,
Vivek


More information about the ffmpeg-user mailing list