.net - Encoding in MP4 using C# / DirectShow.Net / 3ivx -


i wish encode .wmv videos in mp4.

i use little software available here : http://www.codeproject.com/articles/11120/media-files-conversion-using-c

i use directshow.net : http://sourceforge.net/projects/directshownet/ , 3ivx codecs.

how can change code :

    //     // method convert input file wmv file     //     void convert2wmv(string filename)     {         try         {             label1.text = "encodage";             button1.enabled = false;              hr = me.setnotifywindow(this.handle, wm_graphnotify, intptr.zero);             dserror.throwexceptionforhr(hr);              // here use asf writer create wmv files             wmasfwriter asf_filter = new wmasfwriter();             ifilesinkfilter fs = (ifilesinkfilter)asf_filter;              hr = fs.setfilename(filename + ".wmv", null);             dserror.throwexceptionforhr(hr);              hr = gb.addfilter((ibasefilter)asf_filter, "wm asf writer");             dserror.throwexceptionforhr(hr);              hr = gb.renderfile(filename + fext, null);             dserror.throwexceptionforhr(hr);              hr = mc.run();             dserror.throwexceptionforhr(hr);         }         catch (exception ex)         {             messagebox.show("error converting wmv: " + ex.message);         }     } 

to have mp4 encoding ? i'm beginner in c#/ .net ... =$

thank in advance. :3

you can use ffmpeg (a free command-line tool mac, linux , windows) encode wmv mp4. here example syntax:

ffmpeg -i input.wmv -c:v libx264 -crf 23 -c:a libfaac -q:a 100 output.mp4 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -