Coder Social home page Coder Social logo

Comments (1)

michaelgruner avatar michaelgruner commented on May 23, 2024

Those exact commands work for me. You are only allowed to change a filesrc location in the NULL state. The pipe is in the NULL state when it's created by gstd, so you should be able to change it just fine. Here's my output:

mgruner$ gstd-client pipeline_create testpipe filesrc name=src location=/path/file1.mp4 ! fakesink
{
  "code" : 0,
  "description" : "Success",
  "response" : {
    "properties" : [
        {
            "name" : "name",
            "value" : "\"testpipe\"",
            "param" : {
                "description" : "The name of the current Gstd session",
                "type" : "gchararray",
                "access" : "((GstdParamFlags) READ | 234)"
            }
        },
        {
            "name" : "description",
            "value" : "\"filesrc name=src location=/path/file1.mp4 ! fakesink\"",
            "param" : {
                "description" : "The gst-launch like pipeline description",
                "type" : "gchararray",
                "access" : "((GstdParamFlags) READ | 234)"
            }
        },
        {
            "name" : "elements",
            "value" : "((GstdList*) 0x7fb085038310)",
            "param" : {
                "description" : "The elements in the pipeline",
                "type" : "GstdList",
                "access" : "((GstdParamFlags) READ | 224)"
            }
        },
        {
            "name" : "bus",
            "value" : "((GstdPipelineBus*) 0x7fb085039b20)",
            "param" : {
                "description" : "The bus callback for this element",
                "type" : "GstdPipelineBus",
                "access" : "((GstdParamFlags) READ | 224)"
            }
        },
        {
            "name" : "state",
            "value" : "((GstdState*) 0x7fb085039880)",
            "param" : {
                "description" : "The state of the pipeline",
                "type" : "GstdState",
                "access" : "((GstdParamFlags) READ | UPDATE | 226)"
            }
        },
        {
            "name" : "event",
            "value" : "((GstdEventHandler*) 0x7fb085044f00)",
            "param" : {
                "description" : "The event handler of the pipeline",
                "type" : "GstdEventHandler",
                "access" : "((GstdParamFlags) READ | 224)"
            }
        }
    ]
}
}
mgruner$ gstd-client element_set testpipe src location /path/file2.mp4
{
  "code" : 0,
  "description" : "Success",
  "response" : {
    "name" : "location",
    "value" : "/path/file2.mp4",
    "param" : {
        "description" : "Location of the file to read",
        "type" : "gchararray",
        "access" : "((GstdParamFlags) READ | DELETE | 226)"
    }
}
}

from gstd-1.x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.