Click here to Skip to main content
16,003,462 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
am tried but am not get any solution am new to the asp.net

What I have tried:

protected void Button1_Click(object sender, EventArgs e)
     {
         try
         {
             string value = DropDownList1.SelectedValue;
             string path = "E://dllxyz/g2mv.g2m";
             var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
             //ffMpeg.ConvertLiveMedia(path, "g2mv.mp4", value);
             ffMpeg.ConvertLiveMedia(path, "g2mv.mp4", value,null);

         }
         catch (Exception)
         {
             throw;
         }

     }
Posted
Updated 6-Sep-17 2:11am
v2
Comments
varsithananni 1-Sep-17 6:16am    
pls help i spent 25 hours with this its great help to me
varsithananni 1-Sep-17 7:08am    
hii here is my code it not convert to g2m to mp4 only file is created
protected void Button1_Click(object sender, EventArgs e)
{
try
{
Stream s = new FileStream("E:/dllxyz/save.MP4",FileMode.Create);
string value = DropDownList1.SelectedValue;
string path = "E:/dllxyz/g2mv.g2m";
var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ConvertSettings ff = new ConvertSettings();
ff.MaxDuration = 20;
ffMpeg.ConvertLiveMedia(path,"g2m", s, value, ff);


}
catch (Exception)
{
throw;
}

}

check this url, you will get some idea on the syntax
ConvertLiveMedia[^]
 
Share this answer
 
See here for the overloads: FFMpegConverter.ConvertLiveMedia Method[^] - I suspect you are trying to use this one: FFMpegConverter.ConvertLiveMedia Method (String, Stream, String, ConvertSettings)[^] which describes it's parameters.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900