Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Linking Element to Bin #152

Description

@lunderhage

I have a problem linking a source to a Bin:

Works:

Bin bin = Bin.launch("filesrc location=/tmp/sound.au ! queue ! audio/x-raw-int,rate=44100,channels=1,width=16,depth=16,signed=true,endianness=4321 ! audioconvert ! lame ! filesink location=/tmp/sound.mp3", true);
Pipeline pipe = new Pipeline();
pipe.addMany(bin);

...

Does not work:

Element source = ElementFactory.make("filesrc", "filesrc0");
source.set("location", `"/tmp/sound.au");`
Bin bin = Bin.launch("queue ! audio/x-raw-int,rate=44100,channels=1,width=16,depth=16,signed=true,endianness=4321 ! audioconvert ! lame ! filesink location=/tmp/sound.mp3", false);
Pipeline pipe = new Pipeline();
source.link(bin);
pipe.addMany(source, bin);

...

What is the difference between the filesrc inside the bin and my external one that I link to the bin?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions