Node.js Fluent-FFMPEG Example to Trim or Cut Videos Without Re-encoding Video (Faster) Process in Command Line

 

 

After digging in node fluent doc and the info from @szatmary, it’s possible to define audio and video codec. To use the same codec and avoid

 

re encoding all the video, simply pass copy as argument in withVideoCodec and withAudioCodec:

 

 

index.js

 

 

 

Leave a Reply