|
i am trying to convert any video file into .flv format. .avi,.wmv,.mpeg also convert successfully but .3gp not convert to .flv format. i will get zero bytes.. pls help me
Process ffmpeg; // creating process
string video;
string mpg;
video = HttpContext.Current.Server.MapPath("inputfolder\\uploads\\" + FileUpload1.FileName); // setting video input name with path
mpg = Page.MapPath("") + "\\video.flv"; // thumb name with path !
ffmpeg = new Process();
ffmpeg.StartInfo.Arguments = " -i " + video + "-s 480*360 -deinterlace -ab 32 -r 15 -ar 22050 -ac 1 " + mpg; // arguments !
ffmpeg.StartInfo.FileName = Page.MapPath("ffmpeg\\ffmpeg.exe");
ffmpeg.Start(); // start !
ffmpeg.WaitForExit();
ffmpeg.Close();
string AppPath = Request.PhysicalApplicationPath; //This is the path of your application
//string inputPath = AppPath + "ffmpeg\\myVideo.wmv"; //Source Video Path
string inputPath = AppPath + "inputfolder\\uploads\\video.flv";
inputPath = FileUpload1.PostedFile.FileName;
FileUpload1.SaveAs(MapPath("inputfolder/" + FileUpload1.FileName));
string outputPath = AppPath + "outputfolder\\" + FileUpload1.FileName.Split('.')[0] + ".flv"; //Destination Video Path
string fileargs = " -i ";
fileargs += "\"" + inputPath + "\"";
fileargs += " \"" + outputPath + "\""; //Command Line
Process proc = new Process();
proc.StartInfo.FileName = AppPath + "ffmpeg\\ffmpeg.exe"; //Path of FFMPEG
proc.StartInfo.Arguments = fileargs;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.RedirectStandardOutput = true; ;
proc.StartInfo.RedirectStandardError = true;
proc.Start();
System.Threading.Thread.Sleep(1000);
string strErr = proc.StandardError.ReadToEnd();
proc.WaitForExit();
|
|
|
|
|
You asked this last week, were the answers not suitable?
We are not a Code Charity
|
|
|
|
|
i saw your reply but it is not suitable in my project
|
|
|
|
|
Hi i am binding datas to my grid in run time,,
Its auto generate columns...,
I given my grid width =100% its inside a panel...,
I like to allocate width for my columns...,
So i used this code after databind in my grid...,
for (int r = 0; (r <= (gvViewData.Columns.Count - 1)); r++)
{
gvViewData.Columns[0].ItemStyle.Width = Unit.Percentage(10);
gvViewData.Columns[1].ItemStyle.Width = Unit.Percentage(20);
gvViewData.Columns[2].ItemStyle.Width = Unit.Percentage(40);
gvViewData.Columns[3].ItemStyle.Width = Unit.Percentage(15);
gvViewData.Columns[4].ItemStyle.Width = Unit.Percentage(15);
}
But its not at all considering the what i have allocated for my items...,
any one help me to solve this...,
Anyother solution is there?,
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
New one wrote: for (int r = 0; (r <= (gvViewData.Columns.Count - 1)); r++)
Yet you don't use r for anyting. How bizarre.
Why don't you set this up in the aspx instead ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
If i use r also it wont work..,
Whatever i cant allocate width for items properly ,
how to solve this
plz help me
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
If you know how many gridview columns there are why not put it in the gridview in the front end code i.e.
<ItemStyle Width="10%" />
We are not a Code Charity
|
|
|
|
|
i know how many columns and same time i dont like to use databound columns...,
Thats y i said its auto generate columns..,.,
Anyway if u give bound column also its not at all considering...,
Its considering only grid view width...,
according to that its taking its own space for columns
Thanks & Regards,
NeW OnE,
please don't forget to vote on the post
|
|
|
|
|
I am using VS 2008 as IDE and developed web application. I am putting all the messages shown to the users in a resx file in App_GlobalResources/App_LocalResources directory. I am unable to access the resource using,
Resources.TooltipResource.MNT_CLIENT_SELECT
which is previously working fine with Website (project type).
Can anyone help me to fix this problem?
|
|
|
|
|
The problem is solved.
Previously I created under App_LocalResources and then drag dropped it into the App_GlobalResources. I removed it and created new in App_GlobalResources. Now I am able to access it.
|
|
|
|
|
DataRow drow = dt.NewRow();
drow[ddlFacilityName.SelectedItem.Text] = "<font color='Red'>" + m_dtCSV1.Rows[i][ddlFacilityName.SelectedItem.Text].ToString() + " is not found </font>";
"<font color='Red'>" working in DataGrid but not in GridView so what can I do in case of grid view.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
What does 'not working' mean ? What happens ? Is the gridview HTML encoding your text ?
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
It is giving output like this.
<font color='Red'>Resources12256$Test Resources56 is not found </font>
but I want "Resources12256$Test Resources56 is not found" in RED color. in GridView
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
OK, so it's HTML encoding it. The problem is you can't do this at the level of the data row, you have to do it at the level of the template in the gridview. You need to add code to the template that makes it red if you want it to be red.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
ok,how to do it and how can I do in red color particular item only in gridview but It will be dynamic some time needed or some time not.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
hai,
currently i m using asp.net with c# (.net 2005, 2.0 framework).
here i m trying to merge two dataset column wise
for example, i use two dataset ds1 and ds2.
ds1 contains A,B,C,D column.
ds2 contains E,F,G,H,I,J column.
i need the resultant in gridview as A,B,C,D,E,F,G,H,I,J
how to achieve it? - KARAN
|
|
|
|
|
First of all, this is not an ASP.NET question. Second, you've been asking it for days. If you're incapable of understanding the answers, and unable to ask for more info, you should abandon your project, and perhaps your career.
Third, this is not possible. What ties A-D with E-J ? Nothing from what you've said. So what defines what goes in the one row ? If it's just row by row, well, how bizarre, but OK. Just create a new table in code with rows A-J, iterate over your two tables and copy the values in. If they DO have a common key, try taking the advice you've already been given ( although I think it makes most sense to just ask the data layer for the data in the format you need it in ), instead of asking over and over. That's just plain rude.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
We are developping a Web Application using Asp.Net. We need to find out the IP number of a client running the Web Browser on a remote desktop connection. In other words, this user opens a Remote Desktop Connection on another remote server and runs the WebBrowser on this remote server, and we need actually the IP number of this user OWN machine.
In fact we could get the user client IP easily using the statement "HttpContext.Current.Request.UserHostAddress, but this brings us, naturally, the IP number of the machine on which the RDP connection has been opened.
What we need is possible? How to to it?
Thanks in advence.
|
|
|
|
|
Please don't cross post. No way an ASP.NET app can cause te browser to work out it's running in a remote desktop, find the host IP and send it back to you.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hai iam using the
webservices
what is the Webmethod Attribute,WebMethod difference i want to know the
difference..
Kiran Kumar.P
|
|
|
|
|
I don't understand the question ? The webmethod attribute marks a method as being visible to the outside world, AFAIK.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
keranreddy wrote: what is the Webmethod Attribute,WebMethod difference i want to know the
difference..
How about searching[^] ?.
|
|
|
|
|
That's just crazy talk...
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Hai all,
i had one page which can have no.of questions?i retrieve and display the questions.
my problem is the question no. 5 have sub questions.if i click the fifth question link then it will display only the subquestion.
how can i get the subquestions for main question 5.
Exam:
What is xyz.com and what can i buy here?
How Do I upload my images?
Are my pictures safe?
What are your prices and how much will my order cost?
5.Ways to contact us?------This is a link.if i click this link then all the above 4 questions will be invisible and the sub questions will be visible .
sub questions r from DB
1.Can i contact through phone?
2.Can i contact through mail?
Thanks
Subbu.
|
|
|
|
|
You could use a panel for this, put your first four questions in a panel and your last one in a seperate panel and just make visible/invisible when you need to.
We are not a Code Charity
|
|
|
|