But sometimes the video shot down, always feel that there is something missing, the right is subtitles, some video can be added subtitles that is more perfect. Today I'm going to talk a little bit about how to add subtitles to a video.
First we need to prepare some tool software:
Time Machine (subtitle production):> point I download
Format Factory (format Factory):> point I download
Specific steps to operate:
First of all, we prepared all the
have been input, and the pixels on the other side have naturally been determined. Note that the number must be an even number.
Lanczosresize (480,272) This is the key to zoom in and out filter, because the maximum PSP-AVC supports 480*272 pixels, so the width of the pressed video should not exceed 480 pixels, the height should not exceed 272 pixels, it must be a multiple of 16. This resolution is determined by the film source. The commonly used resolutions are 368*272, 480*272, and 480*208. If
Can the Str_replace function in PHP replace 3 at a time?
$content = Str_replace (' #p # subtitle #e# ', ', $body);
$content = Str_replace (' See next Page ', ' ', $body);
$content = Str_replace ('/uploads ', ' http://www.****.com/uploads ', $body);
Guys, I want the output of the $body read content, while replacing the inside of the "#p # subtitle #e#" "' See next Page" "/uploads"
How does it come true, pl
to the Pear root directory, or you can take advantage of the pear installer.
Next, create the following PHP script (List a) and save it in the root directory of your Web server's file:
PHP class Search Location directory tree List A
? PHP
Include class
Include ("find.php");
Initialize Finder
$ Finder New file_find ();
Read directory tree and print
The code is as follows
int _finder (LPCTSTR pstr){CFileFind Finder;CString Strwildcard (PSTR);Strwildcard + = _t ("//*.*");
BOOL bworking = Finder. FindFile (Strwildcard);int i = 0;while (bworking){bworking = Finder. FindNextFile () Finder.isdots () Finder. Isdirectory ();Nonzero if the found file has the name "." or
Turn: Dependency Injection principle
Dependency Injection principle posted on 2015-08-01 | Categories in Software Engineering | 3 Reviews 0. Preface
In the field of software engineering, Dependency injection (Dependency injection) is one of the most common ways to implement control inversion (inversion of controls). This paper mainly introduces the principle of dependency injection and the common way of implementation, with emphasis on introducing the application scenarios and advantages of thi
-held devices, computer and TV users should not be robbed. It is also a cow dung inserted into the flowers.
MKV
All the children's shoes that have downloaded movies know that these movies are usually equipped with ultra-HD movies such as 720 p and 1080 p, and despise the silk in formats such as rmvb and MP4. In fact, it is a new multimedia Encapsulation Format called matroska. The true advantages of MKV are not in their image quality. MKV can be integrated into a single file with multiple aud
This article mainly introduces related information about the search box for php query by days, weeks, and months, you can refer to the examples in this article to share the search box for php to query by days, weeks, and months. The statistical charts of data are displayed during the search, mainly displaying the graphic effect, for your reference, the specific content is as follows:
1. ajax. php
2. datehelper. php
3. statistics. php
{$ Stat_arr ['title']}", 'X' =>-20):''; // if the sub-
Python 3.x and Python 3.xjson
Preface
This article mainly introduces some operations of python3 on JSON and shares them for your reference. I will not talk about them here. Let's take a look at the details.
1. Convert Dictionary to JSON
Convert dict to JSON. The json package is used here.
Import jsonaItem = {} aItem ["id"] = "2203" aItem ["title"] = "title" aItem ["subTitle"] = "sub title" bItem = {} bItem ["id"] = "2842" bItem ["title"] = "B title" b
Continue the old routine, these two days I climbed the pig some data URLs are:http://task.zbj.com/t-ppsj/p1s5.html, probably because the amount of data crawled is a bit more, the result of my IP was blocked, I need to manually verify the IP, but this obviously prevented me from crawling more data.Here is the code that I wrote to crawl pig's blocked IP# coding=utf-8import requestsfrom lxml import etreedef getUrl (): For I in range: url = ' http://task.zbj.com/ t-ppsj/p{}s5.html '. Format (i+1) sp
# DEFINE _ afxdll# Include # Include # Include # Include
Using namespace STD;Int _ finder (lpctstr pstr){Cfilefind finder;Vector Cstring strwildcard (pstr );Strwildcard + = _ T ("\\*.*");Bool bworking = finder. findfile (strwildcard );Int I = 0;While (bworking) // if there are other files, execute the following{Bworking = fi
This article mainly introduces related information about the search box for php query by days, weeks, and months, you can refer to the examples in this article to share the search box for php to query by days, weeks, and months. The statistical charts of data are displayed during the search, mainly displaying the graphic effect, for your reference, the specific content is as follows:
1. ajax. php
2. datehelper. php
3. statistics. php
{$ Stat_arr ['title']}", 'X' =>-20):''; // if the sub-
credits and subtitles. In the video preview box, double-click the mouse. In the displayed "input text" dialog box, enter the credits and subtitles. Select the ending subtitle in the video preview box to make it editable with a box. You can drag and drop the box to adjust the subtitle position, slice the subtitle, and rotate the
In this lesson, we will learn how to create and use rolling subtitles on web pages and lists such as Word. Because the rolling subtitles in real dynamic website production are the simplest multimedia effects, can be addedArticleThe dynamic effect of the web page attracts the viewer's eye and enhances the interaction of the web page. Therefore, we suggest you learn to skillfully use its several important attributes.
First, let's take a look.Basic Syntax of rolling text When we want to set the f
How do I use the KMPlayer player to display the SSA and ass subtitles effects?
KMPlayer
Method One, use a codec package containing VSFilter.dll (directvobsub) (Codec pack)
such as K-lite or perfect decoding
1. When installing Codec Pack (Codec pack), select Directvobsub (usually the default is selected);
2. KMPlayer parameter Options-Media | decoder | filter-do not select Disabled (DivXG400 | Directvobsub)
Many people want to put subtitles and AVI and two as one, so you can avoid the subtitle software (subtitle space is also saved) and can be in support of MPEG4 (XviD and DivX) DVD machine to play, subtitle files in the video when the plug-in and embedded type.
1. Plug-type: The video and the same file name of the subtitle
What is dependency injection?Dependency Injection (Dependency injection) is one of the design patterns. The name is more abstract, but the problem to be solved is quite clear. For a given application, it is necessary to use some relatively separate components to complete the function. In general, the process of using these components is included in the application's logical statements. The problem is that when these components want to make plug-in functionality similar to the application's busin
[] Moviesdirectedby (String Arg) {
List allmovies = Finder.findall ();
for (Iterator it = Allmovies.iterator (); It.hasnext ();) {
Movie movie = (movie) It.next ();
if (!movie.getdirector (). Equals (ARG)) It.remove ();
}
Return (movie[]) Allmovies.toarray (new Movie[allmovies.size ()));
}
As you can see, the implementation of this feature is extremely straightforward: the Moviesdirectedby method first asks the Finder (the movie Searcher) object (whic
. toString () + "|" + custom. maxIdleTime); in the first code, we use ConfigurationManager. getSection obtains the M node and forcibly converts the type to the custom node. This makes it easy to use.
OK. The first example is complete. In fact, this example is in MSDN. I just took it down and explained it a bit.
Of course, the above content is not enough for the home page. The above example does not fully meet our general needs. We can even put these configurations in the appSetting to replace ou
Add to favoritesAdd the following content between
Set as HomepageAdd the following content between
This. style. Behavior = 'url (# default # homepage )';This. setHomePage ('HTTP: // 5dcity.yeah.net ');"Style = "cursor: Hand">Set the current city as the home page
Scroll subtitlesAdd the following content between
Onmouseout = This. scrolldelay = 1Onmouseover = This. scrolldelay = 600Scrollamount = 1 scrolldelay = 1 class = "TT">Scroll subtitle effe
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.