This article mainly introduced the PHP use FFmpeg to add the caption display method to the video, the example analyzes the PHP operation FFmpeg to add the letter to the video skill, has certain reference value, needs the friend to be possible to refer under.
This example describes the way PHP uses FFmpeg to add subtitles to video. Share to everyone for your refe
Tip: ARGB alpha channel A + original YUV surface y0 + to write in Y1 = calculate a new y2.The calculation formula is(y1 * A + y0 * (255-a))/255void Rgb2yuv (int r, int g, int b, int *y, int *u, int *v) {int y0, u0, v0;y0 = 66*r + 129*g + 25*b;u0 = -38*r + -74*g + 112*b;v0 = 112*r + -94*g + -18*b;y0 = (y0+128) >>8;u0 = (u0+128) >>8;v0 = (v0+128) >>8;*y = y0 + 16;*u = u0 + 128;*v = v0 + 128;} void Yuv2rgb (int y, int u, int v, int *r, int *g, int *b) {int r0,g0,b0;v = V-128;u = U-128;r0 = y + V +
Label: HTTP uses AR strong SP Div C on CTIWe know that the double-finger combination gesture of the Mac touchpad can be used to zoom in or out, But it corresponds to the zoom in and out of the entire interface content. If you only want to zoom in or out the text content, you can use shortcut keys to perform operations.Default"Command" + "=" to enlarge the text"Command" + "-" to narrow down the textRelated o
1, small icon (. ico)/jb51.ico" type= "Image/x-icon"/>Note: The red part is the relative path of the picture2. Inserting music"Images/joy%20gruttmann%20-%20schnappi.mp3 " controls= "Controls"width=300 height=80 type=audio/mpeg loop= "-1" hidden= "Ture" autostart= "false" volume= "0"/> Note: The red part is the relative path of the music, whether the loop is AutoPlay, and whether hidden is hidden 3. Insert Video (written in in the following format:
HTML Definition and usage1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>Listtitle>6 style>7 Li{8 List-style-type:None;9 text-decoration:None;Ten } One style> A Head> - Body> - ul> the Li>This is a listLi> - Li>This is a listLi> - Li>This is a listLi> - Li>This is a listLi> + ul> - + BR/> A at Table> - TR> - TD>nbsp;TD> - TD>nbsp
For convenience, it is directly displayed on the video, without dynamic output text and moving the line with the mouse, but it is the same principle, but dynamic needs to capture the mouse status message
Long CX, Cy; hresult hr; HR = PwC-> getnativevideosize ( CX, cy, null, null); If (failed (HR )) {MSG (text ("getnativevideosize failed! HR = 0x % x \ r \ n "),
This section describes two new features: 1. In Silverlight 5, you can control the video played by the MediaElement object for fast forward and backward control. 2. Search and query the text items in Silverlight 5.
1. Fast-forward control of videos played by MediaElement Media
It is controlled through the MediaElement. PlaybackRate attribute. Currently, this attribute only supports seven parameters:-8.0,-4.0
-------------------------------------------
Continue to say that WebSocket can see some things from w3c, such
Content sent from the client to the server:
1. GET/chat HTTP/1.12. Host: server.example.com3. Upgrade: websocket4. Connection: Upgrade5. Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ =6. Origin: http://example.com7. Sec-WebSocket-Protocol: chat, superchat8. Sec-WebSocket-Version: 13Contents from the server to the client: 1. HTTP/1.1101 SwitchingProtocols2. Upgrade: websocket3. Connection: U
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.