Now the GIF is becoming more and more popular. In the past, it was the only technology we had on the web to show animated pictures. This technique is very useful because it requires special browser Plug-ins to be implemented relative to real Player, Windows media, and so on. Today, we have better video standards and formats in our browsers, but GIF is popular in the Internet, perhaps people more like entert
Java calls ffmpeg to convert video formats to flv and ffmpegflv
Java calls ffmpeg to convert the video format to flv
Note: The following program runs in Linux. If rmvb is converted to avi in windows, the problem may occur. To succeed, you need to download the next drv43260.dll and put it under C: WindowsSystem32.
Writi
add the mplayer.exe‑path, which is also the path of mencoder.exe to the environment variable path.
Now you can try playing a video with Mplayer. For example, a video is located at D: \ music \ APerfectMatch. wmv, you can open a cmd window and enter mplayer "D: \ music \ APerfectMatch. wmv ", feel the player from Linux, you can use the keyboard to manipulate it.
Mencoder:
For example, convert a variety of formats to the
This series of articles navigation
Quick Start for ffmpeg under Windows
FFmpeg parameter explanation
MEncoder and FFmpeg parameter detailed (Java processing video)
Java generated video thumbnails (ffmpeg)
Using FFmpeg to convert video files into FLV finishing
Java Video processing MEncoder
Java Video Processing Ffmped+mencoder
1, first download ffmpeg
2, extract the extracted ffmpeg.exe and PthreadGC2.dll
" test.jpg "
-SS followed by time in seconds
****************
4. Create a class
[Java]View plaincopy
Public class convertvideo
{
Private Static string input_path;
Private Static string output_path;
Private Static string project_path;
Private Static hashmap
Static
{
Filetype = new hashmap
Filetype. Put ("Avi", "true ");
Filetype. Put ("MPG", "true ");
Filetype. Put ("WMV", "true ");
Filetype. Put ("3GP", "true ");
Filetype. Put ("mov", "true ");
Filetype. Put ("MP4", "tru
Recently, due to the need to convert some videos from the FLV format to the AVI format, I wrote the following script to automate the conversion:
#! /Bin/bashffcmd = '/cygdrive/C/work-DIR/FFMPEG/ffmpeg.exe' # path to ffmpe tools # Check output directory existif! Test-d $2; then mkdir $ 2FI # Convert FLV to avifor F in
With the increasing popularity of the FLV format, more and more places are using this format, which is small and the biggest advantage, but the problem is, if you want to convert other video formats to the FLV format, isn't it a headache.
When you see this articleArticleYes, you must be worried about how to convert t
This article describes how to use codeigniter to upload a video and convert ffmpeg to flv. For more information, see
The Code is as follows:
$ File = 'video _ file ';$ Config ['upload _ path'] = './video_folder /';$ Config ['allowed _ types'] = 'mov | mpeg | mp3 | avi ';$ Config ['max _ size'] = '000000 ';$ Config ['max _ width'] = '';$ Config ['max _ height'] = '';
$ This-> upload-> initialize ($ config
Video refers to a series of static images continuous image changes per second more than 24 frames (frame) screen above, according to the principle of visual persistence, the human eye can not identify a single static picture; Looks like a smooth, continuous visual effect. Today we are going to talk about how to convert the video format, the following will use the video converter, the small part of the recommended is a quick Video converter , see below
Convert any video format into flv code using php. Copy the code as follows :? Define (ROOT_DIR, dirname (_ FILE _); classEcodeFlv {var $ fromFile; uploaded FILE var $ toFilePath; save FILE path var $ toPicPath; save
The code is as follows:
Define ("ROOT_DIR", dirname (_ FILE __));Class EcodeFlv {Var $ fromFile; // uploaded FileVar $ toFilePath; // Save the file pathVar $ toPicPath; // save the image pat
The first three articles have explained in detail how to convert the WAV audio format to the FLV format. This article describes how to convert the last part, first, the AMR is converted into WAV format, and then the WAV format is encapsulated
FLV format. The key part of this article is the part in the while loop. The o
A compact for the FLV format to convert to AVI format software, no installation, decompression can directly run the current format of the FLV movie to AVI format software is not many
Riva FLV Encoder is the most famous one, but it has no Chinese version, the file volume is also large, installation package on the 4.7M
A compact software used to convert the FLV format to the AVI format. You do not need to install it. After decompression, you can directly run the software that currently converts the FLV format to the AVI format.
Riva FLV encoder is the most famous one, but it does not have a Chinese version yet, the file size is al
Copy CodeThe code is as follows:
Define ("Root_dir", DirName (__file__));
Class Ecodeflv {
var $fromFile; The papers that came on
var $toFilePath; Save File path
var $toPicPath; Save Picture Path
var $mpeg; Path to the Ffmpeg.exe file
var $mencode; Path to the Mencode.exe file
var $cmdToFile; Convert File command
var $cmdToPic; Convert Picture command
var $toFileName; The converted file name
var $mpegComm;
Copy Code code as follows:
?
Define ("Root_dir", DirName (__file__));
Class Ecodeflv {
var $fromFile; The papers that came on
var $toFilePath; Save File path
var $toPicPath; Save Picture Path
var $mpeg; Path to Ffmpeg.exe file
var $mencode; Path to Mencode.exe file
var $cmdToFile; Convert File command
var $cmdToPic; Convert Picture command
var $toFileName; The converted FileName
var $mpegCom
Although it was once regarded as an outdated art form, dynamic GIF images are now recovering. If you haven't noticed that many online sharing and social network websites are beginning to support dynamic GIF images, such as Tumblr, Flickr, Google +, and Facebook. Because of its ease of consumption and sharing, GIF animation has become part of mainstream Internet c
Sometimes, when we see some funny videos, we can choose to make animated GIF images. How can we convert videos to gif images? In fact, it is very simple. a gif production tool can be easily used. Which GIF production tool is better? We recommend quick
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.