c# - Using NReco video convertor, Format.flv reference cant be solve -


i'm using nreco convert few images video faced problem code

(new nreco.videoconverter.ffmpegconverter()).convertmedia(pathtovideofile, pathtooutputmp4file, formats.mp4) 

the formats.mp4 in error (reference not found) i've been searching reference not able solve this.

need ! thanks

yes, there error in example online. easiest thing add using statement code can make code more readable , spend less time typing:

using nreco.videoconverter; 

then can access want this:

ffmpegconverter ff = new ffmpegconverter(); ff.convertmedia(pathtovideofile, pathtooutputmp4file, format.mp4); 

note there no 's' on end of format. also, careful using inline construct (temporary object) way have done in code sniplet. don't know how managing resources inside class , threading model looks like. lot safer create converter object have above , use way.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -