![]() ![]() This library uses child_process to spawnSync an ffmpeg command with the right arguments to process the video into the output format at decent quality. This is basically a wrapper on FFmpeg, a free and open-source program with a variety of video editing capabilities. Sometimes you just need to install an additional library ontop of ffmpeg to make it work. Check the demux list to see if something is incompatible. The function only returns if it was successful, otherwise it just throws an error with a very descriptive error message.Īlthough almost every video format is supported, some exceptions like raw formats or novel video types might not work with the video converter because the program cannot "demux" (interpret) the video. This will take a few seconds depending on the size of the file.avi file, but will eventually parse the video file and output a new file on the same folder with the name file.mp4. Const converter = require ( "convert-video-to-mp4" ) converter. ![]()
0 Comments
Leave a Reply. |