Configure the gstreamer development environment quickly in Windows

Source: Internet
Author: User
Tags gstreamer

Configure the gstreamer development environment quickly in Windows

Du Jing 2010-07-21 Shanghai

 

This article uses ossbuild to quickly build a gstreamer development environment in windows. If you want to use GTK for development, you can refer to other blog posts.

(Download the complete environment in this article)

1. Install the GStreamer-WinBuilds-GPL-x86.msi, using the default component option (full), the installation path is best not to have spaces.

2. Do the development of the need to install GStreamer-WinBuilds-SDK-GPL-x86.msi, using the default component option (full), installation path is forced in the runtime path of the SDK subdirectory.

3. Copy python26.dll to the <GST program directory>/v0.10.6/bin. At the beginning, I did not copy this. The following error was reported when I ran my own test application. I had to wait for two days:

 

** (Gst-launch-0.10: 3528): Warning **: failed to loadplugin 'C:/gstreamer/v0.10

. 6/lib/gstreamer-0.10/libgstpython-v2.6.dll ': 'C:/gstreamer/v0.10.6/lib/gstreame

R-0.10/libgstpython-v2.6.dll ': the specified module is not found.

 

The following dialog box is displayed:

 

4.install gst-ffmpeg-0.10.2.exe. During installation, note the Show Details button. For example, note the DLL and target path:

 

Copy libststffmpeg. DLL to the <GST program directory>/v0.10.6/lib/gstreamer-0.10 and copy the avcodec-51.dll, avformat-51.dll, and avutil-49.dll
C:/window/system32 (that is, the system directory % system32 % ).

 

If I don't do this for a day, the test application I wrote will always report "cann' t create player. The following error is reported when you use the gst-launch.exe command:

Setting pipeline to paused...

Pipeline is prerolling...

Error: From element/gstpipeline: pipeline0/gstdecodebin: decodebin0/gstqueue: queu

E1: Internal data flow error.

Additional debug info:

.../Source/gstreamer/plugins/elements/maid. C (1212): Maid ():

/Stststpipeline: pipeline0/ststdecodebin: decodebin0/stststqueue: queue1:

Streaming task paused, reason not-linked (-1)

Error: Pipeline doesn' t want
Preroll.

Setting pipeline to null...

Freeing pipeline...

 

These indicate that the link is not successfully linked because no proper decoder is found. Therefore, you must install FFMPEG forgstreamer and copy only libgffmpeg. dll. The following error will be reported when you run your own test application:

** (Gst-launch-0.10: 4324): Warning **: failed to loadplugin 'C:/gstreamer/v0.10

. 6/lib/gstreamer-0.10/libstffmpeg. dll ': 'C:/gstreamer/v0.10.6/lib/gstreamer-0.1

0/libstffmpeg. dll ': the specified module cannot be found.

 

The following dialog box is displayed:

 

5. after completing the above four steps, we have basically configured the GST environment and put a good AVI file in C:/Sun. AVI (after the download, rename the suffix AVI). If you use the following command, you can see the following:

GST-launchfilesrc location = C: // sun. Avi!
Decodebin!
Ffmpegcolorspace!
Autovideosink

 

Fast! Start running an application. Are you very excited?

 

To sum up, pay attention to the following:

Gst-ffmpeg-0.10.2.exe installation details.

Command Line: GST-launchfilesrc
Location = C: // sun. Avi! Decodebin!
Ffmpegcolorspace!
Autovideosink

For details about how to configure a simple project for VC compilation, see the document "setting up gstreamer software development environment in Windows" published in my blog.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.