I have encountered a problem controlling output video window, while using VLM on Windows platform.
For example, I make the following calls :
Code: Select all
const char *sout = "#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:duplicate{dst=file{dst=d:\\\\test.mp4},dst=rtp{dst=localhost,port=5004,mux=ts},dst=display}";
int iRes = libvlc_vlm_add_broadcast(_vlcInstance, "mybroadcast", "dshow://", sout, numOptions, options, TRUE, 0);
iRes = libvlc_vlm_play_media(_vlcInstance, "mybroadcast");
When streaming is initialized Direct3D output window pops out and shows dshow stream.
How this window can be controlled ? I'd like to host video window inside my app. A standard call to libvlc_media_player_set_hwnd can not be used here, because there is no libvlc_media_player_t object here.
Another problem is that video freezes in this window when h264 codec is used. While using DIV3 encoder this does not happen. What can be a reason for that ?
Thank you in advance.