Page 1 of 1
:SOUT in marx tester
Posted: 11 Mar 2009 16:56
by tamiro44
Hi,
In 0.8.6 versions we could write addTarget(options...).
For example, beside the MRL we could save the stream to file.
How can i activate it now?
Thanks,
Tamiro.
Re: :SOUT in marx tester
Posted: 12 Mar 2009 16:37
by mohamnag
Hi,
I'm exactly searching for such a thing, have you found any way? It would be great to let me know.
Thanks in advance.
Re: :SOUT in marx tester
Posted: 15 Mar 2009 08:08
by tamiro44
In prevoius versions (0.8.6) we could just addTarget with options.
We will continue to search and post the answer here.
Re: :SOUT in marx tester
Posted: 15 Mar 2009 17:32
by mohamnag
I have just found a way to pass the whole sout option like ":sout=#duplicate{dst=std{access=file,dst=c:\tmp.ps}}" as "--sout=#duplicate{dst=std{access=file,dst=c:\tmp.ps}}" (pay attention to first : replaced with --) to AddAndPlay method as options string and it worked very well.
Re: :SOUT in marx tester
Posted: 15 Mar 2009 17:53
by tamiro44
Thanks alot it worked for me.
Can you do that dinamycally? with add_option?
Re: :SOUT in marx tester
Posted: 16 Mar 2009 15:11
by mohamnag
I don't know, I have not tested that while I have to create the object for each stream. But I would be glad to know if you tested it and it answered.
Re: :SOUT in marx tester
Posted: 18 Mar 2009 08:57
by tamiro44
add_option is a function of Media object and i didn't managed to understand how can you do it.