Original address:
blog.csdn.net/android_lee/article/details/6789272
Own a little add:
Playbin2 has two properties: Audio-sink and Video-sink. The application only needs to instantiate the appropriate element and pass these two attributes to playbin2.
1. Directory structuregstreamer-0.10.21 DirectoryGST core file for functions such as GST component factoryComponents provided by the plugins gstreamer-0.10.21Lib cannot be applied to the calling component
Prerequisite Description: When doing the GStreamer project, it is necessary to actively send the data collected from the device to the server.This allows you to proactively send data to the specified server using the Tcpclientsink and Udpsink plugins.Tcpclientsink usageNote: If you want to proactively send data to the server, you can transfer it via the Tcpclientsink plugin.The specific code is as followsData-client:Send to Linux:0 - - - 5 4000000
Download GStreamer 1.3.2 in http://gstreamer.freedesktop.org/src/Enter the extracted directoryExecute chmod 777 Configure get read and Write permissionsExecution./configureMakeMake installThe library processing method may be missing during the installation process:Bison:apt-get Install BisonFlex:apt-get Install FlexGlib-2.0:apt-get Install Libglibmm-2.4-devIf you are running gst-launch-1.0, you are not prompted to find libstreamer-1.0.so.0You need to
Padactivation mechanism of gstreamer(translated by part-activation.txt)
ActivateWhen the status changes, pipeline sets the status of its elements in the order of sink-> source. When elements change from ready-> paused state, their pads are activated to prepare for processing data streams, and some pads start to drive data streams.An element activates its pad in the order of source pad-> sink pad, which ensures that when the sink pad is activated and
,\
(Gtypeflags) 0 );\
Additional_initializations (_ type );\
G_once_init_leave ( gonce_data, (gsize) _ type );\
}\
Return (gtype) gonce_data ;\
}
You may have noticed the function "maid". The implementation of this function can be found in the gstutils. c file,
The excerpt code is as follows:
--------------------------------------------------------------------------
.................
Gtypeinfo Info;
Info. class_size = class_size;Info. base_init = base_init;Info. base_finalize = base_finalize;I
Share and memo.
When using the gstreamer architecture for media development, GST-inspect and GST-launch are two very useful gadgets. The former is used to query all the elements in the library and their details, the latter is used to quickly build a pipeline. This command is the best, because you can feel the pleasure of playing with just one sentence. Let's just look at the example:
1 GST-inspect usage:
First enter the command line, and then type:
GS
By constructing different gstreamer pipelines, you can capture thumbnails in video files in multiple ways. The following is a brief introduction.
1. Get the image from gdkpixbufsinkThis method uses gdkpixbufsink's "last-pixbuf" to obtain the pixbuf of the image.
descr = g_strdup_printf ("uridecodebin uri=%s ! ffmpegcolorspace ! videoscale ! gdkpixbufsink name=sink", fileurl); pipeline = gst_parse_launch (descr, error); if (error
In the previous two articles, how to inject data and automatically probe data types and decode using APPSRC, but the sink section only enforces the use of alsasink to output sounds. For scenes that output both sound and images at the same time, GStreamer provides a playsink component for automatically selecting the appropriate video and audio sink. The Playsink is also a playbin back-end component, as the following code implements the Playsink config
Book inventory plays an important key business data for warehouse management operations in books. Development at any age now promotes blood circulation in books, book types and update speed are just as fast rising.In order to ensure a foothold in the book industry, to ensure the correct purchase and inventory control and delivery. In order to avoid the backlog of
IOS Address Book programming, listening for system address book changes, and ios address book
Listen for address book changes
The client code must be implemented as follows:
/* Remove the registration function */-(void) dealloc {ABAddressBookUnregisterExternalChangeCallback (_ addressBook, ContactsChangeCallback, nil)
Write in frontThanks to all the friends who came in to see. Yes, I'm currently going to write a book about unity shader.The purpose of the book is to have the following several:
Summarize my experience with unity Shader and give others a reference. I am very aware of the difficulties of learning shader, and I have seen many questions raised by people in the group. I think learning shader is still a
Gitbook set up local book
1, do not login, click Do this later2, click New book–> Enter book name –>confirm3, the path of the book4. Book Display5, Release6, import others book error and introduction7, related documents ———————————————————————-
1, do not login, click Do thi
My previous question stopped for a long time because-I went to write a book.ObjectiveI started working in March 2012 and now I'm six years away. For the past six years, I have never known anything about SQL Server, only the simplest C # programmers have started, stepping back from a nameless outsourcing company to the middle of a larger financial institution, with wages rising to nearly four times times the size of a new job. In the process of struggle, I also go a lot of detours, once very depr
First put a picture, this is the end of the road book display effect
1, demand--2, solutions--3, implementation Method--4, subsequent expansion
1. Demand
Demand is probably like, to achieve the progress of the book play, you can forward back, pause, when the mouse hover trolley display location information (callout)
Subsequent (playback speed modification)
2, solve the idea
The original idea: I threw a bu
Internship Time: 2016.2.10--2016.2.24Internship Location: Zhongguancun book building, Haidian District, BeijingInternship Report:"One step at a time", for our college students, internship is an important part of life experience, but also an important steps, is the new era of college students to connect theory and practice the most important is the best way, for us to work Post laid a solid foundation.This choice in the Zhongguancun
When you use Word2007 to edit and format Word documents, you sometimes need to print a Word document, such as a job seeker's resume, a personal collection of documents, into a booklet in a book format. Using Word2007 to provide "book folding" features, it is easy for users to achieve this (this tutorial is also applicable in Word2003), the following steps are described:
Step 1th, open the Word2007 document
The http://blog.3snews.net/space.php?uid=16796do=blogid=22870 of Jiang waves1984 Turing Award winner, the inventor of the Pascal language, Professor Niklaus Wirth, has given the program a classic definition of "program = algorithm + data structure", sharply. In my opinion, the algorithm and the data structure are like the methodology and epistemology in philosophy, the former clarifies the idea of solving a problem, and the latter provides the object of solving the problem.The term "algorithm" d
1, the installation of micro-letter phone book, open micro-letter phone book, due to the first use, need to bind mobile phone number. (Enter the verification code)
2, then entered the Dial-up interface, where you can call can also add contacts, dial the T9 button, with Search contact function:
3, we will find that the call record was placed on a separate page, the use of QQ address
Add Address Book Buddy criteria
The relatively simple condition is that we can let micro-blog access to their mobile phone records of the right to.
Micro Blog add Address Book Buddy method
1. Open the phone side Sina Weibo, click "My"-"Add friends" open access, the effect is as follows
2. Then there is a sweeping sweep, and "Address Book Friends" We click o
Many people respond, buy Books Online, if you can turn to look at, even if it is a few pages of the good. Because they are afraid to buy back, not what they need. Of course, you can also go to the book review, but the review is just someone else's subjective judgment.
Is there anything that can objectively reflect the quality of the content of the book in the end what kind of product?
Read what
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.