Click here to Skip to main content
15,896,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,


i try to convert other format video file (large file 2 GB) into flv file.
My ffmepg command is below

string cmd = " -i \"" + filePath + "\\" + fileName + "\" -f flv -vcodec copy -acodec copy -s 1280×720 \"" + filePath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".flv" + "\"";

but generated flv size 0 kb. but thats code is running for the small file size.

One more Question
After video convert i want to cut the first frame of video file so i used following command.

string imgargs = " -i \"" + filePath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".flv" + "\" -ss 0 -vframes 1 -vcodec mjpeg -f image2 \"" + filePath + "\\" + fileName.Remove(fileName.IndexOf(".")) + ".jpg" + "\"";

Same problem. for small size convertor is running successfly but lager file it not able to convert into flv..

thanks in advance
govind
Posted
Comments
Richard MacCutchan 21-Dec-12 5:57am    
Try running this manually in a command prompt window to see why it does not succeed.
Richard MacCutchan 21-Dec-12 5:58am    
Note: I have deleted the two duplicates of this question.

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