Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7854973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:14:51+00:00 2026-06-02T20:14:51+00:00

I am trying to implement the command line script to Gstreamer c# windows forms

  • 0

I am trying to implement the command line script to Gstreamer c# windows forms application. I set debug to “3 > Errorlog.txt” but the file is always empty. I cant get what I am doing wrong. Command Line works perfectly but in the winforms application nothing happens.

Here is the command line script :
gst-launch udpsrc port=1234 multicast-group="127.0.0.1" ! mpegtsdemux name=demuxer ! queue2 ! mpeg2dec ! ffmpegcolorspace ! videoscale ! directdrawsink

and my implementation:

 private void Start(){

            Gst.Application.Init();


            pipeline = new Gst.Pipeline();

           udpsrc = Gst.ElementFactory.Make("udpsrc", "source");


           udpsrc["port"] = 1234;
           udpsrc["multicast-group"] = "127.0.0.1";


           demux = ElementFactory.Make("mpegtsdemux", "demuxer");
           demux["name"] = "demuxer";

           queue = ElementFactory.Make("queue2", "videoq");


           decode = ElementFactory.Make("mpeg2dec", "decode");
           space = ElementFactory.Make("ffmpegcolorspace", "space");
           scale = ElementFactory.Make("videoscale", "scale");

           MyDrawSink = ElementFactory.Make("directdrawsink", "directdrawsink"); 


           pipeline.Add(udpsrc, demux, queue, decode, space, scale, MyDrawSink);

           MySinkAdapter = new XOverlayAdapter(MyDrawSink.Handle);
           MySinkAdapter.XwindowId = (ulong)this.Handle;

udpsrc.Link(demux);
           demux.Link(queue);
           queue.Link(decode);
           decode.Link(space);
           space.Link(scale);
           scale.Link(MyDrawSink);





           pipeline.SetState(State.Playing);

        }

Thanks for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:14:52+00:00Added an answer on June 2, 2026 at 8:14 pm

    It is “2> Errorlog.txt” and not “3 > Errorlog.txt”. Also to what exactly did you set GST_DEBUG?

    Finally, please read about sometimes pads. This is an FAQ. You need to handle the “pad-added” signal on the demuxer and link to the queue from there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement a command-line interface inside of a Windows Forms form. I've
I'm trying to authenticate a python command line script agains my app engine application
I'm trying to implement the command design pattern , but I'm stumbling accross a
I'm trying to implement a program in Xcode that's somewhat like a command line.
I am trying to implement a command line emulator in JavaScript. I want the
i am trying to implement the more command. I want to learn that how
I'm trying to implement my own version of the 'cd' command that presents the
I'm trying to make an app I'm designing more generic and implement the command
While trying to implement an MVC file upload example on Scott Hanselman's blog. I
I'm currently trying to implement a custom shell command for Felix using iPOJO. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.