Page 1 of 1

axvlc in visual studio c++ 2008

Posted: 26 Jan 2010 13:25
by Filipe81
I have been build a media player that play a radio via URL and at the same time, make a multicast stream. The code is:

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {



axVLCPlugin1->playlistClear();
axVLCPlugin1->addTarget(textBox1->Text,":sout=#transcode{vcodec=mp2v,vb=800,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp,mux=ts,dst=239.0.0.2:5501}",AXVLC::VLCPlaylistMode::VLCPlayListAppendAndGo, 0);
axVLCPlugin1->play();

}

The radio play without problems but when I start a wireshark capture the multicast packets not apper. Can somebody help me? Probably I made something wrong...

Re: axvlc in visual studio c++ 2008

Posted: 15 Feb 2010 21:39
by dudedevil100
You are not giving proper sout parameters. you just giving the trasncode and not duplicate I cant see anyip address.. check you are enabling streaming to some ip . If you do so you will see packets in wireshark.

Re: axvlc in visual studio c++ 2008

Posted: 24 Feb 2010 16:16
by Filipe81
Hi dudedevil100,

Thanks for your reply. I made a multicast stream with VLC and worked fine. I just copied and pasted the options to the addtarget function in visual studio. Does it need more options to work ? I have no errors with that options but the multicast stream not start.

best regards