Click here to Skip to main content
15,063,784 members
Please Sign up or sign in to vote.
1.16/5 (4 votes)
See more:
i need a complete code for converting from one extension to another for example from avi to mp4
i installed from here some of coded but it is not what i need exactly
please i need help
Posted

Just to add a clarification to a good answer by Simon: AVI and MPEG-4 are the entities of different orders of hierarchy. AVI is a file extension and a format for the media container; but MPEG-4 is more essential thing: this is a method of compression of audio and video. In principle, AVI container can contain different kinds of video+audio streams including MPEG4.

See for more detail:
http://en.wikipedia.org/wiki/Audio_Video_Interleave[^],
http://en.wikipedia.org/wiki/MPEG-4[^].

Also, look at the links at the bottom of the first article to see how many different MPEG-4 standards are there. Which one do you need? :-)

—SA
   
Comments
Simon Bang Terkildsen 19-Sep-11 5:23am
   
my 5, good short explanation of the actual problem space the OP is facing.
Sergey Alexandrovich Kryukov 19-Sep-11 11:07am
   
Thank you, Simon.
--SA
Converting extension from avi to mp4:
C#
File.Move(filePath, string.Format(@"{0}\{1}.mp4",
                                  Path.GetDirectoryPath(filePath),
                                  Path.GetFileName(filePath));


All jokes aside, I don't think you realize the size of your question. But if you really want code that can convert between the two I would look at FFmpeg[^]
   
Comments
   
Good answer, especially the "joking" part, my 5. In a way, it expresses the essence of the thing I explained in my solution: AVI is just the container and a file type, but MPEG-4 is a set of compression standards.
Please see my answer.
--SA
Member 12698467 6-May-17 2:42am
   
I want convert mp4 video into avi in java

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