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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -