Independent configuration of instances in the same process

This forum is about all development around libVLC.
Cyranjo
New Cone
New Cone
Posts: 2
Joined: 27 Dec 2009 12:10

Independent configuration of instances in the same process

Postby Cyranjo » 06 Feb 2010 14:27

Hi,

I use the following sourcecode to create 2 VLC players (using libvlc) in Python.

Code: Select all

inst1 = libvlc.Instance("--ignore-config", "--sout=#transcode{acodec=s16l,channels=2,samplerate=44100}:std{access=file,mux=raw,dst=/tmp/file1}") inst2 = libvlc.Instance("--ignore-config", "--sout=#transcode{acodec=s16l,channels=2,samplerate=44100}:std{access=file,mux=raw,dst=/tmp/file2}") mp1 = inst1.media_player_new() mp2 = inst2.media_player_new() [...]
However it seems that in the end both players mp1 and mp2 have the configuration parameters that were passed to inst2 instead of mp1 having these of inst1.
Is this behaviour intended and is there any workaround for this other than setting the configuration for each Media object before invoking set_media on the player?

VLC version is 1.0.4 on Debian

Rémi Denis-Courmont
Developer
Developer
Posts: 15280
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Independent configuration of instances in the same process

Postby Rémi Denis-Courmont » 06 Feb 2010 15:12

This is a known bug/limitation in VLC versions earlier than 1.1.0.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests