Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How does video conversion work?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Sun Jul 13, 2008 3:55 pm    Post subject: How does video conversion work? Reply with quote

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
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Sun Jul 13, 2008 4:17 pm    Post subject: Reply with quote

Really complicated. There are free ones out there.
Back to top
View user's profile Send private message Send e-mail
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Sun Jul 13, 2008 4:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Sun Jul 13, 2008 4:56 pm    Post subject: Reply with quote

You could peak at the source of an Open-Source conversion thang... like FFmpeg.

Download the source, learn, hack it...

_________________
Back to top
View user's profile Send private message MSN Messenger
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Sun Jul 13, 2008 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Localhost
I post too much
Reputation: 0

Joined: 28 Apr 2007
Posts: 3402

PostPosted: Sun Jul 13, 2008 10:13 pm    Post subject: Reply with quote

look harder...

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

_________________
Back to top
View user's profile Send private message MSN Messenger
Travis13
Expert Cheater
Reputation: 0

Joined: 17 Feb 2007
Posts: 199

PostPosted: Sun Jul 13, 2008 10:47 pm    Post subject: Reply with quote

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 Razz
Back to top
View user's profile Send private message MSN Messenger
Zand
Master Cheater
Reputation: 0

Joined: 21 Jul 2006
Posts: 424

PostPosted: Mon Jul 14, 2008 3:31 am    Post subject: Reply with quote

rofl no. You need codecs and shit like that, I believe.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8588
Location: 127.0.0.1

PostPosted: Mon Jul 14, 2008 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites