You must also have ffprobe installed (it comes with ffmpeg in most distributions). Otherwise, it will attempt to call ffmpeg directly (so it should be in your PATH ). First we use the code below to access the metadata. If the FFMPEGPATH environment variable is set, fluent-ffmpeg will use it as the full path to the ffmpeg executable. I am not sure what version of fluent-ffmpeg you are using, nor have I tested this on a Windows platform I just started using fluent-ffmpeg today and the solution I am providing is based on my observations. So is there any solid way to find out if the file is audio only or video from the metadata? Or should I use ffmpeg commandline to find it out? I am not why there is a "resolution" since it is a pure audio file. mp3 file through fluent-ffmpeg,the result looks something like this: video: But some strange things happened that this doesn't work on Windows platform (I have tried Windows 7 64bit and Windows 2008) using the latest ffmpeg. if both resolution.w and resolution.h are 0, then this file is an audio. I have tried on Mac OS to use the "resolution" attribute in the metadata to tell if a file is audio only or video, i.e. It is very good that fluent-ffmpeg provides functions to get the metadata of a video and audio file. ![]() Get file information and divide into segments // Then process each of these segments individually, and combine results at the end ffmpeg.I am using node-fluent-ffmpeg module in NodeJS. Var limitConcurrent = options.limitConcurrent | MAX_CONCURRENT ![]() Var maxDuration = options.maxDuration | MAX_SEG_DUR
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |