balazskreith / gst-mprtp

Gstreamer plugin for MPRTP protocol, FRACTaL congestion control algorithm
Other
12 stars 5 forks source link

how to run plugin with gst-launch #26

Open josephGhobadi opened 2 years ago

josephGhobadi commented 2 years ago

Hi i want to launch this plugin in gstreamer but i have no idea how this should be done.

can you please help me?

i think it should be like this

sender side: mprtp-scheduler -> mprtp-sender

receiver side mprtp-receiver -> mprtp-playouter

balazskreith commented 2 years ago

Hi,

Your assumption is right, mprtp_scheduler -> .... -> mprtp_sink, and mprtp_receiver -> ... -> mprtp_reciver I need to check, but I think you should take a look the mediapipeline subproject under tests. for instance https://github.com/balazskreith/gst-mprtp/blob/master/tests/mediapipeline/snd_pipeline.c assembling a sender for the mprtp, and https://github.com/balazskreith/gst-mprtp/blob/master/tests/mediapipeline/rcv_pipeline.c for the receiver.

uoosef commented 2 years ago

hello, I managed to compile the docker image and solve its numerous issues through the gstreamer and gst-mprtp build process. but I'm unable to run media pipeline sender or receiver in the tests folder. it keeps crashing with the following message:

Errors during parse: None, returned with: 1

(snd_pipeline:361599): GLib-CRITICAL **: g_strsplit: assertion 'string != NULL' failed
Segmentation fault (core dumped)

I inspect the snd_pipeline.c and it seems this line of code is the cause of the problem

 session->snd_transfer_params = make_snd_transfer_params(
      _null_test(sndtransfer_params_rawstring, sndtransfer_params_rawstring_default)
  );

but I have no idea how to fix it, can you help me, please?

sorry for bad english, thanx

balazskreith commented 2 years ago

your English is not worst than mine.

_null_test( there is a custom written assertation, and it means you are missing a parameter somewhere. can you check the tester there are several media pipeline I have setup.

And please write me an email so the communication and response can be a bit faster.