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 entertainment. Convert a small video into a GIF mot
Asp.net ...amr .mp3 (using ffmpeg conversion method),. amrffmpeg
Preface
In the previous article, I learned how to use asp.netto convert .amrto using the seven-way conversion method. At that time, I also said that another method is to use the ffmpeg conversion method. The following article will introduce this method in detail. This method is much simpler than the
Requirements: The two-way video synthesis All the way, that is, a picture at the same time show two video, which narrows down into a small video stacked on top of the big video, and the picture of the television effect similar.
Idea: Using H264 encoded video example, the file stored in the ES stream is H264, decoded into YUV,YUV can be converted into RGB format. Copy the RGB of the small video to the location where the big video needs to be overwritten. Conv
This guide is based on a minimal centos installation and Will installffmpeg with several external encoding libraries.
Note:The # indicates that the commandshoshould be executed as superuser or root.
Preparation
Remove any existing packages:
# Yum erase FFMPEG x264x264-devel
Get the dependencies:
# Yum install GCC git makenasm pkgconfig wget
Make a source directory:
Mkdir ~ /FFMPEG-Source
In
exit or the next line of code will be}///Video (Avi,mov, etc.) convert to FLV format Video/// /// converted video Files/// file name after converting FLV/// Size of video size/// Public stringVIDEOCONVERTFLV (stringFromName,stringExportname,stringwidthandheight) { stringffmpeg=@"D:\ffmpeg\ffmpeg.exe"; System.Diagnostics.ProcessStartInfo StartInfo=NewSystem.Diagnostics.ProcessStartInfo (
Not namedReceived the need to convert AMR to mp3,windows under the Linux environment directly using the third party jar package Package EXE method can be, but does not support Linux, the internet climbed the data said to be using FFmpeg plus AMR plug-in can be achieved, according to the tutorial to try a bit:1. Install the system compilation environment firstYum install-y automake autoconf libtool gcc gcc-c
definition it is clear to see this:#define av_time_base_q (avrational) {1, av_time_base}Avratioal is defined as follows:typedef struct Avrational{int num;//numeratorint den;//denominator} avrational;FFmpeg provides a function to convert the AVRATIOAL structure into a double:Static inline double av_q2d (avrational a) {/*** Convert rational to double.* @
On mini2440, the whole transplant process is divided into three steps: (1) compiling x264, (2) compiling FFmpeg, and (3) after the transplant is successful, the test is to use ffmpeg recording.(1) Compiling x264The official web site under a new x264, address http://www.videolan.org/developers/x264.html. The file I downloaded is last_x264.tar.bz2.120 version AddressHttp://pan.baidu.com/s/1jG81TSqThe decompre
example, FFmpeg read video playback time length and bit rate
The code is as follows:
The code is as follows
Copy Code
Define (' Ffmpeg_path ', '/usr/local/ffmpeg2/bin/ffmpeg-i '%s ' 2>1 ');function Getvideoinfo ($file) {$command = sprintf (Ffmpeg_path, $file);Ob_start ();PassThru ($command);$info = Ob_get_contents ();Ob_end_clean (); $data = Array ();if (Preg_match ("/duration:
(SECAM)-Set dv1394 to capture dv1394-AV device: Set audio devices such as/dev/DSP
-Map File: stream sets the input stream ing.-Debug: Print specific debugging information-Benchmark indicates the benchmark test time.-Hex dumping each input package-Bitexact only uses a bit Precise Algorithm for Codec testing.-PS size: Set the package size, in bits.-Re reads data at a local frame rate, which is mainly used to simulate capturing devices.-Loop input stream. Only works on image streams for ffserver T
In the Avpro Windows Media plug-in, in its help document there is an introduction to the FFmpeg command that can be converted to a more appropriate H264 encoded MP4 file.
After downloading the ffmpeg, put the video you want to convert in the Bin folder, then open the Ff-prompt.bat, with the command line, you can convert
Php calls ffmpeg to obtain video information. phpffmpeg
Ffmpeg is an open-source computer program that can be used to record, convert, and convert digital audio and video into streams. It contains libavcodec to ensure high value portability and CODEC quality.
This article describes how to use php to call
Objective
The previous article has shared with you the asp.net use of the seven-cow conversion method will be. Amr mp3 method, at that time also said that there is another way to use the FFmpeg conversion method, the following article will give you a detailed description of this method. This method is much simpler than the first.
FFmpeg's name comes from the MPEG video coding standard, the front "FF" represents "Fast Forward", and
Part---ffmpeg transplanted to AndroidThe last few days have been engaged in the FFmpeg Android transplant, my goal is to cross-compile ffmpeg on Linux eventually get can push to the Android directory execution of the FFmpeg executable file.In order to achieve this goal, to complete the transplant of
=====================================================The simplest example of a ffmpeg-based mobile Sample series article List:The simplest mobile-based example of FFmpeg: Android HelloWorldThe simplest ffmpeg-based mobile sample: Android Video DecoderSimplest FFmpeg-based mobile sample: Android Video Decoder-Single lib
FFmpeg is a video plug-in, we can use the call FFmpeg interface to obtain information about the video, including video playback length, video bitrate, video thumbnail and video creation time, this article introduces how PHP uses FFmpeg interface to obtain video information, You need a friend to refer to.
FFmpeg get t
-vcodec libx264-coder 1-flags +loop-cmp +chroma-subq 10-qcomp 0.6-qmin 10-qmax 51-qdif F 4-flags2 +dct8x8-trellis 2-partitions +parti8x8+parti4x4-crf 24-threads 0-r 25-g 25-y OUTPUT.mp410, the normal stream video instead of H264 compression, audio unchanged, sent to the HD service (new version of FMS live=1)Ffmpeg-i rtmp://server/live/originalstream-c:a copy-c:v libx264-vpre slow-f flv "Rtmp://server/live/h264stream live=1 〃---------------------------
Development Environment: Windows 7
FFmpeg versions: 0.8
Dynamic Link Library in FFMPEG windows:
Http://url.cn/IJJwo3
For the FFMPEG version, it should be noted that many interfaces of the old version have been deprecated in the new version, and my program is in just for the FFmpeg-0.8 version.
Supported audio formats:
FFmpeg is a video plug-in, we can use the call FFmpeg interface to get information about the video, including video playback time, video code rate, video thumbnail and video creation time, this article to you how to use the FFmpeg interface to get video information, A friend in Need can refer to it.
FFmpeg get thumbna
, and if ffmpeg no longer uses the buffer, destruct is set to Av_destruct_packet, indicating that it can be disposed. For avpackt that the buffer is not able to be freed, it is best to call Av_dup_packet to clone the buffer before using it, and convert it to a buffer that can be freed Avpacket to avoid causing an exception to the improper use of the buffer. Instead, Av_dup_packet creates a new buffer for th
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.