[streaming] python streaming session setting problem

giorge27 at alice.it giorge27 at alice.it
Thu Nov 12 02:59:44 CET 2009


Hi
I'm using vlc python binding for streaming and i'm writing for a problem that i've found in the setting of the streaming parameters.
During a session, in particular if i've to stream a media i use the call:
from --> http://liris.cnrs.fr/advene/download/python-ctypes/doc/vlc.MediaControl-class.html

vlc.MediaControl(parameters)
with parameters a group of values used to set the straming organized in a list, for example:

parameters =['--sout', '#transcode{vcodec=WMV2, vb=256, width=320, height=240, acodec=mpga,ab=32, channels=1}:duplicate{dst=display,dst=std{access=udp,mux=ts,dst=193.205.171.97:1234}}', '--plugin-path=plugins', '--v4l2-caching=500', '--v4l2-adev=/dev/dsp']

then i set in the player object the media to read with:

player.set_mrl(playUrl)

after i launch the streaming with

player.start(0)

In this case the behaviour is good the streaming is ok.
A problem occorr after if i want create a new empty MediaControl object for simply read a media.
The behaviour is that the streaming setting parameters are conserved even if i don't want that, so t
he media i want to only read is also streamed.

I don't know if my procedure is ok, but i don't find a way to avoid this behavior.
Is there anybody that can give me some help to make clean the situation?

Thank you!

Giorge

Alice Messenger ;-) chatti anche con gli amici di Windows Live Messenger e tutti i telefonini TIM!
Vai su http://maileservizi.alice.it/alice_messenger/index.html?pmk=footer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/streaming/attachments/20091112/4ee92663/attachment.htm>


More information about the streaming mailing list