In batch conversion of videos to FLV, it is because videos are managed and published on the streaming media server in the project. The raw data may be in. mpg,. Avi, and other formats, which requires a lot of conversion work. The demand for batch conversion tools is obvious.
The original Video Converter was prepared to use the dedicated video conversion software total Video Converter. The software is really powerful, but it is not convenient in batch processing (you need to select Videos one by one ), but its conversion function is really powerful.
The leader means to convert videos in batches and use them as auxiliary functions in the project. Of course, they may also use independent auxiliary tool software.
Work started. After looking for relevant information, I decided to use FFMPEG as the background decoding support software. There are a lot of online materials, but there are very few problems to solve. I encountered many problems during use. First, let's list them as follows:
1. What formats does FFMPEG conversion support ??
2. Question about the parameter settings for converting FFMPEG to FLV ?? (Main: ensure the quality of conversion and compression, and minimize the loss of the original data volume)
3. Output of FFMPEG conversion information: cannot capture output information ?? (This problem was solved until the end of the day)
Consider supporting more video formats as much as possible. For formats not supported by FFMPEG (RM, rmvb, etc.), choose to use mencoder conversion support software at the same time. According to the relevant materials I have read, mencoder supports a considerable number of conversion video formats. Later, I almost wanted to discard FFMPEG and use mencoder to process the conversion. Because the conversion speed of mencoder is slow, two FFMPEG and mencoder types are used, and FFMPEG conversion is preferred.
Mencoder also involves parameter settings. To ensure the conversion quality, you must understand the significance of key parameters. The problem encountered by mencoderis that the downloaded software package only has mplayer.exe, which is used for conversion. The result always reports a parameter error. Half a day later, I found that the mencoderpackage is a question. I only need mplayer.exe and there is no need for conversion.ProgramMencoder.exe, that is, the real-time reading and obtaining functions are converted to mencoder.exe, not mplayer.exe. I hope you will not make any mistakes if you want to use mencoder to convert videos.
There are many online video conversion functions.CodeYou can use it with a few changes. Since there is time to complete, I want to drill deep points, at least to find out the parameter problem, but also to ensure the quality of their own video conversion.
I only studied FFMPEG and mencoder from the perspective of application and usage. I really admire the programmers who made these open-source software and thank them for their work, in the future, we will have the opportunity to continue to learn the essence of FFMPEG and mencoder.