| View previous topic :: View next topic |
| Author |
Message |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Sun Jul 13, 2008 3:55 pm Post subject: How does video conversion work? |
|
|
I am trying to make a program that converts videos.
Example: I want to convert my .wmv video to .avi
FileSystem.Rename and FileSystem.FileCopy are not working because it just changes the extension to .avi, and not the format of the file.
Any help on this? I know theres so many programs out for this kind of stuff already, but I just want to know how it works so I can create my own instead of paying like $30 for one.
And yes, I am using .Net
_________________
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Sun Jul 13, 2008 4:17 pm Post subject: |
|
|
| Really complicated. There are free ones out there.
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Sun Jul 13, 2008 4:39 pm Post subject: |
|
|
| kitterz wrote: | | Really complicated. There are free ones out there. |
I know that. I still wanna know at least a little on how it works.
_________________
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
Posted: Sun Jul 13, 2008 4:56 pm Post subject: |
|
|
You could peak at the source of an Open-Source conversion thang... like FFmpeg.
Download the source, learn, hack it...
_________________
|
|
| Back to top |
|
 |
AndrewMan Grandmaster Cheater Supreme
Reputation: 0
Joined: 01 Aug 2007 Posts: 1257
|
Posted: Sun Jul 13, 2008 9:10 pm Post subject: |
|
|
| Bam! wrote: | You could peak at the source of an Open-Source conversion thang... like FFmpeg.
Download the source, learn, hack it... |
Not sure how to get the source, just visited website. I think they took it down.
_________________
|
|
| Back to top |
|
 |
Localhost I post too much
Reputation: 0
Joined: 28 Apr 2007 Posts: 3402
|
|
| Back to top |
|
 |
Travis13 Expert Cheater
Reputation: 0
Joined: 17 Feb 2007 Posts: 199
|
Posted: Sun Jul 13, 2008 10:47 pm Post subject: |
|
|
| Code: | window.onload=function(){initinputControls();};
var url;
var ext;
var flvDownloadPath;
var workingStatus=false;
function updateValues()
{
url=document.getElementById("texturl").value;
if(document.getElementById("extmpg").checked)
{
ext="mpg";
}
else if(document.getElementById("extmov").checked)
{
ext="mov";
}
else if(document.getElementById("extmp4").checked)
{
ext="mp4";
}
else if(document.getElementById("ext3gp").checked)
{
ext="3gp";
}
else if(document.getElementById("extmp3").checked)
{
ext="mp3";
}
else if(document.getElementById("extflv").checked)
{
ext="flv";
}
else if(document.getElementById("extwav").checked)
{
ext="wav";
}
else if(document.getElementById("extdvd").checked)
{
ext="dvd";
}
}
function showStep(stepno)
{
document.getElementById("step1").style.display="none";
document.getElementById("step2").style.display="none";
document.getElementById("step3").style.display="none";
document.getElementById("step4").style.display="none";
document.getElementById( stepno).style.display="inline";
}
function checkConnection()
{
//alert("Starting");
workingStatus=true;
showStep("step2");
updateValues();
//alert(ext);
document.getElementById("status").innerHTML="Connecting to server...";
RS.Execute("convert.aspx", "Validate",url, checkConnectionCallback);
//alert("CheckConnection End");
}
function checkConnectionCallback(options)
{
//alert("Check Connection Callback");
if(workingStatus==true)
{
if(options=="true")
{
//alert("Callback returns True");
downloadFile();
}
else
{
showError("<span class='error'>Connection failed !</span><br><span class='smalltext'>Please Check the Url or Try Again</span>");
}
}
}
function downloadFile()
{
//alert("Enterted Download File");
if(ext=="flv")
{
//alert("ext format is flv");
document.getElementById("status").innerHTML="Resolving FLV File...";
RS.Execute("convert.aspx", "getFlvUrl",url, downloadFlvCallback);
//alert("called downloadFlvCallback");
}
else
{
//alert("ext format is not flv");
document.getElementById("status").innerHTML="Preparing files...";
RS.Execute("convert.aspx", "DownloadFile",url, downloadFileCallback);
}
}
function downloadFlvCallback(options)
{
if(workingStatus==true)
{
showStep("step3");
document.getElementById("downloada").href= options;
workingStatus==false;
}
}
function downloadFileCallback(options)
{
if(workingStatus==true)
{
if(options!="")
{
flvDownloadPath=options;
convertFile();
}
else
{
showError("");
}
}
}
function convertFile()
{
document.getElementById("status").innerHTML="Processing...";
RS.Execute("convert.aspx", "ConvertFile",flvDownloadPath,ext, convertFileCallback);
}
function convertFileCallback(options)
{
if(workingStatus==true)
{
showStep("step3");
document.getElementById("downloada").href="download.aspx?ext=" + ext + "&file=" + options;
workingStatus==false;
}
}
function cancelTransfer()
{
//showStep("step1");
workingStatus==false;
document.location="http://www.catchvideo.net";
}
function showError(message)
{
showStep("step4");
document.getElementById("error").innerHTML=message;
} |
i went to www.catchvideo.net and just right clicked and pressed view source.....looked thorugh it and found this. Hopefully its helpful for u, i dont know...just passing throught this part of the forum, thanks bye
_________________
Learning C++, trying, failing, never gonna give up tho  |
|
| Back to top |
|
 |
Zand Master Cheater
Reputation: 0
Joined: 21 Jul 2006 Posts: 424
|
Posted: Mon Jul 14, 2008 3:31 am Post subject: |
|
|
| rofl no. You need codecs and shit like that, I believe.
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8588 Location: 127.0.0.1
|
Posted: Mon Jul 14, 2008 1:02 pm Post subject: |
|
|
Goto SourceForge and do a search for converters there. I'm sure you will find a few, maybe not written in your language, but it is a lot more work then just changing the extension.
_________________
- Retired. |
|
| Back to top |
|
 |
|